Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PortableRemoteObject encounter exception

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,folks
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 com.sun.corba.ee.internal.javax.rmi.PortableRemoteObject.narrow(PortableRem oteObject.java:296) at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
at ConverterClient.main(ConverterClient.java:16)
what does PortableRemoteObject mean?
where and how I can fix it?
thanks in advance
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
I got it
 
B Alexander
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
Thanks,
B
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic