java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Don't know whether this a problem in Artifactory itself or a Jetty bug. The exception occured while importing a rather large repository exported from Artifactory 1.2.5 using the 'artadmin' commandline tool. Not sure whether the import really succeeded. Artifact count in the web interface is still increasing, maybe the import is running in a background thread or count gets adjusted while the indexer tries to catch up). Commandline client immediately returned after the exception, printing "import finished in XXX seconds" (see stdout output below stacktrace). -------------------------------- 2009-12-07 12:19:49,590 [pool-1-thread-4] [WARN ] (o.m.log :76) - header full: java.lang.NullPointerException 2009-12-07 12:19:49,665 [pool-1-thread-4] [ERROR] (o.a.r.r.s.StreamStatusHolder:96) - Cannot send status to client. Will stop sending them. java.lang.NullPointerException: null at org.mortbay.jetty.HttpFields$2.hasNext(HttpFields.java:268) [jetty-6.1.21.jar:6.1.21] at org.mortbay.jetty.HttpGenerator.completeHeader(HttpGenerator.java:396) [jetty-6.1.21.jar:6.1.21] at org.mortbay.jetty.HttpConnection.commitResponse(HttpConnection.java:639) [jetty-6.1.21.jar:6.1.21] at org.mortbay.jetty.HttpConnection$Output.flush(HttpConnection.java:996) [jetty-6.1.21.jar:6.1.21] at java.io.PrintStream.flush(PrintStream.java:288) [na:1.6.0_10] at org.artifactory.rest.resource.system.StreamStatusHolder.sendToClient(StreamStatusHolder.java:94) [artifactory-rest-2.1.2.jar:na] at org.artifactory.rest.resource.system.StreamStatusHolder.addStatus(StreamStatusHolder.java:62) [artifactory-rest-2.1.2.jar:na] at org.artifactory.api.common.StatusHolder.setDebug(StatusHolder.java:79) [artifactory-api-2.1.2.jar:na] at org.artifactory.jcr.fs.JcrFolder.importChildren(JcrFolder.java:583) [artifactory-core-2.1.2.jar:na] at org.artifactory.repo.jcr.JcrRepoBase.importFrom(JcrRepoBase.java:195) [artifactory-core-2.1.2.jar:na] at org.artifactory.repo.service.RepositoryServiceImpl.importRepo(RepositoryServiceImpl.java:712) [artifactory-core-2.1.2.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_10] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_10] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_10] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_10] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:74) [artifactory-core-2.1.2.jar:na] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:45) [artifactory-core-2.1.2.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.6.jar:2.5.6] at $Proxy19.importRepo(Unknown Source) [na:na] at org.artifactory.repo.service.ImportJob.onExecute(ImportJob.java:75) [artifactory-core-2.1.2.jar:na] at org.artifactory.repo.service.ImportJob.onExecute(ImportJob.java:36) [artifactory-core-2.1.2.jar:na] at org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:43) [artifactory-core-2.1.2.jar:na] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-1.6.3.jar:1.6.3] at org.artifactory.schedule.CachedThreadPoolTaskExecutor$RunnableWrapper.run(CachedThreadPoolTaskExecutor.java:65) [artifactory-core-2.1.2.jar:na] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_10] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_10] at java.lang.Thread.run(Thread.java:619) [na:1.6.0_10] ------------------------------------- Output of artadmin tool ------------------------------------- ............................................................................... ..............................500 : Received uncaught exception import finished in 12007.453 seconds.
    via by Tobias Gierke,
  • Don't know whether this a problem in Artifactory itself or a Jetty bug. The exception occured while importing a rather large repository exported from Artifactory 1.2.5 using the 'artadmin' commandline tool. Not sure whether the import really succeeded. Artifact count in the web interface is still increasing, maybe the import is running in a background thread or count gets adjusted while the indexer tries to catch up). Commandline client immediately returned after the exception, printing "import finished in XXX seconds" (see stdout output below stacktrace). -------------------------------- 2009-12-07 12:19:49,590 [pool-1-thread-4] [WARN ] (o.m.log :76) - header full: java.lang.NullPointerException 2009-12-07 12:19:49,665 [pool-1-thread-4] [ERROR] (o.a.r.r.s.StreamStatusHolder:96) - Cannot send status to client. Will stop sending them. java.lang.NullPointerException: null at org.mortbay.jetty.HttpFields$2.hasNext(HttpFields.java:268) [jetty-6.1.21.jar:6.1.21] at org.mortbay.jetty.HttpGenerator.completeHeader(HttpGenerator.java:396) [jetty-6.1.21.jar:6.1.21] at org.mortbay.jetty.HttpConnection.commitResponse(HttpConnection.java:639) [jetty-6.1.21.jar:6.1.21] at org.mortbay.jetty.HttpConnection$Output.flush(HttpConnection.java:996) [jetty-6.1.21.jar:6.1.21] at java.io.PrintStream.flush(PrintStream.java:288) [na:1.6.0_10] at org.artifactory.rest.resource.system.StreamStatusHolder.sendToClient(StreamStatusHolder.java:94) [artifactory-rest-2.1.2.jar:na] at org.artifactory.rest.resource.system.StreamStatusHolder.addStatus(StreamStatusHolder.java:62) [artifactory-rest-2.1.2.jar:na] at org.artifactory.api.common.StatusHolder.setDebug(StatusHolder.java:79) [artifactory-api-2.1.2.jar:na] at org.artifactory.jcr.fs.JcrFolder.importChildren(JcrFolder.java:583) [artifactory-core-2.1.2.jar:na] at org.artifactory.repo.jcr.JcrRepoBase.importFrom(JcrRepoBase.java:195) [artifactory-core-2.1.2.jar:na] at org.artifactory.repo.service.RepositoryServiceImpl.importRepo(RepositoryServiceImpl.java:712) [artifactory-core-2.1.2.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_10] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_10] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_10] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_10] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:74) [artifactory-core-2.1.2.jar:na] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:45) [artifactory-core-2.1.2.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.6.jar:2.5.6] at $Proxy19.importRepo(Unknown Source) [na:na] at org.artifactory.repo.service.ImportJob.onExecute(ImportJob.java:75) [artifactory-core-2.1.2.jar:na] at org.artifactory.repo.service.ImportJob.onExecute(ImportJob.java:36) [artifactory-core-2.1.2.jar:na] at org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:43) [artifactory-core-2.1.2.jar:na] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-1.6.3.jar:1.6.3] at org.artifactory.schedule.CachedThreadPoolTaskExecutor$RunnableWrapper.run(CachedThreadPoolTaskExecutor.java:65) [artifactory-core-2.1.2.jar:na] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_10] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_10] at java.lang.Thread.run(Thread.java:619) [na:1.6.0_10] ------------------------------------- Output of artadmin tool ------------------------------------- ............................................................................... ..............................500 : Received uncaught exception import finished in 12007.453 seconds.
    via by Tobias Gierke,
    • java.lang.NullPointerException: null at org.mortbay.jetty.HttpFields$2.hasNext(HttpFields.java:268)[jetty-6.1.21.jar:6.1.21] at org.mortbay.jetty.HttpGenerator.completeHeader(HttpGenerator.java:396)[jetty-6.1.21.jar:6.1.21] at org.mortbay.jetty.HttpConnection.commitResponse(HttpConnection.java:639)[jetty-6.1.21.jar:6.1.21] at org.mortbay.jetty.HttpConnection$Output.flush(HttpConnection.java:996)[jetty-6.1.21.jar:6.1.21] at java.io.PrintStream.flush(PrintStream.java:288)[na:1.6.0_10] at org.artifactory.rest.resource.system.StreamStatusHolder.sendToClient(StreamStatusHolder.java:94)[artifactory-rest-2.1.2.jar:na] at org.artifactory.rest.resource.system.StreamStatusHolder.addStatus(StreamStatusHolder.java:62)[artifactory-rest-2.1.2.jar:na] at org.artifactory.api.common.StatusHolder.setDebug(StatusHolder.java:79)[artifactory-api-2.1.2.jar:na] at org.artifactory.jcr.fs.JcrFolder.importChildren(JcrFolder.java:583)[artifactory-core-2.1.2.jar:na] at org.artifactory.repo.jcr.JcrRepoBase.importFrom(JcrRepoBase.java:195)[artifactory-core-2.1.2.jar:na] at org.artifactory.repo.service.RepositoryServiceImpl.importRepo(RepositoryServiceImpl.java:712)[artifactory-core-2.1.2.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_10] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_10] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_10] at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_10] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)[spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)[spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)[spring-aop-2.5.6.jar:2.5.6] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:74)[artifactory-core-2.1.2.jar:na] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:45)[artifactory-core-2.1.2.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)[spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)[spring-aop-2.5.6.jar:2.5.6] at $Proxy19.importRepo(Unknown Source)[na:na] at org.artifactory.repo.service.ImportJob.onExecute(ImportJob.java:75)[artifactory-core-2.1.2.jar:na] at org.artifactory.repo.service.ImportJob.onExecute(ImportJob.java:36)[artifactory-core-2.1.2.jar:na] at org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:43)[artifactory-core-2.1.2.jar:na] at org.quartz.core.JobRunShell.run(JobRunShell.java:202)[quartz-1.6.3.jar:1.6.3] at org.artifactory.schedule.CachedThreadPoolTaskExecutor$RunnableWrapper.run(CachedThreadPoolTaskExecutor.java:65)[artifactory-core-2.1.2.jar:na] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[na:1.6.0_10] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[na:1.6.0_10] at java.lang.Thread.run(Thread.java:619)[na:1.6.0_10]
    No Bugmate found.