You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "tangtang-zhou (via GitHub)" <gi...@apache.org> on 2025/07/29 07:40:39 UTC

[I] 使用spring-boot:build-image编译出的程序无法发送消息 [rocketmq-spring]

tangtang-zhou opened a new issue, #739:
URL: https://github.com/apache/rocketmq-spring/issues/739

   在启动时可以正常连接:
   
   <img width="1092" height="29" alt="Image" src="https://github.com/user-attachments/assets/ea5d52aa-b733-4b43-8ec6-9a17890501a3" />
   在发送消息时会提示连接不上:
   
   <img width="1560" height="735" alt="Image" src="https://github.com/user-attachments/assets/54f5bd09-0ead-4c7d-aede-4cf203ae43ac" />
   
   <img width="1171" height="240" alt="Image" src="https://github.com/user-attachments/assets/b44ed2ca-4493-4337-8a25-ec7535d9734e" />
   但是用JVM运行时是正常的
   环境:
   openjdk version "17.0.5" 2022-10-18
   OpenJDK Runtime Environment GraalVM CE 22.3.0 (build 17.0.5+8-jvmci-22.3-b08)
   OpenJDK 64-Bit Server VM GraalVM CE 22.3.0 (build 17.0.5+8-jvmci-22.3-b08, mixed mode, sharing)


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


Re: [I] 使用spring-boot:build-image编译出的程序无法发送消息 [rocketmq-spring]

Posted by "tangtang-zhou (via GitHub)" <gi...@apache.org>.
tangtang-zhou closed issue #739: 使用spring-boot:build-image编译出的程序无法发送消息
URL: https://github.com/apache/rocketmq-spring/issues/739


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


Re: [I] 使用spring-boot:build-image编译出的程序无法发送消息 [rocketmq-spring]

Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #739:
URL: https://github.com/apache/rocketmq-spring/issues/739#issuecomment-5303317519

   **Issue Evaluation**
   
   Category: `question` | Status: **Needs Info**
   
   This appears to be a GraalVM native image compatibility issue with rocketmq-spring-boot-starter. The producer can connect at startup but fails when sending messages in the native-image build, while JVM mode works fine.
   
   To proceed with investigation, please provide:
   - [ ] The exact error message / stack trace when sending fails (the screenshot resolution is too low to read)
   - [ ] Which version of `rocketmq-spring-boot-starter` you are using
   - [ ] Whether you are using the V4 or V5 client under the hood
   - [ ] Your GraalVM native-image build configuration (any `--initialize-at-build-time` or reflection hints?)
   - [ ] Whether the issue is specific to GraalVM CE 22.3.0 or also reproducible with newer GraalVM versions
   
   Common causes for this pattern in native images:
   1. Netty DNS resolver not configured for native mode
   2. Reflection-based serialization missing `@RegisterForReflection`
   3. Remoting protocol classes not initialized at build time
   
   ---
   *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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org