My Oracle Support Banner

java.lang.ClassCastException: weblogic.jdbc.wrapper.CallableStatement (Doc ID 1134010.1)

Last updated on AUGUST 18, 2023

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(




To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.