• 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

JUnit4 Test Suite error - PLEASE HELP!!

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everyone,
I've written a main class from which I'm calling a JUnit test case. Now, the JUnit test case runs fine as long as the main class is in the same project , but I get the following exception when I put the main class in another project and execute it after adding the import statements etc :

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.65.20; 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)
at com.accenture.ams.adaptiveAnalytics.effectiveness.optimization.util.QueueMaintainer$1.run(QueueMaintainer.java:160)



I added all dependent projects from the JUnit project to the main class' build path too, still I get the above error .

The following is my main class :




Please, Please help!!

Thanks in advance,
Ravissant
 
I've got no option but to sell you all for scientific experiments. Or a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic