Metric failure

View: New views
6 Messages — Rating Filter:   Alert me  

Metric failure

by hgomez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I tried to add the Artifact Size Plugin to our Sonar 1.11 and since we
get the following errors :


Embedded error: Measure.metric can not be null. Please check that the
metric is defined in Plugin.getExtensions().
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:618)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar
        at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:87)
        at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
        at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:117)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
        ... 16 more
Caused by: java.lang.IllegalArgumentException: Measure.metric can not
be null. Please check that the metric is defined in
Plugin.getExtensions().
        at org.sonar.batch.DefaultSensorContext.createMeasure(DefaultSensorContext.java:372)
        at org.sonar.batch.DefaultSensorContext.persistMeasure(DefaultSensorContext.java:354)
        at org.sonar.batch.DefaultSensorContext.saveMeasure(DefaultSensorContext.java:115)
        at org.sonar.batch.DefaultDecoratorContext.saveMeasure(DefaultDecoratorContext.java:114)
        at org.sonar.plugins.secrules.SecurityRulesDecorator.decorate(SecurityRulesDecorator.java:86)
        at org.sonar.batch.core.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:86)
        at org.sonar.batch.core.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:71)
        at org.sonar.batch.core.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:71)
        at org.sonar.batch.core.DecoratorsExecutor.execute(DecoratorsExecutor.java:62)
        at org.sonar.batch.Batch.executeJobs(Batch.java:91)
        at org.sonar.batch.Batch.analyse(Batch.java:79)
        at org.sonar.batch.Batch.start(Batch.java:54)
        at org.sonar.batch.BatchMojo.executeBatch(BatchMojo.java:138)
        at org.sonar.batch.BatchMojo.execute(BatchMojo.java:130)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
        at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82)
        ... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 6 seconds
[INFO] Finished at: Fri Oct 23 14:20:54 CEST 2009
[INFO] Final Memory: 50M/332M

I removed the jar from extensions/plugins, but the problem is still here.

How can I fix it ?

Regards

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Metric failure

by hgomez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It seems it was the sonar-sigmm-plugin who produce this error.



2009/10/23 Henri Gomez <henri.gomez@...>:

> I tried to add the Artifact Size Plugin to our Sonar 1.11 and since we
> get the following errors :
>
>
> Embedded error: Measure.metric can not be null. Please check that the
> metric is defined in Plugin.getExtensions().
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:618)
>        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar
>        at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:87)
>        at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
>        at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:117)
>        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>        ... 16 more
> Caused by: java.lang.IllegalArgumentException: Measure.metric can not
> be null. Please check that the metric is defined in
> Plugin.getExtensions().
>        at org.sonar.batch.DefaultSensorContext.createMeasure(DefaultSensorContext.java:372)
>        at org.sonar.batch.DefaultSensorContext.persistMeasure(DefaultSensorContext.java:354)
>        at org.sonar.batch.DefaultSensorContext.saveMeasure(DefaultSensorContext.java:115)
>        at org.sonar.batch.DefaultDecoratorContext.saveMeasure(DefaultDecoratorContext.java:114)
>        at org.sonar.plugins.secrules.SecurityRulesDecorator.decorate(SecurityRulesDecorator.java:86)
>        at org.sonar.batch.core.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:86)
>        at org.sonar.batch.core.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:71)
>        at org.sonar.batch.core.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:71)
>        at org.sonar.batch.core.DecoratorsExecutor.execute(DecoratorsExecutor.java:62)
>        at org.sonar.batch.Batch.executeJobs(Batch.java:91)
>        at org.sonar.batch.Batch.analyse(Batch.java:79)
>        at org.sonar.batch.Batch.start(Batch.java:54)
>        at org.sonar.batch.BatchMojo.executeBatch(BatchMojo.java:138)
>        at org.sonar.batch.BatchMojo.execute(BatchMojo.java:130)
>        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>        at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82)
>        ... 20 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 6 seconds
> [INFO] Finished at: Fri Oct 23 14:20:54 CEST 2009
> [INFO] Final Memory: 50M/332M
>
> I removed the jar from extensions/plugins, but the problem is still here.
>
> How can I fix it ?
>
> Regards
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Re: Metric failure

by Olivier Gaudin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Henri,

Are you using Sonar standalone or a war ?

Olivier



On Fri, Oct 23, 2009 at 3:49 PM, Henri Gomez <henri.gomez@...> wrote:
It seems it was the sonar-sigmm-plugin who produce this error.



