org.dom4j.DocumentException: Error on line 4 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. Error on line 4 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.

Pentaho BI Platform Tracking | Dmitry Dudalov | 5 years ago
  1. 0

    I meet very strange issue. I have some transformations with XML parsing and store it to database. If i use simple files - no problem all works fine, but if i import that transformation to database repository i had issue below, Extract Contracts - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : Unexpected Error : org.pentaho.di.core.exception.KettleException: 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : org.dom4j.DocumentException: Error on line 2 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : Error on line 2 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : org.pentaho.di.core.exception.KettleException: 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : org.dom4j.DocumentException: Error on line 2 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : Error on line 2 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.setDocument(GetXMLData.java:182) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.ReadNextString(GetXMLData.java:404) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRowPutRowWithErrorhandling(GetXMLData.java:713) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRow(GetXMLData.java:699) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.processRow(GetXMLData.java:656) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at java.lang.Thread.run(Unknown Source) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : Caused by: org.dom4j.DocumentException: Error on line 2 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.dom4j.io.SAXReader.read(SAXReader.java:482) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.dom4j.io.SAXReader.read(SAXReader.java:365) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.setDocument(GetXMLData.java:155) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : ... 6 more 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : Unexpected Error : org.pentaho.di.core.exception.KettleException: 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : org.dom4j.DocumentException: Error on line 4 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : Error on line 4 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : org.pentaho.di.core.exception.KettleException: 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : org.dom4j.DocumentException: Error on line 4 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : Error on line 4 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.setDocument(GetXMLData.java:182) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.ReadNextString(GetXMLData.java:404) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRowPutRowWithErrorhandling(GetXMLData.java:713) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRow(GetXMLData.java:699) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.processRow(GetXMLData.java:656) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at java.lang.Thread.run(Unknown Source) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : Caused by: org.dom4j.DocumentException: Error on line 4 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.dom4j.io.SAXReader.read(SAXReader.java:482) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.dom4j.io.SAXReader.read(SAXReader.java:365) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.setDocument(GetXMLData.java:155) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : ... 6 more

    Pentaho BI Platform Tracking | 5 years ago | Dmitry Dudalov
    org.dom4j.DocumentException: Error on line 4 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. Error on line 4 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.
  2. 0

    I meet very strange issue. I have some transformations with XML parsing and store it to database. If i use simple files - no problem all works fine, but if i import that transformation to database repository i had issue below, Extract Contracts - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : Unexpected Error : org.pentaho.di.core.exception.KettleException: 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : org.dom4j.DocumentException: Error on line 2 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : Error on line 2 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : org.pentaho.di.core.exception.KettleException: 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : org.dom4j.DocumentException: Error on line 2 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : Error on line 2 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.setDocument(GetXMLData.java:182) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.ReadNextString(GetXMLData.java:404) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRowPutRowWithErrorhandling(GetXMLData.java:713) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRow(GetXMLData.java:699) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.processRow(GetXMLData.java:656) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at java.lang.Thread.run(Unknown Source) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : Caused by: org.dom4j.DocumentException: Error on line 2 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.dom4j.io.SAXReader.read(SAXReader.java:482) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.dom4j.io.SAXReader.read(SAXReader.java:365) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.setDocument(GetXMLData.java:155) 2012/05/17 17:03:03 - extract financies.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : ... 6 more 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : Unexpected Error : org.pentaho.di.core.exception.KettleException: 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : org.dom4j.DocumentException: Error on line 4 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : Error on line 4 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : org.pentaho.di.core.exception.KettleException: 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : org.dom4j.DocumentException: Error on line 4 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : Error on line 4 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.setDocument(GetXMLData.java:182) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.ReadNextString(GetXMLData.java:404) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRowPutRowWithErrorhandling(GetXMLData.java:713) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRow(GetXMLData.java:699) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.processRow(GetXMLData.java:656) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at java.lang.Thread.run(Unknown Source) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : Caused by: org.dom4j.DocumentException: Error on line 4 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.dom4j.io.SAXReader.read(SAXReader.java:482) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.dom4j.io.SAXReader.read(SAXReader.java:365) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.setDocument(GetXMLData.java:155) 2012/05/17 17:03:03 - parseproducts.0 - ERROR (version 4.3.0-stable, build 16786 from 2012-04-24 14.11.32 by buildguy) : ... 6 more

    Pentaho BI Platform Tracking | 5 years ago | Dmitry Dudalov
    org.dom4j.DocumentException: Error on line 4 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. Error on line 4 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.
  3. 0

    Get data from XML give error "Content is not allowed in prolog"

    pentaho.com | 11 months ago
    org.dom4j.DocumentException: Error on line 1 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. Error on line 1 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    xml-parsing error in liferay 6.1.1

    Stack Overflow | 4 years ago | dmitrievanthony
    com.liferay.portal.kernel.deploy.auto.AutoDeployException: com.liferay.portal.kernel.xml.DocumentException: Error on line 1 of document : The value following "version" in the XML declaration must be a quoted string. Nested exception: The value following "version" in the XML declaration must be a quoted string.
  6. 0

    xml api broken in 1.399?

    Google Groups | 6 years ago | Brian J. Murrell
    hudson.util.IOException2: Error on line 1 of document : Element type "origin" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "origin" must be followed by either attribute specifications, ">" or "/>".

    41 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.dom4j.DocumentException

      Error on line 4 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.

      at org.dom4j.io.SAXReader.read()
    2. dom4j
      SAXReader.read
      1. org.dom4j.io.SAXReader.read(SAXReader.java:482)
      2. org.dom4j.io.SAXReader.read(SAXReader.java:365)
      2 frames
    3. org.pentaho.di
      RunThread.run
      1. org.pentaho.di.trans.steps.getxmldata.GetXMLData.setDocument(GetXMLData.java:155)
      2. org.pentaho.di.trans.steps.getxmldata.GetXMLData.ReadNextString(GetXMLData.java:404)
      3. org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRowPutRowWithErrorhandling(GetXMLData.java:713)
      4. org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRow(GetXMLData.java:699)
      5. org.pentaho.di.trans.steps.getxmldata.GetXMLData.processRow(GetXMLData.java:656)
      6. org.pentaho.di.trans.step.RunThread.run(RunThread.java:50)
      6 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame