cloud-objectstore-java-sample icon indicating copy to clipboard operation
cloud-objectstore-java-sample copied to clipboard

Using JClouds with Spring 2.7.* throws an exception

Open OsaidAlhomedy opened this issue 2 years ago • 1 comments

The following exception is thrown when trying to create a context

Caused by: NoSuchMethodError: 'void ConstructorConstructor.<init>(Map)' at GsonModule.provideGson(GsonModule.java:130) at GsonModule$$FastClassByGuice$$1633583.GUICE$TRAMPOLINE(<generated>) at GsonModule$$FastClassByGuice$$1633583.apply(<generated>) .....

this happens because spring updated the API to use gson 2.9.1 and Jclouds isn't compatible with it yet here is a some details regarding that issue https://issues.apache.org/jira/browse/JCLOUDS-1620

any idea how to fix the issue ?

OsaidAlhomedy avatar Jan 26 '23 14:01 OsaidAlhomedy

Hi,

Thank you for bringing this up and sharing the Jcloud issue with us. As you may already know the application currently uses spring boot 2.6.6. The roadmap for the migration of spring boot 2.7.x is yet to be planned. Hence we suggest you to use the app with spring boot 2.6.6 if its not an issue for you and we should be able to reply your query post the migration.

Best Regards

biswaranjanray avatar Feb 16 '23 09:02 biswaranjanray