Below are some more details further to the problem described in my earlier mail -

Database - Oracle

Configuration of Torque.properties -
torque.database.default=mydb
torque.database.mydb.adapter=oracle

## Using torque's old pool
# DEV
torque.dsfactory.mydb.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory
torque.dsfactory.mydb.pool.defaultMaxConnections=10
torque.dsfactory.mydb.pool.maxExpiryTime=3600
torque.dsfactory.mydb.pool.connectionWaitTimeout=10

torque.dsfactory.mydb.connection.driver = oracle.jdbc.driver.OracleDriver
torque.dsfactory.mydb.connection.url = jdbc:oracle:oci8:@abc
torque.dsfactory.mydb.connection.user = xxx
torque.dsfactory.mydb.connection.password = yyy

Regards
Akshay


Date: Wed, 11 Jun 2003 10:25:55 -0700
To: [EMAIL PROTECTED]
From: Akshay Kapur <[EMAIL PROTECTED]>
Subject: Code using Torque throws ClassCastException when accessing oracle.sql.ArrayDescriptor


Please let me know how if you a solution to the Exception described below.

Thanks
Akshay


I am migrating my code-base from Turbine 2.1 to 2.2.


The following line of code using -
ArrayDescriptor myarray = ArrayDescriptor.createDescriptor( "SOME_STRING", conn );


throws the following exception -
Exception Trace: java.lang.ClassCastException: org.apache.commons.dbcp.cpdsadapter.ConnectionImpl at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:87) at


I am using -
        torque-3.0.1.jar
        commons-dbcp-1.0.jar

Reply via email to