aspose file tools*
The moose likes Distributed Java and the fly likes RMI binding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply locked New topic
Author

RMI binding

biruk naz
Greenhorn

Joined: Jun 21, 2008
Posts: 12
Hi
I have a server side RMI application the code and the error message is written bellow.
PLEASE HELP

key
RemoteMediaServerInterface is the interface
RemoteMediaServer is the implementation
remoteinterface is the package



THE ERROR MESSAGE IS:
java.security.AccessControlException: access denied (java.net.SocketPermission 172.17.1.40:1099 connect,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
at java.net.Socket.connect(Socket.java:513)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:180)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at remoteinterface.RemoteMediaServer.main(RemoteMediaServer.java:67)

THANK YOU
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

Please do not repost the same topic.
This topic was move for you from the applets forum to here.

I am closing this topic now.


apigee, a better way to API!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI binding