-
Bug
-
Resolution: Done
-
Major
-
4.0.0.Final, 4.1.0.Final, 4.2.0.ALPHA1
-
None
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."