-
Bug
-
Resolution: Fixed
-
High
-
0.4.4
-
None
This is the exception that is thrown:
18:00:01,844 ERROR org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.atlassian.crowd.model.application.Application.directories, no session or session was closed org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.atlassian.crowd.model.application.Application.directories, no session or session was closed at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358) at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350) at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:343) at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86) at org.hibernate.collection.PersistentList.iterator(PersistentList.java:115) at com.atlassian.crowd.manager.license.CrowdLicenseManagerImpl.getCurrentResourceUsuageTotal(CrowdLicenseManagerImpl.java:141) at com.atlassian.crowd.license.LicenseResourceJob.getCurrentResourceTotal(LicenseResourceJob.java:125) at com.atlassian.crowd.license.LicenseResourceJob.executeInternal(LicenseResourceJob.java:38) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:90) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) 18:00:01,844 FATAL atlassian.crowd.manager.license.CrowdLicenseManagerImpl: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.atlassian.crowd.model.application.Application.directories, no session or sess ion was closed 18:00:01,844 FATAL com.atlassian.crowd.license.LicenseResourceJob: com.atlassian.crowd.manager.license.CrowdLicenseManagerException: Failed to calculate the current number of 'used' resources.
[CWD-171] The license resource job that executes as a Quartz job is throwing a org.hibernate.LazyInitializationException
Workflow | Original: Simplified Crowd Development Workflow v2 - restricted [ 1510704 ] | New: JAC Bug Workflow v3 [ 3365241 ] |
Workflow | Original: Simplified Crowd Development Workflow v2 [ 1390893 ] | New: Simplified Crowd Development Workflow v2 - restricted [ 1510704 ] |
Workflow | Original: Crowd Development Workflow v2 [ 272257 ] | New: Simplified Crowd Development Workflow v2 [ 1390893 ] |
Workflow | Original: JIRA Bug Workflow v2 [ 173519 ] | New: Crowd Development Workflow v2 [ 272257 ] |
Workflow | Original: jira [ 76880 ] | New: JIRA Bug Workflow v2 [ 173519 ] |
Assignee | Original: Justen Stepka [Atlassian] [ justen.stepka@atlassian.com ] | |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
This has been resolved by adding Spring's Hibernate Interceptor around this job