2015.12.03 05:43:41 ERROR [o.s.s.c.t.CeWorkerRunnableImpl] Failed to execute task AVFoFXr4tOKYAdi2XmBQ
java.lang.IllegalStateException: Changeset must have a date
at com.google.common.base.Preconditions.checkState(Preconditions.java:176) ~[guava-17.0.jar:na]
at org.sonar.server.computation.scm.ReportScmInfo.convert(ReportScmInfo.java:56) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.scm.ReportScmInfo.access$100(ReportScmInfo.java:40) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.scm.ReportScmInfo$LineIndexToChangeset.apply(ReportScmInfo.java:100) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.scm.ReportScmInfo$LineIndexToChangeset.apply(ReportScmInfo.java:84) ~[sonar-server-5.2.jar:na]
at com.google.common.collect.Iterators$8.transform(Iterators.java:794) ~[guava-17.0.jar:na]
at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) ~[guava-17.0.jar:na]
at com.google.common.collect.Iterators$7.computeNext(Iterators.java:646) ~[guava-17.0.jar:na]
at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-17.0.jar:na]
at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-17.0.jar:na]
at com.google.common.collect.Iterators.addAll(Iterators.java:356) ~[guava-17.0.jar:na]
at com.google.common.collect.Lists.newArrayList(Lists.java:147) ~[guava-17.0.jar:na]
at com.google.common.collect.Iterables.toCollection(Iterables.java:337) ~[guava-17.0.jar:na]
at com.google.common.collect.Iterables.toArray(Iterables.java:315) ~[guava-17.0.jar:na]
at com.google.common.collect.FluentIterable.toArray(FluentIterable.java:436) ~[guava-17.0.jar:na]
at org.sonar.server.computation.scm.ScmInfoImpl.<init>(ScmInfoImpl.java:43) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.scm.ReportScmInfo.convertToScmInfo(ReportScmInfo.java:49) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.scm.ReportScmInfo.<init>(ReportScmInfo.java:45) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.scm.ScmInfoRepositoryImpl.getScmInfoFromReport(ScmInfoRepositoryImpl.java:103) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.scm.ScmInfoRepositoryImpl.getScmInfoForComponent(ScmInfoRepositoryImpl.java:80) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.scm.ScmInfoRepositoryImpl.initializeScmInfoForComponent(ScmInfoRepositoryImpl.java:67) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.scm.ScmInfoRepositoryImpl.getScmInfo(ScmInfoRepositoryImpl.java:59) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.step.NewCoverageMeasuresStep$NewCoverageCounter.initialize(NewCoverageMeasuresStep.java:371) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.formula.FormulaExecutorComponentVisitor.processLeaf(FormulaExecutorComponentVisitor.java:165) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.formula.FormulaExecutorComponentVisitor.process(FormulaExecutorComponentVisitor.java:142) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.formula.FormulaExecutorComponentVisitor.visitFile(FormulaExecutorComponentVisitor.java:122) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.component.PathAwareCrawler.visitNode(PathAwareCrawler.java:89) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.component.PathAwareCrawler.visit(PathAwareCrawler.java:57) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.component.PathAwareCrawler.visitChildren(PathAwareCrawler.java:71) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.component.PathAwareCrawler.visit(PathAwareCrawler.java:54) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.component.PathAwareCrawler.visitChildren(PathAwareCrawler.java:71) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.component.PathAwareCrawler.visit(PathAwareCrawler.java:54) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.component.PathAwareCrawler.visitChildren(PathAwareCrawler.java:71) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.component.PathAwareCrawler.visit(PathAwareCrawler.java:54) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.component.PathAwareCrawler.visitChildren(PathAwareCrawler.java:71) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.component.PathAwareCrawler.visit(PathAwareCrawler.java:54) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.component.PathAwareCrawler.visitChildren(PathAwareCrawler.java:71) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.component.PathAwareCrawler.visit(PathAwareCrawler.java:54) ~[sonar-server-5.2.jar:na]
at org.sonar.server.computation.step.NewCoverageMeasuresStep.execute(NewCoverageMeasuresStep.java:113) ~[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_67]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) [na:1.7.0_67]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_67]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.7.0_67]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_67]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_67]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67]
By the way, if it would be better for me to post this on StackOverflow, let me know and I will do that instead.
--
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/0077d857-e213-4374-b341-9c03ad364a4f%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/Z4D-n9eQ0Ts/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/CADxMB_M3hPoL19Q%3DN4-uj-5TRVK1PmRBN%2Bvrn0a8Les1-3kJbg%40mail.gmail.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/9bb92b2c-07f5-41dc-ad8a-cd92574958d0%40googlegroups.com.
I have upgraded to 5.3-RC2 and run a build. The build log now shows the filelog and annotate commands being run against perforce for 5 different files, theen says 4/30 files analyzed. Next it says "Missing blame information for the following files:" and gives a large list of files (26).The error printed at the end says: Blame date is null for file src/main/java/com/ourcompany/ourproduct/auth/security/CoreCredentialVerifier.javaI've attached that log as "sonar 53 log.txt"If I run the last commands that it ran, manually, I get the output you see in "filelog.txt". Every changelist shown here has a date on it.However, it is worth noting that the first changelist number (the last in the log if you're reading top to bottom) is actually a changelist number on a DIFFERENT Perforce server. This file was imported (branched) from one Perforce server to another; in the process, some information was lost. That's why it says "remote@remote" as the user and workspace names (that's what it puts when you import in this manner). The correct thing to do in this situation would be to ignore that revision. But in any case, the date is on it so I'm not sure why SonarQube is having trouble with it.Let me know if there's anything else I can provide to help. Hopefully this can get fixed in 5.3 so we don't have to keep SCM turned off!Thanks,Tyrel
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/9bb92b2c-07f5-41dc-ad8a-cd92574958d0%40googlegroups.com.
Hi Tyrel,That's a very interesting feedback. I was already working on fixing a similar issue with the help of Matthew DeTullio. Would you mind testing this updated version of the perforce plugin:Matthew changed the strategy to no more use p4 filelog command but instead use p4 change -o on each changelist referenced by p4 annotate.Could you please report any success/issue directly on the pull request:ThanksJulien
Le mardi 5 janvier 2016 00:24:25 UTC+1, Tyrel Haveman a écrit :
I have upgraded to 5.3-RC2 and run a build. The build log now shows the filelog and annotate commands being run against perforce for 5 different files, theen says 4/30 files analyzed. Next it says "Missing blame information for the following files:" and gives a large list of files (26).The error printed at the end says: Blame date is null for file src/main/java/com/ourcompany/ourproduct/auth/security/CoreCredentialVerifier.javaI've attached that log as "sonar 53 log.txt"If I run the last commands that it ran, manually, I get the output you see in "filelog.txt". Every changelist shown here has a date on it.However, it is worth noting that the first changelist number (the last in the log if you're reading top to bottom) is actually a changelist number on a DIFFERENT Perforce server. This file was imported (branched) from one Perforce server to another; in the process, some information was lost. That's why it says "remote@remote" as the user and workspace names (that's what it puts when you import in this manner). The correct thing to do in this situation would be to ignore that revision. But in any case, the date is on it so I'm not sure why SonarQube is having trouble with it.Let me know if there's anything else I can provide to help. Hopefully this can get fixed in 5.3 so we don't have to keep SCM turned off!Thanks,Tyrel
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/9bb92b2c-07f5-41dc-ad8a-cd92574958d0%40googlegroups.com.
Try setting sonar.perforce.sockSoTimeout to something like 60000 or possibly higher depending on performance of all services involved (including network connectivity). The default is 30000.
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/Z4D-n9eQ0Ts/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/829d5807-744f-4d2c-9643-7b17ff43d4be%40googlegroups.com.
The setting changes how long to wait for any one perforce command to get a response from the perforce server during analysis. There's no harm to increasing it unless network problems are common, then a high timeout will just prolong the time to failure
Socket timeout is per file, so the Perforce server may be taking a long time to retrieve history or annotate a specific file. Keep increasing the timeout value.
--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/Z4D-n9eQ0Ts/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/a036df1b-fbef-4aec-bdf5-4ee8edfdcefb%40googlegroups.com.