I'm regularly seeing this NPE while undeploying my app / tests:
21:48:41,367 WARN [org.jboss.msc.service.fail] (MSC service thread 1-10) MSC00004:
Failure during stop of service
jboss.capedwarf.cache-lifecycle.prospective_search.capedwarf-test:
java.lang.NullPointerException
at java.util.TreeMap.rotateRight(TreeMap.java:2062) [classes.jar:1.6.0_37]
at java.util.TreeMap.fixAfterInsertion(TreeMap.java:2101) [classes.jar:1.6.0_37]
at java.util.TreeMap.put(TreeMap.java:559) [classes.jar:1.6.0_37]
at org.infinispan.query.impl.LifecycleManager.cacheStopping(LifecycleManager.java:173)
at org.infinispan.factories.ComponentRegistry.stop(ComponentRegistry.java:221)
at org.infinispan.CacheImpl.stop(CacheImpl.java:540)
at org.infinispan.CacheImpl.stop(CacheImpl.java:535)
at org.infinispan.AbstractDelegatingCache.stop(AbstractDelegatingCache.java:348)
at
org.jboss.as.capedwarf.services.CacheLifecycleService.stop(CacheLifecycleService.java:94)
at
org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1911)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at
org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1874)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[classes.jar:1.6.0_37]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[classes.jar:1.6.0_37]
at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_37]
It doesn't break the app, hence just reporting NPE. :-)