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.UnsupportedOperationException: class redefinition failed: attempted to change superclass or interfaces #11876

Closed
3 tasks done
dengbaikun opened this issue Feb 8, 2024 · 7 comments
Labels
bug Something isn't working and you are sure it's a bug!

Comments

@dengbaikun
Copy link

dengbaikun commented Feb 8, 2024

Search before asking

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

Apache SkyWalking Component

OAP server (apache/skywalking)

What happened

ERROR 2024-02-08 17:34:44.462 main SkyWalkingAgent : index=0, batch=[class ch.qos.logback.classic.spi.LoggingEvent], types=[class ch.qos.logback.classic.spi.LoggingEvent]
java.lang.UnsupportedOperationException: class redefinition failed: attempted to change superclass or interfaces

org.springframework.cloud spring-cloud-starter-gateway org.springframework.boot spring-boot-starter-parent 2.3.12.RELEASE org.springframework.cloud spring-cloud-dependencies Hoxton.SR12 pom import

加上了

org.springframework.cloud
spring-cloud-starter-gateway


reactor-core
io.projectreactor



就没事
怀疑是这个io.projectreactor 导致
skywalking 9.1.0 版本

What you expected to happen

QQ截图20240208174121

How to reproduce


4.0.0

<artifactId>gateway</artifactId>
<version>1.0-SNAPSHOT</version>
<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.3.12.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
    <maven.compiler.source>8</maven.compiler.source>
    <maven.compiler.target>8</maven.compiler.target>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <skywalking.version>9.1.0</skywalking.version>
    <spring-cloud.version>Hoxton.SR12</spring-cloud.version>
</properties>
<dependencies>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-gateway</artifactId>
    </dependency>
</dependencies>
org.springframework.cloud spring-cloud-dependencies ${spring-cloud.version} pom import

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

@dengbaikun dengbaikun added the bug Something isn't working and you are sure it's a bug! label Feb 8, 2024
@dengbaikun
Copy link
Author

微信截图_20240208174316

@wu-sheng
Copy link
Member

wu-sheng commented Feb 8, 2024

Please use English if you need to discuss on GitHub. Chinese is welcome on slack CN channel.

@wu-sheng wu-sheng closed this as not planned Won't fix, can't repro, duplicate, stale Feb 8, 2024
@wu-sheng
Copy link
Member

wu-sheng commented Feb 8, 2024

About toolkit, you should use versions compatible with the version we used for compiling

@dengbaikun
Copy link
Author

About toolkit, you should use versions compatible with the version we used for compiling

io.projectreactor reactor-core 3.3.17

Introducing this lib will cause this issue
skywalking-agent version 9.1.0
-javaagent:E:\skywalking-agent\skywalking-agent.jar
-Dskywalking.agent.service_name=skywalking-account-service

@wu-sheng
Copy link
Member

wu-sheng commented Feb 9, 2024

We can't guarantee for the libraries we didn't test or use.
You could try to cross check and source codes, there may be some methods changed. It is happened and will happen again.

@Scarecrow12138
Copy link

@dengbaikun Hello! May I ask how it was resolved in the end?? I have followed your method,Even commented out all the code,But it's still the case.
image

@dengbaikun
Copy link
Author

dengbaikun commented Feb 16, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working and you are sure it's a bug!
Projects
None yet
Development

No branches or pull requests

3 participants