Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: Content is not allowed in prolog

  1. #1

    Default Content is not allowed in prolog

    Hello,
    I have a transformation elaborate via PDI. When run through PDI interface : no problem it works correctly but when I try to execute it via Pan it fails with the following output.
    I have done a lot of transformations that daily run in our business via Pan Or Kitchen and I've never met this problem.
    Thank you for your attention,
    Lionel

    Pan.bat log :
    =================================================
    DEBUG: Using JAVA_HOME
    DEBUG: _PENTAHO_JAVA_HOME=C:\Program Files\Java\jre1.7.0_51
    DEBUG: _PENTAHO_JAVA=C:\Program Files\Java\jre1.7.0_51\bin\java.exe

    D:\PDI-5.2.0-stable>"C:\Program Files\Java\jre1.7.0_51\bin\java.exe" "-Xmx512m"
    "-XX:MaxPermSize=256m" "-Djava.library.path=libswt\win32" "-DKETTLE_HOME=" "-DK
    ETTLE_REPOSITORY=" "-DKETTLE_USER=" "-DKETTLE_PASSWORD=" "-DKETTLE_PLUGIN_PACKAG
    ES=" "-DKETTLE_LOG_SIZE_LIMIT=" "-DKETTLE_JNDI_ROOT=" -jar launcher\pentaho-appl
    ication-launcher-5.2.0.0-209.jar -lib ..\libswt\win32 -main org.pentaho.di.pan.
    Pan /file:"Z:\Compiere\Kettle-PDI\Jobs\Production\MAJ_Emplacements\MAJ_Emplaceme
    nts.bat" /log:"Z:\Compiere\Kettle-PDI\Jobs\Production\MAJ_Emplacements\MAJ_Empla
    cements.log" /levelebug
    2015/04/15 10:47:34 - Pan - Niveau de trace : DÚbogage
    Arguments:
    rep :
    user :
    pass :
    trans :
    dir :
    file : Z:\Compiere\Kettle-PDI\Jobs\Production\MAJ_Emplacements\MAJ_Empla
    cements.bat
    level : Debug
    logfile :
    log : Z:\Compiere\Kettle-PDI\Jobs\Production\MAJ_Emplacements\MAJ_Empla
    cements.log
    listdir :
    listtrans :
    listrep :
    exprep :
    norep :
    safemode :
    version :
    jarfile :
    param : null
    listparam :
    metrics :
    maxloglines :
    maxlogtimeou :

    2015/04/15 10:47:34 - Pan - DÚmarrage
    2015/04/15 10:47:34 - Pan - Allocation nouvelle transformation.
    2015/04/15 10:47:34 - Pan - Demarrage analyse arguments passes...
    2015/04/15 10:47:34 - Pan - Analyse des arguments passes.
    2015/04/15 10:47:34 - Pan - Chargement de la transformation depuis le fichier XM
    L [Z:\Compiere\Kettle-PDI\Jobs\Production\MAJ_Emplacements\MAJ_Emplacements.bat]

    [Fatal Error] :1:1: Content is not allowed in prolog.
    Le traitement a ete arrete suite Ó une erreur:
    Error reading information from input stream
    Content is not allowed in prolog.

    org.pentaho.di.core.exception.KettleXMLException:
    Error reading information from input stream
    Content is not allowed in prolog.

    at org.pentaho.di.core.xml.XMLHandler.loadXMLFile(XMLHandler.java:636)
    at org.pentaho.di.core.xml.XMLHandler.loadXMLFile(XMLHandler.java:557)
    at org.pentaho.di.core.xml.XMLHandler.loadXMLFile(XMLHandler.java:538)
    at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2660)
    at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2628)
    at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2605)
    at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2585)
    at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2550)
    at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2513)
    at org.pentaho.di.pan.Pan.main(Pan.java:380)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
    Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Conten
    t is not allowed in prolog.
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
    at org.pentaho.di.core.xml.XMLHandler.loadXMLFile(XMLHandler.java:613)
    ... 14 more
    =================================================

  2. #2
    Join Date
    Oct 2010
    Posts
    369

    Default

    You are running batch file with Pan that's why you are getting this error. you need to run ".ktr" file .
    Pan /file:"Z:\Compiere\Kettle-PDI\Jobs\Production\MAJ_Emplacements\MAJ_Emplaceme

    nts.bat"

  3. #3

    Default


    What a shame...
    Thank you very much !

    Lionel

  4. #4
    Join Date
    Apr 2008
    Posts
    4,690

    Default

    Quote Originally Posted by Lionel_Chapuis View Post

    What a shame...
    Thank you very much !

    Lionel
    Why is it a shame?
    You can run PDI Transforms with a batch file, or a PDI Job with a batch file, and if you need to, there is a shell script step to run a batch within PDI.

    But what you've asked for is akin to saying that it's a shame that you can't open your application extension (DLL file) with your PDF reader.

  5. #5

    Default

    Quote Originally Posted by gutlez View Post
    Why is it a shame?
    I think you misunderstood me.
    I'm only astonished to have done such stupid mistake... What a shame to be so absent-minded.

    Lionel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.