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
We are trying to use Apache spark in our existing application. Spark is using Antlr4 version 4.9. While Hibernate 6 is using Antlr4 version 4.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.
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?
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.
The text was updated successfully, but these errors were encountered: