Customer Portal

fatal error during graph initialization

Comments 5

  • Avatar
    oldforum
    0
    Comment actions Permalink
    yea martin

    i have registered my componenet. the new line i added is look like

    registerComponent(SplitRecord.COMPONENT_TYPE,"org.jetel.component.SplitRecord");
  • Avatar
    oldforum
    0
    Comment actions Permalink
    hello sir

    i try to trace the problem so i have print stack trace and get the cause of exception

    in read methode of TransformationGraphXMLReaderWriter if make following change

    catch (Exception ex) {
    ex.printStackTrace();
    //throw new RuntimeException(ex);
    }

    after making this change i get that exception i nullpoint exception at sentence

    graphNode.setPhase(phaseNum);

    in instantiateNodes function.

    so i print phase to know whether it initialized properly
    my code is like
    graphNode = ComponentFactory.createComponent(nodeType,
    nodeElements.item(i));
    System.out.println("phase No. " +phaseNum);
    graphNode.setPhase(phaseNum);

    now on executing i get output as

    *** CloverETL framework/transformation graph runner ver1.7, (c) 2002-05 D.Pavlis, released under GNU Lesser General Public License ***

    Graph definition file: E:/CloverETL/Examples/graphsplit.txt
    phase No. 0
    phase No. 0
    java.lang.NullPointerException
    at org.jetel.graph.TransformationGraphXMLReaderWriter.instantiateNodes(TransformationGraphXMLReaderWriter.java:381)
    at org.jetel.graph.TransformationGraphXMLReaderWriter.instantiatePhases(TransformationGraphXMLReaderWriter.java:348)
    at org.jetel.graph.TransformationGraphXMLReaderWriter.read(TransformationGraphXMLReaderWriter.java:242)
    at org.jetel.main.runGraph.main(runGraph.java:124)
    Initializing DB connection: jdbc:postgresql://192.168.0.3/olap ... OK
    Initializing DB connection: jdbc:postgresql://192.168.0.3/vtech0506 ... OK
    [Clover] starting WatchDog thread ...
    [WatchDog] Thread started.
    [WatchDog] Running on 1 CPU(s) max available memory for JVM 1635 KB
    [Clover] Initializing phase: 0
    initializing edges: all edges initialized successfully...
    initializing nodes:
    INPUT ...FAILED !
    Nov 10, 2005 5:43:00 PM org.jetel.graph.Phase init
    SEVERE: At least one output port has to be defined for node INPUT
    [WatchDog] !!! Phase finished with error - stopping graph run !!!
    Failed starting graph !
    [Clover] WatchDog thread finished - total execution time: 0 (sec)
    [Clover] !!! Graph execution finished with errors !!!

    i get phase no for first two node but on third node throw exception

    one another thing is that thow in my graph definition output port for "INPUT" is defined, still INPUT failed to initialized with reason that it has not output port.


    can any body figure out problem?
  • Avatar
    oldforum
    0
    Comment actions Permalink
    hello martin
    that exclamations mark is not in original graph, this kept here by mistake. actualy i have commented some code for testing where is problem. after getting that when i include SPLIT node i get error i ahve removed comment for posting here and that time i forget to remove this
  • Avatar
    oldforum
    0
    Comment actions Permalink
    Hello,
    on second read your code i have second question. Are you sure that you register your new component in ComponentFactory class? There is static initialization block for all accessible component.

    Martin
  • Avatar
    oldforum
    0
    Comment actions Permalink
    Hello Deepak,
    can i ask you why do you have two exclamations in this lines: (?)

    <!Edge id="MIDEDGE" fromNode="SPLIT:0" toNode="REF:0" metadata="dateMetadata"/>
    <!Edge id="OUTEDGE1" fromNode="SPLIT:1" toNode="OUTPUT1:0" metadata="OutMetadata1"/>

    It seems like INPUT node dont has output edge connect. Its my first idea when i looked at your code.

    OtaSanek

Please sign in to leave a comment.