WrappedConnectionJDK6

Latest response

below code giving error when i try to pass array type variable to procedure.

org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6 wrappedConn = ( org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6)conn;      
    // get the underlying connection (T4CConnection)  
  Connection underlyingConn = wrappedConn.getUnderlyingConnection();
  // cast to oracle.jdbc.driver.OracleConnection
    oracle.jdbc.driver.OracleConnection oracleConn = (oracle.jdbc.driver.OracleConnection) underlyingConn;

Error is:

java.lang.ClassCastException: org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6 cannot be cast to org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6

Please give me suggestions on this.

Responses

Possibility is you have more than one JAR that contains the classes org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6. Check only only JAR in your deployment and classpath contains this class and remove the duplicate JAR file.

Regards
Mustafa

i'm facing this issue, if someone can help...

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.