uartois / sonar-golang

Sonarqube plugin for the golang language.
GNU Lesser General Public License v3.0
245 stars 32 forks source link

Latest doesn't work with Sonar #2

Closed andrew-sklyar closed 7 years ago

andrew-sklyar commented 7 years ago

Description

Latest doesn't work with SonarQube

Steps to Reproduce

  1. I installed https://github.com/uartois/sonar-golang/releases/tag/1.2.1 on our SonarQube server (jar file).
  2. Restarted the server
  3. Got the log below

Versions

Versions of my sonar installation - Version 6.3.1.21392

Additional Information

Sonar Log: java.lang.IllegalStateException: Unable to read plugin manifest from jar : /opt/sonarqube/extensions/plugins/sonar-golang-plugin-1.2.1.jar at org.sonar.updatecenter.common.PluginManifest.(PluginManifest.java:125) at org.sonar.core.platform.PluginInfo.create(PluginInfo.java:397) at org.sonar.server.plugins.ServerPluginRepository.loadPreInstalledPlugins(ServerPluginRepository.java:136) at org.sonar.server.plugins.ServerPluginRepository.start(ServerPluginRepository.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110) at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89) at org.sonar.core.platform.ComponentContainer$1.start(ComponentContainer.java:321) at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84) at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169) at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132) at org.picocontainer.behaviors.Stored.start(Stored.java:110) at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016) at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009) at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142) at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:88) at org.sonar.server.platform.platformlevel.PlatformLevel2.start(PlatformLevel2.java:87) at org.sonar.server.platform.Platform.start(Platform.java:203) at org.sonar.server.platform.Platform.startLevel2Container(Platform.java:169) at org.sonar.server.platform.Platform.init(Platform.java:71) at org.sonar.server.platform.web.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:44) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:219) at java.util.zip.ZipFile.(ZipFile.java:149) at java.util.jar.JarFile.(JarFile.java:166) at java.util.jar.JarFile.(JarFile.java:130) at org.sonar.updatecenter.common.PluginManifest.(PluginManifest.java:120) ... 33 common frames omitted 2017.05.22 14:10:34 ERROR web[][o.a.c.c.StandardContext] One or more listeners failed to start. Full details will be found in the appropriate container log file 2017.05.22 14:10:34 ERROR web[][o.a.c.c.StandardContext] Context [/sonarqube] startup failed due to previous errors