commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Akshay Kapur <aka...@cisco.com>
Subject Exception when accessing oracle.sql.ArrayDescriptor
Date Thu, 12 Jun 2003 00:40:50 GMT
Please let me know if you may know a solution to the Exception described below.

Thanks
Akshay

The following line of code  -
     Connection conn = Torque.getConnection();
     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
     classes12.zip
	
     Database - Oracle 8i

     Configuration of Torque.properties -
torque.database.default=mydb
torque.database.mydb.adapter=oracle
## Using torque's old pool
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


Mime
View raw message