gpt4 book ai didi

java - 使用类型 4 驱动程序从 db2 访问数据时抛出未捕获的异常

转载 作者:行者123 更新时间:2023-12-01 15:33:27 24 4
gpt4 key购买 nike

当我尝试使用 servlet 中的类型 4 驱动程序从 db2 获取数据时,出现未捕获的异常错误。我使用了 db2jcc.jar 及其许可证文件第一次可以工作,但过了一段时间后它显示以下异常

Uncaught exception thrown in one of the service methods of the servlet: Check. 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:当类加载器找到同一类的两个副本时发生。我怀疑您的类加载器可以看到两个 jar 。确保只有所需的 jar 存在。

关于java - 使用类型 4 驱动程序从 db2 访问数据时抛出未捕获的异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9263727/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com