Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

access control exception

2 views
Skip to first unread message

big__smile

unread,
Jun 11, 2003, 11:44:11 PM6/11/03
to
java.security.AccessControlException: access denied
(java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at java.security.AccessController.checkPermission(AccessController.java:399)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1044)
at java.net.Socket.<init>(Socket.java:262)
at java.net.Socket.<init>(Socket.java:100)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:25)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:120)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at HostMachine.main(HostMachine.java:22)

The above is the error i get when in unix env i execute java blah blah
i have tried -Djava.security.policy but it doesnot work!!
help!!
thanx

Erwin Moller

unread,
Jun 12, 2003, 5:56:02 AM6/12/03
to
Hi,

Not sure, but maybe you tried to open a port UNDER 1024 and you are not
root.

Regards,
Erwin

0 new messages