8 Replies Latest reply on Sep 15, 2010 3:37 PM by Girish Adat

    NPE for JMX @ CacheManager.stop()

    Girish Adat Newbie

      I am getting the following on calling CacheManager.stop().

       

      Exception in thread "main" java.lang.NullPointerException
          at org.infinispan.jmx.AbstractJmxRegistration.getJmxDomain(AbstractJmxRegistration.java:73)
          at org.infinispan.jmx.CacheManagerJmxRegistration.updateDomain(CacheManagerJmxRegistration.java:65)
          at org.infinispan.jmx.CacheManagerJmxRegistration.buildRegistrar(CacheManagerJmxRegistration.java:59)
          at org.infinispan.jmx.AbstractJmxRegistration.unregisterMBeans(AbstractJmxRegistration.java:57)
          at org.infinispan.jmx.CacheManagerJmxRegistration.stop(CacheManagerJmxRegistration.java:51)
          at org.infinispan.manager.DefaultCacheManager.stop(DefaultCacheManager.java:534)
          at InfinispanTest.main(InfinispanTest.java:29)

       

      My JMX configuration is as follows.

      <globalJmxStatistics enabled="true" jmxDomain="infinispan"/>
      

       

      What is wrong here, for a NPE?