代发:三月26日重庆大学吴云东院士将来UCSD做招聘报告,涵盖多# Engineering - 工程
s*d
1 楼
有没有人碰到过这个问题?
I created an oracle stored procedure that takes DBMS_SQL.NUMBER_TABLE as one
of the input parameters, but when executing this SP by Java, i did
something like
ArrayDescriptor descriptorID = ArrayDescriptor.createDescriptor( "DBMS_SQL.
NUMBER_TABLE", connection );
ARRAY array_ID = new ARRAY( descriptorID, connection, values));
values is an array of integers. Running the app will fail at the line of
creating descriptor. The error is as following:
java.lang.ClassCastException:org.apache.commons.dbcp.PoolingDataSource$
PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection
I don't know how to deal with it anymore.
Any help is appreciated.
Thanks
I created an oracle stored procedure that takes DBMS_SQL.NUMBER_TABLE as one
of the input parameters, but when executing this SP by Java, i did
something like
ArrayDescriptor descriptorID = ArrayDescriptor.createDescriptor( "DBMS_SQL.
NUMBER_TABLE", connection );
ARRAY array_ID = new ARRAY( descriptorID, connection, values));
values is an array of integers. Running the app will fail at the line of
creating descriptor. The error is as following:
java.lang.ClassCastException:org.apache.commons.dbcp.PoolingDataSource$
PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection
I don't know how to deal with it anymore.
Any help is appreciated.
Thanks