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

Exception : javax.persistence.NonUniqueResultException: result returns more than one elements

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.11
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      We are using Hudson 1.323 and Sonar 1.11.

      Description

      Since we updated to sonar 1.11 we get this exception during our hudson build...

      org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
      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:597)
      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)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar
      at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:87)
      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)
      ... 17 more
      Caused by: javax.persistence.NonUniqueResultException: result returns more than one elements
      at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:109)
      at org.sonar.api.database.DatabaseSession.getSingleResult(DatabaseSession.java:161)
      at org.sonar.api.database.DatabaseSession.getSingleResult(DatabaseSession.java:174)
      at org.sonar.batch.DefaultSensorContext.createResource(DefaultSensorContext.java:317)
      at org.sonar.batch.DefaultSensorContext.saveSnapshot(DefaultSensorContext.java:304)
      at org.sonar.batch.DefaultSensorContext.saveSource(DefaultSensorContext.java:194)
      at org.sonar.api.batch.AbstractSourceImporter.parseDirs(AbstractSourceImporter.java:80)
      at org.sonar.api.batch.AbstractSourceImporter.analyse(AbstractSourceImporter.java:71)
      at org.sonar.api.batch.AbstractSourceImporter.analyse(AbstractSourceImporter.java:63)
      at org.sonar.batch.core.SensorsExecutor.execute(SensorsExecutor.java:59)
      at org.sonar.batch.Batch.executeJobs(Batch.java:91)
      at org.sonar.batch.Batch.analyse(Batch.java:79)
      at org.sonar.batch.Batch.start(Batch.java:54)
      at org.sonar.batch.BatchMojo.executeBatch(BatchMojo.java:138)
      at org.sonar.batch.BatchMojo.execute(BatchMojo.java:130)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
      at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82)
      ... 21 more

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              freddy.mallet Freddy Mallet (Inactive)
              Reporter:
              knisterpeter Markus Wolf
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: