You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "shirenchuang (via GitHub)" <gi...@apache.org> on 2023/09/26 04:33:33 UTC

[GitHub] [rocketmq] shirenchuang opened a new issue, #7398: [Bug] ExportConfigsCommand NPE

shirenchuang opened a new issue, #7398:
URL: https://github.com/apache/rocketmq/issues/7398

   ### Before Creating the Bug Report
   
   - [X] I found a bug, not just asking a question, which should be created in [GitHub Discussions](https://github.com/apache/rocketmq/discussions).
   
   - [X] I have searched the [GitHub Issues](https://github.com/apache/rocketmq/issues) and [GitHub Discussions](https://github.com/apache/rocketmq/discussions)  of this repository and believe that this is not a duplicate.
   
   - [X] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.
   
   
   ### Runtime platform environment
   
   MacOS 12.6
   
   
   
   ### RocketMQ version
   
   release-5.1.3
   
   ### JDK Version
   
   jdk11
   
   ### Describe the Bug
   
   ![image](https://github.com/apache/rocketmq/assets/10442648/a5e25233-10eb-495c-a4bf-b26b8ad73893)
   
   ![image](https://github.com/apache/rocketmq/assets/10442648/116de220-2bef-43cf-a935-f43c43e7ab37)
   
   
   ### Steps to Reproduce
   
   run ExportConfigsCommand
   
   ### What Did You Expect to See?
   
   don't throw NPE
   
   ### What Did You See Instead?
   
   .
   
   ### Additional Context
   
   _No response_


-- 
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] lizhimins commented on issue #7398: [Bug] ExportConfigsCommand NPE

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins commented on issue #7398:
URL: https://github.com/apache/rocketmq/issues/7398#issuecomment-1734871903

   put null 是因为哪个参数没了?


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


[GitHub] [rocketmq] shirenchuang commented on issue #7398: [Bug] ExportConfigsCommand NPE

Posted by "shirenchuang (via GitHub)" <gi...@apache.org>.
shirenchuang commented on issue #7398:
URL: https://github.com/apache/rocketmq/issues/7398#issuecomment-1734866543

   > BTW,请问`ExportConfigsCommand`在Idea中调试RocketMQ时如何执行终端命令?非常感谢~
   
   你可以在 MQAdminStartup的main方法中添加一些参数
   
   ```java
       public static void main(String[] args) {
           String namesrv = "-n=127.0.0.1:9876";
           String clusterName = "-c=szz_cluster_a";
   
           //导出Broker配置文件
           args = new String[]{"exportConfigs",namesrv,clusterName};
           main0(args, null);
   
       }
   
   ```


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


[GitHub] [rocketmq] joeCarf commented on issue #7398: [Bug] ExportConfigsCommand NPE

Posted by "joeCarf (via GitHub)" <gi...@apache.org>.
joeCarf commented on issue #7398:
URL: https://github.com/apache/rocketmq/issues/7398#issuecomment-1734882557

   > > BTW,请问`ExportConfigsCommand`在Idea中调试RocketMQ时如何执行终端命令?非常感谢~
   > 
   > 你可以在 MQAdminStartup的main方法中添加一些参数
   > 
   > ```java
   >     public static void main(String[] args) {
   >         String namesrv = "-n=127.0.0.1:9876";
   >         String clusterName = "-c=szz_cluster_a";
   > 
   >         //导出Broker配置文件
   >         args = new String[]{"exportConfigs",namesrv,clusterName};
   >         main0(args, null);
   > 
   >     }
   > ```
   感谢


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


[GitHub] [rocketmq] joeCarf commented on issue #7398: [Bug] ExportConfigsCommand NPE

Posted by "joeCarf (via GitHub)" <gi...@apache.org>.
joeCarf commented on issue #7398:
URL: https://github.com/apache/rocketmq/issues/7398#issuecomment-1734875380

   > put null 是因为哪个参数没了?
   
   filterServerNums


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


[GitHub] [rocketmq] shirenchuang commented on issue #7398: [Bug] ExportConfigsCommand NPE

Posted by "shirenchuang (via GitHub)" <gi...@apache.org>.
shirenchuang commented on issue #7398:
URL: https://github.com/apache/rocketmq/issues/7398#issuecomment-1734860901

   > BTW, may I ask how you execute terminal commands like `ExportConfigsCommand` when debugging RocketMQ in Idea? Thanks a lot~
   
   直接跑源码debug 或者 执行sh脚本的时候开启远程端口然后再IDEA调试都可以的


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


[GitHub] [rocketmq] joeCarf commented on issue #7398: [Bug] ExportConfigsCommand NPE

Posted by "joeCarf (via GitHub)" <gi...@apache.org>.
joeCarf commented on issue #7398:
URL: https://github.com/apache/rocketmq/issues/7398#issuecomment-1734853254

   maybe you can assign this to me, I'd like to fix it.


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


[GitHub] [rocketmq] lizhimins closed issue #7398: [Bug] ExportConfigsCommand NPE

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed issue #7398: [Bug] ExportConfigsCommand NPE
URL: https://github.com/apache/rocketmq/issues/7398


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


[GitHub] [rocketmq] joeCarf commented on issue #7398: [Bug] ExportConfigsCommand NPE

Posted by "joeCarf (via GitHub)" <gi...@apache.org>.
joeCarf commented on issue #7398:
URL: https://github.com/apache/rocketmq/issues/7398#issuecomment-1734854420

   BTW, may I ask how you execute terminal commands like `ExportConfigsCommand` when debugging RocketMQ in Idea? Thanks a lot~


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