Hi Hemika, Can it be you are facing an issue related to the bug in [1]?
There is a bug at event builder side currently when there are no message properties. The workaround is to specify at least one message property at the custom input adaptor level. Can you set a dummy message property in the custom input event adaptor and see if this is resolved? If this is the issue, maybe we can patch it for CEP 3.1.0. [1] https://wso2.org/jira/browse/CEP-949 Thanks, Lasantha On 17 November 2014 12:27, Rajeev Sampath <[email protected]> wrote: > Hi, > > On Mon, Nov 17, 2014 at 12:19 PM, Hemika Kodikara <[email protected]> wrote: > >> Hi Damith, >> >> Using CEP 3.1.0. >> I wrote my own custom input adapter. Here is the adapter configuration. >> >> <?xml version="1.0" encoding="UTF-8"?> >> <inputEventAdaptor name="MyOD" statistics="disable" trace="enable" >> type="ObjectDetection" xmlns=" >> http://wso2.org/carbon/eventadaptormanager"> >> <property name="property1">test</property> >> </inputEventAdaptor> >> > > > Check whether you have entered the required properties properly. > There are two types of properties - adaptor properties and message > properties which need to be configured correctly in adaptor and builder > configs. > > > Thanks > Rajeev > > >> >> Created the custom input adaptor by following [1] [2]. >> >> [1] - https://docs.wso2.com/display/CEP310/Writing+Custom+Event+Adaptors >> [2] - >> http://wso2.com/library/articles/2013/08/writing-custom-event-adaptors-for-cep-3.0.0/ >> >> Regards, >> Hemika >> >> Hemika Kodikara >> Software Engineer >> WSO2 Inc. >> lean . enterprise . middleware >> http://wso2.com >> >> Mobile : +94777688882 >> >> On Mon, Nov 17, 2014 at 12:13 PM, Damith Wickramasinghe <[email protected] >> > wrote: >> >>> hi hemika, >>> >>> You are using wso2event as the type for your input adapter right? and >>> are you using CEP 3.1.0 ? >>> >>> Regards, >>> Damith >>> >>> On Mon, Nov 17, 2014 at 11:44 AM, Hemika Kodikara <[email protected]> >>> wrote: >>> >>>> Hi all, >>>> >>>> I created an Event Stream with the following definition. >>>> >>>> { >>>> "name": "odEventStreamIn", >>>> "version": "1.0.0", >>>> "nickName": "", >>>> "description": "", >>>> "payloadData": [ >>>> { >>>> "name": "image", >>>> "type": "STRING" >>>> } >>>> ] >>>> } >>>> >>>> Next was to define the In-Flow for the stream i.e a new Event Builder >>>> using my custom input adapter(For the fast track training project[1][2]). I >>>> added the following values in creating the Event Builder. >>>> >>>> >>>> Snip20141117_1.png >>>> <https://docs.google.com/a/wso2.com/file/d/0B-dOrFoxUfBFdGM3S3hYNHVHTHc/edit?usp=drive_web> >>>> ( >>>> https://drive.google.com/a/wso2.com/file/d/0B-dOrFoxUfBFdGM3S3hYNHVHTHc/view?usp=sharing >>>> ) >>>> >>>> >>>> "MyOD" is the custom input adaptor. >>>> >>>> But when "Add Event Builder" is clicked, I get the following error in >>>> the management console. >>>> >>>> -------ERROR-------- >>>> >>>> [2014-11-17 11:31:49,561] ERROR - {StandardWrapperValve} >>>> Servlet.service() for servlet [bridgeservlet] in context with path [/] >>>> threw exception [java.lang.ArrayIndexOutOfBoundsException: 1] with root >>>> cause >>>> java.lang.ArrayIndexOutOfBoundsException: 1 >>>> at >>>> org.apache.jsp.eventbuilder.add_005feventbuilder_005fajaxprocessor_jsp._jspService(org.apache.jsp.eventbuilder.add_005feventbuilder_005fajaxprocessor_jsp:106) >>>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) >>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >>>> at >>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) >>>> at >>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492) >>>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378) >>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >>>> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155) >>>> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80) >>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >>>> at >>>> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37) >>>> 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 >>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >>>> at >>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) >>>> at >>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) >>>> at >>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) >>>> at >>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) >>>> at >>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) >>>> at >>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) >>>> at >>>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) >>>> at >>>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56) >>>> at >>>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) >>>> at >>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141) >>>> at >>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) >>>> at >>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) >>>> at >>>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52) >>>> at >>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) >>>> at >>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) >>>> at >>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) >>>> at >>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) >>>> at >>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) >>>> at java.lang.Thread.run(Thread.java:722) >>>> >>>> >>>> May I know the reason for this and how to overcome this issue. >>>> >>>> [1] - https://redmine.wso2.com/issues/2646 >>>> [2] - >>>> https://docs.google.com/a/wso2.com/spreadsheets/d/1OoA63Co6dA6o4xydFTuhXg-MAWdhOLCpXFPdnzRAZ3A/edit?usp=sharing >>>> >>>> Regards, >>>> Hemika Kodikara >>>> >>>> Hemika Kodikara >>>> Software Engineer >>>> WSO2 Inc. >>>> lean . enterprise . middleware >>>> http://wso2.com >>>> >>>> Mobile : +94777688882 >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Software Engineer >>> WSO2 Inc.; http://wso2.com >>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg> >>> lean.enterprise.middleware >>> >>> mobile: *+94728671315 <%2B94728671315>* >>> >>> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Rajeev Sampath > Senior Software Engineer > WSO2, Inc.; http://www.wso2.com. > > Mobile: > * +94716265766 <%2B94716265766>* > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Lasantha Fernando* Software Engineer - Data Technologies Team WSO2 Inc. http://wso2.com email: [email protected] mobile: (+94) 71 5247551
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
