Openfire
  1. Openfire
  2. OF-485

Email Listener plugin throws exception on IMAP connection

    Details

      Description

      I just install openfire 3.7 with email listener plugin.
      When i test imap email listener, status failed.
      this log found.

      at javax.net.ssl.DefaultSSLSocketFactory.throwException(SSLSocketFactory.java:179)

      at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:186)
      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.<init>(Protocol.java:107)
      at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:104)
      at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:538)
      ... 47 more
      Caused by: java.lang.ClassNotFoundException: org.jivesoftware.util.SimpleSSLSocketFactory
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:85)
      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.<init>(Protocol.java:107)
      at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:104)
      at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:538)
      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:288)
      at org.jivesoftware.openfire.plugin.emailListener.EmailListener.access$100(EmailLi stener.java:45)
      at org.jivesoftware.openfire.plugin.emailListener.EmailListener$1.run(EmailListene r.java:96)

      Another observation:
      Using Wireshark I watched the imap connection and noticed this when my Email Listener test failed:

      • BAD Protocol Error: "Command received without terminating <CR><LF> sequence".\r\n

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            wroot
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development