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

NullPointerException when trying to publish valid HTML reports generated by HTMLTestRunner 0.8.2/Selenium

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • None
    • Jenkins is running on an Ubuntu 10.04 64bit VM, version 1.441
      Windows Server 2003 is the Selenium test slave
      Selenium HTML Reports 0.94 is installed, as is the latest selenium grid plugin

      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?

            m211 m211
            mbott Mike Bott
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: