Dear Ahmed, I'm coping my previous reply, since I think it is the same issue: As you pointed out, from the log you saw that the CEP can't open the output file: >>> Apr 3, 2015 3:58:30 PM com.ibm.hrl.proton.adapter.servers.AbstractServer startAdapters WARNING: initializeAdapters: failed to initialize adapter Output adapter for consumer: SysTemCrashConsumer, reason: No such file or directory Apr 3, 2015 3:58:30 PM com.ibm.hrl.proton.adapter.servers.AbstractServer startAdapters WARNING: initializeAdapters: failed to initialize adapter Output adapter for consumer: DoSAttackTRConsumer, reason: No such file or directory >>> This usually happen if the path specified as the Consumer's output file doesn't exist, or if you run on unix/linux and tomcat has no permission to write in this directory or to write to the specific file. I would also recommend to use an absolute path and not relative path for the output file, since in different operating systems, the Tomcat "current" directory may be different. As for your current question - you don't need to create the file, but you do need to create the directory and make sure tomcat has permission to write to this directory (or if the file exists to write to this file) So here are my recommendations: 1. Stop tomcat 2. Delete catalina.out 3. Activate tomcat 4. In the CEP web UI, change the path of the Consumers to an absolute path, save the project, export it to the repository 5. Make sure the path you specified for the Consumers exists, and that tomcat has permission to write to the directory, and if the files exist, to this files. 6. Change the status of the CEP engine to Stop 7. Change the status of the CEP engine to Start 8. Send an input event Make sure you don't see the warning listed above in the catalina.out Regards, Tali Tali Yatzkar Haham Event-based Middleware & 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, "fiware-tech-he." <fiware-tech-help at lists.fi-ware.org> Date: 03/04/2015 06:31 PM Subject: Urgent - Problem with CEP input output Dear All, I am facing a problem with CEP, the engine should be running normal. I am trying to send events using REST Post and receive the output event in a file. http://194.28.122.118:8080/ProtonOnWebServer/rest/events {"Name": "TrafficReport", "volume": "1000"} But I am not receiving any change of output in the file, although the log file says that the input event is passed to proton. Any ideas would be really helpful since I am stuck on this problem for 3 days now. Attached the catalina log and the definition file. Best, Ahmed Sadek[attachment "DoSAttack4.json" deleted by Tali Yatzkar-Haham/Haifa/IBM] [attachment "catalina.out" deleted by Tali Yatzkar-Haham/Haifa/IBM] -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20150412/26a7d34d/attachment.html>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy