2017-02-04 24 views
1

我在我的api-manager序列中定義了簡單調用中介。但它與錯誤而失敗 - 突觸遇到異常,未發現有錯誤處理 - [消息丟棄]API manager-Call Mediator - Synapse遇到異常,找不到錯誤處理程序

HTTPS-Sender I/O dispatcher-1 >> "[\r][\n]"{org.apache.synapse.transport.http.wire} 
HTTPS-Sender I/O dispatcher-1 >> "[\n]" {org.apache.synapse.transport.http.wire} 
HTTPS-Sender I/O dispatcher-1 >> "  {"Message":"Hello World ! All Ok.."}[\n]" {org.apache.synapse.transport.http.wire} 
HTTPS-Sender I/O dispatcher-1 >> " " {org.apache.synapse.transport.http.wire} 
ERROR {org.apache.synapse.continuation.ContinuationStackManager} - Resource : null not found {org.apache.synapse.continuation.ContinuationStackManager} 
ERROR {org.apache.synapse.core.axis2.SynapseCallbackReceiver} - Synapse encountered an exception, No error handlers found - [Message Dropped] 
Resource : null not found {org.apache.synapse.core.axis2.SynapseCallbackReceiver} 

我的序列如下:

<?xml version="1.0" encoding="UTF-8"?> 
<sequence name="call_mediator_test_in" trace="disable" xmlns="http://ws.apache.org/ns/synapse"> 
    <call> 
     <endpoint> 
      <http method="get" uri-template="https://localhost:8243/inq/v2.0/abcd/100"/> 
     </endpoint> 
    </call> 
    <respond/> 
</sequence> 

請告知什麼是錯的。如何添加錯誤處理程序?

回答

2

在APIM 1.10.0中,這是a known issue

在APIM 2.0.0中,您應該在阻塞模式下使用呼叫中介。

<call blocking="true"> 
+0

你真棒@Bhathiya。你已經救了我的日子!它像魅力一樣工作......非常感謝。 – Pravin