*
The moose likes Distributed Java and the fly likes InvocationTargetException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "InvocationTargetException" Watch "InvocationTargetException" New topic
Author

InvocationTargetException

Jawad Kakar
Ranch Hand

Joined: Oct 06, 2002
Posts: 82
Dear Friends,
I am getting the following exception when I start my server, what does it mean and how to fix it?
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

It may mean your stub interface doesn't match your service interface anymore and needs to be recompiled.


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Jawad Kakar
Ranch Hand

Joined: Oct 06, 2002
Posts: 82
I did recompile but DID NOT work.
Jawad
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

Hm. Without seeing the code, I could only guess. But since your program is failing on a UnicastServer reference, it's got something to do with properly identifying the implementation of your service -- that is, the class that implements your service and either extends UnicastRemoteObject or calls UnicastRemoteObject's static exportObject() method.
Jawad Kakar
Ranch Hand

Joined: Oct 06, 2002
Posts: 82
Hello Michael,
Thank you for your answers so far, this is part of my code.
where "RemoteServer extends Remote" .
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: InvocationTargetException
 
Similar Threads
rmiregistry programmatically
How do I catch a user define exception on the client (SOAP/JAX-RPC/WSDL)
JDBC Connection Issue
problem while running applicaiton through jar commands........
java.sql.SQLException: Io exception: Invalid character encountered in: failAL32UTF8Conv