aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI Connection Exception Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "RMI Connection Exception Help" Watch "RMI Connection Exception Help" New topic
Author

RMI Connection Exception Help

Alan Morgan
Ranch Hand

Joined: Apr 18, 2005
Posts: 113
Hi,

I am trying to test my application in server mode.
I start the RMI server and bind the object on a given ip address.

Then on my own machine in my DataConnector when I do Naming.lookup() I get an exception:

> Connection refused to host: 172.24.9.85

Now the problem is that this is my ip address and not the address I am trying to connect to.

I then tried Naming.list(ip) and I got the same exception.

Any thoughts ?

Thanks.
Alan Morgan
Ranch Hand

Joined: Apr 18, 2005
Posts: 113
Originally posted by Alan Morgan:
Hi,

I am trying to test my application in server mode.
I start the RMI server and bind the object on a given ip address.

Then on my own machine in my DataConnector when I do Naming.lookup() I get an exception:

> Connection refused to host: 172.24.9.85

Now the problem is that this is my ip address and not the address I am trying to connect to.

I then tried Naming.list(ip) and I got the same exception.

Any thoughts ?

Thanks.



Worked it out.
Needed to add "rmi://" before the ip and ":1099" after the ip and before the object name.

Ah well I suppose this may help someone else who has a similar problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI Connection Exception Help