You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been
having some problems with my sonar-runner after upgrading from
SonarQube v5.0 to SonarQube v5.1.2.
I talked with somebody at the general Sonar mailing list about this
issue, and apparently they have change the API for reporting bug’s, as
far as I understand!.
The scenario is, when I run the sonar-runner from either Jenkins or my
personal laptop, I’m getting
ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
at
org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.j
ava:91)
at
org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at
org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at
org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at
org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
at org.sonar.runner.api.Runner.execute(Runner.java:100)
at org.sonar.runner.Main.executeTask(Main.java:70)
at org.sonar.runner.Main.execute(Main.java:59)
at org.sonar.runner.Main.main(Main.java:53)
Caused by: org.sonar.api.utils.SonarException: Fail to decorate
'org.sonar.api.resources.File@2ff0ae59[key=case-ui.jws,path=case-ui.jws
,filename=case-ui.jws,language=OJAudit]'
at
org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsEx
ecutor.java:104)
at
org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsEx
ecutor.java:87)
at
org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsEx
ecutor.java:79)
at
org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsEx
ecutor.java:79)
at
org.sonar.batch.phases.DecoratorsExecutor.execute(DecoratorsExecutor.ja
va:71)
at
org.sonar.batch.phases.DatabaseModePhaseExecutor.execute(DatabaseModePh
aseExecutor.java:127)
at
org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContain
er.java:264)
at
org.sonar.api.platform.ComponentContainer.startComponents(ComponentCont
ainer.java:92)
at
org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.ja
va:77)
at
org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.jav
a:235)
at
org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanCo
ntainer.java:230)
at
org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanConta
iner.java:220)
at
org.sonar.api.platform.ComponentContainer.startComponents(ComponentCont
ainer.java:92)
at
org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.ja
va:77)
at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:57)
at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:45)
at
org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java
:135)
at
org.sonar.api.platform.ComponentContainer.startComponents(ComponentCont
ainer.java:92)
at
org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.ja
va:77)
at
org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.j
ava:158)
at
org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:95)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
at
org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:4
8)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.j
ava:87)
... 9 more
Caused by: org.sonar.api.utils.SonarException: Can not add twice the
same measure on
org.sonar.api.resources.File@2ff0ae59[key=case-ui.jws,path=case-ui.jws,
filename=case-ui.jws,language=OJAudit]:
org.sonar.api.measures.Measure@62466da5[metricKey=lines,metric=Metric[i
d=1,key=lines,description=Lines,type=INT,direction=-1,domain=<null>,nam
e=lines,qualitative=false,userManaged=false,enabled=true,origin=JAV,wor
stValue=<null>,bestValue=<null>,optimizedBestValue=false,hidden=false,d
eleteHistoricalData=false],value=90.0,data=<null>,description=<null>,al
ertStatus=<null>,alertText=<null>,tendency=<null>,date=<null>,variation
1=<null>,variation2=<null>,variation3=<null>,variation4=<null>,variatio
n5=<null>,url=<null>,characteristic=<null>,requirement=<null>,personId=
<null>,persistenceMode=FULL,fromCore=false]
at
org.sonar.batch.deprecated.decorator.DefaultDecoratorContext.saveMeasur
e(DefaultDecoratorContext.java:186)
at
org.sonar.batch.deprecated.decorator.DefaultDecoratorContext.saveMeasur
e(DefaultDecoratorContext.java:200)
at
org.adf.emg.sonar.ojaudit.XmlMetricsDecorator.decorate(XmlMetricsDecora
tor.java:93)
at
org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsEx
ecutor.java:96)
... 36 more
issue migrated from https://java.net/jira/browse/SONARQUBE_OJAUDIT-9
I have been
having some problems with my sonar-runner after upgrading from
SonarQube v5.0 to SonarQube v5.1.2.
I talked with somebody at the general Sonar mailing list about this
issue, and apparently they have change the API for reporting bug’s, as
far as I understand!.
The scenario is, when I run the sonar-runner from either Jenkins or my
personal laptop, I’m getting
We are using,
Jenkins 1.609.1
SonarQube Plugin 2.2.1
Sonar 5.1.2
Build Breaker 1.1
BuildStability 1.3
Checkstyle 2.3
FIndbugs 3.3
Java 3.5
LDAP 1.4
ADF EMG ojaudit 1.1
PMD 2.3
TAB Metrics 1.4.1
Useless Code Tracker 1.0
Widget Lab 1.7
and out sonar properties
what if have alreday tried
I really hope some of you could give me some help in relations to
solving this?
The text was updated successfully, but these errors were encountered: