geektao opened a new issue #2374:
URL: https://github.com/apache/rocketmq/issues/2374
{code}
java.lang.ExceptionInInitializerError: null
at
org.apache.rocketmq.client.trace.hook.ConsumeMessageTraceHookImpl.consumeMessageBefore(ConsumeMessageTraceHookImpl.java:58)
at
org.apache.rocketmq.client.impl.consumer.DefaultMQPushConsumerImpl.executeHookBefore(DefaultMQPushConsumerImpl.java:140)
at
org.apache.rocketmq.client.impl.consumer.ConsumeMessageConcurrentlyService$ConsumeRequest.run(ConsumeMessageConcurrentlyService.java:400)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: Can not get local ip
at org.apache.rocketmq.common.UtilAll.getIP(UtilAll.java:562)
at
org.apache.rocketmq.client.trace.TraceBean.<clinit>(TraceBean.java:23)
... 8 common frames omitted
Caused by: java.lang.RuntimeException: Can not get local ip
at org.apache.rocketmq.common.UtilAll.getIP(UtilAll.java:559)
... 9 common frames omitted
{code}
TraceBean has a constant field `LOCAL_ADDRESS` , initialize by static method
`UtilAll.getIP()`。The static method’s implementation ignore some ip address
(like: start with 254 ) by private method `UtilAll.ipCheck()` 。Finally ,when
ip address started with 254 will lead to `Can not get local ip` Exception.
----------------------------------------------------------------
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:
[email protected]