Page 1 of 1

Error 9006

PostPosted:Mon Aug 23, 2010 2:44 pm
by joergweis
Hi,

when server is restarted the first user clicking a document, get's stuck with "loading property groups..." After tcp timeout an exception occurs in the server log and error window is displayed, the error does not reappear:
Stack Trace:
Code: Select all
2010-08-23 16:31:34,920 ERROR [es.git.openkm.frontend.server.OKMPropertyGroupServlet] Connection timed out
java.net.ConnectException: Connection timed out
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
	at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
	at sun.net.www.http.HttpClient.New(HttpClient.java:306)
	at sun.net.www.http.HttpClient.New(HttpClient.java:323)
	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
	at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
	at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
	at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
	at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
	at es.git.openkm.util.FormUtils.parsePropertyGroupsForms(FormUtils.java:116)
	at es.git.openkm.module.direct.DirectPropertyGroupModule.getGroups(DirectPropertyGroupModule.java:147)
	at es.git.openkm.api.OKMPropertyGroup.getGroups(OKMPropertyGroup.java:81)
	at es.git.openkm.frontend.server.OKMPropertyGroupServlet.getGroups(OKMPropertyGroupServlet.java:185)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
	at java.lang.Thread.run(Thread.java:619)
see also screenshot (german).

Sideline: I tried to search in the search fields of this board for 9006 or OKM-009006 (where a post exists) but I found nothing, are you sure search is working properly?

Re: Error 9006

PostPosted:Tue Aug 24, 2010 1:05 am
by surajaya
I have similar problem. Is there any possibility that this is JDK related problem ?

Re: Error 9006

PostPosted:Tue Aug 24, 2010 2:02 am
by surajaya
joergweis wrote: at es.git.openkm.util.FormUtils.parsePropertyGroupsForms(FormUtils.java:116)
at es.git.openkm.module.direct.DirectPropertyGroupModule.getGroups(DirectPropertyGroupModule.java:147)
at es.git.openkm.api.OKMPropertyGroup.getGroups(OKMPropertyGroup.java:81)
at es.git.openkm.frontend.server.OKMPropertyGroupServlet.getGroups(OKMPropertyGroupServlet.java:185)
Have you looked at those part of the code ?. If you were using version 4.1, probably you should look at this (the bolded blue part)
try {
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
dbf.setValidating(true);
ErrorHandler handler = new ErrorHandler();
DocumentBuilder db = dbf.newDocumentBuilder();
db.setErrorHandler(handler);
fis = new FileInputStream(pgFile);

if (fis != null) {
Document doc = db.parse(fis);
doc.getDocumentElement().normalize();
NodeList nlForm = doc.getElementsByTagName("property-group");

for (int i = 0; i < nlForm.getLength(); i++) {
Node nForm = nlForm.item(i);

Re: Error 9006

PostPosted:Tue Aug 24, 2010 8:00 am
by jllort
have you downloading a file while you get that error ? double click or similar to downloading ?

Re: Error 9006

PostPosted:Tue Aug 24, 2010 10:41 am
by joergweis
Hi, I was doing nothing except clicking on a document and waiting while the screen says "retrieving attributes..." from the error message in the server log it seems to be a tcp timeout.

Re: Error 9006

PostPosted:Tue Aug 24, 2010 11:15 am
by jllort
But you're not doing a double click, only a click no ? There's a know bug on donwloading file ... that sometimes kill RPC calls ( not always ) it's something about synchronization downloading and actual page in browser ... but if you're not doing a donwloading the problem it's in other side