无法启动 Java 数据库服务器并给出异常



我有Netbeans 7.4当我尝试从windows 7 64位的Netbeans启动Java DB或derby连接时,我得到以下错误。我有Glassfish服务器安装Netbeans本身。Glassfish工作良好,但Java Db没有开始什么问题。请帮帮我。

Wed Mar 12 13:55:07 IST 2014 : Security manager installed using the Basic server security policy.
Wed Mar 12 13:55:08 IST 2014 : access denied ("java.net.SocketPermission" "localhost:1527" "listen,resolve")
java.security.AccessControlException: access denied ("java.net.SocketPermission" "localhost:1527" "listen,resolve")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:372)
at java.security.AccessController.checkPermission(AccessController.java:559)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkListen(SecurityManager.java:1134)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.<init>(ServerSocket.java:237)
at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:231)
at org.apache.derby.impl.drda.NetworkServerControlImpl.createServerSocket(Unknown Source)
at org.apache.derby.impl.drda.NetworkServerControlImpl.access$000(Unknown Source)
at org.apache.derby.impl.drda.NetworkServerControlImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derby.impl.drda.NetworkServerControlImpl.blockingStart(Unknown Source)
at org.apache.derby.impl.drda.NetworkServerControlImpl.executeWork(Unknown Source)
at org.apache.derby.drda.NetworkServerControl.main(Unknown Source)

这个问题出现时,你有错误的凭据,而连接到任何DB服务器,非常DB的用户名和密码,你正在尝试连接。

您将看到https://issues.apache.org/jira/browse/DERBY-6438

直接原因是Java 7u51中的默认权限收紧,如前所述

http://www.oracle.com/technetwork/java/javase/7u51 relnotes - 2085002. - html

相关内容

  • 没有找到相关文章

最新更新