0 Replies Latest reply on May 10, 2004 5:41 PM by Colin Sampaleanu

    Oracle ojdbc14.jar with Oracle8 mappings

    Colin Sampaleanu Newbie

      I am unable to use the Oracle ojdbc14.jar with the database set as Oracle8. When I use the much older (and crappier) classes12.jar, all works fine.

      I believe this is a JBoss CMP problem, since Hibernate and raw JDBC work fince with the ojdbc14.jar and Oracle 8.

      The exceptions I get are similar to this one:

      java.lang.ArrayIndexOutOfBoundsException: 113
      at oracle.sql.LnxLibThin.lnxnuc(LnxLibThin.java:5737)
      at oracle.sql.NUMBER.toInt(NUMBER.java:412)
      at oracle.jdbc.dbaccess.DBConversion.NumberBytesToInt(DBConversion.java:2884)
      at oracle.jdbc.driver.OracleStatement.getIntValue(OracleStatement.java:4489)
      at oracle.jdbc.driver.OracleResultSetImpl.getInt(OracleResultSetImpl.java:536)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil$24.readResult(JDBCUtil.java:876)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil$AbstractPrimitiveReader.get(JDBCUtil.java:803)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadArgumentResults(JDBCAbstractCMPFieldBridge.java:424)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadInstanceResults(JDBCAbstractCMPFieldBridge.java:373)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:188)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:72)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:612)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:594)
      at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:381)

      Does anybody have an idea as to what is going on, or have an idea as to how to get this going?

      Regards,
      Colin