Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-2738

SONAR-2329 keeps by using hudson sonar plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.9
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Tomcat 6, Linux

      Description

      Using Hudson Sonar Plugin 1.6.1, SONAR-2329 ocurrs, but now:
      Running those simple steps allow to reproduce this issue :

      analyse project 1
      analyse module A
      analyse module A -> KO

      [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0-beta-2:sonar (default-cli) on project EBAN: Can not execute Sonar: PicoLifecycleException: method 'public void org.sonar.batch.ProjectTree.start() throws java.io.IOException', instance 'org.sonar.batch.ProjectTree@1995c9a, javax.persistence.NonUniqueResultException: Expected single result, but got : [Snapshot[resourceId=13624,createdAt=2011-08-17 08:15:00.265,version=DEVEL-SNAPSHOT,last=true,status=P,scope=PRJ,path=<null>,depth=0,qualifier=TRK,rootId=<null>,parentId=<null>,rootProjectId=13624,period1Mode=previous_analysis,period2Mode=days,period3Mode=days,period4Mode=<null>,period5Mode=<null>,period1Param=2011-08-12,period2Param=7,period3Param=30,period4Param=<null>,period5Param=<null>,period1Date=2011-08-12 07:02:57.09,period2Date=2011-08-10 08:15:00.265,period3Date=2011-07-18 08:15:00.265,period4Date=<null>,period5Date=<null>,id=328344], Snapshot[resourceId=13624,createdAt=2011-08-17 08:14:40.424,version=DEVEL-SNAPSHOT,last=true,status=P,scope=PRJ,path=328326.328327.,depth=2,qualifier=BRC,rootId=328326,parentId=328327,rootProjectId=10977,period1Mode=previous_analysis,period2Mode=days,period3Mode=days,period4Mode=<null>,period5Mode=<null>,period1Param=2011-08-12,period2Param=7,period3Param=30,period4Param=<null>,period5Param=<null>,period1Date=2011-08-12 07:02:57.09,period2Date=2011-08-10 08:14:40.424,period3Date=2011-07-18 08:14:40.424,period4Date=<null>,period5Date=<null>,id=328328]] -> [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 EBAN: 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:534)
      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:107)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      ... 19 more
      Caused by: org.picocontainer.PicoLifecycleException: PicoLifecycleException: method 'public void org.sonar.batch.ProjectTree.start() throws java.io.IOException', instance 'org.sonar.batch.ProjectTree@1995c9a, javax.persistence.NonUniqueResultException: Expected single result, but got : [Snapshot[resourceId=13624,createdAt=2011-08-17 08:15:00.265,version=DEVEL-SNAPSHOT,last=true,status=P,scope=PRJ,path=<null>,depth=0,qualifier=TRK,rootId=<null>,parentId=<null>,rootProjectId=13624,period1Mode=previous_analysis,period2Mode=days,period3Mode=days,period4Mode=<null>,period5Mode=<null>,period1Param=2011-08-12,period2Param=7,period3Param=30,period4Param=<null>,period5Param=<null>,period1Date=2011-08-12 07:02:57.09,period2Date=2011-08-10 08:15:00.265,period3Date=2011-07-18 08:15:00.265,period4Date=<null>,period5Date=<null>,id=328344], Snapshot[resourceId=13624,createdAt=2011-08-17 08:14:40.424,version=DEVEL-SNAPSHOT,last=true,status=P,scope=PRJ,path=328326.328327.,depth=2,qualifier=BRC,rootId=328326,parentId=328327,rootProjectId=10977,period1Mode=previous_analysis,period2Mode=days,period3Mode=days,period4Mode=<null>,period5Mode=<null>,period1Param=2011-08-12,period2Param=7,period3Param=30,period4Param=<null>,period5Param=<null>,period1Date=2011-08-12 07:02:57.09,period2Date=2011-08-10 08:14:40.424,period3Date=2011-07-18 08:14:40.424,period4Date=<null>,period5Date=<null>,id=328328]]
      at org.picocontainer.monitors.NullComponentMonitor.lifecycleInvocationFailed(NullComponentMonitor.java:77)
      at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.monitorAndThrowReflectionLifecycleException(ReflectionLifecycleStrategy.java:132)
      at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:115)
      at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)
      at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
      at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
      at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
      at org.picocontainer.behaviors.Stored.start(Stored.java:110)
      at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:996)
      at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:989)
      at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:746)
      at org.sonar.batch.bootstrap.Module.start(Module.java:88)
      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.NonUniqueResultException: Expected single result, but got : [Snapshot[resourceId=13624,createdAt=2011-08-17 08:15:00.265,version=DEVEL-SNAPSHOT,last=true,status=P,scope=PRJ,path=<null>,depth=0,qualifier=TRK,rootId=<null>,parentId=<null>,rootProjectId=13624,period1Mode=previous_analysis,period2Mode=days,period3Mode=days,period4Mode=<null>,period5Mode=<null>,period1Param=2011-08-12,period2Param=7,period3Param=30,period4Param=<null>,period5Param=<null>,period1Date=2011-08-12 07:02:57.09,period2Date=2011-08-10 08:15:00.265,period3Date=2011-07-18 08:15:00.265,period4Date=<null>,period5Date=<null>,id=328344], Snapshot[resourceId=13624,createdAt=2011-08-17 08:14:40.424,version=DEVEL-SNAPSHOT,last=true,status=P,scope=PRJ,path=328326.328327.,depth=2,qualifier=BRC,rootId=328326,parentId=328327,rootProjectId=10977,period1Mode=previous_analysis,period2Mode=days,period3Mode=days,period4Mode=<null>,period5Mode=<null>,period1Param=2011-08-12,period2Param=7,period3Param=30,period4Param=<null>,period5Param=<null>,period1Date=2011-08-12 07:02:57.09,period2Date=2011-08-10 08:14:40.424,period3Date=2011-07-18 08:14:40.424,period4Date=<null>,period5Date=<null>,id=328328]]
      at org.sonar.jpa.session.JpaDatabaseSession.getSingleResult(JpaDatabaseSession.java:194)
      at org.sonar.jpa.session.JpaDatabaseSession.getSingleResult(JpaDatabaseSession.java:212)
      at org.sonar.batch.ProjectConfigurator.isLatestAnalysis(ProjectConfigurator.java:106)
      at org.sonar.batch.ProjectConfigurator.configure(ProjectConfigurator.java:83)
      at org.sonar.batch.ProjectConfigurator.configure(ProjectConfigurator.java:78)
      at org.sonar.batch.ProjectTree.doStart(ProjectTree.java:81)
      at org.sonar.batch.ProjectTree.start(ProjectTree.java:58)
      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.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)
      ... 38 more

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              freddy.mallet Freddy Mallet (Inactive)
              Reporter:
              dmgorriz David Mata Górriz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: