4 Replies Latest reply on Dec 17, 2008 10:55 PM by alwu-Oracle

    End of TNS Channel in Oracle-Jena adaptor

    669888
      Hi,

      I'm using the Oracle-Jena adaptor 2.0 to create a sparql endpoint using Joseki. I am performing validation check and if the connection is dead I try to recreate it by calling:

      Oracle oracle = new Oracle(uri, name, passwd);
      GraphOracleSem g = new GraphOracleSem(oracle, modelName);
      defaultModel = new ModelOracleSem(graph);

      However when I try to query the model I get an exception stating "end of TNS Channel". The setup works fine initially. What is the correct way to re-establish a connection to Oracle using the Oracle-Jena adaptor?

      Thanks