Error in compiling sun tutorial..
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Fredric_Adell
Posted On:   Wednesday, November 27, 2002 02:05 PM

Hi all.. I get the following error message when i try to start my RMIServer (Excercise 4, java tutorial on RMI at java.sun.com) .. I´ve tried alot of different ways to do it.. but i always get the same message. Exception in thread "main" java.security.AccessControlException: access denied ( java.net.SocketPermission 213.67.249.32:12345 connect,resolve) at java.security.AccessControlContext.checkPermission(AccessControlConte xt.java:267) at java.security.AccessController.checkPermission(AccessController.java: 394) at java.lang.SecurityManager.checkPermission(SecurityManager.java:540) at java.lang.SecurityManager.checkCon   More>>

Hi all..

I get the following error message when i try to start my RMIServer (Excercise 4, java tutorial on RMI at java.sun.com) ..


I´ve tried alot of different ways to do it.. but i always get the same message.



Exception in thread "main" java.security.AccessControlException: access denied (
java.net.SocketPermission 213.67.249.32:12345 connect,resolve)

at
java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:267)

at java.security.AccessController.checkPermission(AccessController.java:
394)

at java.lang.SecurityManager.checkPermission(SecurityManager.java:540)

at java.lang.SecurityManager.checkConnect(SecurityManager.java:1039)

at java.net.Socket. (Socket.java:257)

at java.net.Socket. (Socket.java:95)

at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect
SocketFactory.java:20)

at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster
SocketFactory.java:115)

at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:494)

at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185
)

at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:169)

at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)

at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)

at java.rmi.Naming.rebind(Naming.java:155)

at RMIServer.main(RMIServer.java:46)




any clues? Otherwise i like the tutorial very much. Easy to follow.
//Freddy

   <<Less

Re: Error in compiling sun tutorial..

Posted By:   jia_li  
Posted On:   Tuesday, December 10, 2002 08:00 PM

I guess you should need a policy file. this error means your
access is denied. follow the tutorial's direction. a little problem. easy to be solved. good luck!
About | Sitemap | Contact