geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geist Alexander (JIRA)" <>
Subject [jira] Created: (GERONIMO-2681) IOException when reading content of a message
Date Mon, 01 Jan 2007 23:41:27 GMT
IOException when reading content of a message

                 Key: GERONIMO-2681
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: mail
    Affects Versions: 2.0-M1
            Reporter: Geist Alexander

Reading a content from a simple text-message. Tests with another text-messege returns an empty

Sample code:
            Folder folder = store.getFolder("INBOX");

           Message message[] = folder.getMessages();

           for (int msgNum = 0; msgNum < message.length; msgNum++) {
              String text = (String)message[msgNum].getContent(); Underlying input stream returned zero bytes
   at sun.nio.cs.StreamDecoder.readBytes(
   at sun.nio.cs.StreamDecoder.implRead(
   at sun.nio.cs.StreamDecoder.read0(
   at org.apache.geronimo.mail.handlers.TextHandler.getContent(
   at javax.activation.DataSourceDataContentHandler.getContent(
   at javax.activation.DataHandler.getContent(
   at javax.mail.internet.MimeMessage.getContent(
   at keygen.main.MailReceiver.receive(
   at keygen.main.MailReceiver.main( 

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message