yushan-yaojin commented on issue #5068: URL: https://github.com/apache/rocketmq/issues/5068#issuecomment-1247518365
> Please give more detailed information like exception stack. java.lang.NoSuchMethodError:java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;org.apache.rocketmq.common.message.MessageExt.socketAddress2ByteBuffer ,line 80 Mq : 4.9.4 springboot app: rocketmq-spring-boot-starter 2.2.1 Jdk: openjdk version "11.0.10" 2021-01-19 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.10+9) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.10+9, mixed mode) > It occurs when building with JDK version >=9 and running on JDK8. Ref: https://www.morling.dev/blog/bytebuffer-and-the-dreaded-nosuchmethoderror/ run on jdk11 openjdk version "11.0.10" 2021-01-19 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.10+9) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.10+9, mixed mode) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