2009/10/23 Henri Gomez <henri.gomez@...>:
> I tried to add the Artifact Size Plugin to our Sonar 1.11 and since we
> get the following errors :
>
>
> Embedded error: Measure.metric can not be null. Please check that the
> metric is defined in Plugin.getExtensions().
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:618)
>        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar
>        at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:87)
>        at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
>        at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:117)
>        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>        ... 16 more
> Caused by: java.lang.IllegalArgumentException: Measure.metric can not
> be null. Please check that the metric is defined in
> Plugin.getExtensions().
>        at org.sonar.batch.DefaultSensorContext.createMeasure(DefaultSensorContext.java:372)
>        at org.sonar.batch.DefaultSensorContext.persistMeasure(DefaultSensorContext.java:354)
>        at org.sonar.batch.DefaultSensorContext.saveMeasure(DefaultSensorContext.java:115)
>        at org.sonar.batch.DefaultDecoratorContext.saveMeasure(DefaultDecoratorContext.java:114)
>        at org.sonar.plugins.secrules.SecurityRulesDecorator.decorate(SecurityRulesDecorator.java:86)
>        at org.sonar.batch.core.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:86)
>        at org.sonar.batch.core.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:71)
>        at org.sonar.batch.core.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:71)
>        at org.sonar.batch.core.DecoratorsExecutor.execute(DecoratorsExecutor.java:62)
>        at org.sonar.batch.Batch.executeJobs(Batch.java:91)
>        at org.sonar.batch.Batch.analyse(Batch.java:79)
>        at org.sonar.batch.Batch.start(Batch.java:54)
>        at org.sonar.batch.BatchMojo.executeBatch(BatchMojo.java:138)
>        at org.sonar.batch.BatchMojo.execute(BatchMojo.java:130)
>        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>        at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82)
>        ... 20 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 6 seconds
> [INFO] Finished at: Fri Oct 23 14:20:54 CEST 2009
> [INFO] Final Memory: 50M/332M
>
> I removed the jar from extensions/plugins, but the problem is still here.
>
> How can I fix it ?
>
> Regards
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Re: Re: Metric failure

by hgomez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The war version.

And the plugin is set in the extensions/plugins, outside the webapp

2009/10/23 Olivier Gaudin <gaudol@...>:

> Henri,
>
> Are you using Sonar standalone or a war ?
>
> Olivier
>
>
>
> On Fri, Oct 23, 2009 at 3:49 PM, Henri Gomez <henri.gomez@...> wrote:
>>
>> It seems it was the sonar-sigmm-plugin who produce this error.
>>
>>
>>
>> 2009/10/23 Henri Gomez <henri.gomez@...>:
>> > I tried to add the Artifact Size Plugin to our Sonar 1.11 and since we
>> > get the following errors :
>> >
>> >
>> > Embedded error: Measure.metric can not be null. Please check that the
>> > metric is defined in Plugin.getExtensions().
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [INFO] Trace
>> > org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute
>> > Sonar
>> >        at
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
>> >        at
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
>> >        at
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
>> >        at
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>> >        at
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227)
>> >        at
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>> >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>> >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>> >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >        at
>> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
>> >        at
>> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> >        at java.lang.reflect.Method.invoke(Method.java:618)
>> >        at
>> > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> >        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> >        at
>> > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> >        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> > Caused by: org.apache.maven.plugin.MojoExecutionException: Can not
>> > execute Sonar
>> >        at
>> > org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:87)
>> >        at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
>> >        at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:117)
>> >        at
>> > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>> >        at
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>> >        ... 16 more
>> > Caused by: java.lang.IllegalArgumentException: Measure.metric can not
>> > be null. Please check that the metric is defined in
>> > Plugin.getExtensions().
>> >        at
>> > org.sonar.batch.DefaultSensorContext.createMeasure(DefaultSensorContext.java:372)
>> >        at
>> > org.sonar.batch.DefaultSensorContext.persistMeasure(DefaultSensorContext.java:354)
>> >        at
>> > org.sonar.batch.DefaultSensorContext.saveMeasure(DefaultSensorContext.java:115)
>> >        at
>> > org.sonar.batch.DefaultDecoratorContext.saveMeasure(DefaultDecoratorContext.java:114)
>> >        at
>> > org.sonar.plugins.secrules.SecurityRulesDecorator.decorate(SecurityRulesDecorator.java:86)
>> >        at
>> > org.sonar.batch.core.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:86)
>> >        at
>> > org.sonar.batch.core.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:71)
>> >        at
>> > org.sonar.batch.core.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:71)
>> >        at
>> > org.sonar.batch.core.DecoratorsExecutor.execute(DecoratorsExecutor.java:62)
>> >        at org.sonar.batch.Batch.executeJobs(Batch.java:91)
>> >        at org.sonar.batch.Batch.analyse(Batch.java:79)
>> >        at org.sonar.batch.Batch.start(Batch.java:54)
>> >        at org.sonar.batch.BatchMojo.executeBatch(BatchMojo.java:138)
>> >        at org.sonar.batch.BatchMojo.execute(BatchMojo.java:130)
>> >        at
>> > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>> >        at
>> > org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82)
>> >        ... 20 more
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [INFO] Total time: 1 minute 6 seconds
>> > [INFO] Finished at: Fri Oct 23 14:20:54 CEST 2009
>> > [INFO] Final Memory: 50M/332M
>> >
>> > I removed the jar from extensions/plugins, but the problem is still
>> > here.
>> >
>> > How can I fix it ?
>> >
>> > Regards
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Re: Metric failure

by Olivier Gaudin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Henri,

You need to rebuild the war.

Olivier


On Fri, Oct 23, 2009 at 8:07 PM, Henri Gomez <henri.gomez@...> wrote:
The war version.

And the plugin is set in the extensions/plugins, outside the webapp

2009/10/23 Olivier Gaudin <gaudol@...>:
> Henri,
>
> Are you using Sonar standalone or a war ?
>
> Olivier
>
>
>
> On Fri, Oct 23, 2009 at 3:49 PM, Henri Gomez <henri.gomez@...> wrote:
>>
>> It seems it was the sonar-sigmm-plugin who produce this error.
>>
>>
>>
>> 2009/10/23 Henri Gomez <henri.gomez@...>:
>> > I tried to add the Artifact Size Plugin to our Sonar 1.11 and since we
>> > get the following errors :
>> >
>> >
>> > Embedded error: Measure.metric can not be null. Please check that the
>> > metric is defined in Plugin.getExtensions().
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [INFO] Trace
>> > org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute
>> > Sonar
>> >        at
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
>> >        at
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
>> >        at
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
>> >        at
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>> >        at
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227)
>> >        at
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>> >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>> >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>> >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >        at
>> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
>> >        at
>> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> >        at java.lang.reflect.Method.invoke(Method.java:618)
>> >        at
>> > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> >        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> >        at
>> > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> >        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> > Caused by: org.apache.maven.plugin.MojoExecutionException: Can not
>> > execute Sonar
>> >        at
>> > org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:87)
>> >        at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
>> >        at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:117)
>> >        at
>> > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>> >        at
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>> >        ... 16 more
>> > Caused by: java.lang.IllegalArgumentException: Measure.metric can not
>> > be null. Please check that the metric is defined in
>> > Plugin.getExtensions().
>> >        at
>> > org.sonar.batch.DefaultSensorContext.createMeasure(DefaultSensorContext.java:372)
>> >        at
>> > org.sonar.batch.DefaultSensorContext.persistMeasure(DefaultSensorContext.java:354)
>> >        at
>> > org.sonar.batch.DefaultSensorContext.saveMeasure(DefaultSensorContext.java:115)
>> >        at
>> > org.sonar.batch.DefaultDecoratorContext.saveMeasure(DefaultDecoratorContext.java:114)
>> >        at
>> > org.sonar.plugins.secrules.SecurityRulesDecorator.decorate(SecurityRulesDecorator.java:86)
>> >        at
>> > org.sonar.batch.core.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:86)
>> >        at
>> > org.sonar.batch.core.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:71)
>> >        at
>> > org.sonar.batch.core.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:71)
>> >        at
>> > org.sonar.batch.core.DecoratorsExecutor.execute(DecoratorsExecutor.java:62)
>> >        at org.sonar.batch.Batch.executeJobs(Batch.java:91)
>> >        at org.sonar.batch.Batch.analyse(Batch.java:79)
>> >        at org.sonar.batch.Batch.start(Batch.java:54)
>> >        at org.sonar.batch.BatchMojo.executeBatch(BatchMojo.java:138)
>> >        at org.sonar.batch.BatchMojo.execute(BatchMojo.java:130)
>> >        at
>> > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>> >        at
>> > org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82)
>> >        ... 20 more
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [INFO] Total time: 1 minute 6 seconds
>> > [INFO] Finished at: Fri Oct 23 14:20:54 CEST 2009
>> > [INFO] Final Memory: 50M/332M
>> >
>> > I removed the jar from extensions/plugins, but the problem is still
>> > here.
>> >
>> > How can I fix it ?
>> >
>> > Regards
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Re: Re: Metric failure

by hgomez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'll do

Thanks Olivier

2009/10/24 Olivier Gaudin <gaudol@...>:

