-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native Build fails with io.confluent:kafka-streams-avro-serde to v7.8.0 #45742
Comments
/cc @Karm (native-image), @alesj (kafka,kafka-streams), @cescoffier (kafka), @galderz (native-image), @gunnarmorling (kafka-streams), @ozangunalp (kafka,kafka-streams), @rquinio (kafka-streams), @zakkak (native-image) |
7.5.x is quite old. I guess Quarkus should not depend on such old versions. I guess everyone want to use quite new versions |
We should rewrite with something like: for any version > 7.4... |
io.confluent:kafka-streams-avro-serde to v7.5.1 works quite well on your side, but i would be cool if we can also use 7.6.x, 7.7.x, or even 7.8.x 7.4.x and 7.5.x is quite old |
Quarkus doesn't depend on confluent serde artifacts, in any way, they are published to Confluent maven repository not to the Maven central. So yes we should write something like "> 7.4". |
If i want to use implementation 'io.confluent:kafka-streams-avro-serde:7.8.0' how i can get the Native Build running without failing ? |
You may need extra native compilation metadata. I would recommend asking directly to Confluent. They can add the metadata in the jar directly. Do you have a stack trace or something? |
Describe the bug
Native Build fails with io.confluent:kafka-streams-avro-serde to v7.8.0
With newer Version then 7.5.1 Quarkus Native Build fails.
Error: An object of type 'org.apache.avro.reflect.ReflectData$AllowNull' was found in the image heap. This type, however, is marked for initialization at image run time for the following reason: classes are initialized at run time by default.
Expected behavior
Native Build works with every io.confluent:kafka-streams-avro-serde version
Actual behavior
Qurkus Native Build show this Error
Error: An object of type 'org.apache.avro.reflect.ReflectData$AllowNull' was found in the image heap. This type, however, is marked for initialization at image run time for the following reason: classes are initialized at run time by default.
How to Reproduce?
Output of
uname -a
orver
No response
Output of
java -version
Java version: 21.0.2+13
Mandrel or GraalVM version (if different from Java)
GraalVM CE 21.0.2+13.1
Quarkus version or git rev
3.17.7
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 8.12
Additional information
No response
The text was updated successfully, but these errors were encountered: