java.lang.ClassCastException: weblogic.jdbc.wrapper.CallableStatement

(Doc ID 1134010.1)

Last updated on SEPTEMBER 18, 2017

Applies to:

Oracle Weblogic Server - Version 10.3 to 10.3.3
Information in this document applies to any platform.
This document is applicable for Using Weblogic JDBC API


Migrating from OC4J to WLS 11g(11.1.2) and  using Oracle extensions to the JDBC API from within WebLogic.
After obtaining the underlying vendor connection, they are getting a ClassCastException when trying to cast it to an OracleConnection.

java.lang.ClassCastException: oracle.jdbc.driver.LogicalConnection cannot be cast to oracle.jdbc.OracleConnection
at dep.dep.fra.base.JdbcDAOImpl.getOracleConnection(
at dep.dep.fra.base.BaseDAO.getOracleConnection(
at dep.dep.fra.dao.UtilDAO.getFuelData(
at dep.dep.fra.fuels.servlet.FraPortStatusActionDisplay.execute(
at org.apache.struts.action.RequestProcessor.processActionPerform(
at org.apache.struts.action.RequestProcessor.process(
at org.apache.struts.action.ActionServlet.process(


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