• Connectivity loss produces problem with e-mail system of OKM

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #5197  by baiki
 
Dear community,

Since we have very unstable Internet connections, it seems that OKM has a few issues with trying to re-connect to mail server (it lookes like OKM tries just once). I also realized that OKM silently drops e-mails (notification and subscription) if the connection was quickly down. Is there a way that OKM tries periodically to reconnect and try to send cached outgoing e-mail notifications instead of just deleting/dropping/forgetting them?

Here's a part of my server.log:
Code: Select all
2010-05-30 12:39:07,475 DEBUG [es.git.openkm.module.direct.DirectWorkflowModule] findUserTaskInstances(1076396382686373113296-3821419640)
2010-05-30 12:39:07,475 DEBUG [es.git.openkm.module.direct.DirectWorkflowModule] findPooledTaskInstances(1076396382686373113296-3821419640)
2010-05-30 12:39:13,642 DEBUG [es.git.openkm.module.direct.DirectWorkflowModule] findUserTaskInstances: []
2010-05-30 12:39:13,642 DEBUG [es.git.openkm.module.direct.DirectWorkflowModule] findPooledTaskInstances: []
2010-05-30 12:41:55,039 ERROR [es.git.openkm.frontend.server.OKMPropertyGroupServlet] www.openkm.com
java.net.UnknownHostException: www.openkm.com
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
	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.getAllGroups(DirectPropertyGroupModule.java:182)
	at es.git.openkm.api.OKMPropertyGroup.getAllGroups(OKMPropertyGroup.java:91)
	at es.git.openkm.frontend.server.OKMPropertyGroupServlet.getAllGroups(OKMPropertyGroupServlet.java:103)
	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)
2010-05-30 12:42:54,213 ERROR [STDERR] java.lang.NullPointerException
2010-05-30 12:42:54,213 ERROR [STDERR] 	at org.apache.velocity.runtime.RuntimeInstance.getLoaderNameForResource(RuntimeInstance.java:1464)
2010-05-30 12:42:54,213 ERROR [STDERR] 	at org.apache.velocity.runtime.RuntimeSingleton.getLoaderNameForResource(RuntimeSingleton.java:380)
2010-05-30 12:42:54,213 ERROR [STDERR] 	at org.apache.velocity.app.Velocity.resourceExists(Velocity.java:423)
2010-05-30 12:42:54,213 ERROR [STDERR] 	at es.git.openkm.module.direct.DirectNotificationModule.checkSubscriptions(DirectNotificationModule.java:303)
2010-05-30 12:42:54,213 ERROR [STDERR] 	at es.git.openkm.module.direct.DirectDocumentModule.lock(DirectDocumentModule.java:1019)
2010-05-30 12:42:54,213 ERROR [STDERR] 	at es.git.openkm.api.OKMDocument.lock(OKMDocument.java:260)
2010-05-30 12:42:54,213 ERROR [STDERR] 	at es.git.openkm.frontend.server.OKMDocumentServlet.lock(OKMDocumentServlet.java:233)
2010-05-30 12:42:54,213 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2010-05-30 12:42:54,213 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at java.lang.reflect.Method.invoke(Method.java:597)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
2010-05-30 12:42:54,214 ERROR [STDERR] 	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
2010-05-30 12:42:54,215 ERROR [STDERR] 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2010-05-30 12:42:54,215 ERROR [STDERR] 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
2010-05-30 12:42:54,215 ERROR [STDERR] 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
2010-05-30 12:42:54,215 ERROR [STDERR] 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
2010-05-30 12:42:54,215 ERROR [STDERR] 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
2010-05-30 12:42:54,215 ERROR [STDERR] 	at java.lang.Thread.run(Thread.java:619)
2010-05-30 12:43:19,140 ERROR [STDERR] java.lang.NullPointerException
2010-05-30 12:43:19,141 ERROR [STDERR] 	at org.apache.velocity.runtime.RuntimeInstance.getLoaderNameForResource(RuntimeInstance.java:1464)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at org.apache.velocity.runtime.RuntimeSingleton.getLoaderNameForResource(RuntimeSingleton.java:380)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at org.apache.velocity.app.Velocity.resourceExists(Velocity.java:423)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at es.git.openkm.module.direct.DirectNotificationModule.checkSubscriptions(DirectNotificationModule.java:303)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at es.git.openkm.module.direct.DirectDocumentModule.unlock(DirectDocumentModule.java:1053)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at es.git.openkm.api.OKMDocument.unlock(OKMDocument.java:272)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at es.git.openkm.frontend.server.OKMDocumentServlet.unlock(OKMDocumentServlet.java:262)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at java.lang.reflect.Method.invoke(Method.java:597)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2010-05-30 12:43:19,141 ERROR [STDERR] 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
2010-05-30 12:43:19,142 ERROR [STDERR] 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
2010-05-30 12:43:19,142 ERROR [STDERR] 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
2010-05-30 12:43:19,142 ERROR [STDERR] 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
2010-05-30 12:43:19,142 ERROR [STDERR] 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
2010-05-30 12:43:19,142 ERROR [STDERR] 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
2010-05-30 12:43:19,142 ERROR [STDERR] 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
2010-05-30 12:43:19,142 ERROR [STDERR] 	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
2010-05-30 12:43:19,142 ERROR [STDERR] 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2010-05-30 12:43:19,142 ERROR [STDERR] 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
2010-05-30 12:43:19,142 ERROR [STDERR] 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
2010-05-30 12:43:19,142 ERROR [STDERR] 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
2010-05-30 12:43:19,142 ERROR [STDERR] 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
2010-05-30 12:43:19,142 ERROR [STDERR] 	at java.lang.Thread.run(Thread.java:619)
Any kind of help is much appreciated.

Regards,
Baiki
 #5204  by baiki
 
Hello jllort,
jllort wrote:here http://wiki.openkm.com/index.php/Proper ... definition there's the solution
I can confirm, the PropertyGroups error is gone. Even if the test server is not connected to the Internet, users may login without having long timeout periods. What I really don't get yet is how this setting influences the outgoing mail pooling to our SMTP server. Will try more in the meantime...

Cheers,
Baiki
Screenshot.png
Screenshot.png (66.79 KiB) Viewed 1889 times

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.