0 Replies Latest reply on Mar 13, 2013 2:24 PM by owl007

    org.jboss.resource.adapter.jdbc.jdk5.WrappedCallableStatementJDK5 cannot be cast to oracle.jdbc.OracleCallableStatement

    owl007

      Hi,

      I'm in the process to migrate an application to JBOSS server. the JBOS server is 5.1.0.GA with java version 6.

      I downloaded jboss-as-connector-5.1.0.GA.jar and in the code,

       

       

      WrappedConnectionJDK5 wconn = (WrappedConnectionJDK5)lobjCon2;

      //JBoss Wrapped Connection..

       

       

      the EAR file was loaded into server successfully. when run, the error occured at the above code line  of WrappedConnectionJDK5 wconn = (WrappedConnectionJDK5)lobjCon2;

      with following error:

       

      2013-03-13 13:50:36,347 ERROR [com.xxxxx.core.log.AWCLogs] (http-127.0.0.1-8080-1) java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.jdk5.WrappedCallableStatementJDK5 cannot be cast to oracle.jdbc.OracleCallableStatement

       

      Why it does not allow the cast from org.jboss.resource.adapter.jdbc.jdk5.WrappedCallableStatementJDK5 to oracle.jdbc.OracleCallableStatement?

       

      please help.

      Thanks,

      owl

      lobjCon = (Connection)wconn.getUnderlyingConnection();

      //..Converted into an Oracle Logical Connection

      !