Hi Everyone,
I have tried the HF chapter 1 example but I get an null Pointer exception in the home.create() in the client code. Code runs successfully up to that point. When I chek (home==null) it returns true.I am using SJSAS 8.2 App server and JDK 1.5. I have done everything according to the book and all the classpaths,JNDIs etc are working fine.
------------------------
Context ic = new InitialContext();
Object o = ic.lookup("ejb.Advisor");
AdviceHome home = (AdviceHome) PortableRemoteObject.narrow(o, AdviceHome.class);
Advice advisor = home.create(); // -----> here it gives a null pointer exception
System.out.println( advisor.getAdvice() );
..............
Any idea about where that could have go wrong will be really appreciated.
Regards
Vijitha
(
SCJP 1.5)
----------------------------
[ June 23, 2008: Message edited by: Vijitha Kumara ]
[ June 24, 2008: Message edited by: Vijitha Kumara ]