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

Getting a NullPointerException if sbt-launch.jar is not executable

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • sbt-plugin
    • None
    • CentOS 6.5
      sbt 0.13.2 (installed as RPM)
      Jenkins 1.560
      sbt plugin 1.4

    Description

      See the stacktrace below if sbt-launch.jar is not executable. I upgraded to SBT 0.13.2 installing it RPM and it so happens that the jar is only "a+r".
      Once I did a "chmod a+x sbt-launch.jar" the NPE did not happen anymore.

      java.lang.NullPointerException
      at org.jvnet.hudson.plugins.SbtPluginBuilder.buildCmdLine(SbtPluginBuilder.java:159)
      at org.jvnet.hudson.plugins.SbtPluginBuilder.perform(SbtPluginBuilder.java:111)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:740)
      at hudson.model.Build$BuildExecution.build(Build.java:198)
      at hudson.model.Build$BuildExecution.doRun(Build.java:159)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:519)
      at hudson.model.Run.execute(Run.java:1703)
      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

          sgjava Steven Goldsmith added a comment - - edited

          The new location is actually /usr/share/sbt-launcher-packaging/bin for sbt launcher version 0.13.5. chmod a+r /usr/share/sbt-launcher-packaging/bin/sbt-launch.jar is not required since it's already set, but you still get:

          FATAL: null
          java.lang.NullPointerException
          at org.jvnet.hudson.plugins.SbtPluginBuilder.buildCmdLine(SbtPluginBuilder.java:159)
          at org.jvnet.hudson.plugins.SbtPluginBuilder.perform(SbtPluginBuilder.java:111)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:745)
          at hudson.model.Build$BuildExecution.build(Build.java:198)
          at hudson.model.Build$BuildExecution.doRun(Build.java:159)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518)
          at hudson.model.Run.execute(Run.java:1710)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:231)

          sgjava Steven Goldsmith added a comment - - edited The new location is actually /usr/share/sbt-launcher-packaging/bin for sbt launcher version 0.13.5. chmod a+r /usr/share/sbt-launcher-packaging/bin/sbt-launch.jar is not required since it's already set, but you still get: FATAL: null java.lang.NullPointerException at org.jvnet.hudson.plugins.SbtPluginBuilder.buildCmdLine(SbtPluginBuilder.java:159) at org.jvnet.hudson.plugins.SbtPluginBuilder.perform(SbtPluginBuilder.java:111) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:745) at hudson.model.Build$BuildExecution.build(Build.java:198) at hudson.model.Build$BuildExecution.doRun(Build.java:159) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518) at hudson.model.Run.execute(Run.java:1710) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231)

          People

            uzilan uzilan
            hrlequin Richard Tarczaly
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: