SonarLint Analysis failed: Unable to register extension com.villagechief.sonar.salesforce.License

sonarlint

(Swarupa Kalapala) #1

Using configuration of ‘com.optum.electronicProducts:csu’ in server ‘sonar.optum.com
Analysing ‘SupportBusiness.java’…
Error running SonarLint analysis

java.lang.IllegalStateException: Unable to register extension com.villagechief.sonar.salesforce.License
	at org.sonarsource.sonarlint.core.container.ComponentContainer.addExtension(ComponentContainer.java:234)
	at org.sonarsource.sonarlint.core.container.global.ExtensionInstaller.loadExtensions(ExtensionInstaller.java:93)
	at org.sonarsource.sonarlint.core.container.global.ExtensionInstaller.install(ExtensionInstaller.java:63)
	at org.sonarsource.sonarlint.core.container.analysis.AnalysisContainer.addPluginExtensions(AnalysisContainer.java:124)
	at org.sonarsource.sonarlint.core.container.analysis.AnalysisContainer.doBeforeStart(AnalysisContainer.java:66)
	at org.sonarsource.sonarlint.core.container.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonarsource.sonarlint.core.container.ComponentContainer.execute(ComponentContainer.java:110)
	at org.sonarsource.sonarlint.core.container.storage.StorageAnalyzer.analyze(StorageAnalyzer.java:75)
	at org.sonarsource.sonarlint.core.container.storage.StorageContainerHandler.analyze(StorageContainerHandler.java:82)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.lambda$analyze$0(ConnectedSonarLintEngineImpl.java:152)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.withReadLock(ConnectedSonarLintEngineImpl.java:344)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.withReadLock(ConnectedSonarLintEngineImpl.java:334)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.analyze(ConnectedSonarLintEngineImpl.java:149)
	at org.sonarlint.intellij.core.ConnectedSonarLintFacade.analyze(ConnectedSonarLintFacade.java:71)
	at org.sonarlint.intellij.core.SonarLintFacade.startAnalysis(SonarLintFacade.java:65)
	at org.sonarlint.intellij.analysis.SonarLintAnalyzer.analyzeModule(SonarLintAnalyzer.java:106)
	at org.sonarlint.intellij.analysis.SonarLintTask.analyze(SonarLintTask.java:176)
	at org.sonarlint.intellij.analysis.SonarLintTask.run(SonarLintTask.java:100)
	at org.sonarlint.intellij.analysis.SonarLintUserTask.run(SonarLintUserTask.java:39)
	at org.sonarlint.intellij.analysis.SonarLintJobManager.lambda$null$1(SonarLintJobManager.java:120)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
	at org.sonarlint.intellij.analysis.SonarLintJobManager.lambda$runTask$2(SonarLintJobManager.java:120)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: org/sonar/api/resources/Project
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
	at java.lang.Class.getDeclaredMethods(Class.java:1975)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.AdaptingInjection$1.run(AdaptingInjection.java:203)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.AdaptingInjection.injectionMethodAnnotated(AdaptingInjection.java:200)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.AdaptingInjection.methodAnnotatedInjectionAdapter(AdaptingInjection.java:171)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.AdaptingInjection.createComponentAdapter(AdaptingInjection.java:70)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.behaviors.AbstractBehaviorFactory.createComponentAdapter(AbstractBehaviorFactory.java:44)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.behaviors.OptInCaching.createComponentAdapter(OptInCaching.java:45)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.DefaultPicoContainer.addComponent(DefaultPicoContainer.java:536)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.DefaultPicoContainer.access$300(DefaultPicoContainer.java:84)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.DefaultPicoContainer$AsPropertiesPicoContainer.addComponent(DefaultPicoContainer.java:1149)
	at org.sonarsource.sonarlint.core.container.ComponentContainer.addExtension(ComponentContainer.java:232)
	... 30 more
Caused by: java.lang.ClassNotFoundException: org.sonar.api.resources.Project
	at org.sonar.classloader.ParentFirstStrategy.loadClass(ParentFirstStrategy.java:39)
	at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:87)
	at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:76)
	... 44 more