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

Sonar 3.2 expects CPD.class

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 3.2
    • Fix Version/s: None
    • Component/s: Duplications
    • Environment:
      linux (RHEL)

      Description

      [INFO] [sonar:sonar

      {execution: default-sonar}

      ]
      [INFO] [18:39:02.580] Create JDBC datasource to url jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true
      [INFO] [18:39:03.471] Initializing Hibernate
      [INFO] [18:39:05.042] ------------- Analyzing sonarsample
      [FATAL ERROR] org.sonar.maven.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.sonar:sonar-maven-plugin:3.2]
      urls[0] = file:/app/scm/.m2/repository/org/codehaus/sonar/sonar-maven-plugin/3.2/sonar-maven-plugin-3.2.jar
      urls[1] = file:/app/scm/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
      urls[2] = file:/app/scm/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
      urls[3] = file:/app/scm/.m2/repository/org/codehaus/sonar/sonar-batch/3.2/sonar-batch-3.2.jar
      urls[4] = file:/app/scm/.m2/repository/org/codehaus/sonar/sonar-core/3.2/sonar-core-3.2.jar
      urls[5] = file:/app/scm/.m2/repository/org/codehaus/sonar/sonar-plugin-api/3.2/sonar-plugin-api-3.2.jar
      urls[6] = file:/app/scm/.m2/repository/org/codehaus/sonar/sonar-check-api/3.2/sonar-check-api-3.2.jar
      urls[7] = file:/app/scm/.m2/repository/org/codehaus/sonar/sonar-colorizer/3.2/sonar-colorizer-3.2.jar
      urls[8] = file:/app/scm/.m2/repository/com/google/guava/guava/10.0.1/guava-10.0.1.jar
      urls[9] = file:/app/scm/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
      urls[10] = file:/app/scm/.m2/repository/org/codehaus/sonar/sonar-channel/3.2/sonar-channel-3.2.jar
      urls[11] = file:/app/scm/.m2/repository/commons-io/commons-io/2.0.1/commons-io-2.0.1.jar
      urls[12] = file:/app/scm/.m2/repository/org/slf4j/slf4j-api/1.6.2/slf4j-api-1.6.2.jar
      urls[13] = file:/app/scm/.m2/repository/org/codehaus/sonar/sonar-duplications/3.2/sonar-duplications-3.2.jar
      urls[14] = file:/app/scm/.m2/repository/org/codehaus/sonar/sonar-graph/3.2/sonar-graph-3.2.jar
      urls[15] = file:/app/scm/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
      urls[16] = file:/app/scm/.m2/repository/org/codehaus/sonar/sonar-squid/3.2/sonar-squid-3.2.jar
      urls[17] = file:/app/scm/.m2/repository/org/picocontainer/picocontainer/2.14.1/picocontainer-2.14.1.jar
      urls[18] = file:/app/scm/.m2/repository/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar
      urls[19] = file:/app/scm/.m2/repository/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar
      urls[20] = file:/app/scm/.m2/repository/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar
      urls[21] = file:/app/scm/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
      urls[22] = file:/app/scm/.m2/repository/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar
      urls[23] = file:/app/scm/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar
      urls[24] = file:/app/scm/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
      urls[25] = file:/app/scm/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar
      urls[26] = file:/app/scm/.m2/repository/commons-beanutils/commons-beanutils/1.8.3/commons-beanutils-1.8.3.jar
      urls[27] = file:/app/scm/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar
      urls[28] = file:/app/scm/.m2/repository/jfree/jfreechart/1.0.9/jfreechart-1.0.9.jar
      urls[29] = file:/app/scm/.m2/repository/jfree/jcommon/1.0.12/jcommon-1.0.12.jar
      urls[30] = file:/app/scm/.m2/repository/org/slf4j/jcl-over-slf4j/1.6.2/jcl-over-slf4j-1.6.2.jar
      urls[31] = file:/app/scm/.m2/repository/org/slf4j/log4j-over-slf4j/1.6.2/log4j-over-slf4j-1.6.2.jar
      urls[32] = file:/app/scm/.m2/repository/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar
      urls[33] = file:/app/scm/.m2/repository/xpp3/xpp3/1.1.3.3/xpp3-1.1.3.3.jar
      urls[34] = file:/app/scm/.m2/repository/org/codehaus/woodstox/woodstox-core-lgpl/4.0.4/woodstox-core-lgpl-4.0.4.jar
      urls[35] = file:/app/scm/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
      urls[36] = file:/app/scm/.m2/repository/org/codehaus/woodstox/stax2-api/3.0.1/stax2-api-3.0.1.jar
      urls[37] = file:/app/scm/.m2/repository/org/codehaus/staxmate/staxmate/2.0.0/staxmate-2.0.0.jar
      urls[38] = file:/app/scm/.m2/repository/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar
      urls[39] = file:/app/scm/.m2/repository/xalan/xalan/2.7.1/xalan-2.7.1.jar
      urls[40] = file:/app/scm/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar
      urls[41] = file:/app/scm/.m2/repository/org/mybatis/mybatis/3.1.1/mybatis-3.1.1.jar
      urls[42] = file:/app/scm/.m2/repository/org/codehaus/sonar/sonar-update-center-common/1.3/sonar-update-center-common-1.3.jar
      urls[43] = file:/app/scm/.m2/repository/org/hibernate/hibernate-core/3.3.2.GA/hibernate-core-3.3.2.GA.jar
      urls[44] = file:/app/scm/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar
      urls[45] = file:/app/scm/.m2/repository/org/hibernate/hibernate-entitymanager/3.4.0.GA/hibernate-entitymanager-3.4.0.GA.jar
      urls[46] = file:/app/scm/.m2/repository/javassist/javassist/3.4.GA/javassist-3.4.GA.jar
      urls[47] = file:/app/scm/.m2/repository/geronimo-spec/geronimo-spec-jta/1.0-M1/geronimo-spec-jta-1.0-M1.jar
      urls[48] = file:/app/scm/.m2/repository/org/hibernate/hibernate-ehcache/3.3.2.GA/hibernate-ehcache-3.3.2.GA.jar
      urls[49] = file:/app/scm/.m2/repository/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar
      urls[50] = file:/app/scm/.m2/repository/commons-dbcp/commons-dbcp/1.3/commons-dbcp-1.3.jar
      urls[51] = file:/app/scm/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar
      urls[52] = file:/app/scm/.m2/repository/org/codehaus/plexus/plexus-classworlds/2.2.3/plexus-classworlds-2.2.3.jar
      urls[53] = file:/app/scm/.m2/repository/ch/qos/logback/logback-classic/0.9.30/logback-classic-0.9.30.jar
      urls[54] = file:/app/scm/.m2/repository/ch/qos/logback/logback-core/0.9.30/logback-core-0.9.30.jar
      urls[55] = file:/app/scm/.m2/repository/org/codehaus/sonar/sonar-deprecated/3.2/sonar-deprecated-3.2.jar
      urls[56] = file:/app/scm/.m2/repository/org/codehaus/sonar/sonar-java-api/3.2/sonar-java-api-3.2.jar
      [FATAL ERROR] Container realm = plexus.core
      urls[0] = file:/app/tools/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]
      urls[0] = file:/app/scm/.m2/repository/org/codehaus/mojo/sonar-maven-plugin/1.0/sonar-maven-plugin-1.0.jar
      urls[1] = file:/app/scm/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.1/plexus-utils-1.4.1.jar
      [FATAL ERROR] Container realm = plexus.core
      urls[0] = file:/app/tools/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] org/sonar/duplications/cpd/CPD
      org.sonar.duplications.cpd.CPD
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      java.lang.NoClassDefFoundError: org/sonar/duplications/cpd/CPD
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
      at java.lang.Class.getDeclaredMethods(Class.java:1791)
      at org.picocontainer.injectors.AdaptingInjection$1.run(AdaptingInjection.java:203)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.picocontainer.injectors.AdaptingInjection.injectionMethodAnnotated(AdaptingInjection.java:200)
      at org.picocontainer.injectors.AdaptingInjection.methodAnnotatedInjectionAdapter(AdaptingInjection.java:171)
      at org.picocontainer.injectors.AdaptingInjection.createComponentAdapter(AdaptingInjection.java:70)
      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:536)
      at org.picocontainer.DefaultPicoContainer.access$300(DefaultPicoContainer.java:80)
      at org.picocontainer.DefaultPicoContainer$AsPropertiesPicoContainer.addComponent(DefaultPicoContainer.java:1142)
      at org.sonar.api.platform.ComponentContainer.addComponent(ComponentContainer.java:92)
      at org.sonar.api.platform.ComponentContainer.addSingleton(ComponentContainer.java:84)
      at org.sonar.batch.bootstrap.Module.addCoreSingleton(Module.java:115)
      at org.sonar.batch.bootstrap.ProjectExtensionInstaller.installExtension(ProjectExtensionInstaller.java:86)
      at org.sonar.batch.bootstrap.ProjectExtensionInstaller.install(ProjectExtensionInstaller.java:59)
      at org.sonar.batch.bootstrap.ProjectModule.addProjectPluginExtensions(ProjectModule.java:109)
      at org.sonar.batch.bootstrap.ProjectModule.configure(ProjectModule.java:60)
      at org.sonar.batch.bootstrap.Module.init(Module.java:49)
      at org.sonar.batch.bootstrap.Module.installChild(Module.java:70)
      at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:129)
      at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:121)
      at org.sonar.batch.bootstrap.Module.start(Module.java:83)
      at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:121)
      at org.sonar.batch.bootstrap.Module.start(Module.java:83)
      at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:73)
      at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:60)
      at org.sonar.maven.SonarMojo.execute(SonarMojo.java:150)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
      at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:98)
      at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:79)
      at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:88)
      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: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: java.lang.ClassNotFoundException: org.sonar.duplications.cpd.CPD
      at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
      ... 53 more
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 5 seconds
      [INFO] Finished at: Wed Oct 03 18:39:05 IST 2012
      [INFO] Final Memory: 40M/1214M
      [INFO] ------------------------------------------------------------------------
      Sonar analysis completed: FAILURE
      Build step 'Sonar' changed build result to FAILURE
      Build step 'Sonar' marked build as failure
      Finished: FAILURE

        Attachments

          Activity

            People

            Assignee:
            freddy.mallet Freddy Mallet (Inactive)
            Reporter:
            jeyanthi Jeyanthi B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: