Sonar plugin

Plugin Information

Plugin ID sonar
Latest Release 2.0.1
Latest Release Date Nov 27, 2012
Sources Github
Support Eclipse Hudson Forum
Issue Tracking Eclipse Bugzilla

 
Quickly benefit from Sonar, an open-source Code Quality Management Platform based on many well known analysis tools like Checkstyle, PMD, Findbugs, Cobertura, ....

Once your technical project is configured in Hudson, just activate the Sonar plugin in order to analyze your source code according to the following quality axes :

  • Respect of coding rules violations
  • Density of documented API
  • Density of duplicated Code
  • Level of code coverage by Unit Tests
  • Density of potential bugs
  • Complexity distribution
Why use Sonar?
  • There isn't any necessary configuration for Maven project and a basic one for Ant project
  • All those quality axes are displayed in one page : the project dashboard
  • You can easily drill down from the measure values to the module (Maven), package and classes (source code viewer)

Sonar drives many tools including among others :

Screenshots

All projects

Project dashboard

Labels:

plugin-external plugin-external Delete
plugin-report plugin-report Delete
tier3-compat-plugin tier3-compat-plugin Delete
tier2-plugin tier2-plugin Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Mar 27, 2009

    Robert Dale says:

    Will this run separate from any site reports so as to not interfere with findbug...

    Will this run separate from any site reports so as to not interfere with findbugs,checkstyle,pmd,etc graphs already in hudson? I understand that tests may run more than once, but it would be nice to continue to have quick at-a-glance metrics and trends in hudson, then be able to click off to sonar for deeper analysis.

    1. May 29, 2009

      Freddy Mallet says:

      Hi Robert, you're right and we've already got contributions from the Sonar commu...

      Hi Robert, you're right and we've already got contributions from the Sonar community (SONAR-852, SONAR-853, SONAR-854) so that the "Hudson Violations plugin" can automatically be fed with Sonar reports. This will be available with Sonar 1.10 (Begining of July).

  2. May 25, 2009

    Gabriel Casarini says:

    Hi, we're using Hudson 1.299, Sonar 1.8 and the latest version of the Sonar plug...

    Hi,
    we're using Hudson 1.299, Sonar 1.8 and the latest version of the Sonar plugin. Our projects are built with Ant. So far, the installation is ok (settings in Hudson, use MySQL, etc). But unfortunately, we have encountered a problem with the Sonar plugin. During the invocation we get this error:

    "Cannot execute mojo: sonar. It requires a project with an existing pom.xml, but the build is not using one"

    Looking at the error log (in Hudson), I have found the invocation command:

    mvn.bat -e -B sonar:sonar -Dsonar.jdbc.driver=com.mysql.jdbc.Driver -Dsonar.jdbc.username=sonar -Dsonar.jdbc.password=sonar -Dsonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8 -Dsonar.host.url=http://localhost:8081/sonar -f sonar-pom.xml

    Notice that "-f sonar-pom.xml" is at the END of the line, after all the -D properties.

    Doing the invocation myself (through the command line) and moving -f sonar-pom.xml BEFORE the -D Java switches, solves the problem

    So the problem is in the order of the parameters. Unfortunately, the invocation line is created by the plugin on the fly (using the settings configured in Hudson). And I cannot change it...

    Have you identified this same issue?

    Kindest regards,

    Gabriel

    1. May 29, 2009

      Freddy Mallet says:

      Hi Gabriel, I've created ticket SONARPLUGINS-100. This should be fixed with vers...

      Hi Gabriel, I've created ticket SONARPLUGINS-100. This should be fixed with version 1.1 of the Sonar Hudson plugin.
      Thanks for your help,
      Freddy

  3. May 27, 2009

    Edgar Miller says:

    Hi there, I am trying to install the plugin in Hudson 1.307, but getting alway...

    Hi there,

    I am trying to install the plugin in Hudson 1.307, but getting always an error while installation:

     com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson.plugins.sonar.SonarPublisher:  hudson.plugins.sonar.SonarPublisher

    Have any idea?

    regards

    EdgarM


    P.S: I "downgraded" my hudson to 1.306 and the plugin worked immediatly.

    1. May 29, 2009

      Freddy Mallet says:

      See this thread. We can't manage to reproduce the issue.

      See this thread. We can't manage to reproduce the issue.

  4. Jun 22, 2009

    Ankit Mittal says:

    Hi , I am using Sonar Hudon Plugin , how should I configure the logger in Hudson...

    Hi , I am using Sonar Hudon Plugin , how should I configure the logger in Hudson to get logs for all level  in output console , right now I can see the Sonar Logs only if any build fail. I tried initializing logs on  hudson.plugin.sonar.* bu setting it in Log recorder , but I still cant see any logs

  5. Jul 29, 2009

    Lou Parisi says:

    Thanks for this plugin.  I am just trying out today and it seems very usefu...

    Thanks for this plugin.  I am just trying out today and it seems very useful.  Is there any way to add a link to the sonar project page from the hudson project page?

    1. Aug 05, 2009

      Freddy Mallet says:

      Good idea ! I've created JIRA ticket SONARPLUGINS-165.

      Good idea ! I've created JIRA ticket SONARPLUGINS-165.

  6. Sep 30, 2009

    Lasse Bergström says:

    Hi, I still get the same thing "Cannot execute mojo: sonar. It requires a proje...

    Hi,

    I still get the same thing "Cannot execute mojo: sonar. It requires a project with an existing pom.xml, but the build is not using one" as Gabriel gets above. We have 1.1 installed.

    Any clue?

    Best regards

    /Lasse

  7. Sep 30, 2009

    Lasse Bergström says:

    Hi, I still get the same thing "Cannot execute mojo: sonar. It requires a proje...

    Hi,

    I still get the same thing "Cannot execute mojo: sonar. It requires a project with an existing pom.xml, but the build is not using one" as Gabriel gets above. We have 1.1 installed.

    Any clue?

    Best regards

    /Lasse

  8. Jan 28, 2010

    a311955 says:

    I'm using Hudson 1.340, Sonar 1.9 and plugin version 1.1, but I cannot seem to g...

    I'm using Hudson 1.340, Sonar 1.9 and plugin version 1.1, but I cannot seem to get Hudson to see my Sonar installation.  The only choice for "Sonar Installation" dropdown list is "default".  When I tried to build anyway it told me "No Sonar installation on this job. , available installations count : 0"

    Sonar is installed at the default 9000 port and I can hit the URL, and both Hudson and Sonar are on the same server.

    1. Jan 28, 2010

      Evgeny Mandrikov says:

      Go to Hudson configuration page and configure Sonar installations.

      Go to Hudson configuration page and configure Sonar installations.

  9. Jan 28, 2010

    a311955 says:

    There's no installation to configure, the only choice is "default" and clicking ...

    There's no installation to configure, the only choice is "default" and clicking on that does nothing, ie. no new boxes to fill

    I forgot to mention we aren't using Maven, we use only ANT for building.

    Here's a screenshot: http://i47.tinypic.com/2ii7vox.jpg

    1. Jan 28, 2010

      Evgeny Mandrikov says:

      It would be better if you can provide screenshots. But in any case: have a look...

      It would be better if you can provide screenshots.

      But in any case: have a look on this article http://sonar.codehaus.org/a-new-hudson-plugin-for-a-closer-integration-with-sonar/

      1. Jan 28, 2010

        Evgeny Mandrikov says:

        And again: Go to Hudson global configuration page and configure Sonar installati...

        And again: Go to Hudson global configuration page and configure Sonar installations.
        Eg:
        1) my hudson installed here: http://localhost:8080/hudson
        2) global configuration can be found here: http://localhost:8080/hudson/configure
        3) Sonar installations can be added in section "Sonar" by pressing button "add"

        1. Jan 28, 2010

          a311955 says:

          Thanks for the quick reply, I'm past that point now.

          Thanks for the quick reply, I'm past that point now.

  10. Feb 02, 2010

    newguy says:

    I got this warning when trying to install 1.2.1 to Hudson 1.343: WARNING: Faile...

    I got this warning when trying to install 1.2.1 to Hudson 1.343:

    WARNING: Failed to resolve class
    com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson.plugins.sonar.SonarPublisher : hudson.plugins.sonar.SonarPublisher

    and Hudson is unable to start after installing the plugin.

    1. Feb 10, 2010

      Evgeny Mandrikov says:

      Can you reproduce this with 1.2.2 version?

      Can you reproduce this with 1.2.2 version?

  11. Feb 03, 2010

    Jean-Pol Landrain says:

    Upgrade from 1.1 to 1.2.1 doesn't work for me (and Hudson was restarted, version...

    Upgrade from 1.1 to 1.2.1 doesn't work for me (and Hudson was restarted, version is 1.333).

    With 1.2.1, it tells that there is no maven goal specified on the command line.

    Reverted to 1.1 and it works again.

    1. Feb 03, 2010

      Wilfried Charpentier says:

      Hi, I'm facing the same problem with 1.2.1 and Hudson 1.343. Hudson was restart...

      Hi,

      I'm facing the same problem with 1.2.1 and Hudson 1.343. Hudson was restarted too.

      1. Feb 10, 2010

        Evgeny Mandrikov says:

        Take a look on this issue - http://jira.codehaus.org/browse/SONARPLUGINS-363 Is ...

        Take a look on this issue - http://jira.codehaus.org/browse/SONARPLUGINS-363
        Is it your case?

    2. Feb 10, 2010

      Evgeny Mandrikov says:

      BTW, plugin version 1.2.1 requires Hudson version 1.341

      BTW, plugin version 1.2.1 requires Hudson version 1.341

  12. Feb 25, 2010

    Paweł Stawicki says:

    Hi, I have one problem with this plugin. I have GWTTestCase tests in my project...

    Hi,

    I have one problem with this plugin. I have GWTTestCase tests in my projects. This tests needs DISPLAY. On Hudson problem is solved by Xvnc plugin. This plugin runs VNC on server, and there is DISPLAY ready to use for anything that needs it. Recently we introduced Sonar, and your great plugin. Sonar runs it's instrumented tests after maven build, and at this time VNC by Xvnc plugin is already closed. So my tests are all failed

    1. Feb 26, 2010

      Evgeny Mandrikov says:

      Hi Pawel, Thanks for your feedback. Could you please create ticket in Jira (htt...

      Hi Pawel,

      Thanks for your feedback.
      Could you please create ticket in Jira (http://jira.codehaus.org/browse/SONARPLUGINS/component/13726) for this issue?

  13. Mar 05, 2010

    Seshu Pasam says:

    We have a Maven 1.x project. I checked "Check if this project is NOT built with ...

    We have a Maven 1.x project. I checked "Check if this project is NOT built with maven 2." option for the job and filled in the required details. Not sure why, it is executing "maven" instead of "mvn" and failing because maven is not in the PATH.[workspace] $ maven -f pom.xml -e -B sonar:sonar -Dsonar.jdbc.driver=com.mysql.jdbc.Driver -Dsonar.jdbc.url=jdbc:mysql://********:3306/sonar?autoReconnect=true&useUnicode=true&characterEncoding=utf8 ******** ******** -Dsonar.host.url=http://*********:9000
    FATAL: command execution failed
    java.io.IOException: Cannot run program "maven" (in directory "/home/******jobs/************/workspace"): java.io.IOException: error=2, No such file or directory
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
    at hudson.Proc$LocalProc.<init>(Proc.java:149)
    at hudson.Proc$LocalProc.<init>(Proc.java:121)
    at hudson.Launcher$LocalLauncher.launch(Launcher.java:633)
    at hudson.Launcher$ProcStarter.start(Launcher.java:268)
    at hudson.Launcher$ProcStarter.join(Launcher.java:275)
    at hudson.tasks.Maven.perform(Maven.java:258)
    at hudson.plugins.sonar.utils.SonarMaven.executeMaven(SonarMaven.java:83)
    at hudson.plugins.sonar.SonarPublisher.executeSonar(SonarPublisher.java:401)
    at hudson.plugins.sonar.SonarPublisher.perform(SonarPublisher.java:352)
    at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
    at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582)
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563)
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550)
    at hudson.model.Build$RunnerImpl.post2(Build.java:152)
    at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
    at hudson.model.Run.run(Run.java:1233)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:122)
    Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
    at java.lang.ProcessImpl.start(ProcessImpl.java:65)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
    ... 19 more

    1. Mar 06, 2010

      Evgeny Mandrikov says:

      Hi Seshu, Thanks for your feedback. Just to clarify: I suppose that you use ...

      Hi Seshu,

      Thanks for your feedback.

      Just to clarify:

      • I suppose that you use latest version of Hudson Sonar Plugin
      • You have Maven 1.x project
      • You use free-style hudson job
      • Maven installation defined in Hudson Global Configuration
      • You specify Maven 2.x version in Sonar Configuration for your Job

      I'll going to check this, but just a bit later, so could you please create ticket in Jira http://jira.codehaus.org/browse/SONARPLUGINS/component/13726) for this issue?

      1. Mar 06, 2010

        Seshu Pasam says:

        Thanks Mandrikov for the prompt response. Yes Hudsona nd Sonar Plugins are the...

        Thanks Mandrikov for the prompt response.

        • Yes Hudsona nd Sonar Plugins are the latest version as of today
        • Yes I have a Maven 1.x plugin
        • Yes the job is free-style
        • Yes Maven 1.x and Maven 2.x are defined in Hudson Global Configuration (but I don't see these paths being used anywhere)
        • This is the part that I missed. I somehow missed the "Advanced" button on the Sonar tab. I have now selected the correct maven installation. Let me see how it goes

        Thanks again for your help

        1. Mar 06, 2010

          Evgeny Mandrikov says:

          Could you please inform me here, if it helps?

          Could you please inform me here, if it helps?

          1. Mar 07, 2010

            Seshu Pasam says:

            Hi Mandrikov, yes it worked. I missed the "Advanced" button part. I am stuck on ...

            Hi Mandrikov, yes it worked. I missed the "Advanced" button part. I am stuck on another problem now. I am getting the following when it is trying to run findbugs. I am running hudson 1.3.48 and Sonar 1.3.1. The project (site build) is already built. The <outputDirectory> and <sourceDirectory>/<source> are generated in pom.xml. Any idea?

            Caused by: org.sonar.api.utils.SonarException: Findbugs needs sources to be compiled. Please build project or edit pom.xml to set the property before executing sonar. at org.sonar.plugins.findbugs.FindbugsMavenPluginHandler.configureClassesDir(FindbugsMavenPluginHandler.java:99)

            Thanks

            1. Mar 08, 2010

              Evgeny Mandrikov says:

              I think that this problem doesn't relate to Hudson Sonar Plugin, it relates to y...

              I think that this problem doesn't relate to Hudson Sonar Plugin, it relates to your configuration.
              Probably it would be better - post to Sonar mailing list. And it would be nice, if you can provide test project and your job configuration.

  14. Mar 12, 2010

    Jigar Shah says:

    I am getting following log in build console. I am using ant. (not maven) (I can...

    I am getting following log in build console. I am using ant. (not maven)

    (I can post my config here.)

    In console output it says...

    "Skipping sonar analysis due to bad build status UNSTABLE"

    I do want to build even if test is unstable.

    I havej unit tests being run.
    I have pmd reports being generated through ant.
    I have multiple classes directory. (So can i specify comma separated list ?)

    Can I reuse pmd reports generated by my build. ? I don't see config for the same.

    How do i configure sonar ?

    1. Mar 12, 2010

      Evgeny Mandrikov says:

      > I do want to build even if test is unstable. See triggers configuration (it...

      > I do want to build even if test is unstable.
      See triggers configuration (it can be defined for job or globally) - there is checkbox "Skip analysis on build failure".

      > I have multiple classes directory. (So can i specify comma separated list ?)
      Only one classes directory supported.

      > Can I reuse pmd reports generated by my build?
      For now you can reuse surefire, cobertura and clover reports.

      Feel free to split your issues into separate tickets and create them in Jira (http://jira.codehaus.org/browse/SONARPLUGINS/component/13726).

  15. Mar 12, 2010

    Jigar Shah says:

    For removing duplicate of above. I really appreciate any help

    For removing duplicate of above. I really appreciate any help

  16. Mar 15, 2010

    a311955 says:

    From where does the plugin grab rulesets for pmd, checkstyle and findbugs? ...

    From where does the plugin grab rulesets for pmd, checkstyle and findbugs?  I would like to use our own but there's no place to specify them?  This is with version 1.4 of the plugin and 1.350 Hudson.

    1. Mar 15, 2010

      Evgeny Mandrikov says:

      Plugin just invokes "mvn sonar:sonar" with some additional parameters. You can c...

      Plugin just invokes "mvn sonar:sonar" with some additional parameters. You can configure rules through Sonar web interface.

  17. Mar 16, 2010

    a311955 says:

    Another question, is there a way to add exclusion lists from the plugin, like fo...

    Another question, is there a way to add exclusion lists from the plugin, like for generated files?

    1. Mar 16, 2010

      Evgeny Mandrikov says:

      Yes - see following page: http://docs.codehaus.org/display/SONAR/Advanced+parame...
  18. Mar 26, 2010

    Elena says:

    Hi, I use Hudson 1.352 and a Sonar plugin with MySql.  Our project is buil...

    Hi,

    I use Hudson 1.352 and a Sonar plugin with MySql.  Our project is built with ANT. I've followed all the described installation steps and the Sonar creates 25 tables in the DB. After a build only a project  name appears in the Sonar, but nothing else no graphics...and I get this error is the Sonar log

    2010.03.26 23:08:48 ERROR rails 
    ActionView::MissingTemplate (Missing template charts/trends.erb in view path /home/user/sonar/sonar-2.0.1/war/sonar-server/WEB-INF/app/views:):
        /gems/gems/actionpack-2.2.2/lib/action_view/template.rb:95:in `find_full_path'
        /gems/gems/actionpack-2.2.2/lib/action_view/template.rb:16:in `initialize'
        /gems/gems/actionpack-2.2.2/lib/action_view/base.rb:332:in `_pick_template'
        /gems/gems/activesupport-2.2.2/lib/active_support/memoizable.rb:99:in `_pick

    Any ideas?

    Thanks in advance!

    1. Mar 26, 2010

      Evgeny Mandrikov says:

      Hi Elena, This issue doesn't relates to Hudson Sonar Plugin, it relates to Sona...

      Hi Elena,

      This issue doesn't relates to Hudson Sonar Plugin, it relates to Sonar, so could you please write about your problem to Sonar user mailing list?

  19. Apr 19, 2010

    Vinicius Kopcheski says:

    About the issue SONARPLUGINS-355. I'm using the version 1.5 with hudson 1.351, a...

    About the issue SONARPLUGINS-355.
    I'm using the version 1.5 with hudson 1.351, and the sonar URL in my project still takes me to sonar homepage.

    Great plugin you developed, thanks.

  20. Jun 16, 2010

    Erik Klein says:

    I am building a Sonar PlugIn that will make use of the Maven2 POM that Sonar aut...

    I am building a Sonar PlugIn that will make use of the Maven2 POM that Sonar automatically produces via its Hudson Plugin.  I need to add a few XML sections to the sonar-pom.xml file that gets generated to handle Ant-based builds.  Please confirm that the file I should update is sonar-light-pom.template.

    Also, which Maven goals does Sonar execute via this PlugIn interface?  I see an area to specify MAVEN_OPTS and Additional Properties, but no place to indicate the goals to be executed.  Are the goals supposed to be executed within my PlugIn or does Sonar perform some Maven goals as well?

    1. Jun 23, 2010

      Evgeny Mandrikov says:

      Could you please switch to sonar developers mailing list in order to investigate...

      Could you please switch to sonar developers mailing list in order to investigate your issue?

  21. Jun 18, 2010

    Al Ferguson says:

    Hudson Sonar plugin stopped working after upgrading Sonar from 1.12 to 2.1.2 F...

    Hudson Sonar plugin stopped working after upgrading Sonar from 1.12 to 2.1.2

    For any reason, it requires a class and cannot find it. Build logs show:

    [trunk] $ C:\programs\selenium\apache-maven-2.2.1\bin\mvn.bat -f pom.xml -e -B sonar:sonar -Dsonar.jdbc.driver=com.mysql.jdbc.Driver "-Dsonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8" ******** ******** -Dsonar.host.url=http://vm-0019:9000/
    [...]
    [FATAL ERROR] org.sonar.maven2.BatchMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms:
    [FATAL ERROR] Plugin realm = app0.child-container[org.codehaus.sonar.runtime:sonar-core-maven-plugin:20100611111942]
    [...]
    [FATAL ERROR] Container realm = plexus.core
    urls[0] = file:/C:/programs/selenium/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
    [FATAL ERROR] org.codehaus.mojo.sonar.SonarMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms:
    [FATAL ERROR] Plugin realm = app0.child-container[org.codehaus.mojo:sonar-maven-plugin:1.0-beta-1]
    urls[0] = file:/C:/axa/maven/.m2/repository/org/codehaus/mojo/sonar-maven-plugin/1.0-beta-1/sonar-maven-plugin-1.0-beta-1.jar
    urls[1] = file:/C:/axa/maven/.m2/repository/commons-io/commons-io/1.3/commons-io-1.3.jar
    urls[2] = file:/C:/axa/maven/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar
    urls[3] = file:/C:/axa/maven/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
    [FATAL ERROR] Container realm = plexus.core
    urls[0] = file:/C:/programs/selenium/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
    [INFO] ------------------------------------------------------------------------
    [ERROR] FATAL ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] org/sonar/api/utils/IocContainer
    [INFO] ------------------------------------------------------------------------
    [INFO] Trace
    java.lang.NoClassDefFoundError: org/sonar/api/utils/IocContainer
    at org.sonar.batch.AggregatorBatch.createContainer(AggregatorBatch.java:52)
    at org.sonar.batch.AggregatorBatch.<init>(AggregatorBatch.java:48)
    at org.sonar.maven2.BatchMojo.executeBatch(BatchMojo.java:136)
    at org.sonar.maven2.BatchMojo.execute(BatchMojo.java:131)
    at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
    at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82)
    at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
    at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:117)
    at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
    at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

    Any ideas?

    Thanks in advance!
    Al

    1. Jun 23, 2010

      Evgeny Mandrikov says:

      Could you please switch to sonar users mailing list in order to investigate your...

      Could you please switch to sonar users mailing list in order to investigate your issue?

  22. Dec 07, 2010

    Shadow de Coutemeier says:

    I think it would be great if you add an option to launch automatically a Sonar a...

    I think it would be great if you add an option to launch automatically a Sonar analyse after M2 Release plugin, with the label of the event in Sonar as the version number generated in release process.

    Another way to get this, would be if there were an option to launch a Sonar analyse after a build.

    In both cases, the use of a -Dsonar.isARelease (#current|#previous|a number of version) parameter would help to indicate sonar if the version number must be overriden with the #current or #previous (in the release file used by Maven), or a number of version as 1.2.23.

    1. Dec 07, 2010

      Evgeny Mandrikov says:

      Hi, Could you please Sonar user mailing list ( http://www.sonarsource.org/suppor...

      Hi, Could you please Sonar user mailing list ( http://www.sonarsource.org/support/support/ ) for discussions about new features and so on ?

  23. Mar 08, 2011

    Rohit Nabh says:

    Hi Evgeny Mandrikov, I need a urgent help as I am stuck when I an using HUDSON+...

    Hi Evgeny Mandrikov,

    I need a urgent help as I am stuck when I an using HUDSON+SONAR.
    I am using HUSDON version 1.392 and SONAR version 2.4.1.

    So first question is are these two compatible version which I am using.

    Secnd as my project is build using ANT and during configuration of SONAR on Hudson I checked "Check if this project is NOT built with maven 2" and filled the required info into it.
    When I am running my build on hudson and try to fill the SONAR db with results it shows this error.

    [workspace] $ mvn.bat -f pom.xml -e -B sonar:sonar -Dsonar.jdbc.driver=org.apache.derby.jdbc.ClientDriver -Dsonar.jdbc.url=jdbc:derby://9.79.184.125:1527/sonar;create=true ******** ******** -Dsonar.host.url=http://9.79.184.125:9000/
    The system cannot find the file specified
    FATAL: command execution failed
    java.io.IOException: CreateProcess: mvn.bat -f pom.xml -e -B sonar:sonar -Dsonar.jdbc.driver=org.apache.derby.jdbc.ClientDriver -Dsonar.jdbc.url=jdbc:derby://9.79.184.125:1527/sonar;create=true -Dsonar.jdbc.username=sonar -Dsonar.jdbc.password=sonar -Dsonar.host.url=http://9.79.184.125:9000/ error=2
    at java.lang.ProcessImpl.<init>(ProcessImpl.java:108)
    at java.lang.ProcessImpl.start(ProcessImpl.java:56)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:466)
    at hudson.Proc$LocalProc.<init>(Proc.java:192)
    at hudson.Proc$LocalProc.<init>(Proc.java:164)
    at hudson.Launcher$LocalLauncher.launch(Launcher.java:638)
    at hudson.Launcher$ProcStarter.start(Launcher.java:273)
    at hudson.Launcher$ProcStarter.join(Launcher.java:280)
    at hudson.tasks.Maven.perform(Maven.java:259)
    at hudson.plugins.sonar.utils.SonarMaven.executeMaven(SonarMaven.java:89)
    at hudson.plugins.sonar.SonarPublisher.executeSonar(SonarPublisher.java:367)
    at hudson.plugins.sonar.SonarPublisher.perform(SonarPublisher.java:314)
    at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
    at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:603)
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:582)
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:560)
    at hudson.model.Build$RunnerImpl.post2(Build.java:156)
    at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:529)
    at hudson.model.Run.run(Run.java:1386)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:145)
    Finished: FAILURE

    Can you please help me to solve this issue as its very urgent.

    Thanks in Advance.
    Rohit Nabh

  24. Dec 23, 2011

    Roxana Morano says:

    Could anyone help me with this issue I'm having? It is on the sonar-plugin insta...

    Could anyone help me with this issue I'm having?
    It is on the sonar-plugin installed on my hudson. I don't know what is wrong and What should I do to fix it.
    It happens when I run hudson task more than once in a day.

    [INFO] Sensor Maven dependencies done: 3956 ms
    [INFO] Execute decorators...
    [WARN] exception clearing maxRows/queryTimeout
    java.sql.SQLNonTransientConnectionException: No current connection.
    at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source) [jdbc\-driver.jar:na]
    at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source) [jdbc\-driver.jar:na]
    at org.apache.derby.client.am.Statement.getMaxRows(Unknown Source) [jdbc\-driver.jar:na]
    at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:298) [hibernate\-core\-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:234) [hibernate\-core\-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.loader.Loader.getResultSet(Loader.java:1826) [hibernate\-core\-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.loader.Loader.doQuery(Loader.java:697) [hibernate\-core\-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259) [hibernate\-core\-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.loader.Loader.doList(Loader.java:2232) [hibernate\-core\-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129) [hibernate\-core\-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.loader.Loader.list(Loader.java:2124) [hibernate\-core\-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:312) [hibernate\-core\-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1723) [hibernate\-core\-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:165) [hibernate\-core\-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:175) [hibernate\-core\-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:67) [hibernate\-entitymanager\-3.4.0.GA.jar:3.4.0.GA]
    at org.sonar.batch.components.PastMeasuresLoader.getPastMeasures(PastMeasuresLoader.java:72) [sonar\-batch\-2.11.jar:na]
    at org.sonar.batch.components.PastMeasuresLoader.getPastMeasures(PastMeasuresLoader.java:63) [sonar\-batch\-2.11.jar:na]
    at org.sonar.plugins.core.timemachine.VariationDecorator.computeVariation(VariationDecorator.java:87) [sonar\-core\-plugin\-2.11.jar:na]
    at org.sonar.plugins.core.timemachine.VariationDecorator.decorate(VariationDecorator.java:72) [sonar\-core\-plugin\-2.11.jar:na]
    at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:79) [sonar\-batch\-2.11.jar:na]
    at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:70) [sonar\-batch\-2.11.jar:na]
    at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:63) [sonar\-batch\-2.11.jar:na]
    at org.sonar.batch.phases.DecoratorsExecutor.execute(DecoratorsExecutor.java:55) [sonar\-batch\-2.11.jar:na]
    at org.sonar.batch.phases.Phases.execute(Phases.java:94) [sonar\-batch\-2.11.jar:na]
    at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143) [sonar\-batch\-2.11.jar:na]
    at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar\-batch\-2.11.jar:na]
    at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110) [sonar\-batch\-2.11.jar:na]
    at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:105) [sonar\-batch\-2.11.jar:na]
    at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:100) [sonar\-batch\-2.11.jar:na]
    at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar\-batch\-2.11.jar:na]
    at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:96) [sonar\-batch\-2.11.jar:na]
    at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar\-batch\-2.11.jar:na]
    at org.sonar.batch.Batch.execute(Batch.java:74) [sonar\-batch\-2.11.jar:na]
    at org.sonar.maven3.SonarMojo.executeBatch(SonarMojo.java:147) [sonar\-maven3\-plugin\-2.11.jar:na]
    at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:136) [sonar\-maven3\-plugin\-2.11.jar:na]
    at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113) [sonar\-maven\-plugin\-2.0\-beta\-2.jar:na]
    at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65) [sonar\-maven\-plugin\-2.0\-beta\-2.jar:na]
    at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90) [sonar\-maven\-plugin\-2.0\-beta\-2.jar:na]
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) [maven\-embedder\-3.0.3.jar:3.0.3]
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) [maven\-embedder\-3.0.3.jar:3.0.3]
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) [maven\-embedder\-3.0.3.jar:3.0.3]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0\_22]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0\_22]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0\_22]
    at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0\_22]
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) [plexus\-classworlds\-2.4.jar:na]
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) [plexus\-classworlds\-2.4.jar:na]
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) [plexus\-classworlds\-2.4.jar:na]
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [plexus\-classworlds\-2.4.jar:na]
    Caused by: org.apache.derby.client.am.SqlException: No current connection.
    at org.apache.derby.client.am.Statement.checkForClosedStatement(Unknown Source) [jdbc\-driver.jar:na]
    ... 58 common frames omitted
    [WARN] SQL Error: 40000, SQLState: 08006
    [ERROR] Insufficient data while reading from the network - expected a minimum of 6 bytes and received only 0 bytes. The connection has been terminated.
    [ERROR] Could not toggle autocommit
    java.sql.SQLNonTransientConnectionException: No current connection.
    at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source) [jdbc\-driver.jar:na]
    at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source) [jdbc\-driver.jar:na]
    at org.apache.derby.client.am.Connection.setAutoCommit(Unknown Source) [jdbc\-driver.jar:na]
    at org.hibernate.transaction.JDBCTransaction.toggleAutoCommit(JDBCTransaction.java:228) [hibernate\-core\-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.transaction.JDBCTransaction.rollbackAndResetAutoCommit(JDBCTransaction.java:220) [hibernate\-core\-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:196) [hibernate\-core\-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.ejb.TransactionImpl.rollback(TransactionImpl.java:85) [hibernate\-entitymanager\-3.4.0.GA.jar:3.4.0.GA]
    at org.sonar.jpa.session.JpaDatabaseSession.commit(JpaDatabaseSession.java:68) [sonar\-core\-2.11.jar:na]
    at org.sonar.jpa.session.JpaDatabaseSession.stop(JpaDatabaseSession.java:57) [sonar\-core\-2.11.jar:na]
    at org.sonar.jpa.session.ThreadLocalDatabaseSessionFactory.clear(ThreadLocalDatabaseSessionFactory.java:46) [sonar\-core\-2.11.jar:na]
    at org.sonar.jpa.session.ThreadLocalDatabaseSessionFactory.stop(ThreadLocalDatabaseSessionFactory.java:52) [sonar\-core\-2.11.jar:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0\_22]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0\_22]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0\_22]
    at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0\_22]
    at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110) [picocontainer\-2.10.2.jar:na]
    at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.stop(ReflectionLifecycleStrategy.java:96) [picocontainer\-2.10.2.jar:na]
    at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.stop(AbstractInjectionFactory.java:88) [picocontainer\-2.10.2.jar:na]
    at org.picocontainer.behaviors.AbstractBehavior.stop(AbstractBehavior.java:179) [picocontainer\-2.10.2.jar:na]
    at org.picocontainer.behaviors.Stored$RealComponentLifecycle.stop(Stored.java:141) [picocontainer\-2.10.2.jar:na]
    at org.picocontainer.behaviors.Stored.stop(Stored.java:118) [picocontainer\-2.10.2.jar:na]
    at org.picocontainer.DefaultPicoContainer.stopAdapters(DefaultPicoContainer.java:1029) [picocontainer\-2.10.2.jar:na]
    at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:782) [picocontainer\-2.10.2.jar:na]
    at org.sonar.batch.bootstrap.Module.stop(Module.java:103) [sonar\-batch\-2.11.jar:na]
    at org.sonar.batch.Batch.execute(Batch.java:76) [sonar\-batch\-2.11.jar:na]
    at org.sonar.maven3.SonarMojo.executeBatch(SonarMojo.java:147) [sonar\-maven3\-plugin\-2.11.jar:na]
    at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:136) [sonar\-maven3\-plugin\-2.11.jar:na]
    at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113) [sonar\-maven\-plugin\-2.0\-beta\-2.jar:na]
    at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65) [sonar\-maven\-plugin\-2.0\-beta\-2.jar:na]
    at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90) [sonar\-maven\-plugin\-2.0\-beta\-2.jar:na]
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) [maven\-embedder\-3.0.3.jar:3.0.3]
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) [maven\-embedder\-3.0.3.jar:3.0.3]
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) [maven\-embedder\-3.0.3.jar:3.0.3]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0\_22]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0\_22]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0\_22]
    at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0\_22]
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) [plexus\-classworlds\-2.4.jar:na]
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) [plexus\-classworlds\-2.4.jar:na]
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) [plexus\-classworlds\-2.4.jar:na]
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [plexus\-classworlds\-2.4.jar:na]
    Caused by: org.apache.derby.client.am.SqlException: No current connection.
    at org.apache.derby.client.am.Connection.checkForClosedConnection(Unknown Source) [jdbc\-driver.jar:na]
    ... 49 common frames omitted
    [ERROR] JDBC rollback failed
    java.sql.SQLNonTransientConnectionException: No current connection.
    at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source) [jdbc\-driver.jar:na]
    at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source) [jdbc\-driver.jar:na]
    at org.apache.derby.client.am.Connection.rollback(Unknown Source) [jdbc\-driver.jar:na]
    at org.hibernate.transaction.JDBCTransaction.rollbackAndResetAutoCommit(JDBCTransaction.java:217) [hibernate\-core\-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:196) [hibernate\-core\-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.ejb.TransactionImpl.rollback(TransactionImpl.java:85) [hibernate\-entitymanager\-3.4.0.GA.jar:3.4.0.GA]
    at org.sonar.jpa.session.JpaDatabaseSession.commit(JpaDatabaseSession.java:68) [sonar\-core\-2.11.jar:na]
    at org.sonar.jpa.session.JpaDatabaseSession.stop(JpaDatabaseSession.java:57) [sonar\-core\-2.11.jar:na]
    at org.sonar.jpa.session.ThreadLocalDatabaseSessionFactory.clear(ThreadLocalDatabaseSessionFactory.java:46) [sonar\-core\-2.11.jar:na]
    at org.sonar.jpa.session.ThreadLocalDatabaseSessionFactory.stop(ThreadLocalDatabaseSessionFactory.java:52) [sonar\-core\-2.11.jar:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0\_22]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0\_22]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0\_22]
    at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0\_22]
    at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110) [picocontainer\-2.10.2.jar:na]
    at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.stop(ReflectionLifecycleStrategy.java:96) [picocontainer\-2.10.2.jar:na]
    at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.stop(AbstractInjectionFactory.java:88) [picocontainer\-2.10.2.jar:na]
    at org.picocontainer.behaviors.AbstractBehavior.stop(AbstractBehavior.java:179) [picocontainer\-2.10.2.jar:na]
    at org.picocontainer.behaviors.Stored$RealComponentLifecycle.stop(Stored.java:141) [picocontainer\-2.10.2.jar:na]
    at org.picocontainer.behaviors.Stored.stop(Stored.java:118) [picocontainer\-2.10.2.jar:na]
    at org.picocontainer.DefaultPicoContainer.stopAdapters(DefaultPicoContainer.java:1029) [picocontainer\-2.10.2.jar:na]
    at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:782) [picocontainer\-2.10.2.jar:na]
    at org.sonar.batch.bootstrap.Module.stop(Module.java:103) [sonar\-batch\-2.11.jar:na]
    at org.sonar.batch.Batch.execute(Batch.java:76) [sonar\-batch\-2.11.jar:na]
    at org.sonar.maven3.SonarMojo.executeBatch(SonarMojo.java:147) [sonar\-maven3\-plugin\-2.11.jar:na]
    at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:136) [sonar\-maven3\-plugin\-2.11.jar:na]
    at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113) [sonar\-maven\-plugin\-2.0\-beta\-2.jar:na]
    at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65) [sonar\-maven\-plugin\-2.0\-beta\-2.jar:na]
    at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90) [sonar\-maven\-plugin\-2.0\-beta\-2.jar:na]
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) [maven\-core\-3.0.3.jar:3.0.3]
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) [maven\-embedder\-3.0.3.jar:3.0.3]
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) [maven\-embedder\-3.0.3.jar:3.0.3]
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) [maven\-embedder\-3.0.3.jar:3.0.3]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0\_22]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0\_22]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0\_22]
    at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0\_22]
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) [plexus\-classworlds\-2.4.jar:na]
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) [plexus\-classworlds\-2.4.jar:na]
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) [plexus\-classworlds\-2.4.jar:na]
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [plexus\-classworlds\-2.4.jar:na]
    Caused by: org.apache.derby.client.am.SqlException: No current connection.
    at org.apache.derby.client.am.Connection.checkForClosedConnection(Unknown Source) [jdbc\-driver.jar:na]
    ... 48 common frames omitted
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] CDNSSP parent project ............................. FAILURE [6:07.519s]
    [INFO] CDS-IS DAO Layer API .............................. SKIPPED
    [INFO] CDS-IS DAO Layer IMPL ............................. SKIPPED
    [INFO] Common classes for cdnssp project ................. SKIPPED
    [INFO] RnE Service Client API ............................ SKIPPED
    [INFO] Common classes for external clients ............... SKIPPED
    [INFO] RnE Service Client Impl ........................... SKIPPED
    [INFO] CDS-IS Service Client API ......................... SKIPPED
    [INFO] CDS-IS Service Client Impl ........................ SKIPPED
    [INFO] CDS-IS Service Client Mock Impl ................... SKIPPED
    [INFO] portal-batchs ..................................... SKIPPED
    [INFO] portal-webapp Maven Webapp ........................ SKIPPED
    [INFO] RnE Service Client Mock Impl ...................... SKIPPED
    [INFO] public-webapp Maven Webapp ........................ SKIPPED
    [INFO] ycdnssp-repository Maven Webapp ................... SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 6:11.213s
    [INFO] Finished at: Sat Dec 24 00:23:52 ART 2011
    [INFO] Final Memory: 16M/247M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0-beta-2:sonar (default-cli) on project cdnssp: Can not execute Sonar: Fail to decorate 'org.sonar.api.resources.JavaPackage@1f504b4[id=33,key=com.telstra.cdnssp.commons.compression]': org.hibernate.exception.JDBCConnectionException: could not execute query: Insufficient data while reading from the network - expected a minimum of 6 bytes and received only 0 bytes. The connection has been terminated. -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0-beta-2:sonar (default-cli) on project cdnssp: Can not execute Sonar
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
    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:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
    Caused by: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar
    at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:118)
    at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
    at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more
    Caused by: org.sonar.api.utils.SonarException: Fail to decorate 'org.sonar.api.resources.JavaPackage@1f504b4[id=33,key=com.telstra.cdnssp.commons.compression]'
    at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:84)
    at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:70)
    at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:63)
    at org.sonar.batch.phases.DecoratorsExecutor.execute(DecoratorsExecutor.java:55)
    at org.sonar.batch.phases.Phases.execute(Phases.java:94)
    at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
    at org.sonar.batch.bootstrap.Module.start(Module.java:89)
    at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110)
    at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:105)
    at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:100)
    at org.sonar.batch.bootstrap.Module.start(Module.java:89)
    at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:96)
    at org.sonar.batch.bootstrap.Module.start(Module.java:89)
    at org.sonar.batch.Batch.execute(Batch.java:74)
    at org.sonar.maven3.SonarMojo.executeBatch(SonarMojo.java:147)
    at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:136)
    at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113)
    ... 23 more
    Caused by: javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: could not execute query
    at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)
    at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:76)
    at org.sonar.batch.components.PastMeasuresLoader.getPastMeasures(PastMeasuresLoader.java:72)
    at org.sonar.batch.components.PastMeasuresLoader.getPastMeasures(PastMeasuresLoader.java:63)
    at org.sonar.plugins.core.timemachine.VariationDecorator.computeVariation(VariationDecorator.java:87)
    at org.sonar.plugins.core.timemachine.VariationDecorator.decorate(VariationDecorator.java:72)
    at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:79)
    ... 39 more
    Caused by: org.hibernate.exception.JDBCConnectionException: could not execute query
    at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:97)
    at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
    at org.hibernate.loader.Loader.doList(Loader.java:2235)
    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129)
    at org.hibernate.loader.Loader.list(Loader.java:2124)
    at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:312)
    at org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1723)
    at org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:165)
    at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:175)
    at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:67)
    ... 44 more
    Caused by: java.sql.SQLNonTransientConnectionException: Insufficient data while reading from the network - expected a minimum of 6 bytes and received only 0 bytes. The connection has been terminated.
    at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
    at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
    at org.apache.derby.client.am.PreparedStatement.executeQuery(Unknown Source)
    at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
    at org.hibernate.loader.Loader.getResultSet(Loader.java:1812)
    at org.hibernate.loader.Loader.doQuery(Loader.java:697)
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
    at org.hibernate.loader.Loader.doList(Loader.java:2232)
    ... 51 more
    Caused by: org.apache.derby.client.am.DisconnectException: Insufficient data while reading from the network - expected a minimum of 6 bytes and received only 0 bytes. The connection has been terminated.
    at org.apache.derby.client.net.Reply.fill(Unknown Source)
    at org.apache.derby.client.net.Reply.ensureALayerDataInBuffer(Unknown Source)
    at org.apache.derby.client.net.Reply.readDssHeader(Unknown Source)
    at org.apache.derby.client.net.Reply.startSameIdChainParse(Unknown Source)
    at org.apache.derby.client.net.NetStatementReply.readOpenQuery(Unknown Source)
    at org.apache.derby.client.net.StatementReply.readOpenQuery(Unknown Source)
    at org.apache.derby.client.net.NetStatement.readOpenQuery_(Unknown Source)
    at org.apache.derby.client.am.Statement.readOpenQuery(Unknown Source)
    at org.apache.derby.client.am.PreparedStatement.flowExecute(Unknown Source)
    at org.apache.derby.client.am.PreparedStatement.executeQueryX(Unknown Source)
    ... 57 more
    [ERROR]
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
    Sonar analysis completed: FAILURE
    Build step 'Sonar' changed build result to FAILURE
    Build step 'Sonar' marked build as failure
    ERROR: Illegal whitespace in address
    javax.mail.internet.AddressException: Illegal whitespace in address in string ``alejandro.constela@santexgroup.com roxana.morano@santexgroup.com''
    at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:926)
    at javax.mail.internet.InternetAddress.parse(InternetAddress.java:819)
    at javax.mail.internet.InternetAddress.parse(InternetAddress.java:555)
    at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:91)
    at hudson.tasks.MailSender.createEmptyMail(MailSender.java:311)
    at hudson.tasks.MailSender.createFailureMail(MailSender.java:220)
    at hudson.tasks.MailSender.getMail(MailSender.java:147)
    at hudson.tasks.MailSender.execute(MailSender.java:95)
    at hudson.maven.MavenModuleSetBuild$RunnerImpl.cleanUp(MavenModuleSetBuild.java:1032)
    at hudson.model.Run.run(Run.java:1448)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:238)
    Finished: FAILURE