java.lang.NoSuchMethodError: org.testcontainers.containers.PostgreSQLContainer.withStartupAttempts(I)V

GitHub | IhabSoliman | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 172#233213677

    GitHub | 9 months ago | IhabSoliman
    java.lang.NoSuchMethodError: org.testcontainers.containers.PostgreSQLContainer.withStartupAttempts(I)V

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.testcontainers.containers.PostgreSQLContainer.withStartupAttempts(I)V

      at com.jive.jci.commons.itest.AbstractJdbcIntegrationTestLauncher.initDb()
    2. com.jive.jci
      AbstractProvidersIT.setupClass
      1. com.jive.jci.commons.itest.AbstractJdbcIntegrationTestLauncher.initDb(AbstractJdbcIntegrationTestLauncher.java:90)
      2. com.jive.jci.commons.itest.AbstractJdbcIntegrationTestLauncher.init(AbstractJdbcIntegrationTestLauncher.java:65)
      3. com.jive.jci.ambassador.itest.AbstractJdbcAmbassadorTestLauncher.init(AbstractJdbcAmbassadorTestLauncher.java:65)
      4. com.jive.jci.ambassador.itest.providers.ProvidersIntegrationTestLauncher.init(ProvidersIntegrationTestLauncher.java:34)
      5. com.jive.jci.ambassador.itest.providers.AbstractProvidersIT.setupClass(AbstractProvidersIT.java:94)
      5 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    4. JUnit
      ParentRunner.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      4. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      5. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      6. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      6 frames
    5. JUnit4 Provider
      JUnit4Provider.invoke
      1. org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
      2. org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
      3. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      4. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
      4 frames
    6. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
      2. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
      3. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      3 frames