Oracle_jdbc_driver_T4CCallableStatement_Proxy

Hello!
I'm getting the following error when I try to convert Timestamp to date.
java.lang.ClassCastException: oracle_jdbc_driver_T4CCallableStatement_Proxy
at oracle.sql.TRANSDUMP.getTransitions(TRANSDUMP.java:41)
at oracle.sql.TIMEZONETAB.updateTable(TIMEZONETAB.java:456)
at oracle.sql.TIMESTAMPTZ.toDate(TIMESTAMPTZ.java:324)
at oracle.sql.TIMESTAMPTZ.dateValue(TIMESTAMPTZ.java:1639)
at connection.jspService(_connection.java:72)
at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:701)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:405)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher
.java:711)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher
.java:368)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler
.java:866)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler
.java:448)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor
.java:303)
at java.lang.Thread.run(Thread.java:595)
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:/comp/env/ehr");
Connection c = (oracle.jdbc.OracleConnection)ds.getConnection();
stmt = c.createStatement();
ResultSet resultSet = stmt.executeQuery(query);
resultSet.next();
TIMESTAMPTZ timest = ((OracleResultSet) resultSet).getTIMESTAMPTZ("current_timestamp");
date = timest.dateValue(c); <-------------------- PROBLEM HERE
I'm moving the application from Tomcat to Oracle Application Server. In tomcat everything works fine.
My datasource configuration is the following:
<?xml version = '1.0' encoding = 'UTF-8'?>
<data-sources>
<managed-data-source connection-pool-name="ehr" jndi-name="java:/comp/env/ehr" name="ehr"/>
<connection-pool name="ehr">
<connection-factory factory-class="oracle.jdbc.pool.OracleDataSource" user="alert_viewer" password="alertvqc" url="jdbc:oracle:thin:@alertqcehr1:1521:EHRQC"/>
</connection-pool>
</data-sources>
I found a difference in connection between Tomcat and OAS...
Tomcat 5.5:
oracle.jdbc.driver.LogicalConnection
Oracle application server:
oracle_jdbc_driver_LogicalConnection_Proxy
Could you help me to find the solution?
Thanks a lot

This is a bug please file a bug against Jdbc.
=
Ashok

Similar Messages

  • Error stmt.execute

    Hi,
    I made a callable statement to a procedure. But my statement is not executed at stmt.execute.
    I get a error like
    ORA-06550: line 1, column 13:
    PLS-00201: identifier 'SP_DS_UPLOAD_INSERT' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00201: identifier 'SP_DS_UPLOAD_INSERT' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    I have declared it
    public static final String INSERT_INTO_DS_UPLOAD = "{?= call sp_DS_Upload_Insert(?,?,?,?,?,?,?,?)}";
    I made a connection to sql server with a driver net.sourceforge.jtds.jdbc.Driver in the connection navigator(Test was successful) and used the same in my datasource.xml. But when i tried to print the stmt i got it as
    07/09/07 11:13:21 Statement Output oracle_jdbc_driver_T4CCallableStatement_Proxy@be0f51
    Iam not sure if Iam making a proper connection.
    Could someone help me how to find the error.

    You will have to ask this in the SAP forums and ensure that your version of the database/OS is certified with the SAP version you are running
    HTH
    Srini

  • ClassCastException casting CallableStatement to OracleCallableStatement

    Im trying to create a ViewObject based on a REF_CURSOR returned by PL/SQL stored procedure OUT parameter.
    I casted the normal CallableStatement to OracleCallableStatement so I can call the OracleCallableStatement.getCursor(index);
    CallableStatement statement = getDbTransaction.createCallableStatement(statementString, DbTransaction.DEFAULT);
    ResultSet rs = ((OracleCallableStatement)statement).getCursor(1);I get a "java.lang.ClassCastException: oracle_jdbc_driver_T4CCallableStatement_Proxy" when I run this piece of code.
    Jdeveloper version is Jdev10.1.3.1 Preview.
    regards,
    Anton

    I got a resolution for this. The reason for this exception is that I got the wrong import for the OracleCallableStatement. The correct import is "import oracle.jdbc.OracleCallableStatement" instead of "import oracle.jdbc.driver.OracleCallableStatement"
    See the related thread:
    Re: Dive into BC4J related  --REF CURSOR (executeQueryForCollection)
    regards,
    Anton

Maybe you are looking for