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
|