Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-3726

FATAL: null, NPE triggered

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: ci-game-plugin
    • Labels:
      None
    • Environment:
      Platform: PC, OS: other
    • Similar Issues:

      Description

      Hello

      using Hudson v1.306, JDK 1.6.0_13 hosted in Tomcat 6.0.18 on a Windows 2003 R2
      SP2 (32bit) and the CI-Game plugin v1.7 I have noticed the following entry (end
      of console output) for all projects registered with the CI game:
      Time Elapsed 00:00:40.93
      Recording NUnit tests results
      Email was triggered for: Fixed
      Trigger Success was overridden by another trigger and will not send an email.
      There are 1 triggered emails.
      Sending email for trigger: Fixed
      Sending e-mails to: foobar@example.com
      FATAL: null
      java.lang.NullPointerException
      at hudson.plugins.cigame.model.ScoreCard.record(ScoreCard.java:34)
      at hudson.plugins.cigame.model.ScoreCard.record(ScoreCard.java:51)
      at hudson.plugins.cigame.GamePublisher.perform(GamePublisher.java:45)
      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:372)
      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:360)
      at hudson.model.Build$RunnerImpl.cleanUp(Build.java:188)
      at hudson.model.Run.run(Run.java:966)
      at hudson.model.Build.run(Build.java:112)
      at hudson.model.ResourceController.execute(ResourceController.java:93)
      at hudson.model.Executor.run(Executor.java:119)

      thanks,
      andrea

        Attachments

          Activity

          Hide
          redsolo redsolo added a comment -

          Ive looked at the stack trace, and it seems that some how there is a null added to a rule
          set, as the nullpointerexception points to
          RuleResult result = rule.evaluate(build);

          For a null pointer to happen there, it seems that rule has to be null. Are you still seeing
          this problem, and if so could help me out investigating it`? I realize that Im 3 months
          late and you have probably stopped using the plugin.

          Show
          redsolo redsolo added a comment - Ive looked at the stack trace, and it seems that some how there is a null added to a rule set, as the nullpointerexception points to RuleResult result = rule.evaluate(build); For a null pointer to happen there, it seems that rule has to be null. Are you still seeing this problem, and if so could help me out investigating it`? I realize that Im 3 months late and you have probably stopped using the plugin.
          Hide
          abarbieri Andrea Barbieri added a comment -

          thanks for picking this up...

          I need to check if with the current version of Hudson and of the CI plugin the exception is present in the
          log files.

          will report on the findings very soon.

          Show
          abarbieri Andrea Barbieri added a comment - thanks for picking this up... I need to check if with the current version of Hudson and of the CI plugin the exception is present in the log files. will report on the findings very soon.
          Hide
          abarbieri Andrea Barbieri added a comment -

          thanks for picking this up...

          I need to check if with the current version of Hudson and of the CI plugin the exception is present in the
          log files.

          will report on the findings very soon.

          Show
          abarbieri Andrea Barbieri added a comment - thanks for picking this up... I need to check if with the current version of Hudson and of the CI plugin the exception is present in the log files. will report on the findings very soon.
          Hide
          abarbieri Andrea Barbieri added a comment -

          Hello,

          still experiencing the issue with Hudson 1.320 and ci-game 1.12

          [TASKS] Scanning workspace files for tasks...
          [TASKS] Found 0 annotations (0 new, 0 high, 0 normal, 0 low)
          [TASKS] Not changing build status, since no threshold has been exceeded
          [WARNINGS] Parsing warnings in console log...
          [WARNINGS] Found 0 annotations (0 new, 0 high, 0 normal, 0 low)
          [WARNINGS] Not changing build status, since no threshold has been exceeded
          No emails were triggered.
          FATAL: null
          java.lang.NullPointerException
          at
          hudson.plugins.cigame.rules.plugins.violation.DefaultViolationRule.getTypeReportCount(DefaultViolationRule.java:50)
          at
          hudson.plugins.cigame.rules.plugins.violation.DefaultViolationRule.evaluate(DefaultViolationRule.java:32)
          at hudson.plugins.cigame.model.ScoreCard.record(ScoreCard.java:34)
          at hudson.plugins.cigame.model.ScoreCard.record(ScoreCard.java:51)
          at hudson.plugins.cigame.GamePublisher.perform(GamePublisher.java:45)
          at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
          at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:480)
          at
          hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:466)
          at
          hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:454)
          at hudson.model.Build$RunnerImpl.cleanUp(Build.java:150)
          at hudson.model.Run.run(Run.java:1132)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          at hudson.model.ResourceController.execute(ResourceController.java:93)
          at hudson.model.Executor.run(Executor.java:122)

          Show
          abarbieri Andrea Barbieri added a comment - Hello, still experiencing the issue with Hudson 1.320 and ci-game 1.12 [TASKS] Scanning workspace files for tasks... [TASKS] Found 0 annotations (0 new, 0 high, 0 normal, 0 low) [TASKS] Not changing build status, since no threshold has been exceeded [WARNINGS] Parsing warnings in console log... [WARNINGS] Found 0 annotations (0 new, 0 high, 0 normal, 0 low) [WARNINGS] Not changing build status, since no threshold has been exceeded No emails were triggered. FATAL: null java.lang.NullPointerException at hudson.plugins.cigame.rules.plugins.violation.DefaultViolationRule.getTypeReportCount(DefaultViolationRule.java:50) at hudson.plugins.cigame.rules.plugins.violation.DefaultViolationRule.evaluate(DefaultViolationRule.java:32) at hudson.plugins.cigame.model.ScoreCard.record(ScoreCard.java:34) at hudson.plugins.cigame.model.ScoreCard.record(ScoreCard.java:51) at hudson.plugins.cigame.GamePublisher.perform(GamePublisher.java:45) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:480) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:466) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:454) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:150) at hudson.model.Run.run(Run.java:1132) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:122)
          Hide
          mnementh mnementh added a comment -

          Oops, recently I couldn't leave a comment, now that works. I want to add, I have
          the same problem, also the NPE in DefaultViolationRule.java:50. I recently
          updated to 1.12 and it worked fine, builds got points. After some days from one
          build to another the builds no longer get points. One exception: A failing build
          and the build bringing it to normal got points. I have no idea to workaroiund
          this problem, so at the moment in my company the people can't get scores.

          Show
          mnementh mnementh added a comment - Oops, recently I couldn't leave a comment, now that works. I want to add, I have the same problem, also the NPE in DefaultViolationRule.java:50. I recently updated to 1.12 and it worked fine, builds got points. After some days from one build to another the builds no longer get points. One exception: A failing build and the build bringing it to normal got points. I have no idea to workaroiund this problem, so at the moment in my company the people can't get scores.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : redsolo
          Path:
          trunk/hudson/plugins/ci-game/src/main/java/hudson/plugins/cigame/rules/plugins/opentasks/DefaultOpenTasksRule.java
          trunk/hudson/plugins/ci-game/src/main/java/hudson/plugins/cigame/rules/plugins/violation/DefaultViolationRule.java
          trunk/hudson/plugins/ci-game/src/test/java/hudson/plugins/cigame/rules/plugins/violation/DefaultViolationRuleIntegrationTest.java
          trunk/hudson/plugins/ci-game/src/test/java/hudson/plugins/cigame/rules/plugins/violation/DefaultViolationRuleTest.java
          trunk/hudson/plugins/ci-game/src/test/resources/hudson/plugins/cigame/rules/plugins/violation/DefaultViolationRuleIntegrationTest.zip
          http://fisheye4.cenqua.com/changelog/hudson/?cs=21343
          Log:
          JENKINS-3726 - Now violation rule lets the Violation action to calculate the number of warnings.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : redsolo Path: trunk/hudson/plugins/ci-game/src/main/java/hudson/plugins/cigame/rules/plugins/opentasks/DefaultOpenTasksRule.java trunk/hudson/plugins/ci-game/src/main/java/hudson/plugins/cigame/rules/plugins/violation/DefaultViolationRule.java trunk/hudson/plugins/ci-game/src/test/java/hudson/plugins/cigame/rules/plugins/violation/DefaultViolationRuleIntegrationTest.java trunk/hudson/plugins/ci-game/src/test/java/hudson/plugins/cigame/rules/plugins/violation/DefaultViolationRuleTest.java trunk/hudson/plugins/ci-game/src/test/resources/hudson/plugins/cigame/rules/plugins/violation/DefaultViolationRuleIntegrationTest.zip http://fisheye4.cenqua.com/changelog/hudson/?cs=21343 Log: JENKINS-3726 - Now violation rule lets the Violation action to calculate the number of warnings.
          Hide
          redsolo redsolo added a comment -

          Fixed through last commit.

          Show
          redsolo redsolo added a comment - Fixed through last commit.

            People

            • Assignee:
              redsolo redsolo
              Reporter:
              abarbieri Andrea Barbieri
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: