org.apache.axiom.om.OMException: org.apache.axiom.ext.io.StreamCopyException: Error reading from source

Stack Overflow | Ralph Henze | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    "boundary not found" in WSO2 ESB while processing MTOM response

    Stack Overflow | 7 months ago | Ralph Henze
    org.apache.axiom.om.OMException: org.apache.axiom.ext.io.StreamCopyException: Error reading from source

    Root Cause Analysis

    1. java.io.IOException

      End of Stream, but boundary not found

      at org.apache.axiom.attachments.BoundaryPushbackInputStream.read()
    2. Axiom API
      OMSerializerUtil.serializeByPullStream
      1. org.apache.axiom.attachments.BoundaryPushbackInputStream.read(BoundaryPushbackInputStream.java:258)
      2. org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java:87)
      3. org.apache.axiom.attachments.utils.BAAOutputStream.readFrom(BAAOutputStream.java:112)
      4. org.apache.axiom.attachments.impl.BufferUtils.inputStream2OutputStream(BufferUtils.java:76)
      5. org.apache.axiom.attachments.impl.PartFactory.createPart(PartFactory.java:136)
      6. org.apache.axiom.attachments.Attachments.getPart(Attachments.java:705)
      7. org.apache.axiom.attachments.Attachments.getNextPartDataHandler(Attachments.java:623)
      8. org.apache.axiom.attachments.Attachments.getDataHandler(Attachments.java:350)
      9. org.apache.axiom.om.impl.builder.OMAttachmentAccessorMimePartProvider.getDataHandler(OMAttachmentAccessorMimePartProvider.java:45)
      10. org.apache.axiom.util.stax.xop.XOPDecodingStreamReader$DataHandlerProviderImpl.getDataHandler(XOPDecodingStreamReader.java:81)
      11. org.apache.axiom.om.impl.OptimizationPolicyImpl.isOptimized(OptimizationPolicyImpl.java:88)
      12. org.apache.axiom.util.stax.xop.XOPEncodingStreamWrapper.processDataHandler(XOPEncodingStreamWrapper.java:65)
      13. org.apache.axiom.util.stax.xop.XOPEncodingStreamWriter.writeDataHandler(XOPEncodingStreamWriter.java:94)
      14. org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeDataHandler(StreamingOMSerializer.java:587)
      15. org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode(StreamingOMSerializer.java:168)
      16. org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:107)
      17. org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:76)
      18. org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMSerializerUtil.java:547)
      18 frames
    3. Axiom Impl
      OMSerializableImpl.serializeAndConsume
      1. org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:249)
      2. org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:193)
      2 frames
    4. Apache Axis2 - Transport - HTTP
      SOAPMessageFormatter.writeTo
      1. org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
      1 frame
    5. Apache Synapse - Non-blocking HTTP/s Transport
      HttpCoreNIOSender.invoke
      1. org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:511)
      2. org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:266)
      2 frames
    6. org.apache.axis2
      AxisEngine.send
      1. org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
      1 frame
    7. Apache Synapse - Core
      SynapseCallbackReceiver.receive
      1. org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:208)
      2. org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:433)
      3. org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102)
      4. org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
      5. org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
      6. org.apache.synapse.mediators.filters.OutMediator.mediate(OutMediator.java:61)
      7. org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
      8. org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
      9. org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:135)
      10. org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:308)
      11. org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:500)
      12. org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
      12 frames
    8. org.apache.axis2
      AxisEngine.receive
      1. org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
      1 frame
    9. Apache Synapse - Non-blocking HTTP/s Transport
      ClientWorker.run
      1. org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java:310)
      1 frame
    10. Apache Axis2 - Transport - Base
      NativeWorkerPool$1.run
      1. org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
      1 frame
    11. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames