wso2 / product-micro-integrator

The cloud-native configuration driven runtime that helps developers implement composite microservices.
https://wso2.com/integration/
Apache License 2.0
204 stars 221 forks source link

JSON building error #3773

Closed PrabodDunuwila closed 1 day ago

PrabodDunuwila commented 1 week ago

Description

When trying to log a json payload with \\\\ getting the below error.

[2024-11-11 00:00:12,337] [-1234] [] [PassThroughMessageProcessor-203] ERROR {org.apache.synapse.mediators.builtin.LogMediator} -  Could not build full log message: Error obtaining parser from data source:null
java.lang.RuntimeException: Error obtaining parser from data source:null
    at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.getDirectReader(OMSourcedElementImpl.java:229)
    at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.forceExpand(OMSourcedElementImpl.java:252)
    at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerialize(OMSourcedElementImpl.java:677)

Caused by: javax.xml.stream.XMLStreamException
    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:88)
    at org.apache.synapse.commons.staxon.core.json.JsonXMLInputFactory.createXMLStreamReader(JsonXMLInputFactory.java:170)

Steps to Reproduce

-

Version

EI 6.4.0

Environment Details (with versions)

No response

malakaganga commented 1 day ago

Duplicate of: https://github.com/wso2/product-ei/issues/3775