Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-1440

Unable to start caches with persistent state: NullPointerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • JDG 7.2 ER2, JDG 7.2 GA
    • JDG 7.2 ER1
    • None
    • None

      The cache fails to start in 4-node cluster and throws the following error. The whole log can be seen at https://jdg-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/Perf/job/jdg-perf-lib-clustered-counters/9/console-edg-perf10-aa375065-51ef-4cb1-994a-f7bd0dd9d958/

      04:13:59,365 ERROR [org.radargun.service.Infinispan90Lifecycle] (sc-main) Service start failed.
      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:257) ~[infinispan-core-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:667) ~[infinispan-core-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	at org.radargun.service.InfinispanEmbeddedService.startCaches(InfinispanEmbeddedService.java:118) ~[plugin-infinispan4-3.0.0-SNAPSHOT.jar:?]
      	at org.radargun.service.Infinispan51EmbeddedService.startCaches(Infinispan51EmbeddedService.java:100) ~[plugin-infinispan51-3.0.0-SNAPSHOT.jar:?]
      	at org.radargun.service.Infinispan70EmbeddedService.startCaches(Infinispan70EmbeddedService.java:22) ~[plugin-infinispan70-3.0.0-SNAPSHOT.jar:?]
      	at org.radargun.service.InfinispanLifecycle.start(InfinispanLifecycle.java:45) [plugin-infinispan4-3.0.0-SNAPSHOT.jar:?]
      	at org.radargun.service.InfinispanKillableLifecycle.start(InfinispanKillableLifecycle.java:51) [plugin-infinispan51-3.0.0-SNAPSHOT.jar:?]
      	at org.radargun.stages.lifecycle.LifecycleHelper.start(LifecycleHelper.java:57) [radargun-core-3.0.0-SNAPSHOT.jar:?]
      	at org.radargun.stages.lifecycle.ServiceStartStage.executeOnSlave(ServiceStartStage.java:86) [radargun-core-3.0.0-SNAPSHOT.jar:?]
      	at org.radargun.SlaveBase.scenarioLoop(SlaveBase.java:90) [radargun-core-3.0.0-SNAPSHOT.jar:?]
      	at org.radargun.SlaveBase$ScenarioRunner.run(SlaveBase.java:158) [radargun-core-3.0.0-SNAPSHOT.jar:?]
      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) ~[infinispan-commons-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:878) ~[infinispan-core-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	at org.infinispan.factories.AbstractComponentRegistry.invokePrioritizedMethods(AbstractComponentRegistry.java:643) ~[infinispan-core-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:630) ~[infinispan-core-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:549) ~[infinispan-core-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:241) ~[infinispan-core-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	... 10 more
      Caused by: java.lang.NullPointerException
      	at java.util.UUID.fromString(UUID.java:192) ~[?:1.8.0_151]
      	at org.infinispan.topology.PersistentUUID.fromString(PersistentUUID.java:40) ~[infinispan-core-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	at org.infinispan.topology.LocalTopologyManagerImpl.prepareForRestore(LocalTopologyManagerImpl.java:793) ~[infinispan-core-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	at org.infinispan.globalstate.impl.GlobalStateManagerImpl.lambda$loadGlobalState$0(GlobalStateManagerImpl.java:83) ~[infinispan-core-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	at java.util.ArrayList.forEach(ArrayList.java:1255) ~[?:1.8.0_151]
      	at org.infinispan.globalstate.impl.GlobalStateManagerImpl.loadGlobalState(GlobalStateManagerImpl.java:83) ~[infinispan-core-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	at org.infinispan.globalstate.impl.GlobalStateManagerImpl.start(GlobalStateManagerImpl.java:60) ~[infinispan-core-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_151]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_151]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_151]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_151]
      	at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168) ~[infinispan-commons-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:878) ~[infinispan-core-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	at org.infinispan.factories.AbstractComponentRegistry.invokePrioritizedMethods(AbstractComponentRegistry.java:643) ~[infinispan-core-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:630) ~[infinispan-core-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:549) ~[infinispan-core-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:241) ~[infinispan-core-8.5.0.ER1-redhat-1.jar:8.5.0.ER1-redhat-1]
      	... 10 more
      

      The cache configuration is following:

      <infinispan
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="urn:infinispan:config:8.5 http://www.infinispan.org/schemas/infinispan-config-8.5.xsd 
         urn:infinispan:config:counters:8.5 infinispan-counters-config-8.5.xsd"
         xmlns="urn:infinispan:config:8.5">
      
         <jgroups>
            <stack-file name="jgroupsStack" path="${infinispan.jgroups.config:default-configs/default-jgroups-udp.xml}"/>
         </jgroups>
      
         <cache-container name="default" default-cache="testCache">
            <transport stack="jgroupsStack" lock-timeout="600000" cluster="default" />
            <global-state/>
            <jmx>
               <property name="enabled">true</property>
            </jmx>
            <replicated-cache name="testCache" mode="SYNC"/>
            <modules>
                <counters xmlns="urn:infinispan:config:counters:8.5" num-owners="3" reliability="CONSISTENT">
                   <strong-counter name="c1" initial-value="0" storage="PERSISTENT"/>
                   <strong-counter name="c2" initial-value="0" storage="VOLATILE"/>
                   <strong-counter name="c3" initial-value="0" storage="PERSISTENT">
                      <upper-bound value="5"/>
                   </strong-counter>
                   <strong-counter name="c4" initial-value="0" storage="VOLATILE">
                      <lower-bound value="0"/>
                      <upper-bound value="10"/>
                   </strong-counter>
                   <weak-counter name="c5" initial-value="5" storage="PERSISTENT" concurrency-level="2"/>
                </counters>
            </modules>
         </cache-container>
      </infinispan>
      

            ttarrant@redhat.com Tristan Tarrant
            mgencur Martin Gencur
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: