baidu / starlight

Java implementation for Baidu RPC, multi-protocol & high performance RPC.
Apache License 2.0
961 stars 282 forks source link

com.baidu.cloud:spring-cloud-baidu-thirdparty-commons:jar:2022.2.0 与 Netty Epoll 冲突 #360

Closed TeslaCN closed 1 year ago

TeslaCN commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

https://github.com/apache/shenyu/issues/5033

java.lang.IllegalStateException: Multiple resources found for 'META-INF/native/libnetty_transport_native_epoll_x86_64.so' with different content: [jar:file:/home/wuweijie/.m2/repository/io/netty/netty-transport-native-epoll/4.1.94.Final/netty-transport-native-epoll-4.1.94.Final-linux-x86_64.jar!/META-INF/native/libnetty_transport_native_epoll_x86_64.so, jar:file:/home/wuweijie/.m2/repository/com/baidu/cloud/spring-cloud-baidu-thirdparty-commons/2022.2.0/spring-cloud-baidu-thirdparty-commons-2022.2.0.jar!/META-INF/native/libnetty_transport_native_epoll_x86_64.so]

image

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. See error

Expected behavior A clear and concise description of what you expected to happen.

Additional context Add any other context about the problem here.

Reason94 commented 1 year ago

Thanks for feedback, we will solve it.

The solution is:

  1. move META-INF/native/libnetty_transport_native_epoll_x86_64.so in spring-cloud-baidu-thirdparty-commons to new path
  2. starlight will load libnetty_transport_native_epoll_x86_64.so from new path
Reason94 commented 1 year ago

Thanks for feedback, we will solve it.

The solution is:

  1. move META-INF/native/libnetty_transport_native_epoll_x86_64.so in spring-cloud-baidu-thirdparty-commons to new path
  2. starlight will load libnetty_transport_native_epoll_x86_64.so from new path

https://github.com/baidu/starlight/pull/366

Reason94 commented 1 year ago

Already fixed in version 2022.2.2-SNAPSHOT,please verify and use

<dependency>
  <groupId>com.baidu.cloud</groupId>
  <artifactId>spring-cloud-starter-baidu-starlight</artifactId>
  <version>2022.2.2-SNAPSHOT</version>
</dependency>