-
1. Re: NPE for JMX @ CacheManager.stop()
mircea.markus Aug 31, 2010 5:41 AM (in response to girishadat)What version are you using? Can you please write a UT to reproduce this?
-
2. Re: NPE for JMX @ CacheManager.stop()
girishadat Sep 1, 2010 6:15 AM (in response to mircea.markus)I am using Infinispan 4.0.0 Final.
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.
-
3. Re: NPE for JMX @ CacheManager.stop()
galder.zamarreno Sep 7, 2010 12:25 PM (in response to girishadat)Did you try with 4.1.0.Final and the all.xml shipped by this version?
-
4. Re: NPE for JMX @ CacheManager.stop()
sannegrinovero Sep 7, 2010 1:14 PM (in response to girishadat)yes this should be fixed in 4.1, I experienced it too and Galder had a very quick fix - so assuming this is the same issue you should be fine with 4.1.0.FINAL
-
5. Re: NPE for JMX @ CacheManager.stop()
girishadat Sep 9, 2010 8:16 AM (in response to sannegrinovero)Just checked it now and the problem is there with 4.1.0 Final as well...
-
6. Re: NPE for JMX @ CacheManager.stop()
galder.zamarreno Sep 13, 2010 1:12 PM (in response to girishadat)It's a bug: https://jira.jboss.org/browse/ISPN-644
-
7. Re: NPE for JMX @ CacheManager.stop()
galder.zamarreno Sep 14, 2010 4:19 AM (in response to galder.zamarreno)The issue is now solved. A fix for it should included in forthcoming 4.2.0.BETA1
-
8. Re: NPE for JMX @ CacheManager.stop()
girishadat Sep 15, 2010 3:37 PM (in response to galder.zamarreno)Thanks Galder. I'll do my part for testing once the fixed version is out.