Open praval-123 opened 6 months ago
It's a duplicate. Please take a look at the following issues:
From above issues, I understand that between antlr 4.9
and 4.10
antlr4 store the ATN serialized in different formats, version 3 and 4. the respective runtimes, coming with the runtime dependency, are incompatible. It means apache spark (latest version) is incompatible with Hibernate 6 which is used with latest Spring boot and Java 17.
Is there any workaround or Apache Spark needs to updated with antlr4 4.10
version only?
Spark parser needs to be regenerated.
We are trying to use
Apache spark
in our existing application. Spark is usingAntlr4
version4.9
. WhileHibernate 6
is usingAntlr4
version4.10
.Antlr has made changes between 4.9 version and 4.10 version which is causing below issue.
Caused by: java.lang.UnsupportedOperationException: java.io.InvalidClassException: org.antlr.v4.runtime.atn.ATN; Could not deserialize ATN with version 3 (expected 4).
We are using below dependencies in our application which is running with Spring Boot 3.2.3 and Java 17. Below are the maven dependencies we are using.