Skip to content

InvocationTargetException: java.lang.ClassCastException #257

Open
@spyhunter99

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions