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

   1. Please describe the issue you observed:
   when I start Controller module, and not config rocketmqHome . then throw 
Exception
   ```
   ch.qos.logback.core.joran.spi.JoranException: Could not open 
[null\conf\logback_controller.xml].
        at 
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:85)
        at 
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:72)
        at 
org.apache.rocketmq.controller.ControllerStartup.createControllerManager(ControllerStartup.java:112)
        at 
org.apache.rocketmq.controller.ControllerStartup.main0(ControllerStartup.java:57)
        at 
org.apache.rocketmq.controller.ControllerStartup.main(ControllerStartup.java:51)
   Caused by: java.io.FileNotFoundException: null\conf\logback_controller.xml 
(系统找不到指定的路径。)
        at java.base/java.io.FileInputStream.open0(Native Method)
        at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
        at 
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:80)
        ... 4 more
   ```
   hope to pre-check,if not set rocketmqHome  should Give a prompt and exit the 
system
   
![image](https://user-images.githubusercontent.com/15797831/181207089-4c288d72-48dd-478d-acb7-2cc17e79f9c6.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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to