[richfaces-issues] [JBoss JIRA] (RF-13247) Upgrade the RichFaces guava dependency to version 15.0

Brian Leathem (JIRA) issues at jboss.org
Fri Dec 13 18:06:32 EST 2013


    [ https://issues.jboss.org/browse/RF-13247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931315#comment-12931315 ] 

Brian Leathem commented on RF-13247:
------------------------------------

Upgrading from to Guava 15 requires migrating from MapMaker to CacheBuilder.  This is fairly straightforward as described in the article:
https://code.google.com/p/guava-libraries/wiki/MapMakerMigration

After performing the migration I am getting a build-time failure, despite synchornizing the guava (and sisu-guice) libraries between the CDK and the framework:

{code}
[ERROR] Failed to execute goal org.richfaces.cdk:maven-richfaces-resources-plugin:4.3.5-SNAPSHOT:process (packed-resources) on project static-resources: Execution packed-resources of goal org.richfaces.cdk:maven-richfaces-resources-plugin:4.3.5-SNAPSHOT:process failed: An API incompatibility was encountered while executing org.richfaces.cdk:maven-richfaces-resources-plugin:4.3.5-SNAPSHOT:process: java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache;
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.richfaces.cdk:maven-richfaces-resources-plugin:4.3.5-SNAPSHOT
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/bleathem/.m2/repository/org/richfaces/cdk/maven-richfaces-resources-plugin/4.3.5-SNAPSHOT/maven-richfaces-resources-plugin-4.3.5-SNAPSHOT.jar
[ERROR] urls[1] = file:/home/bleathem/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.3.0/sisu-inject-bean-2.3.0.jar
[ERROR] urls[2] = file:/home/bleathem/.m2/repository/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar
[ERROR] urls[3] = file:/home/bleathem/.m2/repository/org/sonatype/sisu/sisu-guava/0.9.9/sisu-guava-0.9.9.jar
[ERROR] urls[4] = file:/home/bleathem/.m2/repository/org/sonatype/aether/aether-util/1.13.1/aether-util-1.13.1.jar
[ERROR] urls[5] = file:/home/bleathem/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[6] = file:/home/bleathem/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[7] = file:/home/bleathem/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[8] = file:/home/bleathem/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[9] = file:/home/bleathem/.m2/repository/org/apache/maven/maven-archiver/2.4/maven-archiver-2.4.jar
[ERROR] urls[10] = file:/home/bleathem/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-11/plexus-archiver-1.0-alpha-11.jar
[ERROR] urls[11] = file:/home/bleathem/.m2/repository/org/codehaus/plexus/plexus-io/1.0-alpha-3/plexus-io-1.0-alpha-3.jar
[ERROR] urls[12] = file:/home/bleathem/.m2/repository/org/apache/maven/shared/file-management/1.2.1/file-management-1.2.1.jar
[ERROR] urls[13] = file:/home/bleathem/.m2/repository/org/apache/maven/shared/maven-shared-io/1.1/maven-shared-io-1.1.jar
[ERROR] urls[14] = file:/home/bleathem/.m2/repository/junit/junit/4.8.2/junit-4.8.2.jar
[ERROR] urls[15] = file:/home/bleathem/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar
[ERROR] urls[16] = file:/home/bleathem/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.jar
[ERROR] urls[17] = file:/home/bleathem/.m2/repository/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar
[ERROR] urls[18] = file:/home/bleathem/.m2/repository/commons-collections/commons-collections/2.0/commons-collections-2.0.jar
[ERROR] urls[19] = file:/home/bleathem/.m2/repository/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar
[ERROR] urls[20] = file:/home/bleathem/.m2/repository/velocity/velocity/1.4/velocity-1.4.jar
[ERROR] urls[21] = file:/home/bleathem/.m2/repository/velocity/velocity-dep/1.4/velocity-dep-1.4.jar
[ERROR] urls[22] = file:/home/bleathem/.m2/repository/org/reflections/reflections/0.9.5/reflections-0.9.5.jar
[ERROR] urls[23] = file:/home/bleathem/.m2/repository/javassist/javassist/3.12.1.GA/javassist-3.12.1.GA.jar
[ERROR] urls[24] = file:/home/bleathem/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar
[ERROR] urls[25] = file:/home/bleathem/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
[ERROR] urls[26] = file:/home/bleathem/.m2/repository/com/google/guava/guava/15.0/guava-15.0.jar
[ERROR] urls[27] = file:/home/bleathem/.m2/repository/javax/el/el-api/1.0/el-api-1.0.jar
[ERROR] urls[28] = file:/home/bleathem/.m2/repository/com/sun/el/el-ri/1.0/el-ri-1.0.jar
[ERROR] urls[29] = file:/home/bleathem/workspace/richfaces/richfaces4/core/impl/target/richfaces-core-impl-4.3.5-SNAPSHOT.jar
[ERROR] urls[30] = file:/home/bleathem/workspace/richfaces/richfaces4/core/api/target/richfaces-core-api-4.3.5-SNAPSHOT.jar
[ERROR] urls[31] = file:/home/bleathem/.m2/repository/net/sourceforge/cssparser/cssparser/0.9.5/cssparser-0.9.5.jar
[ERROR] urls[32] = file:/home/bleathem/.m2/repository/org/w3c/css/sac/1.3/sac-1.3.jar
[ERROR] urls[33] = file:/home/bleathem/.m2/repository/com/yahoo/platform/yui/yuicompressor/2.3.6/yuicompressor-2.3.6.jar
[ERROR] urls[34] = file:/home/bleathem/.m2/repository/org/glassfish/javax.faces/2.1.19/javax.faces-2.1.19.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR] 
[ERROR] -----------------------------------------------------
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :static-resources
{code}
                
> Upgrade the RichFaces guava dependency to version 15.0
> ------------------------------------------------------
>
>                 Key: RF-13247
>                 URL: https://issues.jboss.org/browse/RF-13247
>             Project: RichFaces
>          Issue Type: Component  Upgrade
>      Security Level: Public(Everyone can see) 
>          Components: third-party
>            Reporter: Jeremy Landis
>            Assignee: Brian Leathem
>            Priority: Minor
>             Fix For: 4.3.5
>
>   Original Estimate: 15 minutes
>  Remaining Estimate: 15 minutes
>
> Upgrading to guava 15 from 14.0.1 causes this richfaces error.  I have not looked into this further but wanted to put it out there as an issue.
> Caused by: java.lang.IllegalAccessError: tried to access method com.google.common.collect.MapMaker.makeComputingMap(Lcom/google/common/base/Function;)Ljava/util/concurrent/ConcurrentMap; from class org.richfaces.resource.ResourceLibraryFactoryImpl

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list