Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-6383

Geronimo v3.0 (release) - Fail to unwrap OracleConnection - JDBC4 - TranQL 1.7


    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Security Level: public (Regular issues)
    • Environment:

      System is running Geronimo v3.0 (release) and uses Spring 3.0.5, Oracle11g JDBC driver ojdb6.jar v11. which supports JDBC4


      This post covers the problem and temporary solution.

      I put this as a blocker, because I believe is common that people will be using the latest Oracle drivers (thin) which implement JDBC4 and the TranQL 1.7 stack doesn't support it.

      I am using Spring (v3.0.5) JdbcTemplate functionality to execute stored procedures in Oracle 11g database. For some of the calls I need the native connection, but the unwrap failed with the following errors:

      java.lang.ClassCastException: org.tranql.connector.jdbc.ConnectionHandle cannot be cast to oracle.jdbc.OracleConnection
      java.lang.AbstractMethodError: org.tranql.connector.jdbc.ConnectionHandle.unwrap(Ljava/lang/Class;)Ljava/lang/Object;

      After working with David from TranQL, it was determined the issue is the Geronimo v.3.0 stack is using TranQL v.1.7 which doesn't support JDBC4 and causes the error during unwrapping the OracleConnection.

      Temporary Solution:
      Geronimo will probably not have this fix until next fix pack. For people who are having the same issue as I, you can use the temporary solution described at the end of this post:

      This consist of importing a cooked "1.8" RAR into your project which includes new tranql-connector and tranql-connector-oracle-local. And deploying the plan as part of your project to create the JDBC connector.

      If you need further help, I open a link in my blog at:

      Suggestion for Geronimo
      I don't know if you have CI servers, but at least i didn't notice I wasn't using the OracleConnection until hitting an specific store procedure which requires the native connection. I think is an important test unit to have.




            • Assignee:
              correodejoscar@gmail.com Jonathan Nazario
            • Votes:
              1 Vote for this issue
              3 Start watching this issue


              • Created: