Native image error
#35524
Replies: 1 comment 5 replies
-
My guess would be that your Jackson versions are not consistent. Could you check that? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello, I'm doing an upgrade of the quarkus to V3 and my build is running locally, but during the build of the native image I have this error. How to fix it?
Java version: 17.0.8+9-LTS, vendor version: Oracle GraalVM 17.0.8+9.1
[2/8] Performing analysis... [] (52.7s @ 1.32GB)
15,836 (79.45%) of 19,931 types reachable
21,547 (51.47%) of 41,862 fields reachable
78,184 (48.91%) of 159,853 methods reachable
5,309 types, 503 fields, and 5,187 methods registered for reflection
1 native library: -framework *******
Fatal error: com.oracle.graal.pointsto.util.AnalysisError$ParsingError: Error encountered while parsing com.oracle.svm.core.code.FactoryMethodHolder.CsvParser_constructor_55e2e9164aea69da3d88f35a7d7d56fddc9a218d(generated:0)
Parsing context:
Caused by: org.graalvm.compiler.java.BytecodeParser$BytecodeParserError: com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered unresolved method during parsing: com.fasterxml.jackson.core.io.IOContext.streamReadConstraints(). This error is reported at image build time because class com.fasterxml.jackson.dataformat.csv.CsvParser is registered for linking at image build time by command line
Caused by: com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered unresolved method during parsing: com.fasterxml.jackson.core.io.IOContext.streamReadConstraints(). This error is reported at image build time because class com.fasterxml.jackson.dataformat.csv.CsvParser is registered for linking at image build time by command line
[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:3.0.4.Final:build (default) on project case-version-lambda: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR] [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: io.quarkus.deployment.pkg.steps.NativeImageBuildStep$ImageGenerationFailureException: Image generation failed. Exit code: 1
Beta Was this translation helpful? Give feedback.
All reactions