-->
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: NullPointerException in SessionImpl.dirty
PostPosted: Fri Mar 19, 2004 11:54 pm 
Regular
Regular

Joined: Sun Oct 26, 2003 9:02 pm
Posts: 90
Hi

I'm using Hibernate 2.1.2 with jdk 1.3.1_09

I'm inserting an object that has an empty List. I commit the object and do a session.clear ().

Using the same session I use the "find" method to obtain the object. When I get the collection and add an element using the "add" method I get:

java.lang.NullPointerException

void net.sf.hibernate.impl.SessionImpl.dirty(net.sf.hibernate.collection.PersistentCollection)

SessionImpl.java:3190

void net.sf.hibernate.collection.PersistentCollection.write()

PersistentCollection.java:86

boolean net.sf.hibernate.collection.List.add(java.lang.Object)

List.java:129

Thanks in advance for the help


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 20, 2004 12:12 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Please submit a simple test case to JIRA, so that I can reproduce this. It looks like you are doing a Bad Thing, but the NPE is a bad exception.


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.