The following error occurs on most of our .NET projects since upgrading to 5.2. Analysis succeeds with the same Quality Profiles for a smaller project but on larger projects it fails. The same projects have been analysed since 4.2 with much the same Quality Profiles.
2016.01.05 06:53:51 INFO [o.s.s.c.s.ComputationStepExecutor] Execute component visitors | time=90421ms 2016.01.05 06:54:29 ERROR [o.s.s.c.t.CeWorkerRunnableImpl] Failed to execute task AVIQjQLLDCtH7wO-WxeD java.lang.IllegalArgumentException: Multiple entries with same key: MeasureKey{metricKey='lines', ruleId=-6253, characteristicId=-6253}=org.sonar.db.measure.PastMeasureDto@5435ade6 and MeasureKey{metricKey='lines', ruleId=-6253, characteristicId=-6253}=org.sonar.db.measure.PastMeasureDto@102c023b at com.google.common.collect.ImmutableMap.checkNoConflict(ImmutableMap.java:150) ~[guava-17.0.jar:na] at com.google.common.collect.RegularImmutableMap.checkNoConflictInBucket(RegularImmutableMap.java:104) ~[guava-17.0.jar:na] at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:70) ~[guava-17.0.jar:na] at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:254) ~[guava-17.0.jar:na] at com.google.common.collect.Maps.uniqueIndex(Maps.java:1166) ~[guava-17.0.jar:na] at com.google.common.collect.Maps.uniqueIndex(Maps.java:1140) ~[guava-17.0.jar:na] at com.google.common.collect.FluentIterable.uniqueIndex(FluentIterable.java:424) ~[guava-17.0.jar:na] at org.sonar.server.computation.step.ComputeMeasureVariationsStep$VariationMeasuresVisitor.setVariationMeasures(ComputeMeasureVariationsStep.java:145) ~[sonar-server-5.2.jar:na] at org.sonar.server.computation.step.ComputeMeasureVariationsStep$VariationMeasuresVisitor.computeMeasuresWithVariations(ComputeMeasureVariationsStep.java:124) ~[sonar-server-5.2.jar:na] at org.sonar.server.computation.step.ComputeMeasureVariationsStep$VariationMeasuresVisitor.visitAny(ComputeMeasureVariationsStep.java:115) ~[sonar-server-5.2.jar:na] at org.sonar.server.computation.component.DepthTraversalTypeAwareCrawler.visitNode(DepthTraversalTypeAwareCrawler.java:60) ~[sonar-server-5.2.jar:na] at org.sonar.server.computation.component.DepthTraversalTypeAwareCrawler.visit(DepthTraversalTypeAwareCrawler.java:44) ~[sonar-server-5.2.jar:na] at org.sonar.server.computation.component.DepthTraversalTypeAwareCrawler.visitChildren(DepthTraversalTypeAwareCrawler.java:91) ~[sonar-server-5.2.jar:na] at org.sonar.server.computation.component.DepthTraversalTypeAwareCrawler.visit(DepthTraversalTypeAwareCrawler.java:47) ~[sonar-server-5.2.jar:na] at org.sonar.server.computation.component.DepthTraversalTypeAwareCrawler.visitChildren(DepthTraversalTypeAwareCrawler.java:91) ~[sonar-server-5.2.jar:na] at org.sonar.server.computation.component.DepthTraversalTypeAwareCrawler.visit(DepthTraversalTypeAwareCrawler.java:47) ~[sonar-server-5.2.jar:na] at org.sonar.server.computation.step.ComputeMeasureVariationsStep.execute(ComputeMeasureVariationsStep.java:92) ~[sonar-server-5.2.jar:na] at org.sonar.server.computation.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:39) ~[sonar-server-5.2.jar:na] at org.sonar.server.computation.taskprocessor.report.ReportTaskProcessor.process(ReportTaskProcessor.java:53) ~[sonar-server-5.2.jar:na] at org.sonar.server.computation.taskprocessor.CeWorkerRunnableImpl.executeTask(CeWorkerRunnableImpl.java:78) [sonar-server-5.2.jar:na] at org.sonar.server.computation.taskprocessor.CeWorkerRunnableImpl.run(CeWorkerRunnableImpl.java:55) [sonar-server-5.2.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_75] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) [na:1.7.0_75] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_75] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.7.0_75] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_75] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_75] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_75] 2016.01.05 06:54:29 ERROR [o.s.s.c.t.CeWorkerRunnableImpl] Executed task | project=Vitality:a4b0c5d3:Dev | id=AVIQjQLLDCtH7wO-WxeD | time=246364ms
Our plugins are:
2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] SonarQube plugins: 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - StyleCop 1.1 (stylecop) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - Motion Chart 1.7 (motionchart) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - JavaScript 2.9 (javascript) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - ReSharper 2.0 (resharper) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - Findbugs 3.3 (findbugs) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - Android 1.1 (android) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - Analysis Bootstrapper for Visual Studio Projects 1.2 (visualstudio) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - Timeline 1.5 (timeline) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - Web 2.4 (web) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - XML 1.4 (xml) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - Widget Lab 1.8.1 (widgetlab) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - Git 1.1 (scmgit) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - SVN 1.2 (scmsvn) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - LDAP 1.5.1 (ldap) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - Tab Metrics 1.4.1 (tabmetrics) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - Checkstyle 2.4 (checkstyle) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - NDepend 1.0-SNAPSHOT (ndepend) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - PMD 2.5 (pmd) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - Java 3.8 (java) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - C# 4.3 (csharp) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - Cobertura 1.6.3 (cobertura) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - Useless Code Tracker 1.0 (uselesscodetracker) 2016.01.05 06:51:00 INFO [o.s.s.c.s.LogScannerContextStep] - CSS 1.6-RC1 (css)Also:
Upgrading plugin to CSharp 4.4 has made no difference. ie. the deployment is using all the latest plugins.
Analysis of a large Java project did not produce this problem.
Note that we use the sonar-runner, not the MSBuild runner because the latter does not work with all our projects (e.g. very large projects or where solution files are not in the root path, multiple solution files exist or various other combinations of configurations trip it up).
We would greatly appreciate any suggested workarounds.
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/5013d6f0-116a-478a-b44c-27d554c23152%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
2016.01.06 20:23:16 INFO [o.s.s.c.s.ComputationStepExecutor] Compute measure variations | time=6897ms
2016.01.06 20:23:16 INFO [o.s.s.c.s.ComputationStepExecutor] Computes Quality Gate measures | time=9ms
2016.01.06 20:23:16 INFO [o.s.s.c.s.ComputationStepExecutor] Compute Quality profile measures | time=11ms
2016.01.06 20:23:16 INFO [o.s.s.c.s.ComputationStepExecutor] Generate Quality profile events | time=15ms
2016.01.06 20:23:16 INFO [o.s.s.c.s.ComputationStepExecutor] Generate Quality gate events | time=16ms
2016.01.06 20:23:17 INFO [o.s.s.c.s.ComputationStepExecutor] Persist components | time=965ms
2016.01.06 20:23:20 INFO [o.s.s.c.s.ComputationStepExecutor] Persist snapshots | time=3417ms
2016.01.06 20:24:05 INFO [o.s.s.c.s.ComputationStepExecutor] Persist measures | time=44137ms
2016.01.06 20:30:17 INFO [o.s.s.c.s.ComputationStepExecutor] Persist issues | time=372335ms
2016.01.06 20:30:17 INFO [o.s.s.c.s.ComputationStepExecutor] Persist project links | time=24ms
2016.01.06 20:30:17 INFO [o.s.s.c.s.ComputationStepExecutor] Persist events | time=92ms
2016.01.06 20:30:28 INFO [o.s.s.c.s.ComputationStepExecutor] Persist sources | time=11491ms
2016.01.06 20:30:29 INFO [o.s.s.c.s.ComputationStepExecutor] Persist tests | time=73ms
2016.01.06 20:30:29 INFO [o.s.s.c.s.ComputationStepExecutor] Persist cross project duplications index | time=0ms
2016.01.06 20:30:30 INFO [o.s.s.c.s.ComputationStepExecutor] Enable snapshot | time=1032ms
2016.01.06 20:30:30 INFO [o.s.s.c.s.ComputationStepExecutor] Index components | time=793ms
2016.01.06 20:30:41 INFO [o.s.s.c.s.ComputationStepExecutor] Purge db | time=10357ms
2016.01.06 20:30:41 INFO [o.s.s.c.s.ComputationStepExecutor] Apply permissions | time=4ms
2016.01.06 20:31:14 INFO [o.s.s.c.s.ComputationStepExecutor] Index issues | time=33364ms
2016.01.06 20:31:14 INFO [o.s.s.c.s.ComputationStepExecutor] Index tests | time=228ms
2016.01.06 20:31:14 INFO [o.s.s.c.s.ComputationStepExecutor] Send issue notifications | time=5ms
2016.01.06 20:31:14 INFO [o.s.s.c.s.ComputationStepExecutor] Publish task results | time=0ms
2016.01.06 20:31:33 INFO [o.s.s.c.t.CeWorkerCallableImpl] Executed task | project=28f189d7 | id=AVIYmIp7WErocsgvSCuZ | time=697286ms
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/0f8e8dae-8a44-47d9-905d-c721cdadc8f7%40googlegroups.com.
2016.01.10 13:57:51 ERROR [o.s.s.c.t.CeWorkerCallableImpl] Failed to execute task AVIr0TT71v-aaxAc90Hv org.sonar.server.computation.component.VisitException: Visit of Component {key=YYY:0127c372:XXX.Application.Service:XXX-BRANCH:Implementations/YYY/ZZZ/CCC,type=DIRECTORY} failed at org.sonar.server.computation.component.VisitException.rethrowOrWrap(VisitException.java:44) ~[sonar-server-5.3.jar:na] at org.sonar.server.computation.component.DepthTraversalTypeAwareCrawler.visit(DepthTraversalTypeAwareCrawler.java:42) ~[sonar-server-5.3.jar:na] at org.sonar.server.computation.component.DepthTraversalTypeAwareCrawler.visitChildren(DepthTraversalTypeAwareCrawler.java:99) ~[sonar-server-5.3.jar:na] at org.sonar.server.computation.component.DepthTraversalTypeAwareCrawler.visitImpl(DepthTraversalTypeAwareCrawler.java:55) ~[sonar-server-5.3.jar:na] at org.sonar.server.computation.component.DepthTraversalTypeAwareCrawler.visit(DepthTraversalTypeAwareCrawler.java:40) ~[sonar-server-5.3.jar:na] at org.sonar.server.computation.component.DepthTraversalTypeAwareCrawler.visitChildren(DepthTraversalTypeAwareCrawler.java:99) ~[sonar-server-5.3.jar:na] at org.sonar.server.computation.component.DepthTraversalTypeAwareCrawler.visitImpl(DepthTraversalTypeAwareCrawler.java:55) ~[sonar-server-5.3.jar:na] at org.sonar.server.computation.component.DepthTraversalTypeAwareCrawler.visit(DepthTraversalTypeAwareCrawler.java:40) ~[sonar-server-5.3.jar:na] at org.sonar.server.computation.step.ComputeMeasureVariationsStep.execute(ComputeMeasureVariationsStep.java:93) ~[sonar-server-5.3.jar:na] at org.sonar.server.computation.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:39) ~[sonar-server-5.3.jar:na] at org.sonar.server.computation.taskprocessor.report.ReportTaskProcessor.process(ReportTaskProcessor.java:72) ~[sonar-server-5.3.jar:na] at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.executeTask(CeWorkerCallableImpl.java:81) [sonar-server-5.3.jar:na] at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:56) [sonar-server-5.3.jar:na] at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:35) [sonar-server-5.3.jar:na] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_66] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_66] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_66] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_66] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_66] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_66] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_66] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_66] Caused by: java.lang.IllegalArgumentException: Multiple entries with same key: MeasureKey{metricKey='lines', ruleId=-6253, characteristicId=-6253, developer=null}=org.sonar.db.measure.PastMeasureDto@71c6f620 and MeasureKey{metricKey='lines', ruleId=-6253, characteristicId=-6253, developer=null}=org.sonar.db.measure.PastMeasureDto@804bff2
at com.google.common.collect.ImmutableMap.checkNoConflict(ImmutableMap.java:150) ~[guava-17.0.jar:na]
etc as before.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/ba1d2e4a-56fd-48ab-99e2-f22eefcb1453%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/a23cebae-4e84-4bc0-a65a-144956dca1ee%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/893420fd-fe51-4dcb-984b-1bd198fd237e%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/5ae1ef5c-14e9-4a20-8d6d-e4bd0aab1917%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/2e780606-dda6-471f-909c-d065a1333975%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.