org.apache.axis2.AxisFault

Could not convert JSON Stream to XML. Cannot handle JSON input.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

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

Solutions on the web861

  • via Stack Overflow by thotchkiss
    , 9 months ago
    Could not convert JSON Stream to XML. Cannot handle JSON input.
  • via Stack Overflow by muton92
    , 3 weeks ago
    Could not convert JSON Stream to XML. Cannot handle JSON input.
  • Could not write JSON stream.
  • Stack trace

    • 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

    You’re the first here who have seen this exception.