0 Replies Latest reply on Oct 5, 2011 4:51 PM by Kannan G

    Fuse upgrade issue - Email sender failing

    Kannan G Newbie



      Again we are upgrading to 4.4.1-08 version. This time we are getting SharedByteArrayInputStream related exceptions from Mail sending bundle. It was working fine in 4.3.0 and 4.4.1-06 versions. The below are exceptions from 4.4.1-08 -


      i) javax.mail.MessagingException: MIME part of type "multipart/mixed;

      boundary="----=_Part_0_11511434.1317713306605"" contains object of type javax.mail.util.SharedByteArrayInputStream instead of MimeMultipart

      at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1347)69:javax.mail:1.4.4

      at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2106)69:javax.mail:1.4.4

      at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2074)69:javax.mail:1.4.4


      ii) java.lang.ClassCastException: javax.mail.util.SharedByteArrayInputStream cannot be cast to javax.mail.Multipart.


      By setting this stream to DataHandler, class cast issue(above ii) is resolved, but it is not escaping from the exception i.


      Another interesting thing noticed is when this mail bundle is triggered from Eclipse(JUnit), SharedByteArrayInputStream object is not emerging but it is created in fuse 4.4.1-08. Is it some class loading issue? We are using javax.mail-1.4.4.


      Please share any suggestions.





      Edited by: kanmisc on Oct 5, 2011 8:50 PM