esper icon indicating copy to clipboard operation
esper copied to clipboard

Esper 8.8.0/8.9.0 not compatible with hibernate 6.*.*

Open Prashant8976 opened this issue 1 year ago • 5 comments

In latest spring boot applicarion , Esper 8.9.0 uses antlr 4.9.3 which is not working along with hibernate 6.2.* as it uses 4.10.1. Will esper 8.10.0 solve this issue ? When will you release it?

Prashant8976 avatar Oct 09 '23 08:10 Prashant8976

Is there an exception when forcing the new ANTLR version?

bernhardttom avatar Oct 09 '23 16:10 bernhardttom

Hibernate 6.. adds Antlr-runtime 4.10.1 jar, So esper gives following error

Antlr tool version 4.9.3 used for code generation does not match with current runtime version 4.10.1 Antlr tool version 4.9.3 used for parser compilation does not match with current runtime version 4.10.1 Java.io.invalidclassexception:org.antlr.v4.runtime.ATN; could not deserialize ATN with version 4(expected 3)

If antlr-runtime 4.9.3 is used, after excluding it from hibernate, jpa annotations doesnt work, it gives following error-

Antlr tool version 4.10.1 used generation does not match with current runtime version 4.9.3 Antlr tool version 4.10.1 used for parser compilation does not match with current runtime version 4.9.3 Error creating bean with name defined in @EnableJpaRepositries declared on JpaRepositoriesRegistrar.EnableJpaRepositries.Coniguration:null Java.io.invalidclassexception:org.antlr.v4.runtime.ATN; could not deserialize ATN with version 3(expected 4)

Prashant8976 avatar Oct 10 '23 17:10 Prashant8976

ANTLR has information on this issue here: https://github.com/antlr/antlr4/issues/3895 The script that regenerates the parser can be found in esper\compiler\grammar We don't have a date yet when the new version ships, but it would probably ship with the current 4.13.x version of ANTLR.

bernhardttom avatar Oct 10 '23 18:10 bernhardttom

This also means that esper is incompatible with Spring boot 3, since it uses hibernate 6, which is a critical issue on our project which needs to be migrated urgently to spring boot 3 but it's blocked by esper.

ggecy avatar Dec 15 '23 00:12 ggecy

Would be really good to get an update with the new ANTLR version soon. All newer Spring boot versions that still have OSS support require builds with the new ANTL to be compatible. For reference https://endoflife.date/spring-boot

thomaskemmer avatar Jan 03 '24 09:01 thomaskemmer

Changes are in version 9.0.0

bernhardttom avatar Apr 13 '24 13:04 bernhardttom