Ronald Klop
2009-01-02 11:50:06 UTC
Hi,
I just downloaded the source of javamail to figure out what this exception means. The cause is quite clear from the code, because read() == -1 is an unexpectected EOF in this case.
Caused by: java.io.IOException
at com.sun.mail.iap.ResponseInputStream.read0(ResponseInputStream.java:99)
at com.sun.mail.iap.ResponseInputStream.readResponse(ResponseInputStream.java:67)
at com.sun.mail.iap.Response.<init>(Response.java:83)
at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:48)
at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:122)
at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:230)
at com.sun.mail.iap.Protocol.<init>(Protocol.java:91)
at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:87)
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:446)
The exception happens to me if I hit the MAXPERIP connection limit of courier-imap.
Is it possible to add a message to the exception like 'Server closed connection unexpectedly.'?
Greetings,
Ronald.
===========================================================================
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 just downloaded the source of javamail to figure out what this exception means. The cause is quite clear from the code, because read() == -1 is an unexpectected EOF in this case.
Caused by: java.io.IOException
at com.sun.mail.iap.ResponseInputStream.read0(ResponseInputStream.java:99)
at com.sun.mail.iap.ResponseInputStream.readResponse(ResponseInputStream.java:67)
at com.sun.mail.iap.Response.<init>(Response.java:83)
at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:48)
at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:122)
at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:230)
at com.sun.mail.iap.Protocol.<init>(Protocol.java:91)
at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:87)
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:446)
The exception happens to me if I hit the MAXPERIP connection limit of courier-imap.
Is it possible to add a message to the exception like 'Server closed connection unexpectedly.'?
Greetings,
Ronald.
===========================================================================
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".