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:
- 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":
,"producers":[],"actions":[]}}
This is the definition on Orion:
{
"contextResponses": [
{
"contextElement": {
"attributes": [
,
,
,
{ "name": "temperature", "type": "float", "value": "23" } ],
"id": "Room2",
"isPattern": "false",
"type": "Room"
},
"statusCode":
}
]
}
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
- clones
-
HELP-6773 FIWARE.Request.Tech.Data.OrionContextBroker.Orion CEP integration
- Closed
Activity
- All
- Comments
- History
- Activity
- Transitions