这个应该是代码的问题,将第二个参数换成 new Class[] {proxyConnection.getClass} 试试
解决方案 »
- 卫士通SJL05金融数据加密机的问题-急
- struts2 action与action之间传值的问题~~
- TOMCAT移植到WEBLOGIC92中的问题
- 一个小程序中有两个错误,麻烦各位给看一下
- 初来咋到----Flex学习之路怎么走?
- struts中的form是单例吗
- 请教问题:No Java compiler was found to compile the generated source for the JSP
- 问:!tomcat环境下怎么把数据库里的汉字自动翻译成英文,显示在英文版的页面上??
- java下载乱码问题
- hibernate一直报错
- 如何把由javascript得到的值回传到由xslt解析出来的页面中的text中
- weblogic问题
按道理讲应该不会有错的呀
Object o = new Object();
List l = (List)o;
由于o不是List对像,你转换就要出ClassCastException错。
解决方案如下: Class connInterface[] = {Class.forName("java.sql.Connection")};
conn2 = (java.sql.Connection)Proxy.newProxyInstance(
Class.forName("java.sql.Connection").getClassLoader(),
connInterface,this);