sonarqube - sonar 4.5.4-- Debt definition of rule is invalid exception -
i have own customized plugins of csharp of version 2.1 when deployed stylecope plugin in sonar 4.5.4 server, rules getting exception below after removing rule working fine. exception getting in sonar 4.5.4 not facing issues in sonar 4.2 , lesser version. need know why issue occuring , mean say? please explain. thanks
java.lang.illegalargumentexception: debt definition on rule 'stylecopcsharp:constfieldnamesmustbeginwithuppercaseletter' invalid @ org.sonar.server.rule.deprecatedrulesdefinitionloader.remediationfunction(deprecatedrulesdefinitionloader.java:135) ~[sonar-server-4.5.4.jar:na] @ org.sonar.server.rule.deprecatedrulesdefinitionloader.updateruledebtdefinitions(deprecatedrulesdefinitionloader.java:117) ~[sonar-server-4.5.4.jar:na] @ org.sonar.server.rule.deprecatedrulesdefinitionloader.complete(deprecatedrulesdefinitionloader.java:107) ~[sonar-server-4.5.4.jar:na] @ org.sonar.server.rule.ruledefinitionsloader.load(ruledefinitionsloader.java:53) ~[sonar-server-4.5.4.jar:na] @ org.sonar.server.rule.registerrules.start(registerrules.java:102) ~[sonar-server-4.5.4.jar:na] @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) ~[na:1.7.0_55] @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source) ~[na:1.7.0_55] @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source) ~[na:1.7.0_55] @ java.lang.reflect.method.invoke(unknown source) ~[na:1.7.0_55] @ org.picocontainer.lifecycle.reflectionlifecyclestrategy.invokemethod(reflectionlifecyclestrategy.java:110) ~[picocontainer-2.14.3.jar:na] @ org.picocontainer.lifecycle.reflectionlifecyclestrategy.start(reflectionlifecyclestrategy.java:89) ~[picocontainer-2.14.3.jar:na] @ org.picocontainer.injectors.abstractinjectionfactory$lifecycleadapter.start(abstractinjectionfactory.java:84) ~[picocontainer-2.14.3.jar:na] @ org.picocontainer.behaviors.abstractbehavior.start(abstractbehavior.java:169) ~[picocontainer-2.14.3.jar:na] @ org.picocontainer.behaviors.stored$realcomponentlifecycle.start(stored.java:132) ~[picocontainer-2.14.3.jar:na] @ org.picocontainer.behaviors.stored.start(stored.java:110) ~[picocontainer-2.14.3.jar:na] @ org.picocontainer.defaultpicocontainer.potentiallystartadapter(defaultpicocontainer.java:1015) ~[picocontainer-2.14.3.jar:na] @ org.picocontainer.defaultpicocontainer.startadapters(defaultpicocontainer.java:1008) ~[picocontainer-2.14.3.jar:na] @ org.picocontainer.defaultpicocontainer.start(defaultpicocontainer.java:766) ~[picocontainer-2.14.3.jar:na] @ org.sonar.api.platform.componentcontainer.startcomponents(componentcontainer.java:92) ~[sonar-plugin-api-4.5.4.jar:na] @ org.sonar.server.platform.servercomponents$1.doprivileged(servercomponents.java:590) ~[sonar-server-4.5.4.jar:na] @ org.sonar.server.user.doprivileged.execute(doprivileged.java:43) ~[sonar-server-4.5.4.jar:na] @ org.sonar.server.platform.servercomponents.executestartuptasks(servercomponents.java:586) ~[sonar-server-4.5.4.jar:na] @ org.sonar.server.platform.platform.executestartuptasks(platform.java:126) ~[sonar-server-4.5.4.jar:na] @ org.sonar.server.platform.platform.startlevel34containers(platform.java:122) ~[sonar-server-4.5.4.jar:na] @ org.sonar.server.platform.platform.dostart(platform.java:81) ~[sonar-server-4.5.4.jar:na] @ org.sonar.server.platform.platformservletcontextlistener.contextinitialized(platformservletcontextlistener.java:43) ~[sonar-server-4.5.4.jar:na] @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4973) [tomcat-embed-core-7.0.54.jar:7.0.54] @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5467) [tomcat-embed-core-7.0.54.jar:7.0.54] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) [tomcat-embed-core-7.0.54.jar:7.0.54] @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559) [tomcat-embed-core-7.0.54.jar:7.0.54] @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549) [tomcat-embed-core-7.0.54.jar:7.0.54] @ java.util.concurrent.futuretask.run(unknown source) [na:1.7.0_55] @ java.util.concurrent.threadpoolexecutor.runworker(unknown source) [na:1.7.0_55] @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source) [na:1.7.0_55] @ java.lang.thread.run(unknown source) [na:1.7.0_55]
the .net , c# plugins version 2.1 not compatible newer versions of sonarqube (including 4.5.4).
you should consider upgrading latest c# plugin , use msbuild sonarqube runner developed in partnership microsoft analyze .net projects: vastly improves experience, provides better analysis results, , way easier use.
see http://redirect.sonarsource.com/plugins/csharp.html started.
the information below informative only, , allow proceed unsupported deprecated version of c# plugin (which bad, think twice :p):
i see created own stylecop plugin, key stylecopcsharp
: should define valid sqale remediation costs each rule - or sonarqube refuse start.
the easiest way remove sqale remediation cost information. now, if you'd keep sqale, can have @ stack trace , see how sonarqube's validation works: deprecatedrulesdefinitionloader.java#l135
there more obstacles preventing use of .net , c# sonarqube 4.5.4, again think twice before going way.
Comments
Post a Comment