java.lang.AssertionError: l should not be null

DataStax JIRA | Joaquin Casares | 2 years ago
  1. 0

    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}

    DataStax JIRA | 2 years ago | Joaquin Casares
    java.lang.AssertionError: l should not be null
  2. 0

    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}

    DataStax JIRA | 2 years ago | Joaquin Casares
    java.lang.AssertionError: l should not be null
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Custom test method name in TestNG reports

    Stack Overflow | 4 years ago
    java.lang.AssertionError: l should not be null
  5. 0

    Maven plugins for vert.x

    Google Groups | 4 years ago | Pid
    java.lang.AssertionError: deploymentID should not be null

    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.AssertionError

      l should not be null

      at org.testng.ClassMethodMap.removeAndCheckIfLast()
    2. TestNG
      TestNG.run
      1. org.testng.ClassMethodMap.removeAndCheckIfLast(ClassMethodMap.java:58)
      2. org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:208)
      3. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:114)
      4. org.testng.TestRunner.privateRun(TestRunner.java:767)
      5. org.testng.TestRunner.run(TestRunner.java:617)
      6. org.testng.SuiteRunner.runTest(SuiteRunner.java:348)
      7. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343)
      8. org.testng.SuiteRunner.privateRun(SuiteRunner.java:305)
      9. org.testng.SuiteRunner.run(SuiteRunner.java:254)
      10. org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      11. org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      12. org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
      13. org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
      14. org.testng.TestNG.run(TestNG.java:1057)
      14 frames
    3. org.apache.maven
      TestNGProvider.invoke
      1. org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:91)
      2. org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:128)
      3. org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:112)
      4. org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:113)
      4 frames
    4. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      2. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      3. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      3 frames