1 Reply Latest reply on Sep 18, 2012 10:47 AM by Jose Cruz

    oracle.jdbc.driver.T4CConnection cannot be cast to oracle.jdbc.OracleConnection

    Jose Cruz Newbie

      Hello,

       

      I need a "oracle.jdbc.driver.T4CConnection" to use in ArrayDescriptor in Java.

       

      Jboss returns:

       

      "WrappedConnectionJDK6 wrappedConn = (WrappedConnectionJDK6)con;"

       

      I dont have problem with this as I got the underlying connection with:

       

      Connection underlyingConn = wrappedConn.getUnderlyingConnection();

       

      The problem is that Connection sometimes its T4CConnection and sometimes (in another equal jboss 7) its a OracleConnection, and the cast its not possible.This problem only happens in jboss, in weblogic there is no problem at all.

       

      Any help?

       

      thanks,

      José Cruz