0 Replies Latest reply on Dec 11, 2013 3:51 PM by dex80526

    Nullpointer exception in stopping default cache manager

    dex80526

      I ran into the following exception quite often when I programmaticaly stop the cache manager.

      Here is my setting:

      ISPN 5.2.5.final

      2 clusters with Xsite replication is enabled/configured.

       

      The following exception occured (not every time), when my code calls cacheManager.stop().

       

      org.infinispan.CacheException: Caught exception [java.lang.NullPointerException] while invoking method [public void org.infinispan.xsite.BackupReceiverRepositoryImpl.cacheStopped(org.infinispan.notifications.cachemanagerlistener.event.CacheStoppedEvent)] on listener instance: org.infinispan.xsite.BackupReceiverRepositoryImpl@6761a0fe

              at org.infinispan.notifications.AbstractListenerImpl$ListenerInvocation$1.run(AbstractListenerImpl.java:217)

              at org.infinispan.util.concurrent.WithinThreadExecutor.execute(WithinThreadExecutor.java:44)

              at org.infinispan.notifications.AbstractListenerImpl$ListenerInvocation.invoke(AbstractListenerImpl.java:237)

              at org.infinispan.notifications.cachemanagerlistener.CacheManagerNotifierImpl.notifyCacheStopped(CacheManagerNotifierImpl.java:135)

              at org.infinispan.factories.ComponentRegistry.stop(ComponentRegistry.java:247)

              at org.infinispan.CacheImpl.stop(CacheImpl.java:604)

              at org.infinispan.CacheImpl.stop(CacheImpl.java:599)

              at org.infinispan.manager.DefaultCacheManager.stop(DefaultCacheManager.java:732)

       

      What it causes Nullpointer exception (I guess the listener is null)?

       

      Thanks for any insights.