简体   繁体   English

Java安全异常:尝试连接数据库时违反密封

[英]java security exception: sealing violation while trying to connect to database

I am facing an issue with oracle db connection after changing java runtime to 1.6. 将Java运行时更改为1.6后,我面临oracle db连接问题。 Earlier our application used 1.5 java runtime and now we are migrating 1.6. 之前我们的应用程序使用1.5 Java运行时,现在我们正在迁移1.6。 Application is throwing the following exception while trying to connect to oracle 10g db: 尝试连接到oracle 10g db时,应用程序引发以下异常:

failed. 失败了 Error: Verify operation failed. 错误:验证操作失败。 Errors: [ORACLE-10002: Error received from connection to Oracle database +ASM: java.lang.SecurityException: sealing violation: package oracle.jdbc is sealed] 错误:[ORACLE-10002:从与Oracle数据库+ ASM的连接接收到错误:java.lang.SecurityException:违反密封:封装了oracle.jdbc包]

It is working properly if I use jre 1.5 instead of 1.6 jre. 如果我使用jre 1.5而不是1.6 jre,它将正常工作。 It is working fine with oracle 11g database and jre 1.6 combination. 它与oracle 11g数据库和jre 1.6组合正常工作。 Have any of you faced similar issues? 你们中有人遇到过类似的问题吗? Thanks for your time. 谢谢你的时间。

I would speculate that its an issue with the oracle drivers. 我推测这与oracle驱动程序有关。 We experienced something similar when going from java 1.4 to 1.6, though it was a different error. 从Java 1.4到1.6时,我们经历了类似的事情,尽管这是一个不同的错误。 Have you tried downgrading your JDBC drivers to the 10g version? 您是否尝试过将JDBC驱动程序降级为10g版本?

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

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