[jboss-dev] Strange java.util.LinkedList.contains() NPE
Dimitris Andreadis
dandread at redhat.com
Thu Jan 24 06:35:04 EST 2008
While monitoring the JBoss-AS-4.2.x-TestSuite-sun15 run, I am noticing spurious spikes like
this:
http://hudson.qa.jboss.com/hudson/view/JBoss%20AS/job/JBoss-AS-4.2.x-TestSuite-sun15/116/
Digging at the logs (full trace at the bottom) I can see a strange NPE from
java.util.LinkedList.contains(Object o), after which various deployments get to fail:
DEBUG [org.jboss.deployment.SARDeployer] create operation failed for package
file:/qa/services/hudson/hudson_workspace/workspace/JBoss-AS-4.2.x-TestSuite-sun15/Branch_4_2/testsuite/output/lib/receivers-arraylist-service.xml
java.lang.NullPointerException
at java.util.LinkedList.indexOf(LinkedList.java:406)
at java.util.LinkedList.contains(LinkedList.java:176)
at org.jboss.system.ServiceController.register(ServiceController.java:828)
at org.jboss.system.ServiceController.create(ServiceController.java:296)
at org.jboss.system.ServiceController.create(ServiceController.java:273)
This is the ServiceController code trying to add a non-null context, so is this really a JDK
bug?
...
private void register(ServiceContext ctx, Collection depends) throws Exception
{
if (!installedServices.contains(ctx))
installedServices.add(ctx);
...
2008-01-24 01:16:44,028 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment of
package:
file:/qa/services/hudson/hudson_workspace/workspace/JBoss-AS-4.2.x-TestSuite-sun15/Branch_4_2/testsuite/output/lib/receivers-arraylist-service.xml
2008-01-24 01:16:44,028 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init
step) of package at:
file:/qa/services/hudson/hudson_workspace/workspace/JBoss-AS-4.2.x-TestSuite-sun15/Branch_4_2/testsuite/output/lib/receivers-arraylist-service.xml
2008-01-24 01:16:44,031 DEBUG [org.jboss.deployment.MainDeployer] Copying
file:/qa/services/hudson/hudson_workspace/workspace/JBoss-AS-4.2.x-TestSuite-sun15/Branch_4_2/testsuite/output/lib/receivers-arraylist-service.xml
->
/qa/services/hudson/hudson_workspace/workspace/JBoss-AS-4.2.x-TestSuite-sun15/Branch_4_2/build/output/jboss-4.2.3.GA/server/all/tmp/deploy/tmp40240receivers-arraylist-service.xml
2008-01-24 01:16:44,035 DEBUG [org.jboss.deployment.MainDeployer] using deployer
org.jboss.deployment.SARDeployer at 18941f7
2008-01-24 01:16:44,040 DEBUG [org.jboss.deployment.SARDeployer] about to copy 0 local
directories
2008-01-24 01:16:44,040 DEBUG [org.jboss.deployment.SARDeployer] looking for nested
deployments in :
file:/qa/services/hudson/hudson_workspace/workspace/JBoss-AS-4.2.x-TestSuite-sun15/Branch_4_2/testsuite/output/lib/receivers-arraylist-service.xml
2008-01-24 01:16:44,040 DEBUG [org.jboss.deployment.DeploymentInfo] createLoaderRepository
from config: LoaderRepositoryConfig(repositoryName:
JMImplementation:service=LoaderRepository,name=Default, repositoryClassName: null,
configParserClassName: null, repositoryConfig: null)
2008-01-24 01:16:44,040 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository,
repository=org.jboss.mx.loading.UnifiedLoaderRepository3 at 13ad085,
cl=org.jboss.mx.loading.UnifiedClassLoader3 at 189a482{ url=null ,addedOrder=0}
2008-01-24 01:16:44,040 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository,
repository=org.jboss.mx.loading.UnifiedLoaderRepository3 at 13ad085,
cl=org.jboss.mx.loading.UnifiedClassLoader3 at 189a482{ url=null ,addedOrder=0}
2008-01-24 01:16:44,040 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] Adding
org.jboss.mx.loading.UnifiedClassLoader3 at 189a482{ url=null ,addedOrder=0}
2008-01-24 01:16:44,040 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of
file:/qa/services/hudson/hudson_workspace/workspace/JBoss-AS-4.2.x-TestSuite-sun15/Branch_4_2/testsuite/output/lib/receivers-arraylist-service.xml
2008-01-24 01:16:44,041 DEBUG [org.jboss.deployment.MainDeployer] Watching new file:
file:/qa/services/hudson/hudson_workspace/workspace/JBoss-AS-4.2.x-TestSuite-sun15/Branch_4_2/testsuite/output/lib/receivers-arraylist-service.xml
2008-01-24 01:16:44,041 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment
file:/qa/services/hudson/hudson_workspace/workspace/JBoss-AS-4.2.x-TestSuite-sun15/Branch_4_2/testsuite/output/lib/receivers-arraylist-service.xml
2008-01-24 01:16:44,041 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, create step:
url
file:/qa/services/hudson/hudson_workspace/workspace/JBoss-AS-4.2.x-TestSuite-sun15/Branch_4_2/testsuite/output/lib/receivers-arraylist-service.xml
2008-01-24 01:16:44,041 DEBUG [org.jboss.deployment.SARDeployer] Registering service
UCL=jmx.loading:UCL=189a482
2008-01-24 01:16:44,042 DEBUG [org.jboss.system.ServiceCreator] About to create bean:
jboss.mq.destination:service=Queue,name=ReceiversImpl with code: org.jboss.mq.server.jmx.Queue
2008-01-24 01:16:44,050 DEBUG [org.jboss.system.ServiceCreator] Created bean:
jboss.mq.destination:service=Queue,name=ReceiversImpl
2008-01-24 01:16:44,055 DEBUG [org.jboss.system.ServiceConfigurator] ReceiversImpl set to
class org.jboss.mq.server.ReceiversImplArrayList in
jboss.mq.destination:service=Queue,name=ReceiversImpl
2008-01-24 01:16:44,056 DEBUG [org.jboss.system.ServiceController] recording that
jboss.mq.destination:service=Queue,name=ReceiversImpl depends on
jboss.mq:service=DestinationManager
2008-01-24 01:16:44,056 DEBUG [org.jboss.system.ServiceConfigurator] considering
DestinationManager with object name jboss.mq:service=DestinationManager
2008-01-24 01:16:44,057 DEBUG [org.jboss.system.ServiceController] Creating service
jboss.mq.destination:service=Queue,name=ReceiversImpl
2008-01-24 01:16:44,057 DEBUG [org.jboss.deployment.SARDeployer] create operation failed for
package
file:/qa/services/hudson/hudson_workspace/workspace/JBoss-AS-4.2.x-TestSuite-sun15/Branch_4_2/testsuite/output/lib/receivers-arraylist-service.xml
java.lang.NullPointerException
at java.util.LinkedList.indexOf(LinkedList.java:406)
at java.util.LinkedList.contains(LinkedList.java:176)
at org.jboss.system.ServiceController.register(ServiceController.java:828)
at org.jboss.system.ServiceController.create(ServiceController.java:296)
at org.jboss.system.ServiceController.create(ServiceController.java:273)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.create(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:258)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.redeploy(MainDeployer.java:566)
at sun.reflect.GeneratedMethodAccessor133.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at sun.reflect.GeneratedMethodAccessor501.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)
at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at
org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:818)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:419)
at sun.reflect.GeneratedMethodAccessor81.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
More information about the jboss-development
mailing list