Service Virtualization

Expand all | Collapse all

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

Jump to Best Answer
  • 1.  ERROR System.err -[Fatal Error] :1:1: Content is not allowed in prolog

    Posted 04-16-2018 04:22 AM

    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.



  • 2.  Re: ERROR System.err -[Fatal Error] :1:1: Content is not allowed in prolog
    Best Answer

    Broadcom Employee
    Posted 05-30-2018 05:43 PM

    > ERROR com.itko.lisa.vse.stateful.common.datahandler.XMLPayloadParserDataProtocolHandler - An error occurred processing the set of actions for the XML payload parser. 

     

    You can hide this by adding the following line to logging.properties: 
    log4j.logger.com.itko.lisa.vse.stateful.common.datahandler.XMLPayloadParserDataProtocolHandler=FATAL 

     

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

     

    This one is more problematic, as the XML library we're using is writing this directly to Standard Error. There are some ways to disable this in code, but I'm not aware of any system properties you can set. 

     

    https://communities.ca.com/thread/241761354



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

    Broadcom Employee
    Posted 06-01-2018 11:43 AM

    Did my reply help you with this issue?