]
Michal Vinkler closed WFLY-4285.
--------------------------------
Verified with the current WildFly master branch build.
NullPointerException in InfinispanBatcher.createBatch
-----------------------------------------------------
Key: WFLY-4285
URL:
https://issues.jboss.org/browse/WFLY-4285
Project: WildFly
Issue Type: Bug
Components: Clustering
Affects Versions: 9.0.0.Alpha1
Reporter: Michal Vinkler
Assignee: Paul Ferraro
Priority: Minor
Attachments: clusterbench-ee7.ear
When changing transaction mode to "NONE" for the cache containter
"web" in standalone-ha.xml, starting the standalone server in the HA mode and
deploying the "clusterbench" application (see the attachments), a
NullPointerException occurs.
Clusterbench git repo:
https://github.com/clusterbench/clusterbench
Stacktrace:
{code}
11:13:17,546 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 63)
WFLYCLINF0002: Started clusterbench-ee7.ear.clusterbench-ee7-web-passivating.war cache
from web container
11:13:17,546 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 65)
WFLYCLINF0002: Started clusterbench-ee7.ear.clusterbench-ee7-web-default.war cache from
web container
11:13:17,546 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 66)
WFLYCLINF0002: Started dist cache from ejb container
11:13:17,546 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 64)
WFLYCLINF0002: Started dist cache from web container
11:13:17,554 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 66)
MSC000001: Failed to start service jboss.clustering.registry.web.default:
org.jboss.msc.service.StartException in service jboss.clustering.registry.web.default:
java.lang.NullPointerException
at
org.wildfly.clustering.service.AsynchronousServiceBuilder$1.run(AsynchronousServiceBuilder.java:107)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: java.lang.NullPointerException
at
org.wildfly.clustering.ee.infinispan.InfinispanBatcher.createBatch(InfinispanBatcher.java:64)
at
org.wildfly.clustering.ee.infinispan.InfinispanBatcher.createBatch(InfinispanBatcher.java:41)
at
org.wildfly.clustering.server.registry.CacheRegistry.getLocalEntry(CacheRegistry.java:128)
at
org.wildfly.clustering.server.registry.CacheRegistry.<init>(CacheRegistry.java:76)
at
org.wildfly.clustering.server.registry.CacheRegistryFactory$1.<init>(CacheRegistryFactory.java:53)
at
org.wildfly.clustering.server.registry.CacheRegistryFactory.createRegistry(CacheRegistryFactory.java:53)
at
org.wildfly.clustering.server.registry.RegistryBuilder.start(RegistryBuilder.java:83)
at
org.wildfly.clustering.service.AsynchronousServiceBuilder$1.run(AsynchronousServiceBuilder.java:102)
... 4 more
11:13:17,586 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder]
(ServerService Thread Pool -- 65) ISPN000152: Passivation configured without an eviction
policy being selected. Only manually evicted entities will be passivated.
11:13:17,587 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder]
(ServerService Thread Pool -- 65) ISPN000152: Passivation configured without an eviction
policy being selected. Only manually evicted entities will be passivated.
11:13:17,601 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 65)
WFLYCLINF0002: Started clusterbench-ee7.ear/clusterbench-ee7-ejb.jar cache from ejb
container
11:13:18,102 ERROR [org.jboss.as.controller.management-operation] (Controller Boot
Thread) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "infinispan"),
("cache-container" => "web")
]) - failure description: {"WFLYCTL0080: Failed services" =>
{"jboss.clustering.registry.web.default" =>
"org.jboss.msc.service.StartException in service
jboss.clustering.registry.web.default: java.lang.NullPointerException
Caused by: java.lang.NullPointerException"}}
11:13:18,125 INFO [org.jboss.as.server] (ServerService Thread Pool -- 36) WFLYSRV0010:
Deployed "clusterbench-ee7.ear" (runtime-name :
"clusterbench-ee7.ear")
11:13:18,125 INFO [org.jboss.as.server] (ServerService Thread Pool -- 36) WFLYSRV0010:
Deployed "sample.war" (runtime-name : "sample.war")
11:13:18,126 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183:
Service status report
WFLYCTL0186: Services which failed to start: service
jboss.clustering.registry.web.default: org.jboss.msc.service.StartException in service
jboss.clustering.registry.web.default: java.lang.NullPointerException
11:13:18,146 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management
interface listening on
http://127.0.0.1:9990/management
11:13:18,147 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console
listening on
http://127.0.0.1:9990
11:13:18,147 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full
9.0.0.Alpha2-SNAPSHOT (WildFly Core 1.0.0.Alpha15) started (with errors) in 6312ms -
Started 769 of 960 services (12 services failed or missing dependencies, 333 services are
lazy, passive or on-demand)
{code}