-->
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: ERROR org.hibernate.LazyInitializationException
PostPosted: Mon Jul 19, 2010 11:40 am 
Newbie

Joined: Wed Nov 18, 2009 7:00 pm
Posts: 12
I'm currently using:
Spring 3.0.2
Hibernate Search 3.2.0
Hibernate 3.5.3

When running the massindexer I'm unable to Lazily load my collections. I get the following error,

[Hibernate Search: collectionsloader-x] ERROR org.hibernate.LazyInitializationException - failed to lazily initialize a collection of role:
no session or session was closed

I'm injecting my EntityManager using Spring with @PersistenceContext and using Spring to manage my transactions.

When running in debug mode, the session == null in the method
private final boolean isConnectedToSession(); of AbstractPersistentCollection

What am I doing wrong, or what do I need to change so I can lazily load during massindexing.

Thanks


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.