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:
   ![image](https://user-images.githubusercontent.com/15797831/182029187-18848db8-74b1-4d83-aeaf-76a2d05c9b53.png)
   then project throws a  **java.lang.NullPointerException** :
   ![image](https://user-images.githubusercontent.com/15797831/182029248-be16da60-a0f2-4ff1-b4a6-c6eb27f282f9.png)
   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.
   ![image](https://user-images.githubusercontent.com/15797831/182029743-fa0230e0-6b9f-495a-b189-3cd4672791e7.png)
   


-- 
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