users@glassfish.java.net

java.lang.ClassCastException OracleCallableStatement in glassfish v31

From: <glassfish_at_javadesktop.org>
Date: Thu, 05 Aug 2010 13:08:06 PDT

I am getting below exception when we try to create OracleCallableStatement :

java.lang.ClassCastException: com.sun.gjc.spi.jdbc40.CallableStatementWrapper40 cannot be cast to oracle.jdbc.OracleCallableStatement

in code we create OracleCallableStatement :
this.callableStatement = (OracleCallableStatement)getConnection().prepareCall(pSQLString);


same code is working file with weblogic 8.1.

Please help me.
[Message sent by forum member 'mohang23']

http://forums.java.net/jive/thread.jspa?messageID=479447