2017-05-26 57 views
0

我嘗試使用Mule創建一個簡單的應用程序。無論如何,當我選擇操作「授權」時,我得到了錯誤。但如果我選擇另一個操作,它工作正常! enter image description here騾子Dropbox連接器無法選擇有效的操作

我有騾子Server版本= 「CE-3.8.1」,並使用Anypoint Studio版本:6.2.5

完整的XML配置:

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

<mule xmlns:json="http://www.mulesoft.org/schema/mule/json" xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:dropbox="http://www.mulesoft.org/schema/mule/dropbox" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" 
    xmlns:spring="http://www.springframework.org/schema/beans" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="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/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd 
http://www.mulesoft.org/schema/mule/dropbox http://www.mulesoft.org/schema/mule/dropbox/current/mule-dropbox.xsd 
http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd 
http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd"> 
    <http:listener-config name="HTTP_Listener_Configuration8881" host="localhost" port="8881" doc:name="HTTP Listener Configuration"/> 
    <dropbox:config name="Dropbox1" appKey="ovy1i8ak8u43t87" appSecret="7jlhpdzeyddi8d5" doc:name="Dropbox"> 
     <dropbox:oauth-callback-config domain="localhost" localPort="8881" remotePort="8881" path="callback"/> 
    </dropbox:config> 
    <http:request-config name="HTTP_Request_Configuration" host="www.mulesoft.com" port="80" doc:name="HTTP Request Configuration"/> 
    <flow name="dropbox_integration2Flow"> 
     <http:listener config-ref="HTTP_Listener_Configuration8881" path="/authorize" doc:name="HTTP"/> 
     <dropbox:unauthorize config-ref="Dropbox1" doc:name="Dropbox - authorize"/> 
    </flow> 
    <flow name="dropbox_integration2Flow1"> 
     <http:listener config-ref="HTTP_Listener_Configuration8881" path="/" doc:name="HTTP"/> 
     <dropbox:create-folder config-ref="Dropbox1" path="/mule" doc:name="Dropbox - create"/> 
     <http:request config-ref="HTTP_Request_Configuration" path="/sites/default/files/3C_mulesoft_logo_updated.svg" method="GET" doc:name="HTTP"/> 
     <dropbox:upload-stream config-ref="Dropbox1" filename="mulelogo.png" path="/mule" doc:name="Dropbox - upload"/> 
     <dropbox:get-link config-ref="Dropbox1" path="/mule/mulelogo.png" doc:name="Dropbox - get link"/> 
     <json:object-to-json-transformer doc:name="Object to JSON"/> 
    </flow> 
</mule> 

有什麼原因?如何解決它?

+0

你可以嘗試重新啓動APS嗎? – RamakrishnaN

+0

@RamakrishnaN我做了,但仍然得到相同的錯誤。 –

回答

0

它似乎是舊的Mule Dropbox雲連接器Mule Studio Extension 3.3.0(2013)中的一個錯誤。你在用那個嗎?如果你是,我建議你使用最新的可用版本,Dropbox連接器3.3.3(2015),它修復了錯誤。

+0

我正在使用最新的Dropbox連接器版本:3.3.3(運行時版本:3.5) –

+0

這很奇怪。我只能在3.3.0中重現它。你能分享你的應用程序的XML嗎? – CountD

+0

我編輯我的帖子。我添加了XML配置。 –