我有Netbeans 7.4当我尝试在Windows 7 64位上从Netbeans启动Java DB或derby连接时,我收到以下错误。我有Netbeans自己安装的Glassfish服务器。 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)
答案 0 :(得分:0)
当您连接到任何数据库服务器时出现错误的凭据时,会出现此问题,这是您尝试连接的数据库的用户名和密码。
答案 1 :(得分:0)
您正在查看https://issues.apache.org/jira/browse/DERBY-6438
直接原因是Java 7 u51中的默认权限收紧,如上所述 这里
http://www.oracle.com/technetwork/java/javase/7u51-relnotes-2085002.html