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

InvocationTargetException: java.lang.ClassCastException #257

Open
spyhunter99 opened this issue Jul 11, 2023 · 1 comment
Open

InvocationTargetException: java.lang.ClassCastException #257

spyhunter99 opened this issue Jul 11, 2023 · 1 comment

Comments

@spyhunter99
Copy link

I'm getting an interment issue when building with the following versions..

  • groovy 3.0.18
  • groovy-ant 3.0.18
  • GmavenPlus 3.0.0
  • openjdk11

my use case is basically to run some groovy scripts to download and cache and file and unzip it during the pre-integration-test phase using the maven plugin

Maven error

 Error occurred while calling a method on a Groovy class from classpath.: InvocationTargetException: java.lang.ClassCastException: class org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to class org.apache.xerces.xni.parser.XMLParserConfiguration (org.apache.xerces.parsers.XIncludeAwareParserConfiguration is in unnamed module of loader java.net.URLClassLoader @1182bd1c; org.apache.xerces.xni.parser.XMLParserConfiguration is in unnamed module of loader java.net.URLClassLoader @4d10f182) -> [Help 1]

usually if i just retry it, it's resume with no issue but i honestly have no idea what's causing this. It's usually pretty rare, but today i've been getting this nearly every time the plugin fires.

@keeganwitt
Copy link
Member

Sorry for the late reply. I missed this.

Can you provide a list of your project dependencies? It seems like maybe the classpath is being inconsistently constructed. Very strange...

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

No branches or pull requests

2 participants