Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1638

Error while shutting down the ModeShape engine

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 3.0.0.Beta4
    • Fix Version/s: 3.0.0.CR1
    • Component/s: None
    • Labels:
      None

      Description

      When working with the modeshape-web-jcr-webdav-war web application, perform the following steps:

      • start the server via mvn cargo:run
      • run any of the tests from org.modeshape.web.jcr.webdav.ModeShapeWebdavStoreClientTest
      • shut down the server (CTRL + C)

      When Cargo is shut down, via a servlet context listener, a call to RepositoryManager.shutdown() is made, which in turn shuts down the ModeShape engine.

      The following error is reported during shutdown:

      [ERROR] [org.modeshape.common.logging.slf4j.SLF4JLoggerImpl] : Failed to shutdown the already-deployed 'webdav_repo' repository prior to redeploying with a new configuration.
      [SLF4JLoggerImpl.java:175]java.util.concurrent.ExecutionException: org.infinispan.CacheException: Error removing cache
      at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
      at java.util.concurrent.FutureTask.get(FutureTask.java:83)
      at org.modeshape.jcr.ModeShapeEngine.doShutdown(ModeShapeEngine.java:240)
      at org.modeshape.jcr.ModeShapeEngine$1.call(ModeShapeEngine.java:201)
      at org.modeshape.jcr.ModeShapeEngine$1.call(ModeShapeEngine.java:198)
      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:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      Caused by: org.infinispan.CacheException: Error removing cache
      at org.infinispan.manager.DefaultCacheManager.removeCache(DefaultCacheManager.java:572)
      at org.modeshape.jcr.cache.RepositoryCache.completeShutdown(RepositoryCache.java:174)
      at org.modeshape.jcr.JcrRepository$RunningState.shutdown(JcrRepository.java:1457)
      at org.modeshape.jcr.JcrRepository.doShutdown(JcrRepository.java:394)
      at org.modeshape.jcr.JcrRepository$1.call(JcrRepository.java:293)
      at org.modeshape.jcr.JcrRepository$1.call(JcrRepository.java:290)
      ... 5 more

      Caused by: java.lang.IllegalStateException: Cache container has been stopped and cannot be reused. Recreate the cache container.
      at org.infinispan.manager.DefaultCacheManager.assertIsNotTerminated(DefaultCacheManager.java:912)
      at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:507)
      at org.infinispan.commands.RemoveCacheCommand.perform(RemoveCacheCommand.java:59)
      at org.infinispan.manager.DefaultCacheManager.removeCache(DefaultCacheManager.java:570)
      ... 10 more

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                hchiorean Horia Chiorean
                Reporter:
                hchiorean Horia Chiorean
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: