java.io.IOException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Error when using .NET WebAPI with APIM 2.0
    via Stack Overflow by thotchkiss
    ,
    • java.io.IOException: Unexpected symbol: END_OBJECT 2016-10-07 07:07:27,324 [-] [PassThroughMessageProcessor-6] ERROR DeferredMessageBuilder Error building message org.apache.axis2.AxisFault: Could not convert JSON Stream to XML. Cannot handle JSON input. at org.apache.synapse.commons.json.JsonUtil.toXml(JsonUtil.java:281) at org.apache.synapse.commons.json.JsonBuilder.processDocument(JsonBuilder.java:35) at org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:148) at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:137) at org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:100) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:49) at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:160) at org.apache.synapse.mediators.MediatorFaultHandler.onFault(MediatorFaultHandler.java:89) at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:53) at org.apache.synapse.endpoints.AbstractEndpoint.invokeNextFaultHandler(AbstractEndpoint.java:690) at org.apache.synapse.endpoints.AbstractEndpoint.onFault(AbstractEndpoint.java:525) at org.apache.synapse.endpoints.HTTPEndpoint.onFault(HTTPEndpoint.java:66) at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:101) at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:271) at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:179) at org.apache.synapse.transport.passthru.TargetErrorHandler$1.run(TargetErrorHandler.java:139) at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: javax.xml.stream.XMLStreamException: java.io.IOException: Unexpected symbol: END_OBJECT at org.apache.synapse.commons.staxon.core.base.AbstractXMLStreamReader.initialize(AbstractXMLStreamReader.java:245) at org.apache.synapse.commons.staxon.core.json.JsonXMLStreamReader.<init>(JsonXMLStreamReader.java:66) at org.apache.synapse.commons.staxon.core.json.JsonXMLInputFactory.createXMLStreamReader(JsonXMLInputFactory.java:165) at org.apache.synapse.commons.json.JsonUtil.getReader(JsonUtil.java:316) at org.apache.synapse.commons.json.JsonUtil.getReader(JsonUtil.java:298) at org.apache.synapse.commons.json.JsonUtil.toXml(JsonUtil.java:277) ... 20 more Caused by: java.io.IOException: Unexpected symbol: END_OBJECT at org.apache.synapse.commons.staxon.core.json.stream.impl.JsonStreamSourceImpl.startJsonValue(JsonStreamSourceImpl.java:125) at org.apache.synapse.commons.staxon.core.json.stream.impl.JsonStreamSourceImpl.next(JsonStreamSourceImpl.java:144) at org.apache.synapse.commons.staxon.core.json.stream.impl.JsonStreamSourceImpl.peek(JsonStreamSourceImpl.java:272) at org.apache.synapse.commons.staxon.core.json.JsonXMLStreamReader.consume(JsonXMLStreamReader.java:129) at org.apache.synapse.commons.staxon.core.base.AbstractXMLStreamReader.initialize(AbstractXMLStreamReader.java:243) ... 25 more
    No Bugmate found.