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

Groovy NPE happens immediately

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • groovy-plugin
    • None
    • Platform: PC, OS: Windows XP

      I have a step in my build that runs a simple Groovy script file. But I get the
      following exception immediately. I’m running Hudson 1.277 on Windows XP and
      using groovy 1.5.7 and the libraries that come with the distribution. Groovy is
      in my system path. I am not specifying any groovy or script parameters on the
      Hudson config page (should I?).

      This also happens when I try a simple Groovy command (println "Hello from
      Groovy!").

      FATAL: null
      java.lang.NullPointerException
      at hudson.Launcher.printCommandLine(Launcher.java:259)
      at hudson.Launcher$LocalLauncher.launch(Launcher.java:305)
      at hudson.Launcher.launch(Launcher.java:144)
      at hudson.Launcher.launch(Launcher.java:96)
      at hudson.plugins.groovy.Groovy.perform(Groovy.java:101)
      at hudson.model.Build$RunnerImpl.build(Build.java:144)
      at hudson.model.Build$RunnerImpl.doRun(Build.java:113)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:244)
      at hudson.model.Run.run(Run.java:842)
      at hudson.model.Build.run(Build.java:88)
      at hudson.model.ResourceController.execute(ResourceController.java:70)
      at hudson.model.Executor.run(Executor.java:90)

            dvrzalik dvrzalik
            dngan dngan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: