java.security.AccessControlException: access denied ("java.net.SocketPermission" "localhost:6789" "listen,resolve")

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Shabina Rayan
, 1 year ago
access denied ("java.net.SocketPermission" "localhost:6789" "listen,resolve")
via knowcoding.com by Unknown author, 2 years ago
access denied (java.net.SocketPermission localhost:571 listen,resolve)
via knowcoding.com by Unknown author, 2 years ago
access denied (java.net.SocketPermission localhost:571 listen,resolve)
via knowcoding.com by Unknown author, 2 years ago
access denied (java.net.SocketPermission localhost:571 listen,resolve)
via knowcoding.com by Unknown author, 2 years ago
access denied (java.net.SocketPermission localhost:571 listen,resolve)
via Stack Overflow by Superman9999
, 2 years ago
access denied ("java.net.SocketPermission" "localhost:1527" "listen,resolve")
java.security.AccessControlException: access denied ("java.net.SocketPermission" "localhost:6789" "listen,resolve")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at java.security.AccessController.checkPermission(AccessController.java:884)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkListen(SecurityManager.java:1131)
at java.net.ServerSocket.bind(ServerSocket.java:374)
at java.net.ServerSocket.(ServerSocket.java:237)
at java.net.ServerSocket.(ServerSocket.java:128)
at server.Server.start(Server.java:34)
at server.ServerGUI$ServerRunning.run(ServerGUI.java:109)

Users with the same issue

2 times, 2 months ago
Once, 6 months ago
Once, 6 months ago
Once, 7 months ago
12 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.