Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception while running the Client code AdviceClient.java from HFE

 
Shivakanth Thyagarajan
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • 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
 
MI Mohammed
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please go through this link. It might help

http://www.coderanch.com/t/161481/java-EJB-SCBCD/certification/AdviceClient-Solution
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic