Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-8203

[fiware-stackoverflow] REST paylod CEP in input event for CEP 5.4.3

    Details

      Description

      Created question in FIWARE Q/A platform on 31-01-2017 at 09:01
      Please, ANSWER this question AT http://stackoverflow.com/questions/41952510/rest-paylod-cep-in-input-event-for-cep-5-4-3

      Question:
      REST paylod CEP in input event for CEP 5.4.3

      Description:
      the last year, I created an example for CEP and it worked.
      My example was very simple; I put 2 params in input events in json format like (http://proton:8080/ProtonOnWebServer/rest/events):

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

      Now I'm trying to run this example and if I use the CEP (version 5.4.3) I've got an error when I try to send the input event, but if I use the old version (3.3.3) is ok.
      The error is:

      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

      Could you suggest me how to write the REST payload in the input event?

      Thank you and best regards,

      Pasquale

        Activity

        backlogmanager Backlog Manager created issue -
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-01-31 12:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-01-31 12:05|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        fla Fernando Lopez made changes -
        HD-Enabler CEP [ 10869 ]
        Description
        Created question in FIWARE Q/A platform on 31-01-2017 at 09:01
        {color: red}Please, ANSWER this question AT{color} http://stackoverflow.com/questions/41952510/rest-paylod-cep-in-input-event-for-cep-5-4-3


        +Question:+
        REST paylod CEP in input event for CEP 5.4.3

        +Description:+
        the last year, I created an example for CEP and it worked.
        My example was very simple; I put 2 params in input events in json format like (http://proton:8080/ProtonOnWebServer/rest/events):

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


        Now I'm trying to run this example and if I use the CEP (version 5.4.3) I've got an error when I try to send the input event, but if I use the old version (3.3.3) is ok.
        The error is:

        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


        Could you suggest me how to write the REST payload in the input event?

        Thank you and best regards,

        Pasquale
        Created question in FIWARE Q/A platform on 31-01-2017 at 09:01
        {color: red}Please, ANSWER this question AT{color} http://stackoverflow.com/questions/41952510/rest-paylod-cep-in-input-event-for-cep-5-4-3


        +Question:+
        REST paylod CEP in input event for CEP 5.4.3

        +Description:+
        the last year, I created an example for CEP and it worked.
        My example was very simple; I put 2 params in input events in json format like (http://proton:8080/ProtonOnWebServer/rest/events):

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


        Now I'm trying to run this example and if I use the CEP (version 5.4.3) I've got an error when I try to send the input event, but if I use the old version (3.3.3) is ok.
        The error is:

        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


        Could you suggest me how to write the REST payload in the input event?

        Thank you and best regards,

        Pasquale
        HD-Chapter Data [ 10838 ]
        fla Fernando Lopez made changes -
        Assignee Santiago Martinez García [ santiago.martinez ]
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-02-02 15:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-02-02 15:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-02-02 18:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-02-02 18:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False
        Hide
        smg Santiago Martinez García added a comment -

        Answered in stackoverflow without further update from user

        Show
        smg Santiago Martinez García added a comment - Answered in stackoverflow without further update from user
        smg Santiago Martinez García made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        2d 3h 1 Backlog Manager 02/Feb/17 3:05 PM
        In Progress In Progress Answered Answered
        3h 1 Backlog Manager 02/Feb/17 6:05 PM
        Answered Answered Closed Closed
        25d 15h 53m 1 Santiago Martinez García 28/Feb/17 9:58 AM

          People

          • Assignee:
            smg Santiago Martinez García
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: