follow this workaround solves the problem (temporarily)
Workaround: use -Xsam-conversions=class
https://youtrack.jetbrains.com/issue/KT-46359#focus=Comments-27-4862857.0-0
org.jetbrains.kotlin
kotlin-maven-plugin
${kotlin.version}
-Xsam-conversions=class
Hi!
Probably related to this:
https://youtrack.jetbrains.com/issue/KT-46373
"Since 1.5, SAM-converted lambdas are generated using invokedynamic with
bootstrap method from java.lang.invoke.LambdaMetafactory.
Resulting proxy classes are not Serializable by default.”
So your lambda’s in WizardPage
more detail log :
2021-04-30 12:43:44.076 [http-nio-8080-exec-2] WARN
o.a.w.c.u.o.c.CheckingObjectOutputStream.internalCheck - error delegating
to writeObject : Non-serializable lambda, path: /children/[write:1]/data
2021-04-30 12:43:44.078 [http-nio-8080-exec-2] WARN
o.a.w.c.u.o.c.CheckingObjec
I was using Kotlin 1.4.32 with wicket 8.11
but after upgrading to Kotlin 1.5.0 , it throws :
Caused by: java.io.NotSerializableException: Non-serializable lambda
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessor