You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Francesco Chicchiricc�� <il...@apache.org> on 2017/09/01 07:01:37 UTC

Errors with Log4j 2.9.0

Hi there,
Apache Syncope provides a Netbeans plugin, in a Maven module (see the sources here [1]).

Up to Log4j 2.8.2 everything works fine; when instead we upgrade Log4j to 2.9.0, the following error is returned by Maven:

[ERROR] Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest (default-manifest) on project syncope-ide-netbeans: Execution default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.: IllegalArgumentException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest (default-manifest) on project syncope-ide-netbeans: Execution default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
        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:309)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        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)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 20 more
Caused by: java.lang.IllegalArgumentException
        at org.objectweb.asm.ClassReader.<init>(Unknown Source)
        at org.objectweb.asm.ClassReader.<init>(Unknown Source)
        at org.objectweb.asm.ClassReader.<init>(Unknown Source)
        at org.apache.maven.shared.dependency.analyzer.asm.DependencyClassFileVisitor.visitClass(DependencyClassFileVisitor.java:65)
        at org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.visitClass(ClassFileVisitorUtils.java:163)
        at org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.acceptJar(ClassFileVisitorUtils.java:107)
        at org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.accept(ClassFileVisitorUtils.java:61)
        at org.apache.maven.shared.dependency.analyzer.asm.ASMDependencyAnalyzer.analyze(ASMDependencyAnalyzer.java:50)
        at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.buildDependencyClasses(NetBeansManifestUpdateMojo.java:920)
        at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.buildProjectDependencyClasses(NetBeansManifestUpdateMojo.java:763)
        at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.checkModuleClassPath(NetBeansManifestUpdateMojo.java:667)
        at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.execute(NetBeansManifestUpdateMojo.java:530)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        ... 21 more

Any idea?

TIA
Regards.

[1] https://github.com/apache/syncope/tree/2_0_X/ide/netbeans

Re: Errors with Log4j 2.9.0

Posted by Emilian Bold <em...@gmail.com>.
You're welcome!

See
http://www.mojohaus.org/nbm-maven-plugin/manifest-mojo.html#verifyRuntime

If basically does a non-mandatory double-check:

Verify the runtime NetBeans module dependencies and Class-Path items
> generated from Maven dependencies. The check is done by matching classes
> used in current project. Allowed values for the parameter are fail, warn
> and skip. The default is fail in which case the validation failure results
> in a failed build, in the vast majority of cases the module would fail at
> runtime anyway.




--emi

On Fri, Sep 1, 2017 at 10:17 AM, Francesco Chicchiriccò <ilgrosso@apache.org
> wrote:

