Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.rmi.ConnectException  RSS feed

 
Sri Ram
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,
I am getting a wierd exception when i am doing RMI lookup.
ok i am using Unix Machine and two pramati server. both servers are in different machines say "Harry" and "Ron". Now i am trying to lookup to Ron from harry thro rmi. its connecting and i am able to execute my method in Ron. Now i restart Ron. i see that the port is listening. Now when i do a lookup, its giving java.rmi.ConnectException. If i restart Harry, i am not getting this exception. its working fine.

I tried this in windows machine. 2 pramati in 2 windows machine. Now when i restart pramati in one of the machine and try again, its working properly.

Can someone explain y this is not working in unix but its working in windows.

Waiting for ur replies...
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry - don't have a good answer for you - this could be due to differences in JDK versions, differences in the way network and RMI stuff was implemented in Unix vs. Windows versions, or Windows and Unix could handle sockets differently.

Some further questions that may lead to further information - Does the ConnectException wrap any other exception? Does the ConnectException give a specific message?

Sorry - I also don't have familiarity with Pramati server... Does Pramati run lookup servers on specific ports? Does this depend on settings within each instance of Pramati server? If so, are these set differently on the Unix and Windows versions?
 
Sri Ram
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nate,
Pramati behaves just like JRUN does. Also the look up ports are same in both unix and windows machine, though u can configure any other ports. I have configured both the machines almost in the same way. But still...

here is the exact exception thrown in the console.

 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Still not much in the way of solutions, but I found a post about something that sounds like a similair problem on the JRun boards - no solution posted there, though
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!