AnsweredAssumed Answered

ERROR System.err -[Fatal Error] :1:1: Content is not allowed in prolog

Question asked by mohdmudassir1989 on Apr 16, 2018
Latest reply on Jun 1, 2018 by MarcyNunns

Hi Team,

 

I am using JSON 2.0 and generic XML Payload parser data protocol filter at listen step to process both JSON and XML requests which are coming from application side.

 

In case of XML request it's working fine but when json request is coming frequent VSE logs getting generated with below error.

 

2018-04-13 14:39:11,549Z (10:39) [Ebusiness_CommonWealth_04012018_LAB_FDR-GPU_HTTP_Test [VS_Ebusiness_CommonWealth_04012018_LAB_FDR-GPU_HTTP_Test_Run]/1] ERROR System.err - [Fatal Error] :1:1: Content is not allowed in prolog.
2018-04-13 14:39:11,549Z (10:39) [Ebusiness_CommonWealth_04012018_LAB_FDR-GPU_HTTP_Test [VS_Ebusiness_CommonWealth_04012018_LAB_FDR-GPU_HTTP_Test_Run]/1] ERROR com.itko.lisa.vse.stateful.common.datahandler.XMLPayloadParserDataProtocolHandler - An error occurred processing the set of actions for the XML payload parser.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at com.itko.util.XMLUtils.newXMLDocument(XMLUtils.java:702)
at com.itko.util.XMLUtils.openXMLDocFromStrBuffer(XMLUtils.java:764)
at com.itko.util.XMLUtils.openXMLDocFromStrBuffer(XMLUtils.java:756)
at com.itko.lisa.vse.stateful.common.datahandler.XMLPayloadParserDataProtocolHandler.updateRequest(XMLPayloadParserDataProtocolHandler.java:217)
at com.itko.lisa.vse.stateful.protocol.DataProtocol.updateRequest(DataProtocol.java:83)
at com.itko.lisa.vse.stateful.common.DataProtocolFilter.subPostFilter(DataProtocolFilter.java:228)
at com.itko.lisa.test.FilterBaseImpl.subFilter(FilterBaseImpl.java:148)
at com.itko.lisa.test.FilterBaseImpl.postFilter(FilterBaseImpl.java:122)
at com.itko.lisa.test.TestNode.doFilters(TestNode.java:1554)
at com.itko.lisa.test.TestNode.doPostFilters(TestNode.java:1503)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:998)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1297)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1183)
at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1124)
at com.itko.lisa.coordinator.Instance.run(Instance.java:208)

 

 

Please help to suggest why Generic XML payload parser is getting executed for JSON request.

Outcomes