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

Fitnesse pluging throws NullPointerException

    Details

    • Similar Issues:

      Description

      When I add the Fitnesse plugin to my build I get a NullPointerException. I'm probably doing somethings wrong, but what?

      hudson.plugins.fitnesse.FitnesseBuilder: {fitnessePortLocal=8282, fitnesseJdk=Java6, fitnesseTargetPage=LegalAndGeneralIntegrationTests, fitnesseTargetIsSuite=true, fitnessePathToJar=fitnesse-standalone.jar, additionalFitnesseOptions=, fitnesseJavaOpts=, fitnesseHttpTimeout=60000, fitnesseJavaWorkingDirectory=wiki, fitnessePathToRoot=FitNesseRoot, fitnesseStart=True, fitnessePathToXmlResultsOut=fitnesse-results.xml}
      java.lang.NullPointerException
      	at hudson.plugins.fitnesse.FitnesseBuilder.getFitnesseHost(FitnesseBuilder.java:94)
      	at hudson.plugins.fitnesse.FitnesseExecutor.getFitnesseBuildAction(FitnesseExecutor.java:70)
      	at hudson.plugins.fitnesse.FitnesseExecutor.execute(FitnesseExecutor.java:46)
      	at hudson.plugins.fitnesse.FitnesseBuilder.perform(FitnesseBuilder.java:210)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:814)
      	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:593)
      	at hudson.model.Run.execute(Run.java:1567)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:237)
      Build step 'Execute fitnesse tests' marked build as failure
      Finished: FAILURE
      
      

        Attachments

          Activity

          Hide
          lessonz Ricardo Torres added a comment -

          I have sent a pull request I believe addresses this issue after having encountered the same exception on Windows Server 2012 and CentOS 6.3: https://github.com/jenkinsci/fitnesse-plugin/pull/5

          Show
          lessonz Ricardo Torres added a comment - I have sent a pull request I believe addresses this issue after having encountered the same exception on Windows Server 2012 and CentOS 6.3: https://github.com/jenkinsci/fitnesse-plugin/pull/5
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: lessonz
          Path:
          src/main/java/hudson/plugins/fitnesse/FitnesseBuilder.java
          http://jenkins-ci.org/commit/fitnesse-plugin/1786f586a5262704a092179c57cd754601c5a624
          Log:
          JENKINS-17318 Addressed NullPointerException generated in FitnesseBuilder when the EnvironmentVariablesNodeProperty was null.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: lessonz Path: src/main/java/hudson/plugins/fitnesse/FitnesseBuilder.java http://jenkins-ci.org/commit/fitnesse-plugin/1786f586a5262704a092179c57cd754601c5a624 Log: JENKINS-17318 Addressed NullPointerException generated in FitnesseBuilder when the EnvironmentVariablesNodeProperty was null.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: lessonz
          Path:
          src/main/java/hudson/plugins/fitnesse/FitnesseExecutor.java
          http://jenkins-ci.org/commit/fitnesse-plugin/e63aa873412bda6b2caa29d044cf81cf337a70cb
          Log:
          JENKINS-17318 Upon resolving NullPointerException, the java path generated was malformed.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: lessonz Path: src/main/java/hudson/plugins/fitnesse/FitnesseExecutor.java http://jenkins-ci.org/commit/fitnesse-plugin/e63aa873412bda6b2caa29d044cf81cf337a70cb Log: JENKINS-17318 Upon resolving NullPointerException, the java path generated was malformed.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: lessonz
          Path:
          pom.xml
          src/test/java/hudson/plugins/fitnesse/FitnesseBuilderTest.java
          http://jenkins-ci.org/commit/fitnesse-plugin/83b3cb71b9552a380e9bb352b46b0293ef2f6955
          Log:
          JENKINS-17318 Added unit test to prevent regression.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: lessonz Path: pom.xml src/test/java/hudson/plugins/fitnesse/FitnesseBuilderTest.java http://jenkins-ci.org/commit/fitnesse-plugin/83b3cb71b9552a380e9bb352b46b0293ef2f6955 Log: JENKINS-17318 Added unit test to prevent regression.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: lessonz
          Path:
          .classpath
          .gitignore
          pom.xml
          src/main/java/hudson/plugins/fitnesse/FitnesseBuilder.java
          src/main/java/hudson/plugins/fitnesse/FitnesseExecutor.java
          src/test/java/hudson/plugins/fitnesse/FitnesseBuilderTest.java
          src/test/java/hudson/plugins/fitnesse/FitnesseResultsTest.java
          http://jenkins-ci.org/commit/fitnesse-plugin/eec2894f6986638da43933a7bd2f846fddfa8101
          Log:
          Merge pull request #5 from lessonz/master

          JENKINS-17318 resolved

          Compare: https://github.com/jenkinsci/fitnesse-plugin/compare/dbce1c7ced47...eec2894f6986

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: lessonz Path: .classpath .gitignore pom.xml src/main/java/hudson/plugins/fitnesse/FitnesseBuilder.java src/main/java/hudson/plugins/fitnesse/FitnesseExecutor.java src/test/java/hudson/plugins/fitnesse/FitnesseBuilderTest.java src/test/java/hudson/plugins/fitnesse/FitnesseResultsTest.java http://jenkins-ci.org/commit/fitnesse-plugin/eec2894f6986638da43933a7bd2f846fddfa8101 Log: Merge pull request #5 from lessonz/master JENKINS-17318 resolved Compare: https://github.com/jenkinsci/fitnesse-plugin/compare/dbce1c7ced47...eec2894f6986
          Hide
          lessonz Ricardo Torres added a comment -

          This appears to have been resolved. I have tested on Jenkins instances running on both Windows Server 2012 and CentOS 6.3.

          Show
          lessonz Ricardo Torres added a comment - This appears to have been resolved. I have tested on Jenkins instances running on both Windows Server 2012 and CentOS 6.3.

            People

            • Assignee:
              lessonz Ricardo Torres
              Reporter:
              fhoeben Fried Hoeben
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: