-->
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.  [ 1 post ] 
Author Message
 Post subject: NullPointerException in Hibernate
PostPosted: Tue Dec 16, 2008 10:41 am 
Newbie

Joined: Tue Oct 14, 2008 5:29 am
Posts: 3
Hello!

I'd like to report a NullPointerException internal to hibernate.

The method org.hibernate.event.def.DefaultDeleteEventListener.deleteTransientEntity(...) is called with a "null" as parameter for the "transientSet". This was passed down many levels from org.hibernate.engine.Cascade.deleteOrphans(...), where the "null" is hard wired into the sources.

I hope you can fix this please.

Regards
Holger

Hibernate version: 3.2.6

Full stack trace of any exception that occurs:

Code:
java.lang.NullPointerException
   at org.hibernate.event.def.DefaultDeleteEventListener.deleteTransientEntity(DefaultDeleteEventListener.java(Compiled Code))
   at org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java(Compiled Code))
   at org.hibernate.impl.SessionImpl.fireDelete(SessionImpl.java(Inlined Compiled Code))
   at org.hibernate.impl.SessionImpl.delete(SessionImpl.java(Inlined Compiled Code))
   at org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java(Compiled Code))
   at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java(Inlined Compiled Code))
   at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java(Compiled Code))
   at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java(Compiled Code))
   at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java(Compiled Code))
   at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java(Compiled Code))
   at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java(Compiled Code))
   at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java(Compiled Code))
   at org.hibernate.engine.Cascade.cascade(Cascade.java(Compiled Code))
   at org.hibernate.event.def.DefaultDeleteEventListener.cascadeBeforeDelete(DefaultDeleteEventListener.java(Compiled Code))
   at org.hibernate.event.def.DefaultDeleteEventListener.deleteEntity(DefaultDeleteEventListener.java(Compiled Code))
   at org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java(Compiled Code))
   at org.hibernate.impl.SessionImpl.fireDelete(SessionImpl.java(Inlined Compiled Code))
   at org.hibernate.impl.SessionImpl.delete(SessionImpl.java(Inlined Compiled Code))
   at org.hibernate.engine.Cascade.deleteOrphans(Cascade.java(Compiled Code))
   at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java(Compiled Code))
   at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java(Compiled Code))
   at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java(Compiled Code))
   at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java(Compiled Code))
   at org.hibernate.engine.Cascade.cascade(Cascade.java(Compiled Code))
   at org.hibernate.engine.Cascade.cascade(Cascade.java(Inlined Compiled Code))
   at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.cascadeOnUpdate(DefaultSaveOrUpdateEventListener.java(Compiled Code))
   at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performUpdate(DefaultSaveOrUpdateEventListener.java(Compiled Code))
   at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsDetached(DefaultSaveOrUpdateEventListener.java(Compiled Code))
   at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java(Compiled Code))
   at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java(Compiled Code))
   at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java(Inlined Compiled Code))
   at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java(Inlined Compiled Code))
   at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java(Compiled Code))
...


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

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.