密封违规:软件包oracle.net.ns被密封 [英] sealing violation: package oracle.net.ns is sealed

查看:152
本文介绍了密封违规:软件包oracle.net.ns被密封的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Oracle SQL Developer连接到Oracle 11g XE数据库.但是,我收到以下异常:

I am trying to connect to an Oracle 11g XE databse using Oracle SQL Developer. However, I am getting the following exception:

java.lang.SecurityException: sealing violation: package oracle.jdbc.driver is sealed

我已经在网上搜索了答案,但是没有找到解决方法.

I have searched for an answer on the web, but have not found a solution.

是什么原因造成的,我该如何解决?

What is causing this and how can I fix it?

推荐答案

来自Oracle的本文档:

From this documentation at Oracle : Known Issues and Limitations :

java.lang.SecurityException:违反密封的异常(ID 6554602)

说明

从JDBC 10.2驱动程序开始,具有多个JDBCCLASSPATH中的jar文件可能会导致java.lang.SecurityException:密封违规异常.

Starting with JDBC 10.2 drivers, having more than one JDBC jar file in the CLASSPATH may result in a java.lang.SecurityException: Sealing violation exception.

解决方案(由Oracle建议)确保CLASSPATH包含只有一个JDBC驱动程序JAR文件.

Solution (Suggested by Oracle) Make sure that the CLASSPATH includes only one JDBC driver JAR file.

这个论坛: SecurityException:密封来自Class.forName的违规行为

违反密封规定意味着密封包装中的某些类别属于从两个不同的位置(目录或jar文件)加载.

A sealing violation means that some classes from a sealed package were loaded from two different locations (directories or jar files).

密封包装实际上是说我知道所有类别该软件包中的文件来自单个jar文件.出于安全原因,不其他位置可能会提供此软件包中的类".

A sealed package is one that essentially says "I know that all classes in this package come from a single jar file. For security reason no other location may provide classes that are in this package".

可能是您的类路径中有两个Oracle JDBC驱动程序jar.

Chances are you have two Oracle JDBC driver jars in your classpath.

因此,请确保您的类路径中没有多个Oracle JDBC驱动程序jar库.

So make sure that you don't have multiple Oracle JDBC driver jar libraries in your classpath.

这篇关于密封违规:软件包oracle.net.ns被密封的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