Re: [Dev] [CEP] Getting errors when deploying an execution plan in CEP.
Hi Bhashinee, You are sending a XML element as a parameter. Then you need to escape it properly.. See [1]. Try below request, soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:adm=http://admin.processor.event.carbon.wso2.org; soapenv:Header/ soapenv:Body adm:deployExecutionPlanConfigurationFromConfigXml !--Optional:-- adm:executionPlanConfigurationXml ![CDATA[ executionPlan name=execution statistics=disable trace=disable xmlns=http://wso2.org/carbon/eventprocessor; description/ siddhiConfiguration property name=siddhi.persistence.snapshot.time.interval.minutes0/property property name=siddhi.enable.distributed.processingfalse/property /siddhiConfiguration importedStreams stream as=input name=input version=1.0.0/ /importedStreams queryExpressionsfrom input select * insert into output1 /queryExpressions exportedStreams stream name=output1 valueOf=output1 version=1.0.0/ /exportedStreams /executionPlan ]] /adm:executionPlanConfigurationXml /adm:deployExecutionPlanConfigurationFromConfigXml /soapenv:Body /soapenv:Envelope [1] http://stackoverflow.com/questions/5715404/soap-ui-how-to-pass-xml-inside-parameter Thanks, Mohan On Sun, May 24, 2015 at 11:34 AM, Bhashinee Nirmali bhashin...@gmail.com wrote: Hi All, I'm trying to deploy an execution plan in CEP using SoapUI. It was not successful and I'm getting errors. I have attached Request payload [1], Request headers[2], Response payload[3],Response headers[4] and CEP Error[5]. I have used basic authentication with user name - admin and password - admin. Can anyone please help me with this? Thank You Bhashinee Nirmali Faculty of Information Technology University of Moratuwa. [1] Request payload soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:adm=http://admin.processor.event.carbon.wso2.org; soapenv:Header/ soapenv:Body adm:deployExecutionPlanConfigurationFromConfigXml adm:executionPlanConfigurationXml executionPlan name=execution statistics=disable trace=disable xmlns=http://wso2.org/carbon/eventprocessor; description/ siddhiConfiguration property name=siddhi.persistence.snapshot.time.interval.minutes0/property property name=siddhi.enable.distributed.processingfalse/property /siddhiConfiguration importedStreams stream as=input name=input version=1.0.0/ /importedStreams queryExpressions![CDATA[from input select * insert into output1 ]]/queryExpressions exportedStreams stream name=output1 valueOf=output1 version=1.0.0/ /exportedStreams /executionPlan /adm:executionPlanConfigurationXml /adm:deployExecutionPlanConfigurationFromConfigXml /soapenv:Body /soapenv:Envelope [2] Request headers POST https://192.168.1.100:9443/services/EventProcessorAdminService.EventProcessorAdminServiceHttpsSoap12Endpoint/ HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: urn:deployExecutionPlanConfigurationFromConfigXml Authorization: Basic YWRtaW46YWRtaW4= Content-Length: 1112 Host: 192.168.1.100:9443 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5) [3] Response payload soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ soapenv:Body soapenv:Fault faultcodesoapenv:Server/faultcode faultstringjavax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,37] Message: Premature end of file./faultstring detail/ /soapenv:Fault /soapenv:Body /soapenv:Envelope [4] Response headers HTTP/1.1 500 Internal Server Error Set-Cookie: JSESSIONID=EE44325408E903BEB0B8D091EAA41440; Path=/; Secure; HttpOnly Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Sun, 24 May 2015 18:28:11 GMT Connection: close Server: WSO2 Carbon Server [5] CEP error [2015-05-24 11:28:11,094] ERROR - {RPCMessageReceiver} javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,37] Message: Premature end of file. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at
Re: [Dev] [CEP] Getting errors when deploying an execution plan in CEP.
Hi Mohandarshan, That solved the problem. Thank you. On Sun, May 24, 2015 at 1:46 AM, Mohanadarshan Vivekanandalingam mo...@wso2.com wrote: Hi Bhashinee, You are sending a XML element as a parameter. Then you need to escape it properly.. See [1]. Try below request, soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:adm=http://admin.processor.event.carbon.wso2.org; soapenv:Header/ soapenv:Body adm:deployExecutionPlanConfigurationFromConfigXml !--Optional:-- adm:executionPlanConfigurationXml ![CDATA[ executionPlan name=execution statistics=disable trace=disable xmlns=http://wso2.org/carbon/eventprocessor; description/ siddhiConfiguration property name=siddhi.persistence.snapshot.time.interval.minutes0/property property name=siddhi.enable.distributed.processingfalse/property /siddhiConfiguration importedStreams stream as=input name=input version=1.0.0/ /importedStreams queryExpressionsfrom input select * insert into output1 /queryExpressions exportedStreams stream name=output1 valueOf=output1 version=1.0.0/ /exportedStreams /executionPlan ]] /adm:executionPlanConfigurationXml /adm:deployExecutionPlanConfigurationFromConfigXml /soapenv:Body /soapenv:Envelope [1] http://stackoverflow.com/questions/5715404/soap-ui-how-to-pass-xml-inside-parameter Thanks, Mohan On Sun, May 24, 2015 at 11:34 AM, Bhashinee Nirmali bhashin...@gmail.com wrote: Hi All, I'm trying to deploy an execution plan in CEP using SoapUI. It was not successful and I'm getting errors. I have attached Request payload [1], Request headers[2], Response payload[3],Response headers[4] and CEP Error[5]. I have used basic authentication with user name - admin and password - admin. Can anyone please help me with this? Thank You Bhashinee Nirmali Faculty of Information Technology University of Moratuwa. [1] Request payload soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/; xmlns:adm= http://admin.processor.event.carbon.wso2.org; soapenv:Header/ soapenv:Body adm:deployExecutionPlanConfigurationFromConfigXml adm:executionPlanConfigurationXml executionPlan name=execution statistics=disable trace=disable xmlns=http://wso2.org/carbon/eventprocessor; description/ siddhiConfiguration property name=siddhi.persistence.snapshot.time.interval.minutes0/property property name=siddhi.enable.distributed.processingfalse/property /siddhiConfiguration importedStreams stream as=input name=input version=1.0.0/ /importedStreams queryExpressions![CDATA[from input select * insert into output1 ]]/queryExpressions exportedStreams stream name=output1 valueOf=output1 version=1.0.0/ /exportedStreams /executionPlan /adm:executionPlanConfigurationXml /adm:deployExecutionPlanConfigurationFromConfigXml /soapenv:Body /soapenv:Envelope [2] Request headers POST https://192.168.1.100:9443/services/EventProcessorAdminService.EventProcessorAdminServiceHttpsSoap12Endpoint/ HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: urn:deployExecutionPlanConfigurationFromConfigXml Authorization: Basic YWRtaW46YWRtaW4= Content-Length: 1112 Host: 192.168.1.100:9443 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5) [3] Response payload soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/; soapenv:Body soapenv:Fault faultcodesoapenv:Server/faultcode faultstringjavax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,37] Message: Premature end of file./faultstring detail/ /soapenv:Fault /soapenv:Body /soapenv:Envelope [4] Response headers HTTP/1.1 500 Internal Server Error Set-Cookie: JSESSIONID=EE44325408E903BEB0B8D091EAA41440; Path=/; Secure; HttpOnly Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Sun, 24 May 2015 18:28:11 GMT Connection: close Server: WSO2 Carbon Server [5] CEP error [2015-05-24 11:28:11,094] ERROR - {RPCMessageReceiver} javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,37] Message: Premature end of file. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at
[Dev] [CEP] Getting errors when deploying an execution plan in CEP.
Hi All, I'm trying to deploy an execution plan in CEP using SoapUI. It was not successful and I'm getting errors. I have attached Request payload [1], Request headers[2], Response payload[3],Response headers[4] and CEP Error[5]. I have used basic authentication with user name - admin and password - admin. Can anyone please help me with this? Thank You Bhashinee Nirmali Faculty of Information Technology University of Moratuwa. [1] Request payload soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:adm=http://admin.processor.event.carbon.wso2.org; soapenv:Header/ soapenv:Body adm:deployExecutionPlanConfigurationFromConfigXml adm:executionPlanConfigurationXml executionPlan name=execution statistics=disable trace=disable xmlns= http://wso2.org/carbon/eventprocessor; description/ siddhiConfiguration property name=siddhi.persistence.snapshot.time.interval.minutes0/property property name=siddhi.enable.distributed.processingfalse/property /siddhiConfiguration importedStreams stream as=input name=input version=1.0.0/ /importedStreams queryExpressions![CDATA[from input select * insert into output1 ]]/queryExpressions exportedStreams stream name=output1 valueOf=output1 version=1.0.0/ /exportedStreams /executionPlan /adm:executionPlanConfigurationXml /adm:deployExecutionPlanConfigurationFromConfigXml /soapenv:Body /soapenv:Envelope [2] Request headers POST https://192.168.1.100:9443/services/EventProcessorAdminService.EventProcessorAdminServiceHttpsSoap12Endpoint/ HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: urn:deployExecutionPlanConfigurationFromConfigXml Authorization: Basic YWRtaW46YWRtaW4= Content-Length: 1112 Host: 192.168.1.100:9443 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5) [3] Response payload soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Body soapenv:Fault faultcodesoapenv:Server/faultcode faultstringjavax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,37] Message: Premature end of file./faultstring detail/ /soapenv:Fault /soapenv:Body /soapenv:Envelope [4] Response headers HTTP/1.1 500 Internal Server Error Set-Cookie: JSESSIONID=EE44325408E903BEB0B8D091EAA41440; Path=/; Secure; HttpOnly Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Sun, 24 May 2015 18:28:11 GMT Connection: close Server: WSO2 Carbon Server [5] CEP error [2015-05-24 11:28:11,094] ERROR - {RPCMessageReceiver} javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,37] Message: Premature end of file. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at