Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.rmi.ConnectException

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You don't know me, but I've been looking all over the world for. Thanks to the help from this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic