Closed bartzet closed 5 years ago
Describe the bug Sonar-swift 4.0 from https://docs.sonarqube.org/display/PLUG/SonarSwift doesn't work with SonarQube 7.3.
When I start the server after including the .jar file in the plugins. I get this errors in the logs after trying to start sonar server:
2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /Users/bart.ziemba/Projects/sonarqube-7.3 2018.10.15 14:16:44 INFO web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Git / 1.4.1.1128 / e051f5aeb379541b13956447b5dc8b4e0b23b098 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin LDAP / 2.2.0.608 / 79dc3fa4393a29667673c70182f3016288b548b7 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarC# / 7.3.2.6129 / e7a731061a7fa928c4e1c11b830f22db97a61f83 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarCSS / 1.0.1.508 / 2eb799e363666ae65036ad61a6e6adc1a1283097 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarFlex / 2.4.0.1222 / 68d9cb3b7daccbc4869c4f2b89d09218d26a0829 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarGo / 1.1.0.1612 / 1809c7be6d88396c0a1b8d597b1e9e0ed8d29730 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJS / 4.2.0.6476 / a21b56462f3375b5d51d90f1819862878476d817 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJava / 5.6.1.15064 / dd4545a04af6f7d0cb0486926cfa8cfc5cae5ee1 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarKotlin / 1.0.1.965 / b5872affdfeda52e0a71494e2df9a3524b80d3bc 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPHP / 2.14.0.3569 / 59a202b8d1c5276ce32da2a0bc63c94cae4cdeb2 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPython / 1.10.0.2131 / a00e0ddc83bbeb01a9ee7475fab9eafe3f4096ac 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarSwift / 4.0.0.2853 / 43146fb7447d2431725c3fa1ccc5c48e93201b3a 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarTS / 1.7.0.2893 / 0d296cae94240b183a0b3ae6e1a409a60fe9f865 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarXML / 1.5.1.1452 / eadc1dcd0e24a3c77068e3c1d41af0327d6b16ea 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Svn / 1.8.0.1168 / 4143f2d119022a758f6bf40aed4294e4c31706cf 2018.10.15 14:16:45 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@5832f48d [pattern=UrlPattern{inclusions=[/api/system/migrate_db.*, ...], exclusions=[/api/properties*, ...]}] 2018.10.15 14:16:45 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000 2018.10.15 14:16:46 WARN web[][o.s.c.p.ComponentKeys] Bad component key: org.sonar.java.externalreport.ExternalRulesDefinition@ae2382e. Please implement toString() method on class org.sonar.java.externalreport.ExternalRulesDefinition 2018.10.15 14:16:46 WARN web[][o.s.c.p.ComponentKeys] Bad component key: org.sonar.java.externalreport.ExternalRulesDefinition@2622efee. Please implement toString() method on class org.sonar.java.externalreport.ExternalRulesDefinition 2018.10.15 14:16:46 WARN web[][o.s.c.p.ComponentKeys] Bad component key: org.sonar.java.externalreport.ExternalRulesDefinition@1bc17116. Please implement toString() method on class org.sonar.java.externalreport.ExternalRulesDefinition 2018.10.15 14:16:46 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube java.lang.IllegalStateException: Fail to load plugin SonarSwift [swift] at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:82) at org.sonar.server.platform.platformlevel.PlatformLevel4.start(PlatformLevel4.java:586) 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.base/java.lang.Thread.run(Thread.java:844) Caused by: java.lang.NoClassDefFoundError: com/sonarsource/plugins/license/api/LicensedPluginRegistration at com.sonar.swift.plugin.SwiftPlugin.define(Unknown Source) at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:72) ... 9 common frames omitted Caused by: java.lang.ClassNotFoundException: com.sonarsource.plugins.license.api.LicensedPluginRegistration 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) ... 11 common frames omitted 2018.10.15 14:16:46 INFO web[][o.s.p.StopWatcher] Stopping process
Hi,
Version 0.4.3 is now working ok on SonarQube 7.3 and above : https://github.com/Backelite/sonar-swift/releases/tag/0.4.3
Gilles
Describe the bug Sonar-swift 4.0 from https://docs.sonarqube.org/display/PLUG/SonarSwift doesn't work with SonarQube 7.3.
When I start the server after including the .jar file in the plugins. I get this errors in the logs after trying to start sonar server:
2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /Users/bart.ziemba/Projects/sonarqube-7.3 2018.10.15 14:16:44 INFO web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Git / 1.4.1.1128 / e051f5aeb379541b13956447b5dc8b4e0b23b098 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin LDAP / 2.2.0.608 / 79dc3fa4393a29667673c70182f3016288b548b7 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarC# / 7.3.2.6129 / e7a731061a7fa928c4e1c11b830f22db97a61f83 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarCSS / 1.0.1.508 / 2eb799e363666ae65036ad61a6e6adc1a1283097 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarFlex / 2.4.0.1222 / 68d9cb3b7daccbc4869c4f2b89d09218d26a0829 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarGo / 1.1.0.1612 / 1809c7be6d88396c0a1b8d597b1e9e0ed8d29730 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJS / 4.2.0.6476 / a21b56462f3375b5d51d90f1819862878476d817 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJava / 5.6.1.15064 / dd4545a04af6f7d0cb0486926cfa8cfc5cae5ee1 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarKotlin / 1.0.1.965 / b5872affdfeda52e0a71494e2df9a3524b80d3bc 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPHP / 2.14.0.3569 / 59a202b8d1c5276ce32da2a0bc63c94cae4cdeb2 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPython / 1.10.0.2131 / a00e0ddc83bbeb01a9ee7475fab9eafe3f4096ac 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarSwift / 4.0.0.2853 / 43146fb7447d2431725c3fa1ccc5c48e93201b3a 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarTS / 1.7.0.2893 / 0d296cae94240b183a0b3ae6e1a409a60fe9f865 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarXML / 1.5.1.1452 / eadc1dcd0e24a3c77068e3c1d41af0327d6b16ea 2018.10.15 14:16:44 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Svn / 1.8.0.1168 / 4143f2d119022a758f6bf40aed4294e4c31706cf 2018.10.15 14:16:45 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@5832f48d [pattern=UrlPattern{inclusions=[/api/system/migrate_db.*, ...], exclusions=[/api/properties*, ...]}] 2018.10.15 14:16:45 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000 2018.10.15 14:16:46 WARN web[][o.s.c.p.ComponentKeys] Bad component key: org.sonar.java.externalreport.ExternalRulesDefinition@ae2382e. Please implement toString() method on class org.sonar.java.externalreport.ExternalRulesDefinition 2018.10.15 14:16:46 WARN web[][o.s.c.p.ComponentKeys] Bad component key: org.sonar.java.externalreport.ExternalRulesDefinition@2622efee. Please implement toString() method on class org.sonar.java.externalreport.ExternalRulesDefinition 2018.10.15 14:16:46 WARN web[][o.s.c.p.ComponentKeys] Bad component key: org.sonar.java.externalreport.ExternalRulesDefinition@1bc17116. Please implement toString() method on class org.sonar.java.externalreport.ExternalRulesDefinition 2018.10.15 14:16:46 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube java.lang.IllegalStateException: Fail to load plugin SonarSwift [swift] at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:82) at org.sonar.server.platform.platformlevel.PlatformLevel4.start(PlatformLevel4.java:586) 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.base/java.lang.Thread.run(Thread.java:844) Caused by: java.lang.NoClassDefFoundError: com/sonarsource/plugins/license/api/LicensedPluginRegistration at com.sonar.swift.plugin.SwiftPlugin.define(Unknown Source) at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:72) ... 9 common frames omitted Caused by: java.lang.ClassNotFoundException: com.sonarsource.plugins.license.api.LicensedPluginRegistration 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) ... 11 common frames omitted 2018.10.15 14:16:46 INFO web[][o.s.p.StopWatcher] Stopping process