java.io.NotSerializableException: com.sun.el.ExpressionFactoryImpl
by James Todd
Hi -
I am running Jakarta Bean Validation 6.1.2 under Apache Flink and running
into the included "Caused by: java.io.NotSerializableException:
com.sun.el.ExpressionFactoryImpl" error.
Here are the gradle deps:
compile 'org.hibernate.validator:hibernate-validator:6.1.2.Final'
compile 'org.glassfish:jakarta.el:3.0.3'
Thoughts?
thx,
- james
org.apache.flink.api.common.InvalidProgramException:
com.sun.el.ExpressionFactoryImpl@7ca33c24 is not serializable. The object
probably contains or references non serializable fields.
at org.apache.flink.api.java.ClosureCleaner.clean(ClosureCleaner.java:151)
at org.apache.flink.api.java.ClosureCleaner.clean(ClosureCleaner.java:126)
at org.apache.flink.api.java.ClosureCleaner.clean(ClosureCleaner.java:126)
at org.apache.flink.api.java.ClosureCleaner.clean(ClosureCleaner.java:126)
at org.apache.flink.api.java.ClosureCleaner.clean(ClosureCleaner.java:126)
at org.apache.flink.api.java.ClosureCleaner.clean(ClosureCleaner.java:71)
at
org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.clean(StreamExecutionEnvironment.java:1821)
at
org.apache.flink.streaming.api.datastream.DataStream.clean(DataStream.java:188)
at
org.apache.flink.streaming.api.datastream.DataStream.map(DataStream.java:590)
at com.lacuna.data.mds.EventProcessor.main(EventProcessor.java:49)
Caused by: java.io.NotSerializableException:
com.sun.el.ExpressionFactoryImpl
at
java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1185)
at
java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:349)
WARNING: An illegal reflective access operation has occurred
4 years, 8 months