Exception While Running Background task: org.sonar.server.computation.component.VisitException: Visit failed for Component

596 views
Skip to first unread message

Bangar Milind

unread,
Oct 12, 2016, 5:23:30 AM10/12/16
to SonarQube
Hi,

Since upgrade to 5.5, this is the first time got the following exception(with Log):

org.sonar.server.computation.component.VisitException: Visit failed for Component {key=com.ukgi.gw:gw-pc:develop:modules/configuration/gsrc/com/ukgi/gw/tools/viewgenerator/util/AbstractTransposeFactory.gs,type=FILE}  located com.ukgi.gw:gw-pc:develop:modules/configuration/gsrc/com/ukgi/gw/tools/viewgenerator/util(type=DIRECTORY)->com.ukgi.gw:gw-pc:develop(type=PROJECT)
	at org.sonar.server.computation.component.VisitException.rethrowOrWrap(VisitException.java:44) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.component.PathAwareCrawler.visit(PathAwareCrawler.java:52) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.component.PathAwareCrawler.visitChildren(PathAwareCrawler.java:87) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.component.PathAwareCrawler.visitImpl(PathAwareCrawler.java:70) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.component.PathAwareCrawler.visit(PathAwareCrawler.java:50) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.component.PathAwareCrawler.visitChildren(PathAwareCrawler.java:87) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.component.PathAwareCrawler.visitImpl(PathAwareCrawler.java:70) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.component.PathAwareCrawler.visit(PathAwareCrawler.java:50) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.step.NewCoverageMeasuresStep.execute(NewCoverageMeasuresStep.java:113) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.step.ComputationStepExecutor.executeSteps(ComputationStepExecutor.java:64) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:52) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.taskprocessor.report.ReportTaskProcessor.process(ReportTaskProcessor.java:75) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.executeTask(CeWorkerCallableImpl.java:81) [sonar-server-5.5.jar:na]
	at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:56) [sonar-server-5.5.jar:na]
	at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:35) [sonar-server-5.5.jar:na]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_79]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_79]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_79]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_79]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [na:1.7.0_79]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_79]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_79]
	at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]
Caused by: java.lang.IllegalArgumentException: There's no changeset on line 29
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:125) ~[guava-17.0.jar:na]
	at org.sonar.server.computation.scm.ScmInfoImpl.getChangesetForLine(ScmInfoImpl.java:66) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.scm.DbScmInfo.getChangesetForLine(DbScmInfo.java:71) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.step.NewCoverageMeasuresStep$NewCoverageCounter.initialize(NewCoverageMeasuresStep.java:391) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.formula.FormulaExecutorComponentVisitor.processLeaf(FormulaExecutorComponentVisitor.java:165) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.formula.FormulaExecutorComponentVisitor.process(FormulaExecutorComponentVisitor.java:142) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.formula.FormulaExecutorComponentVisitor.visitFile(FormulaExecutorComponentVisitor.java:122) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.component.PathAwareCrawler.visitNode(PathAwareCrawler.java:105) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.component.PathAwareCrawler.visitImpl(PathAwareCrawler.java:73) ~[sonar-server-5.5.jar:na]
	at org.sonar.server.computation.component.PathAwareCrawler.visit(PathAwareCrawler.java:50) ~[sonar-server-5.5.jar:na]
	... 21 common frames omitted

Went through some posts, some of them suggest to Exclude the files, which caused the exception.

Point is, can do that, but what is the root cause, needs to be understood.

Also, is there any way on SonarQube  , that background tasks can be re-triggered?

Thanks
Milind

Sebastien Lesaint

unread,
Oct 12, 2016, 5:30:14 AM10/12/16
to SonarQube
Hello,

You most likely hit SONAR-6897 and it is fixed in 5.6 and later versions of SonarQube.

The background tasks can not be "re-triggered" as uploaded report file is deleted once the task is finished (being successful or not).

Cheers,

Sébastien LESAINT | SonarSource
Platform Developer

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/23273448-9b53-4899-8f2b-2a9cb6d41ffd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bangar Milind

unread,
Oct 12, 2016, 6:06:12 AM10/12/16
to SonarQube
Thanks Sebastien...

We have recently upgraded from 4.2 and would be running 5.5 , util there is a direction.

Can you please confirm, if this issue would be a "persistent" one moving forward?

Regards
Milind
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.

Sebastien Lesaint

unread,
Oct 12, 2016, 8:00:40 AM10/12/16
to SonarQube
On 12 October 2016 at 12:06, Bangar Milind <milindb...@gmail.com> wrote:
Thanks Sebastien...

We have recently upgraded from 4.2 and would be running 5.5 , util there is a direction.

What do you mean by "util there is a direction"?
You should be running LTS version of SQ as much as possible. These are the versions for which you will get the most support and from which the most stability.
 

Can you please confirm, if this issue would be a "persistent" one moving forward?

Do you mean : If I stick to SQ 5.5, will I encounter this issue again?
Then, certainly yes. You'll need to use a workaround if you do not upgrade to a version of SonarQube where the problem is fixed.

 
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/0c6bb5dd-d610-4db8-a3d8-472c99af794e%40googlegroups.com.

Bangar Milind

unread,
Oct 12, 2016, 9:14:19 AM10/12/16
to SonarQube
What I meant was , I evaluate the versions provided and 5.6 had some issues with our Java projects. Plus we work on proprietary software, which is compatible with JDK6.

I will check again on 5.6.

Regards
Milind

G. Ann Campbell

unread,
Oct 12, 2016, 9:15:39 AM10/12/16
to SonarQube
Hi Milind,

JDK6 isn't holding you back. You can still compile with it, as long as you analyze with JDK 8.


Ann

ruedige...@googlemail.com

unread,
Feb 6, 2017, 4:34:11 AM2/6/17
to SonarQube
Hi Milind,

currently, I'm searching for a way to analyze GOSU source code with SonarQube.

According to your post, it seems like you've found a way to do this.

Which plugins are you using ?
Do you use CodeNarc or a different plugin ?

Any help is much appreciated !

Best regards from Germany,
Ruediger

G. Ann Campbell

unread,
Feb 6, 2017, 3:08:15 PM2/6/17
to SonarQube, ruedige...@googlemail.com
Hi Ruediger,

I don't understand why you've re-opened this thread. I can't find any mention of GOSU in Milind's post. Even so, the post is about an exception, and your addition to the thread constitutes a hijack attempt.

Please don't do that. Instead, open new threads for new topics (like the one you've already opened looking for a GOSU plugin).


Ann
Reply all
Reply to author
Forward
0 new messages