org.hibernate.HibernateException: Hibernate has been shutdown

Atlassian JIRA | Sigge Birgisson | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Review indexing observed by looking at review dashboard. Refresh dashboard page and see total review count increase. Problem found with two scenarios of indexing: - Database restoration triggering a review indexing to happen. - Manual trigger of review indexing. Admin>Global settings>Crucible>Crucible Index Maintenance>Re-index While index is ongoing, observe count in review dashboard. Application was run with ant run. Shutdown with ctrl+c. Restart with ant run Observe that review count does not continue to increase. Could be index, or caused by something else. {code} 2013-09-26 10:52:41,212 ERROR [ReviewIndexer1 ] fisheye DefaultReviewItemIndexer$3-doIndexingOperation - Error indexing reviews org.hibernate.HibernateException: Hibernate has been shutdown at com.cenqua.crucible.hibernate.HibernateUtil.currentState(HibernateUtil.java:196) at com.cenqua.crucible.hibernate.HibernateUtil.currentSession(HibernateUtil.java:187) at com.cenqua.crucible.model.managers.ParticipantManager.session(ParticipantManager.java:15) at com.cenqua.crucible.model.managers.ParticipantManager.getById(ParticipantManager.java:19) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.indexReviewParticipant(DefaultReviewItemIndexer.java:600) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.access$600(DefaultReviewItemIndexer.java:96) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$IndexOperationIterator.doNext(DefaultReviewItemIndexer.java:267) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$2.perform(DefaultReviewItemIndexer.java:406) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$2.perform(DefaultReviewItemIndexer.java:402) at com.cenqua.fisheye.lucene.LuceneConnection.withWriter(LuceneConnection.java:384) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.indexInBatches(DefaultReviewItemIndexer.java:402) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.access$1000(DefaultReviewItemIndexer.java:96) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$3.doIndexingOperation(DefaultReviewItemIndexer.java:696) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$IndexerRunnable.run(DefaultReviewItemIndexer.java:153) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:680) 2013-09-26 10:52:41,225 INFO [ReviewIndexer1 ] fisheye DefaultReviewItemIndexer$3-doIndexingOperation - Completed review re-indexing of 0 documents, took 152 seconds 2013-09-26 10:52:41,229 ERROR [ReviewIndexer1 ] fisheye DefaultReviewItemIndexer$1-doIndexingOperation - Failed to index review org.hibernate.HibernateException: Hibernate has been shutdown at com.cenqua.crucible.hibernate.HibernateUtil.currentState(HibernateUtil.java:196) at com.cenqua.crucible.hibernate.HibernateUtil.currentSession(HibernateUtil.java:187) at com.cenqua.crucible.model.managers.impl.DefaultReviewManager.session(DefaultReviewManager.java:166) at com.cenqua.crucible.model.managers.impl.DefaultReviewManager.getReviewById(DefaultReviewManager.java:874) at com.cenqua.crucible.model.managers.impl.DefaultReviewManager.getReviewById(DefaultReviewManager.java:771) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$IndexOperationIterator.reviewChanged(DefaultReviewItemIndexer.java:295) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$IndexOperationIterator.doNext(DefaultReviewItemIndexer.java:243) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$2.perform(DefaultReviewItemIndexer.java:406) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$2.perform(DefaultReviewItemIndexer.java:402) at com.cenqua.fisheye.lucene.LuceneConnection.withWriter(LuceneConnection.java:384) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.indexInBatches(DefaultReviewItemIndexer.java:402) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.access$1000(DefaultReviewItemIndexer.java:96) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$1.doIndexingOperation(DefaultReviewItemIndexer.java:363) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$IndexerRunnable.run(DefaultReviewItemIndexer.java:153) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:680) {code}

    Atlassian JIRA | 3 years ago | Sigge Birgisson
    org.hibernate.HibernateException: Hibernate has been shutdown
  2. 0

    Review indexing observed by looking at review dashboard. Refresh dashboard page and see total review count increase. Problem found with two scenarios of indexing: - Database restoration triggering a review indexing to happen. - Manual trigger of review indexing. Admin>Global settings>Crucible>Crucible Index Maintenance>Re-index While index is ongoing, observe count in review dashboard. Application was run with ant run. Shutdown with ctrl+c. Restart with ant run Observe that review count does not continue to increase. Could be index, or caused by something else. {code} 2013-09-26 10:52:41,212 ERROR [ReviewIndexer1 ] fisheye DefaultReviewItemIndexer$3-doIndexingOperation - Error indexing reviews org.hibernate.HibernateException: Hibernate has been shutdown at com.cenqua.crucible.hibernate.HibernateUtil.currentState(HibernateUtil.java:196) at com.cenqua.crucible.hibernate.HibernateUtil.currentSession(HibernateUtil.java:187) at com.cenqua.crucible.model.managers.ParticipantManager.session(ParticipantManager.java:15) at com.cenqua.crucible.model.managers.ParticipantManager.getById(ParticipantManager.java:19) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.indexReviewParticipant(DefaultReviewItemIndexer.java:600) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.access$600(DefaultReviewItemIndexer.java:96) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$IndexOperationIterator.doNext(DefaultReviewItemIndexer.java:267) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$2.perform(DefaultReviewItemIndexer.java:406) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$2.perform(DefaultReviewItemIndexer.java:402) at com.cenqua.fisheye.lucene.LuceneConnection.withWriter(LuceneConnection.java:384) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.indexInBatches(DefaultReviewItemIndexer.java:402) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.access$1000(DefaultReviewItemIndexer.java:96) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$3.doIndexingOperation(DefaultReviewItemIndexer.java:696) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$IndexerRunnable.run(DefaultReviewItemIndexer.java:153) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:680) 2013-09-26 10:52:41,225 INFO [ReviewIndexer1 ] fisheye DefaultReviewItemIndexer$3-doIndexingOperation - Completed review re-indexing of 0 documents, took 152 seconds 2013-09-26 10:52:41,229 ERROR [ReviewIndexer1 ] fisheye DefaultReviewItemIndexer$1-doIndexingOperation - Failed to index review org.hibernate.HibernateException: Hibernate has been shutdown at com.cenqua.crucible.hibernate.HibernateUtil.currentState(HibernateUtil.java:196) at com.cenqua.crucible.hibernate.HibernateUtil.currentSession(HibernateUtil.java:187) at com.cenqua.crucible.model.managers.impl.DefaultReviewManager.session(DefaultReviewManager.java:166) at com.cenqua.crucible.model.managers.impl.DefaultReviewManager.getReviewById(DefaultReviewManager.java:874) at com.cenqua.crucible.model.managers.impl.DefaultReviewManager.getReviewById(DefaultReviewManager.java:771) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$IndexOperationIterator.reviewChanged(DefaultReviewItemIndexer.java:295) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$IndexOperationIterator.doNext(DefaultReviewItemIndexer.java:243) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$2.perform(DefaultReviewItemIndexer.java:406) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$2.perform(DefaultReviewItemIndexer.java:402) at com.cenqua.fisheye.lucene.LuceneConnection.withWriter(LuceneConnection.java:384) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.indexInBatches(DefaultReviewItemIndexer.java:402) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.access$1000(DefaultReviewItemIndexer.java:96) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$1.doIndexingOperation(DefaultReviewItemIndexer.java:363) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$IndexerRunnable.run(DefaultReviewItemIndexer.java:153) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:680) {code}

    Atlassian JIRA | 3 years ago | Sigge Birgisson
    org.hibernate.HibernateException: Hibernate has been shutdown

    Root Cause Analysis

    1. org.hibernate.HibernateException

      Hibernate has been shutdown

      at com.cenqua.crucible.hibernate.HibernateUtil.currentState()
    2. com.cenqua.crucible
      DefaultReviewManager.getReviewById
      1. com.cenqua.crucible.hibernate.HibernateUtil.currentState(HibernateUtil.java:196)
      2. com.cenqua.crucible.hibernate.HibernateUtil.currentSession(HibernateUtil.java:187)
      3. com.cenqua.crucible.model.managers.impl.DefaultReviewManager.session(DefaultReviewManager.java:166)
      4. com.cenqua.crucible.model.managers.impl.DefaultReviewManager.getReviewById(DefaultReviewManager.java:874)
      5. com.cenqua.crucible.model.managers.impl.DefaultReviewManager.getReviewById(DefaultReviewManager.java:771)
      5 frames
    3. com.atlassian.crucible
      DefaultReviewItemIndexer$2.perform
      1. com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$IndexOperationIterator.reviewChanged(DefaultReviewItemIndexer.java:295)
      2. com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$IndexOperationIterator.doNext(DefaultReviewItemIndexer.java:243)
      3. com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$2.perform(DefaultReviewItemIndexer.java:406)
      4. com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$2.perform(DefaultReviewItemIndexer.java:402)
      4 frames
    4. com.cenqua.fisheye
      LuceneConnection.withWriter
      1. com.cenqua.fisheye.lucene.LuceneConnection.withWriter(LuceneConnection.java:384)
      1 frame
    5. com.atlassian.crucible
      DefaultReviewItemIndexer$IndexerRunnable.run
      1. com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.indexInBatches(DefaultReviewItemIndexer.java:402)
      2. com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.access$1000(DefaultReviewItemIndexer.java:96)
      3. com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$1.doIndexingOperation(DefaultReviewItemIndexer.java:363)
      4. com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$IndexerRunnable.run(DefaultReviewItemIndexer.java:153)
      4 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      6. java.lang.Thread.run(Thread.java:680)
      6 frames