Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-171

The license resource job that executes as a Quartz job is throwing a org.hibernate.LazyInitializationException

      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

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 - restricted [ 1510704 ] New: JAC Bug Workflow v3 [ 3365241 ]
            Owen made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 [ 1390893 ] New: Simplified Crowd Development Workflow v2 - restricted [ 1510704 ]
            Owen made changes -
            Workflow Original: Crowd Development Workflow v2 [ 272257 ] New: Simplified Crowd Development Workflow v2 [ 1390893 ]
            jawong.adm made changes -
            Workflow Original: JIRA Bug Workflow v2 [ 173519 ] New: Crowd Development Workflow v2 [ 272257 ]
            Justin Koke made changes -
            Workflow Original: jira [ 76880 ] New: JIRA Bug Workflow v2 [ 173519 ]
            Justin Koke made changes -
            Assignee Original: Justen Stepka [Atlassian] [ justen.stepka@atlassian.com ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Justin Koke made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]

            This has been resolved by adding Spring's Hibernate Interceptor around this job

            Justin Koke added a comment - This has been resolved by adding Spring's Hibernate Interceptor around this job
            Justin Koke created issue -

              Unassigned Unassigned
              justin@atlassian.com Justin Koke
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: