无法使用 mulesoft 连接器从 box 或 dropbox 获取访问令牌
Unable to fetch access token from box or dropbox using mulesoft connector
从 github https://github.com/mulesoft/box-connector 导入项目后,我尝试 运行 盒子连接器
项目 运行ning 成功,但在授予权限后,出现以下错误,
无法获取访问令牌。消息负载的类型为:NullPayload
控制台错误:
错误 2015-10-05 13:36:28,731 [[doc-sample].auto-generated-listener-config-0.worker.01] org.mule.exception.DefaultMessagingExceptionStrategy:
消息:无法获取访问令牌。消息负载类型为:NullPayload
类型:org.mule.api.MessagingException
代码:MULE_ERROR--2
Java文档:http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html
有效负载:{NullPayload}
异常堆栈是:
1.空(java.lang.NullPointerException)
org.mule.util.store.PartitionedPersistentObjectStore:105(空)
2. 无法获取访问令牌。消息负载类型为:NullPayload (org.mule.api.MessagingException)
最近我做了一个关于使用 Mule Box 连接器将 Mule ESB 与 Box 集成的 POC,并制作了一个 PPT。只需通过下面的 slidshare PPT 了解更多详情
http://www.slideshare.net/RamakrishnaNarkedami/mule-integration-with-box
同时分享您的 mule 配置 XML 代码以查看问题出在哪里。
它对我来说没有问题。不管怎样,下面是我的工作 POC 代码 XML。尝试一下,注意我使用的是 Mule 3.5.2 运行 时间版本
<box:config name="Box_Global_Connector" clientId="*********"
clientSecret="********" doc:name="Box">
<box:oauth-callback-config domain="localhost"
localPort="8083" path="callback" remotePort="8083" />
</box:config>
<flow name="mule_box_authorize" doc:name="mule_box_authorize">
<http:inbound-endpoint exchange-pattern="request-response"
host="localhost" port="8082" path="createFolder" doc:name="HTTP" />
<logger message="---- Box authorize service triggred" level="INFO"
doc:name="Logger" />
<box:authorize config-ref="Box_Global_Connector"
doc:name="Box_Authorize" />
<box:create-folder config-ref="Box_Global_Connector"
folderName="Sample_Folder_07Oct2015_v2" doc:name="Box_CreateFolder" />
</flow>
<http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8081" doc:name="HTTP Listener Configuration"/>
<flow name="cookbook-helloworldFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP"/>
<component class="com.enkindle.Greeting" doc:name="Java"/>
</flow>
以下代码适用于版本 3.7.2
<http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>
<box:config name="Box" clientId="05zpeboxxfms6fo7805izrxff9dwbc74" clientSecret="LVD5juoF7ookFVn4uN69Pco3NI4EQeE0" doc:name="Box">
<box:oauth-callback-config domain="localhost" localPort="8082" remotePort="8082" path="callback"/>
</box:config>
<objectstore:config name="ObjectStore__Configuration" objectStore-ref="_defaultInMemoryObjectStore" doc:name="ObjectStore: Configuration" />
<flow name="boxAuthenticationFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/auth" doc:name="HTTP"/>
<box:authorize config-ref="Box" doc:name="Box-Authorize" />
</flow>
从 github https://github.com/mulesoft/box-connector 导入项目后,我尝试 运行 盒子连接器 项目 运行ning 成功,但在授予权限后,出现以下错误,
无法获取访问令牌。消息负载的类型为:NullPayload
控制台错误:
错误 2015-10-05 13:36:28,731 [[doc-sample].auto-generated-listener-config-0.worker.01] org.mule.exception.DefaultMessagingExceptionStrategy:
消息:无法获取访问令牌。消息负载类型为:NullPayload 类型:org.mule.api.MessagingException 代码:MULE_ERROR--2 Java文档:http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html 有效负载:{NullPayload}
异常堆栈是: 1.空(java.lang.NullPointerException) org.mule.util.store.PartitionedPersistentObjectStore:105(空) 2. 无法获取访问令牌。消息负载类型为:NullPayload (org.mule.api.MessagingException)
最近我做了一个关于使用 Mule Box 连接器将 Mule ESB 与 Box 集成的 POC,并制作了一个 PPT。只需通过下面的 slidshare PPT 了解更多详情
http://www.slideshare.net/RamakrishnaNarkedami/mule-integration-with-box
同时分享您的 mule 配置 XML 代码以查看问题出在哪里。
它对我来说没有问题。不管怎样,下面是我的工作 POC 代码 XML。尝试一下,注意我使用的是 Mule 3.5.2 运行 时间版本
<box:config name="Box_Global_Connector" clientId="*********"
clientSecret="********" doc:name="Box">
<box:oauth-callback-config domain="localhost"
localPort="8083" path="callback" remotePort="8083" />
</box:config>
<flow name="mule_box_authorize" doc:name="mule_box_authorize">
<http:inbound-endpoint exchange-pattern="request-response"
host="localhost" port="8082" path="createFolder" doc:name="HTTP" />
<logger message="---- Box authorize service triggred" level="INFO"
doc:name="Logger" />
<box:authorize config-ref="Box_Global_Connector"
doc:name="Box_Authorize" />
<box:create-folder config-ref="Box_Global_Connector"
folderName="Sample_Folder_07Oct2015_v2" doc:name="Box_CreateFolder" />
</flow>
<http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8081" doc:name="HTTP Listener Configuration"/>
<flow name="cookbook-helloworldFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP"/>
<component class="com.enkindle.Greeting" doc:name="Java"/>
</flow>
以下代码适用于版本 3.7.2
<http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>
<box:config name="Box" clientId="05zpeboxxfms6fo7805izrxff9dwbc74" clientSecret="LVD5juoF7ookFVn4uN69Pco3NI4EQeE0" doc:name="Box">
<box:oauth-callback-config domain="localhost" localPort="8082" remotePort="8082" path="callback"/>
</box:config>
<objectstore:config name="ObjectStore__Configuration" objectStore-ref="_defaultInMemoryObjectStore" doc:name="ObjectStore: Configuration" />
<flow name="boxAuthenticationFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/auth" doc:name="HTTP"/>
<box:authorize config-ref="Box" doc:name="Box-Authorize" />
</flow>