Mule + ZenDesk: error message: "null (java.lang.UnsupportedOperationException). The message payload is of the type: ZendeskConnector $ 1"

I think this is some kind of general MuleSoft error message, basically saying that it is either unhappy with the input or output, but I made the easiest stream that I can, and as far as I know, there are no parameters to go over.

The testing I'm trying to do is:

HTTP -> ZenDesk/ListTickets -> Set Payload ("hello world")

Things I looked at:

  • I am using global configuration and the connection is checking
  • I use my password (against security token)
  • If I make the wrong password, I get 401, as expected, the same if I use my key instead
  • I have admin / API privs in ZenDesk
  • I can use the REST API from the browser
  • " " , . doc
  • ,
  • ZenDesk SetPayload Set Payload

:

null (java.lang.UnsupportedOperationException). Message payload is of type: ZendeskConnector$1

:

Message               : null (java.lang.UnsupportedOperationException). Message payload is of type: ZendeskConnector$1
Code                  : MULE_ERROR--2
--------------------------------------------------------------------------------
Exception stack is:
1. null (java.lang.UnsupportedOperationException)
  org.mule.modules.utils.pagination.PaginatedCollection:84 (null)
2. null (java.lang.UnsupportedOperationException). Message payload is of type: ZendeskConnector$1 (org.mule.api.MessagingException)
  org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor:35 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html)
--------------------------------------------------------------------------------
Root Exception stack trace:
java.lang.UnsupportedOperationException
    at org.mule.modules.utils.pagination.PaginatedCollection.toArray(PaginatedCollection.java:84)
    at com.mulesoft.mule.debugger.response.ObjectFieldDefinitionFactory.create(ObjectFieldDefinitionFactory.java:51)
    at com.mulesoft.mule.debugger.response.ObjectFieldDefinitionFactory.createFromObject(ObjectFieldDefinitionFactory.java:133)
    + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)

XML Mule Flow: ( )

<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns:zendesk="http://www.mulesoft.org/schema/mule/zendesk"
    xmlns:data-mapper="http://www.mulesoft.org/schema/mule/ee/data-mapper"
    xmlns="http://www.mulesoft.org/schema/mule/core"
    xmlns:json="http://www.mulesoft.org/schema/mule/json"
    xmlns:http="http://www.mulesoft.org/schema/mule/http"
    xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
    xmlns:spring="http://www.springframework.org/schema/beans"
    xmlns:core="http://www.mulesoft.org/schema/mule/core"
    version="EE-3.4.1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.mulesoft.org/schema/mule/http  http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
 http://www.mulesoft.org/schema/mule/solr/1.0.0/mule-solr.xsd
http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd
http://www.mulesoft.org/schema/mule/ee/data-mapper http://www.mulesoft.org/schema/mule/ee/data-mapper/current/mule-data-mapper.xsd
http://www.mulesoft.org/schema/mule/zendesk http://www.mulesoft.org/schema/mule/zendesk/1.0/mule-zendesk.xsd">

    <zendesk:config name="Zendesk" username="my.name@my-company.com" password="password-not-security-token" apiUrl="https://my-company.zendesk.com/api/v2/" doc:name="Zendesk">
        <zendesk:connection-pooling-profile initialisationPolicy="INITIALISE_ONE" exhaustedAction="WHEN_EXHAUSTED_GROW"/>
    </zendesk:config>

    <flow name="my_flow" doc:name="my_flow">
        <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" path="zendesk" doc:name="HTTP"/>
        <zendesk:list-tickets config-ref="Zendesk" doc:name="Zendesk" />
        <set-payload value="Hello World" doc:name="Set Payload"/>
    </flow>
</mule>
+4
1

... msg zendesk - , , , , ...

+1

Source: https://habr.com/ru/post/1537802/


All Articles