java.lang.NullPointerException

Jenkins JIRA | Mike Bott | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I am generating html reports using Selenium, Python, and HTMLTestRunner. Sample test script is in the attached tarball. The test runs, and generates valid html (also in attached tarball, sel_test.py) that I can load in browser. My jenkins workspace on the slave is c:\jenkins\workspace, and the tarball is of the directory C:\jenkins\workspace\Test_nfweb. I see the following in the jenkins log on the master: 17:05:56.652 INFO - Command request: getNewBrowserSession[*iexplore, http://www.warmfuzzyland.com/, ] on session null 17:05:56.652 INFO - creating new remote session 17:05:56.653 INFO - Got result: Failed to start new browser session: java.lang.RuntimeException: SystemRoot apparently not set! on session null 17:05:56.672 INFO - Command request: getNewBrowserSession[*iexplore, http://www.warmfuzzyland.com/, ] on session null 17:05:56.672 INFO - creating new remote session 17:05:56.711 INFO - Got result: Failed to start new browser session: java.lang.RuntimeException: SystemRoot apparently not set! on session null Nov 29, 2011 5:05:56 PM hudson.model.Run run INFO: Test_nfweb #29 main build action completed: FAILURE Nov 29, 2011 5:05:56 PM hudson.model.AbstractBuild$AbstractRunner performAllBuildSteps WARNING: Publisher org.jvnet.hudson.plugins.seleniumhtmlreport.SeleniumHtmlReportPublisher aborted due to exception java.lang.NullPointerException at org.jvnet.hudson.plugins.seleniumhtmlreport.SeleniumHtmlReportPublisher.perform(SeleniumHtmlReportPublisher.java:79) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614) at hudson.model.Run.run(Run.java:1429) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Where else can I look?

    Jenkins JIRA | 5 years ago | Mike Bott
    java.lang.NullPointerException
  2. 0

    I am generating html reports using Selenium, Python, and HTMLTestRunner. Sample test script is in the attached tarball. The test runs, and generates valid html (also in attached tarball, sel_test.py) that I can load in browser. My jenkins workspace on the slave is c:\jenkins\workspace, and the tarball is of the directory C:\jenkins\workspace\Test_nfweb. I see the following in the jenkins log on the master: 17:05:56.652 INFO - Command request: getNewBrowserSession[*iexplore, http://www.warmfuzzyland.com/, ] on session null 17:05:56.652 INFO - creating new remote session 17:05:56.653 INFO - Got result: Failed to start new browser session: java.lang.RuntimeException: SystemRoot apparently not set! on session null 17:05:56.672 INFO - Command request: getNewBrowserSession[*iexplore, http://www.warmfuzzyland.com/, ] on session null 17:05:56.672 INFO - creating new remote session 17:05:56.711 INFO - Got result: Failed to start new browser session: java.lang.RuntimeException: SystemRoot apparently not set! on session null Nov 29, 2011 5:05:56 PM hudson.model.Run run INFO: Test_nfweb #29 main build action completed: FAILURE Nov 29, 2011 5:05:56 PM hudson.model.AbstractBuild$AbstractRunner performAllBuildSteps WARNING: Publisher org.jvnet.hudson.plugins.seleniumhtmlreport.SeleniumHtmlReportPublisher aborted due to exception java.lang.NullPointerException at org.jvnet.hudson.plugins.seleniumhtmlreport.SeleniumHtmlReportPublisher.perform(SeleniumHtmlReportPublisher.java:79) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614) at hudson.model.Run.run(Run.java:1429) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Where else can I look?

    Jenkins JIRA | 5 years ago | Mike Bott
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.jvnet.hudson.plugins.seleniumhtmlreport.SeleniumHtmlReportPublisher.perform()
    2. org.jvnet.hudson
      SeleniumHtmlReportPublisher.perform
      1. org.jvnet.hudson.plugins.seleniumhtmlreport.SeleniumHtmlReportPublisher.perform(SeleniumHtmlReportPublisher.java:79)
      1 frame
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667)
      4. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645)
      5. hudson.model.Build$RunnerImpl.post2(Build.java:162)
      6. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614)
      7. hudson.model.Run.run(Run.java:1429)
      8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      9. hudson.model.ResourceController.execute(ResourceController.java:88)
      10. hudson.model.Executor.run(Executor.java:238)
      10 frames