Uploaded image for project: 'MyCoRe'
  1. MCR-1231

rebuild solr metadata index throws org.hibernate.SessionException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2016.02
    • Fix Version/s: 2016.06.0
    • Component/s: mycore-solr
    • Labels:
      None

      Description

      MyCoRe:> rebuild solr metadata index

      .....

      2016-03-18T17:09:33,243 ERROR root MCRSolrIndexer: Error while submitting index handler.
      java.util.concurrent.ExecutionException: org.hibernate.SessionException: Session was already closed
      at java.util.concurrent.FutureTask.report(Unknown Source)
      at java.util.concurrent.FutureTask.get(Unknown Source)
      at org.mycore.solr.index.MCRSolrIndexer.submitIndexHandler(MCRSolrIndexer.java:320)
      at org.mycore.solr.index.MCRSolrIndexer.rebuildMetadataIndex(MCRSolrIndexer.java:246)
      at org.mycore.solr.index.MCRSolrIndexer.rebuildMetadataIndex(MCRSolrIndexer.java:204)
      at org.mycore.solr.index.MCRSolrIndexer.rebuildMetadataIndex(MCRSolrIndexer.java:182)
      at org.mycore.solr.commands.MCRSolrCommands.rebuildMetadataIndex(MCRSolrCommands.java:43)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.mycore.frontend.cli.MCRCommand.invoke(MCRCommand.java:252)
      at org.mycore.frontend.cli.MCRCommand.invoke(MCRCommand.java:232)
      at org.mycore.frontend.cli.MCRCommandManager.invokeCommand(MCRCommandManager.java:149)
      at org.mycore.frontend.cli.MCRCommandLineInterface.processCommand(MCRCommandLineInterface.java:185)
      at org.mycore.frontend.cli.MCRCommandLineInterface.main(MCRCommandLineInterface.java:133)
      Caused by: org.hibernate.SessionException: Session was already closed
      at org.hibernate.internal.SessionImpl.close(SessionImpl.java:414)
      at org.hibernate.jpa.internal.EntityManagerImpl.close(EntityManagerImpl.java:145)
      at org.mycore.backend.jpa.MCRSessionContext.autoCloseSession(MCRSessionContext.java:117)
      at org.mycore.backend.jpa.MCRSessionContext.sessionEvent(MCRSessionContext.java:79)
      at org.mycore.common.MCRSession.lambda$fireSessionEvent$13(MCRSession.java:357)
      at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
      at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)
      at org.mycore.common.MCRSession.fireSessionEvent(MCRSession.java:357)
      at org.mycore.common.MCRSessionMgr.removeSession(MCRSessionMgr.java:177)
      at org.mycore.common.MCRSession.close(MCRSession.java:262)
      at org.mycore.solr.index.MCRSolrIndexTask.call(MCRSolrIndexTask.java:71)
      at org.mycore.solr.index.MCRSolrIndexTask.call(MCRSolrIndexTask.java:22)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      MyCoRe: Command processed (619 ms)

      I would first look into: (MCRSolrIndexTask.java:71)

        Attachments

          Activity

            People

            • Assignee:
              mcrsteph Robert Stephan
              Reporter:
              mcrsteph Robert Stephan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: