Hey guys, can anyone help me to run my client program. I'm working on a simple Java RMI but I'm stuck running the client with the error. java.security.AccessControlException: access denied ("java.net.SocketPermission" "144.120.114.32:1099" "connect,resolve"). I have done a lot of search online but no one helps.
I have tried -Djava.security.debug=access,failure and it gives me this error,
access: access allowed ("java.io.FilePermission" "C:\Users\s11065250\Assig1-Client\bin" "read")
access: access allowed ("java.security.SecurityPermission" "getProperty.networkaddress.cache.ttl")
access: access allowed ("java.util.PropertyPermission" "sun.net.inetaddr.ttl" "read")
access: access allowed ("java.security.SecurityPermission" "getProperty.networkaddress.cache.negative.ttl")
access: access denied ("java.net.SocketPermission" "Lab1529" "resolve")
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Unknown Source)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at java.net.InetAddress.getLocalHost(Unknown Source)
at sun.rmi.transport.tcp.TCPEndpoint.<clinit>(Unknown Source)
at java.rmi.registry.LocateRegistry.getRegistry(Unknown Source)
at java.rmi.registry.LocateRegistry.getRegistry(Unknown Source)
at java.rmi.registry.LocateRegistry.getRegistry(Unknown Source)
at Client.main(Client.java:33)
access: access allowed ("java.security.SecurityPermission" "getPolicy")
access: access allowed ("java.io.FilePermission" "C:\Users\s11065250\Assig1-Client\bin" "read")
access: domain that failed ProtectionDomain (file:/C:/Users/s11065250/Assig1-Client/bin/ <no signer certificates>)
sun.misc.Launcher$AppClassLoader@41f2e41d
<no principals>
java.security.Permissions@4ed95bc3 (
("java.net.SocketPermission" "localhost:1099" "listen,resolve")
("java.net.SocketPermission" "localhost:0" "listen,resolve")
("java.io.FilePermission" "\C:\Users\s11065250\Assig1-Client\bin\-" "read")
("java.util.PropertyPermission" "line.separator" "read")
("java.util.PropertyPermission" "java.vm.version" "read")
("java.util.PropertyPermission" "java.vm.specification.version" "read")
("java.util.PropertyPermission" "java.vm.specification.vendor" "read")
("java.util.PropertyPermission" "java.vendor.url" "read")
("java.util.PropertyPermission" "java.vm.name" "read")
("java.util.PropertyPermission" "os.name" "read")
("java.util.PropertyPermission" "java.vm.vendor" "read")
("java.util.PropertyPermission" "path.separator" "read")
("java.util.PropertyPermission" "java.specification.name" "read")
("java.util.PropertyPermission" "os.version" "read")
("java.util.PropertyPermission" "os.arch" "read")
("java.util.PropertyPermission" "java.class.version" "read")
("java.util.PropertyPermission" "java.version" "read")
("java.util.PropertyPermission" "file.separator" "read")
("java.util.PropertyPermission" "java.vendor" "read")
("java.util.PropertyPermission" "java.vm.specification.name" "read")
("java.util.PropertyPermission" "java.specification.version" "read")
("java.util.PropertyPermission" "java.specification.vendor" "read")
("java.lang.RuntimePermission" "stopThread")
("java.lang.RuntimePermission" "exitVM")
)
access: access allowed ("java.util.PropertyPermission" "java.rmi.server.useLocalHostName" "read")
access: access allowed ("java.util.PropertyPermission" "sun.rmi.transport.logLevel" "read")
access: access allowed ("java.util.PropertyPermission" "sun.rmi.log.useOld" "read")
access: access allowed ("java.util.PropertyPermission" "java.util.logging.manager" "read")
access: access allowed ("java.lang.RuntimePermission" "shutdownHooks")
access: access allowed ("java.lang.RuntimePermission" "setContextClassLoader")
access: access allowed ("java.lang.RuntimePermission" "setContextClassLoader")
access: access allowed ("java.lang.RuntimePermission" "shutdownHooks")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.PropertyPermission" "java.util.logging.config.class" "read")
access: access allowed ("java.util.PropertyPermission" "java.util.logging.config.file" "read")
access: access allowed ("java.util.PropertyPermission" "java.home" "read")
access: access allowed ("java.io.FilePermission" "C:\Program Files\Java\jre7\lib\logging.properties" "read")
access: access allowed ("java.io.FilePermission" "C:\Program Files\Java\jre7\lib\logging.properties" "read")
access: access allowed ("java.io.FilePermission" "C:\Program Files\Java\jre7\lib\logging.properties" "read")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.PropertyPermission" "java.util.logging.config.class" "read")
access: access allowed ("java.util.PropertyPermission" "java.util.logging.config.file" "read")
access: access allowed ("java.lang.reflect.ReflectPermission" "suppressAccessChecks")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.PropertyPermission" "sun.util.logging.disableCallerCheck" "read")
access: access allowed ("java.util.PropertyPermission" "jdk.logging.allowStackWalkSearch" "read")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.PropertyPermission" "java.util.logging.SimpleFormatter.format" "read")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.PropertyPermission" "sun.rmi.transport.tcp.logLevel" "read")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.PropertyPermission" "sun.rmi.transport.tcp.maxConnectionThreads" "read")
access: access allowed ("java.util.PropertyPermission" "sun.rmi.transport.tcp.threadKeepAliveTime" "read")
access: access allowed ("java.util.PropertyPermission" "sun.rmi.transport.proxy.logLevel" "read")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.PropertyPermission" "sun.rmi.transport.proxy.connectTimeout" "read")
access: access allowed ("java.util.PropertyPermission" "sun.rmi.transport.proxy.eagerHttpFallback" "read")
access: access allowed ("java.util.PropertyPermission" "http.proxyHost" "read")
access: access allowed ("java.util.PropertyPermission" "proxyHost" "read")
access: access allowed ("java.util.PropertyPermission" "java.rmi.server.disableHttp" "read")
access: access allowed ("java.util.PropertyPermission" "sun.rmi.transport.tcp.readTimeout" "read")
access: access allowed ("java.util.PropertyPermission" "sun.rmi.server.logLevel" "read")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.PropertyPermission" "java.rmi.server.ignoreStubClasses" "read")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.PropertyPermission" "sun.rmi.client.logCalls" "read")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.PropertyPermission" "java.rmi.server.hostname" "read")
access: access allowed ("java.util.PropertyPermission" "sun.rmi.transport.connectionTimeout" "read")
access: access allowed ("java.util.PropertyPermission" "sun.rmi.transport.tcp.handshakeTimeout" "read")
access: access allowed ("java.util.PropertyPermission" "sun.rmi.transport.tcp.responseTimeout" "read")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.logging.LoggingPermission" "control")
access: access allowed ("java.util.PropertyPermission" "sun.rmi.runtime.schedulerThreads" "read")
access: access allowed ("java.lang.RuntimePermission" "sun.rmi.runtime.RuntimeUtil.getInstance")
access: access allowed ("java.lang.RuntimePermission" "loadLibrary.net")
access: access allowed ("java.io.FilePermission" "C:\Program Files\Java\jre7\bin\net.dll" "read")
access: access allowed ("java.util.PropertyPermission" "*" "read,write")
access: access allowed ("java.util.PropertyPermission" "*" "read,write")
access: access allowed ("java.util.PropertyPermission" "sun.net.useExclusiveBind" "read")
access: access denied ("java.net.SocketPermission" "144.120.114.32:1099" "connect,resolve")
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Unknown Source)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at Client.main(Client.java:34)
access: access allowed ("java.security.SecurityPermission" "getPolicy")
access: access allowed ("java.io.FilePermission" "C:\Users\s11065250\Assig1-Client\bin" "read")
access: domain that failed ProtectionDomain (file:/C:/Users/s11065250/Assig1-Client/bin/ <no signer certificates>)
sun.misc.Launcher$AppClassLoader@41f2e41d
<no principals>
java.security.Permissions@33c984f9 (
("java.net.SocketPermission" "localhost:1099" "listen,resolve")
("java.net.SocketPermission" "localhost:0" "listen,resolve")
("java.io.FilePermission" "\C:\Users\s11065250\Assig1-Client\bin\-" "read")
("java.util.PropertyPermission" "line.separator" "read")
("java.util.PropertyPermission" "java.vm.version" "read")
("java.util.PropertyPermission" "java.vm.specification.version" "read")
("java.util.PropertyPermission" "java.vm.specification.vendor" "read")
("java.util.PropertyPermission" "java.vendor.url" "read")
("java.util.PropertyPermission" "java.vm.name" "read")
("java.util.PropertyPermission" "os.name" "read")
("java.util.PropertyPermission" "java.vm.vendor" "read")
("java.util.PropertyPermission" "path.separator" "read")
("java.util.PropertyPermission" "java.specification.name" "read")
("java.util.PropertyPermission" "os.version" "read")
("java.util.PropertyPermission" "os.arch" "read")
("java.util.PropertyPermission" "java.class.version" "read")
("java.util.PropertyPermission" "java.version" "read")
("java.util.PropertyPermission" "file.separator" "read")
("java.util.PropertyPermission" "java.vendor" "read")
("java.util.PropertyPermission" "java.vm.specification.name" "read")
("java.util.PropertyPermission" "java.specification.version" "read")
("java.util.PropertyPermission" "java.specification.vendor" "read")
("java.lang.RuntimePermission" "stopThread")
("java.lang.RuntimePermission" "exitVM")
)
Can anyone explain what this error means or just point me how to make it run.
Thanks.