Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8907

NullPointerException in GlobalStateManagerImpl at startup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 9.2.1.Final, 9.3.0.Final
    • 9.2.0.Final
    • Core
    • None

      During my testing on EC2, I had some issues with the server during startup using the default server configuration with the EC2-specific <stack> elements added. At first I was using the same server installation directory from two different nodes. At server startup, I saw these exceptions trying to acquire the global lock:

      �[0m�[33m09:58:31,429 WARN  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-3) ISPN000189: While stopping a cache or cache manager, one of its components failed to stop: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.globalstate.impl.GlobalStateManagerImpl.stop() on object of type GlobalStateManagerImpl
      	at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:172)
      	at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:878)
      	at org.infinispan.factories.AbstractComponentRegistry.internalStop(AbstractComponentRegistry.java:679)
      	at org.infinispan.factories.AbstractComponentRegistry.stop(AbstractComponentRegistry.java:581)
      	at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:263)
      	at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:667)
      	at org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager.start(AbstractDelegatingEmbeddedCacheManager.java:185)
      	at org.infinispan.server.infinispan.SecurityActions$1.run(SecurityActions.java:86)
      	at org.infinispan.server.infinispan.SecurityActions$1.run(SecurityActions.java:82)
      	at org.infinispan.security.Security.doPrivileged(Security.java:76)
      	at org.infinispan.server.infinispan.SecurityActions.doPrivileged(SecurityActions.java:69)
      	at org.infinispan.server.infinispan.SecurityActions.registerAndStartContainer(SecurityActions.java:90)
      	at org.jboss.as.clustering.infinispan.subsystem.CacheContainerBuilder.start(CacheContainerBuilder.java:99)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.NullPointerException
      	at org.infinispan.topology.LocalTopologyManagerImpl.prepareForPersist(LocalTopologyManagerImpl.java:794)
      	at org.infinispan.globalstate.impl.GlobalStateManagerImpl.lambda$writeGlobalState$1(GlobalStateManagerImpl.java:127)
      	at java.util.ArrayList.forEach(ArrayList.java:1257)
      	at org.infinispan.globalstate.impl.GlobalStateManagerImpl.writeGlobalState(GlobalStateManagerImpl.java:127)
      	at org.infinispan.globalstate.impl.GlobalStateManagerImpl.stop(GlobalStateManagerImpl.java:73)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168)
      	... 17 more
      
      �[0m�[33m09:58:31,431 WARN  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-3) ISPN000189: While stopping a cache or cache manager, one of its components failed to stop: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.topology.LocalTopologyManagerImpl.stop() on object of type LocalTopologyManagerImpl
      	at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:172)
      	at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:878)
      	at org.infinispan.factories.AbstractComponentRegistry.internalStop(AbstractComponentRegistry.java:679)
      	at org.infinispan.factories.AbstractComponentRegistry.stop(AbstractComponentRegistry.java:581)
      	at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:263)
      	at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:667)
      	at org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager.start(AbstractDelegatingEmbeddedCacheManager.java:185)
      	at org.infinispan.server.infinispan.SecurityActions$1.run(SecurityActions.java:86)
      	at org.infinispan.server.infinispan.SecurityActions$1.run(SecurityActions.java:82)
      	at org.infinispan.security.Security.doPrivileged(Security.java:76)
      	at org.infinispan.server.infinispan.SecurityActions.doPrivileged(SecurityActions.java:69)
      	at org.infinispan.server.infinispan.SecurityActions.registerAndStartContainer(SecurityActions.java:90)
      	at org.jboss.as.clustering.infinispan.subsystem.CacheContainerBuilder.start(CacheContainerBuilder.java:99)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.NullPointerException
      	at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
      	at org.infinispan.topology.PersistentUUIDManagerImpl.removePersistentAddressMapping(PersistentUUIDManagerImpl.java:42)
      	at org.infinispan.topology.LocalTopologyManagerImpl.stop(LocalTopologyManagerImpl.java:123)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168)
      	... 17 more
      
      �[0m�[33m09:58:31,434 WARN  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-3) ISPN000189: While stopping a cache or cache manager, one of its components failed to stop: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.marshall.core.GlobalMarshaller.stop() on object of type GlobalMarshaller
      	at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:172)
      	at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:878)
      	at org.infinispan.factories.AbstractComponentRegistry.internalStop(AbstractComponentRegistry.java:679)
      	at org.infinispan.factories.AbstractComponentRegistry.stop(AbstractComponentRegistry.java:581)
      	at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:263)
      	at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:667)
      	at org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager.start(AbstractDelegatingEmbeddedCacheManager.java:185)
      	at org.infinispan.server.infinispan.SecurityActions$1.run(SecurityActions.java:86)
      	at org.infinispan.server.infinispan.SecurityActions$1.run(SecurityActions.java:82)
      	at org.infinispan.security.Security.doPrivileged(Security.java:76)
      	at org.infinispan.server.infinispan.SecurityActions.doPrivileged(SecurityActions.java:69)
      	at org.infinispan.server.infinispan.SecurityActions.registerAndStartContainer(SecurityActions.java:90)
      	at org.jboss.as.clustering.infinispan.subsystem.CacheContainerBuilder.start(CacheContainerBuilder.java:99)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.NullPointerException
      	at org.infinispan.marshall.core.GlobalMarshaller.stop(GlobalMarshaller.java:155)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168)
      	... 17 more
      
      �[0m�[31m09:58:31,435 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.datagrid-infinispan.clustered: org.jboss.msc.service.StartException in service jboss.datagrid-infinispan.clustered: Failed to start service
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1978)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: org.infinispan.manager.EmbeddedCacheManagerStartupException: org.infinispan.commons.CacheConfigurationException: ISPN000512: Cannot acquire lock '/mnt/radargun/jboss-datagrid-7.2.0-server/standalone/data/datagrid-infinispan/clustered/___global.lck' for persistent global state
      	at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:259)
      	at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:667)
      	at org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager.start(AbstractDelegatingEmbeddedCacheManager.java:185)
      	at org.infinispan.server.infinispan.SecurityActions$1.run(SecurityActions.java:86)
      	at org.infinispan.server.infinispan.SecurityActions$1.run(SecurityActions.java:82)
      	at org.infinispan.security.Security.doPrivileged(Security.java:76)
      	at org.infinispan.server.infinispan.SecurityActions.doPrivileged(SecurityActions.java:69)
      	at org.infinispan.server.infinispan.SecurityActions.registerAndStartContainer(SecurityActions.java:90)
      	at org.jboss.as.clustering.infinispan.subsystem.CacheContainerBuilder.start(CacheContainerBuilder.java:99)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
      	... 3 more
      Caused by: org.infinispan.commons.CacheConfigurationException: ISPN000512: Cannot acquire lock '/mnt/radargun/jboss-datagrid-7.2.0-server/standalone/data/datagrid-infinispan/clustered/___global.lck' for persistent global state
      	at org.infinispan.globalstate.impl.GlobalStateManagerImpl.acquireGlobalLock(GlobalStateManagerImpl.java:85)
      	at org.infinispan.globalstate.impl.GlobalStateManagerImpl.start(GlobalStateManagerImpl.java:65)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168)
      	at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:878)
      	at org.infinispan.factories.AbstractComponentRegistry.invokePrioritizedMethods(AbstractComponentRegistry.java:643)
      	at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:630)
      	at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:549)
      	at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:243)
      	... 13 more
      
      �[0m�[31m09:58:31,438 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
          ("subsystem" => "datagrid-infinispan"),
          ("cache-container" => "clustered")
      ]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.datagrid-infinispan.clustered" => "org.jboss.msc.service.StartException in service jboss.datagrid-infinispan.clustered: Failed to start service
          Caused by: org.infinispan.manager.EmbeddedCacheManagerStartupException: org.infinispan.commons.CacheConfigurationException: ISPN000512: Cannot acquire lock '/mnt/radargun/jboss-datagrid-7.2.0-server/standalone/data/datagrid-infinispan/clustered/___global.lck' for persistent global state
          Caused by: org.infinispan.commons.CacheConfigurationException: ISPN000512: Cannot acquire lock '/mnt/radargun/jboss-datagrid-7.2.0-server/standalone/data/datagrid-infinispan/clustered/___global.lck' for persistent global state"}}
      �[0m�[0m09:58:31,566 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
      WFLYCTL0186:   Services which failed to start:      service jboss.datagrid-infinispan.clustered: org.jboss.msc.service.StartException in service jboss.datagrid-infinispan.clustered: Failed to start service
      

      After creating separate installs for each node, I see the following exceptions at startup:

      12:02:05,722 INFO  [org.infinispan.globalstate.impl.GlobalStateManagerImpl] (MSC service thread 1-2) ISPN000389: Loaded global state, version=null timestamp=null
      12:02:05,726 WARN  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-2) ISPN000189: While stopping a cache or cache manager, one of its components failed to stop: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.globalstate.impl.GlobalStateManagerImpl.stop() on object of type GlobalStateManagerImpl
      	at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:172)
      	at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:878)
      	at org.infinispan.factories.AbstractComponentRegistry.internalStop(AbstractComponentRegistry.java:679)
      	at org.infinispan.factories.AbstractComponentRegistry.stop(AbstractComponentRegistry.java:581)
      	at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:263)
      	at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:667)
      	at org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager.start(AbstractDelegatingEmbeddedCacheManager.java:185)
      	at org.infinispan.server.infinispan.SecurityActions$1.run(SecurityActions.java:86)
      	at org.infinispan.server.infinispan.SecurityActions$1.run(SecurityActions.java:82)
      	at org.infinispan.security.Security.doPrivileged(Security.java:76)
      	at org.infinispan.server.infinispan.SecurityActions.doPrivileged(SecurityActions.java:69)
      	at org.infinispan.server.infinispan.SecurityActions.registerAndStartContainer(SecurityActions.java:90)
      	at org.jboss.as.clustering.infinispan.subsystem.CacheContainerBuilder.start(CacheContainerBuilder.java:99)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.NullPointerException
      	at org.infinispan.topology.LocalTopologyManagerImpl.prepareForPersist(LocalTopologyManagerImpl.java:794)
      	at org.infinispan.globalstate.impl.GlobalStateManagerImpl.lambda$writeGlobalState$1(GlobalStateManagerImpl.java:127)
      	at java.util.ArrayList.forEach(ArrayList.java:1257)
      	at org.infinispan.globalstate.impl.GlobalStateManagerImpl.writeGlobalState(GlobalStateManagerImpl.java:127)
      	at org.infinispan.globalstate.impl.GlobalStateManagerImpl.stop(GlobalStateManagerImpl.java:73)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168)
      	... 17 more
      
      12:02:05,727 WARN  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-2) ISPN000189: While stopping a cache or cache manager, one of its components failed to stop: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.topology.LocalTopologyManagerImpl.stop() on object of type LocalTopologyManagerImpl
      	at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:172)
      	at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:878)
      	at org.infinispan.factories.AbstractComponentRegistry.internalStop(AbstractComponentRegistry.java:679)
      	at org.infinispan.factories.AbstractComponentRegistry.stop(AbstractComponentRegistry.java:581)
      	at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:263)
      	at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:667)
      	at org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager.start(AbstractDelegatingEmbeddedCacheManager.java:185)
      	at org.infinispan.server.infinispan.SecurityActions$1.run(SecurityActions.java:86)
      	at org.infinispan.server.infinispan.SecurityActions$1.run(SecurityActions.java:82)
      	at org.infinispan.security.Security.doPrivileged(Security.java:76)
      	at org.infinispan.server.infinispan.SecurityActions.doPrivileged(SecurityActions.java:69)
      	at org.infinispan.server.infinispan.SecurityActions.registerAndStartContainer(SecurityActions.java:90)
      	at org.jboss.as.clustering.infinispan.subsystem.CacheContainerBuilder.start(CacheContainerBuilder.java:99)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.NullPointerException
      	at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
      	at org.infinispan.topology.PersistentUUIDManagerImpl.removePersistentAddressMapping(PersistentUUIDManagerImpl.java:42)
      	at org.infinispan.topology.LocalTopologyManagerImpl.stop(LocalTopologyManagerImpl.java:123)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168)
      	... 17 more
      
      12:02:05,730 WARN  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-2) ISPN000189: While stopping a cache or cache manager, one of its components failed to stop: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.marshall.core.GlobalMarshaller.stop() on object of type GlobalMarshaller
      	at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:172)
      	at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:878)
      	at org.infinispan.factories.AbstractComponentRegistry.internalStop(AbstractComponentRegistry.java:679)
      	at org.infinispan.factories.AbstractComponentRegistry.stop(AbstractComponentRegistry.java:581)
      	at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:263)
      	at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:667)
      	at org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager.start(AbstractDelegatingEmbeddedCacheManager.java:185)
      	at org.infinispan.server.infinispan.SecurityActions$1.run(SecurityActions.java:86)
      	at org.infinispan.server.infinispan.SecurityActions$1.run(SecurityActions.java:82)
      	at org.infinispan.security.Security.doPrivileged(Security.java:76)
      	at org.infinispan.server.infinispan.SecurityActions.doPrivileged(SecurityActions.java:69)
      	at org.infinispan.server.infinispan.SecurityActions.registerAndStartContainer(SecurityActions.java:90)
      	at org.jboss.as.clustering.infinispan.subsystem.CacheContainerBuilder.start(CacheContainerBuilder.java:99)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.NullPointerException
      	at org.infinispan.marshall.core.GlobalMarshaller.stop(GlobalMarshaller.java:155)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168)
      	... 17 more
      
      12:02:05,731 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.datagrid-infinispan.clustered: org.jboss.msc.service.StartException in service jboss.datagrid-infinispan.clustered: Failed to start service
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1978)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: org.infinispan.manager.EmbeddedCacheManagerStartupException: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.globalstate.impl.GlobalStateManagerImpl.start() on object of type GlobalStateManagerImpl
      	at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:259)
      	at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:667)
      	at org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager.start(AbstractDelegatingEmbeddedCacheManager.java:185)
      	at org.infinispan.server.infinispan.SecurityActions$1.run(SecurityActions.java:86)
      	at org.infinispan.server.infinispan.SecurityActions$1.run(SecurityActions.java:82)
      	at org.infinispan.security.Security.doPrivileged(Security.java:76)
      	at org.infinispan.server.infinispan.SecurityActions.doPrivileged(SecurityActions.java:69)
      	at org.infinispan.server.infinispan.SecurityActions.registerAndStartContainer(SecurityActions.java:90)
      	at org.jboss.as.clustering.infinispan.subsystem.CacheContainerBuilder.start(CacheContainerBuilder.java:99)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
      	... 3 more
      Caused by: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.globalstate.impl.GlobalStateManagerImpl.start() on object of type GlobalStateManagerImpl
      	at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:172)
      	at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:878)
      	at org.infinispan.factories.AbstractComponentRegistry.invokePrioritizedMethods(AbstractComponentRegistry.java:643)
      	at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:630)
      	at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:549)
      	at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:243)
      	... 13 more
      Caused by: java.lang.NullPointerException
      	at java.util.UUID.fromString(UUID.java:192)
      	at org.infinispan.topology.PersistentUUID.fromString(PersistentUUID.java:40)
      	at org.infinispan.topology.LocalTopologyManagerImpl.prepareForRestore(LocalTopologyManagerImpl.java:799)
      	at org.infinispan.globalstate.impl.GlobalStateManagerImpl.lambda$loadGlobalState$0(GlobalStateManagerImpl.java:112)
      	at java.util.ArrayList.forEach(ArrayList.java:1257)
      	at org.infinispan.globalstate.impl.GlobalStateManagerImpl.loadGlobalState(GlobalStateManagerImpl.java:112)
      	at org.infinispan.globalstate.impl.GlobalStateManagerImpl.start(GlobalStateManagerImpl.java:66)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168)
      	... 18 more
      
      12:02:05,734 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
          ("subsystem" => "datagrid-infinispan"),
          ("cache-container" => "clustered")
      ]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.datagrid-infinispan.clustered" => "org.jboss.msc.service.StartException in service jboss.datagrid-infinispan.clustered: Failed to start service
      

      Not sure if these are related, but it seems like there should be some more null checks in the code so that the server can start. Not sure if this is also the case upstream.

            ttarrant@redhat.com Tristan Tarrant
            ttarrant@redhat.com Tristan Tarrant
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: