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":{"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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-lab-help/attachments/20160614/df91e0f7/attachment.html>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy