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

CI Game plugin throws exception after upgrade to Jenkins 1.554.3

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: ci-game-plugin, core
    • Labels:
      None
    • Environment:
      Windows 2008 R2 64bit Jenkins 1.554.3
    • Similar Issues:

      Description

      We have following exception after upgrade to latest version of Jenkins:

      ERROR: Publisher hudson.plugins.cigame.GamePublisher aborted due to exception
      java.lang.NullPointerException
      at java.util.LinkedList$ListItr.next(Unknown Source)
      at hudson.plugins.cigame.model.ScoreCard.record(ScoreCard.java:121)
      at hudson.plugins.cigame.GamePublisher.perform(GamePublisher.java:60)
      at hudson.plugins.cigame.GamePublisher.perform(GamePublisher.java:45)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
      at hudson.model.Build$BuildExecution.cleanUp(Build.java:192)
      at hudson.model.Run.execute(Run.java:1730)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:231)

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          Trivial workaround available: Disable or remove the plugin for the affected jobs or from the instance. Reducing priority because of that.

          Does Jenkins have entries in 'Manage Old Data'? What version of Jenkins were you upgrading from?

          Show
          danielbeck Daniel Beck added a comment - Trivial workaround available: Disable or remove the plugin for the affected jobs or from the instance. Reducing priority because of that. Does Jenkins have entries in 'Manage Old Data'? What version of Jenkins were you upgrading from?
          Hide
          oleg_nenashev Oleg Nenashev added a comment - - edited

          Seems the issue is unrelated to the core

          @Ireneusz
          What version of the cigame plugin do you use?

          ScoreCard.java

          121:    for (RuleSet set : ruleBook.getRuleSets()) {
          122:       record(build, set, listener);
          123:    }
          

          The plugin occasionally gets the null RuleBook, which is being returned by GameDescriptor(seems to be impossible is the last cigame version)

          Show
          oleg_nenashev Oleg Nenashev added a comment - - edited Seems the issue is unrelated to the core @Ireneusz What version of the cigame plugin do you use? ScoreCard.java 121: for (RuleSet set : ruleBook.getRuleSets()) { 122: record(build, set, listener); 123: } The plugin occasionally gets the null RuleBook, which is being returned by GameDescriptor(seems to be impossible is the last cigame version)
          Hide
          imakowski Ireneusz Makowski added a comment - - edited

          I use 1.19 (latest available). I don't have Manage Old Data after upgrade.

          Everything was ok before upgrade to 1.554.3 (so on 1.554.2 plugin was working correctly)

          Show
          imakowski Ireneusz Makowski added a comment - - edited I use 1.19 (latest available). I don't have Manage Old Data after upgrade. Everything was ok before upgrade to 1.554.3 (so on 1.554.2 plugin was working correctly)
          Hide
          danielbeck Daniel Beck added a comment -

          Oleg: Looks more like a concurrent modification of the list between the iterator's validation and access of the next element.

          Does this happen while admins change the global configuration?

          Solution in the plugin: Copy the list before iterating.

          Show
          danielbeck Daniel Beck added a comment - Oleg: Looks more like a concurrent modification of the list between the iterator's validation and access of the next element. Does this happen while admins change the global configuration? Solution in the plugin: Copy the list before iterating.

            People

            • Assignee:
              redsolo redsolo
              Reporter:
              imakowski Ireneusz Makowski
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: