[BAP-218] Artifactory plugin fails to start on Bamboo 5.6.0 (and prevents Bamboo 5.6.0 from starting) Created: 30/Jul/14  Updated: 11/Aug/14  Resolved: 11/Aug/14

Status: Resolved
Project: Bamboo Artifactory Plug-in
Component/s: None
Affects Version/s: 1.7.3
Fix Version/s: 1.7.4

Type: Bug Priority: Critical
Reporter: Grant Gochnauer Assignee: Eyal Ben Moshe (Inactive)
Resolution: Fixed Votes: 0
Labels: None


 Description   

It looks like the version of Guava changed in Bamboo 5.6.0 and so on startup with this plugin installed, there is a NoClassDefFound exception.

org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.bamboo.build.logger.DefaultBuildLoggerManager]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache;
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.bamboo.build.logger.DefaultBuildLoggerManager]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache;
Caused by: java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache;
at com.atlassian.bamboo.build.logger.DefaultBuildLoggerManager.<init>(DefaultBuildLoggerManager.java:37)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)



 Comments   
Comment by Grant Gochnauer [ 30/Jul/14 ]

I recompiled the plugin and only changed this in the pom.xml and now it's loading. Haven't tested it yet

<bamboo.version>5.6.0</bamboo.version>

Comment by Eli Givoni [ 31/Jul/14 ]

there is a snapshot version under http://oss.jfrog.org/artifactory/oss-snapshot-local/org/jfrog/bamboo/bamboo-artifactory-plugin/1.7.x-SNAPSHOT/bamboo-artifactory-plugin-1.7.x-SNAPSHOT.jar

Generated at Sun Oct 20 06:41:37 UTC 2019 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.