Hi Mohan,

I added an issue to the w <https://github.com/wso2>so2
<https://github.com/wso2>/carbon-event-processing
<https://github.com/wso2/carbon-event-processing> repository.

Thanks,
Pamoda

On Fri, Feb 16, 2018 at 8:56 AM, Pamoda Wimalasiri <pam...@wso2.com> wrote:

> On Fri, Feb 16, 2018 at 4:49 AM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>> Hi Pamoda,
>>
>> I believe this will not affect the event processing cases and only
>> happens when viewing the execution plan. Can you please report a github
>> issue for this?
>>
> Yes. It does not affect the process.
>
>
>>
>> Thanks,
>> Mohan
>>
>>
>> On Thu, Feb 8, 2018 at 11:16 AM, Pamoda Wimalasiri <pam...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> The following error occurred when visualizing an execution plan with a
>>> customized javascript function.
>>>
>>> [2018-02-08 11:11:53,907] ERROR {org.wso2.carbon.event.process
>>> or.ui.executionPlan.flow.ExecutionPlanFlow} -  Error in visualizing
>>> execution plan '/* Enter a unique ExecutionPlan */
>>> @Plan:name('RiskScoreCalculator-AllowedIpRange-ip2-realtime1')
>>>
>>> /* Enter a unique description for ExecutionPlan */
>>> @Plan:description('Detect logins outside the allowed ip range')
>>>
>>> define function ipToLong[JavaScript] return double {
>>> var octetsOfIp = data[0].split(".");
>>> var ipAddressAsLong = octetsOfIp[0]* 256 * 256 * 256
>>> + octetsOfIp[1]* 256 * 256
>>> + octetsOfIp[2] * 256
>>> + octetsOfIp[3] * 1;
>>> return ipAddressAsLong;
>>> };
>>>
>>> /* define streams/tables and write queries here ... */
>>>
>>> @Import('org.wso2.is.analytics.stream.ProcessedOverallAuthen
>>> tication:1.0.0')
>>> define stream ProcessedOverallAuthentication (meta_tenantId int,
>>> contextId string, eventId string, eventType string, authenticationSuccess
>>> bool, username string, localUsername string, userStoreDomain string,
>>> tenantDomain string, remoteIp string, region string, inboundAuthType
>>> string, serviceProvider string, rememberMeEnabled bool, forceAuthEnabled
>>> bool, passiveAuthEnabled bool, rolesCommaSeparated string,
>>> authenticationStep string, identityProvider string, authStepSuccess bool,
>>> stepAuthenticator string, isFirstLogin bool, identityProviderType string,
>>> _timestamp long);
>>>
>>> @Export('org.wso2.is.analytics.stream.SuspiciousLoginAttempt:1.0.0')
>>> define stream SuspiciousLoginAttempt (meta_tenantId int, username
>>> string, userStoreDomain string, tenantDomain string, remoteIp string,
>>> region string, _timestamp long, message string);
>>>
>>> from ProcessedOverallAuthentication[(authStepSuccess == true) AND
>>> (eventType =='step') AND ipToLong(remoteIp) < ipToLong("123.56.7.8") OR
>>> ipToLong(remoteIp) > ipToLong("123.9.9.1")]
>>> select meta_tenantId, username, userStoreDomain, tenantDomain, remoteIp,
>>> region, _timestamp, "WARNING : IP is not in the allowed range" as message
>>> insert into SuspiciousLoginAttempt;
>>> ', null
>>> java.lang.NullPointerException
>>> at org.wso2.carbon.event.processor.ui.executionPlan.flow.Extrac
>>> tJsonValueImpl.setTriggerJsonValue(ExtractJsonValueImpl.java:202)
>>> at org.wso2.carbon.event.processor.ui.executionPlan.flow.Extrac
>>> tJsonValueImpl.setJsonValues(ExtractJsonValueImpl.java:123)
>>> at org.wso2.carbon.event.processor.ui.executionPlan.flow.Execut
>>> ionPlanFlow.getExecutionPlanFlow(ExecutionPlanFlow.java:37)
>>> at org.apache.jsp.eventprocessor.execution_005fplan_005fdetails
>>> _jsp._jspService(execution_005fplan_005fdetails_jsp.java:207)
>>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>>> at org.apache.jasper.servlet.JspServletWrapper.service(JspServl
>>> etWrapper.java:439)
>>> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl
>>> et.java:395)
>>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>>> 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:731)
>>> at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.se
>>> rvice(ContextPathServletAdaptor.java:37)
>>> at org.eclipse.equinox.http.servlet.internal.ServletRegistratio
>>> n.service(ServletRegistration.java:61)
>>> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce
>>> ssAlias(ProxyServlet.java:128)
>>> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi
>>> ce(ProxyServlet.java:68)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>>> at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service
>>> (DelegationServlet.java:68)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>>> lter(ApplicationFilterChain.java:303)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>>> licationFilterChain.java:208)
>>> at org.apache.catalina.core.ApplicationDispatcher.invoke(Applic
>>> ationDispatcher.java:743)
>>> at org.apache.catalina.core.ApplicationDispatcher.doInclude(App
>>> licationDispatcher.java:603)
>>> at org.apache.catalina.core.ApplicationDispatcher.include(Appli
>>> cationDispatcher.java:542)
>>> at org.eclipse.equinox.http.servlet.internal.RequestDispatcherA
>>> daptor.include(RequestDispatcherAdaptor.java:37)
>>> at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$Re
>>> questDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
>>> at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRunti
>>> meLibrary.java:905)
>>> at org.apache.jasper.runtime.PageContextImpl.doInclude(PageCont
>>> extImpl.java:688)
>>> at org.apache.jasper.runtime.PageContextImpl.include(PageContex
>>> tImpl.java:682)
>>> at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
>>> at org.apache.tiles.jsp.context.JspTilesRequestContext.include(
>>> JspTilesRequestContext.java:88)
>>> at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch
>>> (JspTilesRequestContext.java:82)
>>> at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesC
>>> ontainer.java:465)
>>> at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(Insert
>>> AttributeTag.java:140)
>>> at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(Insert
>>> AttributeTag.java:117)
>>> at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderT
>>> agSupport.java:171)
>>> at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(
>>> RoleSecurityTagSupport.java:75)
>>> at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(Con
>>> tainerTagSupport.java:80)
>>> at org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_00
>>> 5finsertAttribute_005f7(template_jsp.java:721)
>>> at org.apache.jsp.admin.layout.template_jsp._jspService(templat
>>> e_jsp.java:384)
>>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>>> at org.apache.jasper.servlet.JspServletWrapper.service(JspServl
>>> etWrapper.java:439)
>>> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl
>>> et.java:395)
>>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>>> 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:731)
>>> at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.se
>>> rvice(ContextPathServletAdaptor.java:37)
>>> at org.eclipse.equinox.http.servlet.internal.ServletRegistratio
>>> n.service(ServletRegistration.java:61)
>>> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce
>>> ssAlias(ProxyServlet.java:128)
>>> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi
>>> ce(ProxyServlet.java:68)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>>> at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service
>>> (DelegationServlet.java:68)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>>> lter(ApplicationFilterChain.java:303)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>>> licationFilterChain.java:208)
>>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilte
>>> r.java:52)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>>> lter(ApplicationFilterChain.java:241)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>>> licationFilterChain.java:208)
>>> at org.apache.catalina.core.ApplicationDispatcher.invoke(Applic
>>> ationDispatcher.java:743)
>>> at org.apache.catalina.core.ApplicationDispatcher.processReques
>>> t(ApplicationDispatcher.java:485)
>>> at org.apache.catalina.core.ApplicationDispatcher.doForward(App
>>> licationDispatcher.java:410)
>>> at org.apache.catalina.core.ApplicationDispatcher.forward(Appli
>>> cationDispatcher.java:337)
>>> at org.eclipse.equinox.http.servlet.internal.RequestDispatcherA
>>> daptor.forward(RequestDispatcherAdaptor.java:30)
>>> at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$Re
>>> questDispatcherAdaptor.forward(ContextPathServletAdaptor.java:362)
>>> at org.apache.tiles.servlet.context.ServletTilesRequestContext.
>>> forward(ServletTilesRequestContext.java:198)
>>> at org.apache.tiles.servlet.context.ServletTilesRequestContext.
>>> dispatch(ServletTilesRequestContext.java:185)
>>> at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesC
>>> ontainer.java:419)
>>> at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesC
>>> ontainer.java:370)
>>> at org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52)
>>> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>>> at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.se
>>> rvice(ContextPathServletAdaptor.java:37)
>>> at org.eclipse.equinox.http.servlet.internal.ServletRegistratio
>>> n.service(ServletRegistration.java:61)
>>> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce
>>> ssAlias(ProxyServlet.java:128)
>>> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi
>>> ce(ProxyServlet.java:68)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>>> at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service
>>> (DelegationServlet.java:68)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>>> lter(ApplicationFilterChain.java:303)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>>> licationFilterChain.java:208)
>>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilte
>>> r.java:52)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>>> lter(ApplicationFilterChain.java:241)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>>> licationFilterChain.java:208)
>>> at org.wso2.carbon.ui.filters.cache.URLBasedCachePreventionFilt
>>> er.doFilter(URLBasedCachePreventionFilter.java:57)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>>> lter(ApplicationFilterChain.java:241)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>>> licationFilterChain.java:208)
>>> at org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:88)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>>> lter(ApplicationFilterChain.java:241)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>>> licationFilterChain.java:208)
>>> at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilte
>>> r(CharacterSetFilter.java:65)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>>> lter(ApplicationFilterChain.java:241)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>>> licationFilterChain.java:208)
>>> at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilte
>>> r(HttpHeaderSecurityFilter.java:124)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>>> lter(ApplicationFilterChain.java:241)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>>> licationFilterChain.java:208)
>>> at org.apache.catalina.core.StandardWrapperValve.invoke(Standar
>>> dWrapperValve.java:219)
>>> at org.apache.catalina.core.StandardContextValve.invoke(Standar
>>> dContextValve.java:110)
>>> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(A
>>> uthenticatorBase.java:506)
>>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHo
>>> stValve.java:169)
>>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo
>>> rtValve.java:103)
>>> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInv
>>> ocation(CompositeValve.java:99)
>>> at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke
>>> (CarbonTomcatValve.java:47)
>>> at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(Tena
>>> ntLazyLoaderValve.java:57)
>>> at org.wso2.carbon.event.receiver.core.internal.tenantmgt.Tenan
>>> tLazyLoaderValve.invoke(TenantLazyLoaderValve.java:48)
>>> at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invok
>>> eValves(TomcatValveContainer.java:47)
>>> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(Comp
>>> ositeValve.java:62)
>>> at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetection
>>> Valve.invoke(CarbonStuckThreadDetectionValve.java:159)
>>> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVa
>>> lve.java:962)
>>> at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.
>>> invoke(CarbonContextCreatorValve.java:57)
>>> at org.apache.catalina.core.StandardEngineValve.invoke(Standard
>>> EngineValve.java:116)
>>> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd
>>> apter.java:445)
>>> at org.apache.coyote.http11.AbstractHttp11Processor.process(Abs
>>> tractHttp11Processor.java:1115)
>>> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler
>>> .process(AbstractProtocol.java:637)
>>> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
>>> (NioEndpoint.java:1775)
>>> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(N
>>> ioEndpoint.java:1734)
>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>>> Executor.java:1149)
>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>>> lExecutor.java:624)
>>> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.r
>>> un(TaskThread.java:61)
>>> at java.lang.Thread.run(Thread.java:748)
>>>
>>>
>>>
>>> Thanks
>>> Pamoda
>>> --
>>>
>>> *Pamoda Wimalasiri*
>>> Software Engineer - WSO2
>>>
>>> Email : pam...@wso2.com
>>> Mobile : +94713705814 <+94%2077%20936%207571>
>>> Web : https://wso2.com/
>>>
>>>
>>
>>
>> --
>> *V. Mohanadarshan*
>> *Technical Lead,*
>> *Data Technologies Team,*
>> *WSO2, Inc. http://wso2.com <http://wso2.com> *
>> *lean.enterprise.middleware.*
>>
>> email: mo...@wso2.com
>> phone:(+94) 771117673 <+94%2077%20111%207673>
>>
>
>
>
> --
>
> *Pamoda Wimalasiri*
> Software Engineer - WSO2
>
> Email : pam...@wso2.com
> Mobile : +94713705814 <+94%2077%20936%207571>
> Web : https://wso2.com/
>
>


-- 

*Pamoda Wimalasiri*
Software Engineer - WSO2

Email : pam...@wso2.com
Mobile : +94713705814 <+94%2077%20936%207571>
Web : https://wso2.com/
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to