File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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" .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: InvocationTargetException