-
Feature Request
-
Resolution: Obsolete
-
Critical
-
None
-
None
-
Compatibility/Configuration
-
High
I am trying to deploy an Oracle BC4J Application to JBOSS 4.2.2 GA Application Server. The problem I am having is that JBOSS uses 'Wrapped' Classes for connections, prepared statements, etc...
I have used OraclePreparedStatement and JBOSS tries to cast it into WrappedPreparedStatement which gives ClassCastException.....here's a stacktrace :
Caused by: java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.WrappedPreparedStatement
at oracle.jbo.server.OracleSQLBuilderImpl.doStatementSetRowPrefetch(OracleSQLBuilderImpl.java:1071)
at oracle.jbo.server.DBTransactionImpl.createPreparedStatement(DBTransactionImpl.java:3405)
at oracle.jbo.server.DBTransactionImpl2.createPreparedStatement(DBTransactionImpl2.java:428)
at oracle.jbo.server.DBTransactionImpl.createReUsePreparedStatement(DBTransactionImpl.java:4239)
at oracle.jbo.server.ViewObjectImpl.getPreparedStatement(ViewObjectImpl.java:8202)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:746)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:666)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3655)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:742)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:891)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:805)
at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:799)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3575)
Any idea would be greatly appreciated. Thanks.