-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Kafka in native-image fails when using SSL bundles #44435
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Workaround until this is fixed: class MyHint implements RuntimeHintsRegistrar {
@Override
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
hints.reflection().registerType(SslBundleSslEngineFactory.class, MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS);
}
} and |
Hello @mhalbritter , Just wanted to say thank you for this, you beat me to this. and here: I was going to send the minimal https://github.com/patpatpat123/issuekafkasslbundle And saw this post only after. Again, thank you for doing this. Good day! |
Hello @mhalbritter , Apologies for breaking the etiquette and posting on a closed thread. Just wanted to confirm this fix should be within 3.4.4 right? Because we just bumped everything to 3.4.4 and still seeing this issue:
Wondering what did I do wrong. I did not apply (just bump the version and built a native image)
To add more details, GraalVM24. 3.4.4 NON native image will work fine. Once it is native image GraalVm24 + 3.4.4, exception is reproducible |
Yeah, that fix is in 3.4.4. I just looked at your sample and you're using |
I see. Understood. Many thanks |
There's a runtime hint missing for
org.springframework.boot.autoconfigure.kafka.SslBundleSslEngineFactory
.The text was updated successfully, but these errors were encountered: