Wolfgang Beikircher
2009-03-20 11:14:24 UTC
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 ***@java.sun.com and include in the body
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
***@java.sun.com and include in the body of the message "help".
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 ***@java.sun.com and include in the body
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
***@java.sun.com and include in the body of the message "help".