java.lang.NullPointerException

Jenkins JIRA | Timo Leinonen | 4 years ago
  1. 0

    Some of our build jobs are sporadically getting the following error at the end of the build: [WARNINGS] Parsing warnings in console log with parser Maven ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception java.lang.NullPointerException at hudson.plugins.analysis.util.model.AbstractAnnotation.equals(AbstractAnnotation.java:499) at com.google.common.collect.RegularImmutableSet.contains(RegularImmutableSet.java:54) at java.util.AbstractSet.removeAll(AbstractSet.java:157) at hudson.plugins.analysis.core.AnnotationDifferencer.difference(AnnotationDifferencer.java:43) at hudson.plugins.analysis.core.AnnotationDifferencer.getNewAnnotations(AnnotationDifferencer.java:27) at hudson.plugins.analysis.core.BuildResult.initialize(BuildResult.java:261) at hudson.plugins.analysis.core.BuildResult.<init>(BuildResult.java:215) at hudson.plugins.warnings.WarningsResult.<init>(WarningsResult.java:52) at hudson.plugins.warnings.WarningsResult.<init>(WarningsResult.java:46) at hudson.plugins.warnings.WarningsPublisher.annotate(WarningsPublisher.java:406) at hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:365) at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:276) at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:289) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:685) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:632) at hudson.model.Run.run(Run.java:1463) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) This only happens on some jobs, and only for some builds. Sometimes we can fix the the error by disabling and enabling the warnings plugin for that build, but sometimes the error will return after a couple of builds. So we don't really have a bulletproof workaround for this issue. We have tried using warnings 4.17, but then we got a similar error, but without the whole stacktrace, so we reverted to 4.16: [WARNINGS] Parsing warnings in console log with parser Maven ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception java.lang.NullPointerException

    Jenkins JIRA | 4 years ago | Timo Leinonen
    java.lang.NullPointerException
  2. 0

    Some of our build jobs are sporadically getting the following error at the end of the build: [WARNINGS] Parsing warnings in console log with parser Maven ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception java.lang.NullPointerException at hudson.plugins.analysis.util.model.AbstractAnnotation.equals(AbstractAnnotation.java:499) at com.google.common.collect.RegularImmutableSet.contains(RegularImmutableSet.java:54) at java.util.AbstractSet.removeAll(AbstractSet.java:157) at hudson.plugins.analysis.core.AnnotationDifferencer.difference(AnnotationDifferencer.java:43) at hudson.plugins.analysis.core.AnnotationDifferencer.getNewAnnotations(AnnotationDifferencer.java:27) at hudson.plugins.analysis.core.BuildResult.initialize(BuildResult.java:261) at hudson.plugins.analysis.core.BuildResult.<init>(BuildResult.java:215) at hudson.plugins.warnings.WarningsResult.<init>(WarningsResult.java:52) at hudson.plugins.warnings.WarningsResult.<init>(WarningsResult.java:46) at hudson.plugins.warnings.WarningsPublisher.annotate(WarningsPublisher.java:406) at hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:365) at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:276) at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:289) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:685) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:632) at hudson.model.Run.run(Run.java:1463) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) This only happens on some jobs, and only for some builds. Sometimes we can fix the the error by disabling and enabling the warnings plugin for that build, but sometimes the error will return after a couple of builds. So we don't really have a bulletproof workaround for this issue. We have tried using warnings 4.17, but then we got a similar error, but without the whole stacktrace, so we reverted to 4.16: [WARNINGS] Parsing warnings in console log with parser Maven ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception java.lang.NullPointerException

    Jenkins JIRA | 4 years ago | Timo Leinonen
    java.lang.NullPointerException
  3. 0

    I recently ran into some issues with Jenkins timing out if the console log is inactive for too long. I originally had a job with command similar to "make >build.log 2>&1" with a warning publisher tied to that "build.log" file. I changed the job command to simply "make" and modified the job to search for warnings on the console log rather than the old log file. The build itself completes fine, but the final job steps produce an exception. It seems like this may be because the job has older builds with identical warning category but different warning source, but haven't looked too much into it. A segment of the log containing the error is below: [WARNINGS] Parsing warnings in console log with parser GNU Make + GNU Compiler (gcc) ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception java.lang.NullPointerException at hudson.plugins.analysis.util.model.AbstractAnnotation.equals(AbstractAnnotation.java:499) at com.google.common.collect.RegularImmutableSet.contains(RegularImmutableSet.java:54) at java.util.AbstractSet.removeAll(AbstractSet.java:176) at hudson.plugins.analysis.core.AnnotationDifferencer.difference(AnnotationDifferencer.java:43) at hudson.plugins.analysis.core.AnnotationDifferencer.getNewAnnotations(AnnotationDifferencer.java:27) at hudson.plugins.analysis.core.BuildResult.initialize(BuildResult.java:261) at hudson.plugins.analysis.core.BuildResult.<init>(BuildResult.java:215) at hudson.plugins.warnings.WarningsResult.<init>(WarningsResult.java:52) at hudson.plugins.warnings.WarningsResult.<init>(WarningsResult.java:46) at hudson.plugins.warnings.WarningsPublisher.annotate(WarningsPublisher.java:406) at hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:365) at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:276) at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:289) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) ...

    Jenkins JIRA | 4 years ago | Brian Sipos
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I recently ran into some issues with Jenkins timing out if the console log is inactive for too long. I originally had a job with command similar to "make >build.log 2>&1" with a warning publisher tied to that "build.log" file. I changed the job command to simply "make" and modified the job to search for warnings on the console log rather than the old log file. The build itself completes fine, but the final job steps produce an exception. It seems like this may be because the job has older builds with identical warning category but different warning source, but haven't looked too much into it. A segment of the log containing the error is below: [WARNINGS] Parsing warnings in console log with parser GNU Make + GNU Compiler (gcc) ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception java.lang.NullPointerException at hudson.plugins.analysis.util.model.AbstractAnnotation.equals(AbstractAnnotation.java:499) at com.google.common.collect.RegularImmutableSet.contains(RegularImmutableSet.java:54) at java.util.AbstractSet.removeAll(AbstractSet.java:176) at hudson.plugins.analysis.core.AnnotationDifferencer.difference(AnnotationDifferencer.java:43) at hudson.plugins.analysis.core.AnnotationDifferencer.getNewAnnotations(AnnotationDifferencer.java:27) at hudson.plugins.analysis.core.BuildResult.initialize(BuildResult.java:261) at hudson.plugins.analysis.core.BuildResult.<init>(BuildResult.java:215) at hudson.plugins.warnings.WarningsResult.<init>(WarningsResult.java:52) at hudson.plugins.warnings.WarningsResult.<init>(WarningsResult.java:46) at hudson.plugins.warnings.WarningsPublisher.annotate(WarningsPublisher.java:406) at hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:365) at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:276) at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:289) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) ...

    Jenkins JIRA | 4 years ago | Brian Sipos
    java.lang.NullPointerException
  6. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    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

      No message provided

      at hudson.plugins.analysis.util.model.AbstractAnnotation.equals()
    2. Static Analysis Utilities
      AbstractAnnotation.equals
      1. hudson.plugins.analysis.util.model.AbstractAnnotation.equals(AbstractAnnotation.java:499)
      1 frame
    3. Guava
      RegularImmutableSet.contains
      1. com.google.common.collect.RegularImmutableSet.contains(RegularImmutableSet.java:54)
      1 frame
    4. Java RT
      AbstractSet.removeAll
      1. java.util.AbstractSet.removeAll(AbstractSet.java:157)
      1 frame
    5. Static Analysis Utilities
      BuildResult.<init>
      1. hudson.plugins.analysis.core.AnnotationDifferencer.difference(AnnotationDifferencer.java:43)
      2. hudson.plugins.analysis.core.AnnotationDifferencer.getNewAnnotations(AnnotationDifferencer.java:27)
      3. hudson.plugins.analysis.core.BuildResult.initialize(BuildResult.java:261)
      4. hudson.plugins.analysis.core.BuildResult.<init>(BuildResult.java:215)
      4 frames
    6. hudson.plugins.warnings
      WarningsPublisher.perform
      1. hudson.plugins.warnings.WarningsResult.<init>(WarningsResult.java:52)
      2. hudson.plugins.warnings.WarningsResult.<init>(WarningsResult.java:46)
      3. hudson.plugins.warnings.WarningsPublisher.annotate(WarningsPublisher.java:406)
      4. hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:365)
      5. hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:276)
      5 frames
    7. Static Analysis Utilities
      HealthAwareRecorder.perform
      1. hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:289)
      1 frame
    8. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:685)
      4. hudson.model.Build$RunnerImpl.post2(Build.java:162)
      5. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:632)
      6. hudson.model.Run.run(Run.java:1463)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:239)
      9 frames