Getting java.lang.ClassCastException: orcle.jdbc.driver.T4CConnection cannot be cast to oracle.jdbc.driver.OracleConnection in JBoss EAP 6

Solution Verified - Updated -

Issue

  • User is getting below exception while calling data base procedures having the table type as input parameter.
java.lang.ClassCastException: orcle.jdbc.driver.T4CConnection cannot be cast to oracle.jdbc.driver.OracleConnection 
  • The above error is coming only when getting the connection from connection pool. User is experiencing the behavior in JBoss Enterprise Application Platform (EAP) 6.10.GA environment and occurs every time. This issue is pending from long time.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.1.0
  • Oracle

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.