Quantcast

error in sonar-runner-2.0

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

error in sonar-runner-2.0

yxd0018
Run sonar server and sonar-runner with JDK 7.0 on win 7 64bit with admin permission and get the following error:

02:37:17.463 INFO        org.sonar.INFO - Execute Checkstyle 5.6 done: 3610 ms
02:37:17.466 INFO  p.PhasesTimeProfiler - Sensor CheckstyleSensor done: 3621 ms
02:37:17.471 INFO  p.PhasesTimeProfiler - Sensor ProfileSensor...
02:37:17.779 INFO  p.PhasesTimeProfiler - Sensor ProfileSensor done: 308 ms
02:37:17.783 INFO  p.PhasesTimeProfiler - Sensor ProfileEventsSensor...
02:37:17.809 INFO  p.PhasesTimeProfiler - Sensor ProfileEventsSensor done: 27 ms
02:37:17.811 INFO  p.PhasesTimeProfiler - Sensor ProjectLinksSensor...
02:37:17.826 INFO  p.PhasesTimeProfiler - Sensor ProjectLinksSensor done: 15 ms
02:37:17.833 INFO  p.PhasesTimeProfiler - Sensor VersionEventsSensor...
02:37:17.849 INFO  p.PhasesTimeProfiler - Sensor VersionEventsSensor done: 16 ms
02:37:19.068 INFO  p.PhasesTimeProfiler - Execute decorators...
Total time: 26.851s
Final Memory: 20M/557M
Exception in thread "main" org.sonar.runner.RunnerException: org.sonar.api.utils.SonarException: Fail to decorate 'bo.FixUtil'
        at org.sonar.runner.Runner.delegateExecution(Runner.java:288)
        at org.sonar.runner.Runner.execute(Runner.java:151)
        at org.sonar.runner.Main.execute(Main.java:84)
        at org.sonar.runner.Main.main(Main.java:56)
Caused by: org.sonar.api.utils.SonarException: Fail to decorate 'bo.FixUtil'
        at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:84)
        at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:70)
        at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:63)
        at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:63)
        at org.sonar.batch.phases.DecoratorsExecutor.execute(DecoratorsExecutor.java:55)
        at org.sonar.batch.phases.Phases.execute(Phases.java:92)
        at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:129)
        at org.sonar.batch.bootstrap.Module.start(Module.java:68)
        at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:147)
        at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:136)
        at org.sonar.batch.bootstrap.Module.start(Module.java:68)
        at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:83)
        at org.sonar.batch.bootstrap.Module.start(Module.java:68)
        at org.sonar.batch.Batch.execute(Batch.java:106)
        at org.sonar.runner.internal.batch.Launcher.executeBatch(Launcher.java:69)
        at org.sonar.runner.internal.batch.Launcher.execute(Launcher.java:61)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.sonar.runner.Runner.delegateExecution(Runner.java:285)
        ... 3 more
Caused by: java.lang.NullPointerException
        at org.sonar.api.profiles.RulesProfile.getActiveRule(RulesProfile.java:363)
        at org.sonar.plugins.uselesscodetracker.decorator.ViolationsDecorator.saveFileMeasure(ViolationsDecorator.java:86)
        at org.sonar.plugins.uselesscodetracker.decorator.ViolationsDecorator.decorate(ViolationsDecorator.java:72)
        at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:79)
        ... 23 more


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: error in sonar-runner-2.0

Freddy Mallet
Hi Ying,

This issue seems to be caused by the Sonar Useless Code Tracker plugin. Which version of this plugin are your using and what is the version of your Sonar server ?

At short term, removing this plugin will solve your issue.

Kind regards



-----
Sonar for Continuous Inspection


On Sun, Feb 17, 2013 at 8:51 AM, Ying <[hidden email]> wrote:
Run sonar server and sonar-runner with JDK 7.0 on win 7 64bit with admin permission and get the following error:

