Hi, I have a strange problem. When I run Ktor appl...
# ktor
r
Hi, I have a strange problem. When I run Ktor application from a gradle task (Kotlin MPP configuration), my custom Jackson objectmapper refuses to deserialize Kotlin sealed class with a message like this: "com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve type id 'com.example.SetBacktrackingSpeed' as a subtype of `com.example.CMessageType`: Not a subtype". But it works fine when I build and run a production shadow jar (with
java -jar
command). The class hierarchy is correct, I use
@JsonTypeInfo
annotations. It seems to be some kind of Ktor/Gradle problem, because almost the same app build with Javalin works fine, both from gradle and from standalone jar. Anyone has an idea what could cause this problem?