java.lang.NullPointerException: null

JFrog JIRA | Tobias Gierke | 7 years ago
  1. 0

    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.

    JFrog JIRA | 7 years ago | Tobias Gierke
    java.lang.NullPointerException: null
  2. 0

    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.

    JFrog JIRA | 7 years ago | Tobias Gierke
    java.lang.NullPointerException: null
  3. 0

    HQL Exception (org.hibernate.dialect.Dialect$3)

    Stack Overflow | 4 years ago | Hari
    java.lang.NullPointerException: null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error loading model properties in JPA on play 2.0.3

    Stack Overflow | 4 years ago | Chappies
    java.lang.NullPointerException: null

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      null

      at org.mortbay.jetty.HttpFields$2.hasNext()
    2. Jetty Server
      HttpConnection$Output.flush
      1. org.mortbay.jetty.HttpFields$2.hasNext(HttpFields.java:268)[jetty-6.1.21.jar:6.1.21]
      2. org.mortbay.jetty.HttpGenerator.completeHeader(HttpGenerator.java:396)[jetty-6.1.21.jar:6.1.21]
      3. org.mortbay.jetty.HttpConnection.commitResponse(HttpConnection.java:639)[jetty-6.1.21.jar:6.1.21]
      4. org.mortbay.jetty.HttpConnection$Output.flush(HttpConnection.java:996)[jetty-6.1.21.jar:6.1.21]
      4 frames
    3. Java RT
      PrintStream.flush
      1. java.io.PrintStream.flush(PrintStream.java:288)[na:1.6.0_10]
      1 frame
    4. org.artifactory.rest
      StreamStatusHolder.addStatus
      1. org.artifactory.rest.resource.system.StreamStatusHolder.sendToClient(StreamStatusHolder.java:94)[artifactory-rest-2.1.2.jar:na]
      2. org.artifactory.rest.resource.system.StreamStatusHolder.addStatus(StreamStatusHolder.java:62)[artifactory-rest-2.1.2.jar:na]
      2 frames
    5. org.artifactory.api
      StatusHolder.setDebug
      1. org.artifactory.api.common.StatusHolder.setDebug(StatusHolder.java:79)[artifactory-api-2.1.2.jar:na]
      1 frame
    6. org.artifactory.jcr
      JcrFolder.importChildren
      1. org.artifactory.jcr.fs.JcrFolder.importChildren(JcrFolder.java:583)[artifactory-core-2.1.2.jar:na]
      1 frame
    7. org.artifactory.repo
      RepositoryServiceImpl.importRepo
      1. org.artifactory.repo.jcr.JcrRepoBase.importFrom(JcrRepoBase.java:195)[artifactory-core-2.1.2.jar:na]
      2. org.artifactory.repo.service.RepositoryServiceImpl.importRepo(RepositoryServiceImpl.java:712)[artifactory-core-2.1.2.jar:na]
      2 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_10]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_10]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_10]
      4. java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_10]
      4 frames
    9. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)[spring-aop-2.5.6.jar:2.5.6]
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)[spring-aop-2.5.6.jar:2.5.6]
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)[spring-aop-2.5.6.jar:2.5.6]
      3 frames
    10. org.artifactory.jcr
      LockingAdvice.invoke
      1. org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:74)[artifactory-core-2.1.2.jar:na]
      2. org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:45)[artifactory-core-2.1.2.jar:na]
      2 frames
    11. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)[spring-aop-2.5.6.jar:2.5.6]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)[spring-aop-2.5.6.jar:2.5.6]
      2 frames
    12. Unknown
      $Proxy19.importRepo
      1. $Proxy19.importRepo(Unknown Source)[na:na]
      1 frame
    13. org.artifactory.repo
      ImportJob.onExecute
      1. org.artifactory.repo.service.ImportJob.onExecute(ImportJob.java:75)[artifactory-core-2.1.2.jar:na]
      2. org.artifactory.repo.service.ImportJob.onExecute(ImportJob.java:36)[artifactory-core-2.1.2.jar:na]
      2 frames
    14. org.artifactory.schedule
      QuartzCommand.execute
      1. org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:43)[artifactory-core-2.1.2.jar:na]
      1 frame
    15. quartz
      JobRunShell.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)[quartz-1.6.3.jar:1.6.3]
      1 frame
    16. org.artifactory.schedule
      CachedThreadPoolTaskExecutor$RunnableWrapper.run
      1. org.artifactory.schedule.CachedThreadPoolTaskExecutor$RunnableWrapper.run(CachedThreadPoolTaskExecutor.java:65)[artifactory-core-2.1.2.jar:na]
      1 frame
    17. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[na:1.6.0_10]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[na:1.6.0_10]
      3. java.lang.Thread.run(Thread.java:619)[na:1.6.0_10]
      3 frames