02:37:17.463 INFO        org.sonar.INFO - Execute Checkstyle 5.6 done: 3610 ms
02:37:17.466 INFO  p.PhasesTimeProfiler - Sensor CheckstyleSensor done: 3621 ms
02:37:17.471 INFO  p.PhasesTimeProfiler - Sensor ProfileSensor...
02:37:17.779 INFO  p.PhasesTimeProfiler - Sensor ProfileSensor done: 308 ms
02:37:17.783 INFO  p.PhasesTimeProfiler - Sensor ProfileEventsSensor...
02:37:17.809 INFO  p.PhasesTimeProfiler - Sensor ProfileEventsSensor done: 27 ms
02:37:17.811 INFO  p.PhasesTimeProfiler - Sensor ProjectLinksSensor...
02:37:17.826 INFO  p.PhasesTimeProfiler - Sensor ProjectLinksSensor done: 15 ms
02:37:17.833 INFO  p.PhasesTimeProfiler - Sensor VersionEventsSensor...
02:37:17.849 INFO  p.PhasesTimeProfiler - Sensor VersionEventsSensor done: 16 ms
02:37:19.068 INFO  p.PhasesTimeProfiler - Execute decorators...
Total time: 26.851s
Final Memory: 20M/557M
Exception in thread "main" org.sonar.runner.RunnerException: org.sonar.api.utils.SonarException: Fail to decorate 'bo.FixUtil'
        at org.sonar.runner.Runner.delegateExecution(Runner.java:288)
        at org.sonar.runner.Runner.execute(Runner.java:151)
        at org.sonar.runner.Main.execute(Main.java:84)
        at org.sonar.runner.Main.main(Main.java:56)
Caused by: org.sonar.api.utils.SonarException: Fail to decorate 'bo.FixUtil'
        at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:84)
        at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:70)
        at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:63)
        at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:63)
        at org.sonar.batch.phases.DecoratorsExecutor.execute(DecoratorsExecutor.java:55)
        at org.sonar.batch.phases.Phases.execute(Phases.java:92)
        at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:129)
        at org.sonar.batch.bootstrap.Module.start(Module.java:68)
        at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:147)
        at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:136)
        at org.sonar.batch.bootstrap.Module.start(Module.java:68)
        at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:83)
        at org.sonar.batch.bootstrap.Module.start(Module.java:68)
        at org.sonar.batch.Batch.execute(Batch.java:106)
        at org.sonar.runner.internal.batch.Launcher.executeBatch(Launcher.java:69)
        at org.sonar.runner.internal.batch.Launcher.execute(Launcher.java:61)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.sonar.runner.Runner.delegateExecution(Runner.java:285)
        ... 3 more
Caused by: java.lang.NullPointerException
        at org.sonar.api.profiles.RulesProfile.getActiveRule(RulesProfile.java:363)
        at org.sonar.plugins.uselesscodetracker.decorator.ViolationsDecorator.saveFileMeasure(ViolationsDecorator.java:86)
        at org.sonar.plugins.uselesscodetracker.decorator.ViolationsDecorator.decorate(ViolationsDecorator.java:72)
        at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:79)
        ... 23 more



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: error in sonar-runner-2.0

yxd0018
sonar server 3.4.1
useless code tracker 0.5
After removing the useless code plugin, it works now. Thanks.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: error in sonar-runner-2.0

Freddy Mallet
And FYI Ying, I've created a JIRA ticket : http://jira.codehaus.org/browse/SONARPLUGINS-2690

-----
Sonar for Continuous Inspection


On Sun, Feb 17, 2013 at 5:03 PM, yxd0018 <[hidden email]> wrote:
sonar server 3.4.1
useless code tracker 0.5
After removing the useless code plugin, it works now. Thanks.



--
View this message in context: http://sonar.15.n6.nabble.com/error-in-sonar-runner-2-0-tp5008809p5008823.html
Sent from the Sonar user mailing list archive at Nabble.com.

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

    http://xircles.codehaus.org/manage_email



Loading...