0
我已經通過參考文檔創建了wso2 twitter連接器的示例項目。 Twitter Connector DocumentationWso2 ESB twitter連接器不工作
代理配置如下
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="twitter-connector-proxy"
transports="https,http"
statistics="enable"
trace="enable"
startOnLoad="true">
<target>
<inSequence>
<log level="custom">
<property name="INIT" value="************ init proxy *************"/>
</log>
<twitter.search configKey="twitter_init">
<search>cricket</search>
</twitter.search>
<log level="full">
<property name="RESULT" value="***************** Twitter Search Result ***************"/>
</log>
<respond/>
</inSequence>
<outSequence/>
<faultSequence/>
</target>
<description/>
</proxy>
而本地條目如下
<twitter.init xmlns="http://ws.apache.org/ns/synapse">
<consumerKey>***</consumerKey>
<consumerSecret>***</consumerSecret>
<accessToken>***</accessToken>
<accessTokenSecret>****</accessTokenSecret>
</twitter.init>
我還進口了Twitter的證書ESB客戶端密鑰庫。當我測試代理時,我收到以下錯誤日誌。
2015-08-25 14:16:47,679 Executing fault handler mediator : org.apache.synapse.mediators.base.SequenceMediator More
2015-08-25 14:16:47,677 FaultHandler executing impl: org.apache.synapse.mediators.MediatorFaultHandler More
2015-08-25 14:16:47,676 Suspending endpoint : AnonymousEndpoint - last suspend duration was : 30000ms and current suspend duration is : 30000ms - Next retry after : Tue Aug 25 14:17:17 IST 2015 More
2015-08-25 14:16:47,675 Endpoint : AnonymousEndpoint will be marked SUSPENDED as it failed More
2015-08-25 14:16:47,674 FaultHandler : AnonymousEndpoint More
2015-08-25 14:16:47,674 ERROR_EXCEPTION : javax.net.ssl.SSLHandshakeException: General SSLEngine problem More
2015-08-25 14:16:47,673 ERROR_DETAIL : javax.net.ssl.SSLHandshakeException: General SSLEngine problem More
2015-08-25 14:16:47,672 ERROR_MESSAGE : Error in Sender More
2015-08-25 14:16:47,671 ERROR_CODE : 101500 More
2015-08-25 14:16:47,027 INIT = ************ init proxy ************* More
2015-08-25 14:10:55,951 Successfully created the Axis2 service for Proxy service : twitter-connector-proxy
也許你是一個公司的代理/防火牆後面? –