0 Replies Latest reply on May 16, 2013 9:35 AM by martani

    ClassCastException when running on Oracle Database JVM


      I have the following code:
      OracleDataSource ods = new OracleDataSource();
      OracleConnection conn = (OracleConnection) ods.getConnection();
      ArrayDescriptor d = ArrayDescriptor.createDescriptor("MDSYS.RDF_MODELS", conn);
      When I run this code from outside Oracle's VM it works without a problem. However, when I load it the the Oracale Database VM with loadjava, I get the following exception:
           at oracle.jdbc.driver.PhysicalConnection.putDescriptor(PhysicalConnection.java)
           at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:156)
           at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:123)
           at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:106)
           at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:73)
           at XercesTest.Test1(XercesTest.java:46)
           at XercesTest.Test(XercesTest.java:171)
      What is causing this problem and how to correct it?

      Edited by: 1003769 on 16 mai 2013 02:35