Stopping a CacheManager started with isStarted=false throws NullPointerException
--------------------------------------------------------------------------------
Key: ISPN-644
URL:
https://jira.jboss.org/browse/ISPN-644
Project: Infinispan
Issue Type: Bug
Components: JMX, reporting and management
Affects Versions: 4.2.0.ALPHA1, 4.1.0.Final, 4.0.0.Final
Reporter: Galder Zamarreño
Assignee: Galder Zamarreño
Fix For: 4.2.0.BETA1, 4.2.0.Final
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."
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira