Re: [Dev] Getting error in puppet integration to Mac OS X during tools installation using 'brew'
Hi All, The above option doesn't resolve the issue, Even though i managed to find a solution suggested in [1] . But this solution leads to maintainability issues as highlighted by Udara. Hence we are trying to achieve this using docker. @Sajith - Referring to STRATOS-776 https://issues.apache.org/jira/browse/STRATOS-776 issue which was raised regarding Stratos image is not starting, As per the comments it will be fixed in 4.1.0-M2. Is it possible to align the fix in 4.0.0? [1] https://forge.puppetlabs.com/gildas/homebrew Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc E-Mail: rajeev...@wso2.com | Mobile : +94776411636 On Thu, Nov 13, 2014 at 9:11 AM, Aiyadurai Rajeevan rajeev...@wso2.com wrote: Hi Danuska/All, Since these all bundled with Ubuntu, We may suggest Mac OS users to manually install all these tools and use the puppet without any changes, Then the code would be as below. $packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree', 'zip'] package { $packages: ensure = installed, } Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc E-Mail: rajeev...@wso2.com | Mobile : +94776411636 On Thu, Nov 13, 2014 at 8:32 AM, Udara Liyanage ud...@wso2.com wrote: Hi Danushka, I don't think having a puppet master for Mac is a good option. Then in future you will have to have puppet masters for every platform which is not maintainable friendly. A change would have to duplicate in every where. Having a single puppet master for each environment must be the recommended approach. Touched, not typed. Erroneous words are a feature, not a typo. On Nov 13, 2014 6:05 AM, Danushka Fernando danush...@wso2.com wrote: Hi Sorry I misread first time. Few questions. If this is done for one time will it work after that ? Is there other things that breaks? If answers are yes and no the I would be fine with installing it manually for first time for mac since this is just dev setup. @Dimuthu : WDYT? But if it is not the case then we may need to have separate puppet master for mac. [1] [1] http://projects.puppetlabs.com/projects/1/wiki/puppet_mac_osx Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Nov 12, 2014 at 6:20 PM, Aiyadurai Rajeevan rajeev...@wso2.com wrote: Hi All, We are in the process of integrating puppet scripts to Mac OS X, Where we have implementation to install list of tools to be installed by puppet script when executed, The puppet code looks like below. *$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree', 'zip']* * package { $packages:* *ensure = installed,* *provider = 'brew',* *}* Here, *$Packages* has the tools to be installed using the *brew*. When i execute this, it gives error as below, *Error: Failed to apply catalog: Parameter provider failed on Package[lsof]: Invalid package provider 'brew' at /home/rajeevan/appfactory/modules/wso2base/manifests/packages.pp:9* *Wrapped exception:* *Invalid package provider 'brew'* *Wrapped exception:* *Invalid package provider 'brew'* Then we executed the command - *brew install unzip* - just to ensure the unzip tool is getting installed, but it doesn't. google it and found a solution [1] *$ brew tap homebrew/dupes * *$ brew install unzip* This works nicely, But, As far as puppet concerned, How to do this in my above puppet script? Appreciate your view on this please. [1] http://apple.stackexchange.com/questions/149080/how-can-i-update-my-version-of-unzip-to-version-6-00-or-higher Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc Lean . Enterprise . Middleware E-Mail: rajeev...@wso2.com | Mobile : +94776411636 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Getting error in puppet integration to Mac OS X during tools installation using 'brew'
+Sajith Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc E-Mail: rajeev...@wso2.com | Mobile : +94776411636 On Thu, Nov 13, 2014 at 1:52 PM, Aiyadurai Rajeevan rajeev...@wso2.com wrote: Hi All, The above option doesn't resolve the issue, Even though i managed to find a solution suggested in [1] . But this solution leads to maintainability issues as highlighted by Udara. Hence we are trying to achieve this using docker. @Sajith - Referring to STRATOS-776 https://issues.apache.org/jira/browse/STRATOS-776 issue which was raised regarding Stratos image is not starting, As per the comments it will be fixed in 4.1.0-M2. Is it possible to align the fix in 4.0.0? [1] https://forge.puppetlabs.com/gildas/homebrew Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc E-Mail: rajeev...@wso2.com | Mobile : +94776411636 On Thu, Nov 13, 2014 at 9:11 AM, Aiyadurai Rajeevan rajeev...@wso2.com wrote: Hi Danuska/All, Since these all bundled with Ubuntu, We may suggest Mac OS users to manually install all these tools and use the puppet without any changes, Then the code would be as below. $packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree', 'zip'] package { $packages: ensure = installed, } Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc E-Mail: rajeev...@wso2.com | Mobile : +94776411636 On Thu, Nov 13, 2014 at 8:32 AM, Udara Liyanage ud...@wso2.com wrote: Hi Danushka, I don't think having a puppet master for Mac is a good option. Then in future you will have to have puppet masters for every platform which is not maintainable friendly. A change would have to duplicate in every where. Having a single puppet master for each environment must be the recommended approach. Touched, not typed. Erroneous words are a feature, not a typo. On Nov 13, 2014 6:05 AM, Danushka Fernando danush...@wso2.com wrote: Hi Sorry I misread first time. Few questions. If this is done for one time will it work after that ? Is there other things that breaks? If answers are yes and no the I would be fine with installing it manually for first time for mac since this is just dev setup. @Dimuthu : WDYT? But if it is not the case then we may need to have separate puppet master for mac. [1] [1] http://projects.puppetlabs.com/projects/1/wiki/puppet_mac_osx Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Nov 12, 2014 at 6:20 PM, Aiyadurai Rajeevan rajeev...@wso2.com wrote: Hi All, We are in the process of integrating puppet scripts to Mac OS X, Where we have implementation to install list of tools to be installed by puppet script when executed, The puppet code looks like below. *$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree', 'zip']* * package { $packages:* *ensure = installed,* *provider = 'brew',* *}* Here, *$Packages* has the tools to be installed using the *brew*. When i execute this, it gives error as below, *Error: Failed to apply catalog: Parameter provider failed on Package[lsof]: Invalid package provider 'brew' at /home/rajeevan/appfactory/modules/wso2base/manifests/packages.pp:9* *Wrapped exception:* *Invalid package provider 'brew'* *Wrapped exception:* *Invalid package provider 'brew'* Then we executed the command - *brew install unzip* - just to ensure the unzip tool is getting installed, but it doesn't. google it and found a solution [1] *$ brew tap homebrew/dupes * *$ brew install unzip* This works nicely, But, As far as puppet concerned, How to do this in my above puppet script? Appreciate your view on this please. [1] http://apple.stackexchange.com/questions/149080/how-can-i-update-my-version-of-unzip-to-version-6-00-or-higher Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc Lean . Enterprise . Middleware E-Mail: rajeev...@wso2.com | Mobile : +94776411636 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Social.core prints a broken pipe exception after a BAM restart
@Manu, Can you please have a look? On Wed, Nov 12, 2014 at 11:56 PM, Amila Maha Arachchi ami...@wso2.com wrote: Hi all, There was a situation where we had to restart BAM. When BAM was restarted, social.core component in AF started printing the following log continuously. Had to restart AF to get rid of it. Have you experienced this? I think something is wrong with the way connections are handled? This does NOT occur after each restart of BAM. But once started appearing, does not go away. TID: [0] [AF] [2014-11-12 21:21:22,651] ERROR {org.wso2.carbon.social.core.ActivityBrowser} - Can't retrieve activities form cassandra. {org.wso2.carbon.social.core.ActivityBrowser} java.sql.SQLNonTransientConnectionException: org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe at org.apache.cassandra.cql.jdbc.CassandraPreparedStatement.init(CassandraPreparedStatement.java:107) at org.apache.cassandra.cql.jdbc.CassandraConnection.prepareStatement(CassandraConnection.java:388) at org.apache.cassandra.cql.jdbc.CassandraConnection.prepareStatement(CassandraConnection.java:372) at org.apache.cassandra.cql.jdbc.CassandraConnection.prepareStatement(CassandraConnection.java:50) at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51) at org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:67) at org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153) at org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41) at org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:80) at com.sun.proxy.$Proxy14.prepareStatement(Unknown Source) at org.wso2.carbon.social.core.ActivityBrowser.listActivities(ActivityBrowser.java:70) at org.wso2.carbon.social.core.ActivityBrowser.listActivitiesChronologically(ActivityBrowser.java:123) at org.wso2.carbon.social.core.SocialActivityServiceImpl.listActivities(SocialActivityServiceImpl.java:28) at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.appmgt.modules.events.listen.c0._c_anonymous_1(/appmgt/modules/events/listen/listen.jag:22) at org.jaggeryjs.rhino.appmgt.modules.events.listen.c0.call(/appmgt/modules/events/listen/listen.jag) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at org.jaggeryjs.rhino.appmgt.modules.events.c0._c_anonymous_2(/appmgt/modules/events/module.jag:8) at org.jaggeryjs.rhino.appmgt.modules.events.c0.call(/appmgt/modules/events/module.jag) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0._c_anonymous_1(/appmgt/site/blocks/events/listen/ajax/listen.jag:42) at org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0.call(/appmgt/site/blocks/events/listen/ajax/listen.jag) at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23) at org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0._c_script_0(/appmgt/site/blocks/events/listen/ajax/listen.jag:6) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) at org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0.exec(/appmgt/site/blocks/events/listen/ajax/listen.jag) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567) at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541) at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at
[Dev] Accessing a DB through bundle starter
Is it possible access a database within osgi bundle's start method? public void start(BundleContext context) throws Exception { ModelService modelService = new ModelService(); context.registerService(ModelService.class.getName(), modelService, null); * MLAlgorithmConfiguration mlAlgorithmConfiguration = new MLAlgorithmConfiguration(); mlAlgorithmConfiguration.loadMLAlgorithmConfigurations();* logger.info(Model service started); } loadMLConfigurations loads some default values to a database. Adding bold lettered lines throws following exception INFO {org.wso2.carbon.ml.dataset.DatasetServiceActivator} - Dataset service started [2014-11-13 16:48:49,589] ERROR {org.wso2.carbon.ml.model.DatabaseHandler} - An error occurred while connecting to database. Name [jdbc/WSO2ML_DB] is not bound in this Context. Unable to find [jdbc]. javax.naming.NameNotFoundException: Name [jdbc/WSO2ML_DB] is not bound in this Context. Unable to find [jdbc]. at org.apache.naming.NamingContext.lookup(NamingContext.java:819) at org.apache.naming.NamingContext.lookup(NamingContext.java:167) at org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:705) at javax.naming.InitialContext.lookup(InitialContext.java:411) at org.wso2.carbon.ml.model.DatabaseHandler.getDatabaseHandler(DatabaseHandler.java:62) -- Lochana Menikarachchi Senior Tech Lead WSO2 Inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Accessing a DB through bundle starter
Wonder whether it is due to bundle load order.. Is there anyway to change it.. [2014-11-13 17:32:04,594] INFO {org.wso2.carbon.ml.dataset.DatasetServiceActivator} - Dataset service started [2014-11-13 17:32:04,596] INFO {org.wso2.carbon.ml.model.ModelServiceActivator} - Model service started [2014-11-13 17:32:04,597] INFO {org.wso2.carbon.ml.project.mgt.ProjectManagementServiceActivator} - Project management service started [2014-11-13 17:32:04,597] INFO {org.wso2.carbon.ml.project.mgt.ProjectManagementServiceActivator} - ML Wizard URL : http://localhost:9763/mlUI [2014-11-13 17:32:05,536] INFO {org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager} - LDAP connection created successfully in read-write mode [2014-11-13 17:32:05,709] INFO {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} - Configured Registry in 83ms On Thu, Nov 13, 2014 at 4:59 PM, Lochana Menikarachchi loch...@wso2.com wrote: Is it possible access a database within osgi bundle's start method? public void start(BundleContext context) throws Exception { ModelService modelService = new ModelService(); context.registerService(ModelService.class.getName(), modelService, null); * MLAlgorithmConfiguration mlAlgorithmConfiguration = new MLAlgorithmConfiguration(); mlAlgorithmConfiguration.loadMLAlgorithmConfigurations();* logger.info(Model service started); } loadMLConfigurations loads some default values to a database. Adding bold lettered lines throws following exception INFO {org.wso2.carbon.ml.dataset.DatasetServiceActivator} - Dataset service started [2014-11-13 16:48:49,589] ERROR {org.wso2.carbon.ml.model.DatabaseHandler} - An error occurred while connecting to database. Name [jdbc/WSO2ML_DB] is not bound in this Context. Unable to find [jdbc]. javax.naming.NameNotFoundException: Name [jdbc/WSO2ML_DB] is not bound in this Context. Unable to find [jdbc]. at org.apache.naming.NamingContext.lookup(NamingContext.java:819) at org.apache.naming.NamingContext.lookup(NamingContext.java:167) at org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:705) at javax.naming.InitialContext.lookup(InitialContext.java:411) at org.wso2.carbon.ml.model.DatabaseHandler.getDatabaseHandler(DatabaseHandler.java:62) -- Lochana Menikarachchi Senior Tech Lead WSO2 Inc. -- Lochana Menikarachchi Senior Tech Lead WSO2 Inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Writing a CEP extension to receive a video or image
In general video streams are compressed in time domain. If we send one frame as an event this will not be achieved and the required bandwidth will be higher. Instead if the video stream can be chunked and decompress inside the server / engine, bandwidth could have been saved. BTW we can use the same input adaptors to get videos to BAM and do some batch processing if map-reduce implementations can be found for computer vision algorithms like http://hipi.cs.virginia.edu/ *Maninda Edirisooriya* Senior Software Engineer *WSO2, Inc.*lean.enterprise.middleware. *Blog* : http://maninda.blogspot.com/ *E-mail* : mani...@wso2.com *Skype* : @manindae *Twitter* : @maninda On Thu, Nov 13, 2014 at 8:32 AM, Srinath Perera srin...@wso2.com wrote: Adding dev@ Hi Suho, Mohan, Open CV (computer vision library) let you train and build a model that generates an XML file that can be used from a java program to classify video streams (e.g. detect an human, vehicle). Idea of the project is to write an CEP extension that takes the XML file and detect vision detection. We can send each frame in video as an event. However, it is a byte array. How can we send this? If he used siddhi, can he send it by defining type as object? Long term we should define an byte[] --Srinath On Wed, Nov 12, 2014 at 3:35 PM, Hemika Kodikara hem...@wso2.com wrote: Hi all, This is regarding the Fast Track Training Project that I selected to complete [1]. The task is to create a CEP extension which will receive a stream of video and do several image processing tasks to identify an object. Need to know more insight on how to send input a video stream. Even though it is a video, we can use it frames. Which will be a set of images. [1] - https://redmine.wso2.com/issues/2646 Hemika Kodikara Software Engineer WSO2 Inc. lean . enterprise . middleware http://wso2.com Mobile : +9477762 -- Blog: http://srinathsview.blogspot.com twitter:@srinath_perera Site: http://people.apache.org/~hemapani/ Photos: http://www.flickr.com/photos/hemapani/ Phone: 0772360902 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APIM pack] 12-11-2014
We faced an issue in above pack and rebuilt a pack. New pack is hosted here[1] [1]https://svn.wso2.org/repos/wso2/scratch/chunk13-release/13-11-2014/ Thanks. On 13 November 2014 12:05, Vijayaratha Vijayasingam rat...@wso2.com wrote: Hi all; Please find yesterday's pack here[1] We will upload p2 repo soon.. [1]https://svn.wso2.org/repos/wso2/scratch/chunk13-release/12-11-2014/ Thanks. -- -Ratha -- -Ratha ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Please merge pull request to ESB - Property Integration Tests
Hi ESB Team, Please merge the pull request [1] to ESB which adds property Integration Tests and other related changes. [1] https://github.com/wso2-dev/product-esb/pull/78 Regards -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Errors in Documentation of WSO2 ESB 4.8.1
While trying to run samples of the ESB came across a mishap in the documentation. Added an issue in JIRA https://wso2.org/jira/browse/ESBJAVA-3418 -- *Farasath Ahamed* Software Engineering Intern WSO2 Inc.; http://wso2.com Mobile: +94 777 603 866 E-Mail: farasath http://goog_1999535192a...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Errors in Documentation of WSO2 ESB 4.8.1
Hi Farasath, Since this is a documentation mishap, it should go to the documentation JIRAs, if I am not mistaken. :-) Adding @Documentation team Cheers On Thu, Nov 13, 2014 at 7:11 PM, Farasath Ahamed farasa...@wso2.com wrote: While trying to run samples of the ESB came across a mishap in the documentation. Added an issue in JIRA https://wso2.org/jira/browse/ESBJAVA-3418 -- *Farasath Ahamed* Software Engineering Intern WSO2 Inc.; http://wso2.com Mobile: +94 777 603 866 E-Mail: farasath http://goog_1999535192a...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Niranda Perera* Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 https://twitter.com/N1R44 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Errors in Documentation of WSO2 ESB 4.8.1
On Thu, Nov 13, 2014 at 3:30 PM, Niranda Perera nira...@wso2.com wrote: Hi Farasath, Since this is a documentation mishap, it should go to the documentation JIRAs, if I am not mistaken. :-) Yes, the ESB Jira should be moved to docs Jira. Adding @Documentation team Cheers On Thu, Nov 13, 2014 at 7:11 PM, Farasath Ahamed farasa...@wso2.com wrote: While trying to run samples of the ESB came across a mishap in the documentation. Added an issue in JIRA https://wso2.org/jira/browse/ESBJAVA-3418 -- *Farasath Ahamed* Software Engineering Intern WSO2 Inc.; http://wso2.com Mobile: +94 777 603 866 E-Mail: farasath http://goog_1999535192a...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Niranda Perera* Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 https://twitter.com/N1R44 -- You received this message because you are subscribed to the Google Groups WSO2 Documentation group. To unsubscribe from this group and stop receiving emails from it, send an email to documentation+unsubscr...@wso2.com. For more options, visit https://groups.google.com/a/wso2.com/d/optout. -- Thanks regards, Nirmal Senior Software Engineer- Platform Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Errors in Documentation of WSO2 ESB 4.8.1
You can easily move it to this space: https://wso2.org/jira/browse/DOCUMENTATION On Thu, Nov 13, 2014 at 3:34 PM, Nirmal Fernando nir...@wso2.com wrote: On Thu, Nov 13, 2014 at 3:30 PM, Niranda Perera nira...@wso2.com wrote: Hi Farasath, Since this is a documentation mishap, it should go to the documentation JIRAs, if I am not mistaken. :-) Yes, the ESB Jira should be moved to docs Jira. Adding @Documentation team Cheers On Thu, Nov 13, 2014 at 7:11 PM, Farasath Ahamed farasa...@wso2.com wrote: While trying to run samples of the ESB came across a mishap in the documentation. Added an issue in JIRA https://wso2.org/jira/browse/ESBJAVA-3418 -- *Farasath Ahamed* Software Engineering Intern WSO2 Inc.; http://wso2.com Mobile: +94 777 603 866 E-Mail: farasath http://goog_1999535192a...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Niranda Perera* Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 https://twitter.com/N1R44 -- You received this message because you are subscribed to the Google Groups WSO2 Documentation group. To unsubscribe from this group and stop receiving emails from it, send an email to documentation+unsubscr...@wso2.com. For more options, visit https://groups.google.com/a/wso2.com/d/optout. -- Thanks regards, Nirmal Senior Software Engineer- Platform Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- Thanks regards, Nirmal Senior Software Engineer- Platform Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Chunk 13 Release
Hi, Please find the latest DSS 3.2.2 pack from https://svn.wso2.org/repos/wso2/scratch/chunk13-release/13-11-2014-DSS/wso2dss-3.2.2.zip Thanks On Tue, Nov 11, 2014 at 8:14 PM, Maninda Edirisooriya mani...@wso2.com wrote: Fixed the build and latest DSS and BAM packs are available at https://svn.wso2.org/repos/wso2/people/maninda/BAM_packs/2014-11-11/ *Maninda Edirisooriya* Senior Software Engineer *WSO2, Inc.*lean.enterprise.middleware. *Blog* : http://maninda.blogspot.com/ *E-mail* : mani...@wso2.com *Skype* : @manindae *Twitter* : @maninda On Tue, Nov 11, 2014 at 2:13 PM, Maninda Edirisooriya mani...@wso2.com wrote: Yes. Yesterday night I built both DSS and BAM and there was a build break and a BAM internal defect. Therefore was not able to release it. At the moment we are in the process of fixing these issues. *Maninda Edirisooriya* Senior Software Engineer *WSO2, Inc.*lean.enterprise.middleware. *Blog* : http://maninda.blogspot.com/ *E-mail* : mani...@wso2.com *Skype* : @manindae *Twitter* : @maninda On Tue, Nov 11, 2014 at 1:17 PM, Chanika Geeganage chan...@wso2.com wrote: Hi, Both BAM and DSS are added to chunk-13. Yesterday there was some issues found in the built BAM pack during smoke test. Maninda will be able to give more details about the issues. We will try to resolve those issues and provide RC packs today. Thanks On Tue, Nov 11, 2014 at 11:56 AM, Nuwan Dias nuw...@wso2.com wrote: AFAIK only DSS is going on chunk-13. @Chanika, can you confirm please? BAM/APIM have moved to chunk-14. Ratha is building packs now and we should be able to provide packs within the day. Thanks, NuwanD. On Tue, Nov 11, 2014 at 11:52 AM, Aparna Karunarathna apa...@wso2.com wrote: Hi, Since the Chunk 13 release date scheduled on 3rd week of November, can you build all chunk 13 packs in the builder machine and share the latest packs and p2 repo with us. Regards, -- *Aparna Karunarathna.* *Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533 0714002533* -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Best Regards.. Chanika Geeganage Software Engineer WSO2, Inc.; http://wso2.com -- Best Regards.. Chanika Geeganage Software Engineer Mobile : +94773522586 WSO2, Inc.; http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Social.core prints a broken pipe exception after a BAM restart
Hi amila, I'll take a look On 13 Nov 2014 15:37, Ruchira Wageesha ruch...@wso2.com wrote: @Manu, Can you please have a look? On Wed, Nov 12, 2014 at 11:56 PM, Amila Maha Arachchi ami...@wso2.com wrote: Hi all, There was a situation where we had to restart BAM. When BAM was restarted, social.core component in AF started printing the following log continuously. Had to restart AF to get rid of it. Have you experienced this? I think something is wrong with the way connections are handled? This does NOT occur after each restart of BAM. But once started appearing, does not go away. TID: [0] [AF] [2014-11-12 21:21:22,651] ERROR {org.wso2.carbon.social.core.ActivityBrowser} - Can't retrieve activities form cassandra. {org.wso2.carbon.social.core.ActivityBrowser} java.sql.SQLNonTransientConnectionException: org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe at org.apache.cassandra.cql.jdbc.CassandraPreparedStatement.init(CassandraPreparedStatement.java:107) at org.apache.cassandra.cql.jdbc.CassandraConnection.prepareStatement(CassandraConnection.java:388) at org.apache.cassandra.cql.jdbc.CassandraConnection.prepareStatement(CassandraConnection.java:372) at org.apache.cassandra.cql.jdbc.CassandraConnection.prepareStatement(CassandraConnection.java:50) at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51) at org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:67) at org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153) at org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41) at org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:80) at com.sun.proxy.$Proxy14.prepareStatement(Unknown Source) at org.wso2.carbon.social.core.ActivityBrowser.listActivities(ActivityBrowser.java:70) at org.wso2.carbon.social.core.ActivityBrowser.listActivitiesChronologically(ActivityBrowser.java:123) at org.wso2.carbon.social.core.SocialActivityServiceImpl.listActivities(SocialActivityServiceImpl.java:28) at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.appmgt.modules.events.listen.c0._c_anonymous_1(/appmgt/modules/events/listen/listen.jag:22) at org.jaggeryjs.rhino.appmgt.modules.events.listen.c0.call(/appmgt/modules/events/listen/listen.jag) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at org.jaggeryjs.rhino.appmgt.modules.events.c0._c_anonymous_2(/appmgt/modules/events/module.jag:8) at org.jaggeryjs.rhino.appmgt.modules.events.c0.call(/appmgt/modules/events/module.jag) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0._c_anonymous_1(/appmgt/site/blocks/events/listen/ajax/listen.jag:42) at org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0.call(/appmgt/site/blocks/events/listen/ajax/listen.jag) at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23) at org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0._c_script_0(/appmgt/site/blocks/events/listen/ajax/listen.jag:6) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) at org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0.exec(/appmgt/site/blocks/events/listen/ajax/listen.jag) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567) at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541) at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at
Re: [Dev] Errors in Documentation of WSO2 ESB 4.8.1
My bad didnt know. I will move it to documentation jira then. Thanks for the pointer. On Thu, Nov 13, 2014 at 8:08 PM, Nirmal Fernando nir...@wso2.com wrote: You can easily move it to this space: https://wso2.org/jira/browse/DOCUMENTATION On Thu, Nov 13, 2014 at 3:34 PM, Nirmal Fernando nir...@wso2.com wrote: On Thu, Nov 13, 2014 at 3:30 PM, Niranda Perera nira...@wso2.com wrote: Hi Farasath, Since this is a documentation mishap, it should go to the documentation JIRAs, if I am not mistaken. :-) Yes, the ESB Jira should be moved to docs Jira. Adding @Documentation team Cheers On Thu, Nov 13, 2014 at 7:11 PM, Farasath Ahamed farasa...@wso2.com wrote: While trying to run samples of the ESB came across a mishap in the documentation. Added an issue in JIRA https://wso2.org/jira/browse/ESBJAVA-3418 -- *Farasath Ahamed* Software Engineering Intern WSO2 Inc.; http://wso2.com Mobile: +94 777 603 866 E-Mail: farasath http://goog_1999535192a...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Niranda Perera* Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 https://twitter.com/N1R44 -- You received this message because you are subscribed to the Google Groups WSO2 Documentation group. To unsubscribe from this group and stop receiving emails from it, send an email to documentation+unsubscr...@wso2.com. For more options, visit https://groups.google.com/a/wso2.com/d/optout. -- Thanks regards, Nirmal Senior Software Engineer- Platform Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- Thanks regards, Nirmal Senior Software Engineer- Platform Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- *Farasath Ahamed* Software Engineering Intern WSO2 Inc.; http://wso2.com Mobile: +94 777 603 866 E-Mail: farasath http://goog_1999535192a...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Getting error in puppet integration to Mac OS X during tools installation using 'brew'
Hi Rajeevan, Can you please explain your goal bit further? Are you trying to setup an AppFactory development environment using puppet on OS X? If so it might not be ideal, better to use VMs or containers due to many reasons: - A desired OS can be used. - Provides OS level isolation for each server. - Entire environment can be wiped away and repeated without affecting the host OS. - Puppet may bring in an overhead. At the present the most widely used tool for this purpose is Vagrant. A simple Vagrant script could bring up an entire software stack in number of hosts in minutes (depending on how software is installed). Thanks On Thu, Nov 13, 2014 at 1:55 PM, Aiyadurai Rajeevan rajeev...@wso2.com wrote: +Sajith Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc E-Mail: rajeev...@wso2.com | Mobile : +94776411636 On Thu, Nov 13, 2014 at 1:52 PM, Aiyadurai Rajeevan rajeev...@wso2.com wrote: Hi All, The above option doesn't resolve the issue, Even though i managed to find a solution suggested in [1] . But this solution leads to maintainability issues as highlighted by Udara. Hence we are trying to achieve this using docker. @Sajith - Referring to STRATOS-776 https://issues.apache.org/jira/browse/STRATOS-776 issue which was raised regarding Stratos image is not starting, As per the comments it will be fixed in 4.1.0-M2. Is it possible to align the fix in 4.0.0? [1] https://forge.puppetlabs.com/gildas/homebrew Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc E-Mail: rajeev...@wso2.com | Mobile : +94776411636 On Thu, Nov 13, 2014 at 9:11 AM, Aiyadurai Rajeevan rajeev...@wso2.com wrote: Hi Danuska/All, Since these all bundled with Ubuntu, We may suggest Mac OS users to manually install all these tools and use the puppet without any changes, Then the code would be as below. $packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree', 'zip'] package { $packages: ensure = installed, } Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc E-Mail: rajeev...@wso2.com | Mobile : +94776411636 On Thu, Nov 13, 2014 at 8:32 AM, Udara Liyanage ud...@wso2.com wrote: Hi Danushka, I don't think having a puppet master for Mac is a good option. Then in future you will have to have puppet masters for every platform which is not maintainable friendly. A change would have to duplicate in every where. Having a single puppet master for each environment must be the recommended approach. Touched, not typed. Erroneous words are a feature, not a typo. On Nov 13, 2014 6:05 AM, Danushka Fernando danush...@wso2.com wrote: Hi Sorry I misread first time. Few questions. If this is done for one time will it work after that ? Is there other things that breaks? If answers are yes and no the I would be fine with installing it manually for first time for mac since this is just dev setup. @Dimuthu : WDYT? But if it is not the case then we may need to have separate puppet master for mac. [1] [1] http://projects.puppetlabs.com/projects/1/wiki/puppet_mac_osx Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Nov 12, 2014 at 6:20 PM, Aiyadurai Rajeevan rajeev...@wso2.com wrote: Hi All, We are in the process of integrating puppet scripts to Mac OS X, Where we have implementation to install list of tools to be installed by puppet script when executed, The puppet code looks like below. *$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree', 'zip']* * package { $packages:* *ensure = installed,* *provider = 'brew',* *}* Here, *$Packages* has the tools to be installed using the *brew*. When i execute this, it gives error as below, *Error: Failed to apply catalog: Parameter provider failed on Package[lsof]: Invalid package provider 'brew' at /home/rajeevan/appfactory/modules/wso2base/manifests/packages.pp:9* *Wrapped exception:* *Invalid package provider 'brew'* *Wrapped exception:* *Invalid package provider 'brew'* Then we executed the command - *brew install unzip* - just to ensure the unzip tool is getting installed, but it doesn't. google it and found a solution [1] *$ brew tap homebrew/dupes * *$ brew install unzip* This works nicely, But, As far as puppet concerned, How to do this in my above puppet script? Appreciate your view on this please. [1] http://apple.stackexchange.com/questions/149080/how-can-i-update-my-version-of-unzip-to-version-6-00-or-higher Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc Lean . Enterprise . Middleware E-Mail: rajeev...@wso2.com | Mobile : +94776411636 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] HTTP Patch support by ESB 4.8.1
Same issue exists in ESB 4.9.0 m3. On Thu, Apr 24, 2014 at 2:39 AM, Malaka Silva mal...@wso2.com wrote: Yes synapse-extensions_2.1.2.wso2v4 is causing this. On Thu, Apr 24, 2014 at 9:49 AM, Madhawa Bandara madh...@wso2.com wrote: I originally put the following patches: *synapse-core_2.1.2.wso2v4* *synapse-nhttp-transport_2.1.2.wso2v4 * *synapse-extensions_2.1.2.wso2v4* *org.wso2.carbon.mediation.library_4.2.0* But the I tried only the following 2 patches: *synapse-core_2.1.2.wso2v4* *synapse-nhttp-transport_2.1.2.wso2v4* Now everything works well. On Wed, Apr 23, 2014 at 1:34 PM, Krishantha Dinesh kr...@krishantha.com wrote: Agreed with Miyuru. however this is experienced ONLY on WSO2 environment. but not in our local environments. that's why no idea what is the cause. however i have noted this only cause when we use java script mediator. appriciate any idea to solve this as few integration testing onhold due to this un identified issue :) On Wed, Apr 23, 2014 at 7:19 AM, Miyuru Wanninayaka miy...@wso2.com wrote: I can't imagine a way which fixed done in [1],[2] cause JSON issues in script mediator, it's a only minor change to http request factory and nothing to do with script mediator. It should be a some other fix done early causing this issue. [1] https://wso2.org/jira/browse/ESBJAVA-3051 [2] https://wso2.org/jira/browse/ESBJAVA-3061 On Tue, Apr 22, 2014 at 1:14 PM, Krishantha Dinesh kr...@krishantha.com wrote: this is already experienced issue with above patch. hope malaka can help you on solve this as he is already solve this on other connector Malaka can you share the solution please On Tue, Apr 22, 2014 at 5:09 PM, Madhawa Bandara madh...@wso2.com wrote: Hi, I applied the above patches and the requests with HTTP PATCH method work well now. But now I get a new exception for the requests in which a JSON payload is used (inside the script mediator with language=js): com.sun.phobos.script.util.ExtendedScriptException: org.mozilla.javascript.EcmaError: ReferenceError: JSON is not defined. Note that these methods worked fine *before *applying the patch. Any suggestions? On Mon, Apr 21, 2014 at 10:38 AM, Malaka Silva mal...@wso2.com wrote: Hi Kasun, It's already done. https://wso2.org/jira/browse/ESBJAVA-3051 https://wso2.org/jira/browse/ESBJAVA-3061 Best Regards, Malaka On Mon, Apr 21, 2014 at 10:23 AM, Kasun Indrasiri ka...@wso2.com wrote: Have we committed this in to trunk? If not please do so. On Mon, Apr 21, 2014 at 10:21 AM, Malaka Silva mal...@wso2.com wrote: Hi Mahawa, Currently it's not supported. It'll be available with the next release. ESB 4.9.0 But there is a patch for this. Best Regards, Malaka On Mon, Apr 21, 2014 at 10:13 AM, Madhawa Bandara madh...@wso2.com wrote: Hi, Does the ESB 4.8.1 support the HTTP patch method? When I make a http patch request, it is shown as an HTTP POST on the wire. -- Regards, *Madhawa Bandara* Software Engineer WSO2, Inc. lean.enterprise.middleware Mobile - *+94777487726 %2B94777487726* Blog* - *classdeffound.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Kasun Indrasiri Software Architect WSO2, Inc.; http://wso2.com lean.enterprise.middleware cell: +94 77 556 5206 Blog : http://kasunpanorama.blogspot.com/ -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- Regards, *Madhawa Bandara* Software Engineer WSO2, Inc. lean.enterprise.middleware Mobile - *+94777487726 %2B94777487726* Blog* - *classdeffound.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing
[Dev] [CEP] Failed to access registry when CEP starts
Hi All, We have written two CEP extensions to load a model from the registry using WS-API, transformer and function. Our extensions work fine when CEP is in a stable mode. but after CEP restarts CEP tries to execute our extensions in its beginning state. at that time registry was refusing our request. due to that reason we got this following error,but Registry was available at that time. - ERROR - {EventProcessorDeployer} Execution plan is not deployed and in inactive state : NERExecutionPlan.xml org.wso2.carbon.event.processor.core.exception.ExecutionPlanConfigurationException: Invalid query specified, java.net.ConnectException: Connection refused This error occurs only for one execution plan (NERExecutionPlan) which we used our transformer. Other execution plan (ClassifyingExecutionPlan) perfectly works in the beginning state also. both extensions are using models from the registry. We have tried threads but it didn't work.we hold the Extension thread till another thread reconnects to the registry and pass the file. then CEP didn't start properly :( if we release the Extension thread, then file not be loaded. Is there any proper way to solve this? We load models in the init method. As per my understanding CEP execute init methods in the beginning state. If we load models in processEvent method we can neglect these errors. but It's not a proper way. Please how can we figure out this. Please find the attached error messages and execution plans files. Thanks, Madhawa -- *Madhawa Gunasekara* Software Engineering Intern WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 719411002 [2014-11-14 03:28:36,296] ERROR - {EventProcessorDeployer} Execution plan is not deployed and in inactive state : NERExecutionPlan.xml org.wso2.carbon.event.processor.core.exception.ExecutionPlanConfigurationException: Invalid query specified, java.net.ConnectException: Connection refused at org.wso2.carbon.event.processor.core.internal.CarbonEventProcessorService.addExecutionPlanConfiguration(CarbonEventProcessorService.java:333) at org.wso2.carbon.event.processor.core.EventProcessorDeployer.processDeploy(EventProcessorDeployer.java:138) at org.wso2.carbon.event.processor.core.EventProcessorDeployer.deploy(EventProcessorDeployer.java:75) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254) at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:135) at org.wso2.carbon.core.CarbonAxisConfigurator.deployServices(CarbonAxisConfigurator.java:559) at org.wso2.carbon.core.internal.DeploymentServerStartupObserver.completingServerStartup(DeploymentServerStartupObserver.java:48) at org.wso2.carbon.core.internal.CarbonCoreServiceComponent.notifyBefore(CarbonCoreServiceComponent.java:233) at org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:182) at org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:285) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451) at org.wso2.carbon.server.admin.internal.ServerAdminServiceComponent.activate(ServerAdminServiceComponent.java:106) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
Re: [Dev] Accessing a DB through bundle starter
Hi Lochana, On Thu, Nov 13, 2014 at 5:39 PM, Lochana Menikarachchi loch...@wso2.com wrote: Wonder whether it is due to bundle load order.. Is there anyway to change it.. This could well be an issue with the bundle start up order. However, have we tried putting a few logs in ndatasource bundle activator too and made sure that this really is the reason why the JNDI look-up failed? On a side note, I'm seeing you guys've extended BundleActivator to implement the bundle initializer. I'd recommend you guys follow the Service Component approach where it is purely declarative and much appropriate for implementations that require access to a lot of external declarative service dependencies, which is quite common across most of the components we've got in the platform. Not only that, the former is generally considered an old approach of activating a bundle, which could, however, be used if you need to get hold of some of the very lower level controls of the bundle activation process. There's a quite a few other advantages too like being able to define more than one Service Components within an OSGi bundle etc, but IMO, this is not quite needed in most of the cases we often tend to deal with, within the platform. Cheers, Prabath [2014-11-13 17:32:04,594] INFO {org.wso2.carbon.ml.dataset.DatasetServiceActivator} - Dataset service started [2014-11-13 17:32:04,596] INFO {org.wso2.carbon.ml.model.ModelServiceActivator} - Model service started [2014-11-13 17:32:04,597] INFO {org.wso2.carbon.ml.project.mgt.ProjectManagementServiceActivator} - Project management service started [2014-11-13 17:32:04,597] INFO {org.wso2.carbon.ml.project.mgt.ProjectManagementServiceActivator} - ML Wizard URL : http://localhost:9763/mlUI [2014-11-13 17:32:05,536] INFO {org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager} - LDAP connection created successfully in read-write mode [2014-11-13 17:32:05,709] INFO {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} - Configured Registry in 83ms On Thu, Nov 13, 2014 at 4:59 PM, Lochana Menikarachchi loch...@wso2.com wrote: Is it possible access a database within osgi bundle's start method? public void start(BundleContext context) throws Exception { ModelService modelService = new ModelService(); context.registerService(ModelService.class.getName(), modelService, null); * MLAlgorithmConfiguration mlAlgorithmConfiguration = new MLAlgorithmConfiguration(); mlAlgorithmConfiguration.loadMLAlgorithmConfigurations();* logger.info(Model service started); } loadMLConfigurations loads some default values to a database. Adding bold lettered lines throws following exception INFO {org.wso2.carbon.ml.dataset.DatasetServiceActivator} - Dataset service started [2014-11-13 16:48:49,589] ERROR {org.wso2.carbon.ml.model.DatabaseHandler} - An error occurred while connecting to database. Name [jdbc/WSO2ML_DB] is not bound in this Context. Unable to find [jdbc]. javax.naming.NameNotFoundException: Name [jdbc/WSO2ML_DB] is not bound in this Context. Unable to find [jdbc]. at org.apache.naming.NamingContext.lookup(NamingContext.java:819) at org.apache.naming.NamingContext.lookup(NamingContext.java:167) at org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:705) at javax.naming.InitialContext.lookup(InitialContext.java:411) at org.wso2.carbon.ml.model.DatabaseHandler.getDatabaseHandler(DatabaseHandler.java:62) -- Lochana Menikarachchi Senior Tech Lead WSO2 Inc. -- Lochana Menikarachchi Senior Tech Lead WSO2 Inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Writing a CEP extension to receive a video or image
Hi Maninda, I agree with the concern. However, as far as the Hemika's project is concerned, lets accept that inefficiency to keep it within 3 weeks scope. Having said that, I am very much interested how video stream like data set can be received and processed though an event stream (within Siddhi). May be the best we can do is to process them at an input adapter and only send high level events. If you understand this domain, can we chat about this a bit. --Srinath On Thu, Nov 13, 2014 at 6:17 PM, Maninda Edirisooriya mani...@wso2.com wrote: In general video streams are compressed in time domain. If we send one frame as an event this will not be achieved and the required bandwidth will be higher. Instead if the video stream can be chunked and decompress inside the server / engine, bandwidth could have been saved. BTW we can use the same input adaptors to get videos to BAM and do some batch processing if map-reduce implementations can be found for computer vision algorithms like http://hipi.cs.virginia.edu/ *Maninda Edirisooriya* Senior Software Engineer *WSO2, Inc.*lean.enterprise.middleware. *Blog* : http://maninda.blogspot.com/ *E-mail* : mani...@wso2.com *Skype* : @manindae *Twitter* : @maninda On Thu, Nov 13, 2014 at 8:32 AM, Srinath Perera srin...@wso2.com wrote: Adding dev@ Hi Suho, Mohan, Open CV (computer vision library) let you train and build a model that generates an XML file that can be used from a java program to classify video streams (e.g. detect an human, vehicle). Idea of the project is to write an CEP extension that takes the XML file and detect vision detection. We can send each frame in video as an event. However, it is a byte array. How can we send this? If he used siddhi, can he send it by defining type as object? Long term we should define an byte[] --Srinath On Wed, Nov 12, 2014 at 3:35 PM, Hemika Kodikara hem...@wso2.com wrote: Hi all, This is regarding the Fast Track Training Project that I selected to complete [1]. The task is to create a CEP extension which will receive a stream of video and do several image processing tasks to identify an object. Need to know more insight on how to send input a video stream. Even though it is a video, we can use it frames. Which will be a set of images. [1] - https://redmine.wso2.com/issues/2646 Hemika Kodikara Software Engineer WSO2 Inc. lean . enterprise . middleware http://wso2.com Mobile : +9477762 -- Blog: http://srinathsview.blogspot.com twitter:@srinath_perera Site: http://people.apache.org/~hemapani/ Photos: http://www.flickr.com/photos/hemapani/ Phone: 0772360902 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Blog: http://srinathsview.blogspot.com twitter:@srinath_perera Site: http://people.apache.org/~hemapani/ Photos: http://www.flickr.com/photos/hemapani/ Phone: 0772360902 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Writing a CEP extension to receive a video or image
Hi, Video is a set of images in a given time framework, Is not that possible do the prepossessing and normalization before the siddhi Engine? Best Regards, Vanji On Fri, Nov 14, 2014 at 10:27 AM, Srinath Perera srin...@wso2.com wrote: Hi Maninda, I agree with the concern. However, as far as the Hemika's project is concerned, lets accept that inefficiency to keep it within 3 weeks scope. Having said that, I am very much interested how video stream like data set can be received and processed though an event stream (within Siddhi). May be the best we can do is to process them at an input adapter and only send high level events. If you understand this domain, can we chat about this a bit. --Srinath On Thu, Nov 13, 2014 at 6:17 PM, Maninda Edirisooriya mani...@wso2.com wrote: In general video streams are compressed in time domain. If we send one frame as an event this will not be achieved and the required bandwidth will be higher. Instead if the video stream can be chunked and decompress inside the server / engine, bandwidth could have been saved. BTW we can use the same input adaptors to get videos to BAM and do some batch processing if map-reduce implementations can be found for computer vision algorithms like http://hipi.cs.virginia.edu/ *Maninda Edirisooriya* Senior Software Engineer *WSO2, Inc.*lean.enterprise.middleware. *Blog* : http://maninda.blogspot.com/ *E-mail* : mani...@wso2.com *Skype* : @manindae *Twitter* : @maninda On Thu, Nov 13, 2014 at 8:32 AM, Srinath Perera srin...@wso2.com wrote: Adding dev@ Hi Suho, Mohan, Open CV (computer vision library) let you train and build a model that generates an XML file that can be used from a java program to classify video streams (e.g. detect an human, vehicle). Idea of the project is to write an CEP extension that takes the XML file and detect vision detection. We can send each frame in video as an event. However, it is a byte array. How can we send this? If he used siddhi, can he send it by defining type as object? Long term we should define an byte[] --Srinath On Wed, Nov 12, 2014 at 3:35 PM, Hemika Kodikara hem...@wso2.com wrote: Hi all, This is regarding the Fast Track Training Project that I selected to complete [1]. The task is to create a CEP extension which will receive a stream of video and do several image processing tasks to identify an object. Need to know more insight on how to send input a video stream. Even though it is a video, we can use it frames. Which will be a set of images. [1] - https://redmine.wso2.com/issues/2646 Hemika Kodikara Software Engineer WSO2 Inc. lean . enterprise . middleware http://wso2.com Mobile : +9477762 -- Blog: http://srinathsview.blogspot.com twitter:@srinath_perera Site: http://people.apache.org/~hemapani/ Photos: http://www.flickr.com/photos/hemapani/ Phone: 0772360902 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Blog: http://srinathsview.blogspot.com twitter:@srinath_perera Site: http://people.apache.org/~hemapani/ Photos: http://www.flickr.com/photos/hemapani/ Phone: 0772360902 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Sivajothy Vanjikumaran *Senior Software Engineer* *Integration Technologies Team* *WSO2 Inc. http://wso2.com http://wso2.com/* *Mobile:(+94)777219209* [image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter] https://twitter.com/vanjikumaran [image: LinkedIn] http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image: Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare] http://www.slideshare.net/vanjikumaran This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, re-transmit, disseminate, or otherwise use the information contained in this communication. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Distributed setup BAM 250 - Erorr java.lang.NoClassDefFoundError: org/wso2/carbon/stratos/common/listeners/TenantMgtListener
Hi, I am trying to set up a distributed set up locally using 2 BAM packs having analyser, receiver and Hadoop running on one pack and cassandra on the other pack. when i start cassandra node it successfully starts. But when I try to start BAM using './wso2server.sh -Dsetup' I get an exception as mentioned below. furthermore I have attached the configurations steps and full error logs. Highly appreciate it if someone help me with this issue. Error --- [2014-11-14 07:52:11,436] ERROR {org.wso2.carbon.cassandra.server.internal.CassandraServerDSComponent} - Error occurred while initializing Cassandra Server component java.lang.NoClassDefFoundError: org/wso2/carbon/stratos/common/listeners/TenantMgtListener at org.wso2.carbon.cassandra.server.internal.CassandraServerDSComponent.activate(CassandraServerDSComponent.java:123) Thank you in advance. ~Sewmi~ Sewmini Jayaweera *Software Engineer - QA Team* Mobile: +94 (0) 773 381 250 sewm...@wso2.com [2014-11-14 07:51:53,692] INFO {org.wso2.carbon.databridge.agent.thrift.internal.AgentDS} - Successfully deployed Agent Client [2014-11-14 07:52:11,436] ERROR {org.wso2.carbon.cassandra.server.internal.CassandraServerDSComponent} - Error occurred while initializing Cassandra Server component java.lang.NoClassDefFoundError: org/wso2/carbon/stratos/common/listeners/TenantMgtListener at org.wso2.carbon.cassandra.server.internal.CassandraServerDSComponent.activate(CassandraServerDSComponent.java:123) 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.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451) at org.wso2.carbon.identity.authentication.internal.AuthenticationServiceComponent.activate(AuthenticationServiceComponent.java:57) 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.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) at
Re: [Dev] Social.core prints a broken pipe exception after a BAM restart
Could you also move the ticket to in-progress state. Thanks, Yumani On Thu, Nov 13, 2014 at 10:35 PM, Manuranga Perera m...@wso2.com wrote: Hi amila, I'll take a look On 13 Nov 2014 15:37, Ruchira Wageesha ruch...@wso2.com wrote: @Manu, Can you please have a look? On Wed, Nov 12, 2014 at 11:56 PM, Amila Maha Arachchi ami...@wso2.com wrote: Hi all, There was a situation where we had to restart BAM. When BAM was restarted, social.core component in AF started printing the following log continuously. Had to restart AF to get rid of it. Have you experienced this? I think something is wrong with the way connections are handled? This does NOT occur after each restart of BAM. But once started appearing, does not go away. TID: [0] [AF] [2014-11-12 21:21:22,651] ERROR {org.wso2.carbon.social.core.ActivityBrowser} - Can't retrieve activities form cassandra. {org.wso2.carbon.social.core.ActivityBrowser} java.sql.SQLNonTransientConnectionException: org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe at org.apache.cassandra.cql.jdbc.CassandraPreparedStatement.init(CassandraPreparedStatement.java:107) at org.apache.cassandra.cql.jdbc.CassandraConnection.prepareStatement(CassandraConnection.java:388) at org.apache.cassandra.cql.jdbc.CassandraConnection.prepareStatement(CassandraConnection.java:372) at org.apache.cassandra.cql.jdbc.CassandraConnection.prepareStatement(CassandraConnection.java:50) at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51) at org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:67) at org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153) at org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41) at org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:80) at com.sun.proxy.$Proxy14.prepareStatement(Unknown Source) at org.wso2.carbon.social.core.ActivityBrowser.listActivities(ActivityBrowser.java:70) at org.wso2.carbon.social.core.ActivityBrowser.listActivitiesChronologically(ActivityBrowser.java:123) at org.wso2.carbon.social.core.SocialActivityServiceImpl.listActivities(SocialActivityServiceImpl.java:28) at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.appmgt.modules.events.listen.c0._c_anonymous_1(/appmgt/modules/events/listen/listen.jag:22) at org.jaggeryjs.rhino.appmgt.modules.events.listen.c0.call(/appmgt/modules/events/listen/listen.jag) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at org.jaggeryjs.rhino.appmgt.modules.events.c0._c_anonymous_2(/appmgt/modules/events/module.jag:8) at org.jaggeryjs.rhino.appmgt.modules.events.c0.call(/appmgt/modules/events/module.jag) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0._c_anonymous_1(/appmgt/site/blocks/events/listen/ajax/listen.jag:42) at org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0.call(/appmgt/site/blocks/events/listen/ajax/listen.jag) at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23) at org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0._c_script_0(/appmgt/site/blocks/events/listen/ajax/listen.jag:6) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) at org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0.exec(/appmgt/site/blocks/events/listen/ajax/listen.jag) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567) at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541) at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at
[Dev] How to restrict accessing web application
Hi all, I am currently working on upgrading the solr in registry indexing. with the proposed design, we are going to deploy solr webapp in the carbon server and use it for registry indexing and we need to allow accessing solr web app only for admin users. What is the best way I could follow to restrict the web app access in carbon server. Thanks -- Danesh Kuruppu Software Engineer WSO2 Inc, Mobile: +94 (77) 1690552 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Writing a CEP extension to receive a video or image
Then should he write an input adapter instead of an extensions and only handle higher level events in Siddhi? I am OK for that approach! On Fri, Nov 14, 2014 at 8:03 AM, Vanjikumaran Sivajothy va...@wso2.com wrote: Hi, Video is a set of images in a given time framework, Is not that possible do the prepossessing and normalization before the siddhi Engine? Best Regards, Vanji On Fri, Nov 14, 2014 at 10:27 AM, Srinath Perera srin...@wso2.com wrote: Hi Maninda, I agree with the concern. However, as far as the Hemika's project is concerned, lets accept that inefficiency to keep it within 3 weeks scope. Having said that, I am very much interested how video stream like data set can be received and processed though an event stream (within Siddhi). May be the best we can do is to process them at an input adapter and only send high level events. If you understand this domain, can we chat about this a bit. --Srinath On Thu, Nov 13, 2014 at 6:17 PM, Maninda Edirisooriya mani...@wso2.com wrote: In general video streams are compressed in time domain. If we send one frame as an event this will not be achieved and the required bandwidth will be higher. Instead if the video stream can be chunked and decompress inside the server / engine, bandwidth could have been saved. BTW we can use the same input adaptors to get videos to BAM and do some batch processing if map-reduce implementations can be found for computer vision algorithms like http://hipi.cs.virginia.edu/ *Maninda Edirisooriya* Senior Software Engineer *WSO2, Inc.*lean.enterprise.middleware. *Blog* : http://maninda.blogspot.com/ *E-mail* : mani...@wso2.com *Skype* : @manindae *Twitter* : @maninda On Thu, Nov 13, 2014 at 8:32 AM, Srinath Perera srin...@wso2.com wrote: Adding dev@ Hi Suho, Mohan, Open CV (computer vision library) let you train and build a model that generates an XML file that can be used from a java program to classify video streams (e.g. detect an human, vehicle). Idea of the project is to write an CEP extension that takes the XML file and detect vision detection. We can send each frame in video as an event. However, it is a byte array. How can we send this? If he used siddhi, can he send it by defining type as object? Long term we should define an byte[] --Srinath On Wed, Nov 12, 2014 at 3:35 PM, Hemika Kodikara hem...@wso2.com wrote: Hi all, This is regarding the Fast Track Training Project that I selected to complete [1]. The task is to create a CEP extension which will receive a stream of video and do several image processing tasks to identify an object. Need to know more insight on how to send input a video stream. Even though it is a video, we can use it frames. Which will be a set of images. [1] - https://redmine.wso2.com/issues/2646 Hemika Kodikara Software Engineer WSO2 Inc. lean . enterprise . middleware http://wso2.com Mobile : +9477762 -- Blog: http://srinathsview.blogspot.com twitter:@srinath_perera Site: http://people.apache.org/~hemapani/ Photos: http://www.flickr.com/photos/hemapani/ Phone: 0772360902 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Blog: http://srinathsview.blogspot.com twitter:@srinath_perera Site: http://people.apache.org/~hemapani/ Photos: http://www.flickr.com/photos/hemapani/ Phone: 0772360902 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Sivajothy Vanjikumaran *Senior Software Engineer* *Integration Technologies Team* *WSO2 Inc. http://wso2.com http://wso2.com/* *Mobile:(+94)777219209* [image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter] https://twitter.com/vanjikumaran [image: LinkedIn] http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image: Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare] http://www.slideshare.net/vanjikumaran This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, re-transmit, disseminate, or otherwise use the information contained in this communication. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions -- Blog: http://srinathsview.blogspot.com twitter:@srinath_perera Site: http://people.apache.org/~hemapani/ Photos: http://www.flickr.com/photos/hemapani/ Phone: 0772360902 ___ Dev mailing list
Re: [Dev] Errors in Documentation of WSO2 ESB 4.8.1
Hello, Thank you for reporting this. I will do the required correction and update the JIra. Best Regards, Rukshani. On Thu, Nov 13, 2014 at 10:39 PM, Farasath Ahamed farasa...@wso2.com wrote: My bad didnt know. I will move it to documentation jira then. Thanks for the pointer. On Thu, Nov 13, 2014 at 8:08 PM, Nirmal Fernando nir...@wso2.com wrote: You can easily move it to this space: https://wso2.org/jira/browse/DOCUMENTATION On Thu, Nov 13, 2014 at 3:34 PM, Nirmal Fernando nir...@wso2.com wrote: On Thu, Nov 13, 2014 at 3:30 PM, Niranda Perera nira...@wso2.com wrote: Hi Farasath, Since this is a documentation mishap, it should go to the documentation JIRAs, if I am not mistaken. :-) Yes, the ESB Jira should be moved to docs Jira. Adding @Documentation team Cheers On Thu, Nov 13, 2014 at 7:11 PM, Farasath Ahamed farasa...@wso2.com wrote: While trying to run samples of the ESB came across a mishap in the documentation. Added an issue in JIRA https://wso2.org/jira/browse/ESBJAVA-3418 -- *Farasath Ahamed* Software Engineering Intern WSO2 Inc.; http://wso2.com Mobile: +94 777 603 866 E-Mail: farasath http://goog_1999535192a...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Niranda Perera* Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 https://twitter.com/N1R44 -- You received this message because you are subscribed to the Google Groups WSO2 Documentation group. To unsubscribe from this group and stop receiving emails from it, send an email to documentation+unsubscr...@wso2.com. For more options, visit https://groups.google.com/a/wso2.com/d/optout. -- Thanks regards, Nirmal Senior Software Engineer- Platform Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- Thanks regards, Nirmal Senior Software Engineer- Platform Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- *Farasath Ahamed* Software Engineering Intern WSO2 Inc.; http://wso2.com Mobile: +94 777 603 866 E-Mail: farasath http://goog_1999535192a...@wso2.com -- You received this message because you are subscribed to the Google Groups WSO2 Documentation group. To unsubscribe from this group and stop receiving emails from it, send an email to documentation+unsubscr...@wso2.com. For more options, visit https://groups.google.com/a/wso2.com/d/optout. -- Rukshani Weerasinha WSO2 Inc. Web:http://wso2.com Mobile: 0777 683 738 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APIM pack] 12-11-2014
Hi Vijayaratha, Thanks for the update. Please let me know when the P2 repo is uploaded. Regards, On Thu, Nov 13, 2014 at 7:00 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: We faced an issue in above pack and rebuilt a pack. New pack is hosted here[1] [1]https://svn.wso2.org/repos/wso2/scratch/chunk13-release/13-11-2014/ Thanks. On 13 November 2014 12:05, Vijayaratha Vijayasingam rat...@wso2.com wrote: Hi all; Please find yesterday's pack here[1] We will upload p2 repo soon.. [1]https://svn.wso2.org/repos/wso2/scratch/chunk13-release/12-11-2014/ Thanks. -- -Ratha -- -Ratha ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Jerad Rutnam | **Software Engineer - UI* WSO2, Inc. www.wso2.com *Email: je...@wso2.com je...@wso2.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Chunk 13 Release
Hi Chanika, Can you please share the p2 repo as well? Regards, Aparna. On Thu, Nov 13, 2014 at 9:19 PM, Chanika Geeganage chan...@wso2.com wrote: Hi, Please find the latest DSS 3.2.2 pack from https://svn.wso2.org/repos/wso2/scratch/chunk13-release/13-11-2014-DSS/wso2dss-3.2.2.zip Thanks On Tue, Nov 11, 2014 at 8:14 PM, Maninda Edirisooriya mani...@wso2.com wrote: Fixed the build and latest DSS and BAM packs are available at https://svn.wso2.org/repos/wso2/people/maninda/BAM_packs/2014-11-11/ *Maninda Edirisooriya* Senior Software Engineer *WSO2, Inc.*lean.enterprise.middleware. *Blog* : http://maninda.blogspot.com/ *E-mail* : mani...@wso2.com *Skype* : @manindae *Twitter* : @maninda On Tue, Nov 11, 2014 at 2:13 PM, Maninda Edirisooriya mani...@wso2.com wrote: Yes. Yesterday night I built both DSS and BAM and there was a build break and a BAM internal defect. Therefore was not able to release it. At the moment we are in the process of fixing these issues. *Maninda Edirisooriya* Senior Software Engineer *WSO2, Inc.*lean.enterprise.middleware. *Blog* : http://maninda.blogspot.com/ *E-mail* : mani...@wso2.com *Skype* : @manindae *Twitter* : @maninda On Tue, Nov 11, 2014 at 1:17 PM, Chanika Geeganage chan...@wso2.com wrote: Hi, Both BAM and DSS are added to chunk-13. Yesterday there was some issues found in the built BAM pack during smoke test. Maninda will be able to give more details about the issues. We will try to resolve those issues and provide RC packs today. Thanks On Tue, Nov 11, 2014 at 11:56 AM, Nuwan Dias nuw...@wso2.com wrote: AFAIK only DSS is going on chunk-13. @Chanika, can you confirm please? BAM/APIM have moved to chunk-14. Ratha is building packs now and we should be able to provide packs within the day. Thanks, NuwanD. On Tue, Nov 11, 2014 at 11:52 AM, Aparna Karunarathna apa...@wso2.com wrote: Hi, Since the Chunk 13 release date scheduled on 3rd week of November, can you build all chunk 13 packs in the builder machine and share the latest packs and p2 repo with us. Regards, -- *Aparna Karunarathna.* *Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533 0714002533* -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Best Regards.. Chanika Geeganage Software Engineer WSO2, Inc.; http://wso2.com -- Best Regards.. Chanika Geeganage Software Engineer Mobile : +94773522586 WSO2, Inc.; http://wso2.com -- *Aparna Karunarathna.* *Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Carbon] Implications of Hostname verification set to AllowAll in HTTPS?
Hi carbon team, This is based on a WSO2 customer query. While using APIM with a custom host name, the following error occurred. 2014-11-11 09:12:09,794 [-] [HTTPS-Sender I/O dispatcher-1] ERROR TargetHandler I/O error: Host name verification failed for host : ourserver.development.host.com javax.net.ssl.SSLException: Host name verification failed for host : ourserver.development.host.com at org.apache.synapse.transport.http.conn.ClientSSLSetupHandler.verify(ClientSSLSetupHandler.java:152) at org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:285) at org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:380) at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:118) at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:160) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:342) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:320) at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280) at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:604) at java.lang.Thread.run(Thread.java:745) This was RESOLVED by modifying the HostnameVerifier parameter of the transportSender element to 'AllowAll'. But I have the following quesitons. 1. In a production environment, is it a good practice for making HostnameVerifier AllowAll? 2. What are the implications of making HostnameVerifier AllowAll? 3. Is there any other way to handle this rather than verifying all the hostnames by default?? Look forward to hearing from you. Cheers Rgds -- *Niranda Perera* Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 https://twitter.com/N1R44 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Getting error in puppet integration to Mac OS X during tools installation using 'brew'
Hi Imesh, Thanks, Yes we are trying to setup Appfactory Dev environment using puppet. Agree with your suggestion. Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc E-Mail: rajeev...@wso2.com | Mobile : +94776411636 On Thu, Nov 13, 2014 at 11:01 PM, Imesh Gunaratne im...@wso2.com wrote: Hi Rajeevan, Can you please explain your goal bit further? Are you trying to setup an AppFactory development environment using puppet on OS X? If so it might not be ideal, better to use VMs or containers due to many reasons: - A desired OS can be used. - Provides OS level isolation for each server. - Entire environment can be wiped away and repeated without affecting the host OS. - Puppet may bring in an overhead. At the present the most widely used tool for this purpose is Vagrant. A simple Vagrant script could bring up an entire software stack in number of hosts in minutes (depending on how software is installed). Thanks On Thu, Nov 13, 2014 at 1:55 PM, Aiyadurai Rajeevan rajeev...@wso2.com wrote: +Sajith Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc E-Mail: rajeev...@wso2.com | Mobile : +94776411636 On Thu, Nov 13, 2014 at 1:52 PM, Aiyadurai Rajeevan rajeev...@wso2.com wrote: Hi All, The above option doesn't resolve the issue, Even though i managed to find a solution suggested in [1] . But this solution leads to maintainability issues as highlighted by Udara. Hence we are trying to achieve this using docker. @Sajith - Referring to STRATOS-776 https://issues.apache.org/jira/browse/STRATOS-776 issue which was raised regarding Stratos image is not starting, As per the comments it will be fixed in 4.1.0-M2. Is it possible to align the fix in 4.0.0? [1] https://forge.puppetlabs.com/gildas/homebrew Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc E-Mail: rajeev...@wso2.com | Mobile : +94776411636 On Thu, Nov 13, 2014 at 9:11 AM, Aiyadurai Rajeevan rajeev...@wso2.com wrote: Hi Danuska/All, Since these all bundled with Ubuntu, We may suggest Mac OS users to manually install all these tools and use the puppet without any changes, Then the code would be as below. $packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree', 'zip'] package { $packages: ensure = installed, } Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc E-Mail: rajeev...@wso2.com | Mobile : +94776411636 On Thu, Nov 13, 2014 at 8:32 AM, Udara Liyanage ud...@wso2.com wrote: Hi Danushka, I don't think having a puppet master for Mac is a good option. Then in future you will have to have puppet masters for every platform which is not maintainable friendly. A change would have to duplicate in every where. Having a single puppet master for each environment must be the recommended approach. Touched, not typed. Erroneous words are a feature, not a typo. On Nov 13, 2014 6:05 AM, Danushka Fernando danush...@wso2.com wrote: Hi Sorry I misread first time. Few questions. If this is done for one time will it work after that ? Is there other things that breaks? If answers are yes and no the I would be fine with installing it manually for first time for mac since this is just dev setup. @Dimuthu : WDYT? But if it is not the case then we may need to have separate puppet master for mac. [1] [1] http://projects.puppetlabs.com/projects/1/wiki/puppet_mac_osx Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Nov 12, 2014 at 6:20 PM, Aiyadurai Rajeevan rajeev...@wso2.com wrote: Hi All, We are in the process of integrating puppet scripts to Mac OS X, Where we have implementation to install list of tools to be installed by puppet script when executed, The puppet code looks like below. *$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree', 'zip']* * package { $packages:* *ensure = installed,* *provider = 'brew',* *}* Here, *$Packages* has the tools to be installed using the *brew*. When i execute this, it gives error as below, *Error: Failed to apply catalog: Parameter provider failed on Package[lsof]: Invalid package provider 'brew' at /home/rajeevan/appfactory/modules/wso2base/manifests/packages.pp:9* *Wrapped exception:* *Invalid package provider 'brew'* *Wrapped exception:* *Invalid package provider 'brew'* Then we executed the command - *brew install unzip* - just to ensure the unzip tool is getting installed, but it doesn't. google it and found a solution [1] *$ brew tap homebrew/dupes * *$ brew install unzip* This works nicely, But, As far as puppet concerned, How to do this in my above puppet script? Appreciate your view on this please. [1] http://apple.stackexchange.com/questions/149080/how-can-i-update-my-version-of-unzip-to-version-6-00-or-higher Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc Lean . Enterprise . Middleware
Re: [Dev] [Carbon] Implications of Hostname verification set to AllowAll in HTTPS?
Looping ESB team members On Fri, Nov 14, 2014 at 10:40 AM, Niranda Perera nira...@wso2.com wrote: Hi carbon team, This is based on a WSO2 customer query. While using APIM with a custom host name, the following error occurred. 2014-11-11 09:12:09,794 [-] [HTTPS-Sender I/O dispatcher-1] ERROR TargetHandler I/O error: Host name verification failed for host : ourserver.development.host.com javax.net.ssl.SSLException: Host name verification failed for host : ourserver.development.host.com at org.apache.synapse.transport.http.conn.ClientSSLSetupHandler.verify(ClientSSLSetupHandler.java:152) at org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:285) at org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:380) at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:118) at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:160) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:342) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:320) at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280) at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:604) at java.lang.Thread.run(Thread.java:745) This was RESOLVED by modifying the HostnameVerifier parameter of the transportSender element to 'AllowAll'. But I have the following quesitons. 1. In a production environment, is it a good practice for making HostnameVerifier AllowAll? 2. What are the implications of making HostnameVerifier AllowAll? 3. Is there any other way to handle this rather than verifying all the hostnames by default?? Look forward to hearing from you. Cheers Rgds -- *Niranda Perera* Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 https://twitter.com/N1R44 -- Sameera Jayasoma, Software Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Mobile: 0094776364456 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [CEP] How to write a Siddhi query to get the total count from an Event Table
Hii all, There is a mysql table with the following content. The format of the in stream state:HTS state:HFS state:HTM state:HTS state:HTL state:HFS state:MTS state:HTS state:HTL state:MFM state:HTS state:HFS The following siddhi query is used to populate the above table. -- define table MarkovModel (State_Transition string, Initial_state string, countP double) from ('datasource.name'='FD_ToolBox_DB', 'database.name'='FDtoolbox', 'table.name'='MarkovModel'); from every a = inStream - b = inStream select a.Event as initialState, b.Event as transState, concat(a.Event,b.Event) as StateTransition insert into forCalculation; from forCalculation[((StateTransition!=MarkovModel.State_Transition) in MarkovModel)] select StateTransition, initialState, 1.0 as stateTrans_count insert into insertIntoModel; from forCalculation[((StateTransition==MarkovModel.State_Transition) in MarkovModel)]#window.length(1) join MarkovModel on forCalculation.StateTransition == MarkovModel.State_Transition select StateTransition, initialState, (MarkovModel.countP+1) as updatedState_count insert into updateModel; -- Want to know how get the total count of *Initial_state*'s from the above table as a continuation to the above query. Ex: HFS - 2 HTL - 2 HTM - 1 HTS - 4 MFM - 1 MTS - 1 Would appreciate any suggestions. Thank you Regards *Supun Rasitha Muthutantrige* Software Engineer | Intern WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: 0758374608 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [CEP] How to write a Siddhi query to get the total count from an Event Table
Why dont you use the sum(Initial_state) function with a group by Initial_state? On Fri, Nov 14, 2014 at 12:12 PM, Supun Muthutantrige sup...@wso2.com wrote: Hii all, There is a mysql table with the following content. The format of the in stream state:HTS state:HFS state:HTM state:HTS state:HTL state:HFS state:MTS state:HTS state:HTL state:MFM state:HTS state:HFS The following siddhi query is used to populate the above table. -- define table MarkovModel (State_Transition string, Initial_state string, countP double) from ('datasource.name'='FD_ToolBox_DB', 'database.name'='FDtoolbox', 'table.name'='MarkovModel'); from every a = inStream - b = inStream select a.Event as initialState, b.Event as transState, concat(a.Event,b.Event) as StateTransition insert into forCalculation; from forCalculation[((StateTransition!=MarkovModel.State_Transition) in MarkovModel)] select StateTransition, initialState, 1.0 as stateTrans_count insert into insertIntoModel; from forCalculation[((StateTransition==MarkovModel.State_Transition) in MarkovModel)]#window.length(1) join MarkovModel on forCalculation.StateTransition == MarkovModel.State_Transition select StateTransition, initialState, (MarkovModel.countP+1) as updatedState_count insert into updateModel; -- Want to know how get the total count of *Initial_state*'s from the above table as a continuation to the above query. Ex: HFS - 2 HTL - 2 HTM - 1 HTS - 4 MFM - 1 MTS - 1 Would appreciate any suggestions. Thank you Regards *Supun Rasitha Muthutantrige* Software Engineer | Intern WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: 0758374608 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [CEP] How to write a Siddhi query to get the total count from an Event Table
HI supun, you can use the count function and grouping it by Initial_state(group by Initial_state) Thanks On Fri, Nov 14, 2014 at 12:23 PM, Seshika Fernando sesh...@wso2.com wrote: Why dont you use the sum(Initial_state) function with a group by Initial_state? On Fri, Nov 14, 2014 at 12:12 PM, Supun Muthutantrige sup...@wso2.com wrote: Hii all, There is a mysql table with the following content. The format of the in stream state:HTS state:HFS state:HTM state:HTS state:HTL state:HFS state:MTS state:HTS state:HTL state:MFM state:HTS state:HFS The following siddhi query is used to populate the above table. -- define table MarkovModel (State_Transition string, Initial_state string, countP double) from ('datasource.name'='FD_ToolBox_DB', 'database.name'='FDtoolbox', 'table.name'='MarkovModel'); from every a = inStream - b = inStream select a.Event as initialState, b.Event as transState, concat(a.Event,b.Event) as StateTransition insert into forCalculation; from forCalculation[((StateTransition!=MarkovModel.State_Transition) in MarkovModel)] select StateTransition, initialState, 1.0 as stateTrans_count insert into insertIntoModel; from forCalculation[((StateTransition==MarkovModel.State_Transition) in MarkovModel)]#window.length(1) join MarkovModel on forCalculation.StateTransition == MarkovModel.State_Transition select StateTransition, initialState, (MarkovModel.countP+1) as updatedState_count insert into updateModel; -- Want to know how get the total count of *Initial_state*'s from the above table as a continuation to the above query. Ex: HFS - 2 HTL - 2 HTM - 1 HTS - 4 MFM - 1 MTS - 1 Would appreciate any suggestions. Thank you Regards *Supun Rasitha Muthutantrige* Software Engineer | Intern WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: 0758374608 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Shashika Prabath Karunatilaka, Software Engineer, WSO2, Inc: http://wso2.com/ mobile : +94 77 7487792 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [CEP] How to write a Siddhi query to get the total count from an Event Table
Hi Shashika, I don't think the count() function will work here. They need a sum of the values in the countP field. Therefore, they will have to use sum(countP). So for Initial state HTS, count() will give 2 while sum() will give 4. I think I have used the wrong field name in my previous email. Sorry about that. seshika On Fri, Nov 14, 2014 at 12:27 PM, Shashika Karunatilaka shashi...@wso2.com wrote: HI supun, you can use the count function and grouping it by Initial_state(group by Initial_state) Thanks On Fri, Nov 14, 2014 at 12:23 PM, Seshika Fernando sesh...@wso2.com wrote: Why dont you use the sum(Initial_state) function with a group by Initial_state? On Fri, Nov 14, 2014 at 12:12 PM, Supun Muthutantrige sup...@wso2.com wrote: Hii all, There is a mysql table with the following content. The format of the in stream state:HTS state:HFS state:HTM state:HTS state:HTL state:HFS state:MTS state:HTS state:HTL state:MFM state:HTS state:HFS The following siddhi query is used to populate the above table. -- define table MarkovModel (State_Transition string, Initial_state string, countP double) from ('datasource.name'='FD_ToolBox_DB', 'database.name'='FDtoolbox', 'table.name'='MarkovModel'); from every a = inStream - b = inStream select a.Event as initialState, b.Event as transState, concat(a.Event,b.Event) as StateTransition insert into forCalculation; from forCalculation[((StateTransition!=MarkovModel.State_Transition) in MarkovModel)] select StateTransition, initialState, 1.0 as stateTrans_count insert into insertIntoModel; from forCalculation[((StateTransition==MarkovModel.State_Transition) in MarkovModel)]#window.length(1) join MarkovModel on forCalculation.StateTransition == MarkovModel.State_Transition select StateTransition, initialState, (MarkovModel.countP+1) as updatedState_count insert into updateModel; -- Want to know how get the total count of *Initial_state*'s from the above table as a continuation to the above query. Ex: HFS - 2 HTL - 2 HTM - 1 HTS - 4 MFM - 1 MTS - 1 Would appreciate any suggestions. Thank you Regards *Supun Rasitha Muthutantrige* Software Engineer | Intern WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: 0758374608 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Shashika Prabath Karunatilaka, Software Engineer, WSO2, Inc: http://wso2.com/ mobile : +94 77 7487792 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [CEP] How to write a Siddhi query to get the total count from an Event Table
Hi seshika, Yes tried that but it doesn't give the desired output. The query that we have used as follows, from forCalculation#window.length(1) join MarkovModel on forCalculation.initialState == MarkovModel.Initial_state select initialState as Event, sum(MarkovModel.countP) as totalCount insert into ckStream; this was tried using group by as well, Still it doesn't give the result any thoughts? Thank you Regards *Supun Rasitha Muthutantrige* Software Engineer | Intern WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: 0758374608 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev