Re: [Dev] Web clip feature not available in IoT
Found the feature. No worries. On Fri, Mar 3, 2017 at 10:36 AM, Dulitha Wijewantha <duli...@wso2.com> wrote: > Hi guys, > Web clip feature that was available in the previous version is not > available in the IoT 3.0.0 version. > > Cheers~ > > -- > Dulitha Wijewantha (Chan) > Software Engineer - Mobile Development > WSO2 Inc > Lean.Enterprise.Middleware > * ~Email duli...@wso2.com <duli...@wso2mobile.com>* > * ~Mobile +94712112165 <+94%2071%20211%202165>* > * ~Website dulitha.me <http://dulitha.me>* > * ~Twitter @dulitharw <https://twitter.com/dulitharw>* > *~Github @dulichan <https://github.com/dulichan>* > *~SO @chan <http://stackoverflow.com/users/813471/chan>* > -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Web clip feature not available in IoT
Hi guys, Web clip feature that was available in the previous version is not available in the IoT 3.0.0 version. Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Can't view the swagger.yaml generated on Postman
Hi guys, The swagger file generated on the endpoint [1] seem to have some issue when importing to Postman. It doesn't explicitly say what the issue is. I have opened up an issue on postman github regarding this [2]. Have you guys tried loading the swagger.yaml using postman? [1] - https://:9443/api/device-mgt/v1.0/swagger.yaml [2] - https://github.com/postmanlabs/postman-app-support/issues/2475 Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Lock timeout configuration for iOS and Android password policy
Hi guys, On our passcode policy we should have a method to setup the minimum lock time duration. This is supported my iOS (can be done through apple configurator) and Android also supports this from the Device Admin API [1] [1] - https://developer.android.com/guide/topics/admin/device-admin.html Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Removing/Replacing shindig from wso2 dashboard framework
IMO - isolation is not a requirement for the current use cases. Best would be to build the components separately and style them using SASS (using inheritance of CSS classes). Web components would be useful to be build components but the component story is already filled up with UUF right? On Fri, Sep 30, 2016 at 1:37 PM, Udara Rathnayake <uda...@wso2.com> wrote: > Hi All, > > Currently we are utilizing shindig[1] as the underlying gadget container, > mainly to support gadget level isolation. We faced problems with shindig > in the past due to the usage of iframes etc.. and shindig is a retired > project also. > > With the current set of use-cases around dashboards (Analytics dashboard > etc.), we are evaluating capabilities around web-components[2] to build the > infrastructure for dashboards. > > Further if we take a look at igviz samples[3], similarly we can do the > dashboard without iframes etc.. Only concern is isolation (if required, > with current use-cases) which can introduce through web-components. > > Appreciate your thoughts. > > [1] https://shindig.apache.org/ > [2] https://developer.mozilla.org/en-US/docs/Web/Web_Components > [3] http://dunithd.github.io/igviz-site/samples/index.html > > -- > Regards, > UdaraR > -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Dependency issue for carbon-appmgt master branch
cal repository, resolution will not be reattempted until the update interval of wso2-nexus has elapsed or updates are forced at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185) ... 22 more Caused by: org.sonatype.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.wso2.carbon.identity:org.wso2.carbon.identity.core:jar:5.2.1-SNAPSHOT, org.wso2.carbon.identity:org.wso2.carbon.identity.application.mgt:jar:5.2.1-SNAPSHOT, org.wso2.carbon.identity:org.wso2.carbon.user.mgt.stub:jar:5.2.1-SNAPSHOT, org.wso2.carbon.identity:org.wso2.carbon.idp.mgt.stub:jar:5.2.1-SNAPSHOT, org.wso2.carbon.identity:org.wso2.carbon.identity.application.mgt.stub:jar:5.2.1-SNAPSHOT, org.wso2.carbon.identity:org.wso2.carbon.identity.entitlement.stub:jar:5.2.1-SNAPSHOT: Failure to find org.wso2.carbon.identity:org.wso2.carbon.identity.core:jar:5.2.1-SNAPSHOT in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the local repository, resolution will not be reattempted until the update interval of wso2-nexus has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183) ... 23 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.wso2.carbon.identity:org.wso2.carbon.identity.core:jar:5.2.1-SNAPSHOT, org.wso2.carbon.identity:org.wso2.carbon.identity.application.mgt:jar:5.2.1-SNAPSHOT, org.wso2.carbon.identity:org.wso2.carbon.user.mgt.stub:jar:5.2.1-SNAPSHOT, org.wso2.carbon.identity:org.wso2.carbon.idp.mgt.stub:jar:5.2.1-SNAPSHOT, org.wso2.carbon.identity:org.wso2.carbon.identity.application.mgt.stub:jar:5.2.1-SNAPSHOT, org.wso2.carbon.identity:org.wso2.carbon.identity.entitlement.stub:jar:5.2.1-SNAPSHOT: Failure to find org.wso2.carbon.identity:org.wso2.carbon.identity.core:jar:5.2.1-SNAPSHOT in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the local repository, resolution will not be reattempted until the update interval of wso2-nexus has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358) ... 24 more Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find org.wso2.carbon.identity:org.wso2.carbon.identity.core:jar:5.2.1-SNAPSHOT in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the local repository, resolution will not be reattempted until the update interval of wso2-nexus has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230) at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427) ... 26 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :org.wso2.carbon.appmgt.impl a -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Getting a ClassNotFound in the latest build
On Fri, Aug 26, 2016 at 12:58 PM, Dulitha Wijewantha <duli...@wso2.com> wrote: > Hi guys, > I did a build with the latest code on master -> I am getting the below > error > The master of product-mdm. > > 12:47:24,467 org.apache.catalina.core.StandardContext - Error > configuring application listener of class org.wso2.carbon.mdm.mobileserv > ices.windows.common.util.ContextInitializer > java.lang.ClassNotFoundException: org.wso2.carbon.mdm.mobileserv > ices.windows.common.util.ContextInitializer > at org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.lo > adClass(CarbonWebappClassLoader.java:154) > at org.apache.catalina.loader.WebappClassLoader.loadClass(Webap > pClassLoader.java:1571) > at org.apache.catalina.core.DefaultInstanceManager.loadClass(De > faultInstanceManager.java:506) > at org.apache.catalina.core.DefaultInstanceManager.loadClassMay > bePrivileged(DefaultInstanceManager.java:488) > at org.apache.catalina.core.DefaultInstanceManager.newInstance( > DefaultInstanceManager.java:115) > at org.apache.catalina.core.StandardContext.listenerStart(Stand > ardContext.java:4932) > at org.apache.catalina.core.StandardContext.startInternal(Stand > ardContext.java:5524) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > at org.apache.catalina.core.ContainerBase.addChildInternal(Cont > ainerBase.java:901) > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) > at org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp( > CarbonTomcat.java:290) > at org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp( > CarbonTomcat.java:198) > at org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.hand > leWebappDeployment(TomcatGenericWebappsDeployer.java:258) > at org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.hand > leWarWebappDeployment(TomcatGenericWebappsDeployer.java:208) > at org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.hand > leHotDeployment(TomcatGenericWebappsDeployer.java:175) > at org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.depl > oy(TomcatGenericWebappsDeployer.java:140) > at org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deployThis > WebApp(AbstractWebappDeployer.java:224) > at org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deploy(Abs > tractWebappDeployer.java:114) > at org.wso2.carbon.webapp.deployer.WebappDeployer.deploy( > WebappDeployer.java:42) > at org.apache.axis2.deployment.repository.util.DeploymentFileDa > ta.deploy(DeploymentFileData.java:136) > at org.apache.axis2.deployment.DeploymentEngine.doDeploy(Deploy > mentEngine.java:807) > at org.apache.axis2.deployment.repository.util.WSInfoList.updat > e(WSInfoList.java:144) > at org.apache.axis2.deployment.RepositoryListener.update(Reposi > toryListener.java:377) > at org.apache.axis2.deployment.RepositoryListener.checkServices > (RepositoryListener.java:254) > at org.apache.synapse.Axis2SynapseController.deployMediatorExte > nsions(Axis2SynapseController.java:743) > at org.apache.synapse.Axis2SynapseController.createSynapseEnvir > onment(Axis2SynapseController.java:388) > at org.apache.synapse.ServerManager.start(ServerManager.java:181) > at org.wso2.carbon.mediation.initializer.ServiceBusInitializer. > initESB(ServiceBusInitializer.java:452) > at org.wso2.carbon.mediation.initializer.ServiceBusInitializer. > activate(ServiceBusInitializer.java:196) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce > ssorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe > thodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ > ate(ServiceComponent.java:260) > at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a > ctivate(ServiceComponentProp.java:146) > at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b > uild(ServiceComponentProp.java:345) > at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone > nt(InstanceProcess.java:620) > at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone > nts(InstanceProcess.java:197) > at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) > at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SC > RManager.java:222) > at org.eclipse.osgi.internal.serviceregistry.FilteredServiceLis > tener.serviceChanged(FilteredServiceListener.java:107) > at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d > ispatchEvent(BundleContextImpl.java:861) > at org.eclipse.osgi.framework.eventmgr.E
[Dev] Getting a ClassNotFound in the latest build
433) at org.eclipse.equinox.http.servlet.internal.Activator. registerHttpService(Activator.java:81) at org.eclipse.equinox.http.servlet.internal.Activator. addProxyServlet(Activator.java:60) at org.eclipse.equinox.http.servlet.internal.ProxyServlet. init(ProxyServlet.java:40) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet. init(DelegationServlet.java:38) at org.apache.catalina.core.StandardWrapper.initServlet( StandardWrapper.java:1284) at org.apache.catalina.core.StandardWrapper.loadServlet( StandardWrapper.java:1197) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087) at org.apache.catalina.core.StandardContext.loadOnStartup( StandardContext.java:5262) at org.apache.catalina.core.StandardContext.startInternal( StandardContext.java:5550) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call( ContainerBase.java:1575) at org.apache.catalina.core.ContainerBase$StartChild.call( ContainerBase.java:1565) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run( ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.wso2.carbon.tomcat.CarbonTomcatException: Webapp failed to deploy at org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java: 302) at org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java: 198) at org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer. handleWebappDeployment(TomcatGenericWebappsDeployer.java:258) ... 98 more Caused by: java.lang.Exception: Webapp failed to deploy, Lifecycle state is STOPPED at org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java: 294) ... 100 more Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165 <%2B94712112165>* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Exception handling in Spark UDF
On Tue, Jun 14, 2016 at 10:23 AM, Sachith Withana <sach...@wso2.com> wrote: > What do you mean by workaround? > > On Tue, Jun 14, 2016 at 9:16 AM, Dulitha Wijewantha <duli...@wso2.com> > wrote: > >> >> >> On Sat, Jun 11, 2016 at 12:33 AM, Sachith Withana <sach...@wso2.com> >> wrote: >> >>> If you need to skip the rows that would be throwing the exception, as >>> you said, you'd have to do that in a where clause. >>> If there's a scenario where you need to transform the values and use in >>> a SELECT statement, use a subquery and filter out the unwanted rows. >>> >> >> Thanks. This can be used as a workaround. >> >> >> > By having the query inside an inner query and filtering it out using a WHERE clause (this is the workaround). IMO - a solution for this would be to allow UDFs to propagate exceptions that will change the behavior (ignore the current row). But in the future do you plan to incorporate this as a feature where I can >> throw a particular exception to from the UDF that will skip that record or >> stop the whole script? (Is this part of the Spark-SQL code too) >> >> >> >>> >>> ex: >>> >>> SELECT date FROM ( SELECT dateConvertor(timestamp, "MM/dd/ HH:mm", >>> "HOUR") as date FROM eventStatData) Where date != ""; >>> >>> On Fri, Jun 10, 2016 at 2:25 PM, Dulitha Wijewantha <duli...@wso2.com> >>> wrote: >>> >>>> The default value will work for scenarios where we are using the >>>> function on a where clause. There is also another scenario where you use it >>>> to transform the value in the select. In the below query - if we put a >>>> default value it will be returned by the result set rather than ignoring >>>> it. >>>> >>>> select sessionKey as sessionKey, dateFormatter(timestamp, "MM/dd/ >>>> HH:mm", "-MM-dd:HH") as dateDisplay, appKey as appKey, clientModel as >>>> role, dateConvertor(timestamp, "MM/dd/ HH:mm", "HOUR") as date from >>>> eventStatData >>>> >>>> On Fri, Jun 10, 2016 at 12:10 AM, Gimantha Bandara <giman...@wso2.com> >>>> wrote: >>>> >>>>> You will have to catch the exception inside the method itself and log >>>>> a warning/error meesage and return a default value without throwing the >>>>> exception out from the method. >>>>> >>>>> >>>>> On Friday, June 10, 2016, Dulitha Wijewantha <duli...@wso2.com> wrote: >>>>> >>>>>> Below is an example usage - >>>>>> >>>>>> insert overwrite table TABLE_NAME select date, count(distinct >>>>>> sessionKey) as activity, appKey, role, first(y.dateDisplay) as >>>>>> dateDisplay >>>>>> from (select sessionKey as sessionKey, dateFormatter(timestamp, >>>>>> "MM/dd/ HH:mm", "-MM-dd:HH") as dateDisplay, appKey as appKey, >>>>>> clientModel as role, dateConvertor(timestamp, "MM/dd/ HH:mm", "HOUR") >>>>>> as date from eventStatData) as y group by y.date, y.appKey, y.role; >>>>>> >>>>>> >>>>>> >>>>>> On Thu, Jun 9, 2016 at 4:13 PM, Sachith Withana <sach...@wso2.com> >>>>>> wrote: >>>>>> >>>>>>> Hi Dulitha, >>>>>>> >>>>>>> Can you provide the query that you are using? >>>>>>> >>>>>>> That would help us give you a better solution I guess. >>>>>>> >>>>>>> Regards, >>>>>>> Sachith >>>>>>> >>>>>>> On Thu, Jun 9, 2016 at 2:34 PM, Dulitha Wijewantha <duli...@wso2.com >>>>>>> > wrote: >>>>>>> >>>>>>>> Hi guys, >>>>>>>> I have written a customer Spark UDF function that allows me to >>>>>>>> convert a date string to a given input format. If there is a >>>>>>>> ParseException >>>>>>>> due to input being invalid - the whole spark script will stop >>>>>>>> execution. Is >>>>>>>> there away to skip that particular iteration and move on to the next >>>>>>>> in the >
Re: [Dev] Exception handling in Spark UDF
On Sat, Jun 11, 2016 at 12:33 AM, Sachith Withana <sach...@wso2.com> wrote: > If you need to skip the rows that would be throwing the exception, as you > said, you'd have to do that in a where clause. > If there's a scenario where you need to transform the values and use in a > SELECT statement, use a subquery and filter out the unwanted rows. > Thanks. This can be used as a workaround. But in the future do you plan to incorporate this as a feature where I can throw a particular exception to from the UDF that will skip that record or stop the whole script? (Is this part of the Spark-SQL code too) > > ex: > > SELECT date FROM ( SELECT dateConvertor(timestamp, "MM/dd/ HH:mm", > "HOUR") as date FROM eventStatData) Where date != ""; > > On Fri, Jun 10, 2016 at 2:25 PM, Dulitha Wijewantha <duli...@wso2.com> > wrote: > >> The default value will work for scenarios where we are using the function >> on a where clause. There is also another scenario where you use it to >> transform the value in the select. In the below query - if we put a default >> value it will be returned by the result set rather than ignoring it. >> >> select sessionKey as sessionKey, dateFormatter(timestamp, "MM/dd/ >> HH:mm", "-MM-dd:HH") as dateDisplay, appKey as appKey, clientModel as >> role, dateConvertor(timestamp, "MM/dd/ HH:mm", "HOUR") as date from >> eventStatData >> >> On Fri, Jun 10, 2016 at 12:10 AM, Gimantha Bandara <giman...@wso2.com> >> wrote: >> >>> You will have to catch the exception inside the method itself and log a >>> warning/error meesage and return a default value without throwing the >>> exception out from the method. >>> >>> >>> On Friday, June 10, 2016, Dulitha Wijewantha <duli...@wso2.com> wrote: >>> >>>> Below is an example usage - >>>> >>>> insert overwrite table TABLE_NAME select date, count(distinct >>>> sessionKey) as activity, appKey, role, first(y.dateDisplay) as dateDisplay >>>> from (select sessionKey as sessionKey, dateFormatter(timestamp, >>>> "MM/dd/ HH:mm", "-MM-dd:HH") as dateDisplay, appKey as appKey, >>>> clientModel as role, dateConvertor(timestamp, "MM/dd/ HH:mm", "HOUR") >>>> as date from eventStatData) as y group by y.date, y.appKey, y.role; >>>> >>>> >>>> >>>> On Thu, Jun 9, 2016 at 4:13 PM, Sachith Withana <sach...@wso2.com> >>>> wrote: >>>> >>>>> Hi Dulitha, >>>>> >>>>> Can you provide the query that you are using? >>>>> >>>>> That would help us give you a better solution I guess. >>>>> >>>>> Regards, >>>>> Sachith >>>>> >>>>> On Thu, Jun 9, 2016 at 2:34 PM, Dulitha Wijewantha <duli...@wso2.com> >>>>> wrote: >>>>> >>>>>> Hi guys, >>>>>> I have written a customer Spark UDF function that allows me to >>>>>> convert a date string to a given input format. If there is a >>>>>> ParseException >>>>>> due to input being invalid - the whole spark script will stop execution. >>>>>> Is >>>>>> there away to skip that particular iteration and move on to the next in >>>>>> the >>>>>> record? (this function is used in where clauses). Or is there a better >>>>>> recommendation for this? Like validation in the EventReceiver? >>>>>> >>>>>> public String dateFormatter(String input, String fromFormat, String >>>>>> toFormat) throws ParseException{ >>>>>> SimpleDateFormat sdf = new SimpleDateFormat(fromFormat); >>>>>> Date date = sdf.parse(input); >>>>>> SimpleDateFormat newFormatter = new SimpleDateFormat(toFormat); >>>>>> return newFormatter.format(date); >>>>>> } >>>>>> >>>>>> Cheers~ >>>>>> >>>>>> -- >>>>>> Dulitha Wijewantha (Chan) >>>>>> Software Engineer - Mobile Development >>>>>> WSO2 Inc >>>>>> Lean.Enterprise.Middleware >>>>>> * ~Email duli...@wso2.com* >>>>>> * ~Mobile +94712112165 <%2B94712112165>* >>>>>> * ~Website dulitha.me <http://dulitha.me>* >
Re: [Dev] Exception handling in Spark UDF
The default value will work for scenarios where we are using the function on a where clause. There is also another scenario where you use it to transform the value in the select. In the below query - if we put a default value it will be returned by the result set rather than ignoring it. select sessionKey as sessionKey, dateFormatter(timestamp, "MM/dd/ HH:mm", "-MM-dd:HH") as dateDisplay, appKey as appKey, clientModel as role, dateConvertor(timestamp, "MM/dd/ HH:mm", "HOUR") as date from eventStatData On Fri, Jun 10, 2016 at 12:10 AM, Gimantha Bandara <giman...@wso2.com> wrote: > You will have to catch the exception inside the method itself and log a > warning/error meesage and return a default value without throwing the > exception out from the method. > > > On Friday, June 10, 2016, Dulitha Wijewantha <duli...@wso2.com> wrote: > >> Below is an example usage - >> >> insert overwrite table TABLE_NAME select date, count(distinct sessionKey) >> as activity, appKey, role, first(y.dateDisplay) as dateDisplay from (select >> sessionKey as sessionKey, dateFormatter(timestamp, "MM/dd/ HH:mm", >> "-MM-dd:HH") as dateDisplay, appKey as appKey, clientModel as role, >> dateConvertor(timestamp, "MM/dd/ HH:mm", "HOUR") as date from >> eventStatData) as y group by y.date, y.appKey, y.role; >> >> >> >> On Thu, Jun 9, 2016 at 4:13 PM, Sachith Withana <sach...@wso2.com> wrote: >> >>> Hi Dulitha, >>> >>> Can you provide the query that you are using? >>> >>> That would help us give you a better solution I guess. >>> >>> Regards, >>> Sachith >>> >>> On Thu, Jun 9, 2016 at 2:34 PM, Dulitha Wijewantha <duli...@wso2.com> >>> wrote: >>> >>>> Hi guys, >>>> I have written a customer Spark UDF function that allows me to convert >>>> a date string to a given input format. If there is a ParseException due to >>>> input being invalid - the whole spark script will stop execution. Is there >>>> away to skip that particular iteration and move on to the next in the >>>> record? (this function is used in where clauses). Or is there a better >>>> recommendation for this? Like validation in the EventReceiver? >>>> >>>> public String dateFormatter(String input, String fromFormat, String >>>> toFormat) throws ParseException{ >>>> SimpleDateFormat sdf = new SimpleDateFormat(fromFormat); >>>> Date date = sdf.parse(input); >>>> SimpleDateFormat newFormatter = new SimpleDateFormat(toFormat); >>>> return newFormatter.format(date); >>>> } >>>> >>>> Cheers~ >>>> >>>> -- >>>> Dulitha Wijewantha (Chan) >>>> Software Engineer - Mobile Development >>>> WSO2 Inc >>>> Lean.Enterprise.Middleware >>>> * ~Email duli...@wso2.com* >>>> * ~Mobile +94712112165 <%2B94712112165>* >>>> * ~Website dulitha.me <http://dulitha.me>* >>>> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >>>> *~Github @dulichan <https://github.com/dulichan>* >>>> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >>>> >>> >>> >>> >>> -- >>> Sachith Withana >>> Software Engineer; WSO2 Inc.; http://wso2.com >>> E-mail: sachith AT wso2.com >>> M: +94715518127 >>> Linked-In: <http://goog_416592669> >>> https://lk.linkedin.com/in/sachithwithana >>> >> >> >> >> -- >> Dulitha Wijewantha (Chan) >> Software Engineer - Mobile Development >> WSO2 Inc >> Lean.Enterprise.Middleware >> * ~Email duli...@wso2.com* >> * ~Mobile +94712112165 <%2B94712112165>* >> * ~Website dulitha.me <http://dulitha.me>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> *~Github @dulichan <https://github.com/dulichan>* >> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >> > > > -- > Gimantha Bandara > Software Engineer > WSO2. Inc : http://wso2.com > Mobile : +94714961919 > > -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] ESB analytics dashboard
Hi Dakshitha, When I go to view analytics of proxies the UI is not intuitive to let me know that i have to select a proxy to view stats. Below is a screenshot - Ideally on this - first one should be selected or an aggregated result should be shown [image: Inline image 1] Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Exception handling in Spark UDF
Below is an example usage - insert overwrite table TABLE_NAME select date, count(distinct sessionKey) as activity, appKey, role, first(y.dateDisplay) as dateDisplay from (select sessionKey as sessionKey, dateFormatter(timestamp, "MM/dd/ HH:mm", "-MM-dd:HH") as dateDisplay, appKey as appKey, clientModel as role, dateConvertor(timestamp, "MM/dd/ HH:mm", "HOUR") as date from eventStatData) as y group by y.date, y.appKey, y.role; On Thu, Jun 9, 2016 at 4:13 PM, Sachith Withana <sach...@wso2.com> wrote: > Hi Dulitha, > > Can you provide the query that you are using? > > That would help us give you a better solution I guess. > > Regards, > Sachith > > On Thu, Jun 9, 2016 at 2:34 PM, Dulitha Wijewantha <duli...@wso2.com> > wrote: > >> Hi guys, >> I have written a customer Spark UDF function that allows me to convert a >> date string to a given input format. If there is a ParseException due to >> input being invalid - the whole spark script will stop execution. Is there >> away to skip that particular iteration and move on to the next in the >> record? (this function is used in where clauses). Or is there a better >> recommendation for this? Like validation in the EventReceiver? >> >> public String dateFormatter(String input, String fromFormat, String >> toFormat) throws ParseException{ >> SimpleDateFormat sdf = new SimpleDateFormat(fromFormat); >> Date date = sdf.parse(input); >> SimpleDateFormat newFormatter = new SimpleDateFormat(toFormat); >> return newFormatter.format(date); >> } >> >> Cheers~ >> >> -- >> Dulitha Wijewantha (Chan) >> Software Engineer - Mobile Development >> WSO2 Inc >> Lean.Enterprise.Middleware >> * ~Email duli...@wso2.com <duli...@wso2mobile.com>* >> * ~Mobile +94712112165 <%2B94712112165>* >> * ~Website dulitha.me <http://dulitha.me>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> *~Github @dulichan <https://github.com/dulichan>* >> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >> > > > > -- > Sachith Withana > Software Engineer; WSO2 Inc.; http://wso2.com > E-mail: sachith AT wso2.com > M: +94715518127 > Linked-In: <http://goog_416592669> > https://lk.linkedin.com/in/sachithwithana > -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Exception handling in Spark UDF
Hi guys, I have written a customer Spark UDF function that allows me to convert a date string to a given input format. If there is a ParseException due to input being invalid - the whole spark script will stop execution. Is there away to skip that particular iteration and move on to the next in the record? (this function is used in where clauses). Or is there a better recommendation for this? Like validation in the EventReceiver? public String dateFormatter(String input, String fromFormat, String toFormat) throws ParseException{ SimpleDateFormat sdf = new SimpleDateFormat(fromFormat); Date date = sdf.parse(input); SimpleDateFormat newFormatter = new SimpleDateFormat(toFormat); return newFormatter.format(date); } Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Use of WSO2_ANALYTICS_FS_DB in WSO2 DAS
On Wed, Jun 8, 2016 at 4:10 PM, Sachith Withana <sach...@wso2.com> wrote: > Hi Dulitha, > > The doc you are referring to is for DAS 3.0.0 NOT DAS 3.0.1. > Refer to [1] for DAS 3.0.1 docs. > > In DAS 3.0.0, ANALYTICS_FS_DB is used to store the index data. > > But from 3.0.1 onwards, we are storing those data in the local filesystem, > not in a database. > That's why we have removed the FS_DB from the latest release. > So you don't have to configure the ANALYTICS_FS_DB in DAS 3.0.1. > +1. Thank you. So that means that there are only 2 datasources that are needed right? > > [1] https://docs.wso2.com/display/DAS301/Configuring+Data+Persistence > > Regards, > Sachith > > On Wed, Jun 8, 2016 at 2:54 PM, Dulitha Wijewantha <duli...@wso2.com> > wrote: > >> Hi guys, >> The doc [1] mentions that there are 3 event stores in DAS. In DAS 3.0.1 >> vanila pack - there are only 2 datasources that are configured >> [WSO2_ANALYTICS_EVENT_STORE_DB, WSO2_ANALYTICS_PROCESSED_DATA_STORE_DB]. >> Does that mean that the Indexing meta data is stored in >> WSO2_ANALYTICS_EVENT_STORE_DB datasource? >> >> The doc [1] currently also mentions about WSO2_ANALYTICS_FS_DB which is >> configured for the analytics file system (am I to assume this as another >> datasource?) >> >> >>> >org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsFileSystem> implementation> >> >> >> WSO2_ANALYTICS_FS_DB >> large_dataset_optimized >> >> >> What is the production recommendation? Keep 3 datasources separately for >> the 3 event stores? >> >> [1] - https://docs.wso2.com/display/DAS300/Configuring+Data+Persistence >> >> Cheers~ >> >> -- >> Dulitha Wijewantha (Chan) >> Software Engineer - Mobile Development >> WSO2 Inc >> Lean.Enterprise.Middleware >> * ~Email duli...@wso2.com <duli...@wso2mobile.com>* >> * ~Mobile +94712112165 <%2B94712112165>* >> * ~Website dulitha.me <http://dulitha.me>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> *~Github @dulichan <https://github.com/dulichan>* >> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >> >> _______ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Sachith Withana > Software Engineer; WSO2 Inc.; http://wso2.com > E-mail: sachith AT wso2.com > M: +94715518127 > Linked-In: <http://goog_416592669> > https://lk.linkedin.com/in/sachithwithana > -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Use of WSO2_ANALYTICS_FS_DB in WSO2 DAS
Hi guys, The doc [1] mentions that there are 3 event stores in DAS. In DAS 3.0.1 vanila pack - there are only 2 datasources that are configured [WSO2_ANALYTICS_EVENT_STORE_DB, WSO2_ANALYTICS_PROCESSED_DATA_STORE_DB]. Does that mean that the Indexing meta data is stored in WSO2_ANALYTICS_EVENT_STORE_DB datasource? The doc [1] currently also mentions about WSO2_ANALYTICS_FS_DB which is configured for the analytics file system (am I to assume this as another datasource?) org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsFileSystem WSO2_ANALYTICS_FS_DB large_dataset_optimized What is the production recommendation? Keep 3 datasources separately for the 3 event stores? [1] - https://docs.wso2.com/display/DAS300/Configuring+Data+Persistence Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Order By for the analytics js api
Hi Anjan/Gimantha, Gimanth mentioned to me that this will be available in DAS 3.1.0. When do you think the GA would be out? Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] WSO2 IoT Server 1.0.0-alpha Released
>when accessing device API details page >- [IOTS-154 <https://wso2.org/jira/browse/IOTS-154>] - Typo >/enrollmentdevicesg/download for raspberypi (g) >- [IOTS-155 <https://wso2.org/jira/browse/IOTS-155>] - When browsing >analytics error 500 shown to user from a group which has no devices > assigned >- [IOTS-156 <https://wso2.org/jira/browse/IOTS-156>] - 404 page when >cancel clicked in "Add New Group" page >- [IOTS-157 <https://wso2.org/jira/browse/IOTS-157>] - Signed up users >shown an error page when navigated to policy page >- [IOTS-158 <https://wso2.org/jira/browse/IOTS-158>] - Signed up users >cannot create policies >- [IOTS-159 <https://wso2.org/jira/browse/IOTS-159>] - Meaningful >message to be shown when On / Off issued to virtual fire alarm >- [IOTS-161 <https://wso2.org/jira/browse/IOTS-161>] - Remove the >phrase "Below QR code can also be used to enroll a device" >- [IOTS-163 <https://wso2.org/jira/browse/IOTS-163>] - Android sensor: >only admin can login to the app >- [IOTS-164 <https://wso2.org/jira/browse/IOTS-164>] - When an >existing user name is used by admin no proper validation message shown >- [IOTS-165 <https://wso2.org/jira/browse/IOTS-165>] - Server startup >throws "The following exception occurred when fetching >http://www.google-analytics.com/urchin; >- [IOTS-166 <https://wso2.org/jira/browse/IOTS-166>] - Connected cup >device analytics is failing to load >- [IOTS-167 <https://wso2.org/jira/browse/IOTS-167>] - Considerable >delay is taken to initialize transports for device types > > > *How To Contribute* > > You can find more instructions on how to contribute on our documentation > site <https://docs.wso2.com/display/IoTS100/WSO2+IoT+Server>. > If you have any suggestions or are interested in discussions, you can join > the dev@wso2.org or architecture@wso2.orgmailing lists. > > *Reporting Problems* > > We encourage you to report issues, improvements and feature requests > regarding WSO2IOT through the public WSO2 IoT JIRA > <https://wso2.org/jira/browse/IOTS> > > *Contact us* > > WSO2 developers can be contacted via the mailing list: Carbon developer > mailing list > For details on subscriptions see http://wso2.org/mail > > > Thanks and Regards, > > *~ EMM / IoTS Team ~* > > ___ > Architecture mailing list > architect...@wso2.org > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165 <%2B94712112165>* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Time series data summarization
Yeh that's exactly what I am doing right now (forgot to attach the query to the email). insert into table CORE_USER_ROLE_YEARLY_ACTIVITY_SUMMERY select y.dateHourly as date, count(distinct userid) as activity, appKey as appKey, role as role from (select clientUserId as userid, timestamp as date, dateFormatter(timestamp, "-MM", "") as dateHourly, appKey as appKey, role as role from eventStatData) as y group by y.dateHourly, y.appKey, y.role; I was wondering whether this was the right step for scenarios where data is summarized using time stamp. While looking into this I found out another interesting project which deals with time series data [1]. [1] - https://github.com/prometheus/prometheus On Thu, May 19, 2016 at 10:00 PM, Srinath Perera <srin...@wso2.com> wrote: > schedule a spark query that aggregate the data per year and write to new > table, and you can query from that table? > > On Fri, May 20, 2016 at 12:06 AM, Dulitha Wijewantha <duli...@wso2.com> > wrote: > >> Hi guys, >> I have a bunch of data streams that have time stamps (like event logs) - >> currently in DAS 3.0.1 - is there a way to efficiently query these? >> >> Right now I am summarizing them based on string manipulation to the >> timestamp. An example query I have is - >> >> 1) How many unique user events do we have in the last year. >> >> Cheers~ >> >> -- >> Dulitha Wijewantha (Chan) >> Software Engineer - Mobile Development >> WSO2 Inc >> Lean.Enterprise.Middleware >> * ~Email duli...@wso2.com <duli...@wso2mobile.com>* >> * ~Mobile +94712112165 <%2B94712112165>* >> * ~Website dulitha.me <http://dulitha.me>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> *~Github @dulichan <https://github.com/dulichan>* >> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >> > > > > -- > > Blog: http://srinathsview.blogspot.com twitter:@srinath_perera > Site: http://home.apache.org/~hemapani/ > Photos: http://www.flickr.com/photos/hemapani/ > Phone: 0772360902 > -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Time series data summarization
Hi guys, I have a bunch of data streams that have time stamps (like event logs) - currently in DAS 3.0.1 - is there a way to efficiently query these? Right now I am summarizing them based on string manipulation to the timestamp. An example query I have is - 1) How many unique user events do we have in the last year. Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] DAS minimum HA deployment in one node?
On Tue, Apr 19, 2016 at 3:51 AM, Anjana Fernando <anj...@wso2.com> wrote: > Hi, > > Are we talking about having two instances of running in one physical > machine or else, just one instance running? .. As Srinath said, usually HA > in one node does not make sense, since it does not really have HA, if > there's a single point of failure. But some people do put multiple > instances of software in really dependable hardware, and just have the > extra instances for process level HA, i.e. if due to a software related > issue a process is killed, the other takes over. > @Anjan how does this work? If the 2 nodes are started in the same machine they have to bind to different ports. If one node goes down - how can the other node take it's place. Or are you talking about scenario where the second node is started if the process ID is killed? (It's confusing to say this mode as HA since it's really not Highly Available. It looks more like DR in a single node) > > Cheers, > Anjana. > > On Tue, Apr 19, 2016 at 10:28 AM, Srinath Perera <srin...@wso2.com> wrote: > >> IMO HA in same node does not make much sense. >> >> --Srinath >> >> On Tue, Apr 12, 2016 at 10:30 AM, Nirmal Fernando <nir...@wso2.com> >> wrote: >> >>> Hi All, >>> >>> Is it possible to setup DAS minimum HA deployment in one node? AFAIS the >>> requirement to create a symbolic link makes it impossible? >>> >>> -- >>> >>> Thanks & regards, >>> Nirmal >>> >>> Team Lead - WSO2 Machine Learner >>> Associate Technical Lead - Data Technologies Team, WSO2 Inc. >>> Mobile: +94715779733 >>> Blog: http://nirmalfdo.blogspot.com/ >>> >>> >>> >> >> >> -- >> >> Blog: http://srinathsview.blogspot.com twitter:@srinath_perera >> Site: http://home.apache.org/~hemapani/ >> Photos: http://www.flickr.com/photos/hemapani/ >> Phone: 0772360902 >> > > > > -- > *Anjana Fernando* > Senior Technical Lead > WSO2 Inc. | http://wso2.com > lean . enterprise . middleware > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Design goals of MSF4J
Hi guys, Can we list down the key design goals we thrived to when designing MSF4J on our github page? This would allow people to understand the motivation to write a micro services framework (without it looks like "yet another framework" hype from the JavaScript world). Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Adding an array of objects to a JSON dataservice
.valves.CompositeValve.invoke(CompositeValve.java:62) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Is rfc6570-encoding supported in ESB 4.9.0?
But when I access {uri.var.email} <http://localhost:9763/services/test/foo/bar/%7Buri.var.email%7D> it's encoded to dulitha%40wso2.com <http://localhost:9763/services/test/foo/bar/dulitha%40wso2.com>. When the backend endpoint is called -the @ sign is encoded. How do I stop this behavior? On Wed, Feb 10, 2016 at 1:52 PM, Kevin Ratnasekera <ke...@wso2.com> wrote: > Hi Dulitha, > > In ESB 4.9, you don't need that rfc6570-encoding: prefix before the url > since at default support rfc6570 encoding. But if you need legacy > encoding or make it backward compatible then you need to add legacy-encoding: > prefix before the url. This is opposite for the ESB 4.8.1. > > Regards > Kevin > > On Wed, Feb 10, 2016 at 1:23 PM, Dulitha Wijewantha <duli...@wso2.com> > wrote: > >> Hi guys, >> I am trying to invoke an endpoint with rfc6570-encoding (since the URI >> parameter has an email on it). Below is the definition - >> >> >> http://localhost:9763/services/test/foo/bar/{uri.var.email}; >> method="get"> >> >> >> >> But I get the error - >> >> 13:13:11,075 Axis2Sender Unexpected error during sending message out >> org.apache.axis2.AxisFault: The system cannot infer the transport >> information from the rfc6570-encoding: >> http://localhost:9763/services/test/foo/bar/dulitha%40wso2.com URL. >> at >> org.apache.axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:81) >> at >> org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:115) >> at >> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) >> at >> org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:542) >> at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:79) >> at >> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:461) >> at >> org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:372) >> at org.apache.synapse.endpoints.HTTPEndpoint.send(HTTPEndpoint.java:89) >> at >> org.apache.synapse.mediators.builtin.CallMediator.handleNonBlockingCall(CallMediator.java:204) >> at >> org.apache.synapse.mediators.builtin.CallMediator.mediate(CallMediator.java:87) >> at >> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81) >> at >> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48) >> at >> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149) >> at org.apache.synapse.rest.Resource.process(Resource.java:297) >> at org.apache.synapse.rest.API.process(API.java:378) >> at >> org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:97) >> at >> org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:65) >> at >> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:266) >> at >> org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83) >> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) >> at >> org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:317) >> at >> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:149) >> at >> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> at java.lang.Thread.run(Thread.java:745) >> >> -- >> Dulitha Wijewantha (Chan) >> Software Engineer - Mobile Development >> WSO2 Inc >> Lean.Enterprise.Middleware >> * ~Email duli...@wso2.com <duli...@wso2mobile.com>* >> * ~Mobile +94712112165 <%2B94712112165>* >> * ~Website dulitha.me <http://dulitha.me>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> *~Github @dulichan <https://github.com/dulichan>* >> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >> > > -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Is rfc6570-encoding supported in ESB 4.9.0?
Hi guys, I am trying to invoke an endpoint with rfc6570-encoding (since the URI parameter has an email on it). Below is the definition - http://localhost:9763/services/test/foo/bar/{uri.var.email}; method="get"> But I get the error - 13:13:11,075 Axis2Sender Unexpected error during sending message out org.apache.axis2.AxisFault: The system cannot infer the transport information from the rfc6570-encoding: http://localhost:9763/services/test/foo/bar/dulitha%40wso2.com URL. at org.apache.axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:81) at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:115) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) at org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:542) at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:79) at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:461) at org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:372) at org.apache.synapse.endpoints.HTTPEndpoint.send(HTTPEndpoint.java:89) at org.apache.synapse.mediators.builtin.CallMediator.handleNonBlockingCall(CallMediator.java:204) at org.apache.synapse.mediators.builtin.CallMediator.mediate(CallMediator.java:87) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48) at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149) at org.apache.synapse.rest.Resource.process(Resource.java:297) at org.apache.synapse.rest.API.process(API.java:378) at org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:97) at org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:65) at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:266) at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:317) at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:149) at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] CUSTOM MEDIATOR
How about trying the script mediator? Script mediator[1] can be used to generate these types of payloads. [1] - https://docs.wso2.com/display/ESB490/Script+Mediator On Wed, Jan 13, 2016 at 10:29 AM, John Q <johnq3...@gmail.com> wrote: > Hello, > > This is what I need, I have a sequence that receive the following message: > > > > ... > > > ... > > > ... > > > > I need to create a payload and invoke a service for each element, but > I need to call the service for each element once the previous invocation > has finished, that's why I cannot use the iterate mediator and I need to > create a custom one, so, what I need is to receive the original message > into the custom one, split the message and then invoke each service, or > maybe inject the corresponding messages into the synapse... > > I cannot use the iterate mediator with sequential = true because as far as > I know and have tested before, the sequential = true only prevents the > invocations to start sequentially but after that, all of them run in > parallel, I cannot use the foreach mediator because as far as I know, I > cannot use payload, or call mediators inside foreach, in facts, I have > tried and it seems like the original message get corrupted and the > execution of the sequence shows an unexpected behavior. > > thanks, > john > > ___ > Architecture mailing list > architect...@wso2.org > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Finding out supporting versions of ESB for a connector
Hi Malaka, How do I find out which versions of the ESB the connector supports? For example:- JIRA connector [1] - says that it supports 4.9.0. Does that mean 4.8.1 is not supported? If not - to what level is it supported for 4.8.1? Is it possible for us to improve this to maintain connectors per ESB version later on? [1] - https://store.wso2.com/store/assets/esbconnector/b6424572-c92c-4422-a8e2-36db83d98e81 Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Dev studio errors and feedback
On Wed, Dec 16, 2015 at 9:17 PM, Awanthika Senarath <awanth...@wso2.com> wrote: > Hello Dulitha, > > > I agree that artifact name needs to be unqiue to the car file. But in a > scenario where you have 2 esb configuration projects having an artifact > with the same name (in-sequence.xml) - it crashes the car interface. > > If you have the same ESB artifact in different configuration projects, you > cannot pack them in the same car file. Because in car file level we only > consider the artifact name and not the folder hierarchy (which involves the > ESB project). The ESB project is introduced by Dev studio to maintain > artifacts. When you deploy the car file in the ESB, ESB will only deploy > the artifacts as single entries and not the project, and I fail to > understand you reasoning behind having the same artifact name as you wont > be able to deploy them in the same ESB instance in a single car file anyway. > > But I accept that this should be conveyed to the user via a message, not > crashing the car file. > > > About the issue you faced when deleting artifacts, I was not able to > reproduce it, > > 1. Created two ESB projects > 2. Created 2 Rest API artifacts with the same name in both projects > 3. Deleted on Rest API > > It worked as expected for me in Dev studio 3.8.0 > > Could you please give me your Dev studio version and also reproducing > steps? > It was dev studio 3.8.0. Did you create the car project as well on both projects? Also there is an issue in deleting multiple artifacts. If muliple are deleted the car file doesn't reflect those. > > Regards > Awanthika > > Awanthika Senarath > Software Engineer, WSO2 Inc. > Mobile: +94717681791 > > > > On Wed, Dec 16, 2015 at 10:23 PM, Dulitha Wijewantha <duli...@wso2.com> > wrote: > >> >> >> On Tue, Dec 15, 2015 at 10:26 PM, Awanthika Senarath <awanth...@wso2.com> >> wrote: >> >>> Hi Dulitha, >>> >>> Find my responses in-line, >>> >>> 1) Can't have the same project name in the workspace. For example - I >>> create a project called gateway-dev and have gateway-car, gateway-synapse, >>> gateway-registry. I can't create a project with gateway-staging and have >>> gateway-car. Is this an eclipse limitation? >>> This is an eclipse limitation. Eclipse maintains a META file called >>> .project for each and every project and the name in this .project file >>> needs to be unique. >>> >>> 2) Can't have the same artifact name in the workspace. This one is bit >>> annoying. I renamed the project to gateway-dev-synapse and >>> gateway-staging-synapse. I can't have the api artifact with id.xml inside >>> dev project and staging project in the same namespace:- the car picking >>> form gets confused on the two assets. What's more - it will get corrupted >>> and not have anything at all from synapse to pick. Below is an error that >>> popped in the error console >>> Yes, car files import artifacts based on the artifact name and in >>> the artifact.xml of a car file it will list all the artifacts that needs to >>> be bundled in that particular car, hence the artifact names needs to be >>> unique for the car file. The error you have got is due to dev studio >>> crashing before the file system files are properly refreshed, OR an attempt >>> to manually edit the file system resources not via eclipse. Ideally this >>> should be resolved by refreshing the workspace files through eclipse (right >>> click the file and refresh) >>> >> >> I agree that artifact name needs to be unqiue to the car file. But in a >> scenario where you have 2 esb configuration projects having an artifact >> with the same name (in-sequence.xml) - it crashes the car interface. >> >> >> >>> >>> >> 3) Deleting a resource (API) got me below error - >>> Could you please let us know how to reproduce this? did you attempt >>> to rename the resource before deleting? >>> >> This was the scenario where I had the same arifact name in 2 different >> esb configuration projects. >> >> >> >>> >>> 4) Bulk import for resources - >>> You are correct, this is a current limitation. You can import the >>> synapse configuration with multiple proxies in it and dev-studio will >>> generate the proxies for different artifacts in the synapse configuration. >>> But currently it is not supported to import multiple proxy.xml files >>> simultaneously. >>> >>>
Re: [Dev] Dev studio errors and feedback
On Tue, Dec 15, 2015 at 10:26 PM, Awanthika Senarath <awanth...@wso2.com> wrote: > Hi Dulitha, > > Find my responses in-line, > > 1) Can't have the same project name in the workspace. For example - I > create a project called gateway-dev and have gateway-car, gateway-synapse, > gateway-registry. I can't create a project with gateway-staging and have > gateway-car. Is this an eclipse limitation? > This is an eclipse limitation. Eclipse maintains a META file called > .project for each and every project and the name in this .project file > needs to be unique. > > 2) Can't have the same artifact name in the workspace. This one is bit > annoying. I renamed the project to gateway-dev-synapse and > gateway-staging-synapse. I can't have the api artifact with id.xml inside > dev project and staging project in the same namespace:- the car picking > form gets confused on the two assets. What's more - it will get corrupted > and not have anything at all from synapse to pick. Below is an error that > popped in the error console > Yes, car files import artifacts based on the artifact name and in the > artifact.xml of a car file it will list all the artifacts that needs to be > bundled in that particular car, hence the artifact names needs to be unique > for the car file. The error you have got is due to dev studio crashing > before the file system files are properly refreshed, OR an attempt to > manually edit the file system resources not via eclipse. Ideally this > should be resolved by refreshing the workspace files through eclipse (right > click the file and refresh) > I agree that artifact name needs to be unqiue to the car file. But in a scenario where you have 2 esb configuration projects having an artifact with the same name (in-sequence.xml) - it crashes the car interface. > > 3) Deleting a resource (API) got me below error - > Could you please let us know how to reproduce this? did you attempt to > rename the resource before deleting? > This was the scenario where I had the same arifact name in 2 different esb configuration projects. > > 4) Bulk import for resources - > You are correct, this is a current limitation. You can import the > synapse configuration with multiple proxies in it and dev-studio will > generate the proxies for different artifacts in the synapse configuration. > But currently it is not supported to import multiple proxy.xml files > simultaneously. > > Regards > Awanthika > > > Awanthika Senarath > Software Engineer, WSO2 Inc. > Mobile: +94717681791 > > > > On Wed, Dec 16, 2015 at 6:25 AM, Dulitha Wijewantha <duli...@wso2.com> > wrote: > >> Hi guys, >> I got some issues today working on the developer studio. >> >> 1) Can't have the same project name in the workspace. For example - I >> create a project called gateway-dev and have gateway-car, gateway-synapse, >> gateway-registry. I can't create a project with gateway-staging and have >> gateway-car. Is this an eclipse limitation? >> >> 2) Can't have the same artifact name in the workspace. This one is bit >> annoying. I renamed the project to gateway-dev-synapse and >> gateway-staging-synapse. I can't have the api artifact with id.xml inside >> dev project and staging project in the same namespace:- the car picking >> form gets confused on the two assets. What's more - it will get corrupted >> and not have anything at all from synapse to pick. Below is an error that >> popped in the error console - >> >> org.eclipse.core.runtime.CoreException: The file is not synchronized with >> the local file system. >> at >> org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.commitFileBufferContent(ResourceTextFileBuffer.java:338) >> at >> org.eclipse.core.internal.filebuffers.ResourceFileBuffer.commit(ResourceFileBuffer.java:325) >> at >> org.eclipse.ltk.core.refactoring.TextFileChange.commit(TextFileChange.java:233) >> at >> org.eclipse.ltk.core.refactoring.TextChange.perform(TextChange.java:240) >> at >> org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278) >> at >> org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278) >> at >> org.eclipse.ltk.core.refactoring.PerformChangeOperation$1.run(PerformChangeOperation.java:258) >> at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2345) >> at >> org.eclipse.ltk.core.refactoring.PerformChangeOperation.executeChange(PerformChangeOperation.java:306) >> at >> org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOperation.executeChange(UIPerformChangeOperation.java:92) >> at >> org.eclipse.ltk.c
[Dev] Dev studio errors and feedback
) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) at org.eclipse.equinox.launcher.Main.run(Main.java:1450) Caused by: java.lang.NullPointerException at org.wso2.developerstudio.eclipse.platform.ui.provider.FilterNestedProjects.getPathList(FilterNestedProjects.java:121) at org.wso2.developerstudio.eclipse.platform.ui.provider.FilterNestedProjects.select(FilterNestedProjects.java:91) at org.eclipse.jface.viewers.ViewerFilter.filter(ViewerFilter.java:51) at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:921) at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:620) at org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeViewer.java:2645) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(AbstractTreeViewer.java:1923) at org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java:721) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1898) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1855) at org.eclipse.ui.navigator.CommonViewer.internalRefresh(CommonViewer.java:561) at org.eclipse.jface.viewers.StructuredViewer$8.run(StructuredViewer.java:1535) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1443) at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:403) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1404) at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1533) at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:555) at org.eclipse.ui.navigator.CommonViewer.refresh(CommonViewer.java:353) at org.eclipse.ui.navigator.CommonViewer.refresh(CommonViewer.java:510) at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1465) at org.wso2.developerstudio.eclipse.platform.ui.provider.ProjectContentProvider$2.run(ProjectContentProvider.java:163) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) ... 77 more 4) Bulk import for resources - I guess this is a limitation currently. There is no way to import bulk set of Proxy services to the project. Cheers -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165 <%2B94712112165>* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] [ESB] Deprecated features in ESB 4.10
>>>> *- Bean, POJOCommand, Spring* : Rarely used mediators and no active >>>>> development happens on these. >>>>> *- Router* : Same as filter mediator, so no use of having this. >>>>> *- In, Out * : Rarely used and often not required with the new >>>>> call/respond mediator approach. >>>>> >>>>> Any comments on these or any other features that we should deprecate >>>>> from 4.10 release? >>>>> >>>>> Thanks, >>>>> Kasun. >>>>> >>>>> -- >>>>> Kasun Indrasiri >>>>> Software Architect >>>>> WSO2, Inc.; http://wso2.com >>>>> lean.enterprise.middleware >>>>> >>>>> cell: +94 77 556 5206 >>>>> Blog : http://kasunpanorama.blogspot.com/ >>>>> >>>>> ___ >>>>> Architecture mailing list >>>>> architect...@wso2.org >>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>>> >>>>> >>>> >>>> >>>> -- >>>> Vidura Gamini Abhaya, Ph.D. >>>> Director of Engineering >>>> M:+94 77 034 7754 >>>> E: vid...@wso2.com >>>> >>>> WSO2 Inc. (http://wso2.com) >>>> lean.enterprise.middleware >>>> >>>> ___ >>>> Architecture mailing list >>>> architect...@wso2.org >>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>> >>>> >>> >>> >>> -- >>> Kathees >>> Software Engineer, >>> email: kath...@wso2.com >>> mobile: +94772596173 >>> >>> ___ >>> Architecture mailing list >>> architect...@wso2.org >>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>> >>> >> >> >> -- >> *Isuru Udana* >> Associate Technical Lead >> WSO2 Inc.; http://wso2.com >> email: isu...@wso2.com cell: +94 77 3791887 >> blog: http://mytecheye.blogspot.com/ >> >> ___ >> Architecture mailing list >> architect...@wso2.org >> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >> >> > > > -- > Vidura Gamini Abhaya, Ph.D. > Director of Engineering > M:+94 77 034 7754 > E: vid...@wso2.com > > WSO2 Inc. (http://wso2.com) > lean.enterprise.middleware > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.
in carbon.xml. There is no >>>>>> point of having just a host name without the port number. The carbon.xml >>>>>> host name will be the server ip address or the host name of the server >>>>>> which the product is running as clearly mentioned in the document [1]. >>>>>> >>>>>> As another reference, AFAIK in ESB, we use WSDLPrefix [2] in order to >>>>>> change the address endpoint of generated wsdls to LB's address when ESB >>>>>> is >>>>>> fronted by a LB. >>>>>> >>>>>> So I think introducing a new config to put the LB host name and port >>>>>> is valid. >>>>>> >>>>>> [1] https://docs.wso2.com/display/Carbon440/Configuring+carbon.xml >>>>>> [2] >>>>>> https://docs.wso2.com/display/ESB490/Setting+Up+Host+Names+and+Ports >>>>>> >>>>>> Thanks >>>>>> Geeth >>>>>> >>>>>>> >>>>>>> On Mon, Nov 23, 2015 at 9:58 PM, Milan Perera <mi...@wso2.com> >>>>>>> wrote: >>>>>>> >>>>>>>> Hi >>>>>>>> Chamara >>>>>>>> , >>>>>>>> >>>>>>>> Today we found out that even when the Host Names are configured in >>>>>>>>> the carbonl.xml to be server's identified domain name, the QR code >>>>>>>>> which is >>>>>>>>> generated while device registration, uses the host ip address which is >>>>>>>>> picked up from nowhere. >>>>>>>>> >>>>>>>> >>>>>>>> Actually this IP is taking from the PAN. In my machine, if I dont >>>>>>>> set it manually from the carbon.xml to my wlan IP, it pics the pan1 >>>>>>>> (10.7.200.1) and it breaks all the download links that are generated >>>>>>>> by the >>>>>>>> jaggery in most of the time. >>>>>>>> >>>>>>>> pan1 Link encap:Ethernet HWaddr c2:1e:fe:3b:6a:6e >>>>>>>> inet addr:10.7.200.1 Bcast:10.7.200.255 >>>>>>>> Mask:255.255.255.0 >>>>>>>> inet6 addr: fe80::c01e:feff:fe3b:6a6e/64 Scope:Link >>>>>>>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 >>>>>>>> RX packets:0 errors:0 dropped:0 overruns:0 frame:0 >>>>>>>> TX packets:156 errors:0 dropped:0 overruns:0 carrier:0 >>>>>>>> collisions:0 txqueuelen:0 >>>>>>>> RX bytes:0 (0.0 B) TX bytes:28795 (28.7 KB) >>>>>>>> >>>>>>>> wlan0 Link encap:Ethernet HWaddr 84:3a:4b:9b:cf:66 >>>>>>>> inet addr:192.168.1.10 Bcast:192.168.1.255 >>>>>>>> Mask:255.255.255.0 >>>>>>>> inet6 addr: fe80::863a:4bff:fe9b:cf66/64 >>>>>>>> Scope:Link >>>>>>>> UP BROADCAST RUNNING MULTICAST MTU:1500 >>>>>>>> Metric:1 >>>>>>>> RX packets:207466 errors:0 dropped:0 overruns:0 >>>>>>>> frame:0 >>>>>>>> TX packets:41603 errors:0 dropped:0 overruns:0 >>>>>>>> carrier:0 >>>>>>>> collisions:0 >>>>>>>> txqueuelen:1000 >>>>>>>> >>>>>>>> RX bytes:209272568 (209.2 MB) TX bytes:7936480 (7.9 MB) >>>>>>>> >>>>>>>> To overcome this, what I do is uncomment the tag from >>>>>>>> the carbon.xml and set it to my wlan ip. >>>>>>>> https://192.168.1.10: >>>>>>>> ${carbon.management.port}${carbon.context}/services/ >>>>>>>> >>>>>>>> Regards, >>>>>>>> >>>>>>>> -- >>>>>>>> *Milan Perera *| Software Engineer >>>>>>>> WSO2, Inc | lean. enterprise. middleware. >>>>>>>> #20, Palm Grove, Colombo 03, Sri Lanka >>>>>>>> Mobile: +94 77 309 7088 | Work: +94 11 214 5345 >>>>>>>> Email: mi...@wso2.com <ar...@wso2.com> | Web: www.wso2.com >>>>>>>> <http://lk.linkedin.com/in/milanharinduperera> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> *Chamara Ariyarathne* >>>>>>> Associate Technical Lead - QA >>>>>>> WSO2 Inc; http://www.wso2.com/ >>>>>>> Mobile; *+94772786766 <%2B94772786766>* >>>>>>> >>>>>> >>>>>> >>>>>> ___ >>>>>> Dev mailing list >>>>>> Dev@wso2.org >>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> S.Uthaiyashankar >>>>> VP Engineering >>>>> WSO2 Inc. >>>>> http://wso2.com/ - "lean . enterprise . middleware" >>>>> >>>>> Phone: +94 714897591 >>>>> >>>>> ___ >>>>> Dev mailing list >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> Sameera Jayasoma, >>>> Software Architect, >>>> >>>> WSO2, Inc. (http://wso2.com) >>>> email: same...@wso2.com >>>> blog: http://blog.sameera.org >>>> twitter: https://twitter.com/sameerajayasoma >>>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections >>>> Mobile: 0094776364456 >>>> >>>> Lean . Enterprise . Middleware >>>> >>>> >>> >>> >>> -- >>> Sameera Jayasoma, >>> Software Architect, >>> >>> WSO2, Inc. (http://wso2.com) >>> email: same...@wso2.com >>> blog: http://blog.sameera.org >>> twitter: https://twitter.com/sameerajayasoma >>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections >>> Mobile: 0094776364456 >>> >>> Lean . Enterprise . Middleware >>> >>> >> > > > -- > *Afkham Azeez* > Director of Architecture; WSO2, Inc.; http://wso2.com > Member; Apache Software Foundation; http://www.apache.org/ > * <http://www.apache.org/>* > *email: **az...@wso2.com* <az...@wso2.com> > * cell: +94 77 3320919 <%2B94%2077%203320919>blog: * > *http://blog.afkham.org* <http://blog.afkham.org> > *twitter: **http://twitter.com/afkham_azeez* > <http://twitter.com/afkham_azeez> > *linked-in: **http://lk.linkedin.com/in/afkhamazeez > <http://lk.linkedin.com/in/afkhamazeez>* > > *Lean . Enterprise . Middleware* > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 MSS JAX-RS Runtime Features
+1. Why don't we remove the JAX-RS bit and say MSS can be used to build rest services? Cause the moment someone say MSS can be used to deploy JAX-RS services - it gives the impression that we are supporting the JAX-RS spec. Example of text :- " You simply need to write a usual JAX-RS service and deploy it using a single line of code." found on the github page [1]. [1] - https://github.com/wso2/product-mss On Thu, Oct 15, 2015 at 1:46 AM, Sameera Jayasoma <same...@wso2.com> wrote: > +1. Since we are providing a subset of JAX-RC specification, we need to be > clear on what we support. Otherwise we will get into trouble later. This > got to be a public doc. > > Initially we forked netty-http to process JAX-RC annotations, but later > decided to completely revamp that implementation. Can you give us a summary > of the changes we have introduced. > > Thanks, > Sameera. > > On Thu, Oct 15, 2015 at 10:39 AM, Samiyuru Senarathne <samiy...@wso2.com> > wrote: > >> Sure, we will. >> >> On Thu, Oct 15, 2015 at 10:33 AM, Sagara Gunathunga <sag...@wso2.com> >> wrote: >> >>> >>> Shall we also create a doc with all JAX-RS annotations, extensions and >>> mentioning what MSS supported and what not supported ? >>> >>> Thanks ! >>> >>> On Thu, Oct 15, 2015 at 10:30 AM, Samiyuru Senarathne <samiy...@wso2.com >>> > wrote: >>> >>>> Hi, >>>> >>>> We have been developing our own JAX-RS runtime for WSO2 Micro Services >>>> Server (MSS). The purpose of that runtime is not to support the full JAX-RS >>>> specification but to support a subset of the JAX-RS specification plus a >>>> set of additional features focusing on performance and lightweightness to >>>> run microservices. >>>> >>>> With latest development work currently the MSS JAX-RS runtime supports >>>> the following features. >>>> >>>>- The runtime can process annotated POJO JAX-RS resource classes >>>>and their annotated methods to create REST service endpoints for valid >>>>resource methods. >>>>- The runtime supports the following class level annotations. >>>> - @Path - Root path for resource methods >>>> - @Consumes - Default consume media type(s) for resource methods >>>> - @Produces - Default produce media type(s) for resource methods >>>>- Supports the following method level annotations. >>>> - @Path - Endpoint of the method relative to @Path of the class >>>> - @Consumes - Media type(s) that the method can consume >>>> - @Produces - Media type(s) that is produced by the method >>>> - @GET - HTTP GET method >>>> - @PUT - HTTP PUT method >>>> - @POST - HTTP POST method >>>> - @DELETE - HTTP DELETE method >>>>- Supports the following parameter level annotations. >>>> - @DefaultValue - Specify a default parameter value >>>> - @Context - Inject additional objects. Currently supports >>>> injection of io.netty.handler.codec.http.HttpRequest and >>>> org.wso2.carbon.mss.HttpResponder >>>> - @PathParam - /StockQuote/{*symbol*} to get value of symbol >>>> - @QueryParam - /Students?*age=18* to get value of age >>>> - @HeaderParam - To read HTTP request header values >>>>- Supports returning POJO from resource methods to response by xml >>>>or json and getting injected POJO to resource methods for request bodies >>>>that are json or xml. >>>>- Supports returning *javax.ws.rs.core.Response* objects from >>>>resource methods to send HTTP responses in a more customised way. >>>> >>>> Product-MSS repository url: https://github.com/wso2/product-mss >>>> >>>> Best Regards, >>>> Samiyuru >>>> -- >>>> Samiyuru Senarathne >>>> *Software Engineer* >>>> Mobile : +94 (0) 71 134 6087 >>>> samiy...@wso2.com >>>> >>> >>> >>> >>> -- >>> Sagara Gunathunga >>> >>> Architect; WSO2, Inc.; http://wso2.com >>> V.P Apache Web Services;http://ws.apache.org/ >>> Linkedin; http://www.linkedin.com/in/ssagara >>> Blog ; http://ssagara.blogspot.com >>> >>> >> >> >> -- >> Samiyuru Senarathne >> *Software Engineer* >> Mobile : +94 (0)
[Dev] UpdateCredentialByAdmin doesn't support a byte array
) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Suppression file not found - carbon-transports
Hi guys, I am trying to build the repo carbon-transports but it gives me the below error [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check (validate) on project org.wso2.carbon.transport.http.netty: Failed during checkstyle execution: Unable to find suppressions file at location: https://raw.githubusercontent.com/wso2/carbon-kernel/master/suppressions.xml: Could not find resource ' https://raw.githubusercontent.com/wso2/carbon-kernel/master/suppressions.xml'. -> [Help 1] After checking - I found out that the suppressions.xml file is not in the master branch but in 5.0.x [1] branch. Any reason for not changing this? Also there seems to be no build for it in jenkins. [1] - https://raw.githubusercontent.com/wso2/carbon-kernel/5.0.x/suppressions.xml Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Running a sample on MSS server
Hi Azeez, How do I run the sample provided for the server? I tried copying the artifact file to the dropins folder of the server but it doesn't seem to start the bundle. Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com <duli...@wso2mobile.com>* * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV][EMM] Android enrollment production readiness
Hi Inosh, +1 for the property file. We also can trigger the build from Gradle for environments right? [1]. We can pass in an environment parameter to build an artifact. [1] - http://tobiasbayer.com/blog/2011/04/16/building-for-different-environments-with-gradle/ Cheers~ On Mon, Aug 17, 2015 at 3:08 PM, Dilshan Edirisuriya dils...@wso2.com wrote: Hi, Better make the IP configurable so that it can be hidden anytime specially when it comes to a production environment. When it comes to domain also same thing is applicable since for most of the deployment it will only need just one tenant. Regards, Dilshan On Mon, Aug 17, 2015 at 10:07 AM, Inosh Perera ino...@wso2.com wrote: Hi Milan/Kasun, During the EMM registration[1], Step 3 and 4 where the user has to enter the IP/domain; should be designed in a way where in a production scenario, this step can be bypassed. In other words, the IP can be hard coded and the step can be hidden from the user, since in production the user is not expected to know about the backend IPs/Domains. Same can be applicable to step 5 Ownership type selection. Once option would be to maintain these in a configuration file. [1]. https://docs.wso2.com/display/EMM200/End-user+Registering+an+Android+Device Regards, Inosh -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 -- Dilshan Edirisuriya Senior Software Engineer - WSO2 Mob: + 94 777878905 http://wso2.com/ https://www.linkedin.com/profile/view?id=50486426 -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MDM] Error occurred while issuing the access token
.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99) at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57) at org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticatorFrameworkValve.invoke(WebappAuthenticatorFrameworkValve.java:39) at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:722) Caused by: org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception: Error when storing the access token for consumer key : wmDGttgLFP3r0iQe54F3YMJTGFQa at org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.storeAccessToken(TokenMgtDAO.java:201) at org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.invalidateAndCreateNewToken(TokenMgtDAO.java:870) ... 54 more Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: PRIMARY_KEY_F ON PUBLIC.IDN_OAUTH2_ACCESS_TOKEN(ACCESS_TOKEN); SQL statement: INSERT INTO IDN_OAUTH2_ACCESS_TOKEN (ACCESS_TOKEN, REFRESH_TOKEN, CONSUMER_KEY, AUTHZ_USER, TIME_CREATED, VALIDITY_PERIOD, TOKEN_SCOPE, TOKEN_STATE, USER_TYPE) VALUES (?,?,?,?,?,?,?,?,?) [23001-140] at org.h2.message.DbException.getJdbcSQLException(DbException.java:327) at org.h2.message.DbException.get(DbException.java:167) at org.h2.message.DbException.get(DbException.java:144) at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:157) at org.h2.index.PageBtree.find(PageBtree.java:121) at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:138) at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:93) at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:90) at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:81) at org.h2.table.RegularTable.addRow(RegularTable.java:116) at org.h2.command.dml.Insert.insertRows(Insert.java:120) at org.h2.command.dml.Insert.update(Insert.java:82) at org.h2.command.CommandContainer.update(CommandContainer.java:70) at org.h2.command.Command.executeUpdate(Command.java:199) at org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:179) at org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.storeAccessToken(TokenMgtDAO.java:191) ... 55 more Any help on this matter would be appreciated. Regards, -- Milan Harindu Perera Software Engineer *WSO2, Inc* (+94) 77 309 7088 lean . enterprise . middleware http://lk.linkedin.com/in/milanharinduperera ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, *Thilini Cooray* Software Engineer Mobile : +94 (0) 774 570 112 %2B94%20%280%29%20773%20451194 E-mail : thili...@wso2.com WSO2 Inc. www.wso2.com lean.enterprise.middleware -- Milan Harindu Perera Software Engineer *WSO2, Inc* (+94) 77 309 7088 lean . enterprise . middleware http://lk.linkedin.com/in/milanharinduperera -- Milan Harindu Perera Software Engineer *WSO2, Inc* (+94) 77 309 7088 lean . enterprise . middleware http://lk.linkedin.com/in/milanharinduperera ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me
Re: [Dev] [MDM] Modifying invite-user functionality of MDM
Hi guys, The usual approach will work fine for normal web application scenarios where the user is invited to the web app. But our scenario is specific where the user mainly uses the account to enroll the device. The problem Harshan mention is critical if we follow the proposed approach. How about we do this - when the admin creates the user, the a default password is generated and email to the user as previously. The account, however - is setup with limited permission whereby the user can only perform device enrollment. When the user logs into the MDM console we prompt the user to change his password since he is using a default generated password. Cheers~ On Wed, Jun 10, 2015 at 10:30 AM, Milan Perera mi...@wso2.com wrote: +1. I think we should do this because user should have the freedom to choose the password under some kind of password policy. On Wed, Jun 10, 2015 at 9:59 AM, Kasun Dananjaya Delgolla kas...@wso2.com wrote: +1. @Harshan-I think what Prabath mentions is just end user changing the password if required. So it's not necessarily 2 times. Anyway it's the similar approach we had in 1.1.0. And I don't see an alternative to this method. So I think we better do this. On Wed, Jun 10, 2015 at 5:43 AM, Harshan Liyanage hars...@wso2.com wrote: Hi Prabath, That sounds ok to me. But will it break the end-user experience since the users have to login to MDM console and then to enroll the device instead of directly enrolling the device (2 MDM logins vs 1 login)? Thanks, Lakshitha Harshan Software Engineer Mobile: *+94724423048* Email: hars...@wso2.com Blog : http://harshanliyanage.blogspot.com/ *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. On Wed, Jun 10, 2015 at 12:34 AM, Prabath Abeysekera praba...@wso2.com wrote: Guys, I'm planning to do the $Subject. Right now we ourselves have implemented a functionality where an email is triggered upon creating users. However, this particular functionality appears to be already there with a much better implementation as part of IS components. What it does is, adminstrators can opt to create a user in the user management system with ask user for password option, which would automatically trigger an email with a preconfigured template when the user creation is all done. Then the user can log into the MDM console and set himself a password for further use. We can even enforce captcha validation using the existing functionality in IS. Once this step is done, we can then go on to invite users for enrolling their devices. Please shout if there's any issue with the above suggested approach. Cheers, Prabath -- Prabath Abeysekara Technical Lead WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 -- Kasun Dananjaya Delgolla Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware Tel: +94 11 214 5345 Fax: +94 11 2145300 Mob: + 94 771 771 015 Blog: http://kddcodingparadise.blogspot.com Linkedin: *http://lk.linkedin.com/in/kasundananjaya http://lk.linkedin.com/in/kasundananjaya* -- Milan Harindu Perera Software Engineer *WSO2, Inc* (+94) 77 309 7088 lean . enterprise . middleware http://lk.linkedin.com/in/milanharinduperera -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MDM] Modifying invite-user functionality of MDM
-1 for configurable feature. This could potentially open up a security hole. Also since this is not something that's going to vary based on the customer (enrollment is a general use case) - I believe we should choose a method. On Wed, Jun 10, 2015 at 11:06 AM, Harshan Liyanage hars...@wso2.com wrote: Yeah. +1 for configurable feature. Lakshitha Harshan Software Engineer Mobile: *+94724423048* Email: hars...@wso2.com Blog : http://harshanliyanage.blogspot.com/ *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. On Wed, Jun 10, 2015 at 10:48 AM, Inosh Perera ino...@wso2.com wrote: Hi all, If it is configurable whether to use the 'ask user for password or admin assign it(auto generated) it would be ideal. Regards, Inosh On Wed, Jun 10, 2015 at 10:46 AM, Dulitha Wijewantha duli...@wso2.com wrote: Hi guys, The usual approach will work fine for normal web application scenarios where the user is invited to the web app. But our scenario is specific where the user mainly uses the account to enroll the device. The problem Harshan mention is critical if we follow the proposed approach. How about we do this - when the admin creates the user, the a default password is generated and email to the user as previously. The account, however - is setup with limited permission whereby the user can only perform device enrollment. When the user logs into the MDM console we prompt the user to change his password since he is using a default generated password. Cheers~ On Wed, Jun 10, 2015 at 10:30 AM, Milan Perera mi...@wso2.com wrote: +1. I think we should do this because user should have the freedom to choose the password under some kind of password policy. On Wed, Jun 10, 2015 at 9:59 AM, Kasun Dananjaya Delgolla kas...@wso2.com wrote: +1. @Harshan-I think what Prabath mentions is just end user changing the password if required. So it's not necessarily 2 times. Anyway it's the similar approach we had in 1.1.0. And I don't see an alternative to this method. So I think we better do this. On Wed, Jun 10, 2015 at 5:43 AM, Harshan Liyanage hars...@wso2.com wrote: Hi Prabath, That sounds ok to me. But will it break the end-user experience since the users have to login to MDM console and then to enroll the device instead of directly enrolling the device (2 MDM logins vs 1 login)? Thanks, Lakshitha Harshan Software Engineer Mobile: *+94724423048* Email: hars...@wso2.com Blog : http://harshanliyanage.blogspot.com/ *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. On Wed, Jun 10, 2015 at 12:34 AM, Prabath Abeysekera praba...@wso2.com wrote: Guys, I'm planning to do the $Subject. Right now we ourselves have implemented a functionality where an email is triggered upon creating users. However, this particular functionality appears to be already there with a much better implementation as part of IS components. What it does is, adminstrators can opt to create a user in the user management system with ask user for password option, which would automatically trigger an email with a preconfigured template when the user creation is all done. Then the user can log into the MDM console and set himself a password for further use. We can even enforce captcha validation using the existing functionality in IS. Once this step is done, we can then go on to invite users for enrolling their devices. Please shout if there's any issue with the above suggested approach. Cheers, Prabath -- Prabath Abeysekara Technical Lead WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 -- Kasun Dananjaya Delgolla Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware Tel: +94 11 214 5345 Fax: +94 11 2145300 Mob: + 94 771 771 015 Blog: http://kddcodingparadise.blogspot.com Linkedin: *http://lk.linkedin.com/in/kasundananjaya http://lk.linkedin.com/in/kasundananjaya* -- Milan Harindu Perera Software Engineer *WSO2, Inc* (+94) 77 309 7088 lean . enterprise . middleware http://lk.linkedin.com/in/milanharinduperera -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http
[Dev] Single API to persist a Policy and Profile in MDM
Hi guys, Earlier approach was to break down the concept of profiles and policies separately and handle them. Since now we have merged them together through a wizard, there is a tricky part in the API. We can't call two separate APIs to persist the Policy and a Profile since then the operation won't be atomic. Shall we create a REST API which can save our merged policy + profile accepting a JSON input? Or is there a better way to do it? Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] MDM UI Progress update
) at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386) at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63) at org.jaggeryjs.rhino.mdm.api.c0._c_script_0(/mdm/api/user-api.jag:27) at org.jaggeryjs.rhino.mdm.api.c0.call(/mdm/api/user-api.jag) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) at org.jaggeryjs.rhino.mdm.api.c0.call(/mdm/api/user-api.jag) at org.jaggeryjs.rhino.mdm.api.c0.exec(/mdm/api/user-api.jag) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567) ... 43 more Caused by: org.jaggeryjs.scriptengine.exceptions.ScriptException: org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (/mdm/modules/utility.js#24) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571) at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) at org.jaggeryjs.jaggery.core.manager.WebAppManager.executeScript(WebAppManager.java:308) at org.jaggeryjs.jaggery.core.manager.WebAppManager.require(WebAppManager.java:358) at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) ... 52 more Caused by: org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (/mdm/modules/utility.js#24) at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.mdm.modules.c3._c_anonymous_2(/mdm/modules/utility.js:24) at org.jaggeryjs.rhino.mdm.modules.c3.call(/mdm/modules/utility.js) at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63) at org.jaggeryjs.rhino.mdm.modules.c3._c_anonymous_4(/mdm/modules/utility.js:34) at org.jaggeryjs.rhino.mdm.modules.c3.call(/mdm/modules/utility.js) at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85) at org.jaggeryjs.rhino.mdm.modules.c1._c_anonymous_1(/mdm/modules/user.js:30) at org.jaggeryjs.rhino.mdm.modules.c1.call(/mdm/modules/user.js) at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23) at org.jaggeryjs.rhino.mdm.modules.c1._c_script_0(/mdm/modules/user.js:23) at org.jaggeryjs.rhino.mdm.modules.c1.call(/mdm/modules/user.js) at org.jaggeryjs.rhino.mdm.modules.c1.exec(/mdm/modules/user.js) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567) ... 59 more Caused by: java.lang.NullPointerException at org.wso2.carbon.context.PrivilegedCarbonContext.getOSGiService(PrivilegedCarbonContext.java:369) at org.wso2.carbon.context.PrivilegedCarbonContext.getOSGiService(PrivilegedCarbonContext.java:341) 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.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) ... 74 more This is happening because the org.wso2.carbon.device.mgt.user.core.service.UserManagementService is not available anymore. Did we change the service name? This is a blocker since the user can't login to system (I am working on an older version as a workaround for now). I couldn't test the searches based on roles and users because of the above mentioned issue. Also I have created a layer above the operation payload generator in Front end that can be used for Profile generation as well. @Dilan let's have a chat and embed that on the profile page of the policy. @Dilshan please send me the API doc for the mail operation so that I can implement that before noon. Another point is that - after moving all profile operations to the sliding operation pane - only Device Lock, Location, Alarm, Enterprise Wipe are available as Command operations. Do we have anymore command operations that we can integrate. @ManojG - I will meet you to talk about the Device Info for Android. Still didn't test it because of the fore mentioned issue. Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471
[Dev] Include vendor and model attributes in the Device property list
Hi Dilshan, Can you include the vendor and the model attribute to the property list of the Device object ? Maybe later, we can make the mandatory attributes of the Device object itself since every device has a Model and a Vendor. Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Error in accessing the MDM jaggery app in MDM
Hi guys, I am getting below error when accessing the MDM jaggery app. 08:47:29,246 org.wso2.carbon.tomcat.ext.valves.CompositeValve - Could not handle request: / java.util.NoSuchElementException at java.util.StringTokenizer.nextToken(StringTokenizer.java:349) at org.wso2.carbon.webapp.authenticator.framework.authenticator.OAuthAuthenticator.authenticate(OAuthAuthenticator.java:56) at org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticatorFrameworkValve.invoke(WebappAuthenticatorFrameworkValve.java:37) at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) 08:47:31,788 org.wso2.carbon.tomcat.ext.valves.CompositeValve - Could not handle request: / java.util.NoSuchElementException at java.util.StringTokenizer.nextToken(StringTokenizer.java:349) at org.wso2.carbon.webapp.authenticator.framework.authenticator.OAuthAuthenticator.authenticate(OAuthAuthenticator.java:56) at org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticatorFrameworkValve.invoke(WebappAuthenticatorFrameworkValve.java:37) at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [CDMF] Connect IOT Devices with CDMF
Hi Ayyob, So below are the things you need to do to get things started - - You'll have to write an IoT device-mgt plugin - https://github.com/wso2/carbon-device-mgt-plugins - You'll need to write a JAX-RS layer where the IOT agent communicates - I started some work on a python based agent - https://github.com/dulichan/iot-ref-arch/tree/master/python-agent/agent. I think we can start from there. Please meet me to talk further on this. Cheers~ On Thu, May 7, 2015 at 4:52 PM, Ayyoob Hamza ayy...@wso2.com wrote: Thanks for the info Milan *Ayyoob Hamza* *Software Engineer* WSO2 Inc.; http://wso2.com email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495 On Thu, May 7, 2015 at 12:39 PM, Milan Perera mi...@wso2.com wrote: Hi Ayyoob, In order to enroll and manage devices, first you have to create a plugin (OSGI service) which should contain the device specific operations, policies and etc. Then you can register that plugin in the core[1]. So then you will have to implement JAX-RS service that should communicate with that plugin and get the things done. [1]https://github.com/wso2/carbon-device-mgt Thanks, On Thu, May 7, 2015 at 12:27 PM, Ayyoob Hamza ayy...@wso2.com wrote: Hi all, We are intending to enroll and manage iot devices with the cdmf. For this purpose we couldn't find a web service that could perform this task on[1].Therefore we thought of creating a patch to expose a secured JAX-RS service with basic authentication for device management. What are your thoughts on this ? [1]https://github.com/wso2/carbon-device-mgt Best Regards, *Ayyoob Hamza* *Software Engineer* WSO2 Inc.; http://wso2.com email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Milan Harindu Perera Software Engineer *WSO2, Inc* (+94) 77 309 7088 lean . enterprise . middleware http://lk.linkedin.com/in/milanharinduperera ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Utilizing JAX-RS services without rewriting APIs in the jaggery app
Hi guys, This has been a long-standing argument which we couldn't conclude. I will take Policy-Mgt as an example to explain the problem. There is a front-end UI that gives the feature to add a policy to the system. This UI will call an HTTP endpoint using Ajax. The question is regarding the implementation of the HTTP endpoint. Below are the two approaches currently used:- - Write an HTTP API in the Jaggery App - This will convert the POST input to a Java object and call an OSGi service to save it. - Write a JAX-RS service - This will convert the POST input to a Java object and call an OSGi service to save it (Object is serialized to JAXB) I am +1 for using as much as possible JAX-RS services instead of writing an HTTP API in the Jaggery App. Below are my reasons - 1. Writing a Jaggery API couples the API implementation to the Jaggery App. Jaggery App is a UI representation IMO. 2. Couples the authentication mechanism (the Session) to the API. This has currently happened in the API Manager store and publisher apps where a session cookie is needed to invoke the API [1] 3. Introducing of wrapper objects and another module layer to the Jaggery app. Since there is no JSON serialization libraries (such as a JAXB), before calling OSGi, wrapper objects have to be created. This increases the complexity in the module layer. Below are the reasons that I can think of why we need to write Jaggery APIs - - Plugin functionality to UUF? - Where a unit can contain it's API implementation. - Calling JAX-RS securely from front-end JS. We have discussed and arrived at a solution [2] I understand that we can't eliminate the module layer completely because we need to perform backend rendering. But think about it, the only time a backend rendering is needed- is to render an individual view. WDYT? [1] - https://docs.wso2.com/display/AM190/Store+APIs [2] - Calling secured JAX-RS services from the browser - Dev mail Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Android Operation APIs
On Thu, Apr 30, 2015 at 2:35 PM, Prabath Abeysekera praba...@wso2.com wrote: Hi Milan, On Thu, Apr 30, 2015 at 2:13 PM, Milan Perera mi...@wso2.com wrote: Hi Dulitha, I have added features to the relevant table. Please find the PR[1]. The way this's already been done doesn't seem to be right. IMO, persisting the feature metadata corresponding to a particular device platform needs to be done at the point where the plugin gets registered into the device management framework. The current approach hides some part of business logic (registering device specific feature metadata) within the database layer as the same is done through a SQL script, which should ideally have been captured in the plug-in implementation itself. Please review this again and try to get things improved along the approach suggested above. Are you saying to have another script to register features separately for each plugin? Also Dilshan/Milan can you please update this sheet [1] with the Operation Constants so that we can make it similar as much as possible. [1] - https://docs.google.com/a/wso2.com/spreadsheets/d/1MSKfzHigj6JBgW5EiH4O08A7s4owl43S9oUlx-T8Gvo/edit?usp=sharing Cheers, Prabath [1] https://github.com/wso2/carbon-device-mgt-plugins/pull/4 Regards, On Thu, Apr 30, 2015 at 9:51 AM, Milan Perera mi...@wso2.com wrote: Hi Dulitha, Features have not been added yet. Will do ASAP. Regards, On Thu, Apr 30, 2015 at 7:51 AM, Dulitha Wijewantha duli...@wso2.com wrote: Hi Milan, Have the features been added to the database? (Last time I checked, features weren't available in the database). Cheers~ On Thu, Apr 30, 2015 at 3:12 AM, Prabath Abeysekera praba...@wso2.com wrote: Milan, please share this via dev@. On Thu, Apr 30, 2015 at 1:12 AM, Milan Perera mi...@wso2.com wrote: Hi all, $subject can be found here: https://docs.google.com/a/wso2.com/document/d/1D5tcSh-uAT28e2nDLUzd4TQ-ohH27onekgS0E73CVHg/edit?usp=sharing Thanks, -- Milan Harindu Perera Software Engineer *WSO2, Inc* (+94) 77 309 7088 lean . enterprise . middleware http://lk.linkedin.com/in/milanharinduperera -- Prabath Abeysekara Technical Lead WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* -- Milan Harindu Perera Software Engineer *WSO2, Inc* (+94) 77 309 7088 lean . enterprise . middleware http://lk.linkedin.com/in/milanharinduperera -- Milan Harindu Perera Software Engineer *WSO2, Inc* (+94) 77 309 7088 lean . enterprise . middleware http://lk.linkedin.com/in/milanharinduperera -- Prabath Abeysekara Technical Lead WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Any available module for jaggery to get oAuth tokens?
Yeah, that's the service URL to get tokens, but I am looking for an api to get the tokens. Since there is no such API available, shall I improve the oAuth module to perform this function? On Fri, Apr 24, 2015 at 7:33 PM, Madusanka Premaratne madusan...@wso2.com wrote: Hi Dulitha, You can call to https://localhost:8243/token to get both refresh_token and access_token Have a look at the following curl command curl -k -d grant_type=passwordusername=adminpassword=admin -H Authorization: Basic bmU5X015dDNKWGxuTDRNWjhrbnlFdDM3cGRvYTpTSEtCOTZoX0RjeGVlMnQ0eG9JZlhMUERRRHdh, Content-Type: application/x-www-form-urlencoded https://localhost:8243/token Thanks, Madusanka On Fri, Apr 24, 2015 at 5:14 PM, Dulitha Wijewantha duli...@wso2.com wrote: Hi guys, Is there are any available module for jaggery (or Java) that can be called to obtain oAuth 2 tokens from API Manager? I looked into the oauth module [1] in jaggery but it doesn't seem to return refresh tokens. My use-case is to obtain access/refresh tokens for Password/SAML Grant Type from a Jaggery app. [1] - https://github.com/wso2/jaggery-extensions/blob/master/oauth/resources/org.jaggeryjs.modules.oauth/src/main/java/org/jaggeryjs/modules/oauth/OAuthHostObject.java Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Madusanka Premaratne* | Associate Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 835 70 73| Work: +94 112 145 345 Email: madusan...@wso2.com | Web: www.wso2.com [image: Facebook] https://www.facebook.com/maduzanka [image: Twitter] https://twitter.com/rmmpremaratne [image: Google Plus] https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub [image: Linkedin] http://lk.linkedin.com/in/madusanka/ [image: Instagram] http://instagram.com/madusankapremaratne [image: Skype] http://@rmmpremaratne -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Any available module for jaggery to get oAuth tokens?
Hi guys, Is there are any available module for jaggery (or Java) that can be called to obtain oAuth 2 tokens from API Manager? I looked into the oauth module [1] in jaggery but it doesn't seem to return refresh tokens. My use-case is to obtain access/refresh tokens for Password/SAML Grant Type from a Jaggery app. [1] - https://github.com/wso2/jaggery-extensions/blob/master/oauth/resources/org.jaggeryjs.modules.oauth/src/main/java/org/jaggeryjs/modules/oauth/OAuthHostObject.java Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Kasun Dhananjaya Delgolla
Congratz! On Sat, Apr 11, 2015 at 11:03 PM, Kasun Dananjaya Delgolla kas...@wso2.com wrote: Thank a lot everyone! :) On Sat, Apr 11, 2015 at 1:26 PM, Jerad Rutnam je...@wso2.com wrote: Congratulations Kasun! :) On Sat, Apr 11, 2015 at 7:55 PM, Prasanna Dangalla prasa...@wso2.com wrote: Congratulations On Fri, Apr 10, 2015 at 9:45 PM, Harsha Kumara hars...@wso2.com wrote: Congratulations Kasun! On Fri, Apr 10, 2015 at 6:39 PM, Maheeka Jayasuriya mahe...@wso2.com wrote: Congrats Kasun !! Maheeka Jayasuriya Software Engineer Mobile : +9450661 On Fri, Apr 10, 2015 at 6:05 PM, Dilan Udara Ariyaratne dil...@wso2.com wrote: Congratz, Kasun!!! *Dilan U. Ariyaratne* Software Engineer WSO2 Inc. http://wso2.com/ Mobile: +94775149066 lean . enterprise . middleware On Fri, Apr 10, 2015 at 5:30 PM, Prabath Abeysekera praba...@wso2.com wrote: Hi Everyone, It's my pleasure to welcome Kasun Dhananjaya Delgolla as a WSO2 Committer. Kasun has been a key element of EMM as well as MDM teams for the last couple of years and contributed towards all development efforts with a great deal of passion and commitment. In recognition of his contributions, he's been voted in as a WSO2 Committer. Kasun, Welcome aboard and keep up the good work! Cheers, Prabath -- 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 ___ 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 -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Prasanna Dangalla Software Engineer, WSO2, Inc.; http://wso2.com/ lean.enterprise.middleware cell: +94 777 55 80 30 | +94 718 11 27 51 twitter: @prasa77 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Jerad Rutnam* *Software Engineer* WSO2 Inc. lean | enterprise | middleware M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com -- Kasun Dananjaya Delgolla Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware Tel: +94 11 214 5345 Fax: +94 11 2145300 Mob: + 94 771 771 015 Blog: http://kddcodingparadise.blogspot.com Linkedin: *http://lk.linkedin.com/in/kasundananjaya http://lk.linkedin.com/in/kasundananjaya* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Dilan Ariyaratne
Congratz! On Sat, Apr 11, 2015 at 1:11 PM, Malith Munasinghe mali...@wso2.com wrote: Congrats Dilan!! On Sat, Apr 11, 2015 at 1:01 PM, Thusitha Thilina Dayaratne thusit...@wso2.com wrote: Congratulations ...! On Fri, Apr 10, 2015 at 3:44 PM, Prabath Abeysekera praba...@wso2.com wrote: Hi Everyone, It's my pleasure to welcome Dilan Ariyaratne as a WSO2 Committer. Dilan has been part of some key development efforts of MDM as well as EMM over the last couple of months. In recognition of all his contributions, he's been voted as a WSO2 comitter. Dilan, Welcome aboard and keep up the good work! Cheers, Prabath -- 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 -- Thusitha Dayaratne Software Engineer WSO2 Inc. - lean . enterprise . middleware | wso2.com Mobile +94712756809 Blog alokayasoya.blogspot.com Abouthttp://about.me/thusithathilina ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Malith Munasinghe | Software Engineer M: +94 (071) 9401122 E: mali...@wso2.com W: http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MDM] Permission Model used by WSO2 MDM UI 2.0.0 Release
On Wed, Apr 8, 2015 at 3:52 PM, Dilan Udara Ariyaratne dil...@wso2.com wrote: Hi Folks, I have been going through the permission model used by WSO2 MDM UI 2.0.0 Release and found out that we are inserting a set of self-defined permissions to a registry path starting with the following pattern. /_system/governance/permission/ in registry.put(/_system/governance/permission/ + path + / + permission.key, resource); My first question would be: [1] Is this some kind of standard path where we can define permissions as in some permission tree where a set of permissions mapped into some defined role? This is a the location used to add new permissions (but not assigining). What you add here will be available in the permission tree. My second question would be: [2] How does the mapping occur in between users - Roles - Permissions? I have seen some kind of mapping in between permissions and roles for the following two user types (A) device-mgt/admin and (B) device-mgt/user in insertAppPermissions() function inside modules/utility.js file. Is this some kind of temporary touch-up for the permission model or are we planning to have only these two user roles in the system? Their is no role mapping in the permission tree. 'admin' and 'user' are used to categorize certain permissions. In device management context, it means controller other's devices vs controlling my devices. But still - we have to assign the permissions to the role. If a role has a device-mgt/admin permission, it can do operations/actions on others devices. Appreciate your feedback on this. Thanks. *Dilan U. Ariyaratne* Software Engineer WSO2 Inc. http://wso2.com/ Mobile: +94775149066 lean . enterprise . middleware -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Unit testing DAO code
Hi Krishantha, I looked around to find the opinion of the java community on unit testing DAO layer of codebase and found out different approaches. Below are few - - Not testing DAO layer at all [1]. This is not the most convincing approach. - Test the DAO layer by its own self. Create/Read/Update/Delete [2] - Use handwritten database queries and test them isolation [3] To test a simple DAO class - the second method would be sufficient. But a complex class that has foreign keys and depending DAO objects would be tedious. One DAO would be to be used to insert a record for another DAO to use. This destroys the idea of unit testing where we are testing an isolated piece of code. My suggestion would be to use the 3rd method for complicated scenarios like above. And use second method for simple DAO testing. WDYT? [1] - http://java.dzone.com/articles/stop-unit-testing-database [2] - http://tutorials.jenkov.com/java-unit-testing/database-testing-crud.html [3] - http://programmers.stackexchange.com/questions/219362/how-to-test-the-data-access-layer Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Are we using Hungarian notation or not?
Hi Prabath, I have noticed that we use the Hungarian notation in certain places [1] and not in certain places. Shall we stick to a single practice as much as possible? For example, the code I appointed out earlier could be written like below - File schemaConfig = new File(DeviceManagementConfigTests.TEST_CONFIG_SCHEMA_LOCATION); SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); Also, it looks like Sun/Oracle doesn't practice the Hungarian notation either [2]. I looked at some of our own code [3][4] and found out that we don't follow the Hungarian notation. As for those who don't know what the Hungarian notation is - it's where one name the object with the type of the object itself (this is rarely useful in Strong Typed languages). [1] - https://github.com/wso2/carbon-device-mgt/blame/master/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/java/org/wso2/carbon/device/mgt/core/DeviceManagementConfigTests.java#L53 [2] - http://stackoverflow.com/questions/10345344/naming-convention-for-objects-in-java [3] - https://github.com/wso2/carbon-mediation/blob/master/components/mediators/smooks/org.wso2.carbon.mediator.smooks/src/main/java/org/wso2/carbon/mediator/transform/Output.java [4] - https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.authenticator.proxy/src/main/java/org/wso2/carbon/authenticator/proxy/AuthenticationAdminClient.java#L120 Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Urgent] Permissions of Units in Unified UI
Hi Manu, In our current Units mechanism, we don't specify the permissions the unit is consuming. The suggestion is to hold the permissions that a unit is consuming within the unit. Unified UI framework will push these permissions to the registry in application startup. We can also provide a helper form the unified UI to check if the current user is permitted or not. WDYT? This is urgent for us as we are nearing, our product release. Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [CDM] Feature Manager interface method names
Hi guys, I have an Interface called FeatureManager. I want to have methods to retrieve features for device type, device identifier and all features. Is it consistent with our practice to name these methods as below - - getFeatures (String deviceType) - getFeatures (DeviceIdentifier deviceIdentifier) - getFeatures() - get all features Or do you prefer it if the methods are not overloaded? Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Urgent] API store not showing published APIs in 1.3.3 version
Hi Nuwan, We are using the carbon API manager component 1.3.3 version [1]. When you published an API from the API Publisher, the API is not visible in the API Store. I checked with a latest snapshot of 1.9.0 [2] and found out that it doesn't seem to have the above problem. However, the carbon apim version used in product-apim is 1.2.0-SNAPSHOT [3]. This is currently a blocker for our ongoing release. [1] - https://github.com/wso2/product-mdm/blob/master/pom.xml#L684 [2] - http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/am/wso2am/1.9.0-SNAPSHOT/wso2am-1.9.0-20150316.034813-76.zip [3] - https://github.com/wso2/product-apim/blob/master/pom.xml#L739 Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MDM] Where are we saving the operation responses?
+1, we need a response table. But after getting the response, we have to decompose that and get the information out of it and update relevant table. For example, current applications should be in a different table. Otherwise we have to scan across the response table, obtain the last record and perform in text searches. Same goes for device properties, if the SIM card got updated, the device table in the plugin db has to be updated. Cheers~ On Wed, Mar 11, 2015 at 8:36 AM, Harshan Liyanage hars...@wso2.com wrote: Agreed. We need to have a place to store incoming messages. WDYT about having a separate table having a foreign-key reference to operation table? So that we could save the responses for each operation there. Since it is a different table, the load on operation table will reduce at peak times. Lakshitha Harshan Software Engineer Mobile: *+94724423048* Email: hars...@wso2.com Blog : http://harshanliyanage.blogspot.com/ *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. On Wed, Mar 11, 2015 at 6:30 AM, Kasun Dananjaya Delgolla kas...@wso2.com wrote: It's simillar in Android's case as well. Aren't we have to store reply payloads and retrieve data from it when loading device data? Earlier we handled it using a field in the notification table. On Mar 10, 2015 5:46 PM, Dilshan Edirisuriya dils...@wso2.com wrote: Hi In iOS some operation corresponds to a operation response. Like application list, device operations etc. has a response which has a list of applications, list of device properties etc. Right now I only see a status being changed upon getting an operation response. Hence how do we track the operation responses? Regards, Dilshan -- Dilshan Edirisuriya Senior Software Engineer - WSO2 Mob: + 94 777878905 http://wso2.com/ https://www.linkedin.com/profile/view?id=50486426 -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Cross database pagination
Hi guys, I am working on creating a device listing API that supports pagination. In the SQL world, LIMIT and OFFSET seems to be the standard way of doing pagination in MySQL and PostgreSQL. Below is an example, SELECT Device.id, Device.name FROM Device LIMIT 10 OFFSET 10 But Oracle seems to be using rownum. What's the recommended approach in doing this? Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Please merge PR-83
Hi Ruchira, +1. I will make the appropriate change and let you know. Cheers~ On Mon, Feb 23, 2015 at 2:12 PM, Ruchira Wageesha ruch...@wso2.com wrote: Hi Dulitha, Instead of the byte array, shall we modify it to return a Jaggery Stream object? From that, you can get the Java InputStream and then convert it to a byte array. /Ruchira On Mon, Feb 23, 2015 at 1:59 PM, Dulitha Wijewantha duli...@wso2.com wrote: $subject [1]. I have added support to obtain the Http response as a byte array to the jaggery layer. [1] - https://github.com/wso2/jaggery/pull/83 -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* -- *Ruchira Wageesha**Associate Technical Lead* *WSO2 Inc. - lean . enterprise . middleware | wso2.com http://wso2.com* *email: ruch...@wso2.com ruch...@wso2.com, blog: ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com, mobile: +94 77 5493444 %2B94%2077%205493444* -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Please merge PR-83
$subject [1]. I have added support to obtain the Http response as a byte array to the jaggery layer. [1] - https://github.com/wso2/jaggery/pull/83 -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [CDM] iOS related UIs needed for Milestone 2
Hi Dhanuka/Sumedha, There are some UIs needed for iOS enrollment. Dilshan has written an article [1] about this. Can we get these UIs designed as well? These UIs have a higher priority than the other UIs because these have to be delivered in our Milestone 2 (also involves a customer commitment). [1] - http://wso2.com/library/articles/2014/03/managing-ios-devices-with-wso2-emm-part-2/ Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] License agreement of pinch.min
Hi guys, Pinch.min.js library used in publisher [1] doesn't seem to have a license header. The original project seemed to be licensed under MIT [2]. The original file [3] doesn't seem to have a license header too. We need to use this library. What's the approach we should follow? [1] - https://github.com/wso2/carbon-store/blob/master/apps/publisher/modules/pinch.min.js [2] - https://github.com/Baggz/Pinch [3] - https://github.com/Baggz/Pinch/blob/master/dist/latest.min.js Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] License agreement of pinch.min
Noted. I have raised an issue [1] and added the license header to the file used inside the CDM app. Other app owners please note. [1] - https://github.com/Baggz/Pinch/issues/3 On Mon, Feb 9, 2015 at 4:07 PM, Sumedha Rubasinghe sume...@wso2.com wrote: We need to have license header in all files. So include MIT license as mention in project page of [2]. Also raise an issue in [2] telling JS files are missing license headers. On Mon, Feb 9, 2015 at 2:51 PM, Dulitha Wijewantha duli...@wso2.com wrote: Hi guys, Pinch.min.js library used in publisher [1] doesn't seem to have a license header. The original project seemed to be licensed under MIT [2]. The original file [3] doesn't seem to have a license header too. We need to use this library. What's the approach we should follow? [1] - https://github.com/wso2/carbon-store/blob/master/apps/publisher/modules/pinch.min.js [2] - https://github.com/Baggz/Pinch [3] - https://github.com/Baggz/Pinch/blob/master/dist/latest.min.js Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* -- /sumedha m: +94 773017743 b : bit.ly/sumedha -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [CDM] getAllPaginatedPublishedAPIs not parsing properly
Noted On Fri, Feb 6, 2015 at 6:10 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Dulitha, As it appears, API-Management components were released yesterday. Would you please check and see if this issue is all resolved? If not, please work with the API Manager team to get this fixed ASAP. Cheers, Prabath On Wed, Jan 28, 2015 at 2:52 PM, Dilshan Edirisuriya dils...@wso2.com wrote: Thanks Sanjeewa. Sure will do. Regards, Dilshan On Wed, Jan 28, 2015 at 2:37 PM, Sanjeewa Malalgoda sanje...@wso2.com wrote: Hi Dilshan, Today we updated all APIM components with latest code in svn. Can you please check this now. Thanks, sanjeewa. On Wed, Jan 28, 2015 at 12:15 AM, Dilshan Edirisuriya dils...@wso2.com wrote: Hi, We have integrated API manager 4.3 snapshot features into CDM with store and publisher apps. When navigating to API store we see a blank content and footer. Even the login page does not popup correctly. When digging into it more found that this is because the getAllPaginatedPublishedAPIs returns following result. {apis : [], totalLength : 0} Once we hard coded the result to empty braces ( {} ) it parses correctly and loads the store app correctly. Is there anything we are doing wrong here to get this result or does it missing something? Seems like it is a parsing here since it works well with a hard coded input as above. Regards, Dilshan -- Dilshan Edirisuriya Senior Software Engineer - WSO2 Mob: + 94 777878905 http://wso2.com/ https://www.linkedin.com/profile/view?id=50486426 -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/ http://sanjeewamalalgoda.blogspot.com/ -- Dilshan Edirisuriya Senior Software Engineer - WSO2 Mob: + 94 777878905 http://wso2.com/ https://www.linkedin.com/profile/view?id=50486426 -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] SSO Jaggery feature usage
Hi Ruchira, I submitted another PR [1] that removed the global exposing. This is unnecessary. And I also improved the .gitignore. @Prabath Publisher and Store seem to still not work. I think this is is an orthogonal problem and has to be fixed in APIM. @Dilshan has also mentioned about this [2] [1] - https://github.com/wso2/jaggery-extensions/pull/18 [2] - [Dev] [CDM] getAllPaginatedPublishedAPIs not parsing properly Cheers~ On Mon, Feb 2, 2015 at 2:10 PM, Ruchira Wageesha ruch...@wso2.com wrote: Hi Dulitha, expose=true is used to expose it by default into the global namespace. i.e. if you want to have a global reference like XMLHTTPRequest, then only you need to have expose=true. Otherwise, you can use it via require('sso'). Anyway, for the third party extensions, we use it as false. On Mon, Feb 2, 2015 at 1:41 PM, Dulitha Wijewantha duli...@wso2.com wrote: The issue is due to using ' expose=true '. What is the correct way to expose a host object as well as script files? For example - in UUID module, ' namespace=$uuid expose=false ' are used. Can you please clarify this? Cheers~ On Mon, Feb 2, 2015 at 9:48 AM, Ruchira Wageesha ruch...@wso2.com wrote: Hi Prabath, It has already been merged into jaggery-extensions and will be released with jaggery-extensions once the dependencies are released. If any fix is needed, please do it asap. [1] https://github.com/wso2/jaggery-extensions/tree/master/sso /Ruchira On Mon, Feb 2, 2015 at 8:09 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Ruchira, Can we please have this reviewed and merged into jaggery-extensions repository some time soon? On a separate note, Chan came across some issues while trying to integrate the SSO module into product, as there were some incompatibilities seen between this and the one used in API-Manager. @Chan, would you be able to elaborate what the issues you'd notice and the proposed fix (if there's one already)? Cheers, Prabath On Tue, Jan 27, 2015 at 8:30 PM, Dulitha Wijewantha duli...@wso2.com wrote: Hi guys, I have created a SSO jaggery feature [1] which can be used to install the jaggery SSO component and the jaggery module. In API Manager currently- the host object is used. It would be good if everyone can move to the SSO module instead of the Host-object method. However - we currently require the new SSO module and the SSO module in API manager in the CDM pack. We can expose out the org.wso2.carbon.hostobjects.sso.SAMLSSORelyingPartyObject to let publisher and store jaggery apps smoothly use the new SSO module as well. I have created a PR [2] with these changes. [1] - https://github.com/wso2/jaggery-extensions/tree/master/sso [2] - https://github.com/wso2/jaggery-extensions/pull/16 Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 -- *Ruchira Wageesha**Associate Technical Lead* *WSO2 Inc. - lean . enterprise . middleware | wso2.com http://wso2.com* *email: ruch...@wso2.com ruch...@wso2.com, blog: ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com, mobile: +94 77 5493444 %2B94%2077%205493444* -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* -- *Ruchira Wageesha**Associate Technical Lead* *WSO2 Inc. - lean . enterprise . middleware | wso2.com http://wso2.com* *email: ruch...@wso2.com ruch...@wso2.com, blog: ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com, mobile: +94 77 5493444 %2B94%2077%205493444* -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] SSO Jaggery feature usage
The issue is due to using ' expose=true '. What is the correct way to expose a host object as well as script files? For example - in UUID module, ' namespace=$uuid expose=false ' are used. Can you please clarify this? Cheers~ On Mon, Feb 2, 2015 at 9:48 AM, Ruchira Wageesha ruch...@wso2.com wrote: Hi Prabath, It has already been merged into jaggery-extensions and will be released with jaggery-extensions once the dependencies are released. If any fix is needed, please do it asap. [1] https://github.com/wso2/jaggery-extensions/tree/master/sso /Ruchira On Mon, Feb 2, 2015 at 8:09 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Ruchira, Can we please have this reviewed and merged into jaggery-extensions repository some time soon? On a separate note, Chan came across some issues while trying to integrate the SSO module into product, as there were some incompatibilities seen between this and the one used in API-Manager. @Chan, would you be able to elaborate what the issues you'd notice and the proposed fix (if there's one already)? Cheers, Prabath On Tue, Jan 27, 2015 at 8:30 PM, Dulitha Wijewantha duli...@wso2.com wrote: Hi guys, I have created a SSO jaggery feature [1] which can be used to install the jaggery SSO component and the jaggery module. In API Manager currently- the host object is used. It would be good if everyone can move to the SSO module instead of the Host-object method. However - we currently require the new SSO module and the SSO module in API manager in the CDM pack. We can expose out the org.wso2.carbon.hostobjects.sso.SAMLSSORelyingPartyObject to let publisher and store jaggery apps smoothly use the new SSO module as well. I have created a PR [2] with these changes. [1] - https://github.com/wso2/jaggery-extensions/tree/master/sso [2] - https://github.com/wso2/jaggery-extensions/pull/16 Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 -- *Ruchira Wageesha**Associate Technical Lead* *WSO2 Inc. - lean . enterprise . middleware | wso2.com http://wso2.com* *email: ruch...@wso2.com ruch...@wso2.com, blog: ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com, mobile: +94 77 5493444 %2B94%2077%205493444* -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] SSO Jaggery feature usage
Hi guys, I have created a SSO jaggery feature [1] which can be used to install the jaggery SSO component and the jaggery module. In API Manager currently- the host object is used. It would be good if everyone can move to the SSO module instead of the Host-object method. However - we currently require the new SSO module and the SSO module in API manager in the CDM pack. We can expose out the org.wso2.carbon.hostobjects.sso.SAMLSSORelyingPartyObject to let publisher and store jaggery apps smoothly use the new SSO module as well. I have created a PR [2] with these changes. [1] - https://github.com/wso2/jaggery-extensions/tree/master/sso [2] - https://github.com/wso2/jaggery-extensions/pull/16 Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Merge PR for jaggery-extensions
Hi Ayesha, I applied a fix on the package name. Please merge the PR [1] [1] - https://github.com/wso2/jaggery-extensions/pull/15 Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] java.sun.com/jsp/jstl/fmt cannot be resolved in authenticationendpoint web app
Hi Johann, I added a public JIRA[1] for the issue. I manage to get it fixed by adding jstl 1.2 as a dependency to the authentication.endpoint web app. As below. I submitted a PR [2] for this by adding below fix. This is urgent for our milestone release which is due today. dependency groupIdjavax.servlet/groupId artifactIdjstl/artifactId version1.2/version /dependency [1] - https://wso2.org/jira/browse/IDENTITY-3006 [2] - https://github.com/wso2/carbon-identity/pull/41 Cheers~ On Mon, Jan 26, 2015 at 7:49 PM, Prabath Abeysekera praba...@wso2.com wrote: Excellent! Please talk to IS team and get the fix committed. Cheers, Prabath On Mon, Jan 26, 2015 at 5:46 PM, Dulitha Wijewantha duli...@wso2.com wrote: I added the JSTL 1.2 jar to WEB-INF/lib directory of authenticationendpoint and managed to get it to work. How do we do this in built time? Cheers~ On Mon, Jan 26, 2015 at 3:15 PM, Prabath Abeysekera praba...@wso2.com wrote: Guys, CDM team is working on a release and this is blocking us big time :(. Can someone from IS team please check what's gone wrong and fix it? Cheers, Prabath On Mon, Jan 26, 2015 at 2:53 PM, Dulitha Wijewantha duli...@wso2.com wrote: Hi guys, I am getting below error when trying to login to the saml2.sso.demo sample in IS 5.1.0-snapshot. The error is coming from authenticationendpoint webapp. {org.apache.catalina.core.ApplicationDispatcher} Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/fmt cannot be resolved in either web.xml or the jar files deployed with this application at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:56) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:445) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:117) at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:325) at org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:154) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:410) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:475) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1427) at org.apache.jasper.compiler.Parser.parse(Parser.java:138) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:242) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:102) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:373) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338) at org.wso2.carbon.identity.application.authentication.endpoint.samlsso.SAMLSSOLogin.doGet(SAMLSSOLogin.java:33) at javax.servlet.http.HttpServlet.service(HttpServlet.java:620) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241
[Dev] IS build failures
[import from realm ClassRealm[maven.api, parent: null]] - at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:164) ... 20 more Caused by: java.lang.NoClassDefFoundError: org/sonatype/aether/graph/DependencyFilter at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2493) at java.lang.Class.getDeclaredConstructors(Class.java:1901) at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:245) at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:99) at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:653) at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:863) at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:790) at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:278) at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:210) at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:986) at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1019) at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:982) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1032) at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48) at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86) at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55) at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100) at org.eclipse.sisu.plexus.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:133) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:109) at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55) at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68) at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47) at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1054) at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) at com.google.inject.Scopes$1$1.get(Scopes.java:59) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1047) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993) at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82) at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:260) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:240) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:234) at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getReports(AbstractSiteRenderingMojo.java:234) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:121) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) ... 20 more Caused by: java.lang.ClassNotFoundException: org.sonatype.aether.graph.DependencyFilter at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227) ... 60 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn goals -rf :wso2is -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me
[Dev] java.sun.com/jsp/jstl/fmt cannot be resolved in authenticationendpoint web app
) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:183) at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56) at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1721) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1679) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] java.sun.com/jsp/jstl/fmt cannot be resolved in authenticationendpoint web app
I added the JSTL 1.2 jar to WEB-INF/lib directory of authenticationendpoint and managed to get it to work. How do we do this in built time? Cheers~ On Mon, Jan 26, 2015 at 3:15 PM, Prabath Abeysekera praba...@wso2.com wrote: Guys, CDM team is working on a release and this is blocking us big time :(. Can someone from IS team please check what's gone wrong and fix it? Cheers, Prabath On Mon, Jan 26, 2015 at 2:53 PM, Dulitha Wijewantha duli...@wso2.com wrote: Hi guys, I am getting below error when trying to login to the saml2.sso.demo sample in IS 5.1.0-snapshot. The error is coming from authenticationendpoint webapp. {org.apache.catalina.core.ApplicationDispatcher} Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/fmt cannot be resolved in either web.xml or the jar files deployed with this application at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:56) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:445) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:117) at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:325) at org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:154) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:410) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:475) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1427) at org.apache.jasper.compiler.Parser.parse(Parser.java:138) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:242) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:102) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:373) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338) at org.wso2.carbon.identity.application.authentication.endpoint.samlsso.SAMLSSOLogin.doGet(SAMLSSOLogin.java:33) at javax.servlet.http.HttpServlet.service(HttpServlet.java:620) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338) at org.wso2.carbon.identity.application.authentication.endpoint.AuthenticationEndpoint.doGet(AuthenticationEndpoint.java:82) at javax.servlet.http.HttpServlet.service(HttpServlet.java:620) at javax.servlet.http.HttpServlet.service
[Dev] Please merge PR for jaggery-extensions
Hi Ayesha, Please merge PR [1]. It has the SSO module. Then I can submit PR to jaggery bumping the child module. [1] - https://github.com/wso2/jaggery-extensions/pull/13 Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Merge PR on CDM
Please wait on the PR merging. I need to get the sso jaggery module on nexus first. On Thu, Jan 22, 2015 at 9:51 AM, Dulitha Wijewantha duli...@wso2.com wrote: Hi Geeth, I tested the build. Can you merge this PR [1]? This is merge of wso2/cdm and your cdm repo. [1] - https://github.com/wso2/product-cdm/pull/1 Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Please merge MDM PR
Please wait on the PR merging. I need to get the sso jaggery module on nexus first. On Thu, Jan 22, 2015 at 10:47 AM, Dulitha Wijewantha duli...@wso2.com wrote: Hi Geeth, Please merge PR [1] [1] - https://github.com/wso2/product-mdm/pull/2 Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Reverted back from Map to List
Hi guys, As I mentioned earlier - I moved the properties from a List to a Map. But CFX doesn't seem to support Map conversion properly. Due to the time being - I reverted the changes back to a List implementation. I will create a Util method to obtain the Device List as a Map where needed. PR - https://github.com/wso2/product-cdm/pull/3 https://github.com/wso2/product-mdm/pull/5 Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Please merge MDM PR
Hi Geeth, Please merge PR [1] [1] - https://github.com/wso2/product-mdm/pull/2 Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Merge PR on CDM
Hi Geeth, I tested the build. Can you merge this PR [1]? This is merge of wso2/cdm and your cdm repo. [1] - https://github.com/wso2/product-cdm/pull/1 Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Is there a platform standard for pagination?
Thanks Isuruwan. Will look at the implementation. On Tue, Jan 20, 2015 at 2:29 PM, Isuruwan Herath isuru...@wso2.com wrote: Hi Dulitha, You may find this implementation [1] useful. PaginationContext holds the parameters to page. [1[ https://github.com/wso2/carbon4-kernel/tree/master/core/org.wso2.carbon.registry.core/src/main/java/org/wso2/carbon/registry/core/pagination Thanks! On Mon, Jan 19, 2015 at 12:05 AM, Dulitha Wijewantha duli...@wso2.com wrote: Hi guys, Is there a platform standard for pagination? How does asset pagination work in the registry right now? Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Isuruwan Herath Technical Lead Contact: +94 776 273 296 -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Is there a platform standard for pagination?
Hi guys, Is there a platform standard for pagination? How does asset pagination work in the registry right now? Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [CDM] Conversion of common.Device and core.Device
Hi guys, I am reading through the code and I came across 2 types of objects. One is common.Device and the other is core.Device. As I understood the common.Device is the business object (POJO) and core.Device is the DTO. I found a convertDevice() method in DeviceManagementDAOUtil which converts the business object to a DTO object. I have implemented a getDevices by type method which returns DTO objects. I will implement convertDevice method that converts DTOs to Business objects. Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] SSO component in Enterprise Store
+1 for that idea. Currently, carbon js module [1] can be installed as a feature. I believe the SSO module should be isolated into a feature where the relevant component as well the js module is packaged. [1] - carbon.feature.version On Sat, Jan 17, 2015 at 9:04 AM, Prabath Abeysekera praba...@wso2.com wrote: If this a re-usable component, why don't we take it out of the store specific bits and make it available a separate feature? Cheers, Prabath On Fri, Jan 16, 2015 at 3:10 PM, Dulitha Wijewantha duli...@wso2.com wrote: Hi guys, There is a component called org.wso2.store.sso.common [1] in Enterprise store that is used by the sso jaggery module. This is bundled with the Store feature in ES. How can we add this component to CDM? [1] - https://github.com/wso2/product-es/tree/master/modules/components/sso-common Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] SSO component in Enterprise Store
Hi guys, There is a component called org.wso2.store.sso.common [1] in Enterprise store that is used by the sso jaggery module. This is bundled with the Store feature in ES. How can we add this component to CDM? [1] - https://github.com/wso2/product-es/tree/master/modules/components/sso-common Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Error coming in Registry Extensions Server
Installing org.wso2.carbon.identity.relying.party.server.feature.group 4.3.0.SNAPSHOT. Installation failed. Cannot complete the install because one or more required items could not be found. Software being installed: WSO2 Carbon - Registry Extensions Server Feature 4.3.0.SNAPSHOT (org.wso2.carbon.registry.extensions.server.feature.group 4.3.0.SNAPSHOT) Missing requirement: org.wso2.carbon.registry.extensions 4.3.0.SNAPSHOT (org.wso2.carbon.registry.extensions 4.3.0.SNAPSHOT) requires 'package org.wso2.carbon.registry.core [4.3.0,4.4.0)' but it could not be found Cannot satisfy dependency: From: WSO2 Carbon - Registry Extensions Server Feature 4.3.0.SNAPSHOT (org.wso2.carbon.registry.extensions.server.feature.group 4.3.0.SNAPSHOT) To: org.wso2.carbon.registry.extensions [4.3.0.SNAPSHOT] Application failed, log file location: /Users/chan/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1420555241247.log -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] WSO2 IS Audit Dashboard
Hi Chamin, A potential problem we saw was in use cases where admin services were consumed with APIM fronted. The correlation id has to pass through APIM - IS as well. @Nuwan did a small fix on this to get it to work. The other important matter is to actually visualize useful reports. The example you gave is actually something that should be fed to CEP cause most of the time - realtime action has to be taken on authentication failed attempts. Below are some good use cases - - All the actions performed by a user for time period - All the actions performed by a user breaking down on sessions - Authentication requests log segmented to time slices (how many failed requests were sent in a minute) - Client IP/hostnames that were used to perform authentication Cheers~ On Thu, Dec 18, 2014 at 10:54 PM, Chamin Nalinda cha...@wso2.com wrote: Hi all, I'm in the process of developing a dash board for WSO2 IS 5.0.0 . In the first iteration, need to capture relevant information regard to Authentication use cases. Below are some use cases. Success/Fail login attempts during last hour ? Success/Fail login attempts during last hour by user Peter ? etc... The approach that is suggest, to co-relate requests and responses then feed data to BAM. Then periodically retrieve data from BAM and display in IS Audit Dashboard. BAM Message Tracer is one suggestion. And rather than using Axis2 Handler to match requests and response using a separate class is another suggestion. I would like to have some ideas prior to begin ( the best approach, using existing classes already there etc...) Thanks in advance. -- *Chamin Nalinda* Intern - Engineering WSO2 Inc. http://www.wso2.com lean.enterprise.middleware Mobile: (+94) 77 241 66 04 Linkedin: https://www.linkedin.com/in/chaminnalinda Web: http://www.ckreativity.com Blog: http://techspiro.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [CDM] REST API of the Devices
Hi guys, Have guys done any work on the REST API for the Devices? If so- can you please point me to those. Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] API Protection through Certificates
Hi guys, In our current APIM -we use oAuth as the main method of authorizing and authenticating APIs. Are we going to consider this with certificates too? For example - there is an API that a cron job is suppose to call. Unless the cron job has the particular certificate - the cron job cannot call the API. Is this currently possible? Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Contributing to IS - where is the current development source
Thanks Darshana and Dulanja. I'll send another mail about the changes to @dev. On Tue, Dec 16, 2014 at 7:26 PM, Dulanja Liyanage dula...@wso2.com wrote: And this new code should be reviewed. Also, better to discuss what it provides in a public list like @dev or @architecture. Thanks Dulanja On Wed, Dec 17, 2014 at 8:51 AM, Darshana Gunawardana darsh...@wso2.com wrote: Hi Dulitha, Thanks for the contribution. Development source is available at [1]. And there is ongoing processes on moving to GIT. Until these migration get complete we kept sync svn and git. So you need to send a PR to [2] as well.. [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.mgt/4.2.3/ [2] https://github.com/wso2-dev/carbon-identity Regards, Darshana On Wed, Dec 17, 2014 at 6:23 AM, Dulitha Wijewantha duli...@wso2.com wrote: Hi guys, I would like to contribute some code I wrote to identity.mgt component. Where is the development source of this available? Is it in SVN [1] or in Github? [1] - https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/identity/org.wso2.carbon.identity.mgt/ Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* -- Regards, *Darshana Gunawardana*Software Engineer WSO2 Inc.; http://wso2.com *E-mail: darsh...@wso2.com* *Mobile: +94718566859 %2B94718566859*Lean . Enterprise . Middleware -- Regards, *Darshana Gunawardana*Software Engineer WSO2 Inc.; http://wso2.com *E-mail: darsh...@wso2.com darsh...@wso2.com* *Mobile: +94718566859 %2B94718566859*Lean . Enterprise . Middleware -- Dulanja Liyanage WSO2 Inc. M: +94776764717 -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Contributing to IS - where is the current development source
Hi guys, I would like to contribute some code I wrote to identity.mgt component. Where is the development source of this available? Is it in SVN [1] or in Github? [1] - https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/identity/org.wso2.carbon.identity.mgt/ Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Change the username for user
Hi guys, Is it possible to change the username for user using the user manager API? Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Change the username for user
Hi Johann, We do keep a user id don't we? There is a method called getUserId in RemoteUserStoreManagerService. Is this an auto increment number for the user table? Cheers~ On Mon, Dec 8, 2014 at 12:20 PM, Johann Nallathamby joh...@wso2.com wrote: You can't do it in JDBC user stores. But in LDAP user stores you can. However, we don't support every aspect of such change. E.g. there are several places where we have the fully qualified username as the reference to a user, because we don't have a immutable opaque identifier for a user in our system. We don't update such references if the username is updated. On Tue, Dec 9, 2014 at 12:30 AM, Dulitha Wijewantha duli...@wso2.com wrote: Hi guys, Is it possible to change the username for user using the user manager API? Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Change the username for user
I guess this is not possible in a JDBC user store if that's the case. This would be really useful if the username is email where the email of a user changes and we'd have to facilitate that in Identity Provider. Cheers~ On Mon, Dec 8, 2014 at 3:38 PM, Thanuja Jayasinghe than...@wso2.com wrote: Hi Dulitha, Yes, it is for get the auto increment id of the UM_USER table. Also link [1] shows how to change the user name value in AD. [1] - http://tanyamadurapperuma.blogspot.com/2013/10/tricky-way-to-modify-username-scim.html Thanks, Thanuja. On Mon, Dec 8, 2014 at 4:16 PM, Dulitha Wijewantha duli...@wso2.com wrote: Hi Johann, We do keep a user id don't we? There is a method called getUserId in RemoteUserStoreManagerService. Is this an auto increment number for the user table? Cheers~ On Mon, Dec 8, 2014 at 12:20 PM, Johann Nallathamby joh...@wso2.com wrote: You can't do it in JDBC user stores. But in LDAP user stores you can. However, we don't support every aspect of such change. E.g. there are several places where we have the fully qualified username as the reference to a user, because we don't have a immutable opaque identifier for a user in our system. We don't update such references if the username is updated. On Tue, Dec 9, 2014 at 12:30 AM, Dulitha Wijewantha duli...@wso2.com wrote: Hi guys, Is it possible to change the username for user using the user manager API? Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Thanuja Lakmal* Software Engineer WSO2 Inc. http://wso2.com/ *lean.enterprise.middleware* Mobile: +94715979891 +94758009992 -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] EMM product build failure
of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/* *email: **az...@wso2.com* az...@wso2.com * cell: +94 77 3320919 %2B94%2077%203320919blog: * *http://blog.afkham.org* http://blog.afkham.org *twitter: **http://twitter.com/afkham_azeez* http://twitter.com/afkham_azeez *linked-in: **http://lk.linkedin.com/in/afkhamazeez http://lk.linkedin.com/in/afkhamazeez* *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/* *email: **az...@wso2.com* az...@wso2.com * cell: +94 77 3320919 %2B94%2077%203320919blog: * *http://blog.afkham.org* http://blog.afkham.org *twitter: **http://twitter.com/afkham_azeez* http://twitter.com/afkham_azeez *linked-in: **http://lk.linkedin.com/in/afkhamazeez http://lk.linkedin.com/in/afkhamazeez* *Lean . Enterprise . Middleware* -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/* *email: **az...@wso2.com* az...@wso2.com * cell: +94 77 3320919 %2B94%2077%203320919blog: * *http://blog.afkham.org* http://blog.afkham.org *twitter: **http://twitter.com/afkham_azeez* http://twitter.com/afkham_azeez *linked-in: **http://lk.linkedin.com/in/afkhamazeez http://lk.linkedin.com/in/afkhamazeez* *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] C5 Kernel codebase is now moved to GitHub
Yeah - git-submodules and git subtree needs to be used to manage large scale projects. Also we need to have a git workflow for contributions [1]. Apache Cordova is also a very large scale project and they handle their workflow in a forking mechanism [2]. [1] - https://www.atlassian.com/git/workflows [2] - https://wiki.apache.org/cordova/GitWorkflow On Fri, Nov 29, 2013 at 5:51 PM, Manuranga Perera m...@wso2.com wrote: unlike in svn, in git - we don't have externals - can't checkout part of the repo - can't update part of checkout without pulling the whole repo therefore, in a large project like C5, we need to come up with a strategy for dividing things to subprojects available options seems to be git subtree and git submodule. let's take this into consideration during this restructuring. On Fri, Nov 29, 2013 at 4:05 PM, Kishanthan Thangarajah kishant...@wso2.com wrote: Hi Folks, We have moved the current C5 kernel code-base to GitHub. The URL for this project is : https://github.com/wso2/carbon-kernel The current project structure will get changed as we are in the process of restructuring. Thanks, Kishanthan. -- *Kishanthan Thangarajah* Senior Software Engineer, Platform Technologies Team, WSO2, Inc. lean.enterprise.middleware Mobile - +94773426635 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com* Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan* ___ Architecture mailing list architect...@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture -- With regards, *Manu*ranga Perera. phone : 071 7 70 20 50 mail : m...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulithawijewantha.com http://dulithawijewantha.com/* * ~Blog blog.dulithawijewantha.com http://dulichan.github.io/chan/* * ~Twitter @dulitharw https://twitter.com/dulitharw* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Store-alpha 3 pack error - java.lang.UnsatisfiedLinkError: no snappyjava in java.library.path
Error coming in starting up store alpha 3 pack [2013-10-09 15:37:56,648] INFO {org.wso2.carbon.event.builder.core.internal.ds.EventBuilderServiceDS} - Successfully deployed EventBuilder EventReceiver. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:317) at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:219) at org.xerial.snappy.Snappy.clinit(Snappy.java:44) at org.apache.cassandra.io.compress.SnappyCompressor.create(SnappyCompressor.java:46) at org.apache.cassandra.io.compress.SnappyCompressor.isAvailable(SnappyCompressor.java:56) at org.apache.cassandra.io.compress.SnappyCompressor.clinit(SnappyCompressor.java:38) at org.apache.cassandra.config.CFMetaData.clinit(CFMetaData.java:77) at org.apache.cassandra.config.KSMetaData.systemKeyspace(KSMetaData.java:80) at org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor.java:441) at org.apache.cassandra.config.DatabaseDescriptor.clinit(DatabaseDescriptor.java:117) at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:126) at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:353) at org.wso2.carbon.cassandra.server.CassandraServerController$1.run(CassandraServerController.java:48) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.UnsatisfiedLinkError: no snappyjava in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860) at java.lang.Runtime.loadLibrary0(Runtime.java:845) at java.lang.System.loadLibrary(System.java:1084) at org.xerial.snappy.SnappyNativeLoader.loadLibrary(SnappyNativeLoader.java:52) ... 18 more -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulithawijewantha.com * * ~Blog blog.dulithawijewantha.comhttp://dulichan.github.io/chan/ * * ~Twitter @dulitharw https://twitter.com/dulitharw* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Store-alpha 3 pack error - java.lang.UnsatisfiedLinkError: no snappyjava in java.library.path
Yes. When starting up the server. On Wed, Oct 9, 2013 at 10:02 PM, Nuwan Bandara nu...@wso2.com wrote: when do you get this ? at startup ? On Wed, Oct 9, 2013 at 3:41 PM, Dulitha Wijewantha duli...@wso2.comwrote: Error coming in starting up store alpha 3 pack [2013-10-09 15:37:56,648] INFO {org.wso2.carbon.event.builder.core.internal.ds.EventBuilderServiceDS} - Successfully deployed EventBuilder EventReceiver. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:317) at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:219) at org.xerial.snappy.Snappy.clinit(Snappy.java:44) at org.apache.cassandra.io.compress.SnappyCompressor.create(SnappyCompressor.java:46) at org.apache.cassandra.io.compress.SnappyCompressor.isAvailable(SnappyCompressor.java:56) at org.apache.cassandra.io.compress.SnappyCompressor.clinit(SnappyCompressor.java:38) at org.apache.cassandra.config.CFMetaData.clinit(CFMetaData.java:77) at org.apache.cassandra.config.KSMetaData.systemKeyspace(KSMetaData.java:80) at org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor.java:441) at org.apache.cassandra.config.DatabaseDescriptor.clinit(DatabaseDescriptor.java:117) at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:126) at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:353) at org.wso2.carbon.cassandra.server.CassandraServerController$1.run(CassandraServerController.java:48) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.UnsatisfiedLinkError: no snappyjava in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860) at java.lang.Runtime.loadLibrary0(Runtime.java:845) at java.lang.System.loadLibrary(System.java:1084) at org.xerial.snappy.SnappyNativeLoader.loadLibrary(SnappyNativeLoader.java:52) ... 18 more -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulithawijewantha.com * * ~Blog blog.dulithawijewantha.comhttp://dulichan.github.io/chan/ * * ~Twitter @dulitharw https://twitter.com/dulitharw* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Thanks Regards, Nuwan Bandara Technical Lead; **WSO2 Inc. * *lean . enterprise . middleware | http://wso2.com * *blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 214 5345 * http://www.nuwanbando.com/ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulithawijewantha.com * * ~Blog blog.dulithawijewantha.comhttp://dulichan.github.io/chan/ * * ~Twitter @dulitharw https://twitter.com/dulitharw* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Store-alpha 3 pack error - java.lang.UnsatisfiedLinkError: no snappyjava in java.library.path
Thanks. I'll try it with JDK6. On Thu, Oct 10, 2013 at 9:36 AM, Nuwan Bandara nu...@wso2.com wrote: Its a OSX / JDK7 issue [1], that pops up when running cassandra [1] https://github.com/ptaoussanis/carmine/issues/5 On Thu, Oct 10, 2013 at 9:32 AM, Dulitha Wijewantha duli...@wso2.comwrote: Yes. When starting up the server. On Wed, Oct 9, 2013 at 10:02 PM, Nuwan Bandara nu...@wso2.com wrote: when do you get this ? at startup ? On Wed, Oct 9, 2013 at 3:41 PM, Dulitha Wijewantha duli...@wso2.comwrote: Error coming in starting up store alpha 3 pack [2013-10-09 15:37:56,648] INFO {org.wso2.carbon.event.builder.core.internal.ds.EventBuilderServiceDS} - Successfully deployed EventBuilder EventReceiver. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:317) at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:219) at org.xerial.snappy.Snappy.clinit(Snappy.java:44) at org.apache.cassandra.io.compress.SnappyCompressor.create(SnappyCompressor.java:46) at org.apache.cassandra.io.compress.SnappyCompressor.isAvailable(SnappyCompressor.java:56) at org.apache.cassandra.io.compress.SnappyCompressor.clinit(SnappyCompressor.java:38) at org.apache.cassandra.config.CFMetaData.clinit(CFMetaData.java:77) at org.apache.cassandra.config.KSMetaData.systemKeyspace(KSMetaData.java:80) at org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor.java:441) at org.apache.cassandra.config.DatabaseDescriptor.clinit(DatabaseDescriptor.java:117) at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:126) at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:353) at org.wso2.carbon.cassandra.server.CassandraServerController$1.run(CassandraServerController.java:48) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.UnsatisfiedLinkError: no snappyjava in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860) at java.lang.Runtime.loadLibrary0(Runtime.java:845) at java.lang.System.loadLibrary(System.java:1084) at org.xerial.snappy.SnappyNativeLoader.loadLibrary(SnappyNativeLoader.java:52) ... 18 more -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulithawijewantha.com * * ~Blog blog.dulithawijewantha.comhttp://dulichan.github.io/chan/ * * ~Twitter @dulitharw https://twitter.com/dulitharw* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Thanks Regards, Nuwan Bandara Technical Lead; **WSO2 Inc. * *lean . enterprise . middleware | http://wso2.com * *blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 214 5345 * http://www.nuwanbando.com/ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulithawijewantha.com * * ~Blog blog.dulithawijewantha.comhttp://dulichan.github.io/chan/ * * ~Twitter @dulitharw https://twitter.com/dulitharw* -- *Thanks Regards, Nuwan Bandara Technical Lead; **WSO2 Inc. * *lean . enterprise . middleware | http://wso2.com * *blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 214 5345 * http://www.nuwanbando.com/ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulithawijewantha.com * * ~Blog blog.dulithawijewantha.comhttp://dulichan.github.io/chan/ * * ~Twitter @dulitharw https://twitter.com/dulitharw* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] require_once() function for Jaggery
+1 for the require_once method. The best example for this (since we are in the javascript world) is requirejs. http://requirejs.org/. They have mentioned that they support rhino runtime as well. Also I don't think it's a bad design considering the fact that we are talking about scripting. Scripting always has scenarios where you need to run a particular script only once. Cheers! On Tue, Oct 8, 2013 at 1:18 PM, Dilshan Edirisuriya dils...@wso2.comwrote: Hi, Is there anything similar to subject? Looked into the docs and could not find any. Above function is needed for cyclic module dependencies. I know its a bad design to implement such way but there are few scenarios this will be needed. 1) If there is cyclic dependencies we may have to come up with a common module. But if there lot of modules, the number of common modules can increase and it will end up being hard to manage. 2) We may have to add a function level module injection. Again this will have module inter-dependencies. PHP itself has this capability. Also NodeJS uses a cache in such a scenario when there is a dependency it will retrieved the previous object. Can we have such a function under Jaggery? Regards, Dilshan -- Dilshan Edirisuriya Senior Software Engineer - WSO2Mobile Mob: + 94 772245502 http://wso2mobile.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulithawijewantha.com * * ~Blog blog.dulithawijewantha.comhttp://dulichan.github.io/chan/ * * ~Twitter @dulitharw https://twitter.com/dulitharw* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Build issue coming in org.wso2.carbon.registry.extensions
groupIdorg.wso2.wsdl.validator.wso2/groupId artifactIdwsdl-validator/artifactId exclusions exclusion groupIdorg.wso2.wsdl.validator/groupId artifactIdwsdl-validator/artifactId /exclusion /exclusions /dependency dependency groupIdorg.wso2.wadl.core.wso2/groupId artifactIdwadl-core/artifactId version1.1.3.wso2v2/version /dependency dependency groupIduddi/groupId artifactIduddi4j/artifactId /dependency dependency groupIdxerces/groupId artifactIdxercesImpl/artifactId /dependency dependency groupIdorg.eclipse.core/groupId artifactIdorg.eclipse.core.runtime/artifactId version3.5.0.v20090429-1800/version /dependency dependency groupIdorg.wso2.carbon/groupId artifactIdorg.wso2.carbon.registry.server/artifactId /dependency dependency groupIdorg.apache.juddi.wso2/groupId artifactIdjuddi/artifactId /dependency dependency groupIdorg.infinispan.wso2/groupId artifactIdinfinispan-core/artifactId version${orbit.version.infinispan}/version scopetest/scope /dependency dependency groupIdorg.apache.maven.scm.wso2/groupId artifactIdmaven-scm/artifactId version${orbit.version.maven-scm}/version /dependency /dependencies /project -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulithawijewantha.com * * ~Blog blog.dulithawijewantha.comhttp://dulichan.github.io/chan/ * * ~Twitter @dulitharw https://twitter.com/dulitharw* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev