Skip to content
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

Issue with plugin at Sonar-10.4 java.lang.ClassNotFoundException: org.sonar.plugins.java.api.CheckRegistrar #66

Open
C4tWithShell opened this issue Mar 1, 2024 · 2 comments

Comments

@C4tWithShell
Copy link

09:58:41  java.lang.NoClassDefFoundError: org/sonar/plugins/java/api/CheckRegistrar
09:58:41  	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
09:58:41  	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
09:58:41  	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
09:58:41  	at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:524)
09:58:41  	at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:427)
09:58:41  	at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:421)
09:58:41  	at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
09:58:41  	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:420)
09:58:41  	at org.sonar.classloader.ClassRealm.loadClassFromSelf(ClassRealm.java:135)
09:58:41  	at org.sonar.classloader.ParentFirstStrategy.loadClass(ParentFirstStrategy.java:37)
09:58:41  	at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:97)
09:58:41  	at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:86)
09:58:41  	at com.qualinsight.plugins.sonarqube.smell.plugin.SmellPlugin.define(SmellPlugin.java:59)
09:58:41  	at org.sonar.scanner.bootstrap.ExtensionInstaller.installExtensionsForPlugins(ExtensionInstaller.java:64)
09:58:41  	at org.sonar.scanner.bootstrap.ExtensionInstaller.install(ExtensionInstaller.java:51)
09:58:41  	at org.sonar.scanner.bootstrap.SpringScannerContainer.addScannerExtensions(SpringScannerContainer.java:175)
09:58:41  	at org.sonar.scanner.bootstrap.SpringScannerContainer.doBeforeStart(SpringScannerContainer.java:155)
09:58:41  	at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:221)
09:58:41  	at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:202)
09:58:41  	at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:138)
09:58:41  	at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:223)
09:58:41  	at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:202)
09:58:41  	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:71)
09:58:41  	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:65)
09:58:41  	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
09:58:41  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
09:58:41  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
09:58:41  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
09:58:41  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
09:58:41  	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
09:58:41  	at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
09:58:41  	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
09:58:41  	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
09:58:41  	at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
09:58:41  	at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
09:58:41  	at org.sonarsource.scanner.cli.Main.main(Main.java:62)
09:58:41  Caused by: java.lang.ClassNotFoundException: org.sonar.plugins.java.api.CheckRegistrar
09:58:41  	at org.sonar.classloader.ParentFirstStrategy.loadClass(ParentFirstStrategy.java:39)
09:58:41  	at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:97)
09:58:41  	at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:86)
09:58:41  	... 36 more
@suvl
Copy link

suvl commented Jul 2, 2024

We shall consider this plugin dead. No fix since march.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants