DaanHoogland commented on code in PR #6356:
URL: https://github.com/apache/cloudstack/pull/6356#discussion_r875984062


##########
utils/src/main/java/com/cloud/utils/component/ComponentContext.java:
##########
@@ -72,8 +73,14 @@ public static void initComponentsLifeCycle() {
 
         Map<String, ComponentMethodInterceptable> interceptableComponents = 
getApplicationContext().getBeansOfType(ComponentMethodInterceptable.class);
         for (Map.Entry<String, ComponentMethodInterceptable> entry : 
interceptableComponents.entrySet()) {
-            Object bean = getTargetObject(entry.getValue());
-            beanFactory.configureBean(bean, entry.getKey());
+            try {
+                Object bean = getTargetObject(entry.getValue());
+                beanFactory.configureBean(bean, entry.getKey());
+            } catch (BeansException e){
+                s_logger.error(String.format("Could not load bean due to: 
[%s]. The service will be stopped. Please investigate the cause of the error or 
contact your support team.", e.getMessage()), e);

Review Comment:
   if this means exit, the log level should be `fatal`



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