[jboss-user] [Beginners Corner] - IMAP envelope exception with JBoss Mail

bjwaski do-not-reply at jboss.com
Tue Oct 17 17:47:42 EDT 2006

I'm trying to use IMAP to retrieve messages from JBoss Mail. I'm able to get the array of messages, but when I try to iterate through them and print out the message subjects, I get:

Exception in thread "main" javax.mail.MessagingException: Failed to load IMAP envelope
	at com.sun.mail.imap.IMAPMessage.loadEnvelope(IMAPMessage.java:1196)
	at com.sun.mail.imap.IMAPMessage.getSubject(IMAPMessage.java:302)

And the server has this error message:

13:34:41,201 ERROR [STDERR] TODO Implement subfolders for LIST command
13:34:41,342 ERROR [STDERR] TODO implement FETCH
13:34:41,405 INFO  [ConnectionHandler] ConnectionHandler finished
13:34:41,405 ERROR [STDERR] Exception in thread "Thread-23"
13:34:41,405 ERROR [STDERR] java.lang.RuntimeException: java.net.SocketException
: Connection reset
13:34:41,405 ERROR [STDERR]     at org.jboss.mail.ConnectionHandler.runSocket(ConnectionHandler.java:222)
13:34:41,405 ERROR [STDERR]     at org.jboss.mail.ConnectionHandler.run(ConnectionHandler.java:97)

Any ideas? Has this functionality perhaps not yet been fully implemented?

Thanks for your help.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978902#3978902

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978902

More information about the jboss-user mailing list