Dear Ahmed, Please read the CEP user guide appendix carefully, since there are several integration details that you must follow. It seems that the issue you see can be solved by following this requirement from the appendix: In the IBM Proactive Technology Online application, such event type must be defined. This event must have all the context attributes defined in the subscription, and have two additional mandatory attributes: ? entityId ? of type String. This attribute holds the entityId value provided in the message ("OUTSMART.NODE_3505" in the example above) ? entityType ? of type String. This attributes holds the entity type provided in the message ("Node" in the example above) Best regards, Tali Tali Yatzkar Haham Smart Decision Solutions IBM Haifa Research Lab, Israel tali at il.ibm.com 972-4-8296320 From: Ahmed Sadek <don1559 at gmail.com> To: Tali Yatzkar-Haham/Haifa/IBM at IBMIL Date: 12/05/2015 02:00 AM Subject: Problem with xml events CEP and orion Dear Tali, I am trying to post xml events (from orion) to the CEP, but I am getting null point exception errors. Can you help me and tell me where is the problem. When I POST this even I also get null point exception. POST http://194.28.122.7:8080//ProtonOnWebServer/rest/events <notifyContextRequest> <subscriptionId>555128ffa85d63e238d75d8b</subscriptionId> <originator>localhost</originator> <contextResponseList> <contextElementResponse> <contextElement> <entityId type="B" isPattern="false"> <id>B1</id> </entityId> <contextAttributeList> <contextAttribute> <name>Temperature</name> <type>float</type> <contextValue>10</contextValue> </contextAttribute> <contextAttribute> <name>SoC</name> <type>integer</type> <contextValue>10</contextValue> </contextAttribute> </contextAttributeList> </contextElement> <statusCode> <code>200</code> <reasonPhrase>OK</reasonPhrase> </statusCode> </contextElementResponse> </contextResponseList> </notifyContextRequest> Attached the definition file and last catalina log. Best, Ahmed Sadek[attachment "cataline.out" deleted by Tali Yatzkar-Haham/Haifa/IBM] [attachment "lumtest.json" deleted by Tali Yatzkar-Haham/Haifa/IBM] -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20150512/57c5807d/attachment.html>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy