|
Dear All, I am getting the below error when trying to start the Sonar server. The complete trace from the log is attached. The server started successfully 2days back also and there are no configuration/any changes done to sonar server. As per the logs the issue is with loading the PMD rules.
INFO | jvm 1 | 2012/08/08 15:45:25 | java.lang.IllegalStateException: Fail to start server INFO | jvm 1 | 2012/08/08 15:45:25 | at org.sonar.server.platform.Platform.start(Platform.java:122) INFO | jvm 1 | 2012/08/08 15:45:25 | at org.sonar.server.platform.PlatformLifecycleListener.contextInitialized(PlatformLifecycleListener.java:33) INFO | jvm 1 | 2012/08/08 15:45:25 | at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548) INFO | jvm 1 | 2012/08/08 15:45:25 | at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) INFO | jvm 1 | 2012/08/08 15:45:25 | at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1272) INFO | jvm 1 | 2012/08/08 15:45:25 | at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) INFO | jvm 1 | 2012/08/08 15:45:25 | at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:489) INFO | jvm 1 | 2012/08/08 15:45:25 | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) INFO | jvm 1 | 2012/08/08 15:45:25 | at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) INFO | jvm 1 | 2012/08/08 15:45:25 | at org.mortbay.jetty.Server.doStart(Server.java:224) INFO | jvm 1 | 2012/08/08 15:45:25 | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) INFO | jvm 1 | 2012/08/08 15:45:25 | at org.sonar.application.JettyEmbedder.start(JettyEmbedder.java:79) INFO | jvm 1 | 2012/08/08 15:45:25 | at org.sonar.application.StartServer.main(StartServer.java:50) INFO | jvm 1 | 2012/08/08 15:45:25 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1 | 2012/08/08 15:45:25 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) INFO | jvm 1 | 2012/08/08 15:45:25 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) INFO | jvm 1 | 2012/08/08 15:45:25 | at java.lang.reflect.Method.invoke(Method.java:597) INFO | jvm 1 | 2012/08/08 15:45:25 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240) INFO | jvm 1 | 2012/08/08 15:45:25 | at java.lang.Thread.run(Thread.java:619) INFO | jvm 1 | 2012/08/08 15:45:25 | 2012-08-08 15:45:25.873:INFO::Started [hidden email] Please help me in resolving the issue. -- Regards, ------------------------------------------------------- Vijay Krishna Doddala. "Mother tongue is a repository of culture and makes people what they are and who they are..." "If you take your eyes off your goals, all you see is obstacles." "Every Saint has a past and every sinner has a future". --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Hi,
Do you have an extensions to pmd rules in directory "sonar/extensions/rules/pmd" ?
On Wed, Aug 8, 2012 at 4:38 PM, Vijay Krishna Doddala <[hidden email]> wrote:
Best regards, Evgeny Mandrikov aka Godin <http://godin.net.ru> http://twitter.com/_godin_ |
|
In reply to this post by Vijay Krishna Doddala
Hi
Vijay
It seems that you've created/imported a (PMD) rule that has no key in the XML file. If this is the case can you try to remove this rule and start Sonar again? Regards Patroklos
2012/8/8 Vijay Krishna Doddala <[hidden email]>
|
|
In reply to this post by Evgeny Mandrikov
Hi, Yes, I have PMD_RULESET.xml in that directory. On Wed, Aug 8, 2012 at 4:13 PM, Evgeny Mandrikov <[hidden email]> wrote: Hi, -- Regards, ------------------------------------------------------- Vijay Krishna Doddala. "Mother tongue is a repository of culture and makes people what they are and who they are..." "If you take your eyes off your goals, all you see is obstacles." "Every Saint has a past and every sinner has a future". |
|
In reply to this post by Patroklos Papapetrou
Hi, Thank you Patroklos, I have manually kept this file here because of which the error was coming. We wanted to use custom PMD ruleset with different levels. So for this how can I override the default ruleset? For now I have removed the custom PMD ruleset xml and the server started successfully. Kindly suggest. On Wed, Aug 8, 2012 at 4:14 PM, Papapetrou P.Patroklos <[hidden email]> wrote: Hi Vijay -- Regards, ------------------------------------------------------- Vijay Krishna Doddala. "Mother tongue is a repository of culture and makes people what they are and who they are..." "If you take your eyes off your goals, all you see is obstacles." "Every Saint has a past and every sinner has a future". |
|
If I correctly understand you, then you can go to configuration of quality profiles in UI and create new Java profile by importing your PMD ruleset :
![]() Or create an empty profile and activate required PMD rules with required priorities.
On Wed, Aug 8, 2012 at 4:49 PM, Vijay Krishna Doddala <[hidden email]> wrote:
Best regards, Evgeny Mandrikov aka Godin <http://godin.net.ru> http://twitter.com/_godin_ |
| Powered by Nabble | Edit this page |
