[Commented] (MJAVADOC-540) Error injecting: org.apache.maven.plugin.javadoc.JavadocJarjava.lang.ExceptionInInitializerError

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Commented] (MJAVADOC-540) Error injecting: org.apache.maven.plugin.javadoc.JavadocJarjava.lang.ExceptionInInitializerError

JIRA jira@apache.org

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

Justin Künzel commented on MJAVADOC-540:
----------------------------------------

This error doesn't occurs with Java 8.

> Error injecting: org.apache.maven.plugin.javadoc.JavadocJarjava.lang.ExceptionInInitializerError
> ------------------------------------------------------------------------------------------------
>
>                 Key: MJAVADOC-540
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-540
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.9.1
>         Environment: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
> Maven home: C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.4\plugins\maven\lib\maven3
> Java version: 10, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk-10
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"
>            Reporter: Justin Künzel
>            Priority: Blocker
>              Labels: Java10
>
> If i use Java 10 with newest javadoc plugin, i get this exception:
> {code:java}
> [INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ project ---
> [WARNING] Error injecting: org.apache.maven.plugin.javadoc.JavadocJar
> java.lang.ExceptionInInitializerError
>     at org.apache.maven.plugin.javadoc.AbstractJavadocMojo.<clinit>(AbstractJavadocMojo.java:190)
>     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>     at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>     at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
>     at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:86)
>     at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105)
>     at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
>     at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:89)
>     at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
>     at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:133)
>     at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
>     at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:87)
>     at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
>     at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
>     at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
>     at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
>     at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051)
>     at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
>     at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
>     at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:53)
>     at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:65)
>     at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
>     at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176)
>     at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126)
>     at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
>     at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:63)
>     at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
>     at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
>     at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
>     at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
>     at org.eclipse.sisu.inject.Guice4$1.get(Guice4.java:162)
>     at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81)
>     at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
>     at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
>     at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
>     at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:517)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
>     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
>     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
>     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>     at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
> Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 2
>     at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3107)
>     at java.base/java.lang.String.substring(String.java:1873)
>     at org.apache.commons.lang.SystemUtils.getJavaVersionAsFloat(SystemUtils.java:1133)
>     at org.apache.commons.lang.SystemUtils.<clinit>(SystemUtils.java:818)
>     ... 60 more
> [INFO] ------------------------------------------------------------------------
> [...]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2.531 s
> [INFO] Finished at: 2018-10-12T01:14:50+02:00
> [INFO] Final Memory: 14M/64M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar (attach-javadocs) on project mmo-engine-client: Execution attach-javadocs of goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar: java.lang.ExceptionInInitializerError: null
> [ERROR] -----------------------------------------------------
> [ERROR] realm =    plugin>org.apache.maven.plugins:maven-javadoc-plugin:2.9.1
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] = file:/D:/Users/Justin/.m2/repository/org/apache/maven/plugins/maven-javadoc-plugin/2.9.1/maven-javadoc-plugin-2.9.1.jar
> [ERROR] urls[1] = file:/D:/Users/Justin/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar
> [ERROR] urls[2] = file:/D:/Users/Justin/.m2/repository/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar
> [ERROR] urls[3] = file:/D:/Users/Justin/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
> [ERROR] urls[4] = file:/D:/Users/Justin/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
> [ERROR] urls[5] = file:/D:/Users/Justin/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
> [ERROR] urls[6] = file:/D:/Users/Justin/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
> [ERROR] urls[7] = file:/D:/Users/Justin/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
> [ERROR] urls[8] = file:/D:/Users/Justin/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
> [ERROR] urls[9] = file:/D:/Users/Justin/.m2/repository/org/apache/maven/reporting/maven-reporting-api/3.0/maven-reporting-api-3.0.jar
> [ERROR] urls[10] = file:/D:/Users/Justin/.m2/repository/org/apache/maven/maven-archiver/2.5/maven-archiver-2.5.jar
> [ERROR] urls[11] = file:/D:/Users/Justin/.m2/repository/org/apache/maven/shared/maven-invoker/2.0.9/maven-invoker-2.0.9.jar
> [ERROR] urls[12] = file:/D:/Users/Justin/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/1.3/maven-common-artifact-filters-1.3.jar
> [ERROR] urls[13] = file:/D:/Users/Justin/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0/doxia-sink-api-1.0.jar
> [ERROR] urls[14] = file:/D:/Users/Justin/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.0/doxia-site-renderer-1.0.jar
> [ERROR] urls[15] = file:/D:/Users/Justin/.m2/repository/org/apache/maven/doxia/doxia-core/1.0/doxia-core-1.0.jar
> [ERROR] urls[16] = file:/D:/Users/Justin/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
> [ERROR] urls[17] = file:/D:/Users/Justin/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.jar
> [ERROR] urls[18] = file:/D:/Users/Justin/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar
> [ERROR] urls[19] = file:/D:/Users/Justin/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
> [ERROR] urls[20] = file:/D:/Users/Justin/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.0/doxia-decoration-model-1.0.jar
> [ERROR] urls[21] = file:/D:/Users/Justin/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar
> [ERROR] urls[22] = file:/D:/Users/Justin/.m2/repository/org/apache/maven/doxia/doxia-module-apt/1.0/doxia-module-apt-1.0.jar
> [ERROR] urls[23] = file:/D:/Users/Justin/.m2/repository/org/apache/maven/doxia/doxia-module-fml/1.0/doxia-module-fml-1.0.jar
> [ERROR] urls[24] = file:/D:/Users/Justin/.m2/repository/org/apache/maven/doxia/doxia-module-xdoc/1.0/doxia-module-xdoc-1.0.jar
> [ERROR] urls[25] = file:/D:/Users/Justin/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.0/doxia-module-xhtml-1.0.jar
> [ERROR] urls[26] = file:/D:/Users/Justin/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar
> [ERROR] urls[27] = file:/D:/Users/Justin/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar
> [ERROR] urls[28] = file:/D:/Users/Justin/.m2/repository/org/apache/httpcomponents/httpclient/4.2.3/httpclient-4.2.3.jar
> [ERROR] urls[29] = file:/D:/Users/Justin/.m2/repository/org/apache/httpcomponents/httpcore/4.2.2/httpcore-4.2.2.jar
> [ERROR] urls[30] = file:/D:/Users/Justin/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
> [ERROR] urls[31] = file:/D:/Users/Justin/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
> [ERROR] urls[32] = file:/D:/Users/Justin/.m2/repository/log4j/log4j/1.2.14/log4j-1.2.14.jar
> [ERROR] urls[33] = file:/D:/Users/Justin/.m2/repository/com/thoughtworks/qdox/qdox/1.12.1/qdox-1.12.1.jar
> [ERROR] urls[34] = file:/D:/Users/Justin/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
> [ERROR] urls[35] = file:/D:/Users/Justin/.m2/repository/org/codehaus/plexus/plexus-archiver/2.1.2/plexus-archiver-2.1.2.jar
> [ERROR] urls[36] = file:/D:/Users/Justin/.m2/repository/org/codehaus/plexus/plexus-io/2.0.4/plexus-io-2.0.4.jar
> [ERROR] urls[37] = file:/D:/Users/Justin/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.5/plexus-utils-3.0.5.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
> [ERROR]
> [ERROR] -----------------------------------------------------: begin 0, end 3, length 2
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
> Process finished with exit code 1
> {code}



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