Replies: 1 comment
-
Sorry, I think I should post the issue at https://github.com/FasterXML/jackson-core. Close here. |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
The deserializer is claimed as
@JsonDeserialize(using = Subscriber.Deserializer.class)
and defined as below, which works perfectly in a jar file running withJava -jar
:But after I converted the jar file to a native image using GraalVM's native-image tool; it threw the below exception (at line
convertValue
) at run-time:I tried to use
MapType type = jsonObjectMapper.getTypeFactory().constructMapType(ConcurrentHashMap.class, Integer.class, Account.class)
instead ofTypeReference
and it resulted in the same.The
jackson.core version
is 2.16.1 and:native-image --version
native-image 21.0.2 2024-01-16
GraalVM Runtime Environment Oracle GraalVM 21.0.2+13.1 (build 21.0.2+13-LTS-jvmci-23.1-b30)
Substrate VM Oracle GraalVM 21.0.2+13.1 (build 21.0.2+13-LTS, serial gc, compressed references)
I posted this to StackOverflow and got no correct answer and I realized it may need to change the Jackson Jason lib.
Beta Was this translation helpful? Give feedback.
All reactions