net.sf.hibernate.HibernateException: Could not initialize proxy - the owning 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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Atlassian JIRA by Brydie McCoy [Atlassian], 1 year ago
Could not initialize proxy - the owning Session was closed
via Atlassian JIRA by Brydie McCoy [Atlassian], 1 year ago
Could not initialize proxy - the owning Session was closed
via Atlassian JIRA by Steve Lancashire [Atlassian], 1 year ago
Could not initialize proxy - the owning Session was closed
via Atlassian JIRA by Steve Lancashire [Atlassian], 1 year ago
Could not initialize proxy - the owning Session was closed
via Atlassian JIRA by Dmitriy Amelin, 1 year ago
Could not initialize proxy - the owning Session was closed
via Atlassian JIRA by Jens Schumacher, 1 year ago
Could not initialize proxy - the owning Session was closed
net.sf.hibernate.HibernateException: Could not initialize proxy - the owning Session was closed
at net.sf.hibernate.proxy.LazyInitializer.initialize(LazyInitializer.java:47)
at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:60)
at net.sf.hibernate.proxy.LazyInitializer.getImplementation(LazyInitializer.java:164)
at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108)
at com.atlassian.bamboo.chains.DefaultChain$$EnhancerByCGLIB$$eb45b624.getBuildDefinition()
at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinitionFromBuild(DefaultBuildDefinitionManager.java:194)
at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinition(DefaultBuildDefinitionManager.java:81)
at com.atlassian.bamboo.plan.AbstractPlan.getBuildDefinition(AbstractPlan.java:251)
at com.atlassian.bamboo.schedule.DefaultPlanScheduler$1.run(DefaultPlanScheduler.java:30)
at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:322)
at com.atlassian.bamboo.schedule.DefaultPlanScheduler.removeSchedulingJobs(DefaultPlanScheduler.java:26)
at com.atlassian.bamboo.deletion.DeletionServiceImpl$1$3.call(DeletionServiceImpl.java:295)
at com.atlassian.bamboo.deletion.DeletionServiceImpl$1$3.call(DeletionServiceImpl.java:292)
at com.atlassian.bamboo.deletion.DeletionServiceImpl.withUtilTimerStack(DeletionServiceImpl.java:353)
at com.atlassian.bamboo.deletion.DeletionServiceImpl.access$200(DeletionServiceImpl.java:39)
at com.atlassian.bamboo.deletion.DeletionServiceImpl$1.call(DeletionServiceImpl.java:290)
at com.atlassian.bamboo.deletion.DeletionServiceImpl$1.call(DeletionServiceImpl.java:252)
at com.atlassian.bamboo.deletion.DeletionServiceImpl.withUtilTimerStack(DeletionServiceImpl.java:353)
at com.atlassian.bamboo.deletion.DeletionServiceImpl.tearDownPlan(DeletionServiceImpl.java:250)
at com.atlassian.bamboo.deletion.DeletionServiceImpl.deleteResultsAndPlan(DeletionServiceImpl.java:239)
at com.atlassian.bamboo.deletion.DeletionServiceImpl.deletePlans(DeletionServiceImpl.java:226)
at com.atlassian.bamboo.deletion.DeletionServiceImpl.executeDelayedDeletion(DeletionServiceImpl.java:169)
at sun.reflect.GeneratedMethodAccessor573.invoke(Unknown Source)
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 com.atlassian.bamboo.security.acegi.intercept.aopalliance.AuthorityOverrideMethodSecurityInterceptor.invoke(AuthorityOverrideMethodSecurityInterceptor.java:30)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.atlassian.bamboo.deletion.DeletionServiceJob.execute(DeletionServiceJob.java:22)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36)

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.

Write tip

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