aspose file tools
The moose likes JDBC and the fly likes classcast exception while creating array descriptor for oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply locked New topic
Author

classcast exception while creating array descriptor for oracle

padmakar reddy kadem
Greenhorn

Joined: Dec 24, 2007
Posts: 10
Hi,
We are migrating from the weblogic server to websphere.I got the following exception for creating the ArrayDescriptor.
class com.orca.message.dao.MessageDAO - java.lang.ClassCastException: com.ibm.ws.rsadapter.jdbc.WSJdbcConnection incompatible with oracle.jdbc.OracleConnection at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:149)
at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:115)
at com.orca.message.dao.MessageDAO.getAllMessages(MessageDAO.java:58)
we used websphere connection pooling.
fowwoling is the code for getting the exception.

-------------------------
code looks like this
-------------------------
import oracle.sql.ArrayDescriptor;
//getting the connection from websphere connection pooling
ArrayDescriptor arrDesc = ArrayDescriptor.createDescriptor("SEL_MSG_STATUS", conn);
arrMsgCode = new ARRAY(arrDesc, conn, msgSearchVo.getArrMsgCode().toArray());

here it is unable to create the arraydescriptor
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56224
    
  13

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: classcast exception while creating array descriptor for oracle
 
Similar Threads
classcast exception for creating Arraydescriptor only for websphere
classcast exception only with websphere server not for weblogic
Apache Commons DBCP connection object problem
Getting array of Oracle Objects
ArrayDescriptor - SqlException