Open c-schmitz-tsystems opened 3 months ago
This could be a version discrepancy with your set up (older version of jackson-databind
, pre-2.17)? Method referenced in exception was added in 2.17, I think. So it could be that 2.17 of jackson-dataformat-xml
was being compiled against jackson-databind
of 2.16 or earlier.
Other than that, I don't think there is anything this module can do about the issue: it would probably require your adding of reference to some type to retain for Native image.
@c-schmitz-tsystems hi there. I faced that problem today and found the cause and the solution.
The method com.fasterxml.jackson.databind.PropertyName.merge(com.fasterxml.jackson.databind.PropertyName, com.fasterxml.jackson.databind.PropertyName)
that is being invoked was introduced in Jackson v2.17.0 and the issue appears when jackson-databind version is less than the dataformat-xml.
In my case, spring-boot-starter-json was loading it with version 2.15.4.
And the solution was to make those dependencies having the identical versions: 2.15.4 or 2.17.0
Thank you for sharing @rpkyrych. This makes sense.
Running Quarkus native-image plugin on MANDREL 23.1.2.0 JDK 21.0.2+13-LTS