Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Placing object into session, results in servletexception

 
Ricardo Estafan
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 326
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It all looks good...throw us a bone and at least hint at what the error message might be.
 
Ricardo Estafan
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic