Exception while running the Client code AdviceClient.java from HFE
posted 9 years ago
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.