Redian新闻
>
代发:三月26日重庆大学吴云东院士将来UCSD做招聘报告,涵盖多
avatar
代发:三月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
avatar
s*1
2
【 以下文字转载自 Economics 讨论区 】
发信人: sunshine81 (sun), 信区: Economics
标 题: 代发:三月26日重庆大学吴云东院士将来UCSD做招聘报告,涵盖多学科
关键字: 重庆大学,吴云东,招聘
发信站: BBS 未名空间站 (Sun Mar 18 19:50:07 2012, 美东)
如题,有意者请发简历。并邀有兴趣的参会者共进午餐。其他地域可发简历到
email。
提供Tenure-track AP的职位;年薪15-30万人民币;启动经费可至250万/年;80平米住房,
成功tenure可以免费获赠。
详情见贴图。
Special Seminar
Tenure-track Faculty Recruitment
Chongqing University, China
Area: Humanity and Social Sciences, Natural Sciences, Business and
Management, and Engineering
Speaker: Professor Yundong Wu
CAS Academician, Dean of Faculty of Arts and Sciences,
Chongqing University
Host: Dr. Yang Xu, Professor of Biological Sciences, UCSD
Time: 11:00 am-12:00 pm, March 26 (Monday), 2012
Address: 1205 Natural Sciences Building, UCSD
Map: http://maps.ucsd.edu/mapping/viewer/default.htm (near by the intersection of La Jolla Shore Dr. and Scholars Dr. South)
Here is one with NSB highlighted: the 128 on map http://maps.ucsd.edu/mapping/viewer/default.htm?mkey=1&zoom=5&background=7&overlays=Bldg-594%251
Parking: P103 has meters with limited spots; or check the parking
information booth on the Gilman Drive to get ticket.
Note: See following pages for title and start-up package. Those interested
in further discussion with CQU are invited for lunch. Please send your CV or
detailed information to j****[email protected] ASAP.
avatar
B*g
3
咱没用过ArrayDescriptor ,但是DBMS_SQL.NUMBER_TABLE本身不是array,而是一个
collection。

one

【在 s******d 的大作中提到】
: 有没有人碰到过这个问题?
: 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$

avatar
s*d
4
ARRAY is Oracle's own JDBC impl class, and it requires a OracleConneciton
instance. 估计你传进去的Connection不是真正的OracleConnection, 而是container
自己包装过的wrapper connection. 如果是JDK 6, 你可以试试用connection.unwrap()
把OracleConnection取出来用.

one

【在 s******d 的大作中提到】
: 有没有人碰到过这个问题?
: 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$

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。