Mule Facebook无效负载

Mule Facebook无效负载,facebook,oauth,mule,payload,Facebook,Oauth,Mule,Payload,被要求评估购买Mulesoft并制作连接到facebook的演示。下面是两个示例: 及 第一个示例遇到问题-无法编译,因为http连接器的端点与facebook连接器相同。我做了一些研究并做了一些更改,但现在我发现了下面的错误,并且找不到其他有同样经历的人: 无法获取访问令牌消息有效负载的类型为:NullPayload-这在回调页面上。有人经历过吗 这是我的密码: <http:listener-config name="HTTP_Listener_Configuration" h

被要求评估购买Mulesoft并制作连接到facebook的演示。下面是两个示例:

第一个示例遇到问题-无法编译,因为http连接器的端点与facebook连接器相同。我做了一些研究并做了一些更改,但现在我发现了下面的错误,并且找不到其他有同样经历的人:

无法获取访问令牌<代码>消息有效负载的类型为:NullPayload-这在回调页面上。有人经历过吗

这是我的密码:

    <http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8099" doc:name="HTTP Listener Configuration"/>
<facebook:config-with-oauth name="Facebook-config" consumerKey="..." consumerSecret="..." scope="user_photos" doc:name="Facebook">
    <facebook:oauth-callback-config domain="localhost" localPort="8099" remotePort="8099" path="callback"/>
</facebook:config-with-oauth>
<http:listener-config name="HTTP_Listener_Configuration1" host="localhost" port="8094" doc:name="HTTP Listener Configuration"/>
<flow name="Authorize">
    <http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP"/>
    <facebook:authorize config-ref="Facebook-config" doc:name="Facebook"/>
    <set-session-variable variableName="accessTokenID" value="#[flowVars['OAuthAccessTokenId']]" doc:name="Save Access Token"/>
    <flow-ref name="PhotoDownload" doc:name="Call Photo Download"/>
</flow>
<flow name="PhotoDownload">
    <http:listener config-ref="HTTP_Listener_Configuration1" path="/" doc:name="HTTP"/>
    <not-filter doc:name="Not">
        <wildcard-filter pattern="/favicon.ico" caseSensitive="false"/>
    </not-filter>
    <facebook:get-user-picture config-ref="Facebook-config" user="me" accessTokenId="#[sessionVars['accessTokenId']]" doc:name="Get Profile Picture"/>
    <file:outbound-endpoint path="c:\temp" outputPattern="profilepic.jpg" responseTimeout="10000" doc:name="Save The Picture "/>
    <json:object-to-json-transformer doc:name="Object to JSON"/>
</flow>

以下是堆栈跟踪:

ERROR 2015-06-10 13:47:07,731 [[internalfacebook].HTTP_Listener_Configuration.worker.01] org mule exception DefaultMessagingExceptionStrategy: ******************************************************************************** Message : Unable to fetch access token. Message payload is of type: NullPayload Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. unable to find valid certification path to requested target (sun.security.provider.certpath.SunCertPathBuilderException) sun.security.provider.certpath SunCertPathBuilder:-1 (null) 2. PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target (sun.security.validator ValidatorException) sun.security.validator PKIXValidator:-1 (null) 3. sun.security.validator ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target (javax net ssl SSLHandshakeException) sun security ssl Alerts:-1 ( java.sun com/j2ee/sdk_1.3/techdocs/api/javax/net/ssl/SSLHandshakeException html) 4. Error found while consuming http resource at https(colonslashslash) graph facebook com/oauth/access_token (java.lang.RuntimeException) org.mule security oauth util HttpUtilImpl:93 (null) 5. Unable to fetch access token. Message payload is of type: NullPayload (org mule api MessagingException) org.mule.security.oauth.processor.OAuth2FetchAccessTokenMessageProcessor:95 ( wwwmulesoftrog docs site current3 apidocs org mule api MessagingException html) -------------------------------------------------------------------------------- Root Exception stack trace: sun.security.provider certpath SunCertPathBuilderException: unable to find valid certification path to requested target at sun security provider certpath SunCertPathBuilder engineBuild(Unknown Source) at java.security cert CertPathBuilder build(Unknown Source) at sun.security validator PKIXValidator doBuild(Unknown Source) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ******************************************************************************** INFO 2015-06-10 13:47:08,183 [[internalfacebook].HTTP_Listener_Configuration.worker.01] org mule module http internal listener HttpListenerRegistry: No listener found for request: (GET)/favicon ico INFO 2015-06-10 13:47:08,184 [[internalfacebook].HTTP_Listener_Configuration.worker.01] org mule module http internal listener HttpListenerRegistry: Available listeners are: [(*)/callback/, (*)/] 错误2015-06-10 13:47:07731[[internalfacebook].HTTP\u Listener\u Configuration.worker.01]组织mule异常DefaultMessaginExceptionStrategy: ******************************************************************************** 消息:无法获取访问令牌。消息负载的类型为:NullPayload 代码:MULE_错误--2 -------------------------------------------------------------------------------- 异常堆栈是: 1.找不到请求目标的有效证书路径(sun.security.provider.certpath.SunCertPathBuilderException) sun.security.provider.certpath SunCertPathBuilder:-1(空) 2.PKIX路径生成失败:sun.security.provider.certpath.SunCertPathBuilderException:找不到请求目标的有效证书路径(sun.security.validator-ValidatorException) sun.security.validator PKIXValidator:-1(空) 3.sun.security.validator validator validator异常:PKIX路径生成失败:sun.security.provider.certpath.SunCertPathBuilderException:找不到请求目标的有效证书路径(javax net ssl SSLHandshakeException) sun安全ssl警报:-1(java.sun com/j2ee/sdk_1.3/techdocs/api/javax/net/ssl/SSLHandshakeException html) 4.在https(colonslash)图形facebook com/oauth/access_令牌(java.lang.RuntimeException)上使用http资源时发现错误 org.mule security oauth util HttpUtilImpl:93(空) 5.无法获取访问令牌。消息负载的类型为:NullPayload(org mule api MessaginException) org.mule.security.oauth.processor.OAuth2FetchAccessTokenMessageProcessor:95(wwwmulesoftrog文档站点current3 apidocs org mule api消息异常html) -------------------------------------------------------------------------------- 根异常堆栈跟踪: sun.security.provider certpath SunCertPathBuilderException:找不到请求目标的有效证书路径 在sun安全提供程序certpath sun CertPathBuilder engineBuild上(未知源) 在java.security证书CertPathBuilder构建时(未知源) 位于sun.security validator PKIXValidator doBuild(未知源) +3个以上(为所有内容设置调试级别日志或“-Dmule.verbose.exceptions=true”) ******************************************************************************** INFO 2015-06-10 13:47:08183[[internalfacebook].HTTP_Listener_Configuration.worker.01]org mule模块HTTP内部侦听器httplistener注册表:找不到请求的侦听器:(GET)/favicon ico INFO 2015-06-10 13:47:08184[[internalfacebook].HTTP_Listener_Configuration.worker.01]org mule module HTTP internal Listener httplistener注册表:可用的侦听器有:[(*)/callback/,(*)/]
一些事情可能会有所帮助。首先,确保你的FB应用程序和Mule FB配置在“范围”上匹配,例如“电子邮件、公共档案、用户朋友”

此外,我还通过创建一个全局HTTP元素作为回调解决了部分问题。回调HTTP路径需要为“/*”。然后在OAuth选项卡下的Authorization FB组件中,我将回调HTTP名称作为HTTP连接器引用

<facebook:oauth-callback-config domain="localhost"
        localPort="5000" remotePort="5000" connector-ref="callback"></facebook:oauth-callback-config>
</facebook:config-with-oauth>
<http:listener-config name="callback" host="0.0.0.0"
    port="5000" basePath="/*" doc:name="HTTP Listener Configuration" />


你能显示完整的堆栈跟踪吗?@DavidDossot-谢谢-添加了堆栈跟踪-不得不稍微弄坏它-不能包含更多urls@DavidDossot-再次感谢!