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

Ivy-Projects ends up with a NPE on build after update Jenkins and Ivy-Plugin

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: ivy-plugin
    • Labels:
      None
    • Environment:
      Ubuntu LTS 12.04
    • Similar Issues:

      Description

      After upgrade to:

      Jenkins 1.523
      Ivy-Plugin 1.23.1

      All Ivy-Projects will not build anymore and ends up with a NPE. Checkout from SVN is fine so far:

      Building in workspace /var/lib/jenkins/jobs/graphicsUtility/workspace
      Cleaning local Directory .
      Checking out svn+ssh://ziv@uz-labor/var/svn/java-libs/graphicsUtility/trunk at revision '2013-07-19T15:06:03.638 +0200'
      [...]
      U .
      At revision 752
      no change for svn+ssh://ziv@uz-labor/var/svn/java-libs/graphicsUtility/trunk since the previous build
      ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net
      java.lang.NullPointerException
      at hudson.FilePath.isAbsolute(FilePath.java:239)
      at hudson.FilePath.resolvePathIfRelative(FilePath.java:224)
      at hudson.FilePath.<init>(FilePath.java:220)
      at hudson.FilePath.child(FilePath.java:1133)
      at hudson.ivy.IvyModuleSetBuild$RunnerImpl.doRun(IvyModuleSetBuild.java:372)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
      at hudson.model.Run.execute(Run.java:1593)
      at hudson.model.Run.run(Run.java:1539)
      at hudson.ivy.IvyModuleSetBuild.run(IvyModuleSetBuild.java:281)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:247)
      project=hudson.ivy.IvyModuleSet@17feafba[graphicsUtility]
      project.getModules()=[hudson.ivy.IvyModule@72a32604[graphicsUtility/de.unicomp:graphicsUtility]]
      FATAL: null
      java.lang.NullPointerException
      at hudson.FilePath.isAbsolute(FilePath.java:239)
      at hudson.FilePath.resolvePathIfRelative(FilePath.java:224)
      at hudson.FilePath.<init>(FilePath.java:220)
      at hudson.FilePath.child(FilePath.java:1133)
      at hudson.ivy.IvyModuleSetBuild$RunnerImpl.doRun(IvyModuleSetBuild.java:372)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
      at hudson.model.Run.execute(Run.java:1593)
      at hudson.model.Run.run(Run.java:1539)
      at hudson.ivy.IvyModuleSetBuild.run(IvyModuleSetBuild.java:281)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:247)

        Attachments

          Activity

          Hide
          jmartin Jerome Martin added a comment -

          I have configure the "ivy settings file" with

          • an absolute file /tmp/empty.txt (existing or not): it works but I have a message on Jenkins : Ivy settings file must be a relative path.
          • a local, non existing file empty.txt: it works but I have the message : No such file: 'empty.txt'
          Show
          jmartin Jerome Martin added a comment - I have configure the "ivy settings file" with an absolute file /tmp/empty.txt (existing or not): it works but I have a message on Jenkins : Ivy settings file must be a relative path. a local, non existing file empty.txt: it works but I have the message : No such file: 'empty.txt'
          Hide
          ronald_mueller Ronald Müller added a comment -

          Hi,

          i can confirm, that projects will be build, if you put "something" to "Ivy settings" text-field in the project-configuration-panel. As already stated here: there will be a form-validation error "Ivy settings file must be a relative path." or something else, but the project builds successfully afterwards. So this could be a workaround for very urgent projects.

          In my scenario this text-field is always left blank, as the ivy-settings-file is configured in ant-buildscript itself via <ivy:settings url="http://jenkins/ivy/settings.xml" />

          So IMHO it is definitly a bug.

          Show
          ronald_mueller Ronald Müller added a comment - Hi, i can confirm, that projects will be build, if you put "something" to "Ivy settings" text-field in the project-configuration-panel. As already stated here: there will be a form-validation error "Ivy settings file must be a relative path." or something else, but the project builds successfully afterwards. So this could be a workaround for very urgent projects. In my scenario this text-field is always left blank, as the ivy-settings-file is configured in ant-buildscript itself via <ivy:settings url="http://jenkins/ivy/settings.xml" /> So IMHO it is definitly a bug.
          Hide
          johno Johno Crawford added a comment - - edited

          @Jerome @Ronald please try 1.23.2 and let me know if the above mentioned issues are now resolved.

          Show
          johno Johno Crawford added a comment - - edited @Jerome @Ronald please try 1.23.2 and let me know if the above mentioned issues are now resolved.
          Hide
          jmartin Jerome Martin added a comment -

          This version works as expected for me.
          Thx

          Show
          jmartin Jerome Martin added a comment - This version works as expected for me. Thx
          Hide
          ronald_mueller Ronald Müller added a comment -

          Great work. This version seems to fix this issue. Johno +1

          Show
          ronald_mueller Ronald Müller added a comment - Great work. This version seems to fix this issue. Johno +1

            People

            • Assignee:
              ndeloof Nicolas De Loof
              Reporter:
              ronald_mueller Ronald Müller
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: