You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described there spring-kafka tries to serialize exceptions, which fails with
java.lang.RuntimeException: Could not deserialize type java.io.NotSerializableException with message kotlin.reflect.jvm.internal.KParameterImpl failure: kotlin.reflect.jvm.internal.KParameterImpl
To Reproduce
Create an instance of com.fasterxml.jackson.module.kotlin.MissingKotlinParameterException
Create an ObjectOutputStream and try to write the exception object into the stream
Expected behavior
As MissingKotlinParameterException implements Serializable it should be serializable without any execptions.
Three options:
a) make KParameter property transient
b) implement special handling of non-serializable properties by implemeting writeObject/readObject
c) Request the kotlin people to implement KParameter classes as serializable