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 at il.ibm.com 972-4-8296320 From: Andrés Campos <andres at geezar.es> To: Tali Yatzkar-Haham/Haifa/IBM at 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 at geezar.es GEEZAR Soluciones SL CEEI C/María de Luna 11, Nave 2 50018 Zaragoza Teléfono: 976-96-08-52 -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20150924/33058453/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: LiveDemo.json Type: application/octet-stream Size: 37568 bytes Desc: not available URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20150924/33058453/attachment.obj>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy