Skip to content
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

com.fasterxml.jackson.dataformat:jackson-dataformat-csv is needed when io.confluent:kafka-avro-serializer > 7.2.0 #45743

Closed
teimyBr opened this issue Jan 21, 2025 · 3 comments
Labels
area/jackson Issues related to Jackson (JSON library) area/kafka area/native-image kind/question Further information is requested

Comments

@teimyBr
Copy link

teimyBr commented Jan 21, 2025

Describe the bug

com.fasterxml.jackson.dataformat:jackson-dataformat-csv is needed when io.confluent:kafka-avro-serializer > 7.2.0 in Native Build

In normal build this is not needed

Error: Discovered unresolved type during parsing: com.fasterxml.jackson.dataformat.csv.CsvMapper. This error is reported at image build time because class io.confluent.kafka.serializers.AbstractKafkaSchemaSerDe$ListPropertyParser is registered for linking at image build time by command line and command line.

Expected behavior

io.confluent:kafka-avro-serializer can be used in native build without com.fasterxml.jackson.dataformat:jackson-dataformat-csv

Locally this not needed to add

Actual behavior

Error: Discovered unresolved type during parsing: com.fasterxml.jackson.dataformat.csv.CsvMapper. This error is reported at image build time because class io.confluent.kafka.serializers.AbstractKafkaSchemaSerDe$ListPropertyParser is registered for linking at image build time by command line and command line.

Comes when io.confluent:kafka-avro-serializer > 7.2.0

How to Reproduce?

  1. Build Native with io.confluent:kafka-avro-serializer > 7.2.0
  2. Error in native build shows up

Output of uname -a or ver

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 or gradlew --version)

Gradle 8.12

Additional information

No response

@teimyBr teimyBr added area/native-image kind/bug Something isn't working labels Jan 21, 2025
@quarkus-bot quarkus-bot bot added the area/jackson Issues related to Jackson (JSON library) label Jan 21, 2025
Copy link

quarkus-bot bot commented Jan 21, 2025

/cc @Karm (native-image), @alesj (kafka), @cescoffier (kafka), @galderz (native-image), @geoand (jackson), @gsmet (jackson), @mariofusco (jackson), @ozangunalp (kafka), @zakkak (native-image)

@zakkak
Copy link
Contributor

zakkak commented Jan 21, 2025

Hi @teimyBr, this is happening because Quarkus enables link-at-build-time which requires all reachable classes to be on the classpath. Please see https://quarkus.io/version/main/guides/native-reference#i-get-a-analysiserrorparsingerror-when-building-a-native-executable-due-to-an-unresolvedelementexception-what-can-i-do for more information.

@teimyBr teimyBr closed this as completed Jan 21, 2025
@geoand geoand added kind/question Further information is requested and removed kind/bug Something isn't working labels Jan 21, 2025
@ozangunalp
Copy link
Contributor

This was also mentioned in the doc: https://quarkus.io/guides/kafka-schema-registry-avro#confluent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/jackson Issues related to Jackson (JSON library) area/kafka area/native-image kind/question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants