简体   繁体   English

使用类型4驱动程序从db2访问数据时引发未捕获的异常

[英]Uncaught exception thrown while accessing data from db2 using type 4 driver

I get an uncaught exception error while I try to fetch the data from db2 using type 4 driver within the servlet.I used db2jcc.jar and its license file it works first time but after some time it shows following exception 在尝试使用servlet中的类型4驱动程序从db2提取数据时遇到未捕获的异常错误。我使用了db2jcc.jar及其许可证文件,该文件第一次起作用,但一段时间后它显示以下异常

Uncaught exception thrown in one of the service methods of the servlet: Check. servlet的一种服务方法中引发了未捕获的异常:检查。 Exception thrown : java.lang.VerifyError: class loading constraint violated (class: com/ibm/db2/jcc/am/jb method: a(Ljava/lang/String;Lcom/ibm/db2/jcc/SQLJSection;Lcom/ibm/db2/jcc/am/hb;Lcom/ibm/db2/jcc/am/hb;)Lcom/ibm/db2/jcc/am/um;) at pc: 0 抛出异常:java.lang.VerifyError:违反类加载约束(类:com / ibm / db2 / jcc / am / jb方法:a(Ljava / lang / String; Lcom / ibm / db2 / jcc / SQLJSection; Lcom / ibm / db2 / jcc / am / hb; Lcom / ibm / db2 / jcc / am / hb;)Lcom / ibm / db2 / jcc / am / um;)at pc:0

Please help me to resolve this problem. 请帮助我解决此问题。 thanks 谢谢

java.lang.VerifyError: occurs when your classloader finds two copies of same class. java.lang.VerifyError:当类加载器找到相同类的两个副本时发生。 I suspect two jars are visible for your classloader. 我怀疑您的类加载器可以看到两个jar。 Make sure only required jars are there. 确保只有所需的罐子在那里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM