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

Improve log when loading a plugin that is not compiled for Java 5

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2
    • Component/s: None
    • Labels:
      None

      Description

      It's not possible to know which plugin is compiled to java > 5 :

      16:49:02  [INFO] [sonar:sonar {execution: default-sonar}]
      16:49:04  [INFO] [16:49:06.050] Create JDBC datasource
      16:49:10  [INFO] [16:49:11.770] Initializing Hibernate
      16:54:29  [FATAL ERROR] org.sonar.maven.SonarMojo#execute() caused a linkage error (java.lang.UnsupportedClassVersionError) and may be out-of-date. Check the realms:
      16:54:29  [FATAL ERROR] Plugin realm = app0.child-container[org.codehaus.sonar:sonar-maven-plugin:3.1.1]
      16:54:29  urls[0] = file:/D:/J1/repository/org/codehaus/sonar/sonar-maven-plugin/3.1.1/sonar-maven-plugin-3.1.1.jar
      16:54:29  urls[1] = file:/D:/J1/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
      16:54:29  urls[2] = file:/D:/J1/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
      16:54:29  urls[3] = file:/D:/J1/repository/org/codehaus/sonar/sonar-batch/3.1.1/sonar-batch-3.1.1.jar
      16:54:29  urls[4] = file:/D:/J1/repository/org/codehaus/sonar/sonar-core/3.1.1/sonar-core-3.1.1.jar
      16:54:29  urls[5] = file:/D:/J1/repository/org/codehaus/sonar/sonar-plugin-api/3.1.1/sonar-plugin-api-3.1.1.jar
      16:54:29  urls[6] = file:/D:/J1/repository/org/codehaus/sonar/sonar-check-api/3.1.1/sonar-check-api-3.1.1.jar
      16:54:29  urls[7] = file:/D:/J1/repository/org/codehaus/sonar/sonar-colorizer/3.1.1/sonar-colorizer-3.1.1.jar
      16:54:29  urls[8] = file:/D:/J1/repository/commons-io/commons-io/2.0.1/commons-io-2.0.1.jar
      16:54:29  urls[9] = file:/D:/J1/repository/org/codehaus/sonar/sonar-channel/3.1.1/sonar-channel-3.1.1.jar
      16:54:29  urls[10] = file:/D:/J1/repository/org/slf4j/slf4j-api/1.6.2/slf4j-api-1.6.2.jar
      16:54:29  urls[11] = file:/D:/J1/repository/org/codehaus/sonar/sonar-duplications/3.1.1/sonar-duplications-3.1.1.jar
      16:54:29  urls[12] = file:/D:/J1/repository/com/google/guava/guava/10.0.1/guava-10.0.1.jar
      16:54:29  urls[13] = file:/D:/J1/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
      16:54:29  urls[14] = file:/D:/J1/repository/org/codehaus/sonar/sonar-graph/3.1.1/sonar-graph-3.1.1.jar
      16:54:29  urls[15] = file:/D:/J1/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
      16:54:29  urls[16] = file:/D:/J1/repository/org/codehaus/sonar/sonar-squid/3.1.1/sonar-squid-3.1.1.jar
      16:54:29  urls[17] = file:/D:/J1/repository/org/picocontainer/picocontainer/2.14.1/picocontainer-2.14.1.jar
      16:54:29  urls[18] = file:/D:/J1/repository/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar
      16:54:29  urls[19] = file:/D:/J1/repository/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar
      16:54:29  urls[20] = file:/D:/J1/repository/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar
      16:54:29  urls[21] = file:/D:/J1/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
      16:54:29  urls[22] = file:/D:/J1/repository/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar
      16:54:29  urls[23] = file:/D:/J1/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar
      16:54:29  urls[24] = file:/D:/J1/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
      16:54:29  urls[25] = file:/D:/J1/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar
      16:54:29  urls[26] = file:/D:/J1/repository/commons-beanutils/commons-beanutils/1.8.3/commons-beanutils-1.8.3.jar
      16:54:29  urls[27] = file:/D:/J1/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar
      16:54:29  urls[28] = file:/D:/J1/repository/jfree/jfreechart/1.0.9/jfreechart-1.0.9.jar
      16:54:29  urls[29] = file:/D:/J1/repository/jfree/jcommon/1.0.12/jcommon-1.0.12.jar
      16:54:29  urls[30] = file:/D:/J1/repository/org/slf4j/jcl-over-slf4j/1.6.2/jcl-over-slf4j-1.6.2.jar
      16:54:29  urls[31] = file:/D:/J1/repository/org/slf4j/log4j-over-slf4j/1.6.2/log4j-over-slf4j-1.6.2.jar
      16:54:29  urls[32] = file:/D:/J1/repository/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar
      16:54:29  urls[33] = file:/D:/J1/repository/xpp3/xpp3/1.1.3.3/xpp3-1.1.3.3.jar
      16:54:29  urls[34] = file:/D:/J1/repository/org/codehaus/woodstox/woodstox-core-lgpl/4.0.4/woodstox-core-lgpl-4.0.4.jar
      16:54:29  urls[35] = file:/D:/J1/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
      16:54:29  urls[36] = file:/D:/J1/repository/org/codehaus/woodstox/stax2-api/3.0.1/stax2-api-3.0.1.jar
      16:54:29  urls[37] = file:/D:/J1/repository/org/codehaus/staxmate/staxmate/2.0.0/staxmate-2.0.0.jar
      16:54:29  urls[38] = file:/D:/J1/repository/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar
      16:54:29  urls[39] = file:/D:/J1/repository/xalan/xalan/2.7.1/xalan-2.7.1.jar
      16:54:29  urls[40] = file:/D:/J1/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar
      16:54:29  urls[41] = file:/D:/J1/repository/org/mybatis/mybatis/3.0.6/mybatis-3.0.6.jar
      16:54:29  urls[42] = file:/D:/J1/repository/org/apache/derby/derby/10.7.1.1/derby-10.7.1.1.jar
      16:54:29  urls[43] = file:/D:/J1/repository/org/apache/derby/derbyclient/10.7.1.1/derbyclient-10.7.1.1.jar
      16:54:29  urls[44] = file:/D:/J1/repository/org/apache/derby/derbynet/10.7.1.1/derbynet-10.7.1.1.jar
      16:54:29  urls[45] = file:/D:/J1/repository/org/codehaus/sonar/sonar-update-center-common/1.1/sonar-update-center-common-1.1.jar
      16:54:29  urls[46] = file:/D:/J1/repository/org/hibernate/hibernate-core/3.3.2.GA/hibernate-core-3.3.2.GA.jar
      16:54:29  urls[47] = file:/D:/J1/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar
      16:54:29  urls[48] = file:/D:/J1/repository/org/hibernate/hibernate-entitymanager/3.4.0.GA/hibernate-entitymanager-3.4.0.GA.jar
      16:54:29  urls[49] = file:/D:/J1/repository/javassist/javassist/3.4.GA/javassist-3.4.GA.jar
      16:54:29  urls[50] = file:/D:/J1/repository/geronimo-spec/geronimo-spec-jta/1.0-M1/geronimo-spec-jta-1.0-M1.jar
      16:54:29  urls[51] = file:/D:/J1/repository/org/hibernate/hibernate-ehcache/3.3.2.GA/hibernate-ehcache-3.3.2.GA.jar
      16:54:29  urls[52] = file:/D:/J1/repository/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar
      16:54:29  urls[53] = file:/D:/J1/repository/commons-dbcp/commons-dbcp/1.3/commons-dbcp-1.3.jar
      16:54:29  urls[54] = file:/D:/J1/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar
      16:54:29  urls[55] = file:/D:/J1/repository/org/codehaus/plexus/plexus-classworlds/2.2.3/plexus-classworlds-2.2.3.jar
      16:54:29  urls[56] = file:/D:/J1/repository/ch/qos/logback/logback-classic/0.9.30/logback-classic-0.9.30.jar
      16:54:29  urls[57] = file:/D:/J1/repository/ch/qos/logback/logback-core/0.9.30/logback-core-0.9.30.jar
      16:54:29  urls[58] = file:/D:/J1/repository/org/codehaus/sonar/sonar-deprecated/3.1.1/sonar-deprecated-3.1.1.jar
      16:54:29  urls[59] = file:/D:/J1/repository/org/codehaus/sonar/sonar-java-api/3.1.1/sonar-java-api-3.1.1.jar
      16:54:29  [FATAL ERROR] Container realm = plexus.core
      16:54:29  urls[0] = file:/D:/Tools/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
      16:54:29  [FATAL ERROR] org.codehaus.mojo.sonar.SonarMojo#execute() caused a linkage error (java.lang.UnsupportedClassVersionError) and may be out-of-date. Check the realms:
      16:54:29  [FATAL ERROR] Plugin realm = app0.child-container[org.codehaus.mojo:sonar-maven-plugin:1.0]
      16:54:29  urls[0] = file:/D:/J1/repository/org/codehaus/mojo/sonar-maven-plugin/1.0/sonar-maven-plugin-1.0.jar
      16:54:29  urls[1] = file:/D:/J1/repository/org/codehaus/plexus/plexus-utils/1.4.1/plexus-utils-1.4.1.jar
      16:54:29  [FATAL ERROR] Container realm = plexus.core
      16:54:29  urls[0] = file:/D:/Tools/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
      16:54:29  [INFO] ------------------------------------------------------------------------
      16:54:29  [ERROR] FATAL ERROR
      16:54:29  [INFO] ------------------------------------------------------------------------
      16:54:29  [INFO] Bad version number in .class file
      16:54:29  [INFO] ------------------------------------------------------------------------
      16:54:29  [INFO] Trace
      16:54:29  java.lang.UnsupportedClassVersionError: Bad version number in .class file
      16:54:29  	at java.lang.ClassLoader.defineClass1(Native Method)
      16:54:29  	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
      16:54:29  	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      16:54:29  	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
      16:54:29  	at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
      16:54:29  	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      16:54:29  	at java.security.AccessController.doPrivileged(Native Method)
      16:54:29  	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      16:54:29  	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:386)
      16:54:29  	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
      16:54:29  	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
      16:54:29  	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
      16:54:29  	at org.sonar.core.plugins.PluginClassloaders.instantiatePlugin(PluginClassloaders.java:207)
      16:54:29  	at org.sonar.core.plugins.PluginClassloaders.init(PluginClassloaders.java:89)
      16:54:29  	at org.sonar.batch.bootstrap.BatchPluginRepository.doStart(BatchPluginRepository.java:85)
      16:54:29  	at org.sonar.batch.bootstrap.BatchPluginRepository.start(BatchPluginRepository.java:67)
      16:54:29  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      16:54:29  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      16:54:29  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      16:54:29  	at java.lang.reflect.Method.invoke(Method.java:592)
      16:54:29  	at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)
      16:54:29  	at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)
      16:54:29  	at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
      16:54:29  	at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
      16:54:29  	at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
      16:54:29  	at org.picocontainer.behaviors.Stored.start(Stored.java:110)
      16:54:29  	at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1009)
      16:54:29  	at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1002)
      16:54:29  	at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:760)
      16:54:29  	at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:70)
      16:54:29  	at org.sonar.batch.bootstrap.Module.start(Module.java:82)
      16:54:29  	at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:73)
      16:54:29  	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:60)
      16:54:29  	at org.sonar.maven.SonarMojo.execute(SonarMojo.java:150)
      16:54:29  	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
      16:54:29  	at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:98)
      16:54:29  	at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:79)
      16:54:29  	at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:88)
      16:54:29  	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
      16:54:29  	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
      16:54:29  	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
      16:54:29  	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
      16:54:29  	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
      16:54:29  	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
      16:54:29  	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
      16:54:29  	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
      16:54:29  	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      16:54:29  	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      16:54:29  	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
      16:54:29  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      16:54:29  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      16:54:29  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      16:54:29  	at java.lang.reflect.Method.invoke(Method.java:592)
      16:54:29  	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      16:54:29  	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      16:54:29  	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      16:54:29  	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      16:54:29  [INFO] ------------------------------------------------------------------------
      16:54:29  [INFO] Total time: 5 minutes 30 seconds
      16:54:29  [INFO] Finished at: Mon Jul 23 16:54:30 CEST 2012
      16:54:29  [INFO] Final Memory: 17M/32M
      16:54:29  [INFO] ------------------------------------------------------------------------
      

        Attachments

          Activity

            People

            Assignee:
            simon.brandhof Simon Brandhof (Inactive)
            Reporter:
            simon.brandhof Simon Brandhof (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: