org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no session or session was closed]

Atlassian JIRA | Ajay Sridhar [Atlassian] | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    {code} 2008-02-10 00:00:00,163 INFO [QuartzScheduler_Worker-4] [BuildExpiryBean] Found 59 builds to expire. 2008-02-10 00:00:00,164 ERROR [QuartzScheduler_Worker-4] [LazyInitializationException] 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.read(PersistentCollection.java:71) at net.sf.hibernate.collection.Bag.iterator(Bag.java:256) at com.atlassian.bamboo.resultsummary.BuildResultsSummaryImpl.getLabelNames(BuildResultsSummaryImpl.java:213) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.excludedDueToLabel(BuildExpiryBean.java:197) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireBuild(BuildExpiryBean.java:160) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireAllBuilds(BuildExpiryBean.java:86) at com.atlassian.bamboo.build.expiry.ExpiredBuildCleaner.execute(ExpiredBuildCleaner.java:25) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) 2008-02-10 00:00:00,167 ERROR [QuartzScheduler_Worker-4] [JobRunShell] Job DEFAULT.removeExpiredBuilds threw an unhandled Exception: 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.Bag.iterator(Bag.java:256) at com.atlassian.bamboo.resultsummary.BuildResultsSummaryImpl.getLabelNames(BuildResultsSummaryImpl.java:213) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.excludedDueToLabel(BuildExpiryBean.java:197) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireBuild(BuildExpiryBean.java:160) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireAllBuilds(BuildExpiryBean.java:86) at com.atlassian.bamboo.build.expiry.ExpiredBuildCleaner.execute(ExpiredBuildCleaner.java:25) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) 2008-02-10 00:00:00,170 ERROR [QuartzScheduler_Worker-4] [ErrorLogger] Job (DEFAULT.removeExpiredBuilds threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no session or session was closed] at org.quartz.core.JobRunShell.run(JobRunShell.java:214) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) * Nested Exception (Underlying Cause) --------------- 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.Bag.iterator(Bag.java:256) at com.atlassian.bamboo.resultsummary.BuildResultsSummaryImpl.getLabelNames(BuildResultsSummaryImpl.java:213) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.excludedDueToLabel(BuildExpiryBean.java:197) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireBuild(BuildExpiryBean.java:160) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireAllBuilds(BuildExpiryBean.java:86) at com.atlassian.bamboo.build.expiry.ExpiredBuildCleaner.execute(ExpiredBuildCleaner.java:25) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520){code}

    Atlassian JIRA | 9 years ago | Ajay Sridhar [Atlassian]
    org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no session or session was closed]
  2. 0

    {code} 2008-02-10 00:00:00,163 INFO [QuartzScheduler_Worker-4] [BuildExpiryBean] Found 59 builds to expire. 2008-02-10 00:00:00,164 ERROR [QuartzScheduler_Worker-4] [LazyInitializationException] 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.read(PersistentCollection.java:71) at net.sf.hibernate.collection.Bag.iterator(Bag.java:256) at com.atlassian.bamboo.resultsummary.BuildResultsSummaryImpl.getLabelNames(BuildResultsSummaryImpl.java:213) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.excludedDueToLabel(BuildExpiryBean.java:197) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireBuild(BuildExpiryBean.java:160) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireAllBuilds(BuildExpiryBean.java:86) at com.atlassian.bamboo.build.expiry.ExpiredBuildCleaner.execute(ExpiredBuildCleaner.java:25) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) 2008-02-10 00:00:00,167 ERROR [QuartzScheduler_Worker-4] [JobRunShell] Job DEFAULT.removeExpiredBuilds threw an unhandled Exception: 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.Bag.iterator(Bag.java:256) at com.atlassian.bamboo.resultsummary.BuildResultsSummaryImpl.getLabelNames(BuildResultsSummaryImpl.java:213) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.excludedDueToLabel(BuildExpiryBean.java:197) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireBuild(BuildExpiryBean.java:160) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireAllBuilds(BuildExpiryBean.java:86) at com.atlassian.bamboo.build.expiry.ExpiredBuildCleaner.execute(ExpiredBuildCleaner.java:25) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) 2008-02-10 00:00:00,170 ERROR [QuartzScheduler_Worker-4] [ErrorLogger] Job (DEFAULT.removeExpiredBuilds threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no session or session was closed] at org.quartz.core.JobRunShell.run(JobRunShell.java:214) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) * Nested Exception (Underlying Cause) --------------- 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.Bag.iterator(Bag.java:256) at com.atlassian.bamboo.resultsummary.BuildResultsSummaryImpl.getLabelNames(BuildResultsSummaryImpl.java:213) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.excludedDueToLabel(BuildExpiryBean.java:197) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireBuild(BuildExpiryBean.java:160) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireAllBuilds(BuildExpiryBean.java:86) at com.atlassian.bamboo.build.expiry.ExpiredBuildCleaner.execute(ExpiredBuildCleaner.java:25) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520){code}

    Atlassian JIRA | 9 years ago | Ajay Sridhar [Atlassian]
    org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no session or session was closed]
  3. 0

    While looking through logs, found that build expiry was throwing exceptions: 2008-01-12 00:00:23,686 ERROR [QuartzScheduler_Worker-0] [JobRunShell] Job DEFAULT.removeExpiredBuilds threw an unhandled Exception: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:128) at org.apache.lucene.index.IndexReader.termDocs(IndexReader.java:579) at org.apache.lucene.search.TermQuery$TermWeight.scorer(TermQuery.java:64) at org.apache.lucene.search.BooleanQuery$BooleanWeight.scorer(BooleanQuery.java:233) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:143) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:113) at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:74) at org.apache.lucene.search.Hits.hitDoc(Hits.java:154) at org.apache.lucene.search.Hits.id(Hits.java:131) at org.apache.lucene.search.Hit.getId(Hit.java:77) at com.atlassian.bamboo.index.DefaultBuildResultsIndexer.deIndexBuildResults(DefaultBuildResultsIndexer.java:328) at com.atlassian.bamboo.resultsummary.BuildResultsSummaryManagerImpl.removeBuildResult(BuildResultsSummaryManagerImpl.java:190) 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:585) 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.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy10.removeBuildResult(Unknown Source) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireBuild(BuildExpiryBean.java:172) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireAllBuilds(BuildExpiryBean.java:88) at com.atlassian.bamboo.build.expiry.ExpiredBuildCleaner.execute(ExpiredBuildCleaner.java:25) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) 2008-01-12 00:00:23,791 ERROR [QuartzScheduler_Worker-0] [ErrorLogger] Job (DEFAULT.removeExpiredBuilds threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed] at org.quartz.core.JobRunShell.run(JobRunShell.java:214) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) * Nested Exception (Underlying Cause) --------------- org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:128) at org.apache.lucene.index.IndexReader.termDocs(IndexReader.java:579) at org.apache.lucene.search.TermQuery$TermWeight.scorer(TermQuery.java:64) at org.apache.lucene.search.BooleanQuery$BooleanWeight.scorer(BooleanQuery.java:233) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:143) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:113) at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:74) at org.apache.lucene.search.Hits.hitDoc(Hits.java:154) at org.apache.lucene.search.Hits.id(Hits.java:131) at org.apache.lucene.search.Hit.getId(Hit.java:77) at com.atlassian.bamboo.index.DefaultBuildResultsIndexer.deIndexBuildResults(DefaultBuildResultsIndexer.java:328) at com.atlassian.bamboo.resultsummary.BuildResultsSummaryManagerImpl.removeBuildResult(BuildResultsSummaryManagerImpl.java:190) 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:585) 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.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy10.removeBuildResult(Unknown Source) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireBuild(BuildExpiryBean.java:172) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireAllBuilds(BuildExpiryBean.java:88) at com.atlassian.bamboo.build.expiry.ExpiredBuildCleaner.execute(ExpiredBuildCleaner.java:25) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

    Atlassian JIRA | 9 years ago | Edwin Wong [Atlassian]
    org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    While looking through logs, found that build expiry was throwing exceptions: 2008-01-12 00:00:23,686 ERROR [QuartzScheduler_Worker-0] [JobRunShell] Job DEFAULT.removeExpiredBuilds threw an unhandled Exception: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:128) at org.apache.lucene.index.IndexReader.termDocs(IndexReader.java:579) at org.apache.lucene.search.TermQuery$TermWeight.scorer(TermQuery.java:64) at org.apache.lucene.search.BooleanQuery$BooleanWeight.scorer(BooleanQuery.java:233) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:143) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:113) at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:74) at org.apache.lucene.search.Hits.hitDoc(Hits.java:154) at org.apache.lucene.search.Hits.id(Hits.java:131) at org.apache.lucene.search.Hit.getId(Hit.java:77) at com.atlassian.bamboo.index.DefaultBuildResultsIndexer.deIndexBuildResults(DefaultBuildResultsIndexer.java:328) at com.atlassian.bamboo.resultsummary.BuildResultsSummaryManagerImpl.removeBuildResult(BuildResultsSummaryManagerImpl.java:190) 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:585) 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.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy10.removeBuildResult(Unknown Source) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireBuild(BuildExpiryBean.java:172) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireAllBuilds(BuildExpiryBean.java:88) at com.atlassian.bamboo.build.expiry.ExpiredBuildCleaner.execute(ExpiredBuildCleaner.java:25) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) 2008-01-12 00:00:23,791 ERROR [QuartzScheduler_Worker-0] [ErrorLogger] Job (DEFAULT.removeExpiredBuilds threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed] at org.quartz.core.JobRunShell.run(JobRunShell.java:214) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) * Nested Exception (Underlying Cause) --------------- org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:128) at org.apache.lucene.index.IndexReader.termDocs(IndexReader.java:579) at org.apache.lucene.search.TermQuery$TermWeight.scorer(TermQuery.java:64) at org.apache.lucene.search.BooleanQuery$BooleanWeight.scorer(BooleanQuery.java:233) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:143) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:113) at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:74) at org.apache.lucene.search.Hits.hitDoc(Hits.java:154) at org.apache.lucene.search.Hits.id(Hits.java:131) at org.apache.lucene.search.Hit.getId(Hit.java:77) at com.atlassian.bamboo.index.DefaultBuildResultsIndexer.deIndexBuildResults(DefaultBuildResultsIndexer.java:328) at com.atlassian.bamboo.resultsummary.BuildResultsSummaryManagerImpl.removeBuildResult(BuildResultsSummaryManagerImpl.java:190) 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:585) 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.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy10.removeBuildResult(Unknown Source) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireBuild(BuildExpiryBean.java:172) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireAllBuilds(BuildExpiryBean.java:88) at com.atlassian.bamboo.build.expiry.ExpiredBuildCleaner.execute(ExpiredBuildCleaner.java:25) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

    Atlassian JIRA | 9 years ago | Edwin Wong [Atlassian]
    org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed]
  6. 0

    {noformat} 2011-03-20 18:38:44,597 ERROR [QuartzScheduler_Worker-7] [JobRunShell] Job elastic agent monitor job group.elastic agent monitor job threw an unhandl\ ed Exception: java.lang.NullPointerException at com.atlassian.bamboo.agent.elastic.schedule.ElasticRunningInstancesOptimizer.getAverageTimeInQueue(ElasticRunningInstancesOptimizer.java:2\ 24) at com.atlassian.bamboo.agent.elastic.schedule.ElasticRunningInstancesOptimizer.getImagesToStart(ElasticRunningInstancesOptimizer.java:103) at com.atlassian.bamboo.agent.elastic.schedule.ElasticInstancesMonitorJob.execute(ElasticInstancesMonitorJob.java:36) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 2011-03-20 18:38:44,601 ERROR [QuartzScheduler_Worker-7] [ErrorLogger] Job (elastic agent monitor job group.elastic agent monitor job threw an except\ ion. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NullPointerException] at org.quartz.core.JobRunShell.run(JobRunShell.java:213) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) Caused by: java.lang.NullPointerException at com.atlassian.bamboo.agent.elastic.schedule.ElasticRunningInstancesOptimizer.getAverageTimeInQueue(ElasticRunningInstancesOptimizer.java:2\ 24) at com.atlassian.bamboo.agent.elastic.schedule.ElasticRunningInstancesOptimizer.getImagesToStart(ElasticRunningInstancesOptimizer.java:103) at com.atlassian.bamboo.agent.elastic.schedule.ElasticInstancesMonitorJob.execute(ElasticInstancesMonitorJob.java:36) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ... 2 more {noformat}

    Atlassian JIRA | 6 years ago | James Dumay [Atlassian]
    org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NullPointerException]

  1. linxiaolong 1 times, last 7 months ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.quartz.SchedulerException

    Job threw an unhandled exception. [See nested exception: net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no session or session was closed]

    at org.quartz.core.JobRunShell.run()
  2. quartz
    JobRunShell.run
    1. org.quartz.core.JobRunShell.run(JobRunShell.java:214)
    1 frame
  3. com.atlassian.bamboo
    SystemAuthorizedThreadPool$1.run
    1. com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36)
    1 frame
  4. quartz
    SimpleThreadPool$WorkerThread.run
    1. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    1 frame