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/07/31 14:01:13 UTC
[GitHub] [rocketmq] mxsm opened a new issue, #4745: DLedgerController create DLedgerServer not check controllerDLegerPeers and controllerDLegerSelfId result in throw NullPointerException
mxsm opened a new issue, #4745:
URL: https://github.com/apache/rocketmq/issues/4745
When start Controller,only set ROCKETMQ_HOME, as following pictrue:

then project throws a **java.lang.NullPointerException** :

why? Because ControllerConfig class attribute **controllerDLegerPeers** is null, but this attribute cannot be null. in ControllerConfig class has three attributes:
- controllerDLegerGroup
- controllerDLegerPeers
- controllerDLegerSelfId
if not config in file, they will be null. when we create DLedgerServer controllerDLegerPeers and controllerDLegerSelfId must have a value. so when we create DLedgerServer must check.

--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] RongtongJin closed issue #4745: DLedgerController create DLedgerServer not check controllerDLegerPeers and controllerDLegerSelfId result in throw NullPointerException
Posted by GitBox <gi...@apache.org>.
RongtongJin closed issue #4745: DLedgerController create DLedgerServer not check controllerDLegerPeers and controllerDLegerSelfId result in throw NullPointerException
URL: https://github.com/apache/rocketmq/issues/4745
--
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] mxsm commented on issue #4745: DLedgerController create DLedgerServer not check controllerDLegerPeers and controllerDLegerSelfId result in throw NullPointerException
Posted by GitBox <gi...@apache.org>.
mxsm commented on issue #4745:
URL: https://github.com/apache/rocketmq/issues/4745#issuecomment-1200562714
> @mxsm Could you help optimize this issue?
I will submit a PR optimize this issue
--
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 #4745: DLedgerController create DLedgerServer not check controllerDLegerPeers and controllerDLegerSelfId result in throw NullPointerException
Posted by GitBox <gi...@apache.org>.
RongtongJin commented on issue #4745:
URL: https://github.com/apache/rocketmq/issues/4745#issuecomment-1200444568
@mxsm Could you help optimize this issue?
--
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