You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/12/16 09:06:51 UTC
[GitHub] [rocketmq-site] WesleyOne opened a new issue, #400: 06consumertype SimpleConsumer code NPE
WesleyOne opened a new issue, #400:
URL: https://github.com/apache/rocketmq-site/issues/400
https://rocketmq.apache.org/zh/docs/featureBehavior/06consumertype
`SimpleConsumer`章节的代码启动报NPE
`awaitDuration`必须设置但未设置造成
```
Exception in thread "main" java.lang.NullPointerException: awaitDuration has not been set yet
at org.apache.rocketmq.shaded.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:907)
at org.apache.rocketmq.client.java.impl.consumer.SimpleConsumerBuilderImpl.build(SimpleConsumerBuilderImpl.java:79)
at org.example.SimpleConsumerExample.main(SimpleConsumerExample.java:35)
```
--
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: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-site] RongtongJin closed issue #400: 06consumertype SimpleConsumer code NPE
Posted by "RongtongJin (via GitHub)" <gi...@apache.org>.
RongtongJin closed issue #400: 06consumertype SimpleConsumer code NPE
URL: https://github.com/apache/rocketmq-site/issues/400
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org