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

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Labels:
    • Environment:
      Jenkins 2.138
      HPE Application Automation Tools 5.4
      Jenkins Slave (Windows server 2012 R2, HP ALM 12.53 Patch 2, HP UFT 14.03 Patch 1, Java 1.8.0_181)
    • Similar Issues:

      Description

      Below is a snippet from the console log of the job:

       

      29/11/2017 12:42:05 Running: [3]Driver
      29/11/2017 12:42:05 Running test: [3]Driver, Test id: 1495, Test instance id: 2779
      Test: [3]Driver, Id: 2779, Execution status: Running
      Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
      at HpToolsLauncher.AlmTestSetsRunner.UpdateTestStatus(TestSuiteRunResults runResults, ITestSet targetTestSet, TestExecStatus testExecStatusObj, Boolean onlyUpdateState)
      at HpToolsLauncher.AlmTestSetsRunner.RunTestSet(String tsFolderName, String tsName, Double timeout, QcRunMode runMode, String runHost)
      at HpToolsLauncher.AlmTestSetsRunner.Run()
      at HpToolsLauncher.Launcher.RunTests(IAssetRunner runner, String resultsFile)
      at HpToolsLauncher.Launcher.Run()
      at HpToolsLauncher.Program.Main(String[] args)
       

      This happens when executing a Test Set of automated Test Scripts (using UFT on Jenkins Slave).  It runs through the first two test cases perfectly fine but always fails at the same spot at the beginning of Test Case 3 ([3] Driver).  **Update - It does not always happen at the same spot/place but it does happen in close proximity**.

      Note:  The automation will continue to run on the Jenkins Slave machine and it will update the results back to ALM, however, the Jenkins job/build itself becomes stuck and it never finishes until I manually abort it even though the Test Cases have long been finished.

      Screenshots of the Windows Event log Errors are attached 

      Also see the attached Crash details/log

       

      Similar to bug: JENKINS-30328

        Attachments

        1. App Crash Details.txt
          8 kB
        2. Capture.PNG
          Capture.PNG
          46 kB
        3. Capture.PNG
          Capture.PNG
          30 kB
        4. Capture1.PNG
          Capture1.PNG
          32 kB

          Activity

          Hide
          gront Daniel Gront added a comment -

          Upgrade to the latest version of the plugin, if the issue still occurs, please reopen the issue.

          Show
          gront Daniel Gront added a comment - Upgrade to the latest version of the plugin, if the issue still occurs, please reopen the issue.
          Hide
          dluminello Dominic Luminello added a comment -

          Still the exact same issue.

          I have upgraded UFT to 14.03 patch 1 and I have also updated to the latest version of the plugin.

          See below from Jenkins job console log:

           

          Link: tds://TSD_BI.MAIN.hpalm.gsa.gov:8443/qcbin/TestLabModule-000000003649890581?EntityType=IRun&EntityID=17278
          29/08/2018 07:01:31 Test complete: [2]Driver, Run ID: 17278
          -------------------------------------------------------------------------------------------------------
          29/08/2018 07:01:31 Running: [3]Driver
          29/08/2018 07:01:31 Running test: [3]Driver, Test id: 1495, Test instance id: 3015
          Test: [3]Driver, Id: 3015, Execution status: Running

          Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
          at HpToolsLauncher.AlmTestSetsRunner.UpdateTestStatus(TestSuiteRunResults runResults, ITestSet targetTestSet, TestExecStatus testExecStatusObj, Boolean onlyUpdateState)
          at HpToolsLauncher.AlmTestSetsRunner.RunTestSet(String tsFolderName, String tsName, Double timeout, QcRunMode runMode, String runHost)
          at HpToolsLauncher.AlmTestSetsRunner.Run()
          at HpToolsLauncher.Launcher.RunTests(IAssetRunner runner, String resultsFile)
          at HpToolsLauncher.Launcher.Run()
          at HpToolsLauncher.Program.Main(String[] args)

          Show
          dluminello Dominic Luminello added a comment - Still the exact same issue. I have upgraded UFT to 14.03 patch 1 and I have also updated to the latest version of the plugin. See below from Jenkins job console log:   Link: tds://TSD_BI.MAIN.hpalm.gsa.gov:8443/qcbin/TestLabModule-000000003649890581?EntityType=IRun&EntityID=17278 29/08/2018 07:01:31 Test complete: [2] Driver, Run ID: 17278 ------------------------------------------------------------------------------------------------------- 29/08/2018 07:01:31 Running: [3] Driver 29/08/2018 07:01:31 Running test: [3] Driver, Test id: 1495, Test instance id: 3015 Test: [3] Driver, Id: 3015, Execution status: Running Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at HpToolsLauncher.AlmTestSetsRunner.UpdateTestStatus(TestSuiteRunResults runResults, ITestSet targetTestSet, TestExecStatus testExecStatusObj, Boolean onlyUpdateState) at HpToolsLauncher.AlmTestSetsRunner.RunTestSet(String tsFolderName, String tsName, Double timeout, QcRunMode runMode, String runHost) at HpToolsLauncher.AlmTestSetsRunner.Run() at HpToolsLauncher.Launcher.RunTests(IAssetRunner runner, String resultsFile) at HpToolsLauncher.Launcher.Run() at HpToolsLauncher.Program.Main(String[] args)
          Hide
          gront Daniel Gront added a comment -

          Anda Sorina Laakso, Please take a look at this

          Show
          gront Daniel Gront added a comment - Anda Sorina Laakso , Please take a look at this
          Hide
          aslaakso Anda Sorina Laakso added a comment -

          Please update to latest version of the plugin, 5.9.

          Show
          aslaakso Anda Sorina Laakso added a comment - Please update to latest version of the plugin, 5.9.

            People

            • Assignee:
              aslaakso Anda Sorina Laakso
              Reporter:
              dluminello Dominic Luminello
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: