Unable to Execute SonarQube after Update to 4.5.1

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to Execute SonarQube after Update to 4.5.1

Kyle Smith
Hello all,

Today I updated my SonarQube installation by following the steps and received a strange error when trying to scan projects. The web interface however works as before. It may also be important to mention that I am using SonarQube Runner 2.4. The problem is when I try to execute sonar-runner I receive this showstopping error:

ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
        at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
        at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
        at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
        at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
        at org.sonar.runner.api.Runner.execute(Runner.java:100)
        at org.sonar.runner.Main.executeTask(Main.java:70)
        at org.sonar.runner.Main.execute(Main.java:59)
        at org.sonar.runner.Main.main(Main.java:53)
Caused by: java.lang.NoClassDefFoundError: org/sonar/api/utils/KeyValueFormat$Transformer
        at java.lang.Class.getDeclaredFields0(Native Method)
        at java.lang.Class.privateGetDeclaredFields(Class.java:2387)
        at java.lang.Class.getDeclaredFields(Class.java:1796)
        at org.picocontainer.injectors.AdaptingInjection$2.run(AdaptingInjection.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.picocontainer.injectors.AdaptingInjection.injectionFieldAnnotated(AdaptingInjection.java:209)
        at org.picocontainer.injectors.AdaptingInjection.fieldAnnotatedInjectionAdapter(AdaptingInjection.java:188)
        at org.picocontainer.injectors.AdaptingInjection.createComponentAdapter(AdaptingInjection.java:57)
        at org.picocontainer.behaviors.AbstractBehaviorFactory.createComponentAdapter(AbstractBehaviorFactory.java:44)
        at org.picocontainer.behaviors.OptInCaching.createComponentAdapter(OptInCaching.java:45)
        at org.picocontainer.DefaultPicoContainer.addComponent(DefaultPicoContainer.java:535)
        at org.picocontainer.DefaultPicoContainer.access$300(DefaultPicoContainer.java:83)
        at org.picocontainer.DefaultPicoContainer$AsPropertiesPicoContainer.addComponent(DefaultPicoContainer.java:1148)
        at org.sonar.api.platform.ComponentContainer.addExtension(ComponentContainer.java:183)
        at org.sonar.batch.bootstrap.ExtensionInstaller.doInstall(ExtensionInstaller.java:78)
        at org.sonar.batch.bootstrap.ExtensionInstaller.install(ExtensionInstaller.java:57)
        at org.sonar.batch.scan.ModuleScanContainer.addExtensions(ModuleScanContainer.java:175)
        at org.sonar.batch.scan.ModuleScanContainer.doBeforeStart(ModuleScanContainer.java:76)
        at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:90)
        at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
        at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:233)
        at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:228)
        at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:226)
        at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:221)
        at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
        at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
        at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:64)
        at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:51)
        at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:125)
        at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
        at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
        at org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapContainer.java:173)
        at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:95)
        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
        at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
        ... 9 more
Caused by: java.lang.ClassNotFoundException: org.sonar.api.utils.KeyValueFormat$Transformer
        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
        ... 49 more


Can someone please help troubleshoot this?

Thank-you for reading this.

Respectfully,

Kyle Smith
Reply | Threaded
Open this post in threaded view
|

Re: Unable to Execute SonarQube after Update to 4.5.1

Julien HENRY
Hi Kyle,

We need the list of all your installed plugins (with version) to spot the outdated one.

Thanks,

Julien

2014-10-30 20:19 GMT+01:00 Kyle Smith <[hidden email]>:
Hello all,

Today I updated my SonarQube installation by following the steps and
received a strange error when trying to scan projects. The web interface
however works as before. It may also be important to mention that I am using
SonarQube Runner 2.4. The problem is when I try to execute sonar-runner I
receive this showstopping error:

*ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
        at
org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
        at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
        at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
        at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
        at org.sonar.runner.api.Runner.execute(Runner.java:100)
        at org.sonar.runner.Main.executeTask(Main.java:70)
        at org.sonar.runner.Main.execute(Main.java:59)
        at org.sonar.runner.Main.main(Main.java:53)
Caused by: java.lang.NoClassDefFoundError:
org/sonar/api/utils/KeyValueFormat$Transformer
        at java.lang.Class.getDeclaredFields0(Native Method)
        at java.lang.Class.privateGetDeclaredFields(Class.java:2387)
        at java.lang.Class.getDeclaredFields(Class.java:1796)
        at
org.picocontainer.injectors.AdaptingInjection$2.run(AdaptingInjection.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.picocontainer.injectors.AdaptingInjection.injectionFieldAnnotated(AdaptingInjection.java:209)
        at
org.picocontainer.injectors.AdaptingInjection.fieldAnnotatedInjectionAdapter(AdaptingInjection.java:188)
        at
org.picocontainer.injectors.AdaptingInjection.createComponentAdapter(AdaptingInjection.java:57)
        at
org.picocontainer.behaviors.AbstractBehaviorFactory.createComponentAdapter(AbstractBehaviorFactory.java:44)
        at
org.picocontainer.behaviors.OptInCaching.createComponentAdapter(OptInCaching.java:45)
        at
org.picocontainer.DefaultPicoContainer.addComponent(DefaultPicoContainer.java:535)
        at
org.picocontainer.DefaultPicoContainer.access$300(DefaultPicoContainer.java:83)
        at
org.picocontainer.DefaultPicoContainer$AsPropertiesPicoContainer.addComponent(DefaultPicoContainer.java:1148)
        at
org.sonar.api.platform.ComponentContainer.addExtension(ComponentContainer.java:183)
        at
org.sonar.batch.bootstrap.ExtensionInstaller.doInstall(ExtensionInstaller.java:78)
        at
org.sonar.batch.bootstrap.ExtensionInstaller.install(ExtensionInstaller.java:57)
        at
org.sonar.batch.scan.ModuleScanContainer.addExtensions(ModuleScanContainer.java:175)
        at
org.sonar.batch.scan.ModuleScanContainer.doBeforeStart(ModuleScanContainer.java:76)
        at
org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:90)
        at
org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
        at
org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:233)
        at
org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:228)
        at
org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:226)
        at
org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:221)
        at
org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
        at
org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
        at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:64)
        at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:51)
        at
org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:125)
        at
org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
        at
org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
        at
org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapContainer.java:173)
        at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:95)
        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
        at
org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at
org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
        ... 9 more
Caused by: java.lang.ClassNotFoundException:
org.sonar.api.utils.KeyValueFormat$Transformer
        at
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at
org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
        at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
        at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
        ... 49 more*

Can someone please help troubleshoot this?

Thank-you for reading this.

Respectfully,

Kyle Smith



--
View this message in context: http://sonarqube.15.x6.nabble.com/Unable-to-Execute-SonarQube-after-Update-to-4-5-1-tp5029594.html
Sent from the SonarQube Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|

Re: Unable to Execute SonarQube after Update to 4.5.1

Arnaud Héritier-2


I just upgraded from 4.5 to 4.5.1 and I have a similar issue

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.4:sonar (default-cli) on project uxp: org/sonar/api/utils/KeyValueFormat$Transformer: org.sonar.api.utils.KeyValueFormat$Transformer -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.4:sonar (default-cli) on project uxp: org/sonar/api/utils/KeyValueFormat$Transformer
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: org/sonar/api/utils/KeyValueFormat$Transformer
at org.codehaus.mojo.sonar.bootstrap.ExceptionHandling.handle(ExceptionHandling.java:42)
at org.codehaus.mojo.sonar.bootstrap.RunnerBootstraper.execute(RunnerBootstraper.java:135)
at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:136)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: java.lang.NoClassDefFoundError: org/sonar/api/utils/KeyValueFormat$Transformer
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2436)
at java.lang.Class.getDeclaredFields(Class.java:1806)
at org.picocontainer.injectors.AdaptingInjection$2.run(AdaptingInjection.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at org.picocontainer.injectors.AdaptingInjection.injectionFieldAnnotated(AdaptingInjection.java:209)
at org.picocontainer.injectors.AdaptingInjection.fieldAnnotatedInjectionAdapter(AdaptingInjection.java:188)
at org.picocontainer.injectors.AdaptingInjection.createComponentAdapter(AdaptingInjection.java:57)
at org.picocontainer.behaviors.AbstractBehaviorFactory.createComponentAdapter(AbstractBehaviorFactory.java:44)
at org.picocontainer.behaviors.OptInCaching.createComponentAdapter(OptInCaching.java:45)
at org.picocontainer.DefaultPicoContainer.addComponent(DefaultPicoContainer.java:535)
at org.picocontainer.DefaultPicoContainer.access$300(DefaultPicoContainer.java:83)
at org.picocontainer.DefaultPicoContainer$AsPropertiesPicoContainer.addComponent(DefaultPicoContainer.java:1148)
at org.sonar.api.platform.ComponentContainer.addExtension(ComponentContainer.java:183)
at org.sonar.batch.bootstrap.ExtensionInstaller.doInstall(ExtensionInstaller.java:78)
at org.sonar.batch.bootstrap.ExtensionInstaller.install(ExtensionInstaller.java:57)
at org.sonar.batch.scan.ModuleScanContainer.addExtensions(ModuleScanContainer.java:175)
at org.sonar.batch.scan.ModuleScanContainer.doBeforeStart(ModuleScanContainer.java:76)
at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:90)
at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:233)
at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:228)
at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:226)
at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:221)
at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:64)
at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:51)
at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:125)
at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
at org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapContainer.java:173)
at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:95)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
at org.sonar.runner.api.Runner.execute(Runner.java:100)
at org.codehaus.mojo.sonar.bootstrap.RunnerBootstraper.execute(RunnerBootstraper.java:131)
... 22 more
Caused by: java.lang.ClassNotFoundException: org.sonar.api.utils.KeyValueFormat$Transformer
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
... 69 more


Here are my plugins :

PLUGINVERSIONDESCRIPTION
Android [android]1.0Enables analysis and reporting on Android projects. 
Artifact Size [artifactsize]0.3Measure the size of the project artifact. 
Build Stability [buildstability]1.2.1Generates reports based on information about builds from Continuous Integration System. 
Checkstyle [checkstyle]2.1.1Analyze Java code with Checkstyle
Clirr [clirr]1.1Checks Java libraries for binary and source compatibility with older releases. 
Cobertura [cobertura]1.6.3Get code coverage with Cobertura
Crowd [crowd]1.1-SNAPSHOTDelegates authentication to Atlassian Crowd. 
Developer Cockpit [devcockpit]1.6Enables developers to identify their individual contributions to a project and fosters best practices in code quality self-management 
fb-contrib [fbcontrib]1.3New Findbugs rules (see http://fb-contrib.sourceforge.net
Findbugs [findbugs]3.0Analyze Java code with Findbugs 3.0.0. 
Google Analytics [googleanalytics]1.1Add the Google Analytics tracking script to the SonarQube web application. 
Groovy [groovy]1.1-SNAPSHOTEnables analysis of Groovy projects. 
Java [java]2.6-SNAPSHOTSonarQube rule engine. 
JavaScript [javascript]2.1Enables analysis of JavaScript projects. 
JIRA [jira]1.2Connects SonarQube to Atlassian JIRA in various ways. 
JMeter [jmeter]0.2Retrieve JMeter test results in SONAR. 
French Pack [l10nfr]1.10Language Pack for French 
Motion Chart [motionchart]1.7Display how a set of metrics evolves over time (requires an internet access). 
ObjectiveC [objectivec]0.3.2-SNAPSHOTEnables analysis of Objective-C projects into Sonar. 
PMD [pmd]2.2Analyze Java code with PMD
Quality Index [qualityindex]1.1.3Calculate a global Quality Index, based on coding rules, Style, Complexity and Coverage. 
SCM Activity [scmactivity]1.8Collects and reports information from SCM. 
Scm Stats [scmstats]0.3.1Feed SonarQube with Statistics about SCM system 
Security Rules [securityrules]0.3.2Enables to monitor closely a defined set of security rules. 
Tab Metrics [tabmetrics]1.4.1Add a new tab containing metrics information at file level 
Taglist [taglist]1.0Analyze various tags found in the code, like @todo or //TODO. 
Timeline [timeline]1.4Advanced time machine chart (requires an internet access). 
Views [views]2.6Create aggregation trees to group projects. Projects can for instance be grouped by applications, applications by team, teams by department. 
Web [web]2.3Analyze HTML (also within PHP/Ruby/etc. templates) and JSP/JSF code. 
Widget Lab [widgetlab]1.6Additional widgets 
XML [xml]1.2Enable analysis and reporting on XML files.



On Fri, Oct 31, 2014 at 9:32 AM, Julien HENRY <[hidden email]> wrote:
Hi Kyle,

We need the list of all your installed plugins (with version) to spot the outdated one.

Thanks,

Julien

2014-10-30 20:19 GMT+01:00 Kyle Smith <[hidden email]>:
Hello all,

Today I updated my SonarQube installation by following the steps and
received a strange error when trying to scan projects. The web interface
however works as before. It may also be important to mention that I am using
SonarQube Runner 2.4. The problem is when I try to execute sonar-runner I
receive this showstopping error:

*ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
        at
org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
        at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
        at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
        at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
        at org.sonar.runner.api.Runner.execute(Runner.java:100)
        at org.sonar.runner.Main.executeTask(Main.java:70)
        at org.sonar.runner.Main.execute(Main.java:59)
        at org.sonar.runner.Main.main(Main.java:53)
Caused by: java.lang.NoClassDefFoundError:
org/sonar/api/utils/KeyValueFormat$Transformer
        at java.lang.Class.getDeclaredFields0(Native Method)
        at java.lang.Class.privateGetDeclaredFields(Class.java:2387)
        at java.lang.Class.getDeclaredFields(Class.java:1796)
        at
org.picocontainer.injectors.AdaptingInjection$2.run(AdaptingInjection.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.picocontainer.injectors.AdaptingInjection.injectionFieldAnnotated(AdaptingInjection.java:209)
        at
org.picocontainer.injectors.AdaptingInjection.fieldAnnotatedInjectionAdapter(AdaptingInjection.java:188)
        at
org.picocontainer.injectors.AdaptingInjection.createComponentAdapter(AdaptingInjection.java:57)
        at
org.picocontainer.behaviors.AbstractBehaviorFactory.createComponentAdapter(AbstractBehaviorFactory.java:44)
        at
org.picocontainer.behaviors.OptInCaching.createComponentAdapter(OptInCaching.java:45)
        at
org.picocontainer.DefaultPicoContainer.addComponent(DefaultPicoContainer.java:535)
        at
org.picocontainer.DefaultPicoContainer.access$300(DefaultPicoContainer.java:83)
        at
org.picocontainer.DefaultPicoContainer$AsPropertiesPicoContainer.addComponent(DefaultPicoContainer.java:1148)
        at
org.sonar.api.platform.ComponentContainer.addExtension(ComponentContainer.java:183)
        at
org.sonar.batch.bootstrap.ExtensionInstaller.doInstall(ExtensionInstaller.java:78)
        at
org.sonar.batch.bootstrap.ExtensionInstaller.install(ExtensionInstaller.java:57)
        at
org.sonar.batch.scan.ModuleScanContainer.addExtensions(ModuleScanContainer.java:175)
        at
org.sonar.batch.scan.ModuleScanContainer.doBeforeStart(ModuleScanContainer.java:76)
        at
org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:90)
        at
org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
        at
org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:233)
        at
org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:228)
        at
org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:226)
        at
org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:221)
        at
org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
        at
org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
        at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:64)
        at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:51)
        at
org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:125)
        at
org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
        at
org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
        at
org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapContainer.java:173)
        at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:95)
        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
        at
org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at
org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
        ... 9 more
Caused by: java.lang.ClassNotFoundException:
org.sonar.api.utils.KeyValueFormat$Transformer
        at
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at
org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
        at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
        at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
        ... 49 more*

Can someone please help troubleshoot this?

Thank-you for reading this.

Respectfully,

Kyle Smith



--
View this message in context: http://sonarqube.15.x6.nabble.com/Unable-to-Execute-SonarQube-after-Update-to-4-5-1-tp5029594.html
Sent from the SonarQube Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email






--
-----
Arnaud Héritier
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier
Reply | Threaded
Open this post in threaded view
|

Re: Unable to Execute SonarQube after Update to 4.5.1

Arnaud Héritier-2
I just found. It is the security Rules. I though I had removed it ....
Sorry for the noise

On Mon, Nov 3, 2014 at 1:14 PM, Arnaud Héritier <[hidden email]> wrote:


I just upgraded from 4.5 to 4.5.1 and I have a similar issue

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.4:sonar (default-cli) on project uxp: org/sonar/api/utils/KeyValueFormat$Transformer: org.sonar.api.utils.KeyValueFormat$Transformer -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.4:sonar (default-cli) on project uxp: org/sonar/api/utils/KeyValueFormat$Transformer
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: org/sonar/api/utils/KeyValueFormat$Transformer
at org.codehaus.mojo.sonar.bootstrap.ExceptionHandling.handle(ExceptionHandling.java:42)
at org.codehaus.mojo.sonar.bootstrap.RunnerBootstraper.execute(RunnerBootstraper.java:135)
at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:136)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: java.lang.NoClassDefFoundError: org/sonar/api/utils/KeyValueFormat$Transformer
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2436)
at java.lang.Class.getDeclaredFields(Class.java:1806)
at org.picocontainer.injectors.AdaptingInjection$2.run(AdaptingInjection.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at org.picocontainer.injectors.AdaptingInjection.injectionFieldAnnotated(AdaptingInjection.java:209)
at org.picocontainer.injectors.AdaptingInjection.fieldAnnotatedInjectionAdapter(AdaptingInjection.java:188)
at org.picocontainer.injectors.AdaptingInjection.createComponentAdapter(AdaptingInjection.java:57)
at org.picocontainer.behaviors.AbstractBehaviorFactory.createComponentAdapter(AbstractBehaviorFactory.java:44)
at org.picocontainer.behaviors.OptInCaching.createComponentAdapter(OptInCaching.java:45)
at org.picocontainer.DefaultPicoContainer.addComponent(DefaultPicoContainer.java:535)
at org.picocontainer.DefaultPicoContainer.access$300(DefaultPicoContainer.java:83)
at org.picocontainer.DefaultPicoContainer$AsPropertiesPicoContainer.addComponent(DefaultPicoContainer.java:1148)
at org.sonar.api.platform.ComponentContainer.addExtension(ComponentContainer.java:183)
at org.sonar.batch.bootstrap.ExtensionInstaller.doInstall(ExtensionInstaller.java:78)
at org.sonar.batch.bootstrap.ExtensionInstaller.install(ExtensionInstaller.java:57)
at org.sonar.batch.scan.ModuleScanContainer.addExtensions(ModuleScanContainer.java:175)
at org.sonar.batch.scan.ModuleScanContainer.doBeforeStart(ModuleScanContainer.java:76)
at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:90)
at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:233)
at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:228)
at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:226)
at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:221)
at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:64)
at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:51)
at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:125)
at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
at org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapContainer.java:173)
at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:95)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
at org.sonar.runner.api.Runner.execute(Runner.java:100)
at org.codehaus.mojo.sonar.bootstrap.RunnerBootstraper.execute(RunnerBootstraper.java:131)
... 22 more
Caused by: java.lang.ClassNotFoundException: org.sonar.api.utils.KeyValueFormat$Transformer
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
... 69 more


Here are my plugins :

PLUGINVERSIONDESCRIPTION
Android [android]1.0Enables analysis and reporting on Android projects. 
Artifact Size [artifactsize]0.3Measure the size of the project artifact. 
Build Stability [buildstability]1.2.1Generates reports based on information about builds from Continuous Integration System. 
Checkstyle [checkstyle]2.1.1Analyze Java code with Checkstyle
Clirr [clirr]1.1Checks Java libraries for binary and source compatibility with older releases. 
Cobertura [cobertura]1.6.3Get code coverage with Cobertura
Crowd [crowd]1.1-SNAPSHOTDelegates authentication to Atlassian Crowd. 
Developer Cockpit [devcockpit]1.6Enables developers to identify their individual contributions to a project and fosters best practices in code quality self-management 
fb-contrib [fbcontrib]1.3New Findbugs rules (see http://fb-contrib.sourceforge.net
Findbugs [findbugs]3.0Analyze Java code with Findbugs 3.0.0. 
Google Analytics [googleanalytics]1.1Add the Google Analytics tracking script to the SonarQube web application. 
Groovy [groovy]1.1-SNAPSHOTEnables analysis of Groovy projects. 
Java [java]2.6-SNAPSHOTSonarQube rule engine. 
JavaScript [javascript]2.1Enables analysis of JavaScript projects. 
JIRA [jira]1.2Connects SonarQube to Atlassian JIRA in various ways. 
JMeter [jmeter]0.2Retrieve JMeter test results in SONAR. 
French Pack [l10nfr]1.10Language Pack for French 
Motion Chart [motionchart]1.7Display how a set of metrics evolves over time (requires an internet access). 
ObjectiveC [objectivec]0.3.2-SNAPSHOTEnables analysis of Objective-C projects into Sonar. 
PMD [pmd]2.2Analyze Java code with PMD
Quality Index [qualityindex]1.1.3Calculate a global Quality Index, based on coding rules, Style, Complexity and Coverage. 
SCM Activity [scmactivity]1.8Collects and reports information from SCM. 
Scm Stats [scmstats]0.3.1Feed SonarQube with Statistics about SCM system 
Security Rules [securityrules]0.3.2Enables to monitor closely a defined set of security rules. 
Tab Metrics [tabmetrics]1.4.1Add a new tab containing metrics information at file level 
Taglist [taglist]1.0Analyze various tags found in the code, like @todo or //TODO. 
Timeline [timeline]1.4Advanced time machine chart (requires an internet access). 
Views [views]2.6Create aggregation trees to group projects. Projects can for instance be grouped by applications, applications by team, teams by department. 
Web [web]2.3Analyze HTML (also within PHP/Ruby/etc. templates) and JSP/JSF code. 
Widget Lab [widgetlab]1.6Additional widgets 
XML [xml]1.2Enable analysis and reporting on XML files.



On Fri, Oct 31, 2014 at 9:32 AM, Julien HENRY <[hidden email]> wrote:
Hi Kyle,

We need the list of all your installed plugins (with version) to spot the outdated one.

Thanks,

Julien

2014-10-30 20:19 GMT+01:00 Kyle Smith <[hidden email]>:
Hello all,

Today I updated my SonarQube installation by following the steps and
received a strange error when trying to scan projects. The web interface
however works as before. It may also be important to mention that I am using
SonarQube Runner 2.4. The problem is when I try to execute sonar-runner I
receive this showstopping error:

*ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
        at
org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
        at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
        at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
        at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
        at org.sonar.runner.api.Runner.execute(Runner.java:100)
        at org.sonar.runner.Main.executeTask(Main.java:70)
        at org.sonar.runner.Main.execute(Main.java:59)
        at org.sonar.runner.Main.main(Main.java:53)
Caused by: java.lang.NoClassDefFoundError:
org/sonar/api/utils/KeyValueFormat$Transformer
        at java.lang.Class.getDeclaredFields0(Native Method)
        at java.lang.Class.privateGetDeclaredFields(Class.java:2387)
        at java.lang.Class.getDeclaredFields(Class.java:1796)
        at
org.picocontainer.injectors.AdaptingInjection$2.run(AdaptingInjection.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.picocontainer.injectors.AdaptingInjection.injectionFieldAnnotated(AdaptingInjection.java:209)
        at
org.picocontainer.injectors.AdaptingInjection.fieldAnnotatedInjectionAdapter(AdaptingInjection.java:188)
        at
org.picocontainer.injectors.AdaptingInjection.createComponentAdapter(AdaptingInjection.java:57)
        at
org.picocontainer.behaviors.AbstractBehaviorFactory.createComponentAdapter(AbstractBehaviorFactory.java:44)
        at
org.picocontainer.behaviors.OptInCaching.createComponentAdapter(OptInCaching.java:45)
        at
org.picocontainer.DefaultPicoContainer.addComponent(DefaultPicoContainer.java:535)
        at
org.picocontainer.DefaultPicoContainer.access$300(DefaultPicoContainer.java:83)
        at
org.picocontainer.DefaultPicoContainer$AsPropertiesPicoContainer.addComponent(DefaultPicoContainer.java:1148)
        at
org.sonar.api.platform.ComponentContainer.addExtension(ComponentContainer.java:183)
        at
org.sonar.batch.bootstrap.ExtensionInstaller.doInstall(ExtensionInstaller.java:78)
        at
org.sonar.batch.bootstrap.ExtensionInstaller.install(ExtensionInstaller.java:57)
        at
org.sonar.batch.scan.ModuleScanContainer.addExtensions(ModuleScanContainer.java:175)
        at
org.sonar.batch.scan.ModuleScanContainer.doBeforeStart(ModuleScanContainer.java:76)
        at
org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:90)
        at
org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
        at
org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:233)
        at
