Issue with SONARQube server start with Java Plugin

275 views
Skip to first unread message

Bangar Milind

unread,
Aug 17, 2016, 7:41:03 AM8/17/16
to SonarQube
Hi,

We are setting up new AWS instance on Linux with below config:

Sonarqube : 5.5
SUN JDK : 7u79
Java Plugin : 3.14 

The server does not start with below exception :

java.lang.IllegalStateException: Cannot stop.  Current container state was: CONSTRUCTED
at org.picocontainer.lifecycle.DefaultLifecycleState.stopping(DefaultLifecycleState.java:72) ~[picocontainer-2.15.jar:na]
at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:794) ~[picocontainer-2.15.jar:na]
at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:799) ~[picocontainer-2.15.jar:na]
at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:799) ~[picocontainer-2.15.jar:na]
at org.sonar.core.platform.ComponentContainer.stopComponents(ComponentContainer.java:173) ~[sonar-core-5.5.jar:na]
at org.sonar.core.platform.ComponentContainer.stopComponents(ComponentContainer.java:168) ~[sonar-core-5.5.jar:na]
at org.sonar.server.platform.platformlevel.PlatformLevel.stop(PlatformLevel.java:93) ~[sonar-server-5.5.jar:na]
at org.sonar.server.platform.Platform.stopLevel234Containers(Platform.java:240) ~[sonar-server-5.5.jar:na]
at org.sonar.server.platform.Platform.doStop(Platform.java:269) ~[sonar-server-5.5.jar:na]
at org.sonar.server.platform.PlatformServletContextListener.stopQuietly(PlatformServletContextListener.java:59) [sonar-server-5.5.jar:na]
at org.sonar.server.platform.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:52) [sonar-server-5.5.jar:na]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812) [tomcat-embed-core-8.0.30.jar:8.0.30]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255) [tomcat-embed-core-8.0.30.jar:8.0.30]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-8.0.30.jar:8.0.30]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408) [tomcat-embed-core-8.0.30.jar:8.0.30]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398) [tomcat-embed-core-8.0.30.jar:8.0.30]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]

Without Java plugin the server starts without any issues.

not sure what could be the problem, as on our test instance (Windows), never encountered these issues.

Any guidance would help.

Attached SONAR log file for reference.

Thanks
Milind


sonar1.log

Sebastien Lesaint

unread,
Aug 17, 2016, 8:05:27 AM8/17/16
to SonarQube
Hello,

The cause of the exception you reported in your email gives a clue about what is wrong: "Duplicate Keys not allowed. Duplicate for 'org.sonar.api.config.PropertyDefinition-sonar.junit.reportsPath'".

You have a plugin conflicting with the Java Plugin (since you said removing it solved the issue) which declares the same property as the Java plugin.

My advice:
* check the update center to ensure your plugins are actually compatible with SQ 5.5. Remove the incompatible ones and/or update to the latest compatible version.
* if you can't guess which plugin is conflicting, remove all plugins but java and add them back one by one

Btw, you would be better off (in term of stability, bug and support you can get) to update to SQ 5.6.1 rather than 5.5 as it is the new LTS.

cheers,


Sébastien LESAINT | SonarSource
Platform Developer

Milind


--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/6a38b135-b2ce-418b-9d39-6cfe6cc3eb06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bangar Milind

unread,
Aug 22, 2016, 8:42:18 AM8/22/16
to SonarQube
Thanks Sebastian...

Will try the way suggested.

Irony is , all the plugins are working on Windows machine, but not on Linux.

Will let you know the outcome.

Regards
Milind
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.

Bangar Milind

unread,
Aug 22, 2016, 8:47:16 AM8/22/16
to SonarQube
cant move to 5.6.1 due to AspectJ issue on our projects.

I had evaluated that sometime back and have asked the query on the same within forum.

Regards
Milind

Nicolas Peru

unread,
Aug 22, 2016, 9:44:25 AM8/22/16
to Bangar Milind, SonarQube
Hi, 

Would you mind sharing a link to your issue with AspectJ ? As I don't recall any issue pending on the sonar java analyzer about that. 

Cheers, 


For more options, visit https://groups.google.com/d/optout.
--
Nicolas PERU | SonarSource
Senior Developer
http://sonarsource.com

Bangar Milind

unread,
Aug 22, 2016, 10:15:08 AM8/22/16
to SonarQube, milindb...@gmail.com
Reply all
Reply to author
Forward
0 new messages