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.

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via Stack Overflow by thotchkiss
    ,
  • Stack trace

    • 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

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.