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

java.lang.NullPointerException at hudson.plugins.testlink.updater.TestLinkTestStatusUpdater.updateTestCases(TestLinkTestStatusUpdater.java:55)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: testlink-plugin
    • Labels:
      None
    • Environment:
      CentOs54.+Hudson1.388+TestLink1.9.0+TestLink PlugIn2.0
    • Similar Issues:

      Description

      Probably a problem with the Updater.

      Started by user anonymous
      Building on master
      Updating http://192.168.157.168:8000/svn/MyFrame
      At revision 34
      no change for http://192.168.157.168:8000/svn/MyFrame since the previous build
      Preparing TestLink client API
      Using TestLink URL: http://localhost/testlink190/lib/api/xmlrpc.php
      Retrieving TestLink details about Test Project, Test Plan and Build.
      Retrieving list of automated test cases from TestLink
      Found TestLink Test Case: TestCase [id=48, name=copytest, testSuiteId=null, testProjectId=null, authorLogin=null, summary=, steps=[], preconditions=null, testImportance=null, executionType=2, order=null, internalId=null, checkDuplicatedName=null, actionOnDuplicatedName=null, versionId=49, version=1, parentId=null, customFields=[], executionStatus=null]
      Automated test case found. Retrieving list of custom fields for test case
      Retrieving custom field SampleCustomField
      Custom field SampleCustomField value:
      Retrieving custom field Test Class
      Custom field Test Class value: example4.MyFrameTest
      Creating list of environment variables for test case execution
      Merging build environment variables with TestLink environment variables
      Executing test command
      [workspace] $ /root/.hudson/jobs/Auto-MyFrame/workspace/testlink_temporary_4606731058482932760.sh
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building MyFrame 1.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] — maven-resources-plugin:2.4.3:resources (default-resources) @ MyFrame —
      [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
      [INFO] skip non existing resourceDirectory /root/.hudson/jobs/Auto-MyFrame/workspace/src/main/resources
      [INFO]
      [INFO] — maven-compiler-plugin:2.3.2:compile (default-compile) @ MyFrame —
      [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
      [INFO] Compiling 1 source file to /root/.hudson/jobs/Auto-MyFrame/workspace/target/classes
      [INFO]
      [INFO] — maven-resources-plugin:2.4.3:testResources (default-testResources) @ MyFrame —
      [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
      [INFO] skip non existing resourceDirectory /root/.hudson/jobs/Auto-MyFrame/workspace/src/test/resources
      [INFO]
      [INFO] — maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ MyFrame —
      [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
      [INFO] Compiling 1 source file to /root/.hudson/jobs/Auto-MyFrame/workspace/target/test-classes
      [INFO]
      [INFO] — maven-surefire-plugin:2.5:test (default-test) @ MyFrame —
      [INFO] Surefire report directory: /root/.hudson/jobs/Auto-MyFrame/workspace/target/surefire-reports

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running TestSuite
      [Parser] Running:
      Command line suite

      [MyFrameTest] SETTING UP THE CLASS1
      [MyFrameTest] SETTING UP THE CLASS2
      [MyFrameTest] BEFORE METHOD1
      [MyFrameTest] BEFORE METHOD2
      [MyFrameTest] BEFORE METHOD3
      [MyFrameTest] ..... TESTING method1 begin
      [MyFrameTest] ..... TESTING method1 end
      [MyFrameTest] AFTER METHOD1
      [MyFrameTest] AFTER METHOD2
      [MyFrameTest] BEFORE METHOD1
      [MyFrameTest] BEFORE METHOD2
      [MyFrameTest] BEFORE METHOD3
      [MyFrameTest] ..... TESTING method2
      [MyFrameTest] AFTER METHOD1
      [MyFrameTest] AFTER METHOD2
      [MyFrameTest] TEARING DOWN THE CLASS PART
      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.888 sec

      Results :

      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 42.672s
      [INFO] Finished at: Sat Dec 11 15:06:39 CST 2010
      [INFO] Final Memory: 14M/35M
      [INFO] ------------------------------------------------------------------------
      Scanning for TestNG files in /root/.hudson/jobs/Auto-MyFrame/workspace. Include pattern: **/testng-results.xml
      TestNG file found. Parsing file to extract Test Results
      Found 1 test results
      Updating 1 test case(s) execution status
      FATAL: null
      java.lang.NullPointerException
      at hudson.plugins.testlink.updater.TestLinkTestStatusUpdater.updateTestCases(TestLinkTestStatusUpdater.java:55)
      at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:532)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:603)
      at hudson.model.Build$RunnerImpl.build(Build.java:172)
      at hudson.model.Build$RunnerImpl.doRun(Build.java:137)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417)
      at hudson.model.Run.run(Run.java:1339)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:140)

      页面生成于: 2010-12-11 15:06:45Hudson ver. 1.388

        Attachments

        1. 01.JPG
          01.JPG
          104 kB
        2. 02.JPG
          02.JPG
          115 kB
        3. 03.JPG
          03.JPG
          105 kB

          Activity

          Hide
          kinow Bruno P. Kinoshita added a comment -

          We replaced the java.util.ArrayList<TestResult> that were being sent over the network for jobs with distributed Hudson nodes. Instead of the dynamic arrays, we used native arrays of TestResult[]. This way, we believe have fixed this issue.

          Show
          kinow Bruno P. Kinoshita added a comment - We replaced the java.util.ArrayList<TestResult> that were being sent over the network for jobs with distributed Hudson nodes. Instead of the dynamic arrays, we used native arrays of TestResult[]. This way, we believe have fixed this issue.
          Hide
          kinow Bruno P. Kinoshita added a comment -

          Some tests failed while I was playing with the test command. Note that it worked as we were executing a test case as a test suite (or vice versa

          But running a test suite is going to be possible only in the plug-in 2.1 version. For now you should use one TestLink test case for one *unit test case (*unit = TestNG, JUnit, or any other test execution tool).

          Show
          kinow Bruno P. Kinoshita added a comment - Some tests failed while I was playing with the test command. Note that it worked as we were executing a test case as a test suite (or vice versa But running a test suite is going to be possible only in the plug-in 2.1 version. For now you should use one TestLink test case for one *unit test case (*unit = TestNG, JUnit, or any other test execution tool).
          Hide
          kinow Bruno P. Kinoshita added a comment -

          Fixed in 2.2

          Show
          kinow Bruno P. Kinoshita added a comment - Fixed in 2.2

            People

            • Assignee:
              kinow Bruno P. Kinoshita
              Reporter:
              kinow Bruno P. Kinoshita
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: