[jboss-jira] [JBoss JIRA] Created: (JBMAIL-252) Failed to load IMAP envelope

Brian Waskiewicz (JIRA) jira-events at jboss.com
Wed Oct 18 10:18:41 EDT 2006


Failed to load IMAP envelope
----------------------------

                 Key: JBMAIL-252
                 URL: http://jira.jboss.com/jira/browse/JBMAIL-252
             Project: JBoss Mail
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: IMAP
    Affects Versions: 1.0-M5
         Environment: Windows XP, JBoss Mail 1.0-M5
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
            Reporter: Brian Waskiewicz
         Assigned To: Andrew Oliver


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)

This only happens when I try to get a property of the message (getSubject(), etc). If I just iterate through the messages and call their toString method, it works fine.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list