opensubscriber
   Find in this group all groups
 
Unknown more information…

j : javamail-interest@java.sun.com 20 March 2009 • 8:14PM -0400

NullpointerException when closing folder
by Wolfgang Beikircher

REPLY TO AUTHOR
 
REPLY TO GROUP




Hi there!

I'm using JavaMail 1.4.2 and get an NullPointerException when I try to
close a folder. This happens only after some hours of run time of my
application. Therefore, I think it has something to do with the
connection timeout to the server.

This is the error stack:

Caused by: java.lang.NullPointerException
at com.sun.mail.iap.Protocol.command(Protocol.java:324)
at
com.sun.mail.imap.protocol.IMAPProtocol.logout(IMAPProtocol.java:311)
at com.sun.mail.imap.IMAPStore.releaseProtocol(IMAPStore.java:944)
at com.sun.mail.imap.IMAPFolder.releaseProtocol(IMAPFolder.java:2666)
at com.sun.mail.imap.IMAPFolder.cleanup(IMAPFolder.java:1143)
at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1132)
at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1055)
at com.sun.mail.imap.IMAPStore.cleanup(IMAPStore.java:1289)
at com.sun.mail.imap.IMAPStore.handleResponse(IMAPStore.java:1509)
at com.sun.mail.iap.Protocol.notifyResponseHandlers(Protocol.java:216)
at
com.sun.mail.imap.protocol.IMAPProtocol.logout(IMAPProtocol.java:316)
at com.sun.mail.imap.IMAPStore.close(IMAPStore.java:1217)
at
org.zimbra.exchange.email.transport.ImapMailServerWrapper.releaseConnection(ImapMailServerWrapper.java:129)
... 7 more


Could someone propose a workaround?

Thanks.

Sincerely,
Wolfgang Beikircher

===========================================================================
To unsubscribe, send email to listserv@java... and include in the body
of the message "signoff JAVAMAIL-INTEREST".  For general help, send email to
listserv@java... and include in the body of the message "help".

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.