> Hello Henri,
>
> You need to rebuild the war.
>
> Olivier
>
>
> On Fri, Oct 23, 2009 at 8:07 PM, Henri Gomez <henri.gomez@...> wrote:
>>
>> The war version.
>>
>> And the plugin is set in the extensions/plugins, outside the webapp
>>
>> 2009/10/23 Olivier Gaudin <gaudol@...>:
>> > Henri,
>> >
>> > Are you using Sonar standalone or a war ?
>> >
>> > Olivier
>> >
>> >
>> >
>> > On Fri, Oct 23, 2009 at 3:49 PM, Henri Gomez <henri.gomez@...>
>> > wrote:
>> >>
>> >> It seems it was the sonar-sigmm-plugin who produce this error.
>> >>
>> >>
>> >>
>> >> 2009/10/23 Henri Gomez <henri.gomez@...>:
>> >> > I tried to add the Artifact Size Plugin to our Sonar 1.11 and since
>> >> > we
>> >> > get the following errors :
>> >> >
>> >> >
>> >> > Embedded error: Measure.metric can not be null. Please check that the
>> >> > metric is defined in Plugin.getExtensions().
>> >> > [INFO]
>> >> >
>> >> > ------------------------------------------------------------------------
>> >> > [INFO] Trace
>> >> > org.apache.maven.lifecycle.LifecycleExecutionException: Can not
>> >> > execute
>> >> > Sonar
>> >> >        at
>> >> >
>> >> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
>> >> >        at
>> >> >
>> >> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
>> >> >        at
>> >> >
>> >> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
>> >> >        at
>> >> >
>> >> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>> >> >        at
>> >> >
>> >> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227)
>> >> >        at
>> >> >
>> >> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>> >> >        at
>> >> > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>> >> >        at
>> >> > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>> >> >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>> >> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >> >        at
>> >> >
>> >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
>> >> >        at
>> >> >
>> >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> >> >        at java.lang.reflect.Method.invoke(Method.java:618)
>> >> >        at
>> >> > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> >> >        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> >> >        at
>> >> > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> >> >        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> >> > Caused by: org.apache.maven.plugin.MojoExecutionException: Can not
>> >> > execute Sonar
>> >> >        at
>> >> > org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:87)
>> >> >        at
>> >> > org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
>> >> >        at
>> >> > org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:117)
>> >> >        at
>> >> >
>> >> > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>> >> >        at
>> >> >
>> >> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>> >> >        ... 16 more
>> >> > Caused by: java.lang.IllegalArgumentException: Measure.metric can not
>> >> > be null. Please check that the metric is defined in
>> >> > Plugin.getExtensions().
>> >> >        at
>> >> >
>> >> > org.sonar.batch.DefaultSensorContext.createMeasure(DefaultSensorContext.java:372)
>> >> >        at
>> >> >
>> >> > org.sonar.batch.DefaultSensorContext.persistMeasure(DefaultSensorContext.java:354)
>> >> >        at
>> >> >
>> >> > org.sonar.batch.DefaultSensorContext.saveMeasure(DefaultSensorContext.java:115)
>> >> >        at
>> >> >
>> >> > org.sonar.batch.DefaultDecoratorContext.saveMeasure(DefaultDecoratorContext.java:114)
>> >> >        at
>> >> >
>> >> > org.sonar.plugins.secrules.SecurityRulesDecorator.decorate(SecurityRulesDecorator.java:86)
>> >> >        at
>> >> >
>> >> > org.sonar.batch.core.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:86)
>> >> >        at
>> >> >
>> >> > org.sonar.batch.core.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:71)
>> >> >        at
>> >> >
>> >> > org.sonar.batch.core.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:71)
>> >> >        at
>> >> >
>> >> > org.sonar.batch.core.DecoratorsExecutor.execute(DecoratorsExecutor.java:62)
>> >> >        at org.sonar.batch.Batch.executeJobs(Batch.java:91)
>> >> >        at org.sonar.batch.Batch.analyse(Batch.java:79)
>> >> >        at org.sonar.batch.Batch.start(Batch.java:54)
>> >> >        at org.sonar.batch.BatchMojo.executeBatch(BatchMojo.java:138)
>> >> >        at org.sonar.batch.BatchMojo.execute(BatchMojo.java:130)
>> >> >        at
>> >> >
>> >> > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>> >> >        at
>> >> > org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82)
>> >> >        ... 20 more
>> >> > [INFO]
>> >> >
>> >> > ------------------------------------------------------------------------
>> >> > [INFO] Total time: 1 minute 6 seconds
>> >> > [INFO] Finished at: Fri Oct 23 14:20:54 CEST 2009
>> >> > [INFO] Final Memory: 50M/332M
>> >> >
>> >> > I removed the jar from extensions/plugins, but the problem is still
>> >> > here.
>> >> >
>> >> > How can I fix it ?
>> >> >
>> >> > Regards
>> >> >
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe from this list, please visit:
>> >>
>> >>    http://xircles.codehaus.org/manage_email
>> >>
>> >>
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email