Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems with distributed RMI

 
Iván Párraga
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've almost finished my assignment and I'm performing now some tests. While developing I've tested the distributed application within the same machine with no problems, but now when I've deployed the server in a remote machine I'm having some.

I can retrieve a remote object from the remote repository but when I invoke a remote method I get an exception. This is the involved code:



this is the auxiliar method:



and this is the log that I get:




As you can see, at least the remote object is retrieved... Any ideas?

Cheers,

Iv�n
 
Alex Belisle Turcot
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Before you tried on a remote server, you were using "localhost" or 127.0.0.1 as IP ?
I see from your IP that you are behind a router, that is correct ? My guess is that the port is not open on your router for that IP address..

It is not clear for me that the object really gets loaded.. All I can tell is that you successfully executed "DatabaseFactory factory = RegisterUtilities.getDatabaseFactory(server, rmiPort);"

Can you look for the port and/or provide more informations.

Regards,
Alex
[ September 25, 2008: Message edited by: Alex Belisle Turcot ]
 
Iván Párraga
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I developed in the same machine and the app is working perfectly for localhost. The app checks for the network and port prior to try to connect via RMI and the socket is able to find the remote machine. However, I've disabled all possible firewalls.

Cheers,

Iv�n
 
Jevgeni Zhukov
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to test the application between two machines in the LAN. If it succeeds you have nothing to worry about.
 
Iván Párraga
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In fact I'm in the same lan. The different address space is because of a wi-fi access point... I'll try to use it in two machines in the same space...

Cheers,

Iv�n
 
Iván Párraga
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works in the same lan... Well, I hope it is enough.

Cheers!

Iv�n
 
Jevgeni Zhukov
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Iv�n P�rraga:
It works in the same lan... Well, I hope it is enough.


Well, it is, the network connection works. I tested my application only in LAN.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic