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

Stopping a CacheManager started with isStarted=false throws NullPointerException

XMLWordPrintable

      From forum:

      "It is easy to reproduce. Just call CacheManager.stop().

      import org.infinispan.manager.CacheManager;
      import org.infinispan.manager.DefaultCacheManager;

      public class TestCase {

      public static void main(String[] args) throws Exception

      { CacheManager cacheManager = new DefaultCacheManager(TestCase.class.getClassLoader() .getResourceAsStream("config-samples/all.xml"), false); cacheManager.stop(); }

      }

      Also, the NPE is not there when

      <globalJmxStatistics enabled="false" />

      or if I am calling DefaultCacheManager's constructor with second argument as true.

      new DefaultCacheManager("path to conf file", true);

      Hope this helps."

              rh-ee-galder Galder Zamarreño
              rh-ee-galder Galder Zamarreño
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: