maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé Boutemy (JIRA) <j...@apache.org>
Subject [jira] [Commented] (MNG-6543) Upgrade plexus classworld to support java 9+ ClassLoader.findClass(String moduleName, String name) in Mojos
Date Sun, 30 Dec 2018 15:49:00 GMT

    [ https://issues.apache.org/jira/browse/MNG-6543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16731003#comment-16731003
] 

Hervé Boutemy commented on MNG-6543:
------------------------------------

[~slachiewicz]thank you for the test: I could at least check that the issue happens already
with Java 9, and not only with Java 11.
And of course, most importantly, I could check that this ClassWorlds 2.6.0 release fixes the
issue :)

what I dislike in this example is that the symptom is really hard to link with the root cause:
{noformat}Caused by: java.lang.IllegalArgumentException: Prefix '' is already bound to ''
    at com.sun.xml.txw2.StartTag.addNamespaceDecl (StartTag.java:191)
    at com.sun.xml.txw2.ContainerElement._namespace (ContainerElement.java:333)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:564)
    at com.sun.xml.txw2.ContainerElement.invoke (ContainerElement.java:134)
    at com.sun.proxy.$Proxy31._namespace (Unknown Source)
    at com.sun.tools.xjc.addon.episode.PluginImpl.run (PluginImpl.java:174)
    at com.sun.tools.xjc.model.Model.generateCode (Model.java:292)
    at com.sun.tools.xjc.Driver.run (Driver.java:384)
    at org.codehaus.mojo.jaxb2.javageneration.AbstractJavaGeneratorMojo.performExecution (AbstractJavaGeneratorMojo.java:468){noformat}

did you have any chance to test with something related to package annotations, since it was
told this is something happening quite frequently?

> Upgrade plexus classworld to support java 9+ ClassLoader.findClass(String moduleName,
String name) in Mojos
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-6543
>                 URL: https://issues.apache.org/jira/browse/MNG-6543
>             Project: Maven
>          Issue Type: Bug
>          Components: Class Loading
>    Affects Versions: 3.6.0
>            Reporter: Romain Manni-Bucau
>            Assignee: Sylwester Lachiewicz
>            Priority: Major
>             Fix For: 3.6.1
>
>         Attachments: MNG-6543-xjc.zip
>
>
> Goal is to include https://github.com/codehaus-plexus/plexus-classworlds/pull/4 in Maven
and enable Mojos using this Java 9 new JPMS API to work under java 9+
> see [Java 9 ClassLoader.findClass(String moduleName,String name)|https://docs.oracle.com/javase/9/docs/api/java/lang/ClassLoader.html#findClass-java.lang.String-java.lang.String-]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message