> On 2017-09-01 09:09, Emilian Bold <em...@gmail.com> wrote:
> > BTW, you could just skip verification:
> >
> >                 <groupId>org.codehaus.mojo</groupId>
> >                 <artifactId>nbm-maven-plugin</artifactId>
> >                 <extensions>true</extensions>
> >                 <configuration>
> >                     <verifyRuntime>skip</verifyRuntime>
> >                 </configuration>
>
> Hi Emilian,
> not sure to understand what this does, but it worked. thanks!
>
> https://github.com/apache/syncope/commit/b2dc833c9fb32a9c4eec3e0f69b07b
> 871312344b
>
> Regards.
>
> > On Fri, Sep 1, 2017 at 10:08 AM, Emilian Bold <em...@gmail.com>
> wrote:
> > > Seems to be ASM related. I found this comment here
> > > https://github.com/jdbi/jdbi/issues/144
> > >
> > >> ASM 3.x has known issues running with Java 8, specifically that
> ClassReader IllegalArgumentException. It's fixed in ASM 5.0.2.
> > >
> > > Except that nbm-maven-plugin:4.1 already uses ASM 5.0.2, so perhaps
> > > it's some other ASM bug?
> > >
> > > --emi
> > >
> > >
> > > On Fri, Sep 1, 2017 at 10:01 AM, Francesco Chicchiriccò
> > > <il...@apache.org> wrote:
> > >> Hi there,
> > >> Apache Syncope provides a Netbeans plugin, in a Maven module (see the
> sources here [1]).
> > >>
> > >> Up to Log4j 2.8.2 everything works fine; when instead we upgrade
> Log4j to 2.9.0, the following error is returned by Maven:
> > >>
> > >> [ERROR] Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest
> (default-manifest) on project syncope-ide-netbeans: Execution
> default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest
> failed.: IllegalArgumentException -> [Help 1]
> > >> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest
> (default-manifest) on project syncope-ide-netbeans: Execution
> default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest
> failed.
> > >>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
> MojoExecutor.java:213)
> > >>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
> MojoExecutor.java:154)
> > >>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
> MojoExecutor.java:146)
> > >>         at org.apache.maven.lifecycle.internal.
> LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
> > >>         at org.apache.maven.lifecycle.internal.
> LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
> > >>         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:
> 309)
> > >>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> 194)
> > >>         at org.apache.maven.DefaultMaven.
> execute(DefaultMaven.java:107)
> > >>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
> > >>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
> > >>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
> > >>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> > >>         at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> > >>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> > >>         at java.lang.reflect.Method.invoke(Method.java:498)
> > >>         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)
> > >> Caused by: org.apache.maven.plugin.PluginExecutionException:
> Execution default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest
> failed.
> > >>         at org.apache.maven.plugin.DefaultBuildPluginManager.
> executeMojo(DefaultBuildPluginManager.java:145)
> > >>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
> MojoExecutor.java:208)
> > >>         ... 20 more
> > >> Caused by: java.lang.IllegalArgumentException
> > >>         at org.objectweb.asm.ClassReader.<init>(Unknown Source)
> > >>         at org.objectweb.asm.ClassReader.<init>(Unknown Source)
> > >>         at org.objectweb.asm.ClassReader.<init>(Unknown Source)
> > >>         at org.apache.maven.shared.dependency.analyzer.asm.
> DependencyClassFileVisitor.visitClass(DependencyClassFileVisitor.java:65)
> > >>         at org.apache.maven.shared.dependency.analyzer.
> ClassFileVisitorUtils.visitClass(ClassFileVisitorUtils.java:163)
> > >>         at org.apache.maven.shared.dependency.analyzer.
> ClassFileVisitorUtils.acceptJar(ClassFileVisitorUtils.java:107)
> > >>         at org.apache.maven.shared.dependency.analyzer.
> ClassFileVisitorUtils.accept(ClassFileVisitorUtils.java:61)
> > >>         at org.apache.maven.shared.dependency.analyzer.asm.
> ASMDependencyAnalyzer.analyze(ASMDependencyAnalyzer.java:50)
> > >>         at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.
> buildDependencyClasses(NetBeansManifestUpdateMojo.java:920)
> > >>         at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.
> buildProjectDependencyClasses(NetBeansManifestUpdateMojo.java:763)
> > >>         at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.
> checkModuleClassPath(NetBeansManifestUpdateMojo.java:667)
> > >>         at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.execute(
> NetBeansManifestUpdateMojo.java:530)
> > >>         at org.apache.maven.plugin.DefaultBuildPluginManager.
> executeMojo(DefaultBuildPluginManager.java:134)
> > >>         ... 21 more
> > >>
> > >> Any idea?
> > >>
> > >> TIA
> > >> Regards.
> > >>
> > >> [1] https://github.com/apache/syncope/tree/2_0_X/ide/netbeans
> >
>

Re: Errors with Log4j 2.9.0

Posted by Francesco Chicchiricc�� <il...@apache.org>.
On 2017-09-01 09:09, Emilian Bold <em...@gmail.com> wrote: 
> BTW, you could just skip verification:
> 
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>nbm-maven-plugin</artifactId>
>                 <extensions>true</extensions>
>                 <configuration>
>                     <verifyRuntime>skip</verifyRuntime>
>                 </configuration>

Hi Emilian,
not sure to understand what this does, but it worked. thanks!

https://github.com/apache/syncope/commit/b2dc833c9fb32a9c4eec3e0f69b07b871312344b

Regards.

> On Fri, Sep 1, 2017 at 10:08 AM, Emilian Bold <em...@gmail.com> wrote:
> > Seems to be ASM related. I found this comment here
> > https://github.com/jdbi/jdbi/issues/144
> >
> >> ASM 3.x has known issues running with Java 8, specifically that ClassReader IllegalArgumentException. It's fixed in ASM 5.0.2.
> >
> > Except that nbm-maven-plugin:4.1 already uses ASM 5.0.2, so perhaps
> > it's some other ASM bug?
> >
> > --emi
> >
> >
> > On Fri, Sep 1, 2017 at 10:01 AM, Francesco Chicchiriccò
> > <il...@apache.org> wrote:
> >> Hi there,
> >> Apache Syncope provides a Netbeans plugin, in a Maven module (see the sources here [1]).
> >>
> >> Up to Log4j 2.8.2 everything works fine; when instead we upgrade Log4j to 2.9.0, the following error is returned by Maven:
> >>
> >> [ERROR] Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest (default-manifest) on project syncope-ide-netbeans: Execution default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.: IllegalArgumentException -> [Help 1]
> >> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest (default-manifest) on project syncope-ide-netbeans: Execution default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.
> >>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
> >>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
> >>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
> >>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
> >>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
> >>         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:309)
> >>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
> >>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
> >>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
> >>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
> >>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
> >>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> >>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>         at java.lang.reflect.Method.invoke(Method.java:498)
> >>         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)
> >> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.
> >>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
> >>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> >>         ... 20 more
> >> Caused by: java.lang.IllegalArgumentException
> >>         at org.objectweb.asm.ClassReader.<init>(Unknown Source)
> >>         at org.objectweb.asm.ClassReader.<init>(Unknown Source)
> >>         at org.objectweb.asm.ClassReader.<init>(Unknown Source)
> >>         at org.apache.maven.shared.dependency.analyzer.asm.DependencyClassFileVisitor.visitClass(DependencyClassFileVisitor.java:65)
> >>         at org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.visitClass(ClassFileVisitorUtils.java:163)
> >>         at org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.acceptJar(ClassFileVisitorUtils.java:107)
> >>         at org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.accept(ClassFileVisitorUtils.java:61)
> >>         at org.apache.maven.shared.dependency.analyzer.asm.ASMDependencyAnalyzer.analyze(ASMDependencyAnalyzer.java:50)
> >>         at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.buildDependencyClasses(NetBeansManifestUpdateMojo.java:920)
> >>         at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.buildProjectDependencyClasses(NetBeansManifestUpdateMojo.java:763)
> >>         at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.checkModuleClassPath(NetBeansManifestUpdateMojo.java:667)
> >>         at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.execute(NetBeansManifestUpdateMojo.java:530)
> >>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
> >>         ... 21 more
> >>
> >> Any idea?
> >>
> >> TIA
> >> Regards.
> >>
> >> [1] https://github.com/apache/syncope/tree/2_0_X/ide/netbeans
> 

Re: Errors with Log4j 2.9.0

Posted by Emilian Bold <em...@gmail.com>.
BTW, you could just skip verification:

                <groupId>org.codehaus.mojo</groupId>
                <artifactId>nbm-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <verifyRuntime>skip</verifyRuntime>
                </configuration>


--emi


On Fri, Sep 1, 2017 at 10:08 AM, Emilian Bold <em...@gmail.com> wrote:
> Seems to be ASM related. I found this comment here
> https://github.com/jdbi/jdbi/issues/144
>
>> ASM 3.x has known issues running with Java 8, specifically that ClassReader IllegalArgumentException. It's fixed in ASM 5.0.2.
>
> Except that nbm-maven-plugin:4.1 already uses ASM 5.0.2, so perhaps
> it's some other ASM bug?
>
> --emi
>
>
> On Fri, Sep 1, 2017 at 10:01 AM, Francesco Chicchiriccò
> <il...@apache.org> wrote:
>> Hi there,
>> Apache Syncope provides a Netbeans plugin, in a Maven module (see the sources here [1]).
>>
>> Up to Log4j 2.8.2 everything works fine; when instead we upgrade Log4j to 2.9.0, the following error is returned by Maven:
>>
>> [ERROR] Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest (default-manifest) on project syncope-ide-netbeans: Execution default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.: IllegalArgumentException -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest (default-manifest) on project syncope-ide-netbeans: Execution default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.
>>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
>>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
>>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
>>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
>>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
>>         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:309)
>>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
>>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
>>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>         at java.lang.reflect.Method.invoke(Method.java:498)
>>         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)
>> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.
>>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
>>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>>         ... 20 more
>> Caused by: java.lang.IllegalArgumentException
>>         at org.objectweb.asm.ClassReader.<init>(Unknown Source)
>>         at org.objectweb.asm.ClassReader.<init>(Unknown Source)
>>         at org.objectweb.asm.ClassReader.<init>(Unknown Source)
>>         at org.apache.maven.shared.dependency.analyzer.asm.DependencyClassFileVisitor.visitClass(DependencyClassFileVisitor.java:65)
>>         at org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.visitClass(ClassFileVisitorUtils.java:163)
>>         at org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.acceptJar(ClassFileVisitorUtils.java:107)
>>         at org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.accept(ClassFileVisitorUtils.java:61)
>>         at org.apache.maven.shared.dependency.analyzer.asm.ASMDependencyAnalyzer.analyze(ASMDependencyAnalyzer.java:50)
>>         at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.buildDependencyClasses(NetBeansManifestUpdateMojo.java:920)
>>         at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.buildProjectDependencyClasses(NetBeansManifestUpdateMojo.java:763)
>>         at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.checkModuleClassPath(NetBeansManifestUpdateMojo.java:667)
>>         at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.execute(NetBeansManifestUpdateMojo.java:530)
>>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>>         ... 21 more
>>
>> Any idea?
>>
>> TIA
>> Regards.
>>
>> [1] https://github.com/apache/syncope/tree/2_0_X/ide/netbeans

Re: Errors with Log4j 2.9.0

Posted by Emilian Bold <em...@gmail.com>.
Seems to be ASM related. I found this comment here
https://github.com/jdbi/jdbi/issues/144

> ASM 3.x has known issues running with Java 8, specifically that ClassReader IllegalArgumentException. It's fixed in ASM 5.0.2.

Except that nbm-maven-plugin:4.1 already uses ASM 5.0.2, so perhaps
it's some other ASM bug?

--emi


On Fri, Sep 1, 2017 at 10:01 AM, Francesco Chicchiriccò
<il...@apache.org> wrote:
> Hi there,
> Apache Syncope provides a Netbeans plugin, in a Maven module (see the sources here [1]).
>
> Up to Log4j 2.8.2 everything works fine; when instead we upgrade Log4j to 2.9.0, the following error is returned by Maven:
>
> [ERROR] Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest (default-manifest) on project syncope-ide-netbeans: Execution default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.: IllegalArgumentException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest (default-manifest) on project syncope-ide-netbeans: Execution default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
>         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:309)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         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)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>         ... 20 more
> Caused by: java.lang.IllegalArgumentException
>         at org.objectweb.asm.ClassReader.<init>(Unknown Source)
>         at org.objectweb.asm.ClassReader.<init>(Unknown Source)
>         at org.objectweb.asm.ClassReader.<init>(Unknown Source)
>         at org.apache.maven.shared.dependency.analyzer.asm.DependencyClassFileVisitor.visitClass(DependencyClassFileVisitor.java:65)
>         at org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.visitClass(ClassFileVisitorUtils.java:163)
>         at org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.acceptJar(ClassFileVisitorUtils.java:107)
>         at org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.accept(ClassFileVisitorUtils.java:61)
>         at org.apache.maven.shared.dependency.analyzer.asm.ASMDependencyAnalyzer.analyze(ASMDependencyAnalyzer.java:50)
>         at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.buildDependencyClasses(NetBeansManifestUpdateMojo.java:920)
>         at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.buildProjectDependencyClasses(NetBeansManifestUpdateMojo.java:763)
>         at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.checkModuleClassPath(NetBeansManifestUpdateMojo.java:667)
>         at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.execute(NetBeansManifestUpdateMojo.java:530)
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>         ... 21 more
>
> Any idea?
>
> TIA
> Regards.
>
> [1] https://github.com/apache/syncope/tree/2_0_X/ide/netbeans