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 Piotr Stefan Stefaniak [Atlassian], 1 year ago
Failed to lazily initialize a collection - no session or session was closed
via Atlassian JIRA by Piotr Stefan Stefaniak [Atlassian], 1 year ago
Failed to lazily initialize a collection - no session or session was closed
via Atlassian JIRA by Anatoli Kazatchkov [Atlassian], 2 years 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 James Dumay [Atlassian], 2 years ago
Failed to lazily initialize a collection - no session or session was closed
via Atlassian JIRA by James Dumay [Atlassian], 1 year ago
Failed to lazily initialize a collection - no session or session was closed
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.write(PersistentCollection.java:84)	at net.sf.hibernate.collection.Bag.add(Bag.java:281)	at com.atlassian.bamboo.labels.LabelManagerImpl.addLabel(LabelManagerImpl.java:393)	at com.atlassian.bamboo.labels.LabelManagerImpl.addLabel(LabelManagerImpl.java:57)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	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:149)	at com.atlassian.bamboo.security.acegi.intercept.aopalliance.AuthorityOverrideMethodSecurityInterceptor.invoke(AuthorityOverrideMethodSecurityInterceptor.java:30)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)	at $Proxy27.addLabel(Unknown Source)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)	at $Proxy77.addLabel(Unknown Source)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:150)	at $Proxy77.addLabel(Unknown Source)	at com.mycompany.bamboo.plugins.BuildLabeller.run(BuildLabeller.java:30)	at com.atlassian.bamboo.v2.build.events.PostBuildCompletedEventListener.performCustomBuildCompleteAction(PostBuildCompletedEventListener.java:68)	at com.atlassian.bamboo.v2.build.events.PostBuildCompletedEventListener.handleEvent(PostBuildCompletedEventListener.java:41)	at com.atlassian.bamboo.event.BambooEventManager$2.run(BambooEventManager.java:47)	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)	at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:33)	at java.lang.Thread.run(Thread.java:619)