org.hibernate.LazyInitializationException
Posted: Thu Aug 23, 2012 10:06 am
Hi,
I'm still working on adding RPC on the demo site and still have troubles. I managed to add Broadleaf services, such as CatalogServices. I can call methodes of this service, but there is a problem when returning the result to RPC.
I got the org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.broadleafcommerce.core.catalog.domain.SkuImpl.skuMedia no session or session was closes.
I googled this error, and it's because the hibernate session has closed, or after the object has been detached from the session. They suggested to set the key lazy="false" in the hibernate mapping file. I'd like to know which files I have to modify and where they are stored.
Thanks
I'm still working on adding RPC on the demo site and still have troubles. I managed to add Broadleaf services, such as CatalogServices. I can call methodes of this service, but there is a problem when returning the result to RPC.
I got the org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.broadleafcommerce.core.catalog.domain.SkuImpl.skuMedia no session or session was closes.
I googled this error, and it's because the hibernate session has closed, or after the object has been detached from the session. They suggested to set the key lazy="false" in the hibernate mapping file. I'd like to know which files I have to modify and where they are stored.
Thanks