This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes NULL Pointer Exception from the class while accessing from EJB/ HttpSession Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "NULL Pointer Exception from the class while accessing from EJB/ HttpSession" Watch "NULL Pointer Exception from the class while accessing from EJB/ HttpSession" New topic
Author

NULL Pointer Exception from the class while accessing from EJB/ HttpSession

Siva Ram
Ranch Hand

Joined: Apr 04, 2002
Posts: 66
Hi,
I have written a class(TestClass) which extends HashMap.
As HashMap already implements serializable interface. I am using this class in EJB trasactions which lead me to NULL Pointer exception.
When ever I am calling the ejb method , I am getting the NULL Pointer exception. Then I called the dao without ejb. It works fine. But the problem is when I set the particular dao output (i.e TestClass object) to HttpSession, it again throws NULL Pointer exception.
It is throwing NULL Pointer exception in put method of the Hashtable.
Can any one please help me to solve this issue please.
Thanks & Regards,
Sivaram


Thanks and Regards,<br />Siva Ram .NR
 
jQuery in Action, 2nd edition
 
subject: NULL Pointer Exception from the class while accessing from EJB/ HttpSession
 
Similar Threads
Throwable
Can the following expression generate null pointer exception?
Confusing code from JQ++
Strange Null Pointer Exception in ActionForm
NULL Pointer Exception from the class which extends Hash Map. urgent help please