org.hibernate.HibernateException: Hibernate has been shutdown

Atlassian JIRA | Sigge Birgisson | 3 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

    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
      ParticipantManager.getById
      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.ParticipantManager.session(ParticipantManager.java:15)
      4. com.cenqua.crucible.model.managers.ParticipantManager.getById(ParticipantManager.java:19)
      4 frames
    3. com.atlassian.crucible
      DefaultReviewItemIndexer$2.perform
      1. com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.indexReviewParticipant(DefaultReviewItemIndexer.java:600)
      2. com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.access$600(DefaultReviewItemIndexer.java:96)
      3. com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$IndexOperationIterator.doNext(DefaultReviewItemIndexer.java:267)
      4. com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$2.perform(DefaultReviewItemIndexer.java:406)
      5. com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$2.perform(DefaultReviewItemIndexer.java:402)
      5 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$3.doIndexingOperation(DefaultReviewItemIndexer.java:696)
      4. com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer$IndexerRunnable.run(DefaultReviewItemIndexer.java:153)
      4 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      3. java.lang.Thread.run(Thread.java:680)
      3 frames