Failed to find class `com.fasterxml.jackson.databind.deser.std.DateDeserializers$TimestampDeserializer` for handling values of type
`java.sql.Timestamp`, problem: (java.lang.ClassNotFoundException) com.fasterxml.jackson.databind.deser.std.DateDeserializers$TimestampDeserializer
getting this error while running via native image on lambda; in Local its running fine
Seems like while fetching a timestamp from Database(also in timestamp) its giving error.
graalvm:20.3.2 gradle: 7 java: 8
tried adding the following in the reflection.Json file
{
"name": "com.fasterxml.jackson.databind.deser.std.DateDeserializers",
"allDeclaredConstructors": true,
"allPublicConstructors": true,
"allDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true,
"allDeclaredFields": true
},
tried adding in build.gradle
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.14.1'
Your reflection config should be mentioning different class,
com.fasterxml.jackson.databind.deser.std.DateDeserializers$TimestampDeserializer
rather than
com.fasterxml.jackson.databind.deser.std.DateDeserializers
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.