Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mule 未能调用updateStatus。消息负载的类型为:String_Mule_Esb_Mule Studio - Fatal编程技术网

Mule 未能调用updateStatus。消息负载的类型为:String

Mule 未能调用updateStatus。消息负载的类型为:String,mule,esb,mule-studio,Mule,Esb,Mule Studio,我刚从Mule开始,我用twitter 我正在使用mule3.5我从创建新的示例项目开始然后是Hello world 现在我使用的是twitter,当我使用show user时,一切看起来都正常,我得到了Json对象,但当我更新状态时,我得到了以下错误消息: Failed to invoke updateStatus. Message payload is of type: String 这是我的XML <flow name="TwitterUserID" doc:name="Twit

我刚从
Mule
开始,我用
twitter

我正在使用
mule3.5
我从创建
新的示例项目开始
然后是
Hello world

现在我使用的是
twitter
,当我使用
show user
时,一切看起来都正常,我得到了Json对象,但当我更新状态时,我得到了以下错误消息:

 Failed to invoke updateStatus. Message payload is of type: String
这是我的XML

<flow name="TwitterUserID" doc:name="TwitterUserID">
    <http:inbound-endpoint exchange-pattern="request-response"
        host="localhost" port="8081" doc:name="HTTP"
        doc:description="This endpoint receives an HTTP message." />
    <object-to-string-transformer doc:name="Object to String"/>
    <twitter:update-status config-ref="Twitter" doc:name="Twitter" status="This is from
        Mule "/>
    <json:object-to-json-transformer doc:name="Object to JSON"/>
</flow>


问题是我需要更改对twitter应用程序的读写权限

  • 转到应用程序页面
  • 背景
  • 检查:
  • Root Exception stack trace:
    twitter4j.internal.org.json.JSONException: JSONObject["text"] not found.
    at twitter4j.internal.org.json.JSONObject.get(JSONObject.java:395)
    at twitter4j.internal.org.json.JSONObject.getString(JSONObject.java:509)
    at twitter4j.internal.json.StatusJSONImpl.init(StatusJSONImpl.java:166)
    + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
    ********************************************************************************
    
    WARN  2014-01-27 08:57:13,406 [[hello-world].connector.http.mule.default.receiver.02] 
    org.apache.commons.httpclient.HttpMethodDirector: Unable to respond to any of these 
      challenges: {oauth=OAuth realm="https://api.twitter.com"}
    ERROR 2014-01-27 08:57:13,409 [[hello-world].connector.http.mule.default.receiver.02] 
    org.mule.retry.notifiers.ConnectNotifier: Failed to connect/reconnect: Work Descriptor.     
    Root Exception was: JSONObject["text"] not found.. Type: class 
    twitter4j.internal.org.json.JSONException
    
    ERROR 2014-01-27 08:57:13,412 [[hello-world].connector.http.mule.default.receiver.02] 
    org.mule.exception.DefaultMessagingExceptionStrategy: 
    ********************************************************************************
    Message               : Failed to invoke updateStatus. Message payload is of type:
      String
    
    Code                  : MULE_ERROR--2
    --------------------------------------------------------------------------------
    Exception stack is:
    1. JSONObject["text"] not found. (twitter4j.internal.org.json.JSONException)
      twitter4j.internal.org.json.JSONObject:395 (null)
    2. JSONObject["text"] not found. (twitter4j.TwitterException)
      twitter4j.internal.json.StatusJSONImpl:172 (null)
    3. Failed to invoke updateStatus. Message payload is of type: String   
    (org.mule.api.MessagingException)
    
      org.mule.twitter.processors.UpdateStatusMessageProcessor:175 
    
    --------------------------------------------------------------------------------
    Root Exception stack trace:
    twitter4j.internal.org.json.JSONException: JSONObject["text"] not found.
    at twitter4j.internal.org.json.JSONObject.get(JSONObject.java:395)
    at twitter4j.internal.org.json.JSONObject.getString(JSONObject.java:509)
    at twitter4j.internal.json.StatusJSONImpl.init(StatusJSONImpl.java:166)
    + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)