java.lang.ClassCastException "weblogic.jdbc.wrapper.CallableStatement_oracle_jdbc_driver_T4CCallableStatement incompatible with oracle.jdbc.driver.OracleCallableStatement" Error

(Doc ID 1275068.1)

Last updated on MARCH 29, 2017

Applies to:

Oracle Weblogic Server - Version: 10.0 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms

A simple application that uses the OracleCallableStatement to call a simple PL/SQL procedure fails with a java.lang.ClassCastException:

java.lang.ClassCastException: weblogic.jdbc.wrapper.CallableStatement_oracle_jdbc_driver_T4CCallableStatement incompatible with oracle.jdbc.driver.OracleCallableStatement
at com.seagate.qpm.BreakdownRetrieval.selectRecord(BreakdownRetrieval.java:91)
at jsp_servlet._jsp.__bkdwn._jspService(__bkdwn.java:178)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
.
.
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms