Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quarkus application is failing with the uncompatite antl4 runtime #84

Closed
zhfeng opened this issue Jan 11, 2023 · 1 comment
Closed

quarkus application is failing with the uncompatite antl4 runtime #84

zhfeng opened this issue Jan 11, 2023 · 1 comment

Comments

@zhfeng
Copy link
Collaborator

zhfeng commented Jan 11, 2023

When upgrade to quarkus 2.15.x which depends on antlr 4.10.1, the application is failing to star with

java.io.InvalidClassException: org.antlr.v4.runtime.atn.ATN; Could not deserialize ATN with version 3 (expected 4).

The workaround is to stick with the old antlr version 4.9.2 in the application pom.xml which looks like sharding-sphere has.

<properties>
    <antlr.version>4.9.2</antlr.version>
</properties>
<dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>${quarkus.platform.group-id}</groupId>
        <artifactId>${quarkus.platform.artifact-id}</artifactId>
        <version>${quarkus.platform.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>org.antlr</groupId>
        <artifactId>antlr4-runtime</artifactId>
        <version>${antlr.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

And it could be possible for upgrade antlr in sharding-sphere.

@zhfeng
Copy link
Collaborator Author

zhfeng commented Apr 20, 2023

It should be fixed in shardingsphere 5.3.2

@zhfeng zhfeng closed this as completed Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant