Marcio Kikuti - 2008-05-14

I'm having some issues using p6spy to analyze a BC4J app (deployed in oc4j). When I start oc4j a startup servlet in my app runs a query in an oracle database, but since I'm using p6spy as my connection driver I'm having a ClassCastException.

My guess is that inside BC4J we'll find many specific casts from JDBC entities to Oracle implementations, so P6SPY implementations will always cause ClassCast.

Does any one have problems like this?

Error StackTrace :

    at oracle.jbo.server.OracleSQLBuilderImpl.doStatementSetRowPrefetch(
    at oracle.jbo.server.DBTransactionImpl.createPreparedStatement(
    at oracle.jbo.server.DBTransactionImpl2.createPreparedStatement(
    at oracle.jbo.server.DBTransactionImpl.createReUsePreparedStatement(
    at oracle.jbo.server.ViewObjectImpl.getPreparedStatement(
    at oracle.jbo.server.QueryCollection.executeQuery(
    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(
    at oracle.jbo.server.ViewRowSetImpl.execute(
    at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(
    at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(
    at oracle.jbo.server.ViewObjectImpl.executeQuery(