| Author |
java.rmi.ConnectException
|
Jonathan Blok
Greenhorn
Joined: Oct 16, 2009
Posts: 7
|
|
Hello everyone,
I am having a problem setting up my RMI connection. When executing this code:
I receive these errors:
When I telnet or portscan 192.168.13.18 (which is my ip address given to me by a switch), I am not able to connect. However when I telnet or portscan 127.0.0.1 I am able to connect to port 1099. The company I work at does use a proxy but I set Java to 'direct connection' in the Control Panel so I do not think the proxy is involved. I have also added an 'RMI' exception entry in my Windows XP firewall on port 1099. A tracert to 192.168.13.18 takes one hop so I do not think that the switch is the problem.
My questions are these:
>Why does RMI try to connect to 192.168.13.18 in stead of 127.0.0.1, where is this setting stored?
>Why doesn't 192.168.13.18 work while 127.0.0.1 does, any ideas what could be causing this?
Any help would be greatly appreciated.
|
 |
Martin Vanyavchich
Ranch Hand
Joined: Sep 16, 2008
Posts: 241
|
|
Hi,
I think you're missing a collon in URL for your RMI. Try it like this:
Regards, Martin
|
SCJP 6, OCMJD 6, OCPJWSD 6
I no good English.
|
 |
rajshkhr pandey
Ranch Hand
Joined: Oct 14, 2009
Posts: 35
|
|
Hello to all,
Actually I am getting same error while developing the RMI application few days ago, so when I removed the Security Manager and applied appropriate policy the application worked.
Or either your RMIRegistry is not running
|
 |
 |
|
|
subject: java.rmi.ConnectException
|
|
|