java.lang.ClassCastException: java.io.ByteArrayInputStream

Oracle Community | 807551 | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    bypassing SOAPMessage attachment content handler

    Oracle Community | 1 decade ago | 807551
    java.lang.ClassCastException: java.io.ByteArrayInputStream

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.io.ByteArrayInputStream

      at com.sun.xml.messaging.saaj.soap.JpegDataContentHandler.writeTo()
    2. Metro Web Services Runtime OSGi Bundle
      JpegDataContentHandler.writeTo
      1. com.sun.xml.messaging.saaj.soap.JpegDataContentHandler.writeTo(JpegDataContentHandler.java:125)
      1 frame
    3. Java RT
      DataHandler.writeTo
      1. javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849)
      2. javax.activation.DataHandler.writeTo(DataHandler.java:305)
      2 frames
    4. JavaMail API
      MimeMultipart.writeTo
      1. javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
      2. javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:635)
      3. javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:233)
      3 frames
    5. Metro Web Services Runtime OSGi Bundle
      MessageImpl.saveChanges
      1. com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:372)
      1 frame