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

Build fails with NoSuchFieldError: EOF_TOKEN #24

Closed
dr0i opened this issue Nov 24, 2022 · 3 comments · Fixed by #25
Closed

Build fails with NoSuchFieldError: EOF_TOKEN #24

dr0i opened this issue Nov 24, 2022 · 3 comments · Fixed by #25
Assignees

Comments

@dr0i
Copy link
Member

dr0i commented Nov 24, 2022

Since metafix 0.4.0-SNAPSHOT uses rc versions of metafacture-core the build fails with:

org.metafacture.commons.reflection.ReflectionException: class could not be instantiated: class org.metafacture.metafix.Metafix
[...]
Caused by: java.lang.NoSuchFieldError: EOF_TOKEN

Relates to metafacture/metafacture-fix#266.

dr0i added a commit that referenced this issue Nov 24, 2022
Also pin antlr-runtime to 3.2.
This makes the build sucessful again.
dr0i added a commit that referenced this issue Nov 24, 2022
- pin antlr-runtime to 3.2.
- use cache in github actions

This makes the build sucessful again.
@fsteeg
Copy link
Member

fsteeg commented Nov 29, 2022

It seems the actually reproducible problem is the resolution of the metafacture-core RC dependency itself (I don't get the java.lang.NoSuchFieldError: EOF_TOKEN). It's the error both in the GitHub Action and also what I get locally (even when not explicitly depending on the RC): sbt.ResolveException: unresolved dependency: org.metafacture#metafacture-flowcontrol;metafacture-core-5.4.1-rc3: not found.

As far as I understand, the root problem is that since the switch to the RC (which is published on GitHub Packages, not Central) Fix now has a transitive dependency that can only be resolved from GitHub Packages. There seems to be an sbt plugin, but not for our versions of sbt and Scala.

@dr0i
Copy link
Member Author

dr0i commented Nov 29, 2022

What did you not like about e4f76b3 ? It seems to me more future proof, as it uses newer mf dependencies.

@dr0i
Copy link
Member Author

dr0i commented Nov 29, 2022

Ah - you also commented at #25 (comment) which I saw too late.

fsteeg added a commit that referenced this issue Nov 30, 2022
Remove cache and unify dependency exclusion (`dependencyOverrides`)
dr0i added a commit to metafacture/metafacture-playground that referenced this issue Mar 8, 2024
Similiar as hbz/rpb#24 where the build breaks
with "NoSuchFieldError: EOF_TOKEN".
dr0i added a commit to metafacture/metafacture-playground that referenced this issue Mar 8, 2024
- exclude conflicting dependency

Similiar as hbz/rpb#24 where the build breaks
with "NoSuchFieldError: EOF_TOKEN".
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.

2 participants