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

Incompatible versions of Gson library in Gson and CouchDB components

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • fuse-7.0
    • jboss-fuse-6.3
    • Camel
    • % %
    • Hide

      Force OSGi container to use newer version of com.google.gson bundle.

      Show
      Force OSGi container to use newer version of com.google.gson bundle.
    • Hide

      1. Install feature camel-chouchdb
      2. Install feature camel-gson
      3. Unmarshall string to object which uses gson annotation @SerializedName

      Show
      1. Install feature camel-chouchdb 2. Install feature camel-gson 3. Unmarshall string to object which uses gson annotation @SerializedName

    Description

      • camel-couchdb - 2.3.1
      • camel-gson - 2.6.2
      Caused by: java.lang.NoSuchMethodError: com.google.gson.annotations.SerializedName.alternate()[Ljava/lang/String;
      	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getFieldName(ReflectiveTypeAdapterFactory.java:81)
      	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getFieldNames(ReflectiveTypeAdapterFactory.java:70)
      	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:155)
      	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:96)
      	at com.google.gson.Gson.getAdapter(Gson.java:416)
      	at com.google.gson.Gson.toJson(Gson.java:653)
      	at com.google.gson.Gson.toJson(Gson.java:640)
      	at com.google.gson.Gson.toJson(Gson.java:615)
      	at org.apache.camel.component.gson.GsonDataFormat.marshal(GsonDataFormat.java:128)
      

      https://github.com/google/gson/commit/109915d93a2b36c26b49c0fabb1947a5a892cb25

      Attachments

        Activity

          People

            acosenti Andrea Cosentino
            mbasovni Martin Basovnik (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: