This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "help " Watch "help " New topic


Sarita Gupta
Ranch Hand

Joined: Aug 12, 2002
Posts: 43
I am getting the following error when connection to the fbn server. Can anyone tell me what could be the cause.
url rmi//
Trouble: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: Software caused connection abort: recv failed
It seems to work fine if both the server and client run on the same machine... pls someone help

There are no great people in this world, only great challenges which ordinary people rise to meet.
aadhi agathi
Ranch Hand

Joined: Apr 29, 2002
Posts: 263
please check
1) the stub is in the classpath , then
2) start rmiregistry
3) then the fbn server

hope this will work!

Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
The recv is a C function for reading the data.
Can I suggest that you just for now try to get a very simple RMI demo program running between the two systems? See if you get the same problem.

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Sarita Gupta
Ranch Hand

Joined: Aug 12, 2002
Posts: 43
I have added to the classpath, fbnServer.jar.
And I have the following code in the constructor of the FBNServer
Registry registry = LocateRegistry.createRegistry(portNo);
Naming.bind(url, factory)
So I don't have to start the registry seerately.
Anything wrong here....
[ April 28, 2003: Message edited by: Sarita Gupta ]
Sarita Gupta
Ranch Hand

Joined: Aug 12, 2002
Posts: 43
Ooops I guess it was a typo my part.... the url string was incorrect... It's working perfect now
Thanks all anyways.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17271

Glad we could hlep.

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: help
It's not a secret anymore!