Skip to content

[Bug] Caused by: java.lang.IllegalStateException: java.lang.ClassFormatError: Duplicate field name "cachedValue$$sw$flkjvo2$7dmmn00" with signature "Ljava.lang.reflect.Method;" in class file org/apache/http/impl/client/MinimalHttpClient #13876

@etcdWu

Description

@etcdWu

Search before asking

  • I had searched in the issues and found no similar issues.

Apache SkyWalking Component

OAP server (apache/skywalking)

What happened

our app java version is jdk-25 jdk-21 jdk-8
I use java agent apache/skywalking-java-agent:9.6.0-java8 apache/skywalking-java-agent:9.6.0-java17 apache/skywalking-java-agent:9.6.0-java21
every version has the same problems:
ava.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:102)
at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:64)
at org.springframework.boot.loader.launch.JarLauncher.main(JarLauncher.java:40)
Caused by: java.lang.IllegalStateException: java.lang.ClassFormatError: Duplicate field name "cachedValue$$sw$flkjvo2$7dmmn00" with signature "Ljava.lang.reflect.Method;" in class file org/apache/http/impl/client/MinimalHttpClient
at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:825)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:345)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1363)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1352)
at com.monix.GatewayApplication.main(GatewayApplication.java:20)

not only MinimalHttpClient the plugin, also this
rm -f /agent/agent/plugins/apm-httpClient-4.x-plugin-.jar
rm -f /agent/agent/plugins/apm-httpclient-commons-
.jar
rm -f /agent/agent/plugins/apm-httpasyncclient-4.x-plugin-.jar
rm -f /agent/agent/plugins/apm-kafka-plugin-
.jar
rm -f /agent/agent/plugins/apm-kafka-commons-.jar
rm -f /agent/agent/activations/apm-toolkit-logback-1.x-activation-
.jar

when i use the apache/skywalking-java-agent:8.16.0-java17 ,there is no issues.

so I think the bytebudy frame has some bugs

What you expected to happen

my projects can run normally use 9.6.0 java agent

How to reproduce

app jdk version: jdk8 jdk21 jdk25
java agent: 9.x version above

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working and you are sure it's a bug!

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions