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

FIWARE.Request.Tech.Data.CEP.Orion-Integration

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None
    • Sender Email:
    • HD-Chapter:
      Data
    • HD-Enabler:
      CEP

      Description

      Hi all,

      i have some troubles integration Orion and CEP

      Orion version:
      Name : contextBroker
      Arch : x86_64
      Version : 1.2.0
      Release : 1
      Size : 3.8 M
      Repo : installed
      From repo : testbed-fi-ware
      Summary : Orion Context Broker
      URL :
      http://catalogue.fiware.org/enablers/publishsubscribe-context-broker-orion-context-broker
      License : AGPLv3
      Description : The Orion Context Broker is an implementation of NGSI9 and
      NGSI10 interfaces.
      : Using these interfaces, clients can do several operations:
      : * Register context producer applications, e.g. a temperature
      sensor within a room.
      : * Update context information, e.g. send updates of
      temperature.
      : * Being notified when changes on context information take
      place (e.g. the
      : temperature has changed) or with a given frecuency (e.g.
      get the temperature
      : each minute).
      : * Query context information. The Orion Context Broker stores
      context information
      : updated from applications, so queries are resolved based on
      that information.

      CEP version: the one installed with the image cep-r3.3.3-img
      <https://cloud.lab.fiware.org/#nova/images/91ea7bbc-714c-403c-930d-e575a8c81916>

      I have subscribed CEP to Orion updates, and i got the following error in
      catalina.out
      Tue Jun 14 10:53:42 CEST 2016 - Archon1 loaded sucessfully
      14-jun-2016 10:54:21
      com.ibm.hrl.proton.webapp.providers.EventJSONMessageReader readFrom
      INFO: started event message body reader
      14-jun-2016 10:54:21
      com.ibm.hrl.proton.webapp.providers.EventJSONMessageReader readFrom
      *GRAVE: Could not parse json event org.apache.wink.json4j.JSONException:
      The key [Name] was not in the map, reason: The key [Name] was not in the
      map*

      This is data definition in CEP:

      1. curl 127.0.0.1:8080/ProtonOnWebServerAdmin/resources/definitions
        [ {"name":"\/opt\/repositories\/tomcat10\/Archon1.json","url":"\/ProtonOnWebServerAdmin\/resources\/definitions\/Archon1"}

        ]

      {"declaredClass":"metadata.CreateJSON","epn":{"events":[{"name":"RoomContextUpdate","attributes":[

      {"dimension":0,"description":"The certainty that this event happen (value between 0 to 1)","name":"temperature","type":"Double"}

      ,

      {"dimension":0,"description":"No value means it equals the event detection time, other option is to use one of the defined distribution functions with parameters","name":"pressure","type":"Integer"}

      ,

      {"dimension":0,"name":"entityType","type":"String"}

      ,

      {"dimension":0,"name":"entityId","type":"String"}

      ],"createdDate":"Mon
      Jun 13
      2016"}],"name":"Archon1","consumers":[],"epas":[],"contexts":

      {"temporal":[],"segmentation":[],"composite":[]}

      ,"producers":[],"actions":[]}}

      This is the definition on Orion:
      {
      "contextResponses": [
      {
      "contextElement": {
      "attributes": [

      { "name": "entityId", "type": "string", "value": "dwaee" }

      ,

      { "name": "entityType", "type": "string", "value": "Room" }

      ,

      { "name": "pressure", "type": "integer", "value": "712" }

      ,

      { "name": "temperature", "type": "float", "value": "23" }

      ],
      "id": "Room2",
      "isPattern": "false",
      "type": "Room"
      },
      "statusCode":

      { "code": "200", "reasonPhrase": "OK" }

      }
      ]
      }

      Can you help me on this topic?

      Thanks

      Daniele

      Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
      Please, send your messages using the new domain (Fiware-lab-help@lists.fiware.org) instead of the old one.
      _______________________________________________
      Fiware-lab-help mailing list
      Fiware-lab-help@lists.fiware.org
      https://lists.fiware.org/listinfo/fiware-lab-help
      [Created via e-mail received from: Daniele Stanzani <ds@archon.ai>]

        Issue Links

          Activity

          fla Fernando Lopez made changes -
          Fix Version/s 2021 [ 12600 ]
          urishani Uri Shani made changes -
          Resolution Done [ 10000 ]
          Status Answered [ 10104 ] Closed [ 6 ]
          urishani Uri Shani made changes -
          Status In Progress [ 3 ] Answered [ 10104 ]
          urishani Uri Shani made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          backlogmanager Backlog Manager made changes -
          Assignee Uri Shani [ urishani ]
          mev Manuel Escriche made changes -
          Assignee Fermín Galán [ fermin ]
          mev Manuel Escriche made changes -
          HD-Enabler Orion [ 10875 ] CEP [ 10869 ]
          mev Manuel Escriche made changes -
          Summary FIWARE.Request.Tech.Data.OrionContextBroker.Orion CEP integration FIWARE.Request.Tech.Data.CEP.Orion-Integration
          mev Manuel Escriche made changes -
          Field Original Value New Value
          Link This issue clones HELP-6773 [ HELP-6773 ]
          mev Manuel Escriche created issue -

            People

            • Assignee:
              urishani Uri Shani
              Reporter:
              fw.ext.user FW External User
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: