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
-
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,
AntonI 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
-
Photos in camera roll have become blurred, can't take new ones
My old photos in my iPhone4 camera roll have become blurred and I can't take new photos, as they aren't saved properly (either they look blurred or i see a blank or black rectangle in the camera roll). Any ideas? I do not want to reinstall the iOS pl
-
Business Impact Study on SAP Business One Training
Dear SAP Business One Community, SAP is investing in finding out how the SAP Business One training is affecting your daily business. Please fill out this survey to help us finding out how effective the SAP Business One training is, and how well it me
-
IPhoto 9.6 hangs when rebuilding library
MacBook Pro (13-inch, Mid 2009), 2.26 GHz Intel Core 2 Duo, 4 GB 1067 MHz DDR3, NVIDIA GeForce 9400M 256 MB. OS X Yosemite, Version 10.10. iPhoto 9.6 Library size - 65.83 GB on an external hard drive. Problem: I opened iPhoto for the first time sinc
-
FMS Magnifying Glass Icon Functionality Not working
Dear Experts, All of a sudden all the FMS's on a installation here have gone off. The users have to click on Shift + F2 to activate the functionality. Some don't even respond to this. What could be be causing this and how can it be resolved ? Kind
-
Hi my desktop starts and then shuts down after the apple logo and an oblong box appear.thanks
hi my mac desktop starts then shuts down after displaying the apple logo and an oblong box. thanks