Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-472

ServiceMix-Mail broken in SMX4

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • servicemix-mail-2009.01
    • servicemix-mail-2009.01
    • servicemix-mail
    • None
    • Linux 2.6
      ServiceMix 4 (trunk)

    • Regression

    Description

      Somehow the mail component is broken in SMX4. Didn't checked yet for SMX3.

      When receiving a mail with attachment from a IMAP server I get the following exception:

      15:51:16,712 | ERROR | ix-mail-thread-5 | MailComponent                    | common.endpoints.PollingEndpoint  222 | Caught exception while polling: org.apache.geronimo.javamail.util.ResponseFormatException: String token expected in response: (
      org.apache.geronimo.javamail.util.ResponseFormatException: String token expected in response: (
      	at org.apache.geronimo.javamail.store.imap.connection.IMAPResponseTokenizer.readString(IMAPResponseTokenizer.java:620)
      	at org.apache.geronimo.javamail.store.imap.connection.IMAPBodyStructure.parseMessageExtensions(IMAPBodyStructure.java:171)
      	at org.apache.geronimo.javamail.store.imap.connection.IMAPBodyStructure.parseSinglepartBodyStructure(IMAPBodyStructure.java:153)
      	at org.apache.geronimo.javamail.store.imap.connection.IMAPBodyStructure.parseBodyStructure(IMAPBodyStructure.java:76)
      	at org.apache.geronimo.javamail.store.imap.connection.IMAPBodyStructure.<init>(IMAPBodyStructure.java:62)
      	at org.apache.geronimo.javamail.store.imap.connection.IMAPBodyStructure.parseMultipartBodyStructure(IMAPBodyStructure.java:87)
      	at org.apache.geronimo.javamail.store.imap.connection.IMAPBodyStructure.parseBodyStructure(IMAPBodyStructure.java:73)
      	at org.apache.geronimo.javamail.store.imap.connection.IMAPBodyStructure.<init>(IMAPBodyStructure.java:62)
      	at org.apache.geronimo.javamail.store.imap.connection.IMAPFetchResponse.<init>(IMAPFetchResponse.java:54)
      	at org.apache.geronimo.javamail.store.imap.connection.IMAPResponseStream.readResponse(IMAPResponseStream.java:124)
      	at org.apache.geronimo.javamail.store.imap.connection.IMAPConnection.receiveResponse(IMAPConnection.java:396)
      	at org.apache.geronimo.javamail.store.imap.connection.IMAPConnection.sendCommand(IMAPConnection.java:324)
      	at org.apache.geronimo.javamail.store.imap.connection.IMAPConnection.fetchBodyStructure(IMAPConnection.java:917)
      	at org.apache.geronimo.javamail.store.imap.IMAPMessage.loadBodyStructure(IMAPMessage.java:943)
      	at org.apache.geronimo.javamail.store.imap.IMAPMessage.getDataHandler(IMAPMessage.java:756)
      	at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:927)
      	at org.apache.servicemix.mail.marshaler.DefaultMailMarshaler.copyBodyAndAttachments(DefaultMailMarshaler.java:464)
      	at org.apache.servicemix.mail.marshaler.DefaultMailMarshaler.convertMailToJBI(DefaultMailMarshaler.java:75)
      	at org.apache.servicemix.mail.MailPollerEndpoint.poll(MailPollerEndpoint.java:254)
      	at org.apache.servicemix.common.endpoints.PollingEndpoint$PollSchedulerTask$1.run(PollingEndpoint.java:202)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      	at java.lang.Thread.run(Thread.java:595)
      

      If I receive a text/plain email without attachments I get the following warning and the body property in NMSG is empty afterwards:

      15:52:16,645 | WARN  | ix-mail-thread-7 | DefaultMailMarshaler             | l.marshaler.DefaultMailMarshaler  537 | The content of the mail message is not supported by this component. (java.io.ByteArrayInputStream)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            lhein Lars Heinemann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: