Thursday, 20 April 2017

java.lang.IllegalStateException: Cannot stop. Current container state was: CONSTRUCTED

This represents, one or more of our plugins are not compatible with Installed Sonar Version.

In my case,

after keeping "sonar-governance-plugin-1.2.0.1659" file in my sonarqube-6.3\extensions\plugins folder, i encountered an issue starting Sonar Server.

Error That i got on running StartSonar.bat

java.lang.IllegalStateException: Cannot stop.  Current container state was: CONSTRUCTED
at org.picocontainer.lifecycle.DefaultLifecycleState.stopping(DefaultLifecycleState.java:72)
at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:794)
at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:799)
at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:799)
at org.sonar.core.platform.ComponentContainer.stopComponents(ComponentContainer.java:174)
at org.sonar.core.platform.ComponentContainer.stopComponents(ComponentContainer.java:169)
at org.sonar.server.platform.platformlevel.PlatformLevel.stop(PlatformLevel.java:97)
at org.sonar.server.platform.Platform.stopLevel234Containers(Platform.java:227)
at org.sonar.server.platform.Platform.doStop(Platform.java:256)
at org.sonar.server.platform.web.PlatformServletContextListener.stopQuietly(PlatformServletContextListener.java:57)
at org.sonar.server.platform.web.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:50)
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(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2017.04.20 09:02:59 ERROR web[][o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.web.PlatformServletContextListener
java.lang.IllegalStateException: Fail to load plugin Governance [governance]
at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:73)
at org.sonar.server.platform.platformlevel.PlatformLevel4.start(PlatformLevel4.java:527)
at org.sonar.server.platform.Platform.start(Platform.java:203)
at org.sonar.server.platform.Platform.startLevel34Containers(Platform.java:177)
at org.sonar.server.platform.Platform.doStart(Platform.java:100)
at org.sonar.server.platform.Platform.doStart(Platform.java:79)
at org.sonar.server.platform.web.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:45)
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(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

After Removing that plugin from the plugins folder, i am able to run StartSonar.bat and able to see SonarQube in http://localhost:9000.

No comments:

Post a Comment

Thank you so much for providing your valuable feedback. I will will look into them and update my skills & technologies accordingly.