powered by Jive Software

Email Listener problems - Unconnected sockets not implemented

Hi, I’d appreciate help on this issue. I’ve provided info below.

I’m running SuSE 9, patch 4

I’ve downloaded latest version of openfire, got it running.

I installed the email listener and my problems began.

When I point /etc/sysconfig/openfire JAVA_HOME to /opt/openfire/jre (java 6) I get the following in my error log when trying to connect to gmail imap server via ssl:

2008.01.16 06:56:14 org.jivesoftware.openfire.plugin.emailListener.EmailListener.openFolder(EmailLis tener.java:281) Error while initializing email listener

javax.mail.MessagingException: java.lang.ClassNotFoundException: org.jivesoftware.util.SimpleSSLSocketFactory;

nested exception is:

java.net.SocketException: java.lang.ClassNotFoundException: org.jivesoftware.util.SimpleSSLSocketFactory

at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:571)

at javax.mail.Service.connect(Service.java:288)

at javax.mail.Service.connect(Service.java:169)

at org.jivesoftware.openfire.plugin.emailListener.EmailListener.openFolder(EmailLi stener.java:268)

at org.jivesoftware.openfire.plugin.emailListener.EmailListener.access$100(EmailLi stener.java:36)

at org.jivesoftware.openfire.plugin.emailListener.EmailListener$1.run(EmailListene r.java:80)

Caused by: java.net.SocketException: java.lang.ClassNotFoundException: org.jivesoftware.util.SimpleSSLSocketFactory

at javax.net.ssl.DefaultSSLSocketFactory.throwException(Unknown Source)

at javax.net.ssl.DefaultSSLSocketFactory.createSocket(Unknown Source)

at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:225)

at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)

at com.sun.mail.iap.Protocol.(IMAPProtocol.java:104)

at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:538)

… 5 more

Caused by: java.lang.ClassNotFoundException: org.jivesoftware.util.SimpleSSLSocketFactory

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at javax.net.ssl.SSLSocketFactory.getDefault(Unknown Source)

… 10 more

So knowing there are differences in javax, I downgraded to jdk1.5.0_06 and then run it and get the following:

2008.01.16 07:01:52 org.jivesoftware.openfire.plugin.emailListener.EmailListener.openFolder(EmailLis tener.java:281) Error while initializing email listener

javax.mail.MessagingException: Unconnected sockets not implemented;

nested exception is:

java.net.SocketException: Unconnected sockets not implemented

at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:571)

at javax.mail.Service.connect(Service.java:288)

at javax.mail.Service.connect(Service.java:169)

at org.jivesoftware.openfire.plugin.emailListener.EmailListener.openFolder(EmailLi stener.java:268)

at org.jivesoftware.openfire.plugin.emailListener.EmailListener.access$100(EmailLi stener.java:36)

at org.jivesoftware.openfire.plugin.emailListener.EmailListener$1.run(EmailListene r.java:80)

Caused by: java.net.SocketException: Unconnected sockets not implemented

at javax.net.SocketFactory.createSocket(SocketFactory.java:97)

at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:225)

at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)

at com.sun.mail.iap.Protocol.(IMAPProtocol.java:104)

at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:538)

… 5 more

Any help appreciated.

I found the exact line in the emaillistenere that is causing the problem. I’m going to close this and open a new discussion.

The exact line that is causing the socket not implemented message is

Security.setProperty("ssl.SocketFactory.provider, SSL_FACTORY);