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

FIWARE.Request.Tech.Data.CEP.Orion -> CEP : NGSI XML parsing error

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      Description

      Dear Andres,

      Please read appendix A in the CEP user guide. It explains the CEP events
      (name and attributes) that need to be defined in order to parse Orion
      notifications to CEP input events.

      You need to carefully follow those instructions, since other wise the CEP
      will fail in the parsing and transformation.

      Attached is an example CEP project that can be used as reference

      I copied the FIWARE texh help in order to have this correspondece
      documented.

      Hope it helps,
      Tali

      Tali Yatzkar Haham
      Smart Decision Solutions
      IBM Research - Haifa, Israel
      tali@il.ibm.com 972-4-8296320

      From: Andrés Campos <andres@geezar.es>
      To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL
      Date: 23/09/2015 05:18 PM
      Subject: Orion -> CEP : NGSI XML parsing error

      Hello.

      I'm developing a Fi-Ware based ecosystem and I'm having problems with CEP
      GE and Orion integration.

      I have CEP installed and configured in http://fruitwatcher.mooo.com:8085/
      . But I can't get NGSI XML notification from Orion ContextBroker.

      I have devices sending data through IotAgent to Orion and CEP is Suscribed
      to that device data "ONCHANGE".

      I get this at catalina.out:

      Sep 23, 2015 1:19:18 PM
      com.ibm.hrl.proton.webapp.providers.EventXmlNgsiMessageReader readFrom
      INFO: started event message body reader
      Sep 23, 2015 1:19:18 PM
      com.ibm.hrl.proton.webapp.providers.EventXmlNgsiMessageReader readFrom
      INFO: Event: fruitwatcherContextUpdate
      Sep 23, 2015 1:19:18 PM
      com.ibm.hrl.proton.webapp.providers.EventXmlNgsiMessageReader readFrom
      SEVERE: Could not parse XML NGSI event java.lang.NullPointerException,
      reason: null
      last attribute name: null last value: null
      Sep 23, 2015 1:19:18 PM
      com.ibm.hrl.proton.webapp.providers.EventXmlNgsiMessageReader readFrom
      INFO: finished event message body reader
      Sep 23, 2015 1:19:18 PM com.ibm.hrl.proton.webapp.resources.EventResource
      submitNewEvent
      INFO: starting submitNewEvent
      Sep 23, 2015 1:19:18 PM com.ibm.hrl.proton.webapp.resources.EventResource
      submitNewEvent
      SEVERE: Could not send event, reason: java.lang.NullPointerException,
      message: null
      If I go to
      http://fruitwatcher.mooo.com:8085/ProtonOnWebServerAdmin/resources/definitions
      [

      {"name":"\/tmp\/defs\/fruitwatcher.json","url":"\/ProtonOnWebServerAdmin\/resources\/definitions\/fruitwatcher"}

      ]

      http://fruitwatcher.mooo.com:8085/ProtonOnWebServerAdmin/resources/instances/
      [

      {"name":"\/ProtonOnWebServer","state":"started","url":"\/ProtonOnWebServerAdmin\/resources\/instances\/ProtonOnWebServer"}

      ]

      http://fruitwatcher.mooo.com:8085/ProtonOnWebServerAdmin/resources/instances/ProtonOnWebServer

      {"state":"started","definitions-url":"\/ProtonOnWebServerAdmin\/resources\/definitions\/fruitwatcher"}

      What should I do from this point to have CEP parsing NGSI XML correctly?
      I'm having problems with the documentation because i couldn't find any
      clear examples of integration Orion-CEP-Orion.
      If you need some kind of information just let me know
      Thanks and Regards.

      Andrés Campos
      E-mail: andres@geezar.es

      GEEZAR Soluciones SL
      CEEI C/María de Luna 11, Nave 2
      50018 Zaragoza
      Teléfono: 976-96-08-52

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

      1. LiveDemo.json
        37 kB
        Fabiana Fournier

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: