Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: java.lang.VerifyError: Inconsistent stackmap frames at branch target 235 on M1 #6215

Closed
wu-sheng opened this issue Nov 16, 2022 · 3 comments
Labels

Comments

@wu-sheng
Copy link

wu-sheng commented Nov 16, 2022

Module

Core

Testcontainers version

1.17.5

Using the latest Testcontainers version?

Yes

Host OS

Mac Ventura 13.0 (22A380)

Host Arch

M1 max

Docker version

Client:
 Cloud integration: v1.0.29
 Version:           20.10.20
 API version:       1.41
 Go version:        go1.18.7
 Git commit:        9fdeb9c
 Built:             Tue Oct 18 18:20:35 2022
 OS/Arch:           darwin/arm64
 Context:           default
 Experimental:      true

Server: Docker Desktop 4.13.1 (90346)
 Engine:
  Version:          20.10.20
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.18.7
  Git commit:       03df974
  Built:            Tue Oct 18 18:18:16 2022
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.6.8
  GitCommit:        9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
 runc:
  Version:          1.1.4
  GitCommit:        v1.1.4-0-g5fd4c4d
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

What happened?

I am running an Apache SkyWalking test from apache/skywalking#9969
The IT works normally on the Mac Intel chip. But I failed to run with the following error stack.

/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=61555:/Applications/IntelliJ IDEA.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/junit/lib/junit5-rt.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/junit/lib/junit-rt.jar:/Users/wusheng/github/skywalking/oap-server/server-storage-plugin/storage-shardingsphere-plugin/target/test-classes:/Users/wusheng/github/skywalking/oap-server/server-storage-plugin/storage-shardingsphere-plugin/target/classes:/Users/wusheng/github/skywalking/oap-server/server-core/target/classes:/Users/wusheng/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar:/Users/wusheng/github/skywalking/oap-server/server-library/library-module/target/classes:/Users/wusheng/github/skywalking/oap-server/server-telemetry/telemetry-api/target/classes:/Users/wusheng/github/skywalking/oap-server/server-configuration/configuration-api/target/classes:/Users/wusheng/github/skywalking/oap-server/server-library/library-util/target/classes:/Users/wusheng/.m2/repository/joda-time/joda-time/2.10.5/joda-time-2.10.5.jar:/Users/wusheng/.m2/repository/com/google/protobuf/protobuf-java-util/3.21.8/protobuf-java-util-3.21.8.jar:/Users/wusheng/.m2/repository/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar:/Users/wusheng/.m2/repository/org/apache/commons/commons-text/1.4/commons-text-1.4.jar:/Users/wusheng/.m2/repository/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar:/Users/wusheng/github/skywalking/oap-server/server-library/library-server/target/classes:/Users/wusheng/.m2/repository/io/grpc/grpc-protobuf/1.49.0/grpc-protobuf-1.49.0.jar:/Users/wusheng/.m2/repository/com/google/api/grpc/proto-google-common-protos/2.9.0/proto-google-common-protos-2.9.0.jar:/Users/wusheng/.m2/repository/io/grpc/grpc-protobuf-lite/1.49.0/grpc-protobuf-lite-1.49.0.jar:/Users/wusheng/.m2/repository/io/grpc/grpc-stub/1.49.0/grpc-stub-1.49.0.jar:/Users/wusheng/.m2/repository/io/netty/netty-codec/4.1.81.Final/netty-codec-4.1.81.Final.jar:/Users/wusheng/.m2/repository/io/netty/netty-codec-http/4.1.81.Final/netty-codec-http-4.1.81.Final.jar:/Users/wusheng/.m2/repository/com/linecorp/armeria/armeria/1.18.0/armeria-1.18.0.jar:/Users/wusheng/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.13.4/jackson-core-2.13.4.jar:/Users/wusheng/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.13.4.1/jackson-databind-2.13.4.1.jar:/Users/wusheng/.m2/repository/io/micrometer/micrometer-core/1.9.2/micrometer-core-1.9.2.jar:/Users/wusheng/.m2/repository/org/hdrhistogram/HdrHistogram/2.1.12/HdrHistogram-2.1.12.jar:/Users/wusheng/.m2/repository/org/latencyutils/LatencyUtils/2.0.3/LatencyUtils-2.0.3.jar:/Users/wusheng/.m2/repository/io/netty/netty-codec-haproxy/4.1.81.Final/netty-codec-haproxy-4.1.81.Final.jar:/Users/wusheng/.m2/repository/io/netty/netty-resolver-dns/4.1.81.Final/netty-resolver-dns-4.1.81.Final.jar:/Users/wusheng/.m2/repository/io/netty/netty-codec-dns/4.1.81.Final/netty-codec-dns-4.1.81.Final.jar:/Users/wusheng/.m2/repository/org/reactivestreams/reactive-streams/1.0.4/reactive-streams-1.0.4.jar:/Users/wusheng/.m2/repository/io/netty/netty-transport-native-unix-common/4.1.81.Final/netty-transport-native-unix-common-4.1.81.Final-linux-x86_64.jar:/Users/wusheng/.m2/repository/io/netty/netty-transport-native-epoll/4.1.81.Final/netty-transport-native-epoll-4.1.81.Final-linux-x86_64.jar:/Users/wusheng/.m2/repository/io/netty/netty-transport-classes-epoll/4.1.81.Final/netty-transport-classes-epoll-4.1.81.Final.jar:/Users/wusheng/.m2/repository/io/netty/netty-resolver-dns-native-macos/4.1.81.Final/netty-resolver-dns-native-macos-4.1.81.Final-osx-x86_64.jar:/Users/wusheng/.m2/repository/io/netty/netty-resolver-dns-classes-macos/4.1.81.Final/netty-resolver-dns-classes-macos-4.1.81.Final.jar:/Users/wusheng/.m2/repository/io/netty/netty-resolver-dns-native-macos/4.1.81.Final/netty-resolver-dns-native-macos-4.1.81.Final-osx-aarch_64.jar:/Users/wusheng/.m2/repository/io/netty/netty-tcnative-boringssl-static/2.0.54.Final/netty-tcnative-boringssl-static-2.0.54.Final-linux-x86_64.jar:/Users/wusheng/.m2/repository/io/netty/netty-tcnative-boringssl-static/2.0.54.Final/netty-tcnative-boringssl-static-2.0.54.Final-linux-aarch_64.jar:/Users/wusheng/.m2/repository/io/netty/netty-tcnative-boringssl-static/2.0.54.Final/netty-tcnative-boringssl-static-2.0.54.Final-osx-x86_64.jar:/Users/wusheng/.m2/repository/io/netty/netty-tcnative-boringssl-static/2.0.54.Final/netty-tcnative-boringssl-static-2.0.54.Final-osx-aarch_64.jar:/Users/wusheng/.m2/repository/io/netty/netty-tcnative-boringssl-static/2.0.54.Final/netty-tcnative-boringssl-static-2.0.54.Final-windows-x86_64.jar:/Users/wusheng/.m2/repository/com/aayushatharva/brotli4j/brotli4j/1.7.1/brotli4j-1.7.1.jar:/Users/wusheng/.m2/repository/com/linecorp/armeria/armeria-protobuf/1.18.0/armeria-protobuf-1.18.0.jar:/Users/wusheng/github/skywalking/oap-server/server-library/library-datacarrier-queue/target/classes:/Users/wusheng/github/skywalking/apm-protocol/apm-network/target/classes:/Users/wusheng/.m2/repository/io/netty/netty-tcnative-boringssl-static/2.0.52.Final/netty-tcnative-boringssl-static-2.0.52.Final.jar:/Users/wusheng/.m2/repository/io/netty/netty-tcnative-classes/2.0.54.Final/netty-tcnative-classes-2.0.54.Final.jar:/Users/wusheng/.m2/repository/org/javassist/javassist/3.25.0-GA/javassist-3.25.0-GA.jar:/Users/wusheng/.m2/repository/io/vavr/vavr/0.10.3/vavr-0.10.3.jar:/Users/wusheng/.m2/repository/io/vavr/vavr-match/0.10.3/vavr-match-0.10.3.jar:/Users/wusheng/.m2/repository/io/zipkin/zipkin2/zipkin/2.23.16/zipkin-2.23.16.jar:/Users/wusheng/github/skywalking/oap-server/server-library/library-client/target/classes:/Users/wusheng/github/skywalking/oap-server/server-library/library-elasticsearch-client/target/classes:/Users/wusheng/.m2/repository/io/grpc/grpc-core/1.49.0/grpc-core-1.49.0.jar:/Users/wusheng/.m2/repository/io/grpc/grpc-api/1.49.0/grpc-api-1.49.0.jar:/Users/wusheng/.m2/repository/io/grpc/grpc-context/1.49.0/grpc-context-1.49.0.jar:/Users/wusheng/.m2/repository/org/codehaus/mojo/animal-sniffer-annotations/1.21/animal-sniffer-annotations-1.21.jar:/Users/wusheng/.m2/repository/io/perfmark/perfmark-api/0.25.0/perfmark-api-0.25.0.jar:/Users/wusheng/.m2/repository/io/grpc/grpc-netty/1.49.0/grpc-netty-1.49.0.jar:/Users/wusheng/.m2/repository/io/netty/netty-transport-native-unix-common/4.1.81.Final/netty-transport-native-unix-common-4.1.81.Final.jar:/Users/wusheng/.m2/repository/io/netty/netty-codec-http2/4.1.81.Final/netty-codec-http2-4.1.81.Final.jar:/Users/wusheng/.m2/repository/io/netty/netty-common/4.1.81.Final/netty-common-4.1.81.Final.jar:/Users/wusheng/.m2/repository/io/netty/netty-buffer/4.1.81.Final/netty-buffer-4.1.81.Final.jar:/Users/wusheng/.m2/repository/io/netty/netty-transport/4.1.81.Final/netty-transport-4.1.81.Final.jar:/Users/wusheng/.m2/repository/io/netty/netty-handler/4.1.81.Final/netty-handler-4.1.81.Final.jar:/Users/wusheng/.m2/repository/io/netty/netty-resolver/4.1.81.Final/netty-resolver-4.1.81.Final.jar:/Users/wusheng/.m2/repository/io/netty/netty-handler-proxy/4.1.81.Final/netty-handler-proxy-4.1.81.Final.jar:/Users/wusheng/.m2/repository/io/netty/netty-codec-socks/4.1.81.Final/netty-codec-socks-4.1.81.Final.jar:/Users/wusheng/.m2/repository/com/google/code/gson/gson/2.9.0/gson-2.9.0.jar:/Users/wusheng/.m2/repository/com/zaxxer/HikariCP/3.1.0/HikariCP-3.1.0.jar:/Users/wusheng/.m2/repository/org/slf4j/jcl-over-slf4j/1.7.30/jcl-over-slf4j-1.7.30.jar:/Users/wusheng/github/skywalking/oap-server/server-storage-plugin/storage-jdbc-hikaricp-plugin/target/classes:/Users/wusheng/.m2/repository/com/h2database/h2/2.1.212/h2-2.1.212.jar:/Users/wusheng/.m2/repository/org/postgresql/postgresql/42.4.1/postgresql-42.4.1.jar:/Users/wusheng/.m2/repository/mysql/mysql-connector-java/8.0.13/mysql-connector-java-8.0.13.jar:/Users/wusheng/.m2/repository/com/google/protobuf/protobuf-java/3.21.8/protobuf-java-3.21.8.jar:/Users/wusheng/.m2/repository/org/slf4j/slf4j-api/1.7.30/slf4j-api-1.7.30.jar:/Users/wusheng/.m2/repository/org/slf4j/log4j-over-slf4j/1.7.30/log4j-over-slf4j-1.7.30.jar:/Users/wusheng/.m2/repository/org/apache/logging/log4j/log4j-core/2.17.1/log4j-core-2.17.1.jar:/Users/wusheng/.m2/repository/org/apache/logging/log4j/log4j-api/2.17.1/log4j-api-2.17.1.jar:/Users/wusheng/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.17.1/log4j-slf4j-impl-2.17.1.jar:/Users/wusheng/.m2/repository/com/google/guava/guava/31.1-jre/guava-31.1-jre.jar:/Users/wusheng/.m2/repository/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar:/Users/wusheng/.m2/repository/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/Users/wusheng/.m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar:/Users/wusheng/.m2/repository/org/checkerframework/checker-qual/3.12.0/checker-qual-3.12.0.jar:/Users/wusheng/.m2/repository/org/testcontainers/testcontainers/1.17.5/testcontainers-1.17.5.jar:/Users/wusheng/.m2/repository/org/apache/commons/commons-compress/1.21/commons-compress-1.21.jar:/Users/wusheng/.m2/repository/org/rnorth/duct-tape/duct-tape/1.0.8/duct-tape-1.0.8.jar:/Users/wusheng/.m2/repository/org/jetbrains/annotations/17.0.0/annotations-17.0.0.jar:/Users/wusheng/.m2/repository/com/github/docker-java/docker-java-api/3.2.13/docker-java-api-3.2.13.jar:/Users/wusheng/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.13.4/jackson-annotations-2.13.4.jar:/Users/wusheng/.m2/repository/com/github/docker-java/docker-java-transport-zerodep/3.2.13/docker-java-transport-zerodep-3.2.13.jar:/Users/wusheng/.m2/repository/com/github/docker-java/docker-java-transport/3.2.13/docker-java-transport-3.2.13.jar:/Users/wusheng/.m2/repository/net/java/dev/jna/jna/5.8.0/jna-5.8.0.jar:/Users/wusheng/.m2/repository/com/google/errorprone/error_prone_annotations/2.11.0/error_prone_annotations-2.11.0.jar:/Users/wusheng/.m2/repository/junit/junit/4.13.1/junit-4.13.1.jar:/Users/wusheng/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/Users/wusheng/.m2/repository/org/powermock/powermock-module-junit4/2.0.7/powermock-module-junit4-2.0.7.jar:/Users/wusheng/.m2/repository/org/powermock/powermock-module-junit4-common/2.0.7/powermock-module-junit4-common-2.0.7.jar:/Users/wusheng/.m2/repository/org/powermock/powermock-reflect/2.0.7/powermock-reflect-2.0.7.jar:/Users/wusheng/.m2/repository/net/bytebuddy/byte-buddy/1.9.10/byte-buddy-1.9.10.jar:/Users/wusheng/.m2/repository/net/bytebuddy/byte-buddy-agent/1.9.10/byte-buddy-agent-1.9.10.jar:/Users/wusheng/.m2/repository/org/powermock/powermock-core/2.0.7/powermock-core-2.0.7.jar:/Users/wusheng/.m2/repository/org/powermock/powermock-api-mockito2/2.0.7/powermock-api-mockito2-2.0.7.jar:/Users/wusheng/.m2/repository/org/powermock/powermock-api-support/2.0.7/powermock-api-support-2.0.7.jar:/Users/wusheng/.m2/repository/org/mockito/mockito-core/3.5.13/mockito-core-3.5.13.jar:/Users/wusheng/.m2/repository/org/objenesis/objenesis/3.1/objenesis-3.1.jar:/Users/wusheng/.m2/repository/org/assertj/assertj-core/3.20.2/assertj-core-3.20.2.jar:/Users/wusheng/.m2/repository/org/openjdk/jmh/jmh-core/1.21/jmh-core-1.21.jar:/Users/wusheng/.m2/repository/net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.jar:/Users/wusheng/.m2/repository/org/apache/commons/commons-math3/3.2/commons-math3-3.2.jar:/Users/wusheng/.m2/repository/org/projectlombok/lombok/1.18.22/lombok-1.18.22.jar:/Users/wusheng/.m2/repository/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit4 org.apache.skywalking.oap.server.storage.plugin.jdbc.shardingsphere.ITShardingTest
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.powermock.reflect.internal.WhiteboxImpl (file:/Users/wusheng/.m2/repository/org/powermock/powermock-reflect/2.0.7/powermock-reflect-2.0.7.jar) to method java.lang.Object.clone()
WARNING: Please consider reporting this to the maintainers of org.powermock.reflect.internal.WhiteboxImpl
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2022-11-16 22:07:55,705 - org.testcontainers.utility.ImageNameSubstitutor -2061 [main] INFO  [] - Image name substitution will be performed by: DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')

java.util.ServiceConfigurationError: org.testcontainers.dockerclient.DockerClientProviderStrategy: org.testcontainers.dockerclient.EnvironmentAndSystemPropertyClientProviderStrategy Unable to get public no-arg constructor

	at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:582)
	at java.base/java.util.ServiceLoader.getConstructor(ServiceLoader.java:673)
	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1233)
	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1265)
	at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1300)
	at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1385)
	at java.base/java.lang.Iterable.forEach(Iterable.java:74)
	at org.testcontainers.DockerClientFactory.getOrInitializeStrategy(DockerClientFactory.java:133)
	at org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:171)
	at org.testcontainers.DockerClientFactory$1.getDockerClient(DockerClientFactory.java:89)
	at com.github.dockerjava.api.DockerClientDelegate.authConfig(DockerClientDelegate.java:108)
	at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:321)
	at org.testcontainers.utility.RyukResourceReaper.maybeStart(RyukResourceReaper.java:78)
	at org.testcontainers.utility.RyukResourceReaper.registerLabelsFilterForCleanup(RyukResourceReaper.java:51)
	at org.testcontainers.containers.DockerComposeContainer.registerContainersForShutdown(DockerComposeContainer.java:343)
	at org.testcontainers.containers.DockerComposeContainer.start(DockerComposeContainer.java:181)
	at org.apache.skywalking.oap.server.storage.plugin.jdbc.shardingsphere.ITShardingTest.startEnv(ITShardingTest.java:185)
	at org.apache.skywalking.oap.server.storage.plugin.jdbc.shardingsphere.ITShardingTest.init(ITShardingTest.java:165)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.RunBefores.invokeMethod(RunBefores.java:33)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.powermock.modules.junit4.internal.impl.DelegatingPowerMockRunner$2.call(DelegatingPowerMockRunner.java:149)
	at org.powermock.modules.junit4.internal.impl.DelegatingPowerMockRunner$2.call(DelegatingPowerMockRunner.java:141)
	at org.powermock.modules.junit4.internal.impl.DelegatingPowerMockRunner.withContextClassLoader(DelegatingPowerMockRunner.java:132)
	at org.powermock.modules.junit4.internal.impl.DelegatingPowerMockRunner.run(DelegatingPowerMockRunner.java:141)
	at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:117)
	at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:57)
	at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:59)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
	at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
	at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
