Thread
#serialization
    i

    Ian

    6 months ago
    Hi, I'm getting this error when I run some Kotlin code on Elastic Beanstalk that I'm not getting when I run locally, it appears to be an exception within
    KClasses.getMemberProperties()
    . I'm using Kotlin 1.6.10 - would appreciate any suggestions:
    java.lang.ClassCastException: class kotlin.jvm.internal.ClassReference cannot be cast to class kotlin.reflect.jvm.internal.KClassImpl (kotlin.jvm.internal.ClassReference and kotlin.reflect.jvm.internal.KClassImpl are in unnamed module of loader 'app')
     at kotlin.reflect.full.KClasses.getMemberProperties(KClasses.kt:148)
    Just confirmed that I can reproduce locally if I use
    Amazon's Corretto-11.0.14.10.1 JRE
    , which is what's used on Elastic Beanstalk, so it appears to be sensitive to the JRE I'm using.