Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

InvocationTargetException

 
Jawad Kakar
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It may mean your stub interface doesn't match your service interface anymore and needs to be recompiled.
 
Jawad Kakar
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did recompile but DID NOT work.
Jawad
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Michael,
Thank you for your answers so far, this is part of my code.
where "RemoteServer extends Remote" .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic