java.lang.NullPointerException

Jenkins JIRA | Thomas Geiser | 6 years ago
  1. 0

    The following Null Pointer Exception occurs when the Testlink Plugin parses a JUnit test result file. This JUnit file is generated by QF Test (GUI Test Tool). See attachment. Here the Console output: ... Looking for the test results of TestLink test cases. Found [18] JUnit XML(s). Parsing JUnit XML [MST_DEMO_LOG_01/MST_DEMO_LOG_01_201105120834/MST_DEMO_LOG_01_report_junit.xml]. Veryfying JUnit test suite [/data/tester/system_tests/qftest/demos/MST_DEMO_LOG_01/MST_DEMO_LOG_01_qft]. This suite contains [3] tests, [0] failures and [0] errors. Verifying JUnit test [UnitTest.Startup]. Looking for a test result that matches with key custom field [TESTCLASS] => [null]. Verifying TestLink test case [MST_DEMO_LOG_01], ID [111]. Custom fields in this TestLink test case [[CustomField [id=14, name=TESTCLASS, label=TESTCLASS, type=0, possibleValues=, defaultValue=, validRegexp=, lengthMin=0, lengthMax=0, showOnDesign=true, enableOnDesign=true, showOnExecution=true, enableOnExecution=false, showOnTestPlanDesign=false, enableOnTestPlanDesign=false, displayOrder=1, location=1, value=MST_DEMO_LOG_01], CustomField [id=12, name=test_suite, label=Test Suite, type=0, possibleValues=, defaultValue=, validRegexp=, lengthMin=0, lengthMax=0, showOnDesign=true, enableOnDesign=true, showOnExecution=true, enableOnExecution=false, showOnTestPlanDesign=false, enableOnTestPlanDesign=false, displayOrder=1, location=1, value=/data/tester/system_tests/qftest/demos/MST_DEMO_LOG_01/MST_DEMO_LOG_01.qft], CustomField [id=9, name=automation_type, label=Automation Type, type=6, possibleValues=QFTest|TADS, defaultValue=, validRegexp=, lengthMin=0, lengthMax=0, showOnDesign=true, enableOnDesign=true, showOnExecution=true, enableOnExecution=false, showOnTestPlanDesign=false, enableOnTestPlanDesign=false, displayOrder=1, location=1, value=QFTest], CustomField [id=15, name=work_dir, label=Working Directory, type=0, possibleValues=, defaultValue=, validRegexp=, lengthMin=0, lengthMax=0, showOnDesign=true, enableOnDesign=true, showOnExecution=true, enableOnExecution=false, showOnTestPlanDesign=false, enableOnTestPlanDesign=false, displayOrder=1, location=1, value=/data/tester/system_tests/qftest/demos/MST_DEMO_LOG_01/], CustomField [id=10, name=execution_host, label=Execution Host, type=0, possibleValues=, defaultValue=, validRegexp=, lengthMin=0, lengthMax=0, showOnDesign=true, enableOnDesign=true, showOnExecution=true, enableOnExecution=false, showOnTestPlanDesign=false, enableOnTestPlanDesign=false, displayOrder=2, location=1, value=mclient35]]]. An error occured while trying to retrieve the test results: Unkown internal error. Please, open an issue in Jenkins JIRA with the complete stack trace. If possible, try including the JUnit XML(s) too.. FATAL: Unkown internal error. Please, open an issue in Jenkins JIRA with the complete stack trace. If possible, try including the JUnit XML(s) too. hudson.plugins.testlink.result.TestResultSeekerException: Unkown internal error. Please, open an issue in Jenkins JIRA with the complete stack trace. If possible, try including the JUnit XML(s) too. at hudson.plugins.testlink.result.JUnitTestResultSeeker.seek(JUnitTestResultSeeker.java:113) at hudson.plugins.testlink.result.TestResultsCallable.seekTestResults(TestResultsCallable.java:115) at hudson.plugins.testlink.result.TestResultsCallable.invoke(TestResultsCallable.java:156) at hudson.plugins.testlink.result.TestResultsCallable.invoke(TestResultsCallable.java:45) at hudson.FilePath.act(FilePath.java:757) at hudson.FilePath.act(FilePath.java:739) at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:503) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:644) at hudson.model.Build$RunnerImpl.build(Build.java:175) at hudson.model.Build$RunnerImpl.doRun(Build.java:137) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:421) at hudson.model.Run.run(Run.java:1362) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Caused by: java.lang.NullPointerException at hudson.plugins.testlink.result.JUnitTestResultSeeker.doFindTestResult(JUnitTestResultSeeker.java:246) at hudson.plugins.testlink.result.JUnitTestResultSeeker.doJunitSuite(JUnitTestResultSeeker.java:180) at hudson.plugins.testlink.result.JUnitTestResultSeeker.doJunitReports(JUnitTestResultSeeker.java:145) at hudson.plugins.testlink.result.JUnitTestResultSeeker.seek(JUnitTestResultSeeker.java:105) ... 15 more FATAL: null java.lang.NullPointerException at hudson.plugins.testlink.TestLinkService.updateTestCasesAndUploadAttachments(TestLinkService.java:155) at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:525) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:644) at hudson.model.Build$RunnerImpl.build(Build.java:175) at hudson.model.Build$RunnerImpl.doRun(Build.java:137) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:421) at hudson.model.Run.run(Run.java:1362) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145)

    Jenkins JIRA | 6 years ago | Thomas Geiser
    java.lang.NullPointerException
  2. 0

    The following Null Pointer Exception occurs when the Testlink Plugin parses a JUnit test result file. This JUnit file is generated by QF Test (GUI Test Tool). See attachment. Here the Console output: ... Looking for the test results of TestLink test cases. Found [18] JUnit XML(s). Parsing JUnit XML [MST_DEMO_LOG_01/MST_DEMO_LOG_01_201105120834/MST_DEMO_LOG_01_report_junit.xml]. Veryfying JUnit test suite [/data/tester/system_tests/qftest/demos/MST_DEMO_LOG_01/MST_DEMO_LOG_01_qft]. This suite contains [3] tests, [0] failures and [0] errors. Verifying JUnit test [UnitTest.Startup]. Looking for a test result that matches with key custom field [TESTCLASS] => [null]. Verifying TestLink test case [MST_DEMO_LOG_01], ID [111]. Custom fields in this TestLink test case [[CustomField [id=14, name=TESTCLASS, label=TESTCLASS, type=0, possibleValues=, defaultValue=, validRegexp=, lengthMin=0, lengthMax=0, showOnDesign=true, enableOnDesign=true, showOnExecution=true, enableOnExecution=false, showOnTestPlanDesign=false, enableOnTestPlanDesign=false, displayOrder=1, location=1, value=MST_DEMO_LOG_01], CustomField [id=12, name=test_suite, label=Test Suite, type=0, possibleValues=, defaultValue=, validRegexp=, lengthMin=0, lengthMax=0, showOnDesign=true, enableOnDesign=true, showOnExecution=true, enableOnExecution=false, showOnTestPlanDesign=false, enableOnTestPlanDesign=false, displayOrder=1, location=1, value=/data/tester/system_tests/qftest/demos/MST_DEMO_LOG_01/MST_DEMO_LOG_01.qft], CustomField [id=9, name=automation_type, label=Automation Type, type=6, possibleValues=QFTest|TADS, defaultValue=, validRegexp=, lengthMin=0, lengthMax=0, showOnDesign=true, enableOnDesign=true, showOnExecution=true, enableOnExecution=false, showOnTestPlanDesign=false, enableOnTestPlanDesign=false, displayOrder=1, location=1, value=QFTest], CustomField [id=15, name=work_dir, label=Working Directory, type=0, possibleValues=, defaultValue=, validRegexp=, lengthMin=0, lengthMax=0, showOnDesign=true, enableOnDesign=true, showOnExecution=true, enableOnExecution=false, showOnTestPlanDesign=false, enableOnTestPlanDesign=false, displayOrder=1, location=1, value=/data/tester/system_tests/qftest/demos/MST_DEMO_LOG_01/], CustomField [id=10, name=execution_host, label=Execution Host, type=0, possibleValues=, defaultValue=, validRegexp=, lengthMin=0, lengthMax=0, showOnDesign=true, enableOnDesign=true, showOnExecution=true, enableOnExecution=false, showOnTestPlanDesign=false, enableOnTestPlanDesign=false, displayOrder=2, location=1, value=mclient35]]]. An error occured while trying to retrieve the test results: Unkown internal error. Please, open an issue in Jenkins JIRA with the complete stack trace. If possible, try including the JUnit XML(s) too.. FATAL: Unkown internal error. Please, open an issue in Jenkins JIRA with the complete stack trace. If possible, try including the JUnit XML(s) too. hudson.plugins.testlink.result.TestResultSeekerException: Unkown internal error. Please, open an issue in Jenkins JIRA with the complete stack trace. If possible, try including the JUnit XML(s) too. at hudson.plugins.testlink.result.JUnitTestResultSeeker.seek(JUnitTestResultSeeker.java:113) at hudson.plugins.testlink.result.TestResultsCallable.seekTestResults(TestResultsCallable.java:115) at hudson.plugins.testlink.result.TestResultsCallable.invoke(TestResultsCallable.java:156) at hudson.plugins.testlink.result.TestResultsCallable.invoke(TestResultsCallable.java:45) at hudson.FilePath.act(FilePath.java:757) at hudson.FilePath.act(FilePath.java:739) at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:503) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:644) at hudson.model.Build$RunnerImpl.build(Build.java:175) at hudson.model.Build$RunnerImpl.doRun(Build.java:137) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:421) at hudson.model.Run.run(Run.java:1362) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Caused by: java.lang.NullPointerException at hudson.plugins.testlink.result.JUnitTestResultSeeker.doFindTestResult(JUnitTestResultSeeker.java:246) at hudson.plugins.testlink.result.JUnitTestResultSeeker.doJunitSuite(JUnitTestResultSeeker.java:180) at hudson.plugins.testlink.result.JUnitTestResultSeeker.doJunitReports(JUnitTestResultSeeker.java:145) at hudson.plugins.testlink.result.JUnitTestResultSeeker.seek(JUnitTestResultSeeker.java:105) ... 15 more FATAL: null java.lang.NullPointerException at hudson.plugins.testlink.TestLinkService.updateTestCasesAndUploadAttachments(TestLinkService.java:155) at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:525) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:644) at hudson.model.Build$RunnerImpl.build(Build.java:175) at hudson.model.Build$RunnerImpl.doRun(Build.java:137) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:421) at hudson.model.Run.run(Run.java:1362) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145)

    Jenkins JIRA | 6 years ago | Thomas Geiser
    java.lang.NullPointerException
  3. 0

    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

    Jenkins JIRA | 6 years ago | Bruno P. Kinoshita
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    h3.Testlink configuration: !testlink.jpg|thumbnail! h3.Jenkins configuration: !jenkins.jpg|thumbnail! h3.Jenkins job {color:red}*FAILS*{color}: {code} 08:23:20 Looking for the test results of TestLink test cases. 08:23:20 08:23:20 Looking for test results in JUnit classes. 08:23:20 08:23:21 FATAL: null 08:23:21 java.lang.NullPointerException 08:23:21 at hudson.plugins.testlink.result.JUnitCaseClassNameResultSeeker.getJUnitNotes(JUnitCaseClassNameResultSeeker.java:138) 08:23:21 at hudson.plugins.testlink.result.JUnitCaseClassNameResultSeeker.seek(JUnitCaseClassNameResultSeeker.java:99) 08:23:21 at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:159) 08:23:21 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 08:23:21 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703) 08:23:21 at hudson.model.Build$RunnerImpl.build(Build.java:178) 08:23:21 at hudson.model.Build$RunnerImpl.doRun(Build.java:139) 08:23:21 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:473) 08:23:21 at hudson.model.Run.run(Run.java:1408) 08:23:21 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 08:23:21 at hudson.model.ResourceController.execute(ResourceController.java:88) 08:23:21 at hudson.model.Executor.run(Executor.java:238) {code} Full console out can be found [^full-log.txt] Also JUnit report is attached - [^TEST-com.exigen.ipb.product.ProductPropertiesUiConfWebTests.xml]

    Jenkins JIRA | 5 years ago | Jaroslavas D.
    java.lang.NullPointerException
  6. 0

    h3.Testlink configuration: !testlink.jpg|thumbnail! h3.Jenkins configuration: !jenkins.jpg|thumbnail! h3.Jenkins job {color:red}*FAILS*{color}: {code} 08:23:20 Looking for the test results of TestLink test cases. 08:23:20 08:23:20 Looking for test results in JUnit classes. 08:23:20 08:23:21 FATAL: null 08:23:21 java.lang.NullPointerException 08:23:21 at hudson.plugins.testlink.result.JUnitCaseClassNameResultSeeker.getJUnitNotes(JUnitCaseClassNameResultSeeker.java:138) 08:23:21 at hudson.plugins.testlink.result.JUnitCaseClassNameResultSeeker.seek(JUnitCaseClassNameResultSeeker.java:99) 08:23:21 at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:159) 08:23:21 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 08:23:21 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703) 08:23:21 at hudson.model.Build$RunnerImpl.build(Build.java:178) 08:23:21 at hudson.model.Build$RunnerImpl.doRun(Build.java:139) 08:23:21 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:473) 08:23:21 at hudson.model.Run.run(Run.java:1408) 08:23:21 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 08:23:21 at hudson.model.ResourceController.execute(ResourceController.java:88) 08:23:21 at hudson.model.Executor.run(Executor.java:238) {code} Full console out can be found [^full-log.txt] Also JUnit report is attached - [^TEST-com.exigen.ipb.product.ProductPropertiesUiConfWebTests.xml]

    Jenkins JIRA | 5 years ago | Jaroslavas D.
    java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at hudson.plugins.testlink.TestLinkService.updateTestCasesAndUploadAttachments()
    2. hudson.plugins.testlink
      TestLinkBuilder.perform
      1. hudson.plugins.testlink.TestLinkService.updateTestCasesAndUploadAttachments(TestLinkService.java:155)
      2. hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:525)
      2 frames
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:644)
      3. hudson.model.Build$RunnerImpl.build(Build.java:175)
      4. hudson.model.Build$RunnerImpl.doRun(Build.java:137)
      5. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:421)
      6. hudson.model.Run.run(Run.java:1362)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:145)
      9 frames