-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to register extension com.exxeta.eis.son ar.esql.core.EsqlSourceImporter #7
Comments
I was able to resolve this exception when used Sonar qube 5.2, however now the parsing errors when the plug-in analyzes the esql. |
I have only tested the plugin with SonarQube 4.5.2, but it's great to know that it works with 5.2. When I'll find some time I will check what is necessary to make the plugin compatible with 5.5. In the meantime could you please provide the line(s) where the parse-errors occure? Maybe you found a bug in the parser. |
There is a rule called "Parser failure". Please check if it is activated in your Quality profile. If not, activate it and reanalyze your code. |
CREATE FIELD OutputRoot.JSON.Data.item.featureList IDENTITY (JSON.Array)featureList; This is the line at which seems like parsing error is occurring. Not sure what could be the reason. |
- issue #7 - variable names - case functions and statements
That's a bug in the ESQL-parser of the plugin. The fix will be included in the next release. |
@ThomasPohl : can you please let us know when are you planning to release the next version. We are running sonar 5.4 and we get the following error when esql is installed [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.2:sonar (default-cli) on project sandbox-project: Unable to register extension com.exxeta.eis.sonar.esql.core.EsqlSourceImporter: org/sonar/api/resources/ProjectFileSystem: org.sonar.api.resources.ProjectFileSystem |
I just released version 1.1.0 |
Probably I will publish the next release candidate next week. It will require at least SonarQube Version 5.6. |
Tried with the Scanner 2.6 and sonarqube-5.5 and received following error. Trying to see what could be causing it,
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: Unable to register extension com.exxeta.eis.son
ar.esql.core.EsqlSourceImporter
at org.sonar.core.platform.ComponentContainer.addExtension(ComponentCont
ainer.java:248)
at org.sonar.batch.bootstrap.ExtensionInstaller.doInstall(ExtensionInsta
ller.java:76)
at org.sonar.batch.bootstrap.ExtensionInstaller.install(ExtensionInstall
er.java:57)
at org.sonar.batch.scan.ModuleScanContainer.addExtensions(ModuleScanCont
ainer.java:176)
at org.sonar.batch.scan.ModuleScanContainer.doBeforeStart(ModuleScanCont
ainer.java:94)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentC
ontainer.java:140)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer
.java:127)
at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.j
ava:265)
at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScan
Container.java:260)
at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanCon
tainer.java:250)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentC
ontainer.java:142)
at org.sonar.batch.scan.ProjectScanContainer.startComponents(ProjectScan
Container.java:128)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer
.java:127)
at org.sonar.batch.task.ScanTask.execute(ScanTask.java:55)
at org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86
)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentC
ontainer.java:142)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer
.java:127)
at org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer
.java:124)
at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.exec
ute(BatchIsolatedLauncher.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(Iso
latedLauncherProxy.java:60)
at $Proxy0.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner
.java:240)
at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScann
er.java:151)
at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:110)
at org.sonarsource.scanner.cli.Main.execute(Main.java:72)
at org.sonarsource.scanner.cli.Main.main(Main.java:60)
Caused by: java.lang.NoClassDefFoundError: org/sonar/api/resources/ProjectFileSy
stem
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
at java.lang.Class.getDeclaredMethods(Class.java:1808)
at org.picocontainer.injectors.AdaptingInjection$1.run(AdaptingInjection
.java:203)
at java.security.AccessController.doPrivileged(Native Method)
at org.picocontainer.injectors.AdaptingInjection.injectionMethodAnnotate
d(AdaptingInjection.java:200)
at org.picocontainer.injectors.AdaptingInjection.methodAnnotatedInjectio
nAdapter(AdaptingInjection.java:171)
at org.picocontainer.injectors.AdaptingInjection.createComponentAdapter(
AdaptingInjection.java:70)
at org.picocontainer.behaviors.AbstractBehaviorFactory.createComponentAd
apter(AbstractBehaviorFactory.java:44)
at org.picocontainer.behaviors.OptInCaching.createComponentAdapter(OptIn
Caching.java:45)
at org.picocontainer.DefaultPicoContainer.addComponent(DefaultPicoContai
ner.java:536)
at org.picocontainer.DefaultPicoContainer.access$300(DefaultPicoContaine
r.java:84)
at org.picocontainer.DefaultPicoContainer$AsPropertiesPicoContainer.addC
omponent(DefaultPicoContainer.java:1149)
at org.sonar.core.platform.ComponentContainer.addExtension(ComponentCont
ainer.java:246)
... 30 more
Caused by: java.lang.ClassNotFoundException: org.sonar.api.resources.ProjectFile
System
at org.sonar.classloader.ParentFirstStrategy.loadClass(ParentFirstStrate
gy.java:39)
at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:87)
at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:76)
... 44 more
The text was updated successfully, but these errors were encountered: