Home > other >  An error occurred when sonar installed oc plug-in
An error occurred when sonar installed oc plug-in

Time:10-24



Business code would only write four years of development, the distributed high concurrency also can't be a programmer? ->>


@ advancer_chen hello, want to ask you a question:
I in the configuration of sonar environment, need to install the object c plug-in, in order to support the object c syntax checking, I downloaded from the Internet the iOS - sonarShell - master. Zip, containing two compiled jar package: backelite sonar - objective - c - the plugin - 0.6.2. Jar and sonar - objective - c - the plugin - 0.5.0 - the SNAPSHOT. The jar, but no matter which package will be put into {SONAR_HOME}/extensions/plugins, restart the sonar has problems, from the log inside of sonar:
2019.08.13 14:21:38 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@2b7c0168 [pattern=UrlPattern{inclusions=[/api/system/migrate_db.*, ...], exclusions=[/api/properties*, ...]}] 2019.08.13 14:21:38 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000 2019.08.13 14:21:39 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube java.lang.IllegalStateException: Fail to load plugin ObjectiveC (Backelite) [backelitesonarobjectivecplugin] 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.lang.Thread.run(Thread.java:748) Caused by: java.lang.NoClassDefFoundError: org/sonar/api/batch/AbstractCpdMapping 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:468) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) 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 org.sonar.plugins.objectivec.ObjectiveCPlugin.getExtensions(ObjectiveCPlugin.java:53) at org.sonar.api.SonarPlugin.define(SonarPlugin.java:51) at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:72) ... 9 common frames omitted under Caused by: Java. Lang. ClassNotFoundException: org. Sonar. API. Batch. AbstractCpdMapping at org. Sonar. This. ParentFirstStrategy. LoadClass (ParentFirstStrategy. Java: 39) at org. Sonar. This. ClassRealm. LoadClass (ClassRealm. Java: 87) at org. Sonar. This. ClassRealm. LoadClass (ClassRealm. Java: 76)... 25 common frames omitted 2019.08.13 14:21:40 INFO web [] [O.S.P.S topWatcher] Stopping process 2019.08.13 15:01:00 INFO web [] [O.S.P.P rocessEntryPoint] Starting web
I want to know if this is because the wrong version? The configuration error or sonar? Thank you very much!

CodePudding user response:

With wrong, sonarqube7.5, objectc 0.6.2 plug-in
  • Related