Re: [Davmail-users] 500 DavMail configuration exception: a Java bug
Brought to you by:
mguessan
|
From: Geert S. <sta...@st...> - 2010-02-14 19:34:41
|
Op 20100214 om 17:16 schreef Geert Stappers: > > Doing a web search on 'java.security.ProviderException Could not initialize NSS' > didn't get me any further. > > For further help, I think you may need my properities file: > |davmail.url=https://exchange.obscured.nl/opaque/ > |davmail.popPort=1110 > |davmail.imapPort=1143 > |davmail.smtpPort=1025 > |davmail.caldavPort=1080 <snip/> > |davmail.ssl.clientKeystorePass= > |davmail.ssl.pkcs11Library= > |davmail.ssl.pkcs11Config= > |davmail.disableUpdateCheck=true > |log4j.rootLogger=WARN > |log4j.logger.davmail=DEBUG > |log4j.logger.org.apache.commons.httpclient=WARN Setting log4j.logger.org.apache.commons.httpclient=DEBUG did reveal more ... > |log4j.logger.httpclient.wire=DEBUG > |davmail.logFilePath=/var/log/davmail.log > > About the NSS stuff, > this is in /usr/lib/jvm/java-6-openjdk/jre/lib/security/nss.cfg: > |name = NSS > |nssLibraryDirectory = /usr/lib > |nssDbMode = noDb > |attributes = compatibility > that is unmodified from the Debian package openjdk-6-jre-headless > The extra logging: |2010-02-14 20:10:53,675 INFO [main] davmail - DavMail Gateway 3.6.3-945-trunk listening on SMTP port 1025 POP port 1110 IMAP port 1143 CALDAV port 1080 LDAP port 1389 |2010-02-14 20:11:03,068 DEBUG [davmail.smtp.SmtpServer] davmail - Connection from /0:0:0:0:0:0:0:1 on port 1025 |2010-02-14 20:11:03,090 DEBUG [SmtpConnection-41931] org.apache.commons.httpclient.HttpClient - Java version: 1.6.0_0 |2010-02-14 20:11:03,091 DEBUG [SmtpConnection-41931] org.apache.commons.httpclient.HttpClient - Java vendor: Sun Microsystems Inc. |2010-02-14 20:11:03,091 DEBUG [SmtpConnection-41931] org.apache.commons.httpclient.HttpClient - Java class path: /usr/share/davmail/davmail.jar:/usr/share/java/swt.jar::/usr/share/davmail/lib/activation-1.1.jar:/usr/share/davmail/lib/commons-codec-1.3.jar:/usr/share/davmail/lib/commons-collections-3.1.jar:/usr/share/davmail/lib/commons-httpclient-3.1.jar:/usr/share/davmail/lib/commons-logging-1.0.4.jar:/usr/share/davmail/lib/htmlcleaner-2.1.jar:/usr/share/davmail/lib/jackrabbit-webdav-1.4.jar:/usr/share/davmail/lib/jdom-1.0.jar:/usr/share/davmail/lib/log4j-1.2.15.jar:/usr/share/davmail/lib/mail-1.4.1.jar:/usr/share/davmail/lib/slf4j-api-1.3.1.jar:/usr/share/davmail/lib/slf4j-log4j12-1.3.1.jar:/usr/share/davmail/lib/stax-api-1.0.1.jar:/usr/share/davmail/lib/wstx-asl-3.2.7.jar:/usr/share/davmail/lib/xercesImpl-2.8.1.jar |2010-02-14 20:11:03,091 DEBUG [SmtpConnection-41931] org.apache.commons.httpclient.HttpClient - Operating system name: Linux |2010-02-14 20:11:03,092 DEBUG [SmtpConnection-41931] org.apache.commons.httpclient.HttpClient - Operating system architecture: i386 |2010-02-14 20:11:03,092 DEBUG [SmtpConnection-41931] org.apache.commons.httpclient.HttpClient - Operating system version: 2.6.26-1-686 |Exception in thread "SmtpConnection-41931" java.lang.ExceptionInInitializerError | at davmail.http.DavGatewayHttpClientFacade.getInstance(DavGatewayHttpClientFacade.java:77) | at davmail.exchange.ExchangeSessionFactory.checkConfig(ExchangeSessionFactory.java:177) | at davmail.smtp.SmtpConnection.run(SmtpConnection.java:58) |Caused by: java.security.ProviderException: Could not initialize NSS | at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:201) | at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:103) | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) | at java.lang.reflect.Constructor.newInstance(Constructor.java:532) | at sun.security.jca.ProviderConfig$3.run(ProviderConfig.java:262) | at sun.security.jca.ProviderConfig$3.run(ProviderConfig.java:244) | at java.security.AccessController.doPrivileged(Native Method) | at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:244) | at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:224) | at sun.security.jca.ProviderList.loadAll(ProviderList.java:281) | at sun.security.jca.ProviderList.removeInvalid(ProviderList.java:298) | at sun.security.jca.Providers.getFullProviderList(Providers.java:170) | at java.security.Security.getProviders(Security.java:457) | at org.apache.commons.httpclient.HttpClient.<clinit>(HttpClient.java:79) | ... 3 more |Caused by: java.io.IOException: The specified version of NSS is incompatible, 3.7 or later required | at sun.security.pkcs11.Secmod.initialize(Secmod.java:207) | at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:197) | ... 18 more |2010-02-14 20:11:53,634 DEBUG [HttpConnectionManager] org.apache.commons.httpclient.util.IdleConnectionHandler - Checking for connections, idleTimeout: 1266174653634 |2010-02-14 20:12:53,636 DEBUG [HttpConnectionManager] org.apache.commons.httpclient.util.IdleConnectionHandler - Checking for connections, idleTimeout: 1266174713636 |2010-02-14 20:24:53,642 DEBUG [HttpConnectionManager] org.apache.commons.httpclient.util.IdleConnectionHandler - Checking for connections, idleTimeout: 1266175433642 Seems like I encounter Java bug 6521498 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6521498 > Further help is welcome Still ... Cheers Geert Stappers |