Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Exception while running the Client code AdviceClient.java from HFE

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am receiving the following exception, when running "AdviceClient".
I am using Windows 2000 operating system,
Compiled the code using the command :
javac AdviceClient.java ( Have set the environment variables appropriately )
java AdviceClient.
I am receiving the following exception.

java.lang.ClassCastException
at com.sun.corba.se.internal.javax.rmi.Port
wn Source)
at javax.rmi.PortableRemoteObject.narrow(Un
at AdviceClient.go(AdviceClient.java:17)
at AdviceClient.main(AdviceClient.java:9)

I have compiled and run the code in same manner as specified in the book, but still encountering the same error.

Please duly help me at the earliest. I am very curious to see my first bean run.


Thanks
Shivakanth.T
 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please go through this link. It might help

https://coderanch.com/t/161481/java-EJB-SCBCD/certification/AdviceClient-Solution
 
reply
    Bookmark Topic Watch Topic
  • New Topic