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

ApiSlRuntimeErrors.UnsafeCode error during analysis

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Blocker Blocker

      Receiving the following error when running the plugin. The scenario completes, but the analysis fails. I'm using version 4.5.0 of the plugin.

      starting analysis launcher
      creating analysis COM object
      creating analysis session
      Loader Manager initialization failed.
      at Analysis.ApiSL.ApiSlRuntimeErrors.Throw(Int32 aErrorCode, ApiException aException)
      at Analysis.ApiSL.ApiSlRuntimeErrors.UnsafeCode(UnsafeCodeHandlerBool aHandler, Int32 aLraErrorCode)
      at Analysis.Api.Session.CreateWithTemplateFile(String aSessionName, String aResultFileName, String aTemplateFileName)
      at LRAnalysisLauncher.Program.Main(String[] args)
      time passed: 00::00:00:01
      Error: Error during Analysis run. See output console for details
      analysis report generator finished
      Error(s) summary:
      0 ignored , 0 errors

      This same Jenkins job worked on a different LR controller host (as a Jenkins slave), but is failing on this host. I get the same error when running at the command prompt.

      After the error occurs, the LRA and LRR dirs get created, but the HTML does not. Here are the contents:

          9eb25c\
              LRA\
                  LRA.mdb
              LRR\
                  log\
                      validate_10.log
                  sum_data\
                      graph_0-5.dat
                      sum_dat.ini
          9eb25c\
              LRA\
                  LRA.mdb
              LRR\
                  log\
                      validate_10.log
                  sum_data\
                      graph_0-5.dat
                      sum_dat.ini
                  _t_rep.eve             1 KB
                  api1_script_1.cfg      3 KB  <- "api1_script" is the name
                  api1_script_1.cfg.bak  3 KB     of my LR script.
                  api1_script_1.usp      4 KB
                  collate.txt            1 KB
                  collateLog.txt         1 KB
                  crossvusertrans_error_report.txt  0 KB
                  ei669vwin_1.eve.gzl    4 KB  <- "ei669vwin" is the name 
                  ei669vwin.map          4 KB      of the load generator host.
                  LRR.lrr                1 KB
                  offline.dat            0 KB
                  output.mdb           528 KB
                  read_eve.log           1 KB
                  remote_results.txt     1 KB
                  SLAConfiguration.xml   4 KB
      

        1. SS1.JPG
          SS1.JPG
          190 kB
        2. SS4.JPG
          SS4.JPG
          93 kB
        3. SS2.JPG
          SS2.JPG
          58 kB
        4. SS3.JPG
          SS3.JPG
          18 kB
        5. build.xml
          0.9 kB
        6. changelog.xml
          0.0 kB
        7. config.xml
          2 kB
        8. junitResult.xml
          0.2 kB
        9. log
          3 kB
        10. props23022017071217048.txt
          6 kB
        11. UncheckAllBoxesInResult.JPG
          UncheckAllBoxesInResult.JPG
          27 kB
        12. screenshot-5.png
          screenshot-5.png
          211 kB
        13. screenshot-4.png
          screenshot-4.png
          210 kB
        14. lrr_reports.png
          lrr_reports.png
          67 kB
        15. lrr_templates.png
          lrr_templates.png
          84 kB
        16. screenshot-3.png
          screenshot-3.png
          22 kB
        17. screenshot-2.png
          screenshot-2.png
          14 kB
        18. screenshot-1.png
          screenshot-1.png
          11 kB
        19. jenkins_master_config.zip
          4 kB
        20. System Information [Jenkins].pdf
          91 kB

          [JENKINS-39332] ApiSlRuntimeErrors.UnsafeCode error during analysis

          Ethan Vaughn created issue -
          Ethan Vaughn made changes -
          Description Original: Receiving the following error when running the plugin. The scenario completes, but the analysis fails. I'm using version 4.5.0 of the plugin.

          {quote}

              starting analysis launcher
              creating analysis COM object
              creating analysis session
              Loader Manager initialization failed.
                 at Analysis.ApiSL.ApiSlRuntimeErrors.Throw(Int32 aErrorCode, ApiException aException)
                 at Analysis.ApiSL.ApiSlRuntimeErrors.UnsafeCode(UnsafeCodeHandlerBool aHandler, Int32 aLraErrorCode)
                 at Analysis.Api.Session.CreateWithTemplateFile(String aSessionName, String aResultFileName, String aTemplateFileName)
                 at LRAnalysisLauncher.Program.Main(String[] args)
              time passed: 00::00:00:01
              Error: Error during Analysis run. See output console for details
              analysis report generator finished
              Error(s) summary:
              0 ignored , 0 errors
          {quote}

          This same Jenkins job worked on a different LR controller host (as a Jenkins slave), but is failing on this host. I get the same error when running at the command prompt.

          New: Receiving the following error when running the plugin. The scenario completes, but the analysis fails. I'm using version 4.5.0 of the plugin.

          {quote}

              starting analysis launcher
              creating analysis COM object
              creating analysis session
              Loader Manager initialization failed.
                 at Analysis.ApiSL.ApiSlRuntimeErrors.Throw(Int32 aErrorCode, ApiException aException)
                 at Analysis.ApiSL.ApiSlRuntimeErrors.UnsafeCode(UnsafeCodeHandlerBool aHandler, Int32 aLraErrorCode)
                 at Analysis.Api.Session.CreateWithTemplateFile(String aSessionName, String aResultFileName, String aTemplateFileName)
                 at LRAnalysisLauncher.Program.Main(String[] args)
              time passed: 00::00:00:01
              Error: Error during Analysis run. See output console for details
              analysis report generator finished
              Error(s) summary:
              0 ignored , 0 errors
          {quote}

          This same Jenkins job worked on a different LR controller host (as a Jenkins slave), but is failing on this host. I get the same error when running at the command prompt.

          After the error occurs, the LRA and LRR dirs get created, but the HTML does not. Here are the contents:

          {code:none}
              9eb25c\
                  LRA\
                      LRA.mdb
                  LRR\
                      log\
                          validate_10.log
                      sum_data\
                          graph_0-5.dat
                          sum_dat.ini
              9eb25c\
                  LRA\
                      LRA.mdb
                  LRR\
                      log\
                          validate_10.log
                      sum_data\
                          graph_0-5.dat
                          sum_dat.ini
                      _t_rep.eve 1 KB
                      api1_script_1.cfg 3 KB <- "api1_script" is the name
                      api1_script_1.cfg.bak 3 KB of my LR script.
                      api1_script_1.usp 4 KB
                      collate.txt 1 KB
                      collateLog.txt 1 KB
                      crossvusertrans_error_report.txt 0 KB
                      ei669vwin_1.eve.gzl 4 KB <- "ei669vwin" is the name
                      ei669vwin.map 4 KB of the load generator host.
                      LRR.lrr 1 KB
                      offline.dat 0 KB
                      output.mdb 528 KB
                      read_eve.log 1 KB
                      remote_results.txt 1 KB
                      SLAConfiguration.xml 4 KB
          {code}
          Yafim Kazak made changes -
          Assignee Original: Ofir Shaked [ ofirshaked ] New: Yafim Kazak [ yafim_kazak ]
          Yafim Kazak made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Yafim Kazak made changes -
          Labels Original: jenkins plugin plugins slave windows New: LoadRunner LrAnalysisLauncher slave windows

          Yafim Kazak added a comment -

          Hi,
          Please post the following so we can work on reproducing and tracing the issue:

          1. Jenkins configuration files - build.xml, Log, Config.xml - all obtainable from Jenkins folder on master- for example:
            C:\Jenkins\jjobs\<Job Name>\config.xml, c:\Jenkins\jobs\<job name>\builds\<failed build id>\log,build.xml.
          2. LR version
          • Did you set your controller settings differently than default? i.e. change result options or any others when you changed LR host?
            From first impression it seems as if something has changed in your Analysis settings and default HTML report template that is used to create the HTML report published to Jenkins doesn't exist.
          • Have you customized analysis settings in some way that might affect reports on this LR host?

          Yafim Kazak added a comment - Hi, Please post the following so we can work on reproducing and tracing the issue: Jenkins configuration files - build.xml, Log, Config.xml - all obtainable from Jenkins folder on master- for example: C:\Jenkins\jjobs\<Job Name>\config.xml, c:\Jenkins\jobs\<job name>\builds\<failed build id>\log,build.xml. LR version Did you set your controller settings differently than default? i.e. change result options or any others when you changed LR host? From first impression it seems as if something has changed in your Analysis settings and default HTML report template that is used to create the HTML report published to Jenkins doesn't exist. Have you customized analysis settings in some way that might affect reports on this LR host?
          Ethan Vaughn made changes -
          Attachment New: jenkins_master_config.tgz [ 34648 ]
          Ethan Vaughn made changes -
          Attachment Original: jenkins_master_config.tgz [ 34648 ]
          Ethan Vaughn made changes -
          Attachment New: jenkins_master_config.zip [ 34649 ]

          Ethan Vaughn added a comment -

          Thanks for taking a look into this.

          LR version is 12.02.0.0

          Attached .zip containing build.xml, config.xml, and log.

          Results settings:

          Results Name: res
          Directory: c:\temp
          Results Path: c:\temp\res
          [ ] Automatically create a results directory for each scenario execution
          [x] Automatically overwrite existing results directory without prompting for confirmation
          

          Previously I had it set to generate an HTML report in post-build, but have since removed that option from the jenkins job config. Currently the only post-build action on this job is:

          Publish HP tests results
              Report archive mode: Always archive and publish HP test reports (LR only)
          

          Ethan Vaughn added a comment - Thanks for taking a look into this. LR version is 12.02.0.0 Attached .zip containing build.xml, config.xml, and log. Results settings: Results Name: res Directory: c:\temp Results Path: c:\temp\res [ ] Automatically create a results directory for each scenario execution [x] Automatically overwrite existing results directory without prompting for confirmation Previously I had it set to generate an HTML report in post-build, but have since removed that option from the jenkins job config. Currently the only post-build action on this job is: Publish HP tests results Report archive mode: Always archive and publish HP test reports (LR only)

            yafim_kazak Yafim Kazak
            ethanvaughn Ethan Vaughn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: