Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-5436

Talend Exception in tLifererayInput component deserializing JSON response

    Details

      Description

      Hi, we found a bug in tLifererayInput component when working with openAPI MODULE PATH /headless-admin-taxonomy/v1.0 and the operation path "/taxonomy-vocabularies/{taxonomyVocabularyId}/taxonomy-categories"

      When we call the method setting the parameter taxomonyVocabularyId with and existent vocabulary id, it seems that the API call is correct, but there is a bug in tLifererayInput component deserializing JSON response.

      The same request executed on a REST Client work correctly and return a valid response.

      The exception is:

      Exception in component tLiferayInput_1 (import_product_hierarchies)
      {{ org.talend.components.api.exception.ComponentException: UNEXPECTED_EXCEPTION}}
      {{     at com.liferay.talend.runtime.reader.LiferayReader.getCurrent(LiferayReader.java:135)}}
      {{     at com.liferay.talend.runtime.reader.LiferayReader.getCurrent(LiferayReader.java:53)}}
      {{     at org.talend.codegen.flowvariables.runtime.FlowVariablesReader.getCurrent(FlowVariablesReader.java:90)}}
      {{     at lfrgs_liferay_sap_connector.import_product_hierarchies_0_1.import_product_hierarchies.tLiferayInput_1Process(import_product_hierarchies.java:6516)}}
      {{     at lfrgs_liferay_sap_connector.import_product_hierarchies_0_1.import_product_hierarchies.tJava_13Process(import_product_hierarchies.java:5025)}}
      {{     at lfrgs_liferay_sap_connector.import_product_hierarchies_0_1.import_product_hierarchies.tJava_12Process(import_product_hierarchies.java:4869)}}
      {{     at lfrgs_liferay_sap_connector.import_product_hierarchies_0_1.import_product_hierarchies.tFileList_4Process(import_product_hierarchies.java:3893)}}
      {{     at lfrgs_liferay_sap_connector.import_product_hierarchies_0_1.import_product_hierarchies.tJava_2Process(import_product_hierarchies.java:2350)}}
      {{     at lfrgs_liferay_sap_connector.import_product_hierarchies_0_1.import_product_hierarchies.runJobInTOS(import_product_hierarchies.java:11054)}}
      {{     at lfrgs_liferay_sap_connector.import_product_hierarchies_0_1.import_product_hierarchies.main(import_product_hierarchies.java:9767)}}
      {{ Caused by: java.lang.ClassCastException: org.glassfish.json.JsonStringImpl cannot be cast to javax.json.JsonObject}}
      {{     at org.glassfish.json.JsonObjectBuilderImpl$JsonObjectImpl.getJsonObject(JsonObjectBuilderImpl.java:242)}}
      {{     at com.liferay.talend.common.json.JsonFinder.getDescendantJsonValue(JsonFinder.java:70)}}
      {{     at com.liferay.talend.avro.JsonObjectIndexedRecordConverter._getJsonValue(JsonObjectIndexedRecordConverter.java:212)}}
      {{     at com.liferay.talend.avro.JsonObjectIndexedRecordConverter.toIndexedRecord(JsonObjectIndexedRecordConverter.java:68)}}
      {{     at com.liferay.talend.runtime.reader.LiferayReader.getCurrent(LiferayReader.java:131)}}
      {

      {     ... 9 more}

      }

        Attachments

          Activity

            People

            Assignee:
            igor.beslic Igor Beslic
            Reporter:
            giovanni.ciganotto Giovanni Ciganotto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                Master