-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: my persistance bean saved to HttpSession get lost
PostPosted: Sat Feb 12, 2005 8:26 am 
Newbie

Joined: Tue Nov 30, 2004 4:18 am
Posts: 6
Location: colombo
I populate a hibernate persisted bean in a struts action class and store in HttpSession. Then it is forwarded to a jsp and once it is submitted - within another action I try to retrive the above bean, the session return a null value. I have checked for any intermedite code that may remove the HttpSession session or recreate it, but found none.

Could this be a known issue when using Hibernate with MySQL and Struts?



Hibernate version:2.1

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs: (Null point exception).

Name and version of the database you are using: MYsql Version-4.1.9-NT

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 12, 2005 12:35 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Does your bean override equals() and/or hashCode()?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.