*
The moose likes Struts and the fly likes Placing object into session, results in servletexception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Placing object into session, results in servletexception" Watch "Placing object into session, results in servletexception" New topic
Author

Placing object into session, results in servletexception

Ricardo Estafan
Ranch Hand

Joined: Mar 29, 2004
Posts: 84
Hi there,

i have a problem concerning the following code :

in my BaseAction (all other actions inherit from the BaseAction) i have a method initialize :

The problem lies in the addOrderToSession method :

And down to the getOrderFromSession(session)


In this last method there seems to be a problem i cannot get a hold of. Problem is i cannot debug having some difficulties with tomcat and eclipse etc... When i reach this code session is intialized so that is not the problem. It seems to go wrong when i try to write out the order object.

Can anyone help?
[ February 12, 2005: Message edited by: Ricardo Estafan ]
Ray Stojonic
Ranch Hand

Joined: Aug 08, 2003
Posts: 326
It all looks good...throw us a bone and at least hint at what the error message might be.
Ricardo Estafan
Ranch Hand

Joined: Mar 29, 2004
Posts: 84
I found it out the id of the order object wasn't set when i write it out it needs the id, so there you go nullpointer. It's solved thanks for the help!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Placing object into session, results in servletexception