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

MissingResourceException - Unable to load resource file Messages.properties

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: ci-game-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.408 on UNIX with Windows slave.
    • Similar Issues:

      Description

      After updating to 1.408 from 1.405 we have received the following error at the end of a job run. The job runs on a Windows slave, but the path indicated in the stack trace below is on the master server. Not sure if that is significant to the issue. We saw the same exception after upgrading from 1.392 to 1.405, but it appeared to resolve itself then.

      ERROR: Publisher hudson.plugins.cigame.GamePublisher aborted due to exception
      java.util.MissingResourceException: Unable to load resource file:/sites/hudson/hudsonHome/plugins/ci-game/WEB-INF/classes/hudson/plugins/cigame/rules/build/Messages.properties
      at org.jvnet.localizer.ResourceBundleHolder.get(ResourceBundleHolder.java:95)
      at org.jvnet.localizer.ResourceBundleHolder.get(ResourceBundleHolder.java:102)
      at org.jvnet.localizer.ResourceBundleHolder.format(ResourceBundleHolder.java:139)
      at hudson.plugins.cigame.rules.build.Messages.BuildRuleSet_Title(Messages.java:37)
      at hudson.plugins.cigame.rules.build.BuildRuleSet.<init>(BuildRuleSet.java:10)
      at hudson.plugins.cigame.GameDescriptor.getRuleBook(GameDescriptor.java:45)
      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:649)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:625)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:603)
      at hudson.model.Build$RunnerImpl.cleanUp(Build.java:170)
      at hudson.model.Run.run(Run.java:1405)
      at hudson.matrix.MatrixRun.run(MatrixRun.java:137)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:145)
      Caused by: java.io.InterruptedIOException
      at java.io.FileInputStream.readBytes(Native Method)
      at java.io.FileInputStream.read(FileInputStream.java:199)
      at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
      at java.io.FilterInputStream.read(FilterInputStream.java:90)
      at java.util.Properties$LineReader.readLine(Properties.java:418)
      at java.util.Properties.load0(Properties.java:337)
      at java.util.Properties.load(Properties.java:325)
      at java.util.PropertyResourceBundle.<init>(PropertyResourceBundle.java:111)
      at org.jvnet.localizer.ResourceBundleHolder$ResourceBundleImpl.<init>(ResourceBundleHolder.java:114)
      at org.jvnet.localizer.ResourceBundleHolder.get(ResourceBundleHolder.java:88)
      ... 15 more

        Attachments

          Activity

          Hide
          redsolo redsolo added a comment -

          I cant seem to reproduce this issue. Was the slave restarted when you upgraded the Jenkins master?

          I tried to do the following (unfortunately I dont have a windows machine)

          • Started jenkins 405
          • Created a JNLP slave that was started on the same machine
          • Created a job with the CI game that builds on the slave
          • Ran the job a few times.
          • Upgraded jenkins to 408 without restarting the slave
          • Ran the job a few more times, and I did not see the exception

          Is there anything Im missing? Are you still seeing this issue?

          Show
          redsolo redsolo added a comment - I cant seem to reproduce this issue. Was the slave restarted when you upgraded the Jenkins master? I tried to do the following (unfortunately I dont have a windows machine) Started jenkins 405 Created a JNLP slave that was started on the same machine Created a job with the CI game that builds on the slave Ran the job a few times. Upgraded jenkins to 408 without restarting the slave Ran the job a few more times, and I did not see the exception Is there anything Im missing? Are you still seeing this issue?
          Hide
          dankirkd Daniel Kirkdorffer added a comment -

          Well, you're missing a Windows machine, and that might matter, but your repro steps seem valid to me.

          I believe that in the first case we only updated the master. In the second case we updated both master and slave.

          Due to this issue and JENKINS-9338 we have stopped using the plugin because it ends up failing an otherwise perfectly successful job, so we're not able to chime in on the problem further I'm afraid.

          Show
          dankirkd Daniel Kirkdorffer added a comment - Well, you're missing a Windows machine, and that might matter, but your repro steps seem valid to me. I believe that in the first case we only updated the master. In the second case we updated both master and slave. Due to this issue and JENKINS-9338 we have stopped using the plugin because it ends up failing an otherwise perfectly successful job, so we're not able to chime in on the problem further I'm afraid.

            People

            • Assignee:
              redsolo redsolo
              Reporter:
              dankirkd Daniel Kirkdorffer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: