|
-
October 13th, 1999, 06:21 AM
#1
Throwing Security Exception while executing RMI Server
Hi
In JDK 1.2 (RMI), i written server class extending UnicastRemoteObject
and written methods in the class. Similarly i written Client side which invokes remote objects in the server.
RMI registry is also running. Is there is any difference between in JDK 1.1.5 and JDK 1.2 with respect to java.policy file.
But I am getting the error while rebinding the object to the register as follows
"java.security.AccessControlException: access denied (java.net.SocketPermission
27.0.0.1:1099 connect,resolve)
at java.security.AccessControlContext.checkPermission(Compiled Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1006)
at java.net.Socket.<init>(Socket.java:258)
at java.net.Socket.<init>(Socket.java:98)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirec
SocketFactory.java:29)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Compiled
Code)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:462)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:19
)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Compiled Code)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:165)
at DatSerImpl.main(DatSerImpl.java:21)"
-
October 13th, 1999, 10:00 AM
#2
Re: Throwing Security Exception while executing RMI Server
Use policy file ..
Check earlier posts...
Poochi..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|