1 Reply Latest reply: Aug 16, 2012 6:19 PM by rp0428 RSS

    Class Cast exception in oracle.sql.ArrayDescriptor

    956208

      hi
      i am trying to pass ArrayList to Oracle procedure
      but when i am excuting the code i got the following error

      java.lang.ClassCastException: com.ibm.ws.rsadapter.jdbc.WSJdbcConnection incompatible with oracle.jdbc.OracleConnection

      Can anybody help me to resolve this problem.

      Thanks
      Anish

        • 1. Re: Class Cast exception in oracle.sql.ArrayDescriptor
          rp0428
          Welcome to the forum!
          >
          am trying to pass ArrayList to Oracle procedure
          but when i am excuting the code i got the following error

          java.lang.ClassCastException: com.ibm.ws.rsadapter.jdbc.WSJdbcConnection incompatible with oracle.jdbc.OracleConnection

          Can anybody help me to resolve this problem.
          >
          Not if you don't provide the code you are using so we can see what it is doing. Also post your 4 digit Oracle version, Java version, JDBC jar file name/version and the procedure signature that shows the language, parameters and types.

          An ArrayList is a Java object so are you using a Java stored procedure?

          Or are you using WebSphere? If WebSphere see this IBM link which appears to apply to the problem you are describing.
          http://www-01.ibm.com/support/docview.wss?uid=swg21409335