Quantcast

commons-beanutils again

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

commons-beanutils again

Markus Wolf
Hi there,

I have a problem with commons-beanutils again.
We use jenkins to execute sonar and since update to 3.1 there is a NoClassdefFoundError for org/apache/commons/beanutils/Converter.
Googling this, I saw that it happens not only to me. So I've checked that our repository (nexus) has an up to date version and afterwards removed commons-beanutils from our jenkins local repository.

The next build failed again. Then I extended the file limits to 50000 as stated in the FAQ. No help...
The next thing was to look into the commons-beanutils jar file (version 1.8.3) as required by sonar. And this does contain the Converter class.

I guess there is something else strange going on here. Below is a dump of the console output from the build where the plexus container (or sonar) prints out the classpath and there is no commons-beanutils in there.

Can anyone help me resolve this? I do not want to modify the poms of sonar-squid... :-/

[INFO] [09:51:03.863] Sensor SquidSensor...
[INFO] [09:51:03.882] Java AST scan...
[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.1]
urls[0] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-maven-plugin/3.1/sonar-maven-plugin-3.1.jar
urls[1] = file:/usr/share/tomcat7/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
urls[2] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
urls[3] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-batch/3.1/sonar-batch-3.1.jar
urls[4] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-core/3.1/sonar-core-3.1.jar
urls[5] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-plugin-api/3.1/sonar-plugin-api-3.1.jar
urls[6] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-check-api/3.1/sonar-check-api-3.1.jar
urls[7] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-colorizer/3.1/sonar-colorizer-3.1.jar
urls[8] = file:/usr/share/tomcat7/.m2/repository/commons-io/commons-io/2.0.1/commons-io-2.0.1.jar
urls[9] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-channel/3.1/sonar-channel-3.1.jar
urls[10] = file:/usr/share/tomcat7/.m2/repository/org/slf4j/slf4j-api/1.6.2/slf4j-api-1.6.2.jar
urls[11] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-duplications/3.1/sonar-duplications-3.1.jar
urls[12] = file:/usr/share/tomcat7/.m2/repository/com/google/guava/guava/10.0.1/guava-10.0.1.jar
urls[13] = file:/usr/share/tomcat7/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
urls[14] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-graph/3.1/sonar-graph-3.1.jar
urls[15] = file:/usr/share/tomcat7/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
urls[16] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-squid/3.1/sonar-squid-3.1.jar
urls[17] = file:/usr/share/tomcat7/.m2/repository/org/picocontainer/picocontainer/2.14.1/picocontainer-2.14.1.jar
urls[18] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-annotations/<a href="http://3.4.0.GA/hibernate-annotations-3.4.0.GA.jar
urls[19">3.4.0.GA/hibernate-annotations-3.4.0.GA.jar
urls[19] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/ejb3-persistence/<a href="http://1.0.2.GA/ejb3-persistence-1.0.2.GA.jar
urls[20">1.0.2.GA/ejb3-persistence-1.0.2.GA.jar
urls[20] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-commons-annotations/<a href="http://3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar
urls[21">3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar
urls[21] = file:/usr/share/tomcat7/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
urls[22] = file:/usr/share/tomcat7/.m2/repository/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar
urls[23] = file:/usr/share/tomcat7/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar
urls[24] = file:/usr/share/tomcat7/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
urls[25] = file:/usr/share/tomcat7/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar
urls[26] = file:/usr/share/tomcat7/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar
urls[27] = file:/usr/share/tomcat7/.m2/repository/jfree/jfreechart/1.0.9/jfreechart-1.0.9.jar
urls[28] = file:/usr/share/tomcat7/.m2/repository/jfree/jcommon/1.0.12/jcommon-1.0.12.jar
urls[29] = file:/usr/share/tomcat7/.m2/repository/org/slf4j/jcl-over-slf4j/1.6.2/jcl-over-slf4j-1.6.2.jar
urls[30] = file:/usr/share/tomcat7/.m2/repository/org/slf4j/log4j-over-slf4j/1.6.2/log4j-over-slf4j-1.6.2.jar
urls[31] = file:/usr/share/tomcat7/.m2/repository/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar
urls[32] = file:/usr/share/tomcat7/.m2/repository/xpp3/xpp3/<a href="http://1.1.3.3/xpp3-1.1.3.3.jar
urls[33">1.1.3.3/xpp3-1.1.3.3.jar
urls[33] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/woodstox/woodstox-core-lgpl/4.0.4/woodstox-core-lgpl-4.0.4.jar
urls[34] = file:/usr/share/tomcat7/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
urls[35] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/woodstox/stax2-api/3.0.1/stax2-api-3.0.1.jar
urls[36] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/staxmate/staxmate/2.0.0/staxmate-2.0.0.jar
urls[37] = file:/usr/share/tomcat7/.m2/repository/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar
urls[38] = file:/usr/share/tomcat7/.m2/repository/xalan/xalan/2.7.1/xalan-2.7.1.jar
urls[39] = file:/usr/share/tomcat7/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar
urls[40] = file:/usr/share/tomcat7/.m2/repository/org/mybatis/mybatis/3.0.6/mybatis-3.0.6.jar
urls[41] = file:/usr/share/tomcat7/.m2/repository/org/apache/derby/derby/<a href="http://10.7.1.1/derby-10.7.1.1.jar
urls[42">10.7.1.1/derby-10.7.1.1.jar
urls[42] = file:/usr/share/tomcat7/.m2/repository/org/apache/derby/derbyclient/<a href="http://10.7.1.1/derbyclient-10.7.1.1.jar
urls[43">10.7.1.1/derbyclient-10.7.1.1.jar
urls[43] = file:/usr/share/tomcat7/.m2/repository/org/apache/derby/derbynet/<a href="http://10.7.1.1/derbynet-10.7.1.1.jar
urls[44">10.7.1.1/derbynet-10.7.1.1.jar
urls[44] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-update-center-common/1.1/sonar-update-center-common-1.1.jar
urls[45] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-core/<a href="http://3.3.2.GA/hibernate-core-3.3.2.GA.jar
urls[46">3.3.2.GA/hibernate-core-3.3.2.GA.jar
urls[46] = file:/usr/share/tomcat7/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar
urls[47] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-entitymanager/<a href="http://3.4.0.GA/hibernate-entitymanager-3.4.0.GA.jar
urls[48">3.4.0.GA/hibernate-entitymanager-3.4.0.GA.jar
urls[48] = file:/usr/share/tomcat7/.m2/repository/javassist/javassist/<a href="http://3.4.GA/javassist-3.4.GA.jar
urls[49">3.4.GA/javassist-3.4.GA.jar
urls[49] = file:/usr/share/tomcat7/.m2/repository/geronimo-spec/geronimo-spec-jta/1.0-M1/geronimo-spec-jta-1.0-M1.jar
urls[50] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-ehcache/<a href="http://3.3.2.GA/hibernate-ehcache-3.3.2.GA.jar
urls[51">3.3.2.GA/hibernate-ehcache-3.3.2.GA.jar
urls[51] = file:/usr/share/tomcat7/.m2/repository/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar
urls[52] = file:/usr/share/tomcat7/.m2/repository/commons-dbcp/commons-dbcp/1.3/commons-dbcp-1.3.jar
urls[53] = file:/usr/share/tomcat7/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar
urls[54] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/plexus/plexus-classworlds/2.2.3/plexus-classworlds-2.2.3.jar
urls[55] = file:/usr/share/tomcat7/.m2/repository/ch/qos/logback/logback-classic/0.9.30/logback-classic-0.9.30.jar
urls[56] = file:/usr/share/tomcat7/.m2/repository/ch/qos/logback/logback-core/0.9.30/logback-core-0.9.30.jar
urls[57] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-deprecated/3.1/sonar-deprecated-3.1.jar
urls[58] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-java-api/3.1/sonar-java-api-3.1.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/home/jenkins/tools/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:/usr/share/tomcat7/.m2/repository/org/codehaus/mojo/sonar-maven-plugin/1.0/sonar-maven-plugin-1.0.jar
urls[1] = file:/usr/share/tomcat7/.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:/home/jenkins/tools/Maven_2.2.1/lib/maven-2.2.1-uber.jar

--
Markus Wolf, Technical Director

T +49.172.7393808 | F +49.40.398855-55

SinnerSchrader Deutschland GmbH
Völckersstraße 38, 22765 Hamburg
Amtsgericht Hamburg HRB-Nr. 63663
Geschäftsführer: Matthias Schrader (Sprecher), Holger Blank, 
Thomas Dyckhoff, Blundstone Osterberger, Chris Wallon
Büros: Hamburg, Frankfurt am Main

http://www.sinnerschrader.de | Creating Radical Relationships.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: commons-beanutils again

Markus Wolf
Hi,

I found my problem. Sonar 3.1 does not work with maven 2.x anymore. Running with maven 3.x there is no exception.
This is bad behaviour and should be fixed I think, since there are still old projects not compatible with maven 3.

Regards
Markus

2012/7/12 Markus Wolf <[hidden email]>
Hi there,

I have a problem with commons-beanutils again.
We use jenkins to execute sonar and since update to 3.1 there is a NoClassdefFoundError for org/apache/commons/beanutils/Converter.
Googling this, I saw that it happens not only to me. So I've checked that our repository (nexus) has an up to date version and afterwards removed commons-beanutils from our jenkins local repository.

The next build failed again. Then I extended the file limits to 50000 as stated in the FAQ. No help...
The next thing was to look into the commons-beanutils jar file (version 1.8.3) as required by sonar. And this does contain the Converter class.

I guess there is something else strange going on here. Below is a dump of the console output from the build where the plexus container (or sonar) prints out the classpath and there is no commons-beanutils in there.

Can anyone help me resolve this? I do not want to modify the poms of sonar-squid... :-/

[INFO] [09:51:03.863] Sensor SquidSensor...
[INFO] [09:51:03.882] Java AST scan...
[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.1]
urls[0] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-maven-plugin/3.1/sonar-maven-plugin-3.1.jar
urls[1] = file:/usr/share/tomcat7/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
urls[2] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
urls[3] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-batch/3.1/sonar-batch-3.1.jar
urls[4] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-core/3.1/sonar-core-3.1.jar
urls[5] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-plugin-api/3.1/sonar-plugin-api-3.1.jar
urls[6] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-check-api/3.1/sonar-check-api-3.1.jar
urls[7] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-colorizer/3.1/sonar-colorizer-3.1.jar
urls[8] = file:/usr/share/tomcat7/.m2/repository/commons-io/commons-io/2.0.1/commons-io-2.0.1.jar
urls[9] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-channel/3.1/sonar-channel-3.1.jar
urls[10] = file:/usr/share/tomcat7/.m2/repository/org/slf4j/slf4j-api/1.6.2/slf4j-api-1.6.2.jar
urls[11] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-duplications/3.1/sonar-duplications-3.1.jar
urls[12] = file:/usr/share/tomcat7/.m2/repository/com/google/guava/guava/10.0.1/guava-10.0.1.jar
urls[13] = file:/usr/share/tomcat7/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
urls[14] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-graph/3.1/sonar-graph-3.1.jar
urls[15] = file:/usr/share/tomcat7/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
urls[16] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-squid/3.1/sonar-squid-3.1.jar
urls[17] = file:/usr/share/tomcat7/.m2/repository/org/picocontainer/picocontainer/2.14.1/picocontainer-2.14.1.jar
urls[18] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar
urls[19] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar
urls[20] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar
urls[21] = file:/usr/share/tomcat7/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
urls[22] = file:/usr/share/tomcat7/.m2/repository/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar
urls[23] = file:/usr/share/tomcat7/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar
urls[24] = file:/usr/share/tomcat7/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
urls[25] = file:/usr/share/tomcat7/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar
urls[26] = file:/usr/share/tomcat7/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar
urls[27] = file:/usr/share/tomcat7/.m2/repository/jfree/jfreechart/1.0.9/jfreechart-1.0.9.jar
urls[28] = file:/usr/share/tomcat7/.m2/repository/jfree/jcommon/1.0.12/jcommon-1.0.12.jar
urls[29] = file:/usr/share/tomcat7/.m2/repository/org/slf4j/jcl-over-slf4j/1.6.2/jcl-over-slf4j-1.6.2.jar
urls[30] = file:/usr/share/tomcat7/.m2/repository/org/slf4j/log4j-over-slf4j/1.6.2/log4j-over-slf4j-1.6.2.jar
urls[31] = file:/usr/share/tomcat7/.m2/repository/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar
urls[32] = file:/usr/share/tomcat7/.m2/repository/xpp3/xpp3/1.1.3.3/xpp3-1.1.3.3.jar
urls[33] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/woodstox/woodstox-core-lgpl/4.0.4/woodstox-core-lgpl-4.0.4.jar
urls[34] = file:/usr/share/tomcat7/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
urls[35] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/woodstox/stax2-api/3.0.1/stax2-api-3.0.1.jar
urls[36] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/staxmate/staxmate/2.0.0/staxmate-2.0.0.jar
urls[37] = file:/usr/share/tomcat7/.m2/repository/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar
urls[38] = file:/usr/share/tomcat7/.m2/repository/xalan/xalan/2.7.1/xalan-2.7.1.jar
urls[39] = file:/usr/share/tomcat7/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar
urls[40] = file:/usr/share/tomcat7/.m2/repository/org/mybatis/mybatis/3.0.6/mybatis-3.0.6.jar
urls[41] = file:/usr/share/tomcat7/.m2/repository/org/apache/derby/derby/10.7.1.1/derby-10.7.1.1.jar
urls[42] = file:/usr/share/tomcat7/.m2/repository/org/apache/derby/derbyclient/10.7.1.1/derbyclient-10.7.1.1.jar
urls[43] = file:/usr/share/tomcat7/.m2/repository/org/apache/derby/derbynet/10.7.1.1/derbynet-10.7.1.1.jar
urls[44] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-update-center-common/1.1/sonar-update-center-common-1.1.jar
urls[45] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-core/3.3.2.GA/hibernate-core-3.3.2.GA.jar
urls[46] = file:/usr/share/tomcat7/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar
urls[47] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-entitymanager/3.4.0.GA/hibernate-entitymanager-3.4.0.GA.jar
urls[48] = file:/usr/share/tomcat7/.m2/repository/javassist/javassist/3.4.GA/javassist-3.4.GA.jar
urls[49] = file:/usr/share/tomcat7/.m2/repository/geronimo-spec/geronimo-spec-jta/1.0-M1/geronimo-spec-jta-1.0-M1.jar
urls[50] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-ehcache/3.3.2.GA/hibernate-ehcache-3.3.2.GA.jar
urls[51] = file:/usr/share/tomcat7/.m2/repository/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar
urls[52] = file:/usr/share/tomcat7/.m2/repository/commons-dbcp/commons-dbcp/1.3/commons-dbcp-1.3.jar
urls[53] = file:/usr/share/tomcat7/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar
urls[54] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/plexus/plexus-classworlds/2.2.3/plexus-classworlds-2.2.3.jar
urls[55] = file:/usr/share/tomcat7/.m2/repository/ch/qos/logback/logback-classic/0.9.30/logback-classic-0.9.30.jar
urls[56] = file:/usr/share/tomcat7/.m2/repository/ch/qos/logback/logback-core/0.9.30/logback-core-0.9.30.jar
urls[57] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-deprecated/3.1/sonar-deprecated-3.1.jar
urls[58] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-java-api/3.1/sonar-java-api-3.1.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/home/jenkins/tools/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:/usr/share/tomcat7/.m2/repository/org/codehaus/mojo/sonar-maven-plugin/1.0/sonar-maven-plugin-1.0.jar
urls[1] = file:/usr/share/tomcat7/.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:/home/jenkins/tools/Maven_2.2.1/lib/maven-2.2.1-uber.jar

--
Markus Wolf, Technical Director

T <a href="tel:%2B49.172.7393808" value="+491727393808" target="_blank">+49.172.7393808 | F <a href="tel:%2B49.40.398855-55" value="+494039885555" target="_blank">+49.40.398855-55

SinnerSchrader Deutschland GmbH
Völckersstraße 38, 22765 Hamburg
Amtsgericht Hamburg HRB-Nr. 63663
Geschäftsführer: Matthias Schrader (Sprecher), Holger Blank, 
Thomas Dyckhoff, Blundstone Osterberger, Chris Wallon
Büros: Hamburg, Frankfurt am Main

http://www.sinnerschrader.de | Creating Radical Relationships.




--
Markus Wolf, Technical Director

T +49.172.7393808 | F +49.40.398855-55

SinnerSchrader Deutschland GmbH
Völckersstraße 38, 22765 Hamburg
Amtsgericht Hamburg HRB-Nr. 63663
Geschäftsführer: Matthias Schrader (Sprecher), Holger Blank, 
Thomas Dyckhoff, Blundstone Osterberger, Chris Wallon
Büros: Hamburg, Frankfurt am Main

http://www.sinnerschrader.de | Creating Radical Relationships.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: commons-beanutils again

Evgeny Mandrikov
Hi,

On my side sonar perfectly works with Maven 2.2.1.

On Thu, Jul 12, 2012 at 2:12 PM, Markus Wolf <[hidden email]> wrote:
Hi,

I found my problem. Sonar 3.1 does not work with maven 2.x anymore. Running with maven 3.x there is no exception.
This is bad behaviour and should be fixed I think, since there are still old projects not compatible with maven 3.

Regards
Markus


2012/7/12 Markus Wolf <[hidden email]>
Hi there,

I have a problem with commons-beanutils again.
We use jenkins to execute sonar and since update to 3.1 there is a NoClassdefFoundError for org/apache/commons/beanutils/Converter.
Googling this, I saw that it happens not only to me. So I've checked that our repository (nexus) has an up to date version and afterwards removed commons-beanutils from our jenkins local repository.

The next build failed again. Then I extended the file limits to 50000 as stated in the FAQ. No help...
The next thing was to look into the commons-beanutils jar file (version 1.8.3) as required by sonar. And this does contain the Converter class.

I guess there is something else strange going on here. Below is a dump of the console output from the build where the plexus container (or sonar) prints out the classpath and there is no commons-beanutils in there.

Can anyone help me resolve this? I do not want to modify the poms of sonar-squid... :-/


[INFO] [09:51:03.863] Sensor SquidSensor...
[INFO] [09:51:03.882] Java AST scan...
[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.1]
urls[0] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-maven-plugin/3.1/sonar-maven-plugin-3.1.jar
urls[1] = file:/usr/share/tomcat7/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
urls[2] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
urls[3] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-batch/3.1/sonar-batch-3.1.jar
urls[4] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-core/3.1/sonar-core-3.1.jar
urls[5] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-plugin-api/3.1/sonar-plugin-api-3.1.jar
urls[6] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-check-api/3.1/sonar-check-api-3.1.jar
urls[7] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-colorizer/3.1/sonar-colorizer-3.1.jar
urls[8] = file:/usr/share/tomcat7/.m2/repository/commons-io/commons-io/2.0.1/commons-io-2.0.1.jar
urls[9] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-channel/3.1/sonar-channel-3.1.jar
urls[10] = file:/usr/share/tomcat7/.m2/repository/org/slf4j/slf4j-api/1.6.2/slf4j-api-1.6.2.jar
urls[11] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-duplications/3.1/sonar-duplications-3.1.jar
urls[12] = file:/usr/share/tomcat7/.m2/repository/com/google/guava/guava/10.0.1/guava-10.0.1.jar
urls[13] = file:/usr/share/tomcat7/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
urls[14] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-graph/3.1/sonar-graph-3.1.jar
urls[15] = file:/usr/share/tomcat7/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
urls[16] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-squid/3.1/sonar-squid-3.1.jar
urls[17] = file:/usr/share/tomcat7/.m2/repository/org/picocontainer/picocontainer/2.14.1/picocontainer-2.14.1.jar
urls[18] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar
urls[19] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar
urls[20] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar
urls[21] = file:/usr/share/tomcat7/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
urls[22] = file:/usr/share/tomcat7/.m2/repository/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar
urls[23] = file:/usr/share/tomcat7/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar
urls[24] = file:/usr/share/tomcat7/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
urls[25] = file:/usr/share/tomcat7/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar
urls[26] = file:/usr/share/tomcat7/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar
urls[27] = file:/usr/share/tomcat7/.m2/repository/jfree/jfreechart/1.0.9/jfreechart-1.0.9.jar
urls[28] = file:/usr/share/tomcat7/.m2/repository/jfree/jcommon/1.0.12/jcommon-1.0.12.jar
urls[29] = file:/usr/share/tomcat7/.m2/repository/org/slf4j/jcl-over-slf4j/1.6.2/jcl-over-slf4j-1.6.2.jar
urls[30] = file:/usr/share/tomcat7/.m2/repository/org/slf4j/log4j-over-slf4j/1.6.2/log4j-over-slf4j-1.6.2.jar
urls[31] = file:/usr/share/tomcat7/.m2/repository/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar
urls[32] = file:/usr/share/tomcat7/.m2/repository/xpp3/xpp3/1.1.3.3/xpp3-1.1.3.3.jar
urls[33] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/woodstox/woodstox-core-lgpl/4.0.4/woodstox-core-lgpl-4.0.4.jar
urls[34] = file:/usr/share/tomcat7/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
urls[35] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/woodstox/stax2-api/3.0.1/stax2-api-3.0.1.jar
urls[36] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/staxmate/staxmate/2.0.0/staxmate-2.0.0.jar
urls[37] = file:/usr/share/tomcat7/.m2/repository/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar
urls[38] = file:/usr/share/tomcat7/.m2/repository/xalan/xalan/2.7.1/xalan-2.7.1.jar
urls[39] = file:/usr/share/tomcat7/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar
urls[40] = file:/usr/share/tomcat7/.m2/repository/org/mybatis/mybatis/3.0.6/mybatis-3.0.6.jar
urls[41] = file:/usr/share/tomcat7/.m2/repository/org/apache/derby/derby/10.7.1.1/derby-10.7.1.1.jar
urls[42] = file:/usr/share/tomcat7/.m2/repository/org/apache/derby/derbyclient/10.7.1.1/derbyclient-10.7.1.1.jar
urls[43] = file:/usr/share/tomcat7/.m2/repository/org/apache/derby/derbynet/10.7.1.1/derbynet-10.7.1.1.jar
urls[44] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-update-center-common/1.1/sonar-update-center-common-1.1.jar
urls[45] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-core/3.3.2.GA/hibernate-core-3.3.2.GA.jar
urls[46] = file:/usr/share/tomcat7/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar
urls[47] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-entitymanager/3.4.0.GA/hibernate-entitymanager-3.4.0.GA.jar
urls[48] = file:/usr/share/tomcat7/.m2/repository/javassist/javassist/3.4.GA/javassist-3.4.GA.jar
urls[49] = file:/usr/share/tomcat7/.m2/repository/geronimo-spec/geronimo-spec-jta/1.0-M1/geronimo-spec-jta-1.0-M1.jar
urls[50] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-ehcache/3.3.2.GA/hibernate-ehcache-3.3.2.GA.jar
urls[51] = file:/usr/share/tomcat7/.m2/repository/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar
urls[52] = file:/usr/share/tomcat7/.m2/repository/commons-dbcp/commons-dbcp/1.3/commons-dbcp-1.3.jar
urls[53] = file:/usr/share/tomcat7/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar
urls[54] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/plexus/plexus-classworlds/2.2.3/plexus-classworlds-2.2.3.jar
urls[55] = file:/usr/share/tomcat7/.m2/repository/ch/qos/logback/logback-classic/0.9.30/logback-classic-0.9.30.jar
urls[56] = file:/usr/share/tomcat7/.m2/repository/ch/qos/logback/logback-core/0.9.30/logback-core-0.9.30.jar
urls[57] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-deprecated/3.1/sonar-deprecated-3.1.jar
urls[58] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-java-api/3.1/sonar-java-api-3.1.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/home/jenkins/tools/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:/usr/share/tomcat7/.m2/repository/org/codehaus/mojo/sonar-maven-plugin/1.0/sonar-maven-plugin-1.0.jar
urls[1] = file:/usr/share/tomcat7/.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:/home/jenkins/tools/Maven_2.2.1/lib/maven-2.2.1-uber.jar

--
Markus Wolf, Technical Director

T <a href="tel:%2B49.172.7393808" value="+491727393808" target="_blank">+49.172.7393808 | F <a href="tel:%2B49.40.398855-55" value="+494039885555" target="_blank">+49.40.398855-55

SinnerSchrader Deutschland GmbH
Völckersstraße 38, 22765 Hamburg
Amtsgericht Hamburg HRB-Nr. 63663
Geschäftsführer: Matthias Schrader (Sprecher), Holger Blank, 
Thomas Dyckhoff, Blundstone Osterberger, Chris Wallon
Büros: Hamburg, Frankfurt am Main

http://www.sinnerschrader.de | Creating Radical Relationships.




--
Markus Wolf, Technical Director

T <a href="tel:%2B49.172.7393808" value="+491727393808" target="_blank">+49.172.7393808 | F <a href="tel:%2B49.40.398855-55" value="+494039885555" target="_blank">+49.40.398855-55

SinnerSchrader Deutschland GmbH
Völckersstraße 38, 22765 Hamburg
Amtsgericht Hamburg HRB-Nr. 63663
Geschäftsführer: Matthias Schrader (Sprecher), Holger Blank, 
Thomas Dyckhoff, Blundstone Osterberger, Chris Wallon
Büros: Hamburg, Frankfurt am Main

http://www.sinnerschrader.de | Creating Radical Relationships.




--
Best regards,
Evgeny Mandrikov aka Godin <http://godin.net.ru>
http://twitter.com/_godin_
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: commons-beanutils again

Eric Hartmann-2
Hi,

As Evgeny said, Sonar 3.1 works well with Maven 2.2.1 : most of Nemo analysis (Sonar 3.1.1) are done with Maven 2.2.1 without trouble.
So the root cause is not the usage of Maven 2.2.1.

Which plugins do you have on Sonar ?

Regards,

Eric Hartmann


On 12 July 2012 10:14, Evgeny Mandrikov <[hidden email]> wrote:
Hi,

On my side sonar perfectly works with Maven 2.2.1.


On Thu, Jul 12, 2012 at 2:12 PM, Markus Wolf <[hidden email]> wrote:
Hi,

I found my problem. Sonar 3.1 does not work with maven 2.x anymore. Running with maven 3.x there is no exception.
This is bad behaviour and should be fixed I think, since there are still old projects not compatible with maven 3.

Regards
Markus


2012/7/12 Markus Wolf <[hidden email]>
Hi there,

I have a problem with commons-beanutils again.
We use jenkins to execute sonar and since update to 3.1 there is a NoClassdefFoundError for org/apache/commons/beanutils/Converter.
Googling this, I saw that it happens not only to me. So I've checked that our repository (nexus) has an up to date version and afterwards removed commons-beanutils from our jenkins local repository.

The next build failed again. Then I extended the file limits to 50000 as stated in the FAQ. No help...
The next thing was to look into the commons-beanutils jar file (version 1.8.3) as required by sonar. And this does contain the Converter class.

I guess there is something else strange going on here. Below is a dump of the console output from the build where the plexus container (or sonar) prints out the classpath and there is no commons-beanutils in there.

Can anyone help me resolve this? I do not want to modify the poms of sonar-squid... :-/


[INFO] [09:51:<a href="tel:03.863" value="+333863" target="_blank">03.863] Sensor SquidSensor...
[INFO] [09:51:<a href="tel:03.882" value="+333882" target="_blank">03.882] Java AST scan...
[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.1]
urls[0] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-maven-plugin/3.1/sonar-maven-plugin-3.1.jar
urls[1] = file:/usr/share/tomcat7/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
urls[2] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
urls[3] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-batch/3.1/sonar-batch-3.1.jar
urls[4] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-core/3.1/sonar-core-3.1.jar
urls[5] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-plugin-api/3.1/sonar-plugin-api-3.1.jar
urls[6] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-check-api/3.1/sonar-check-api-3.1.jar
urls[7] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-colorizer/3.1/sonar-colorizer-3.1.jar
urls[8] = file:/usr/share/tomcat7/.m2/repository/commons-io/commons-io/2.0.1/commons-io-2.0.1.jar
urls[9] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-channel/3.1/sonar-channel-3.1.jar
urls[10] = file:/usr/share/tomcat7/.m2/repository/org/slf4j/slf4j-api/1.6.2/slf4j-api-1.6.2.jar
urls[11] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-duplications/3.1/sonar-duplications-3.1.jar
urls[12] = file:/usr/share/tomcat7/.m2/repository/com/google/guava/guava/10.0.1/guava-10.0.1.jar
urls[13] = file:/usr/share/tomcat7/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
urls[14] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-graph/3.1/sonar-graph-3.1.jar
urls[15] = file:/usr/share/tomcat7/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
urls[16] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-squid/3.1/sonar-squid-3.1.jar
urls[17] = file:/usr/share/tomcat7/.m2/repository/org/picocontainer/picocontainer/2.14.1/picocontainer-2.14.1.jar
urls[18] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar
urls[19] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar
urls[20] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar
urls[21] = file:/usr/share/tomcat7/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
urls[22] = file:/usr/share/tomcat7/.m2/repository/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar
urls[23] = file:/usr/share/tomcat7/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar
urls[24] = file:/usr/share/tomcat7/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
urls[25] = file:/usr/share/tomcat7/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar
urls[26] = file:/usr/share/tomcat7/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar
urls[27] = file:/usr/share/tomcat7/.m2/repository/jfree/jfreechart/1.0.9/jfreechart-1.0.9.jar
urls[28] = file:/usr/share/tomcat7/.m2/repository/jfree/jcommon/1.0.12/jcommon-1.0.12.jar
urls[29] = file:/usr/share/tomcat7/.m2/repository/org/slf4j/jcl-over-slf4j/1.6.2/jcl-over-slf4j-1.6.2.jar
urls[30] = file:/usr/share/tomcat7/.m2/repository/org/slf4j/log4j-over-slf4j/1.6.2/log4j-over-slf4j-1.6.2.jar
urls[31] = file:/usr/share/tomcat7/.m2/repository/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar
urls[32] = file:/usr/share/tomcat7/.m2/repository/xpp3/xpp3/1.1.3.3/xpp3-1.1.3.3.jar
urls[33] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/woodstox/woodstox-core-lgpl/4.0.4/woodstox-core-lgpl-4.0.4.jar
urls[34] = file:/usr/share/tomcat7/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
urls[35] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/woodstox/stax2-api/3.0.1/stax2-api-3.0.1.jar
urls[36] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/staxmate/staxmate/2.0.0/staxmate-2.0.0.jar
urls[37] = file:/usr/share/tomcat7/.m2/repository/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar
urls[38] = file:/usr/share/tomcat7/.m2/repository/xalan/xalan/2.7.1/xalan-2.7.1.jar
urls[39] = file:/usr/share/tomcat7/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar
urls[40] = file:/usr/share/tomcat7/.m2/repository/org/mybatis/mybatis/3.0.6/mybatis-3.0.6.jar
urls[41] = file:/usr/share/tomcat7/.m2/repository/org/apache/derby/derby/10.7.1.1/derby-10.7.1.1.jar
urls[42] = file:/usr/share/tomcat7/.m2/repository/org/apache/derby/derbyclient/10.7.1.1/derbyclient-10.7.1.1.jar
urls[43] = file:/usr/share/tomcat7/.m2/repository/org/apache/derby/derbynet/10.7.1.1/derbynet-10.7.1.1.jar
urls[44] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-update-center-common/1.1/sonar-update-center-common-1.1.jar
urls[45] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-core/3.3.2.GA/hibernate-core-3.3.2.GA.jar
urls[46] = file:/usr/share/tomcat7/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar
urls[47] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-entitymanager/3.4.0.GA/hibernate-entitymanager-3.4.0.GA.jar
urls[48] = file:/usr/share/tomcat7/.m2/repository/javassist/javassist/3.4.GA/javassist-3.4.GA.jar
urls[49] = file:/usr/share/tomcat7/.m2/repository/geronimo-spec/geronimo-spec-jta/1.0-M1/geronimo-spec-jta-1.0-M1.jar
urls[50] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-ehcache/3.3.2.GA/hibernate-ehcache-3.3.2.GA.jar
urls[51] = file:/usr/share/tomcat7/.m2/repository/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar
urls[52] = file:/usr/share/tomcat7/.m2/repository/commons-dbcp/commons-dbcp/1.3/commons-dbcp-1.3.jar
urls[53] = file:/usr/share/tomcat7/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar
urls[54] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/plexus/plexus-classworlds/2.2.3/plexus-classworlds-2.2.3.jar
urls[55] = file:/usr/share/tomcat7/.m2/repository/ch/qos/logback/logback-classic/0.9.30/logback-classic-0.9.30.jar
urls[56] = file:/usr/share/tomcat7/.m2/repository/ch/qos/logback/logback-core/0.9.30/logback-core-0.9.30.jar
urls[57] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-deprecated/3.1/sonar-deprecated-3.1.jar
urls[58] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-java-api/3.1/sonar-java-api-3.1.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/home/jenkins/tools/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:/usr/share/tomcat7/.m2/repository/org/codehaus/mojo/sonar-maven-plugin/1.0/sonar-maven-plugin-1.0.jar
urls[1] = file:/usr/share/tomcat7/.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:/home/jenkins/tools/Maven_2.2.1/lib/maven-2.2.1-uber.jar

--
Markus Wolf, Technical Director

T <a href="tel:%2B49.172.7393808" value="+491727393808" target="_blank">+49.172.7393808 | F <a href="tel:%2B49.40.398855-55" value="+494039885555" target="_blank">+49.40.398855-55

SinnerSchrader Deutschland GmbH
Völckersstraße 38, 22765 Hamburg
Amtsgericht Hamburg HRB-Nr. 63663
Geschäftsführer: Matthias Schrader (Sprecher), Holger Blank, 
Thomas Dyckhoff, Blundstone Osterberger, Chris Wallon
Büros: Hamburg, Frankfurt am Main

http://www.sinnerschrader.de | Creating Radical Relationships.




--
Markus Wolf, Technical Director

T <a href="tel:%2B49.172.7393808" value="+491727393808" target="_blank">+49.172.7393808 | F <a href="tel:%2B49.40.398855-55" value="+494039885555" target="_blank">+49.40.398855-55

SinnerSchrader Deutschland GmbH
Völckersstraße 38, 22765 Hamburg
Amtsgericht Hamburg HRB-Nr. 63663
Geschäftsführer: Matthias Schrader (Sprecher), Holger Blank, 
Thomas Dyckhoff, Blundstone Osterberger, Chris Wallon
Büros: Hamburg, Frankfurt am Main

http://www.sinnerschrader.de | Creating Radical Relationships.




--
Best regards,
Evgeny Mandrikov aka Godin <http://godin.net.ru>
http://twitter.com/_godin_

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: commons-beanutils again

Markus Wolf
Hi Eric,

we have Emma, Groovy, JavaScript, Jira, LDAP, PAM, Web, Xml, Checkstyle, Cobertura, Core, Database Cleaner, Design, Duplications, Email notifications, English Pack, Findbugs, JaCoCo, PMD, Squid for Java, Surefire.

After I update all our projects to Maven 3.x they all work fine again. So this was not a real problem for us.



2012/7/12 Eric Hartmann <[hidden email]>
Hi,

As Evgeny said, Sonar 3.1 works well with Maven 2.2.1 : most of Nemo analysis (Sonar 3.1.1) are done with Maven 2.2.1 without trouble.
So the root cause is not the usage of Maven 2.2.1.

Which plugins do you have on Sonar ?

Regards,

Eric Hartmann



On 12 July 2012 10:14, Evgeny Mandrikov <[hidden email]> wrote:
Hi,

On my side sonar perfectly works with Maven 2.2.1.


On Thu, Jul 12, 2012 at 2:12 PM, Markus Wolf <[hidden email]> wrote:
Hi,

I found my problem. Sonar 3.1 does not work with maven 2.x anymore. Running with maven 3.x there is no exception.
This is bad behaviour and should be fixed I think, since there are still old projects not compatible with maven 3.

Regards
Markus


2012/7/12 Markus Wolf <[hidden email]>
Hi there,

I have a problem with commons-beanutils again.
We use jenkins to execute sonar and since update to 3.1 there is a NoClassdefFoundError for org/apache/commons/beanutils/Converter.
Googling this, I saw that it happens not only to me. So I've checked that our repository (nexus) has an up to date version and afterwards removed commons-beanutils from our jenkins local repository.

The next build failed again. Then I extended the file limits to 50000 as stated in the FAQ. No help...
The next thing was to look into the commons-beanutils jar file (version 1.8.3) as required by sonar. And this does contain the Converter class.

I guess there is something else strange going on here. Below is a dump of the console output from the build where the plexus container (or sonar) prints out the classpath and there is no commons-beanutils in there.

Can anyone help me resolve this? I do not want to modify the poms of sonar-squid... :-/

[INFO] [09:51:<a href="tel:03.863" value="+333863" target="_blank">03.863] Sensor SquidSensor...
[INFO] [09:51:<a href="tel:03.882" value="+333882" target="_blank">03.882] Java AST scan...
[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.1]
urls[0] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-maven-plugin/3.1/sonar-maven-plugin-3.1.jar
urls[1] = file:/usr/share/tomcat7/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
urls[2] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
urls[3] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-batch/3.1/sonar-batch-3.1.jar
urls[4] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-core/3.1/sonar-core-3.1.jar
urls[5] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-plugin-api/3.1/sonar-plugin-api-3.1.jar
urls[6] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-check-api/3.1/sonar-check-api-3.1.jar
urls[7] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-colorizer/3.1/sonar-colorizer-3.1.jar
urls[8] = file:/usr/share/tomcat7/.m2/repository/commons-io/commons-io/2.0.1/commons-io-2.0.1.jar
urls[9] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-channel/3.1/sonar-channel-3.1.jar
urls[10] = file:/usr/share/tomcat7/.m2/repository/org/slf4j/slf4j-api/1.6.2/slf4j-api-1.6.2.jar
urls[11] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-duplications/3.1/sonar-duplications-3.1.jar
urls[12] = file:/usr/share/tomcat7/.m2/repository/com/google/guava/guava/10.0.1/guava-10.0.1.jar
urls[13] = file:/usr/share/tomcat7/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
urls[14] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-graph/3.1/sonar-graph-3.1.jar
urls[15] = file:/usr/share/tomcat7/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
urls[16] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-squid/3.1/sonar-squid-3.1.jar
urls[17] = file:/usr/share/tomcat7/.m2/repository/org/picocontainer/picocontainer/2.14.1/picocontainer-2.14.1.jar
urls[18] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar
urls[19] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar
urls[20] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar
urls[21] = file:/usr/share/tomcat7/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
urls[22] = file:/usr/share/tomcat7/.m2/repository/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar
urls[23] = file:/usr/share/tomcat7/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar
urls[24] = file:/usr/share/tomcat7/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
urls[25] = file:/usr/share/tomcat7/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar
urls[26] = file:/usr/share/tomcat7/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar
urls[27] = file:/usr/share/tomcat7/.m2/repository/jfree/jfreechart/1.0.9/jfreechart-1.0.9.jar
urls[28] = file:/usr/share/tomcat7/.m2/repository/jfree/jcommon/1.0.12/jcommon-1.0.12.jar
urls[29] = file:/usr/share/tomcat7/.m2/repository/org/slf4j/jcl-over-slf4j/1.6.2/jcl-over-slf4j-1.6.2.jar
urls[30] = file:/usr/share/tomcat7/.m2/repository/org/slf4j/log4j-over-slf4j/1.6.2/log4j-over-slf4j-1.6.2.jar
urls[31] = file:/usr/share/tomcat7/.m2/repository/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar
urls[32] = file:/usr/share/tomcat7/.m2/repository/xpp3/xpp3/1.1.3.3/xpp3-1.1.3.3.jar
urls[33] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/woodstox/woodstox-core-lgpl/4.0.4/woodstox-core-lgpl-4.0.4.jar
urls[34] = file:/usr/share/tomcat7/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
urls[35] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/woodstox/stax2-api/3.0.1/stax2-api-3.0.1.jar
urls[36] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/staxmate/staxmate/2.0.0/staxmate-2.0.0.jar
urls[37] = file:/usr/share/tomcat7/.m2/repository/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar
urls[38] = file:/usr/share/tomcat7/.m2/repository/xalan/xalan/2.7.1/xalan-2.7.1.jar
urls[39] = file:/usr/share/tomcat7/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar
urls[40] = file:/usr/share/tomcat7/.m2/repository/org/mybatis/mybatis/3.0.6/mybatis-3.0.6.jar
urls[41] = file:/usr/share/tomcat7/.m2/repository/org/apache/derby/derby/10.7.1.1/derby-10.7.1.1.jar
urls[42] = file:/usr/share/tomcat7/.m2/repository/org/apache/derby/derbyclient/10.7.1.1/derbyclient-10.7.1.1.jar
urls[43] = file:/usr/share/tomcat7/.m2/repository/org/apache/derby/derbynet/10.7.1.1/derbynet-10.7.1.1.jar
urls[44] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-update-center-common/1.1/sonar-update-center-common-1.1.jar
urls[45] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-core/3.3.2.GA/hibernate-core-3.3.2.GA.jar
urls[46] = file:/usr/share/tomcat7/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar
urls[47] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-entitymanager/3.4.0.GA/hibernate-entitymanager-3.4.0.GA.jar
urls[48] = file:/usr/share/tomcat7/.m2/repository/javassist/javassist/3.4.GA/javassist-3.4.GA.jar
urls[49] = file:/usr/share/tomcat7/.m2/repository/geronimo-spec/geronimo-spec-jta/1.0-M1/geronimo-spec-jta-1.0-M1.jar
urls[50] = file:/usr/share/tomcat7/.m2/repository/org/hibernate/hibernate-ehcache/3.3.2.GA/hibernate-ehcache-3.3.2.GA.jar
urls[51] = file:/usr/share/tomcat7/.m2/repository/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar
urls[52] = file:/usr/share/tomcat7/.m2/repository/commons-dbcp/commons-dbcp/1.3/commons-dbcp-1.3.jar
urls[53] = file:/usr/share/tomcat7/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar
urls[54] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/plexus/plexus-classworlds/2.2.3/plexus-classworlds-2.2.3.jar
urls[55] = file:/usr/share/tomcat7/.m2/repository/ch/qos/logback/logback-classic/0.9.30/logback-classic-0.9.30.jar
urls[56] = file:/usr/share/tomcat7/.m2/repository/ch/qos/logback/logback-core/0.9.30/logback-core-0.9.30.jar
urls[57] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-deprecated/3.1/sonar-deprecated-3.1.jar
urls[58] = file:/usr/share/tomcat7/.m2/repository/org/codehaus/sonar/sonar-java-api/3.1/sonar-java-api-3.1.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/home/jenkins/tools/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:/usr/share/tomcat7/.m2/repository/org/codehaus/mojo/sonar-maven-plugin/1.0/sonar-maven-plugin-1.0.jar
urls[1] = file:/usr/share/tomcat7/.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:/home/jenkins/tools/Maven_2.2.1/lib/maven-2.2.1-uber.jar

--
Markus Wolf, Technical Director

T <a href="tel:%2B49.172.7393808" value="+491727393808" target="_blank">+49.172.7393808 | F <a href="tel:%2B49.40.398855-55" value="+494039885555" target="_blank">+49.40.398855-55

SinnerSchrader Deutschland GmbH
Völckersstraße 38, 22765 Hamburg
Amtsgericht Hamburg HRB-Nr. 63663
Geschäftsführer: Matthias Schrader (Sprecher), Holger Blank, 
Thomas Dyckhoff, Blundstone Osterberger, Chris Wallon
Büros: Hamburg, Frankfurt am Main

http://www.sinnerschrader.de | Creating Radical Relationships.




--
Markus Wolf, Technical Director

T <a href="tel:%2B49.172.7393808" value="+491727393808" target="_blank">+49.172.7393808 | F <a href="tel:%2B49.40.398855-55" value="+494039885555" target="_blank">+49.40.398855-55

SinnerSchrader Deutschland GmbH
Völckersstraße 38, 22765 Hamburg
Amtsgericht Hamburg HRB-Nr. 63663
Geschäftsführer: Matthias Schrader (Sprecher), Holger Blank, 
Thomas Dyckhoff, Blundstone Osterberger, Chris Wallon
Büros: Hamburg, Frankfurt am Main

http://www.sinnerschrader.de | Creating Radical Relationships.




--
Best regards,
Evgeny Mandrikov aka Godin <http://godin.net.ru>
http://twitter.com/_godin_




--
Markus Wolf, Technical Director

T +49.172.7393808 | F +49.40.398855-55

SinnerSchrader Deutschland GmbH
Völckersstraße 38, 22765 Hamburg
Amtsgericht Hamburg HRB-Nr. 63663
Geschäftsführer: Matthias Schrader (Sprecher), Holger Blank, 
Thomas Dyckhoff, Blundstone Osterberger, Chris Wallon
Büros: Hamburg, Frankfurt am Main

http://www.sinnerschrader.de | Creating Radical Relationships.

Loading...