2 Replies Latest reply on Aug 2, 2016 5:42 AM by stejas7

    Cache Container issue

    stejas7

      Hello nadirx sebastian.laskawiec rvansa,

       

      i was extract fresh zip of 8.2.3 infinispan server. i was started the server using domain.bat and go to the web management console.than i was creating cache container using base container type default. cache was created successfully.

       

      but after that when i restart the server it will give me a below error.

       

      ERROR:

       

      [Server:server-one] 23:48:15,130 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.datagrid-infinispan.clustered.default: org.jboss.msc.service.StartException in service jboss.datagrid-infinispan.clustered.default: Failed to start service

      [Server:server-one]     at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)

      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      [Server:server-one]     at java.lang.Thread.run(Thread.java:745)

      [Server:server-one] Caused by: org.infinispan.commons.CacheConfigurationException: ISPN000373: Attempted to start a cache using configuration template 'default'

      [Server:server-one]     at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:616)

      [Server:server-one]     at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:585)

      [Server:server-one]     at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:451)

      [Server:server-one]     at org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager.getCache(AbstractDelegatingEmbeddedCacheManager.java:133)

      [Server:server-one]     at org.infinispan.server.infinispan.SecurityActions$5.run(SecurityActions.java:130)

      [Server:server-one]     at org.infinispan.server.infinispan.SecurityActions$5.run(SecurityActions.java:127)

      [Server:server-one]     at org.infinispan.security.Security.doPrivileged(Security.java:76)

      [Server:server-one]     at org.infinispan.server.infinispan.SecurityActions.doPrivileged(SecurityActions.java:63)

      [Server:server-one]     at org.infinispan.server.infinispan.SecurityActions.startCache(SecurityActions.java:135)

      [Server:server-one]     at org.jboss.as.clustering.infinispan.subsystem.CacheService.start(CacheService.java:86)

      [Server:server-one]     at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

      [Server:server-one]     at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

      [Server:server-one]     ... 3 more

      [Server:server-one]

       

       

      its a bug or i am doing something wrong?

        • 1. Re: Cache Container issue
          nadirx

          While not really a bug, the Infinispan code prevents you from using configurations both as concrete caches and as bases for other configurations/caches.

          So if you have a cache configuration "default", a cache "default" and another cache or configuration which extends "default" that will not work. The solution is to rename the "default" configuration to something else (e.g. default-config and then have the default cache and whatever other cache use that).

          • 2. Re: Cache Container issue
            stejas7

            Thanks nadirx  .

             

            I was created my own cache template and using that i was created a cache container. its working perfactly.