geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geist Alexander (JIRA)" <j...@apache.org>
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
                 URL: http://issues.apache.org/jira/browse/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
String.

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

           Message message[] = folder.getMessages();

           for (int msgNum = 0; msgNum < message.length; msgNum++) {
              String text = (String)message[msgNum].getContent();

java.io.IOException: Underlying input stream returned zero bytes
   at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:268)
   at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
   at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
   at sun.nio.cs.StreamDecoder.read0(StreamDecoder.java:107)
   at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:93)
   at java.io.InputStreamReader.read(InputStreamReader.java:151)
   at org.apache.geronimo.mail.handlers.TextHandler.getContent(TextHandler.java:107)
   at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:774)
   at javax.activation.DataHandler.getContent(DataHandler.java:521)
   at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:923)
   at keygen.main.MailReceiver.receive(MailReceiver.java:49)
   at keygen.main.MailReceiver.main(MailReceiver.java:173) 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message