Skip to content

Instantly share code, notes, and snippets.

@pferraro
Created June 27, 2018 20:55
Show Gist options
  • Save pferraro/ab0d7639abf69aba96d19faa1fd510ed to your computer and use it in GitHub Desktop.
Save pferraro/ab0d7639abf69aba96d19faa1fd510ed to your computer and use it in GitHub Desktop.
Mysterious NPE
16:50:13,228 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 27) MSC000001: Failed to start service org.wildfly.clustering.infinispan.cache.ejb.CdiFailoverTestCase.war: org.jboss.msc.service.StartException in service org.wildfly.clustering.infinispan.cache.ejb.CdiFailoverTestCase.war: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.cache.impl.EncoderCache.wireRealCache() on object of type EncoderCache with parameters []
at org.wildfly.clustering.service.FunctionalService.start(FunctionalService.java:70)
at org.wildfly.clustering.service.AsyncServiceConfigurator$AsyncService.lambda$start$0(AsyncServiceConfigurator.java:118)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.lang.Thread.run(Thread.java:748)
at org.jboss.threads.JBossThread.run(JBossThread.java:485)
Caused by: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.cache.impl.EncoderCache.wireRealCache() on object of type EncoderCache with parameters []
at org.infinispan.commons.util.SecurityActions.lambda$invokeAccessibly$0(SecurityActions.java:83)
at org.infinispan.commons.util.SecurityActions.doPrivileged(SecurityActions.java:71)
at org.infinispan.commons.util.SecurityActions.invokeAccessibly(SecurityActions.java:76)
at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:185)
at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:286)
at org.infinispan.factories.AbstractComponentRegistry.access$100(AbstractComponentRegistry.java:73)
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:872)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:257)
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:199)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:208)
at org.infinispan.factories.InternalCacheFactory.bootstrap(InternalCacheFactory.java:212)
at org.infinispan.factories.InternalCacheFactory.createAndWire(InternalCacheFactory.java:122)
at org.infinispan.factories.InternalCacheFactory.createCache(InternalCacheFactory.java:88)
at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:634)
at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:589)
at org.infinispan.manager.DefaultCacheManager.internalGetCache(DefaultCacheManager.java:475)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:461)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:447)
at org.jboss.as.clustering.infinispan.DefaultCacheContainer.getCache(DefaultCacheContainer.java:86)
at org.wildfly.clustering.infinispan.spi.service.CacheServiceConfigurator.get(CacheServiceConfigurator.java:77)
at org.wildfly.clustering.infinispan.spi.service.CacheServiceConfigurator.get(CacheServiceConfigurator.java:55)
at org.wildfly.clustering.service.FunctionalService.start(FunctionalService.java:67)
... 7 more
Caused by: org.infinispan.commons.CacheConfigurationException: Unable to configure component (type: class org.infinispan.cache.impl.CacheImpl, instance Cache 'CdiFailoverTestCase.war'@0)
at org.infinispan.factories.AbstractComponentRegistry.wireDependencies(AbstractComponentRegistry.java:188)
at org.infinispan.cache.impl.EncoderCache.wireRealCache(EncoderCache.java:126)
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.SecurityActions.lambda$invokeAccessibly$0(SecurityActions.java:79)
... 28 more
Caused by: java.lang.NullPointerException
at org.infinispan.distribution.ch.impl.KeyPartitionerFactory.construct(KeyPartitionerFactory.java:27)
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:355)
at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:164)
at org.infinispan.factories.AbstractComponentRegistry.setInjectionField(AbstractComponentRegistry.java:303)
at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:73)
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:868)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:257)
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:199)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:208)
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:358)
at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:164)
at org.infinispan.factories.AbstractComponentRegistry.setInjectionField(AbstractComponentRegistry.java:303)
at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:73)
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:868)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:257)
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:199)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:208)
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:358)
at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:164)
at org.infinispan.factories.AbstractComponentRegistry.setInjectionField(AbstractComponentRegistry.java:303)
at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:73)
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:868)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:257)
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:199)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:208)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:204)
at org.infinispan.factories.AbstractComponentRegistry.createComponentFactoryInternal(AbstractComponentRegistry.java:406)
at org.infinispan.factories.ComponentRegistry.createComponentFactoryInternal(ComponentRegistry.java:208)
at org.infinispan.factories.AbstractComponentRegistry.getFactory(AbstractComponentRegistry.java:385)
at org.infinispan.factories.ComponentRegistry.getFactory(ComponentRegistry.java:189)
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:351)
at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:164)
at org.infinispan.factories.AbstractComponentRegistry.setInjectionField(AbstractComponentRegistry.java:303)
at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:73)
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:868)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:257)
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:199)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:208)
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:358)
at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:164)
at org.infinispan.factories.AbstractComponentRegistry.setInjectionField(AbstractComponentRegistry.java:303)
at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:73)
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:868)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:257)
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:199)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:208)
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:358)
at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:164)
at org.infinispan.factories.AbstractComponentRegistry.setInjectionField(AbstractComponentRegistry.java:303)
at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:73)
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:868)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:257)
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:199)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:208)
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:358)
at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:164)
at org.infinispan.factories.AbstractComponentRegistry.setInjectionField(AbstractComponentRegistry.java:303)
at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:73)
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:868)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:257)
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:199)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:208)
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:358)
at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:164)
at org.infinispan.factories.AbstractComponentRegistry.setInjectionField(AbstractComponentRegistry.java:303)
at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:73)
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:868)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:257)
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:199)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:208)
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:358)
at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:164)
at org.infinispan.factories.AbstractComponentRegistry.setInjectionField(AbstractComponentRegistry.java:303)
at org.infinispan.factories.AbstractComponentRegistry.wireDependencies(AbstractComponentRegistry.java:161)
... 34 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment