java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Running FitNesse tests results in a build failure with the following stack-trace: Starting new Fitnesse instance... java.lang.NullPointerException at hudson.Launcher.printCommandLine(Launcher.java:634) at hudson.Launcher.maskedPrintCommandLine(Launcher.java:656) at hudson.Launcher$LocalLauncher.launch(Launcher.java:792) at hudson.Launcher$ProcStarter.start(Launcher.java:380) at hudson.plugins.fitnesse.FitnesseExecutor.startFitnesse(FitnesseExecutor.java:81) at hudson.plugins.fitnesse.FitnesseExecutor.execute(FitnesseExecutor.java:48) at hudson.plugins.fitnesse.FitnesseBuilder.perform(FitnesseBuilder.java:270) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533) at hudson.model.Run.execute(Run.java:1745) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Configuration is: <hudson.plugins.fitnesse.FitnesseBuilder plugin="fitnesse@1.9"> <options> <entry> <string>fitnesseJavaOpts</string> <string></string> </entry> <entry> <string>fitnesseHttpTimeout</string> <string>600000</string> </entry> <entry> <string>fitnessePathToRoot</string> <string>root</string> </entry> <entry> <string>fitnesseStart</string> <string>True</string> </entry> <entry> <string>fitnesseJdk</string> <string>Oracle JDK 7</string> </entry> <entry> <string>fitnessePortLocal</string> <string>7999</string> </entry> <entry> <string>fitnesseTargetPage</string> <string>TestSuite</string> </entry> <entry> <string>fitnessePathToJar</string> <string>fitnesse-standalone.jar</string> </entry> <entry> <string>fitnesseTargetIsSuite</string> <string>true</string> </entry> <entry> <string>fitnesseTestTimeout</string> <string>600000</string> </entry> <entry> <string>additionalFitnesseOptions</string> <string></string> </entry> <entry> <string>fitnesseJavaWorkingDirectory</string> <string></string> </entry> <entry> <string>fitnessePathToXmlResultsOut</string> <string>fitnesse.xml</string> </entry> </options> </hudson.plugins.fitnesse.FitnesseBuilder>
    via by Bradford Hovinen,
  • Running FitNesse tests results in a build failure with the following stack-trace: Starting new Fitnesse instance... java.lang.NullPointerException at hudson.Launcher.printCommandLine(Launcher.java:634) at hudson.Launcher.maskedPrintCommandLine(Launcher.java:656) at hudson.Launcher$LocalLauncher.launch(Launcher.java:792) at hudson.Launcher$ProcStarter.start(Launcher.java:380) at hudson.plugins.fitnesse.FitnesseExecutor.startFitnesse(FitnesseExecutor.java:81) at hudson.plugins.fitnesse.FitnesseExecutor.execute(FitnesseExecutor.java:48) at hudson.plugins.fitnesse.FitnesseBuilder.perform(FitnesseBuilder.java:270) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533) at hudson.model.Run.execute(Run.java:1745) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Configuration is: <hudson.plugins.fitnesse.FitnesseBuilder plugin="fitnesse@1.9"> <options> <entry> <string>fitnesseJavaOpts</string> <string></string> </entry> <entry> <string>fitnesseHttpTimeout</string> <string>600000</string> </entry> <entry> <string>fitnessePathToRoot</string> <string>root</string> </entry> <entry> <string>fitnesseStart</string> <string>True</string> </entry> <entry> <string>fitnesseJdk</string> <string>Oracle JDK 7</string> </entry> <entry> <string>fitnessePortLocal</string> <string>7999</string> </entry> <entry> <string>fitnesseTargetPage</string> <string>TestSuite</string> </entry> <entry> <string>fitnessePathToJar</string> <string>fitnesse-standalone.jar</string> </entry> <entry> <string>fitnesseTargetIsSuite</string> <string>true</string> </entry> <entry> <string>fitnesseTestTimeout</string> <string>600000</string> </entry> <entry> <string>additionalFitnesseOptions</string> <string></string> </entry> <entry> <string>fitnesseJavaWorkingDirectory</string> <string></string> </entry> <entry> <string>fitnessePathToXmlResultsOut</string> <string>fitnesse.xml</string> </entry> </options> </hudson.plugins.fitnesse.FitnesseBuilder>
    via by Bradford Hovinen,
  • When I try to build a build and get it to fetch from github I get this error Started by user Iain Building in workspace /var/lib/jenkins/workspace/BitzCommands Checkout:BitzCommands / /var/lib/jenkins/workspace/BitzCommands - hudson.remoting.LocalChannel@55f9bcfa Using strategy: Default Cloning the remote Git repository Cloning repository origin Error trying to determine the git version: Error performing command: --version Assuming 1.6 ERROR: Error cloning remote repo 'origin' : Could not clone git@github.com:PvM_Iain/BitzCommands.git hudson.plugins.git.GitException: Could not clone git@github.com:PvM_Iain/BitzCommands.git at hudson.plugins.git.GitAPI.clone(GitAPI.java:268) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1122) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1064) at hudson.FilePath.act(FilePath.java:842) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1064) at hudson.model.AbstractProject.checkout(AbstractProject.java:1256) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494) at hudson.model.Run.execute(Run.java:1502) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.plugins.git.GitException: Error performing command: clone -o origin git@github.com:PvM_Iain/BitzCommands.git /var/lib/jenkins/workspace/BitzCommands at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:862) at hudson.plugins.git.GitAPI.access$000(GitAPI.java:40) at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:264) at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:244) at hudson.FilePath.act(FilePath.java:842) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.git.GitAPI.clone(GitAPI.java:244) ... 13 more Caused by: java.lang.NullPointerException at hudson.Launcher.printCommandLine(Launcher.java:592) at hudson.Launcher.maskedPrintCommandLine(Launcher.java:614) at hudson.Launcher$LocalLauncher.launch(Launcher.java:700) at hudson.Launcher$ProcStarter.start(Launcher.java:338) at hudson.Launcher$ProcStarter.join(Launcher.java:345) at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:843) ... 19 more Trying next repository ERROR: Could not clone repository FATAL: Could not clone hudson.plugins.git.GitException: Could not clone at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1134) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1064) at hudson.FilePath.act(FilePath.java:842) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1064) at hudson.model.AbstractProject.checkout(AbstractProject.java:1256) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494) at hudson.model.Run.execute(Run.java:1502) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) I'm new to Jenkins and don't know to set it up properly.
    via by Iain Banks,
  • Suddenly, the git plugin stopped to work. It issues the following error message: {{Error trying to determine the git version: Error performing command: --version}} Full stack trace: {code:none} ERROR: Error cloning remote repo 'origin' : Could not clone ssh://<URL> hudson.plugins.git.GitException: Could not clone ssh://<URL> at hudson.plugins.git.GitAPI.clone(GitAPI.java:273) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142) at hudson.model.AbstractProject.checkout(AbstractProject.java:1331) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:682) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:587) at hudson.model.Run.execute(Run.java:1557) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.plugins.git.GitException: Error performing command: clone -o origin ssh://<URL> /var/lib/jenkins/jobs/<project>/workspace at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:904) at hudson.plugins.git.GitAPI.access$000(GitAPI.java:42) at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:269) at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:248) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitAPI.clone(GitAPI.java:248) ... 14 more Caused by: java.lang.NullPointerException at hudson.Launcher.printCommandLine(Launcher.java:607) at hudson.Launcher.maskedPrintCommandLine(Launcher.java:629) at hudson.Launcher$LocalLauncher.launch(Launcher.java:754) at hudson.Launcher$ProcStarter.start(Launcher.java:353) at hudson.Launcher$ProcStarter.join(Launcher.java:360) at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:885) ... 20 more Trying next repository ERROR: Could not clone repository FATAL: Could not clone hudson.plugins.git.GitException: Could not clone at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1056) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142) at hudson.model.AbstractProject.checkout(AbstractProject.java:1331) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:682) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:587) at hudson.model.Run.execute(Run.java:1557) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {code} As system user jenkins (which runs Jenkins) I am perfectly able to run that command: {code:none} $ git --version git version 1.7.9.5 {code} Cloning worked before, but all of a sudden the above error occurs. I tried both to specify the full path to the git executable ({{/usr/bin/git}}) and to specify the name of the executable only (without path: {{git}}). However, without success.
    via by Martin Burger,
  • When I try to build a build and get it to fetch from github I get this error Started by user Iain Building in workspace /var/lib/jenkins/workspace/BitzCommands Checkout:BitzCommands / /var/lib/jenkins/workspace/BitzCommands - hudson.remoting.LocalChannel@55f9bcfa Using strategy: Default Cloning the remote Git repository Cloning repository origin Error trying to determine the git version: Error performing command: --version Assuming 1.6 ERROR: Error cloning remote repo 'origin' : Could not clone git@github.com:PvM_Iain/BitzCommands.git hudson.plugins.git.GitException: Could not clone git@github.com:PvM_Iain/BitzCommands.git at hudson.plugins.git.GitAPI.clone(GitAPI.java:268) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1122) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1064) at hudson.FilePath.act(FilePath.java:842) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1064) at hudson.model.AbstractProject.checkout(AbstractProject.java:1256) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494) at hudson.model.Run.execute(Run.java:1502) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.plugins.git.GitException: Error performing command: clone -o origin git@github.com:PvM_Iain/BitzCommands.git /var/lib/jenkins/workspace/BitzCommands at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:862) at hudson.plugins.git.GitAPI.access$000(GitAPI.java:40) at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:264) at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:244) at hudson.FilePath.act(FilePath.java:842) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.git.GitAPI.clone(GitAPI.java:244) ... 13 more Caused by: java.lang.NullPointerException at hudson.Launcher.printCommandLine(Launcher.java:592) at hudson.Launcher.maskedPrintCommandLine(Launcher.java:614) at hudson.Launcher$LocalLauncher.launch(Launcher.java:700) at hudson.Launcher$ProcStarter.start(Launcher.java:338) at hudson.Launcher$ProcStarter.join(Launcher.java:345) at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:843) ... 19 more Trying next repository ERROR: Could not clone repository FATAL: Could not clone hudson.plugins.git.GitException: Could not clone at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1134) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1064) at hudson.FilePath.act(FilePath.java:842) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1064) at hudson.model.AbstractProject.checkout(AbstractProject.java:1256) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494) at hudson.model.Run.execute(Run.java:1502) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) I'm new to Jenkins and don't know to set it up properly.
    via by Iain Banks,
  • Suddenly, the git plugin stopped to work. It issues the following error message: {{Error trying to determine the git version: Error performing command: --version}} Full stack trace: {code:none} ERROR: Error cloning remote repo 'origin' : Could not clone ssh://<URL> hudson.plugins.git.GitException: Could not clone ssh://<URL> at hudson.plugins.git.GitAPI.clone(GitAPI.java:273) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142) at hudson.model.AbstractProject.checkout(AbstractProject.java:1331) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:682) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:587) at hudson.model.Run.execute(Run.java:1557) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.plugins.git.GitException: Error performing command: clone -o origin ssh://<URL> /var/lib/jenkins/jobs/<project>/workspace at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:904) at hudson.plugins.git.GitAPI.access$000(GitAPI.java:42) at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:269) at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:248) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitAPI.clone(GitAPI.java:248) ... 14 more Caused by: java.lang.NullPointerException at hudson.Launcher.printCommandLine(Launcher.java:607) at hudson.Launcher.maskedPrintCommandLine(Launcher.java:629) at hudson.Launcher$LocalLauncher.launch(Launcher.java:754) at hudson.Launcher$ProcStarter.start(Launcher.java:353) at hudson.Launcher$ProcStarter.join(Launcher.java:360) at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:885) ... 20 more Trying next repository ERROR: Could not clone repository FATAL: Could not clone hudson.plugins.git.GitException: Could not clone at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1056) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142) at hudson.model.AbstractProject.checkout(AbstractProject.java:1331) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:682) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:587) at hudson.model.Run.execute(Run.java:1557) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {code} As system user jenkins (which runs Jenkins) I am perfectly able to run that command: {code:none} $ git --version git version 1.7.9.5 {code} Cloning worked before, but all of a sudden the above error occurs. I tried both to specify the full path to the git executable ({{/usr/bin/git}}) and to specify the name of the executable only (without path: {{git}}). However, without success.
    via by Martin Burger,
    • java.lang.NullPointerException at hudson.Launcher.printCommandLine(Launcher.java:634) at hudson.Launcher.maskedPrintCommandLine(Launcher.java:656) at hudson.Launcher$LocalLauncher.launch(Launcher.java:792) at hudson.Launcher$ProcStarter.start(Launcher.java:380) at hudson.plugins.fitnesse.FitnesseExecutor.startFitnesse(FitnesseExecutor.java:81) at hudson.plugins.fitnesse.FitnesseExecutor.execute(FitnesseExecutor.java:48) at hudson.plugins.fitnesse.FitnesseBuilder.perform(FitnesseBuilder.java:270) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533) at hudson.model.Run.execute(Run.java:1745) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)
    No Bugmate found.