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

FIWARE.Request.Tech.Data.CEP.REST API

    Details

      Description

      Hi all!

      I have defined the folllowing REST Uri:
      http://localhost:8000/ReceiveDbDownEvent.

      I have tested it and it is able to receive the following Json document
      using a POST request:
      {
      "EventId" : "5cf6427d-3138-4321-a17f-859f8205795b",
      "EventSource" : null,
      "Certainty" : 1,
      "DetectionTime" : "1417371848675",
      "OccurrenceTime" : "1417371848675",
      "ExpirationTime" : null,
      "Cost" : 0.0,
      "Annotation" : null,
      "Name" : "DbDown",
      "Chronon" : null,
      "Duration" : 0
      }

      This JSON document is based on the following output from the Catalina log
      file:

      Nov 30, 2014 6:24:08 PM com.ibm.hrl.proton.router.EventRouter
      routeTimedObject
      INFO: routeTimedObject: forwarding event DbDown;
      OccurrenceTime=1417371848675; EventSource=; Certainty=1;
      EventId=5cf6427d-3138-4321-a17f-859f8205795b; DetectionTime=1417371848675;
      Duration=0; ExpirationTime=null; Cost=0.0; Annotation=; Name=DbDown;
      Chronon=null; to consumer.
      ..

      I have also attached a screenshot of my consumer definition, for reference.

      My issue, is that the event DbDown is not received at my defined Uri when
      sent from the Proton instance. There doesn't seem to be any error coming
      from Catalina, yet when I send the POST message myself from Postman, there
      is no issue. I was wondering if there is something I may be missing or
      doing incorrectly that you may be able to help me with?

      With many thanks,

      Chris Paton

      _______________________________________________
      Fiware-tech-help mailing list
      Fiware-tech-help@lists.fi-ware.org
      https://lists.fi-ware.org/listinfo/fiware-tech-help

      [Created via e-mail received from: Chris Paton <chrispaton2005@gmail.com>]

      1. ThesisProject.json
        7 kB
        FW External User
      2. catalina.2014-12-01.log
        5 kB
        FW External User
      3. catalina.2014-11-30.log
        59 kB
        FW External User
      1. Consumer.PNG
        22 kB

        Activity

        Hide
        TALI Fabiana Fournier added a comment -

        Hi Chris,

        Could you please send:
        (1) the CEP definition file (exported from the Web UI)
        (2) the Catalina log file

        Please "reply to all" so I will get it and it will be posted to Jira as
        well.
        Thank you,
        Tali

        Tali Yatzkar Haham
        Event-based Middleware & Solutions
        IBM Haifa Research Lab, Israel
        tali@il.ibm.com 972-4-8296320

        From: "Miguel Carrillo Pacheco (JIRA)" <jira-help-desk@fi-ware.org>
        To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL
        Date: 01/12/2014 11:29 AM
        Subject: [FI-WARE-JIRA] (HELP-1549) [Fiware-tech-help] IBM Proton
        CEP - Unable to receive REST events from Consumer

        [
        http://jira.fi-ware.org/browse/HELP-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
        ]

        Miguel Carrillo Pacheco updated HELP-1549:
        ------------------------------------------

        Assignee: Tali Yatzkar Haham

        Consumer
        -------------------------------------------------------------------------------
        log
        DetectionTime=1417371848675;
        reference.
        when
        there
        <chrispaton2005@gmail.com>]


        This message was sent by Atlassian JIRA
        (v6.1.7#6163)

        Show
        TALI Fabiana Fournier added a comment - Hi Chris, Could you please send: (1) the CEP definition file (exported from the Web UI) (2) the Catalina log file Please "reply to all" so I will get it and it will be posted to Jira as well. Thank you, Tali Tali Yatzkar Haham Event-based Middleware & Solutions IBM Haifa Research Lab, Israel tali@il.ibm.com 972-4-8296320 From: "Miguel Carrillo Pacheco (JIRA)" <jira-help-desk@fi-ware.org> To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL Date: 01/12/2014 11:29 AM Subject: [FI-WARE-JIRA] ( HELP-1549 ) [Fiware-tech-help] IBM Proton CEP - Unable to receive REST events from Consumer [ http://jira.fi-ware.org/browse/HELP-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Miguel Carrillo Pacheco updated HELP-1549 : ------------------------------------------ Assignee: Tali Yatzkar Haham Consumer ------------------------------------------------------------------------------- log DetectionTime=1417371848675; reference. when there <chrispaton2005@gmail.com>] – This message was sent by Atlassian JIRA (v6.1.7#6163)
        Hide
        fw.ext.user FW External User added a comment -

        Hi Tali,

        Please find the attached documents, as requested.

        Thanks,

        Chris

        Show
        fw.ext.user FW External User added a comment - Hi Tali, Please find the attached documents, as requested. Thanks, Chris
        Hide
        TALI Fabiana Fournier added a comment -

        Hi Chris,

        1. Consumer definition - Although in the consumer screen shot the
        formatter is set to json (which is good), in the definition file you
        attached the formatter is set to tag.
        consumers": [
        {
        "name": "Monitor",
        "createdDate": "Sun Nov 30 2014",
        "type": "Rest",
        "properties": [

        { "name": "URL", "value": "http://localhost:8000/ReceiveDbDownEvent " }

        ,

        { "name": "contentType", "value": "application/json" }

        ,

        { "name": "formatter", "value": "tag" }

        ,

        { "name": "delimiter", "value": ";" }

        ,

        { "name": "tagDataSeparator", "value": ":" }

        ,

        { "name": "dateFormat", "value": "dd/MM/yyyy-HH:mm:ss" }

        ],
        "events": [

        { "name": "DbDown" }

        ]
        }
        ],

        This can be the cause of your problem. Maybe you didn't save the project
        after you changed the formatter value.
        After you fix it, you need to export the updated definition to the
        repository, and then to stop and start the engine (either through the REST
        api or by Stop&Restart through Tomcat)

        If it solves the problem that great.
        If not, I would suggest to add another consumer of type File, with a json
        formatter. This way the output event would be written to the file, and you
        will see in the file the exact data that is sent to your other consumer.
        Then you will be able to send exactly the same data to your server through
        Poster. This would help us analyse the issue. Please update me (with reply
        all) on the status.

        Best regards,
        Tali

        Tali Yatzkar Haham
        Event-based Middleware & Solutions
        IBM Haifa Research Lab, Israel
        tali@il.ibm.com 972-4-8296320

        From: Chris Paton <chrispaton2005@gmail.com>
        To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL
        Cc: "Miguel Carrillo Pacheco (JIRA)" <jira-help-desk@fi-ware.org>
        Date: 01/12/2014 01:14 PM
        Subject: Re: [FI-WARE-JIRA] (HELP-1549) [Fiware-tech-help] IBM
        Proton CEP - Unable to receive REST events from Consumer

        Hi Tali,

        Please find the attached documents, as requested.

        Thanks,

        Chris

        On Mon, Dec 1, 2014 at 9:57 AM, Tali Yatzkar-Haham <TALI@il.ibm.com>
        wrote:
        Hi Chris,

        Could you please send:
        (1) the CEP definition file (exported from the Web UI)
        (2) the Catalina log file

        Please "reply to all" so I will get it and it will be posted to Jira as
        well.
        Thank you,
        Tali

        Tali Yatzkar Haham
        Event-based Middleware & Solutions
        IBM Haifa Research Lab, Israel
        tali@il.ibm.com 972-4-8296320

        From: "Miguel Carrillo Pacheco (JIRA)" <jira-help-desk@fi-ware.org>

        To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL
        Date: 01/12/2014 11:29 AM
        Subject: [FI-WARE-JIRA] (HELP-1549) [Fiware-tech-help] IBM Proton
        CEP - Unable to receive REST events from Consumer

        [
        http://jira.fi-ware.org/browse/HELP-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
        ]

        Miguel Carrillo Pacheco updated HELP-1549:
        ------------------------------------------

        Assignee: Tali Yatzkar Haham

        Consumer
        -------------------------------------------------------------------------------
        log
        DetectionTime=1417371848675;
        reference.
        when
        there


        This message was sent by Atlassian JIRA
        (v6.1.7#6163)

        [attachment "ThesisProject.json" deleted by Tali Yatzkar-Haham/Haifa/IBM]
        [attachment "catalina.2014-11-30.log" deleted by Tali
        Yatzkar-Haham/Haifa/IBM] [attachment "catalina.2014-12-01.log" deleted by
        Tali Yatzkar-Haham/Haifa/IBM]

        Show
        TALI Fabiana Fournier added a comment - Hi Chris, 1. Consumer definition - Although in the consumer screen shot the formatter is set to json (which is good), in the definition file you attached the formatter is set to tag. consumers": [ { "name": "Monitor", "createdDate": "Sun Nov 30 2014", "type": "Rest", "properties": [ { "name": "URL", "value": "http://localhost:8000/ReceiveDbDownEvent " } , { "name": "contentType", "value": "application/json" } , { "name": "formatter", "value": "tag" } , { "name": "delimiter", "value": ";" } , { "name": "tagDataSeparator", "value": ":" } , { "name": "dateFormat", "value": "dd/MM/yyyy-HH:mm:ss" } ], "events": [ { "name": "DbDown" } ] } ], This can be the cause of your problem. Maybe you didn't save the project after you changed the formatter value. After you fix it, you need to export the updated definition to the repository, and then to stop and start the engine (either through the REST api or by Stop&Restart through Tomcat) If it solves the problem that great. If not, I would suggest to add another consumer of type File, with a json formatter. This way the output event would be written to the file, and you will see in the file the exact data that is sent to your other consumer. Then you will be able to send exactly the same data to your server through Poster. This would help us analyse the issue. Please update me (with reply all) on the status. Best regards, Tali Tali Yatzkar Haham Event-based Middleware & Solutions IBM Haifa Research Lab, Israel tali@il.ibm.com 972-4-8296320 From: Chris Paton <chrispaton2005@gmail.com> To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL Cc: "Miguel Carrillo Pacheco (JIRA)" <jira-help-desk@fi-ware.org> Date: 01/12/2014 01:14 PM Subject: Re: [FI-WARE-JIRA] ( HELP-1549 ) [Fiware-tech-help] IBM Proton CEP - Unable to receive REST events from Consumer Hi Tali, Please find the attached documents, as requested. Thanks, Chris On Mon, Dec 1, 2014 at 9:57 AM, Tali Yatzkar-Haham <TALI@il.ibm.com> wrote: Hi Chris, Could you please send: (1) the CEP definition file (exported from the Web UI) (2) the Catalina log file Please "reply to all" so I will get it and it will be posted to Jira as well. Thank you, Tali Tali Yatzkar Haham Event-based Middleware & Solutions IBM Haifa Research Lab, Israel tali@il.ibm.com 972-4-8296320 From: "Miguel Carrillo Pacheco (JIRA)" <jira-help-desk@fi-ware.org> To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL Date: 01/12/2014 11:29 AM Subject: [FI-WARE-JIRA] ( HELP-1549 ) [Fiware-tech-help] IBM Proton CEP - Unable to receive REST events from Consumer [ http://jira.fi-ware.org/browse/HELP-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Miguel Carrillo Pacheco updated HELP-1549 : ------------------------------------------ Assignee: Tali Yatzkar Haham Consumer ------------------------------------------------------------------------------- log DetectionTime=1417371848675; reference. when there – This message was sent by Atlassian JIRA (v6.1.7#6163) [attachment "ThesisProject.json" deleted by Tali Yatzkar-Haham/Haifa/IBM] [attachment "catalina.2014-11-30.log" deleted by Tali Yatzkar-Haham/Haifa/IBM] [attachment "catalina.2014-12-01.log" deleted by Tali Yatzkar-Haham/Haifa/IBM]
        Hide
        fw.ext.user FW External User added a comment -

        Hi Tali,

        Changing the formatter to json and restarting it did nothing, but
        strangely, when I added the second consumer (of type 'File'), and restarted
        it, it worked fine!

        Thanks for the help,

        Chris

        Show
        fw.ext.user FW External User added a comment - Hi Tali, Changing the formatter to json and restarting it did nothing, but strangely, when I added the second consumer (of type 'File'), and restarted it, it worked fine! Thanks for the help, Chris
        Hide
        TALI Fabiana Fournier added a comment -

        Hi Chris,

        I have no idea why it didn't worked before you added the 'File' consumer.
        Maybe it was a restart thing.
        Glad to hear it works now.

        Regards,
        Tali

        Tali Yatzkar Haham
        Event-based Middleware & Solutions
        IBM Haifa Research Lab, Israel
        tali@il.ibm.com 972-4-8296320

        From: Chris Paton <chrispaton2005@gmail.com>
        To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL
        Cc: "Miguel Carrillo Pacheco (JIRA)" <jira-help-desk@fi-ware.org>
        Date: 02/12/2014 08:22 PM
        Subject: Re: [FI-WARE-JIRA] (HELP-1549) [Fiware-tech-help] IBM
        Proton CEP - Unable to receive REST events from Consumer

        Hi Tali,

        Changing the formatter to json and restarting it did nothing, but
        strangely, when I added the second consumer (of type 'File'), and
        restarted it, it worked fine!

        Thanks for the help,

        Chris

        On Tue, Dec 2, 2014 at 11:00 AM, Tali Yatzkar-Haham <TALI@il.ibm.com>
        wrote:
        Hi Chris,

        1. Consumer definition - Although in the consumer screen shot the
        formatter is set to json (which is good), in the definition file you
        attached the formatter is set to tag.
        consumers": [
        {
        "name": "Monitor",
        "createdDate": "Sun Nov 30 2014",
        "type": "Rest",
        "properties": [

        { "name": "URL", "value": "http://localhost:8000/ReceiveDbDownEvent " }

        ,

        { "name": "contentType", "value": "application/json" }

        ,

        { "name": "formatter", "value": "tag" }

        ,

        { "name": "delimiter", "value": ";" }

        ,

        { "name": "tagDataSeparator", "value": ":" }

        ,

        { "name": "dateFormat", "value": "dd/MM/yyyy-HH:mm:ss" }

        ],
        "events": [

        { "name": "DbDown" }

        ]
        }
        ],

        This can be the cause of your problem. Maybe you didn't save the project
        after you changed the formatter value.
        After you fix it, you need to export the updated definition to the
        repository, and then to stop and start the engine (either through the REST
        api or by Stop&Restart through Tomcat)

        If it solves the problem that great.
        If not, I would suggest to add another consumer of type File, with a json
        formatter. This way the output event would be written to the file, and you
        will see in the file the exact data that is sent to your other consumer.
        Then you will be able to send exactly the same data to your server through
        Poster. This would help us analyse the issue. Please update me (with reply
        all) on the status.

        Best regards,
        Tali

        Tali Yatzkar Haham
        Event-based Middleware & Solutions
        IBM Haifa Research Lab, Israel
        tali@il.ibm.com 972-4-8296320

        From: Chris Paton <chrispaton2005@gmail.com>
        To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL
        Cc: "Miguel Carrillo Pacheco (JIRA)" <jira-help-desk@fi-ware.org>
        Date: 01/12/2014 01:14 PM
        Subject: Re: [FI-WARE-JIRA] (HELP-1549) [Fiware-tech-help] IBM
        Proton CEP - Unable to receive REST events from Consumer

        Hi Tali,

        Please find the attached documents, as requested.

        Thanks,

        Chris

        On Mon, Dec 1, 2014 at 9:57 AM, Tali Yatzkar-Haham <TALI@il.ibm.com>
        wrote:
        Hi Chris,

        Could you please send:
        (1) the CEP definition file (exported from the Web UI)
        (2) the Catalina log file

        Please "reply to all" so I will get it and it will be posted to Jira as
        well.
        Thank you,
        Tali

        Tali Yatzkar Haham
        Event-based Middleware & Solutions
        IBM Haifa Research Lab, Israel
        tali@il.ibm.com 972-4-8296320

        From: "Miguel Carrillo Pacheco (JIRA)" <jira-help-desk@fi-ware.org>

        To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL
        Date: 01/12/2014 11:29 AM
        Subject: [FI-WARE-JIRA] (HELP-1549) [Fiware-tech-help] IBM Proton
        CEP - Unable to receive REST events from Consumer

        [
        http://jira.fi-ware.org/browse/HELP-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
        ]

        Miguel Carrillo Pacheco updated HELP-1549:
        ------------------------------------------

        Assignee: Tali Yatzkar Haham

        Consumer
        -------------------------------------------------------------------------------
        log
        DetectionTime=1417371848675;
        reference.
        when
        there


        This message was sent by Atlassian JIRA
        (v6.1.7#6163)

        [attachment "ThesisProject.json" deleted by Tali Yatzkar-Haham/Haifa/IBM]
        [attachment "catalina.2014-11-30.log" deleted by Tali
        Yatzkar-Haham/Haifa/IBM] [attachment "catalina.2014-12-01.log" deleted by
        Tali Yatzkar-Haham/Haifa/IBM]

        Show
        TALI Fabiana Fournier added a comment - Hi Chris, I have no idea why it didn't worked before you added the 'File' consumer. Maybe it was a restart thing. Glad to hear it works now. Regards, Tali Tali Yatzkar Haham Event-based Middleware & Solutions IBM Haifa Research Lab, Israel tali@il.ibm.com 972-4-8296320 From: Chris Paton <chrispaton2005@gmail.com> To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL Cc: "Miguel Carrillo Pacheco (JIRA)" <jira-help-desk@fi-ware.org> Date: 02/12/2014 08:22 PM Subject: Re: [FI-WARE-JIRA] ( HELP-1549 ) [Fiware-tech-help] IBM Proton CEP - Unable to receive REST events from Consumer Hi Tali, Changing the formatter to json and restarting it did nothing, but strangely, when I added the second consumer (of type 'File'), and restarted it, it worked fine! Thanks for the help, Chris On Tue, Dec 2, 2014 at 11:00 AM, Tali Yatzkar-Haham <TALI@il.ibm.com> wrote: Hi Chris, 1. Consumer definition - Although in the consumer screen shot the formatter is set to json (which is good), in the definition file you attached the formatter is set to tag. consumers": [ { "name": "Monitor", "createdDate": "Sun Nov 30 2014", "type": "Rest", "properties": [ { "name": "URL", "value": "http://localhost:8000/ReceiveDbDownEvent " } , { "name": "contentType", "value": "application/json" } , { "name": "formatter", "value": "tag" } , { "name": "delimiter", "value": ";" } , { "name": "tagDataSeparator", "value": ":" } , { "name": "dateFormat", "value": "dd/MM/yyyy-HH:mm:ss" } ], "events": [ { "name": "DbDown" } ] } ], This can be the cause of your problem. Maybe you didn't save the project after you changed the formatter value. After you fix it, you need to export the updated definition to the repository, and then to stop and start the engine (either through the REST api or by Stop&Restart through Tomcat) If it solves the problem that great. If not, I would suggest to add another consumer of type File, with a json formatter. This way the output event would be written to the file, and you will see in the file the exact data that is sent to your other consumer. Then you will be able to send exactly the same data to your server through Poster. This would help us analyse the issue. Please update me (with reply all) on the status. Best regards, Tali Tali Yatzkar Haham Event-based Middleware & Solutions IBM Haifa Research Lab, Israel tali@il.ibm.com 972-4-8296320 From: Chris Paton <chrispaton2005@gmail.com> To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL Cc: "Miguel Carrillo Pacheco (JIRA)" <jira-help-desk@fi-ware.org> Date: 01/12/2014 01:14 PM Subject: Re: [FI-WARE-JIRA] ( HELP-1549 ) [Fiware-tech-help] IBM Proton CEP - Unable to receive REST events from Consumer Hi Tali, Please find the attached documents, as requested. Thanks, Chris On Mon, Dec 1, 2014 at 9:57 AM, Tali Yatzkar-Haham <TALI@il.ibm.com> wrote: Hi Chris, Could you please send: (1) the CEP definition file (exported from the Web UI) (2) the Catalina log file Please "reply to all" so I will get it and it will be posted to Jira as well. Thank you, Tali Tali Yatzkar Haham Event-based Middleware & Solutions IBM Haifa Research Lab, Israel tali@il.ibm.com 972-4-8296320 From: "Miguel Carrillo Pacheco (JIRA)" <jira-help-desk@fi-ware.org> To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL Date: 01/12/2014 11:29 AM Subject: [FI-WARE-JIRA] ( HELP-1549 ) [Fiware-tech-help] IBM Proton CEP - Unable to receive REST events from Consumer [ http://jira.fi-ware.org/browse/HELP-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Miguel Carrillo Pacheco updated HELP-1549 : ------------------------------------------ Assignee: Tali Yatzkar Haham Consumer ------------------------------------------------------------------------------- log DetectionTime=1417371848675; reference. when there – This message was sent by Atlassian JIRA (v6.1.7#6163) [attachment "ThesisProject.json" deleted by Tali Yatzkar-Haham/Haifa/IBM] [attachment "catalina.2014-11-30.log" deleted by Tali Yatzkar-Haham/Haifa/IBM] [attachment "catalina.2014-12-01.log" deleted by Tali Yatzkar-Haham/Haifa/IBM]
        Hide
        TALI Fabiana Fournier added a comment -

        see the above correspondence

        Show
        TALI Fabiana Fournier added a comment - see the above correspondence

          People

          • Assignee:
            TALI Fabiana Fournier
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: