wood burning stoves*
The moose likes Sockets and Internet Protocols and the fly likes java.rmi.ConnectIOException - PLEASE HELP! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "java.rmi.ConnectIOException - PLEASE HELP!" Watch "java.rmi.ConnectIOException - PLEASE HELP!" New topic
Author

java.rmi.ConnectIOException - PLEASE HELP!

Ravissant Saraswat
Greenhorn

Joined: Mar 15, 2010
Posts: 20
Hi Everyone,
I have a junit class which Im trying to call from another another main java class. Now it works just fine when this main class is in the same project but I get the following exception when I try to keep the same main class in another project and execute it :


2011-10-11 10:32:07 [ERROR] [] @ RemotePersistentOptimizationDelegate : lookupServer : 122 - Error looking up the remote server
java.rmi.ConnectIOException: Exception creating connection to: 10.39.x.x; nested exception is:
java.net.NoRouteToHostException: No route to host: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at com.accenture.ams.adaptiveAnalytics.effectiveness.optimization.service.RemotePersistentOptimizationDelegate.lookupServer(RemotePersistentOptimizationDelegate.java:115)
at com.accenture.ams.adaptiveAnalytics.effectiveness.optimization.service.RemotePersistentOptimizationDelegate.statusFileReader(RemotePersistentOptimizationDelegate.java:71)
at com.accenture.ams.adaptiveAnalytics.effectiveness.optimization.util.QueueMaintainer.checkOptimizedOutputGeneration(QueueMaintainer.java:284)


I checked the project for dependencies and added all projects to the main class' build path, still I get the above error. Is it some jar that im missing out?? Please,Please help!!

Thanks in advance,
Ravssant
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Ravissant Saraswat wrote:java.rmi.ConnectIOException: Exception creating connection to: 10.39.x.x; nested exception is:
java.net.NoRouteToHostException: No route to host: connect

You can't connect to the RMI server machine. Check your firewall settings.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Ravissant Saraswat
Greenhorn

Joined: Mar 15, 2010
Posts: 20
Thanks for your reply Rob, the main java project here is within the same eclipse workspace on the same machine, would the firewall still have a role to play? I was able to get the main class to work when I kept it in the same project as the JUnit test class.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Can you ping that IP address (which I've anonymized by the way)? Is it the IP address of the PC itself, or the IP address you have on the Internet? (In other words, is it your WAN IP address or not?)
Ravissant Saraswat
Greenhorn

Joined: Mar 15, 2010
Posts: 20
Actually I'm not able to ping the ip address Rob, but then how is it that the main class works when Ii put it in the same project? Is the ip adress not used then?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Can you show the code that's trying to connect?
Ravissant Saraswat
Greenhorn

Joined: Mar 15, 2010
Posts: 20
Hi Rob, the following is the main class I'm using to call the JUnit class. My task basically is to write a project external to the JUnit project(within the same workspace), that calls JUnit classes in another project. Once again, this class executes fine when I keep it in the same project as the JUnit test classes.



To be very frank, the rest of the projects are a blackbox at the moment, I ran a search on the full workspace and did come up with a few xmls that have the same ip as the one thats figuring in the error.

Thanks a lot.

Ravissant
Ravissant Saraswat
Greenhorn

Joined: Mar 15, 2010
Posts: 20
Hi Rob,
Just to give you a better idea,this is the xml (please find attached) , thats being used :




Thanks!
Ravissant
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.rmi.ConnectIOException - PLEASE HELP!
 
Similar Threads
JUnit4 Test Suite error - PLEASE HELP!!
Reflection and magic value
----SocketException----
Problem in RMI based chat server...
JWS Download Error