-
Bug
-
Resolution: Done
-
Blocker
-
fuse-7.10-GA
-
None
-
False
-
False
-
%
-
Todo
-
On AR9 build, a simple OData (v2) integration ( Read from OData -> Log) is not able to start and there is the following error in the integration log:
2021-11-24 11:39:08.551 WARN 1 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gsonBuilder' defined in class path resource [org/springframework/boot/autoconfigure/gson/GsonAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.google.gson.GsonBuilder]: Factory method 'gsonBuilder' threw exception; nested exception is java.lang.BootstrapMethodError: java.lang.NoSuchMethodError: com.google.gson.GsonBuilder.setLenient()Lcom/google/gson/GsonBuilder; 2021-11-24 11:39:08.551 INFO 1 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2021-11-24 11:39:08.573 INFO 1 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2021-11-24 11:39:08.607 ERROR 1 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: An attempt was made to call a method that does not exist. The attempt was made from the following location: java.lang.invoke.MethodHandleNatives.resolve(Native Method) The following method did not exist: com.google.gson.GsonBuilder.setLenient()Lcom/google/gson/GsonBuilder; The method's class, com.google.gson.GsonBuilder, is available from the following locations: jar:file:/deployments/project-0.1-SNAPSHOT.jar!/BOOT-INF/lib/gson-2.4.jar!/com/google/gson/GsonBuilder.class The class hierarchy was loaded from the following locations: com.google.gson.GsonBuilder: jar:file:/deployments/project-0.1-SNAPSHOT.jar!/BOOT-INF/lib/gson-2.4.jar!/ Action: Correct the classpath of your application so that it contains a single, compatible version of com.google.gson.GsonBuilder
Not reproducible on AR8 build.
Also, the same integration which uses OData v4 works correctly.