java.lang.AssertionError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Jenkins: http://cassci.datastax.com/view/y_Drivers/job/y_java-driver_2.0/129/testReport/ Code: https://github.com/datastax/java-driver/blob/2.0/driver-core/src/test/java/com/datastax/driver/core/LoadBalancingPolicyBootstrapTest.java#L36 Commenting out the entire AfterClass method seems to remove the issue, although it doesn't discard the temporary ccm cluster. If commenting out just c.discard(), the issue still appears. However, it doesn't seem to be an issue with the test as that always passes. The issue seems to lie with testng. {CODE} [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project cassandra-driver-core: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test failed: There was an error in the forked process [ERROR] java.lang.AssertionError: l should not be null [ERROR] at org.testng.ClassMethodMap.removeAndCheckIfLast(ClassMethodMap.java:58) [ERROR] at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:208) [ERROR] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:114) [ERROR] at org.testng.TestRunner.privateRun(TestRunner.java:767) [ERROR] at org.testng.TestRunner.run(TestRunner.java:617) [ERROR] at org.testng.SuiteRunner.runTest(SuiteRunner.java:348) [ERROR] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343) [ERROR] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305) [ERROR] at org.testng.SuiteRunner.run(SuiteRunner.java:254) [ERROR] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) [ERROR] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) [ERROR] at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224) [ERROR] at org.testng.TestNG.runSuitesLocally(TestNG.java:1149) [ERROR] at org.testng.TestNG.run(TestNG.java:1057) [ERROR] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:91) [ERROR] at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:128) [ERROR] at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:112) [ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:113) [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) [ERROR] -> [Help 1] {CODE}
    via by Joaquin Casares,
  • Jenkins: http://cassci.datastax.com/view/y_Drivers/job/y_java-driver_2.0/129/testReport/ Code: https://github.com/datastax/java-driver/blob/2.0/driver-core/src/test/java/com/datastax/driver/core/LoadBalancingPolicyBootstrapTest.java#L36 Commenting out the entire AfterClass method seems to remove the issue, although it doesn't discard the temporary ccm cluster. If commenting out just c.discard(), the issue still appears. However, it doesn't seem to be an issue with the test as that always passes. The issue seems to lie with testng. {CODE} [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project cassandra-driver-core: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test failed: There was an error in the forked process [ERROR] java.lang.AssertionError: l should not be null [ERROR] at org.testng.ClassMethodMap.removeAndCheckIfLast(ClassMethodMap.java:58) [ERROR] at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:208) [ERROR] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:114) [ERROR] at org.testng.TestRunner.privateRun(TestRunner.java:767) [ERROR] at org.testng.TestRunner.run(TestRunner.java:617) [ERROR] at org.testng.SuiteRunner.runTest(SuiteRunner.java:348) [ERROR] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343) [ERROR] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305) [ERROR] at org.testng.SuiteRunner.run(SuiteRunner.java:254) [ERROR] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) [ERROR] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) [ERROR] at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224) [ERROR] at org.testng.TestNG.runSuitesLocally(TestNG.java:1149) [ERROR] at org.testng.TestNG.run(TestNG.java:1057) [ERROR] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:91) [ERROR] at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:128) [ERROR] at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:112) [ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:113) [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) [ERROR] -> [Help 1] {CODE}
    via by Joaquin Casares,
  • Custom test method name in TestNG reports
    via Stack Overflow by rajesh
    ,
    • java.lang.AssertionError: l should not be null at org.testng.ClassMethodMap.removeAndCheckIfLast(ClassMethodMap.java:58) at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:208) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:114) at org.testng.TestRunner.privateRun(TestRunner.java:767) at org.testng.TestRunner.run(TestRunner.java:617) at org.testng.SuiteRunner.runTest(SuiteRunner.java:348) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305) at org.testng.SuiteRunner.run(SuiteRunner.java:254) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224) at org.testng.TestNG.runSuitesLocally(TestNG.java:1149) at org.testng.TestNG.run(TestNG.java:1057) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:91) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:128) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:112) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:113) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
    No Bugmate found.