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

   **Issue Evaluation**
   
   Category: `type/bug` | Status: **Confirmed**
   
   NullPointerException when listener sends to another topic is a valid bug 
caused by lifecycle ordering. If the `DefaultMQProducer` is destroyed before 
the listener finishes processing, subsequent send attempts will fail with NPE.
   
   **Root Cause:** Spring bean destruction order — producer shutdown happens 
before consumer/listener shutdown, leaving the listener with a null producer 
reference.
   **Impact:** Message loss during shutdown; exceptions in listener threads.
   **Severity:** High — affects message reliability during graceful shutdown.
   
   **Suggested fix:** Ensure proper `@DependsOn` ordering or implement 
`SmartLifecycle` with correct phase values so consumers stop before producers.
   
   ---
   *Automated evaluation by github-manager*


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