Fwd: Flow of IllegalStateException in IDEA plugin

87 views
Skip to first unread message

jerome....@sonarsource.com

unread,
Mar 2, 2016, 4:47:46 AM3/2/16
to sona...@googlegroups.com


On Wednesday, 2 December 2015 14:50:53 UTC+1, Stephen Williams wrote:
This looks like the same problem I reported in the last week or two. And, as far as I know, I only have the SonarLint Sonar plugin installed.

On Wednesday, 2 December 2015 13:47:03 UTC, Duarte Meneses wrote:
Hello,

Thanks for the report. We are currently working on improving SonarLint for Intellij.

It appears that 2 analysis are running at the same time.
Are you running any sonarqube scanner on the same project while using SonarLint?




On 2 December 2015 at 13:50, Sébastien Pennec <sebastie...@gmail.com> wrote:
Here's a stacktrace linked to one of the errors:

Another SonarQube analysis is already in progress for this project
java.lang.IllegalStateException: Another SonarQube analysis is already in progress for this project
at org.sonar.batch.scan.ProjectLock.failAlreadyInProgress(ProjectLock.java:52)
at org.sonar.batch.scan.ProjectLock.tryLock(ProjectLock.java:44)
at org.sonar.batch.scan.ProjectScanContainer.doBeforeStart(ProjectScanContainer.java:116)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:94)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:81)
at org.sonar.batch.bootstrap.GlobalContainer.executeAnalysis(GlobalContainer.java:136)
at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119)
at org.sonar.runner.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:61)
at sun.reflect.GeneratedMethodAccessor3171.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.sonar.runner.impl.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:61)
at com.sun.proxy.$Proxy200.execute(Unknown Source)
at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:273)
at org.sonar.runner.api.EmbeddedRunner.runAnalysis(EmbeddedRunner.java:166)
at org.sonarlint.intellij.inspection.SonarQubeRunnerFacade.startAnalysis(SonarQubeRunnerFacade.java:66)
at org.sonarlint.intellij.inspection.SonarLintAnalysisConfigurator.run(SonarLintAnalysisConfigurator.java:239)
at org.sonarlint.intellij.inspection.SonarLintAnalysisConfigurator.analyzeModule(SonarLintAnalysisConfigurator.java:82)
at org.sonarlint.intellij.inspection.SonarLintLocalInspection.runAnalysis(SonarLintLocalInspection.java:93)
at org.sonarlint.intellij.inspection.SonarLintLocalInspection.checkFile(SonarLintLocalInspection.java:85)
at com.intellij.codeInspection.LocalInspectionTool$1.visitFile(LocalInspectionTool.java:153)
at com.intellij.psi.PsiElementVisitor.visitPlainTextFile(PsiElementVisitor.java:42)
at com.intellij.psi.impl.source.PsiPlainTextFileImpl.accept(PsiPlainTextFileImpl.java:36)
at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:81)
at com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:69)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:294)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.access$200(LocalInspectionsPass.java:73)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:261)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:256)
at com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:122)
at com.intellij.concurrency.ApplierCompleter.access$000(ApplierCompleter.java:44)
at com.intellij.concurrency.ApplierCompleter$1.run(ApplierCompleter.java:85)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1169)
at com.intellij.concurrency.ApplierCompleter$2.run(ApplierCompleter.java:94)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:443)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:106)
at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:82)
at jsr166e.CountedCompleter.exec(CountedCompleter.java:684)
at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:108)





On Wednesday, December 2, 2015 at 1:49:05 PM UTC+1, Sébastien Pennec wrote:
Hello,

I'm currently giving a try to the SonarLint IDEA plugin, with IDEA 15.0.2.

It reports a _lot_ of errors as you can see in the log extract below. Anybody knows how to fix this?

Thanks a lot :)

Sébastien

Logs from those last minutes:

13:44:01 IllegalStateException: Another SonarQube analysis is already in progress for this project
13:44:16 IllegalStateException: Another SonarQube analysis is already in progress for this project
13:44:20 IllegalStateException: Another SonarQube analysis is already in progress for this project
13:44:22 IllegalStateException: Another SonarQube analysis is already in progress for this project
13:44:24 IllegalStateException: Another SonarQube analysis is already in progress for this project
13:44:25 IllegalStateException: Another SonarQube analysis is already in progress for this project
13:44:27 IllegalStateException: Another SonarQube analysis is already in progress for this project
13:44:28 IllegalStateException: Another SonarQube analysis is already in progress for this project
13:44:35 IllegalStateException: Another SonarQube analysis is already in progress for this project
13:44:36 IllegalStateException: Another SonarQube analysis is already in progress for this project
13:44:38 IllegalStateException: Another SonarQube analysis is already in progress for this project
13:44:40 IllegalStateException: Another SonarQube analysis is already in progress for this project
13:44:42 IllegalStateException: Another SonarQube analysis is already in progress for this project
13:44:43 IllegalStateException: Another SonarQube analysis is already in progress for this project
13:44:45 Compilation completed successfully with 2 warnings in 1s 233ms
13:44:46 Tests Passed: 11 passed
13:44:50 IllegalStateException: Another SonarQube analysis is already in progress for this project
13:44:56 IllegalStateException: Another SonarQube analysis is already in progress for this project
13:45:00 IllegalStateException: Another SonarQube analysis is already in progress for this project
13:45:15 IllegalStateException: Another SonarQube analysis is already in progress for this project
13:46:25 IllegalStateException: Another SonarQube analysis is already in progress for this project

--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@sonarsource.com.
To post to this group, send email to sona...@sonarsource.com.
To view this discussion on the web visit https://groups.google.com/a/sonarsource.com/d/msgid/sonarlint/9bb463b9-b23c-4088-8789-1822a11755a3%40sonarsource.com.



--
Duarte MENESES | SonarSource
Reply all
Reply to author
Forward
0 new messages