oracle java安全异常:尝试连接数据库时违反密封
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4922369/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
java security exception: sealing violation while trying to connect to database
提问by user606549
I am facing an issue with oracle db connection after changing java runtime to 1.6. Earlier our application used 1.5 java runtime and now we are migrating 1.6. Application is throwing the following exception while trying to connect to oracle 10g db:
将 java 运行时更改为 1.6 后,我遇到了 oracle db 连接问题。之前我们的应用程序使用 1.5 java 运行时,现在我们正在迁移 1.6。应用程序在尝试连接到 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. It is working fine with oracle 11g database and jre 1.6 combination. Have any of you faced similar issues? Thanks for your time.
如果我使用 jre 1.5 而不是 1.6 jre,它可以正常工作。它适用于 oracle 11g 数据库和 jre 1.6 组合。你们中有人遇到过类似的问题吗?谢谢你的时间。
回答by Riggy
I would speculate that its an issue with the oracle drivers. We experienced something similar when going from java 1.4 to 1.6, though it was a different error. Have you tried downgrading your JDBC driversto the 10g version?
我推测这是 oracle 驱动程序的问题。我们在从 java 1.4 到 1.6 时遇到了类似的事情,尽管这是一个不同的错误。您是否尝试过将JDBC 驱动程序降级到 10g 版本?