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 2022/03/28 01:57:46 UTC

[GitHub] [rocketmq] Oliverwqcwrw opened a new issue #4043: The official website's 'order example' exec failed

Oliverwqcwrw opened a new issue #4043:
URL: https://github.com/apache/rocketmq/issues/4043


   
   **BUG REPORT**
   
   1. Please describe the issue you observed:
   
   The official website's order example is executing failed  [https://rocketmq.apache.org/docs/order-example/](https://rocketmq.apache.org/docs/order-example/)
   
   - What did you do (The steps to reproduce)?
   
   - What is expected to see?
   
   It can send message normally
   
   - What did you see instead?
   
   > Exception in thread "main" java.lang.IllegalStateException: org.apache.rocketmq.remoting.exception.RemotingConnectException: connect to null failed
   	at org.apache.rocketmq.client.impl.factory.MQClientInstance.updateTopicRouteInfoFromNameServer(MQClientInstance.java:680)
   	at org.apache.rocketmq.client.impl.factory.MQClientInstance.updateTopicRouteInfoFromNameServer(MQClientInstance.java:510)
   	at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.tryToFindTopicPublishInfo(DefaultMQProducerImpl.java:683)
   	at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.sendSelectImpl(DefaultMQProducerImpl.java:1128)
   	at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.send(DefaultMQProducerImpl.java:1114)
   	at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.send(DefaultMQProducerImpl.java:1109)
   	at org.apache.rocketmq.client.producer.DefaultMQProducer.send(DefaultMQProducer.java:518)
   	at com.aolifu.producer.OrderedProducer.main(OrderedProducer.java:25)
   Caused by: org.apache.rocketmq.remoting.exception.RemotingConnectException: connect to null failed
   	at org.apache.rocketmq.remoting.netty.NettyRemotingClient.invokeSync(NettyRemotingClient.java:407)
   	at org.apache.rocketmq.client.impl.MQClientAPIImpl.getTopicRouteInfoFromNameServer(MQClientAPIImpl.java:1379)
   	at org.apache.rocketmq.client.impl.MQClientAPIImpl.getTopicRouteInfoFromNameServer(MQClientAPIImpl.java:1369)
   	at org.apache.rocketmq.client.impl.factory.MQClientInstance.updateTopicRouteInfoFromNameServer(MQClientInstance.java:623)
   	... 7 more
   
   
   3. Please tell us about your environment:
   
   Mac OS 12.3
   rocketMQ 4.9.3
   
   


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] Oliverwqcwrw commented on issue #4043: The official website's 'order example' exec failed

Posted by GitBox <gi...@apache.org>.
Oliverwqcwrw commented on issue #4043:
URL: https://github.com/apache/rocketmq/issues/4043#issuecomment-1080110945


   The problem is that `nameserver` is not set, I think the example need to optimize, Do you think?


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] Oliverwqcwrw commented on issue #4043: The official website's 'order example' exec failed

Posted by GitBox <gi...@apache.org>.
Oliverwqcwrw commented on issue #4043:
URL: https://github.com/apache/rocketmq/issues/4043#issuecomment-1080101956


   The `com.aolifu.consumer.OrderedConsumer` also start failed,and error message is same


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] HScarb commented on issue #4043: The official website's 'order example' exec failed

Posted by GitBox <gi...@apache.org>.
HScarb commented on issue #4043:
URL: https://github.com/apache/rocketmq/issues/4043#issuecomment-1080126856


   When `nameserver` not set for client, it will get environment variable `NAMESRV_ADDR` as name server address by default.


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] Oliverwqcwrw commented on issue #4043: The official website's 'order example' exec failed

Posted by GitBox <gi...@apache.org>.
Oliverwqcwrw commented on issue #4043:
URL: https://github.com/apache/rocketmq/issues/4043#issuecomment-1080141014


   Thank you your reply


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] Oliverwqcwrw closed issue #4043: The official website's 'order example' exec failed

Posted by GitBox <gi...@apache.org>.
Oliverwqcwrw closed issue #4043:
URL: https://github.com/apache/rocketmq/issues/4043


   


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] RongtongJin commented on issue #4043: The official website's 'order example' exec failed

Posted by GitBox <gi...@apache.org>.
RongtongJin commented on issue #4043:
URL: https://github.com/apache/rocketmq/issues/4043#issuecomment-1080110108


   看起来是连接nameserver失败了,看下是否正确设置了nameserveer,以及producer与nameserver网络是否连通


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org