classcast exception while creating array descriptor for oracle
padmakar reddy kadem
Greenhorn
Joined: Dec 24, 2007
Posts: 10
posted
0
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());
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.