4 Replies Latest reply: Aug 29, 2012 12:48 AM by Kartik Pasunuri-Oracle RSS

    Import Config through an Transaction Graph- XML Parse Error

    Kartik Pasunuri-Oracle
      Hi All,

      I am trying to import the attributes using ImportConfig element and was successful in doing that.

      I have following graphs in my project right now:

      1. InitDataStore
      2. ExportConfig
      3. LoadData
      4. loadAttributes.

      All the above graphs run successfully when i run them one by one each.

      Now I have created a transaction graph ( Similar to Baseline Graph of Quick Start) which inturn executes above mentioned four graphs. Unfortunately the transaction is failing while executing laodAttributes graph with the following error:

      --------------------------------------------------------------------------------------------------------------------
      INFO [RUN_GRAPH1_0] - Running graph ./graph/loadAttributes.grf in the same instance.
      INFO [RUN_GRAPH1_0] - Checking graph configuration...
      INFO [RUN_GRAPH1_0] - Graph configuration is valid.
      INFO [RUN_GRAPH1_0] - Graph initialization (loadAttributes)
      INFO [RUN_GRAPH1_0] - [Clover] Initializing phase: 0
      INFO [RUN_GRAPH1_0] - [Clover] phase: 0 initialized successfully.
      INFO [RUN_GRAPH1_0] - register MBean with name:org.jetel.graph.runtime:type=CLOVERJMX_1340628243923_505
      INFO [WatchDog] - Starting up all nodes in phase [0]
      INFO [WatchDog] - Successfully started all nodes in phase!
      ERROR [ENDECA_IMPORT_CONFIG0_505] - While parsing config document as <typ:import> XML document: error: Unexpected end of file after null
      ERROR [WatchDog] - Graph execution finished with error
      ERROR [WatchDog] - Node ENDECA_IMPORT_CONFIG0 finished with status: ERROR caused by: While parsing config document as <typ:import> XML document: error: Unexpected end of file after null; nested exception is:
           org.apache.xmlbeans.XmlException: error: Unexpected end of file after null
      ERROR [WatchDog] - Node ENDECA_IMPORT_CONFIG0 error details:
      java.rmi.RemoteException: While parsing config document as <typ:import> XML document: error: Unexpected end of file after null; nested exception is:
           org.apache.xmlbeans.XmlException: error: Unexpected end of file after null
           at com.endeca.clover.adapters.ImportConfigAdapter.logAndThrow(ImportConfigAdapter.java:208)
           at com.endeca.clover.adapters.ImportConfigAdapter.execute(ImportConfigAdapter.java:191)
           at org.jetel.graph.Node.run(Node.java:414)
           at java.lang.Thread.run(Thread.java:619)
      Caused by: org.apache.xmlbeans.XmlException: error: Unexpected end of file after null
           at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3471)
           at org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:706)
           at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:690)
           at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:677)
           at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:208)
           at com.endeca.www.mdex.config.services.types._1._0.ImportDocument$Factory.parse(ImportDocument.java:94)
           at com.endeca.clover.adapters.ImportConfigAdapter.execute(ImportConfigAdapter.java:189)
           ... 2 more
      Caused by: org.xml.sax.SAXParseException: Unexpected end of file after null
           at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
           at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
           at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3439)
           ... 8 more
      INFO [WatchDog] - [Clover] Post-execute phase finalization: 0
      INFO [WatchDog] - [Clover] phase: 0 post-execute finalization successfully.
      INFO [WatchDog] - Execution of phase [0] finished with error - elapsed time(sec): 0
      ERROR [WatchDog] - !!! Phase finished with error - stopping graph run !!!
      INFO [WatchDog] - -----------------------** Summary of Phases execution **---------------------
      INFO [WatchDog] - Phase# Finished Status RunTime(sec) MemoryAllocation(KB)
      INFO [WatchDog] - 0 ERROR 0 29258
      ./graph/loadAttributes.grf: Execution of graph failed! nullINFO [WatchDog] - ------------------------------** End of Summary **---------------------------
      INFO [WatchDog] - WatchDog thread finished - total execution time: 0 (sec)
      WARN [RUN_GRAPH1_0] - Some graph(s) finished with error.

      ERROR [WatchDog] - Graph execution finished with error
      ERROR [WatchDog] - Node RUN_GRAPH1 finished with status: ERROR caused by: Graph './graph/loadAttributes.grf' failed!
      ERROR [WatchDog] - Node RUN_GRAPH1 error details:
      org.jetel.exception.JetelException: Graph './graph/loadAttributes.grf' failed!
           at org.jetel.component.RunGraph.execute(RunGraph.java:324)
           at org.jetel.graph.Node.run(Node.java:414)
           at java.lang.Thread.run(Thread.java:619)
      WARN [RUN_GRAPH1_0] - Attempt to unregister non-registered thread in the ContextProvider.
      INFO [WatchDog] - [Clover] Post-execute phase finalization: 0
      INFO [WatchDog] - [Clover] phase: 0 post-execute finalization successfully.
      INFO [WatchDog] - Execution of phase [0] finished with error - elapsed time(sec): 20
      ERROR [WatchDog] - !!! Phase finished with error - stopping graph run !!!
      INFO [WatchDog] - -----------------------** Summary of Phases execution **---------------------
      INFO [WatchDog] - Phase# Finished Status RunTime(sec) MemoryAllocation(KB)
      INFO [WatchDog] - 0 ERROR 20 60444
      INFO [WatchDog] - ------------------------------** End of Summary **---------------------------
      INFO [WatchDog] - WatchDog thread finished - total execution time: 20 (sec)
      INFO [main] - Freeing graph resources.
      ERROR [main] - Execution of graph failed !

      -------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      Any comments on this or did any one face the same issue???


      Thanks,
      Kartik P.