aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Exception while running the Client code AdviceClient.java from HFE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Exception while running the Client code AdviceClient.java from HFE" Watch "Exception while running the Client code AdviceClient.java from HFE" New topic
Author

Exception while running the Client code AdviceClient.java from HFE

Shivakanth Thyagarajan
Ranch Hand

Joined: Mar 28, 2005
Posts: 41
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

Joined: Feb 16, 2005
Posts: 146
Please go through this link. It might help

http://www.coderanch.com/t/161481/java-EJB-SCBCD/certification/AdviceClient-Solution


SCJA(Beta) SCJP 1.4 SCWCD 1.4 SCBCD 1.3 SCBCD 5.0 beta <br />The more practice we get, the better we are at the exams and in life in general. Pls join me at My DEN.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Exception while running the Client code AdviceClient.java from HFE