net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no session or session was closed

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Atlassian JIRA by Anatoli Kazatchkov [Atlassian], 1 year ago
Failed to lazily initialize a collection - no session or session was closed
via Atlassian JIRA by Anatoli Kazatchkov [Atlassian], 1 year ago
Failed to lazily initialize a collection - no session or session was closed
via Atlassian JIRA by Mark Chaimungkalanont, 1 year ago
cannot access loading collection
via Atlassian JIRA by Mark Chaimungkalanont, 1 year ago
cannot access loading collection
via sourceforge.net by Unknown author, 1 year ago
Failed to lazily initialize a collection - no session or session was closed
via springframework by chrisnam1208
, 1 year ago
Failed to lazily initialize a collection
net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no session or session was closed
at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:209)
at net.sf.hibernate.collection.PersistentCollection.read(PersistentCollection.java:71)
at net.sf.hibernate.collection.Set.isEmpty(Set.java:114)
at com.atlassian.bamboo.v2.build.trigger.CodeChangedTriggerReasonRenderer.setSourceChangeList(CodeChangedTriggerReasonRenderer.java:86)
at com.atlassian.bamboo.v2.build.trigger.CodeChangedTriggerReasonRenderer.init(CodeChangedTriggerReasonRenderer.java:47)
at com.atlassian.bamboo.v2.build.trigger.TriggerReasonManagerImpl.getTriggerReasonRenderer(TriggerReasonManagerImpl.java:42)
at com.atlassian.bamboo.notification.buildcompleted.AfterXFailedNotification.init(AfterXFailedNotification.java:108)
at com.atlassian.bamboo.notification.buildcompleted.AfterXFailedBuildsNotificationListener.handleEvent(AfterXFailedBuildsNotificationListener.java:65)
at sun.reflect.GeneratedMethodAccessor618.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.atlassian.bamboo.event.BambooEventManager$2.run(BambooEventManager.java:66)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:47)
at java.lang.Thread.run(Thread.java:613)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.