Missing native image hints for JDK proxies created by JMS connection factories #33590
Labels
in: messaging
Issues in messaging modules (jms, messaging)
theme: aot
An issue related to Ahead-of-time processing
type: bug
A general bug
Milestone
Affects: v6.2.0-RC1
Classes (may be incomplete, but these two were sufficient for working send/receive example via JMS queue)
org.springframework.jms.connection.SingleConnectionFactory
org.springframework.jms.connection.CachingConnectionFactory
use JDK proxies to obtain
jakarta.jms.Connection
andorg.springframework.jms.connection.SessionProxy
, among others, but there are no native image hints, so any attempt to send/receive a JMS message in native-image will fail with exceptions similar to one belowI was able to capture and create proxy-config.json using graalvm native agent but as far as I know, native image hints are provided by META-INF/spring/aot.factories and/or org.springframework.aot.hint.RuntimeHintsRegistrar
Please find a reproducer here: https://github.com/krezovic/artemis-native-demo - branch "bugreport" ... "main" branch contains the proxy hints file
Run it with:
If adding of native image hints is responsibility of spring-boot, then please let me know and I will move the issue accordingly.
The text was updated successfully, but these errors were encountered: