java.security.AccessControlException: access denied (java.net.SocketPermission 2 30.0.0.4 connect,accept,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 Oracle Community by 807549, 1 year ago
access denied (java.net.SocketPermission 2 30.0.0.4 connect,accept,resolve)
via Oracle Community by 843829, 1 year ago
access denied (java.net.SocketPermission 230.0.0.4 connect,accept,resolve)
via Oracle Community by 807549, 1 year ago
access denied (java.net.SocketPermission 230.0.0.1 connect,accept,res
via GitHub by sergkr
, 2 years ago
access denied (java.net.SocketPermission 228.5.8.80 connect,accept,resolve)
via Stack Overflow by Caroline
, 2 years ago
access denied (java.net.SocketPermission 230.0.0.1 connect,accept,resolve)
via Oracle Community by 843793, 1 year ago
access denied (java.net.SocketPermission 192.168.0.60:1099 connect,resolve)
java.security.AccessControlException: access denied (java.net.SocketPermission 2 30.0.0.4 connect,accept,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:279)
at java.security.AccessController.checkPermission(AccessController.java:405)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:551)
at java.lang.SecurityManager.checkMulticast(SecurityManager.java:1194)
at java.net.DatagramSocket.send(DatagramSocket.java:313)
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:973)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1067)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:454)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:447)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at undefined.TestClass.main(TestClass.java:43)

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.