2017-01-31 25 views
0

去年,我爲CEP創建了一個例子,它的工作原理。 我的例子很簡單;我把輸入事件2個PARAMS JSON格式一樣(http://proton:8080/ProtonOnWebServer/rest/events):REST paylod CEP輸入事件中的CEP 5.4.3

{ 
    "Name":"InputEvent", 
    "speed":"120", 
    "limit":"100" 
} 

現在我試圖運行這個例子,如果我使用CEP(5.4.3版本),我有一個錯誤時我嘗試發送輸入事件,但如果我使用舊版本(3.3.3)就沒問題。 錯誤是:

SEVERE: Could not parse JSON NGSI event org.apache.wink.json4j.JSONException: The key [data] was not in the map, reason: The key [data] was not in the map 

你可以建議我怎麼寫的輸入事件的REST負載?

謝謝你,最好的問候,

帕斯誇萊

+0

這個問題似乎是在你的json格式:'關鍵[數據]不在地圖中。也許這[鏈接](http://stackoverflow.com/questions/33096357/cep-proton-the-key-was-not-in-the-map-reason-the-key-was-not-in-the-the-地圖)可以幫助你(類似的問題)。你也可以改進你的問題,編輯它添加確切的職位,並獲得信息(你提出的要求)。 – Dalton

回答