org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:228)
        at
org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:226)
        at
org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:221)
        at
org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
        at
org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
        at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:64)
        at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:51)
        at
org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:125)
        at
org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
        at
org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
        at
org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapContainer.java:173)
        at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:95)
        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
        at
org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at
org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
        ... 9 more
Caused by: java.lang.ClassNotFoundException:
org.sonar.api.utils.KeyValueFormat$Transformer
        at
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at
org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
        at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
        at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
        ... 49 more*

Can someone please help troubleshoot this?

Thank-you for reading this.

Respectfully,

Kyle Smith



--
View this message in context: http://sonarqube.15.x6.nabble.com/Unable-to-Execute-SonarQube-after-Update-to-4-5-1-tp5029594.html
Sent from the SonarQube Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email






--
-----
Arnaud Héritier
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier



--
-----
Arnaud Héritier
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier
Reply | Threaded
Open this post in threaded view
|

Re: Unable to Execute SonarQube after Update to 4.5.1

Kyle Smith
In reply to this post by Julien HENRY
I figured it out from reading all the posts on here. I found out that one or more plug-ins installed was causing the error. So I removed some of the plugins and now I can scan again!
Reply | Threaded
Open this post in threaded view
|

Re: Unable to Execute SonarQube after Update to 4.5.1

dmatag
I did it too. So I left my plugins directory like this:

sonar-pmd-plugin-2.2.jar
sonar-csv-export-plugin-1.3.jar
hello-world-1.10.jar
sonar-timeline-plugin-1.4.jar
sonar-build-stability-plugin-1.2.1.jar
sonar-findbugs-plugin-3.0.jar
sonar-cobertura-plugin-1.6.3.jar
sonar-checkstyle-plugin-2.1.1.jar
sonar-l10n-es-plugin-1.13.jar
sonar-java-plugin-2.5.jar
Reply | Threaded
Open this post in threaded view
|

Re: Unable to Execute SonarQube after Update to 4.5.1

Arnaud Héritier-2
in fact my build is always failing even after having removed the Security Rules plugin :(


Any idea about which other plugin to fix/remove ??

On Mon, Nov 3, 2014 at 6:18 PM, dmatag <[hidden email]> wrote:
I did it too. So I left my plugins directory like this:

sonar-pmd-plugin-2.2.jar
sonar-csv-export-plugin-1.3.jar
hello-world-1.10.jar
sonar-timeline-plugin-1.4.jar
sonar-build-stability-plugin-1.2.1.jar
sonar-findbugs-plugin-3.0.jar
sonar-cobertura-plugin-1.6.3.jar
sonar-checkstyle-plugin-2.1.1.jar
sonar-l10n-es-plugin-1.13.jar
sonar-java-plugin-2.5.jar




--
View this message in context: http://sonarqube.15.x6.nabble.com/Unable-to-Execute-SonarQube-after-Update-to-4-5-1-tp5029594p5029726.html
Sent from the SonarQube Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email





--
-----
Arnaud Héritier
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier
Reply | Threaded
Open this post in threaded view
|

Re: Unable to Execute SonarQube after Update to 4.5.1

Kyle Smith
Arnaud,

I would recommend removing all your plugins then installing them one at a time. This way you will probably be able to pin-point which plug-in is causing SonarQube to malfunction.

Remember to restart the SonarQube server after adding a plug-in. I forgot this a few times while trouble-shooting this issue and it caused some more headaches and lost productivity.

Thank-you for reading this. I hope this helps! :)

Respectfully,

Kyle Smith
Reply | Threaded
Open this post in threaded view
|

Re: Unable to Execute SonarQube after Update to 4.5.1

Arnaud Héritier-2
Hi Kyle,

   thx a lot for your help.
   Yes for sure it may allow to find the (set of) culprit(s) but the test loop "add a plugin + restart + test a build" x 30 plugins will require too much time for me (at least for now).
    If the Sonar team doesn't have a better idea I will rollback to 4.5 (it will be quicker)

BR

On Mon, Nov 3, 2014 at 8:55 PM, Kyle Smith <[hidden email]> wrote:
Arnaud,

I would recommend removing all your plugins then installing them one at a
time. This way you will probably be able to pin-point which plug-in is
causing SonarQube to malfunction.

Remember to restart the SonarQube server after adding a plug-in. I forgot
this a few times while trouble-shooting this issue and it caused some more
headaches and lost productivity.

Thank-you for reading this. I hope this helps! :)

Respectfully,

Kyle Smith



--
View this message in context: http://sonarqube.15.x6.nabble.com/Unable-to-Execute-SonarQube-after-Update-to-4-5-1-tp5029594p5029732.html
Sent from the SonarQube Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email





--
-----
Arnaud Héritier
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier
Reply | Threaded
Open this post in threaded view
|

Re: Unable to Execute SonarQube after Update to 4.5.1

Julien HENRY
Hi Arnaud,

Quality Index is deprecated since SQ 4.0 (http://docs.codehaus.org/display/SONAR/Quality+Index+Plugin)
Taglist plugin is deprecated since SQ 4.2 (http://docs.codehaus.org/display/SONAR/Taglist+Plugin)

Unfortunately I have not found any reference to KeyValueFormat$Transformer in these plugins. What is objectivec 0.3.2-SNAPSHOT ?

++

Julien

2014-11-03 21:05 GMT+01:00 Arnaud Héritier <[hidden email]>:
Hi Kyle,

   thx a lot for your help.
   Yes for sure it may allow to find the (set of) culprit(s) but the test loop "add a plugin + restart + test a build" x 30 plugins will require too much time for me (at least for now).
    If the Sonar team doesn't have a better idea I will rollback to 4.5 (it will be quicker)

BR

On Mon, Nov 3, 2014 at 8:55 PM, Kyle Smith <[hidden email]> wrote:
Arnaud,

I would recommend removing all your plugins then installing them one at a
time. This way you will probably be able to pin-point which plug-in is
causing SonarQube to malfunction.

Remember to restart the SonarQube server after adding a plug-in. I forgot
this a few times while trouble-shooting this issue and it caused some more
headaches and lost productivity.

Thank-you for reading this. I hope this helps! :)

Respectfully,

Kyle Smith



--
View this message in context: http://sonarqube.15.x6.nabble.com/Unable-to-Execute-SonarQube-after-Update-to-4-5-1-tp5029594p5029732.html
Sent from the SonarQube Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email





--
-----
Arnaud Héritier
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier

Reply | Threaded
Open this post in threaded view
|

Re: Unable to Execute SonarQube after Update to 4.5.1

Arnaud Héritier-2


On Mon, Nov 3, 2014 at 9:33 PM, Julien HENRY <[hidden email]> wrote:
Hi Arnaud,

Quality Index is deprecated since SQ 4.0 (http://docs.codehaus.org/display/SONAR/Quality+Index+Plugin)
Taglist plugin is deprecated since SQ 4.2 (http://docs.codehaus.org/display/SONAR/Taglist+Plugin)

ok I will remove them (I don't know if it's me but it's difficult to follow deprecated plugins. I'm trying to RTFM but I probably missed something)

 

Unfortunately I have not found any reference to KeyValueFormat$Transformer in these plugins. What is objectivec 0.3.2-SNAPSHOT ?

it is deprecated by your new objective c plugin but I have no budget for now to buy it
I will probably remove it as it is more and more broken month after month. It should be involved in java projects ?

 

++

Julien

2014-11-03 21:05 GMT+01:00 Arnaud Héritier <[hidden email]>:
Hi Kyle,

   thx a lot for your help.
   Yes for sure it may allow to find the (set of) culprit(s) but the test loop "add a plugin + restart + test a build" x 30 plugins will require too much time for me (at least for now).
    If the Sonar team doesn't have a better idea I will rollback to 4.5 (it will be quicker)

BR

On Mon, Nov 3, 2014 at 8:55 PM, Kyle Smith <[hidden email]> wrote:
Arnaud,

I would recommend removing all your plugins then installing them one at a
time. This way you will probably be able to pin-point which plug-in is
causing SonarQube to malfunction.

Remember to restart the SonarQube server after adding a plug-in. I forgot
this a few times while trouble-shooting this issue and it caused some more
headaches and lost productivity.

Thank-you for reading this. I hope this helps! :)

Respectfully,

Kyle Smith



--
View this message in context: http://sonarqube.15.x6.nabble.com/Unable-to-Execute-SonarQube-after-Update-to-4-5-1-tp5029594p5029732.html
Sent from the SonarQube Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email





--
-----
Arnaud Héritier
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier




--
-----
Arnaud Héritier
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier
Reply | Threaded
Open this post in threaded view
|

Re: Unable to Execute SonarQube after Update to 4.5.1

Arnaud Héritier-2
It seems that just removing quality index and tablets plugins were enough. My builds are now passing

Thx Julien

On Tue, Nov 4, 2014 at 10:18 AM, Arnaud Héritier <[hidden email]> wrote:


On Mon, Nov 3, 2014 at 9:33 PM, Julien HENRY <[hidden email]> wrote:
Hi Arnaud,

Quality Index is deprecated since SQ 4.0 (http://docs.codehaus.org/display/SONAR/Quality+Index+Plugin)
Taglist plugin is deprecated since SQ 4.2 (http://docs.codehaus.org/display/SONAR/Taglist+Plugin)

ok I will remove them (I don't know if it's me but it's difficult to follow deprecated plugins. I'm trying to RTFM but I probably missed something)

 

Unfortunately I have not found any reference to KeyValueFormat$Transformer in these plugins. What is objectivec 0.3.2-SNAPSHOT ?

it is deprecated by your new objective c plugin but I have no budget for now to buy it
I will probably remove it as it is more and more broken month after month. It should be involved in java projects ?

 

++

Julien

2014-11-03 21:05 GMT+01:00 Arnaud Héritier <[hidden email]>:
Hi Kyle,

   thx a lot for your help.
   Yes for sure it may allow to find the (set of) culprit(s) but the test loop "add a plugin + restart + test a build" x 30 plugins will require too much time for me (at least for now).
    If the Sonar team doesn't have a better idea I will rollback to 4.5 (it will be quicker)

BR

On Mon, Nov 3, 2014 at 8:55 PM, Kyle Smith <[hidden email]> wrote:
Arnaud,

I would recommend removing all your plugins then installing them one at a
time. This way you will probably be able to pin-point which plug-in is
causing SonarQube to malfunction.

Remember to restart the SonarQube server after adding a plug-in. I forgot
this a few times while trouble-shooting this issue and it caused some more
headaches and lost productivity.

Thank-you for reading this. I hope this helps! :)

Respectfully,

Kyle Smith



--
View this message in context: http://sonarqube.15.x6.nabble.com/Unable-to-Execute-SonarQube-after-Update-to-4-5-1-tp5029594p5029732.html
Sent from the SonarQube Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email





--
-----
Arnaud Héritier
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier




--
-----
Arnaud Héritier
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier



--
-----
Arnaud Héritier
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier
Reply | Threaded
Open this post in threaded view
|

Re: Unable to Execute SonarQube after Update to 4.5.1

ashbvva
This post has NOT been accepted by the mailing list yet.
In reply to this post by Kyle Smith
I am facing exactly the same issue after upgrading my Sonar instance to 4.5.1. Below is the list of plugins in my setup. Do you think Taglist plugin is the culprit here?

Analysis Bootstrapper for Visual Studio Projects -1.2
Artifact Size -0.3
Branding -0.4
Build Breaker -1.1
Build Stability -1.2
C# -3.2.1
C++ (Community) -0.9.1
CSV Export -1.3
Checkstyle -2.1.1
Cobertura -1.6.3
Findbugs -2.3
Groovy -1.0.1
JaCoCo -2.3
Java -2.3
JavaScript -2.1
LDAP -1.3
Motion Chart -1.5
PDF Report -1.3
PHP -2.3
PMD -2.2
ReSharper -1
SCM Activity -1.5.1
Security Rules -0.3.2
Sonar Out Of Date Plugin -0.1-SNAPSHOT
Squid for Java -2.3
StyleCop -1.1
Surefire -3.3.2
Switch Off Violations -1.3
Taglist -1
Timeline -1.3
Web -2

Thanks in advance for your help.