You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/04/09 11:15:44 UTC

[GitHub] [rocketmq] landon30 opened a new issue #1927: start boker failed, the log shows NoSuchMethodError

landon30 opened a new issue #1927: start boker failed,the log shows NoSuchMethodError
URL: https://github.com/apache/rocketmq/issues/1927
 
 
   # environment
      - jdk: 1.8.0_241
      - rocketmq: 4.7.0
   
   # reproduce 
   - nohup sh bin/mqbroker -n localhost:9876 &
   -  [reference](https://rocketmq.apache.org/docs/quick-start/)
   
   # error log: `java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer`
     ```
        2020-04-09 18:02:42 WARN brokerOutApi_thread_1 - registerBroker Exception, localhost:9876
   org.apache.rocketmq.remoting.exception.RemotingSendRequestException: send request to <ocalhost/127.0.0.1:9876> failed
           at org.apache.rocketmq.remoting.netty.NettyRemotingAbstract.invokeSyncImpl(NettyRemotingAbstract.java:440) ~[rocketmq-remoting-4.7.0.jar:4.7.0]
           at org.apache.rocketmq.remoting.netty.NettyRemotingClient.invokeSync(NettyRemotingClient.java:373) ~[rocketmq-remoting-4.7.0.jar:4.7.0]
           at org.apache.rocketmq.broker.out.BrokerOuterAPI.registerBroker(BrokerOuterAPI.java:194) ~[rocketmq-broker-4.7.0.jar:4.7.0]
           at org.apache.rocketmq.broker.out.BrokerOuterAPI.access$000(BrokerOuterAPI.java:61) ~[rocketmq-broker-4.7.0.jar:4.7.0]
           at org.apache.rocketmq.broker.out.BrokerOuterAPI$1.run(BrokerOuterAPI.java:150) ~[rocketmq-broker-4.7.0.jar:4.7.0]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_241]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_241]
           at java.lang.Thread.run(Thread.java:748) [na:1.8.0_241]
   Caused by: io.netty.handler.codec.EncoderException: java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
   at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:125) ~[netty-all-4.0.42.Final.jar:4.0.42.Final]
      ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [rocketmq] landon30 commented on issue #1927: start broker failed, the log shows NoSuchMethodError

Posted by GitBox <gi...@apache.org>.
landon30 commented on issue #1927: start broker failed,the log shows NoSuchMethodError
URL: https://github.com/apache/rocketmq/issues/1927#issuecomment-612054318
 
 
   @duhenglucky see the first comment: 1.8.0_241
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [rocketmq] duhenglucky commented on issue #1927: start broker failed, the log shows NoSuchMethodError

Posted by GitBox <gi...@apache.org>.
duhenglucky commented on issue #1927: start broker failed,the log shows NoSuchMethodError
URL: https://github.com/apache/rocketmq/issues/1927#issuecomment-611823389
 
 
   @landon30 could you tell me which JDK version you used? it seems that you used the JDK version > 1.8

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [rocketmq] landon30 commented on issue #1927: start broker failed, the log shows NoSuchMethodError

Posted by GitBox <gi...@apache.org>.
landon30 commented on issue #1927: start broker failed,the log shows NoSuchMethodError
URL: https://github.com/apache/rocketmq/issues/1927#issuecomment-611487511
 
 
   my temporary solution is change the netty version from 4.0.42 final to 4.0.43 final in the pom.xml.
   it works.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services