java.lang.NullPointerException

Jenkins JIRA | Brianna Laugher | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    GitHub comment 267#147358440

    GitHub | 1 year ago | harshagv12
    java.lang.NullPointerException
  2. 0

    There's no information about how this plugin is supposed to work. From https://github.com/jenkinsci/behave-testresults-publisher-plugin it says to use behave options {{--format=json.pretty --outfile=resultsfilenameofyourchoice.json}} I am doing this, and the output file is being kept as a build artifact and looks vaguely correct. I configured the job and added post-build step *Publish behave results as a report*. But I don't see anywhere how to tell the plugin what the name of my json file is. So unsurprisingly this build step fails. {code} [BehaveReportPublisher] Compiling Behave Html Reports ... ERROR: Build step failed with exception java.lang.NullPointerException at net.jenkins.BehaveReportPublisher.perform(BehaveReportPublisher.java:63) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Build step 'Publish behave results as a report' marked build as failure Finished: FAILURE {code}

    Jenkins JIRA | 1 year ago | Brianna Laugher
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    There's no information about how this plugin is supposed to work. From https://github.com/jenkinsci/behave-testresults-publisher-plugin it says to use behave options {{--format=json.pretty --outfile=resultsfilenameofyourchoice.json}} I am doing this, and the output file is being kept as a build artifact and looks vaguely correct. I configured the job and added post-build step *Publish behave results as a report*. But I don't see anywhere how to tell the plugin what the name of my json file is. So unsurprisingly this build step fails. {code} [BehaveReportPublisher] Compiling Behave Html Reports ... ERROR: Build step failed with exception java.lang.NullPointerException at net.jenkins.BehaveReportPublisher.perform(BehaveReportPublisher.java:63) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Build step 'Publish behave results as a report' marked build as failure Finished: FAILURE {code}

    Jenkins JIRA | 1 year ago | Brianna Laugher
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at net.jenkins.BehaveReportPublisher.perform()
    2. net.jenkins
      BehaveReportPublisher.perform
      1. net.jenkins.BehaveReportPublisher.perform(BehaveReportPublisher.java:63)
      1 frame
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
      4. hudson.model.Build$BuildExecution.post2(Build.java:185)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
      6. hudson.model.Run.execute(Run.java:1766)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:98)
      9. hudson.model.Executor.run(Executor.java:408)
      9 frames