Hello
I am trying to "lookup" the server from the client through Rmiregistry. I was getting a problem when i try to do lookup. Here is the stacktrace
I rant the program like this
java -Djava.security.policy=java.policy com.rmi.graphservice.RmiClient
java.policy had the following permission
.....
.....
java.net.SocketPermission "osprey.unf.edu:1024-64000", "accept,connect,lis
ten";
....
....
osprey.unf.edu is the domain for both client and the server.
java.policy
Exception in
thread "main" java.rmi.ConnectException: Connection refused to host: 139.62.200.198; nested exception is:
java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
at java.net.Socket.<init>(Socket.java:273)
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.lookup(Unknown Source)
at com.rmi.graphservice.RmiClient.main(RmiClient.java:18)