SonarQube 7.2 not compatible with licensed sonar plugins

license
cpp
sonarqube

(Dave) #1

Hi,

System:

  • SonarQube 7.2
  • sonar-cfamily-plugin-5.1.0.10083
  • sonar-license-plugin-3.3.0.1341

After upgrading from SonarQube 7.0 to 7.2 I added the sonar-cfamily and sonar-license plugin to the extensions/plugin directory and restarted sonar qube.

I get the following error:

2018.06.19 14:56:14 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
java.lang.IllegalStateException: Fail to load plugin License [license]
	at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:81)
	at org.sonar.server.platform.platformlevel.PlatformLevel4.start(PlatformLevel4.java:585)
	at org.sonar.server.platform.Platform.start(Platform.java:211)
	at org.sonar.server.platform.Platform.startLevel34Containers(Platform.java:185)
	at org.sonar.server.platform.Platform.access$500(Platform.java:46)
	at org.sonar.server.platform.Platform$1.lambda$doRun$0(Platform.java:119)
	at org.sonar.server.platform.Platform$AutoStarterRunnable.runIfNotAborted(Platform.java:371)
	at org.sonar.server.platform.Platform$1.doRun(Platform.java:119)
	at org.sonar.server.platform.Platform$AutoStarterRunnable.run(Platform.java:355)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: org/sonar/server/computation/task/step/StatelessInitExtension
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
	at org.sonar.classloader.ClassRealm.loadClassFromSelf(ClassRealm.java:125)
	at org.sonar.classloader.ParentFirstStrategy.loadClass(ParentFirstStrategy.java:37)
	at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:87)
	at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:76)
	at com.sonarsource.license.plugin.L.A(Unknown Source)
	at com.sonarsource.license.plugin.L.A(Unknown Source)
	at com.sonarsource.license.plugin.L.define(Unknown Source)
	at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:71)
	... 9 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.sonar.server.computation.task.step.StatelessInitExtension
	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)
	... 26 common frames omitted
2018.06.19 14:56:14 INFO  web[][o.s.p.StopWatcher] Stopping process

When I removed the sonar-cfamily and sonar-license plugins and restarted it worked fine, however I need those two plugins active.

Thanks,

Dave


(Nicolas Bontoux) #2

Hi Dave,

Which Edition did you download ? Per announcement:

And most importantly per Upgrade Note (important to read them for each intermediary version of an upgrade): there are now distinct packages for each SonarQube Edition.

C/C++ analysis is a feature of commercial editions, so make sure to download the edition which you have a license for, and let us know how that goes.


(Dave) #3

Hi Nicolas,

That was it, I was using the community edition but I needed to use the developer edition.
Sorry about that, I’ll pay more attention to the announcements moving forward.

Thanks,

Dave