Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8737

camel-salesforce - Unable to generate DTOs for Filtered Lookup fields

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      Get the following exception:

      Caused by: org.apache.maven.plugin.MojoExecutionException: Error getting SObject description for 'Account_Request__c': Can not deserialize instance of java.lang.String out of START_ARRAY token
      at [Source: java.io.ByteArrayInputStream@1bd8e9d9; line: 1, column: 36155] (through reference chain: org.apache.camel.component.salesforce.api.dto.SObjectDescription["fields"]>org.apache.camel.component.salesforce.api.dto.SObjectField["filteredLookupInfo"]>org.apache.camel.component.salesforce.ap
      i.dto.FilteredLookupInfo["controllingFields"])
      at org.apache.camel.maven.CamelSalesforceMojo.execute(CamelSalesforceMojo.java:312)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      ... 19 more
      Caused by: org.codehaus.jackson.map.JsonMappingException: Can not deserialize instance of java.lang.String out of START_ARRAY token
      at [Source: java.io.ByteArrayInputStream@1bd8e9d9; line: 1, column: 36155] (through reference chain: org.apache.camel.component.salesforce.api.dto.SObjectDescription["fields"]>org.apache.camel.component.salesforce.api.dto.SObjectField["filteredLookupInfo"]>org.apache.camel.component.salesforce.ap
      i.dto.FilteredLookupInfo["controllingFields"])
      at org.codehaus.jackson.map.JsonMappingException.from(JsonMappingException.java:163)

      Any suggestions what could causing this issue?

      From the looks of it, the class

      public class FilteredLookupInfo extends AbstractDTOBase {

      private String controllingFields;
      ...
      }

      should be

      public class FilteredLookupInfo extends AbstractDTOBase {

      private List controllingFields;
      }

      The type in question has a child relation to another custom object.

      Attachments

        Issue Links

          Activity

            People

              dhirajsb Dhiraj Sureshkumar Bokde
              simondelfab Simon Delfab
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: