-->
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: getting a null pointer exception on delete
PostPosted: Fri Jun 22, 2007 9:46 pm 
Newbie

Joined: Tue Jun 13, 2006 9:03 am
Posts: 18
I'm running into an issue where I query for a List<Item> of items using Hibernate HQL in one transaction. Then I take this List and iterate over it, calling session.delete(Item) when iterating. This happens in another transaction. For some reason, everytime I call session.delete(Item), I get a java.lang.NullPointerException. It is not thrown by Hibernate, just a regular NPE. I checked the item before deleting to make sure it is not null and has an id. This is the case. So I do not know how to debug this issue. Any ideas? Thanks!

nefi


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 23, 2007 1:29 pm 
Regular
Regular

Joined: Wed May 05, 2004 8:01 am
Posts: 53
You probably should post you java code.


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.