Rackspace cloud file feature was implemented with out project. In the deployment, it gave the no such method. error as following.

java.util.ServiceConfigurationError: org.jclouds.providers.ProviderMetadata: Provider org.jclouds.rackspace.cloudfiles.uk.CloudFilesUKProviderMetadata could not be instantiated: java.lang.NoSuchMethodError: com.google.common.base.Objects.firstNonNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
 at java.util.ServiceLoader.fail(ServiceLoader.java:207)
 at java.util.ServiceLoader.access$100(ServiceLoader.java:164)
 at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:353)

Then I went through all the required libraries and configuration but could not find any missing items. Then I searched on Internet but given suggestion are not helpful. Finally, the decision was to check every libraries in deployment environment which causes to conflicted.

Affected libraries:
checkstyle-5.4-all.jar
compiler.jar

After struggling with all libraries on entire project in many hours, two libraries were found affecting to be conflicted. We removed those jar files since they are no longer required for deployment. Then cloud file feature works successfully.

Then we found out how these libraries affected to be conflicted. These libraries has used class files which were available in google-collect.jar. Later it was renamed with guava and it is developed. Rackspace cloud files uses guava-17.0.jar. It works properly with Rackspace cloud files integration.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s