Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-17885

Integration with OData (v2 only) connector is not able to start

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • fuse-7.10-GA
    • fuse-7.10-GA
    • Fuse Online
    • None
    • False
    • False
    • % %
    • Todo

    Description

      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.

      Attachments

        Activity

          People

            zregvart@redhat.com Zoran Regvart
            mkralik@redhat.com Matej Kralik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: