JiriOndrusek opened a new issue, #9587:
URL: https://github.com/apache/camel-quarkus/issues/9587

   Native build fails with `UnsupportedFeatureException: 
...InstrumentedUnpooledDirectByteBuf ... found in the image heap` (via 
`NettyFrameHandlerFactory$NettyFrameHandler.doWriteFrame`) once 
`com.rabbitmq.client.ConnectionFactory` is registered for reflection, e.g. 
`quarkus.camel.native.reflection.include-patterns=com.rabbitmq.client.ConnectionFactory`
 (needed to bind `camel.beans.x.rabbitConnectionFactory.host`). Reproduced on 
CQ main (Quarkus 4.0.1, amqp-client 5.37.0).
   
   Fix: initialize `com.rabbitmq.client.impl.NettyFrameHandlerFactory` and 
`...NettyFrameHandlerFactory$NettyFrameHandler` at run time in 
`SpringRabbitmqProcessor` (Netty isn't used by default anyway).
   
   Workaround: 
`quarkus.native.additional-build-args=--initialize-at-run-time=<both classes>`.
   
   _Generated with [Claude Code](https://claude.com/claude-code) on behalf of 
@JiriOndrusek_
   


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