This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception while running the Client code AdviceClient.java from HFE