Alan Boshier
02/22/2023, 12:00 PMANTLR Tool version 4.9.2 used for code generation does not match the current runtime version 4.10.1
ANTLR Runtime version 4.9.2 used for parser compilation does not match the current runtime version 4.10.1
...
Caused by: java.lang.ExceptionInInitializerError
at au.com.dius.pact.core.support.Version.parse(Version.java:79)
at au.com.dius.pact.core.model.DefaultPactReader.pactFromJson(PactReader.kt:219)
at au.com.dius.pact.core.model.DefaultPactReader.loadPact(PactReader.kt:214)
at au.com.dius.pact.provider.junitsupport.loader.PactBrokerLoader.loadPactsForProvider(PactBrokerLoader.kt:251)
at au.com.dius.pact.provider.junitsupport.loader.PactBrokerLoader.load(PactBrokerLoader.kt:120)
at au.com.dius.pact.provider.junit5.PactVerificationInvocationContextProvider$resolvePactSources$pactSources$1$pacts$1.invoke(PactJUnit5VerificationProvider.kt:83)
at au.com.dius.pact.core.support.KotlinLanguageSupportKt.handleWith(KotlinLanguageSupport.kt:39)
... 60 more
Caused by: java.lang.UnsupportedOperationException: java.io.InvalidClassException: org.antlr.v4.runtime.atn.ATN; Could not deserialize ATN with version 3 (expected 4).
at org.antlr.v4.runtime.atn.ATNDeserializer.deserialize(ATNDeserializer.java:56)
at org.antlr.v4.runtime.atn.ATNDeserializer.deserialize(ATNDeserializer.java:48)
at au.com.dius.pact.core.support.VersionLexer.<clinit>(VersionLexer.java:115)
... 67 more
Caused by: java.io.InvalidClassException: org.antlr.v4.runtime.atn.ATN; Could not deserialize ATN with version 3 (expected 4).
... 70 more
I'm guessing that the problem is that an Antlr 4 runtime dependency has been introduced via an uprev from Hibernate 5 to 6 (itself triggered by the uprev from Spring Boot 2 to 3), but pact needs Antlr 3.
Is there any way around this? tiauglyog
uglyog
Alan Boshier
02/23/2023, 7:42 AMAlan Boshier
02/23/2023, 9:38 AMuglyog
Alan Boshier
02/24/2023, 7:47 AM