Customer Portal

Can't obtain DBConnection object: "dbConnection"

Comments 5

  • Avatar
    jurban
    0
    Comment actions Permalink
    Hi,
    you need to call TransformationGraph.addConnection() to add the connection to the graph.

    Jaro
  • Avatar
    mishra.hanu@yahoo.co.in
    0
    Comment actions Permalink
    Hi,
    Thanks for reply...it is now working..but i am facing another problem...

    When i run code which builds a graph..... it is running in the infinity loop.
  • Avatar
    mishra.hanu@yahoo.co.in
    0
    Comment actions Permalink
    GraphRuntimeContext runtimeContext = new GraphRuntimeContext();
    runtimeContext.setUseJMX(false);

    GraphExecutor executor = new GraphExecutor();

    System.out.println("Grapgh Executer........" + executor);
    System.out.println("....Graph....." + institutionOrphanCheckGraph);
    try {
    GraphExecutor.initGraph(institutionOrphanCheckGraph);
    } catch (ComponentNotReadyException e) {
    System.out.println("::::::::::::::::::::::::::File Not Found in Compontnt not ready:::::::::::::::::::::::::::::::::::::::::::::::::::::::");
    System.out.println("Failed graph initialization!\n"
    + e.getMessage());
    return false;
    }

    Future<Result> result;
    try {
    result = executor.runGraph(institutionOrphanCheckGraph, runtimeContext);
    Result rs = result.get()
    //institutionOrphanCheckGraph.free();
    //executor.free();

    //System.out.println(result.isDone() + ">>>>>>>>>>>>>>>>>>>>>>>");
    if (result.isDone()) {
    System.out.println("Done");
    isDone = true;
    }
    if (!result.get().equals(Result.FINISHED_OK)) {
    //System.out.println(result.get().message());
    System.out.println("Failed graph execution!");
    // return false;
    }
    } catch (Exception e) {
    System.out.println("Failed graph execution!\n" + e.getMessage());
    // return false;
    }
  • Avatar
    jurban
    0
    Comment actions Permalink
    I don't see any cycle in your code, where does it run in an infinite circle?

    Jaro
  • Avatar
    mishra.hanu@yahoo.co.in
    0
    Comment actions Permalink
    Hi Jaro,
    I Actually it was running in infinite loop in my custom Reformat...I resolved that.

    Thanks,

Please sign in to leave a comment.