Caused by: java.lang.VerifyError: Inconsistent stackmap frames at branch target 235
Exception Details:
  Location:
    org/testcontainers/dockerclient/DockerClientProviderStrategy.test()Z @235: aload
  Reason:
    Type 'javax/net/ssl/SSLSocketFactory' (current frame, locals[7]) is not assignable to 'javax/net/SocketFactory' (stack map, locals[7])
  Current Frame:
    bci: @216
    flags: { }
    locals: { 'org/testcontainers/dockerclient/DockerClientProviderStrategy', 'org/testcontainers/dockerclient/TransportConfig', 'java/net/URI', top, top, 'java/lang/String', integer, 'javax/net/ssl/SSLSocketFactory', 'com/github/dockerjava/transport/SSLConfig' }
    stack: { }
  Stackmap Frame:
    bci: @235
    flags: { }
    locals: { 'org/testcontainers/dockerclient/DockerClientProviderStrategy', 'org/testcontainers/dockerclient/TransportConfig', 'java/net/URI', top, top, 'java/lang/String', integer, 'javax/net/SocketFactory', 'com/github/dockerjava/transport/SSLConfig' }
    stack: { }
  Bytecode:
    0000000: 2ab6 0095 4c2b b600 9b4d 2cb6 00a0 3a05
    0000010: 0236 0619 05b6 00a5 ab00 0000 0000 0081
    0000020: 0000 0005 0001 bfe1 0000 0034 0031 0888
    0000030: 0000 0044 0036 d988 0000 0064 05f0 08eb
    0000040: 0000 0054 0642 9b1c 0000 0074 1905 12a7
    0000050: b600 ab99 0046 0336 06a7 0040 1905 12ad
    0000060: b600 ab99 0036 0436 06a7 0030 1905 12af
    0000070: b600 ab99 0026 0536 06a7 0020 1905 12b1
    0000080: b600 ab99 0016 0636 06a7 0010 1905 12b3
    0000090: b600 ab99 0006 0736 0615 06aa 0000 00ab
    00000a0: 0000 0000 0000 0004 0000 0021 0000 0021
    00000b0: 0000 0021 0000 0071 0000 0071 b800 b93a
    00000c0: 072b b600 bd3a 0819 08c6 0022 1908 b900
    00000d0: c301 00b6 00c9 3a07 a700 133a 09b2 00cd
    00000e0: 12cf 1909 b900 d503 0003 ac19 0759 b600
    00000f0: d957 ba00 e200 004e bb00 e459 2cb6 00e7
    0000100: 2cb6 00ea b700 ed3a 04a7 004e bb00 ef59
    0000110: 2cb6 00f2 b700 f5b6 00f8 9a00 13b2 00cd
    0000120: 12fa 2cb6 00f2 b900 fe03 0003 ac2c ba01
    0000130: 0600 004e bb00 e459 1301 0811 0947 b700
    0000140: ed3a 04a7 0014 b200 cd13 010a 2cb6 00a0
    0000150: b901 0c03 0004 ac2d b901 1201 00c0 0114
    0000160: 3a05 013a 0614 0115 b801 1c3a 07b8 0122
    0000170: b801 28b6 012c b601 3185 b200 3fb6 0137
    0000180: 1907 b601 3b09 b801 3eb6 0141 1301 43b6
    0000190: 0147 1905 1904 1907 ba01 5100 00b6 0155
    00001a0: 0436 0819 05c6 0021 1906 c600 1719 05b6
    00001b0: 0158 a700 143a 0919 0619 09b6 015c a700
    00001c0: 0819 05b6 0158 1508 ac3a 0719 073a 0619
    00001d0: 07bf 3a0a 1905 c600 2119 06c6 0017 1905
    00001e0: b601 58a7 0014 3a0b 1906 190b b601 5ca7
    00001f0: 0008 1905 b601 5819 0abf 3a05 b200 cd13
    0000200: 015e 2cb9 010c 0300 03ac               
  Exception Handler Table:
    bci [204, 216] => handler: 219
    bci [204, 216] => handler: 219
    bci [204, 216] => handler: 219
    bci [204, 216] => handler: 219
    bci [429, 434] => handler: 437
    bci [357, 419] => handler: 457
    bci [357, 419] => handler: 466
    bci [478, 483] => handler: 486
    bci [457, 468] => handler: 466
    bci [343, 454] => handler: 506
    bci [457, 506] => handler: 506
  Stackmap Table:
    full_frame(@76,{Object[#2],Object[#151],Object[#157],Top,Top,Object[#162],Integer},{})
    same_frame(@92)
    same_frame(@108)
    same_frame(@124)
    same_frame(@140)
    same_frame(@153)
    same_frame(@188)
    full_frame(@219,{Object[#2],Object[#151],Object[#157],Top,Top,Object[#162],Integer,Object[#181],Object[#191]},{Object[#203]})
    same_frame(@235)
    chop_frame(@268,2)
    same_frame(@301)
    same_frame(@326)
    full_frame(@343,{Object[#2],Object[#151],Object[#157],Object[#270],Object[#272]},{})
    full_frame(@437,{Object[#2],Object[#151],Object[#157],Object[#270],Object[#272],Object[#276],Object[#145],Object[#280],Integer},{Object[#145]})
    same_frame(@449)
    same_frame(@454)
    full_frame(@457,{Object[#2],Object[#151],Object[#157],Object[#270],Object[#272],Object[#276],Object[#145]},{Object[#145]})
    same_locals_1_stack_item_frame(@466,Object[#145])
    full_frame(@486,{Object[#2],Object[#151],Object[#157],Object[#270],Object[#272],Object[#276],Object[#145],Top,Top,Top,Object[#145]},{Object[#145]})
    same_frame(@498)
    same_frame(@503)
    full_frame(@506,{Object[#2],Object[#151],Object[#157],Object[#270],Object[#272]},{Object[#147]})

	at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3137)
	at java.base/java.lang.Class.getConstructor0(Class.java:3342)
	at java.base/java.lang.Class.getConstructor(Class.java:2151)
	at java.base/java.util.ServiceLoader$1.run(ServiceLoader.java:660)
	at java.base/java.util.ServiceLoader$1.run(ServiceLoader.java:657)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.util.ServiceLoader.getConstructor(ServiceLoader.java:668)
	... 61 more


java.util.ServiceConfigurationError: org.testcontainers.dockerclient.DockerClientProviderStrategy: org.testcontainers.dockerclient.EnvironmentAndSystemPropertyClientProviderStrategy Unable to get public no-arg constructor

	at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:582)
	at java.base/java.util.ServiceLoader.getConstructor(ServiceLoader.java:673)
	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1233)
	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1265)
	at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1300)
	at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1385)
	at java.base/java.lang.Iterable.forEach(Iterable.java:74)
	at org.testcontainers.DockerClientFactory.getOrInitializeStrategy(DockerClientFactory.java:133)
	at org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:171)
	at org.testcontainers.images.LocalImagesCache.get(LocalImagesCache.java:31)
	at org.testcontainers.images.AbstractImagePullPolicy.shouldPull(AbstractImagePullPolicy.java:18)
	at org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:70)
	at org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:28)
	at org.testcontainers.utility.LazyFuture.getResolvedValue(LazyFuture.java:17)
	at org.testcontainers.utility.LazyFuture.get(LazyFuture.java:39)
	at org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:1369)
	at org.testcontainers.containers.GenericContainer.logger(GenericContainer.java:651)
	at org.testcontainers.containers.ContainerisedDockerCompose.<init>(DockerComposeContainer.java:690)
	at org.testcontainers.containers.DockerComposeContainer.runWithCompose(DockerComposeContainer.java:334)
	at org.testcontainers.containers.DockerComposeContainer.stop(DockerComposeContainer.java:375)
	at org.apache.skywalking.oap.server.storage.plugin.jdbc.shardingsphere.ITShardingTest.after(ITShardingTest.java:270)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.RunAfters.invokeMethod(RunAfters.java:46)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.powermock.modules.junit4.internal.impl.DelegatingPowerMockRunner$2.call(DelegatingPowerMockRunner.java:149)
	at org.powermock.modules.junit4.internal.impl.DelegatingPowerMockRunner$2.call(DelegatingPowerMockRunner.java:141)
	at org.powermock.modules.junit4.internal.impl.DelegatingPowerMockRunner.withContextClassLoader(DelegatingPowerMockRunner.java:132)
	at org.powermock.modules.junit4.internal.impl.DelegatingPowerMockRunner.run(DelegatingPowerMockRunner.java:141)
	at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:117)
	at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:57)
	at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:59)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
	at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
	at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
Caused by: java.lang.VerifyError: Inconsistent stackmap frames at branch target 235
Exception Details:
  Location:
    org/testcontainers/dockerclient/DockerClientProviderStrategy.test()Z @235: aload
  Reason:
    Type 'javax/net/ssl/SSLSocketFactory' (current frame, locals[7]) is not assignable to 'javax/net/SocketFactory' (stack map, locals[7])
  Current Frame:
    bci: @216
    flags: { }
    locals: { 'org/testcontainers/dockerclient/DockerClientProviderStrategy', 'org/testcontainers/dockerclient/TransportConfig', 'java/net/URI', top, top, 'java/lang/String', integer, 'javax/net/ssl/SSLSocketFactory', 'com/github/dockerjava/transport/SSLConfig' }
    stack: { }
  Stackmap Frame:
    bci: @235
    flags: { }
    locals: { 'org/testcontainers/dockerclient/DockerClientProviderStrategy', 'org/testcontainers/dockerclient/TransportConfig', 'java/net/URI', top, top, 'java/lang/String', integer, 'javax/net/SocketFactory', 'com/github/dockerjava/transport/SSLConfig' }
    stack: { }
  Bytecode:
    0000000: 2ab6 0095 4c2b b600 9b4d 2cb6 00a0 3a05
    0000010: 0236 0619 05b6 00a5 ab00 0000 0000 0081
    0000020: 0000 0005 0001 bfe1 0000 0034 0031 0888
    0000030: 0000 0044 0036 d988 0000 0064 05f0 08eb
    0000040: 0000 0054 0642 9b1c 0000 0074 1905 12a7
    0000050: b600 ab99 0046 0336 06a7 0040 1905 12ad
    0000060: b600 ab99 0036 0436 06a7 0030 1905 12af
    0000070: b600 ab99 0026 0536 06a7 0020 1905 12b1
    0000080: b600 ab99 0016 0636 06a7 0010 1905 12b3
    0000090: b600 ab99 0006 0736 0615 06aa 0000 00ab
    00000a0: 0000 0000 0000 0004 0000 0021 0000 0021
    00000b0: 0000 0021 0000 0071 0000 0071 b800 b93a
    00000c0: 072b b600 bd3a 0819 08c6 0022 1908 b900
    00000d0: c301 00b6 00c9 3a07 a700 133a 09b2 00cd
    00000e0: 12cf 1909 b900 d503 0003 ac19 0759 b600
    00000f0: d957 ba00 e200 004e bb00 e459 2cb6 00e7
    0000100: 2cb6 00ea b700 ed3a 04a7 004e bb00 ef59
    0000110: 2cb6 00f2 b700 f5b6 00f8 9a00 13b2 00cd
    0000120: 12fa 2cb6 00f2 b900 fe03 0003 ac2c ba01
    0000130: 0600 004e bb00 e459 1301 0811 0947 b700
    0000140: ed3a 04a7 0014 b200 cd13 010a 2cb6 00a0
    0000150: b901 0c03 0004 ac2d b901 1201 00c0 0114
    0000160: 3a05 013a 0614 0115 b801 1c3a 07b8 0122
    0000170: b801 28b6 012c b601 3185 b200 3fb6 0137
    0000180: 1907 b601 3b09 b801 3eb6 0141 1301 43b6
    0000190: 0147 1905 1904 1907 ba01 5100 00b6 0155
    00001a0: 0436 0819 05c6 0021 1906 c600 1719 05b6
    00001b0: 0158 a700 143a 0919 0619 09b6 015c a700
    00001c0: 0819 05b6 0158 1508 ac3a 0719 073a 0619
    00001d0: 07bf 3a0a 1905 c600 2119 06c6 0017 1905
    00001e0: b601 58a7 0014 3a0b 1906 190b b601 5ca7
    00001f0: 0008 1905 b601 5819 0abf 3a05 b200 cd13
    0000200: 015e 2cb9 010c 0300 03ac               
  Exception Handler Table:
    bci [204, 216] => handler: 219
    bci [204, 216] => handler: 219
    bci [204, 216] => handler: 219
    bci [204, 216] => handler: 219
    bci [429, 434] => handler: 437
    bci [357, 419] => handler: 457
    bci [357, 419] => handler: 466
    bci [478, 483] => handler: 486
    bci [457, 468] => handler: 466
    bci [343, 454] => handler: 506
    bci [457, 506] => handler: 506
  Stackmap Table:
    full_frame(@76,{Object[#2],Object[#151],Object[#157],Top,Top,Object[#162],Integer},{})
    same_frame(@92)
    same_frame(@108)
    same_frame(@124)
    same_frame(@140)
    same_frame(@153)
    same_frame(@188)
    full_frame(@219,{Object[#2],Object[#151],Object[#157],Top,Top,Object[#162],Integer,Object[#181],Object[#191]},{Object[#203]})
    same_frame(@235)
    chop_frame(@268,2)
    same_frame(@301)
    same_frame(@326)
    full_frame(@343,{Object[#2],Object[#151],Object[#157],Object[#270],Object[#272]},{})
    full_frame(@437,{Object[#2],Object[#151],Object[#157],Object[#270],Object[#272],Object[#276],Object[#145],Object[#280],Integer},{Object[#145]})
    same_frame(@449)
    same_frame(@454)
    full_frame(@457,{Object[#2],Object[#151],Object[#157],Object[#270],Object[#272],Object[#276],Object[#145]},{Object[#145]})
    same_locals_1_stack_item_frame(@466,Object[#145])
    full_frame(@486,{Object[#2],Object[#151],Object[#157],Object[#270],Object[#272],Object[#276],Object[#145],Top,Top,Top,Object[#145]},{Object[#145]})
    same_frame(@498)
    same_frame(@503)
    full_frame(@506,{Object[#2],Object[#151],Object[#157],Object[#270],Object[#272]},{Object[#147]})

	at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3137)
	at java.base/java.lang.Class.getConstructor0(Class.java:3342)
	at java.base/java.lang.Class.getConstructor(Class.java:2151)
	at java.base/java.util.ServiceLoader$1.run(ServiceLoader.java:660)
	at java.base/java.util.ServiceLoader$1.run(ServiceLoader.java:657)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.util.ServiceLoader.getConstructor(ServiceLoader.java:668)
	... 63 more

Detected late test-suite preparation of already initiated test-class org.apache.skywalking.oap.server.storage.plugin.jdbc.shardingsphere.ITShardingTest

Process finished with exit code 255

Relevant log output

No response

Additional Information

No response

@wu-sheng
Copy link
Author

BTW, I have bumped the version of test-container to 1.17.5

<dependency>
    <groupId>org.testcontainers</groupId>
    <artifactId>testcontainers-bom</artifactId>
    <version>1.17.5</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>

@wu-sheng
Copy link
Author

I tried temurin-11.0.17 for aarm, but no luck. @bsideup

@wu-sheng
Copy link
Author

I got the reason. That is a powermock conflict, rather than testcontainer's issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant