Jcloud NoSuchMethodError in Rackspace Cloud File implementation

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.jarcompiler.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

Share this:

Like this:

Related

Published by D.Lak

I am Didual Lakshitha from Sri Lanka. Currrently I am an undergraduate in Faculty of Information Technology, Sri Lanka. I am interesting in mobile development. I do cycling and photographing as my hobbies.
View all posts by D.Lak

Post navigation

D.Lak

I am Didula Lakshitha from Sri Lanka. Currently, I'm an undergraduate in University of Moratuwa, Sri Lanka.
I involve in software development. In addition, I do graphic designing like photo editing with Photoshop and 3D animation with Maya and 3D Max. Photography and cycling are my hobbies.