Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1682

Cache.getCacheConfiguration() fails if cache is already started

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 5.1.0.CR3
    • 5.1.0.CR2
    • Configuration
    • None

      Calling Cache.getCacheConfiguration() on a started cache throws the following exception:

      Caused by: org.infinispan.config.ConfigurationException: Attempted to modify a non-Dynamic configuration element [enabled] after the component has started!
      at org.infinispan.config.AbstractConfigurationBean.testImmutability(AbstractConfigurationBean.java:105)
      at org.infinispan.loaders.decorators.SingletonStoreConfig.setSingletonStoreEnabled(SingletonStoreConfig.java:72)
      at org.infinispan.loaders.AbstractCacheStoreConfig.singletonStore(AbstractCacheStoreConfig.java:92)
      at org.infinispan.configuration.cache.LegacyConfigurationAdaptor.adapt(LegacyConfigurationAdaptor.java:397)
      at org.infinispan.CacheImpl.getCacheConfiguration(CacheImpl.java:377)
      at org.infinispan.AbstractDelegatingCache.getCacheConfiguration(AbstractDelegatingCache.java:67)
      at org.infinispan.AbstractDelegatingCache.getCacheConfiguration(AbstractDelegatingCache.java:67)

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: