RockteMQ-AI commented on issue #749:
URL: 
https://github.com/apache/rocketmq-spring/issues/749#issuecomment-5190995486

   **Issue Evaluation**
   
   Category: `bug` | Status: **Confirmed**
   
   **Root Cause:** `NoClassDefFoundError: 
org/apache/rocketmq/shaded/com/google/common/util/concurrent/AbstractService` 
during graceful shutdown indicates a class loading issue. The shaded Guava 
classes are not available during the shutdown sequence, likely due to:
   - Classloader hierarchy issues during Spring Boot shutdown
   - Premature cleanup of the classloader before all beans are stopped
   - Missing dependency or incorrect shading configuration
   
   **Impact:** Consumer beans fail to stop cleanly during application shutdown, 
potentially causing resource leaks or incomplete message processing.
   
   **Severity:** medium
   
   **Suggested fix:**
   - Ensure the shaded Guava classes are properly included in the classpath 
during shutdown
   - Review the shutdown order of Spring beans to ensure RocketMQ consumers are 
stopped before classloader cleanup
   - Consider using `@PreDestroy` or `DisposableBean` with explicit lifecycle 
management
   
   ---
   *Automated evaluation by RockteMQ-AI*


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