This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes PortableRemoteObject  encounter exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "PortableRemoteObject  encounter exception" Watch "PortableRemoteObject  encounter exception" New topic

PortableRemoteObject encounter exception

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I was working with the EJB ConverterApp tutorial
Both EJB server and Deplytool work fine. But when I try to run
client program, I got the following Exception:
F:\ejblab>java -classpath %cpath% ConverterClient
Caught an unexpected exception!
java.lang.ClassCastException at at javax.rmi.PortableRemoteObject.narrow(
at ConverterClient.main(
what does PortableRemoteObject mean?
where and how I can fix it?
thanks in advance
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I got it
B Alexander

Joined: Mar 19, 2001
Posts: 5
Sean, how did you resolve this? I've included the client jar file, I've got my classpath to exactly what [I think] it should be, but I still get this exception. Hopefully you have some advice on your solution...
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: PortableRemoteObject encounter exception
It's not a secret anymore!