This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "help " Watch "help " New topic
Author

help

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//xx.x.x.xxx:1099/FBNDataAccess
Trouble: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketException: 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
Sarita


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!


Aadhi
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.
-Barry


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....
Sarita
[ 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.
Sarita
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Glad we could hlep.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help