ioexception without a message

View: New views
2 Messages — Rating Filter:   Alert me  

ioexception without a message

by Ronald Klop :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 listserv@... and include in the body of the message "signoff JAVAMAIL-INTEREST". For general help, send email to listserv@... and include in the body of the message "help".


Re: ioexception without a message

by Bill Shannon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ronald Klop wrote:
> 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.
...
> Is it possible to add a message to the exception like 'Server closed
> connection unexpectedly.'?

Yes, I'll do that.

Thanks for the suggestion.

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