• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cast Exception Please Help!!!

 
Sree kanth
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is castException
portableRemoteObject.narrow() is creating some trouble.
I am using j2ee server and deployment works properly
What may be trouble.
Please help
Rgds,
Sree
 
Marco Barenkamp
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think the Stub class is missing. The narrow() method tries to ask the
Stub class whether the retrieved object is of that class (or at least equivalent, if it's an C++ object, e.g.). If the stub class is missing, a ClassCastException is thrown. Use the deploytool to create the Stubs.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!