-->
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: LazyInitializationException on an empty collection?
PostPosted: Thu Dec 17, 2009 9:00 pm 
Beginner
Beginner

Joined: Thu Jan 29, 2009 1:24 am
Posts: 20
Hello all,

I'm using Hibernate 3.4.0 through Spring+JPA. I'm seeing some weird behavior with collections that is causing a LazyInitializationException to occur. During an open transaction session I serialize an entity to XML. Objects that contain a PersistentBag with some data in it serialize just fine however objects that contain a PersistentBag that are empty (no data) are throwing the LazyInitializationException even though the PersistentBag is initialized (which is proven as the "initialized" boolean is true before serialization). Anyone have any idea why this would be happening?

Jean-Philippe


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.