Re: [Dev] [WSO2MB] Cannot start User Manager Core bundle error on server startup
Hi all, In terms of the andes component, we need to upgrade the guava dependencies to 14 from version 13 and verify. I'm working on this. On Mon, Oct 13, 2014 at 11:19 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Ramith/MB team, This is all fixed. Let me know if you guys happen to run into any other problem further to this. Cheers, Prabath On Tue, Oct 7, 2014 at 11:41 AM, Prabath Abeysekera praba...@wso2.com wrote: To give you guys an update on what's been done so far, I've managed to make both Cassandra as well as CQL Driver use the same guava version (14.0.1) exposed by the platform and fix all the issues reported in the thread. However, now I've come across another problem where Andes is unable to get the datasources that are being used for all its internal functionalities, bound to its data access layer due to a problem in the dependency initialisation order. To be more concrete on the issue, Cassandra server initialisation doesn't seem to happen before the data sources are registered. This in turn results in Andes not picking up the appropriate data sources to be able to access Cassandra forcing MB to fail at the server start-up. I already am working on a resolution, will update the thread as soon as this is fixed. Cheers, Prabath On Sat, Oct 4, 2014 at 1:09 PM, Ramith Jayasinghe ram...@wso2.com wrote: Hi Prabath, This has become a blocker for the MB v 3.0.0 M1. (Since Dhanuka might be travelling) Shall we have a look on how to fix this on Monday? regards Ramith. On Fri, Oct 3, 2014 at 10:52 PM, Dhanuka Ranasinghe dhan...@wso2.com wrote: Hi Sameera, The reason for embed third party libraries is osgi cyclic dependency issue. This has been discussed long time back with Kishanthan and you. Cheers, Dhanuka *Dhanuka Ranasinghe* Senior Software Engineer WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 715381915 On Fri, Oct 3, 2014 at 10:11 PM, Sameera Jayasoma same...@wso2.com wrote: Hi Dhanuka, I noticed few issues in pom.xml of this orbit bundle. 1) Import package section is empty. Please the put correct import package list. 2) Optional=true is missing from some of the dependencies. 3) Following third-party libraries have been embedded inside this orbit bundle netty metrics-core guava jackson-core-as |jackson-mapper-asl slf4j-api slf4j-log4j12 *apache-cassandra* libthrift; 4) Size of this bundle is around 8.5 MB and all the above embedded dependencies has contributed to this size. I know there exists orbit bundles with such issues, but we've started this effort recently to verify all the new orbit bundles before publishing them to nexus repository. I am rejecting this pull request. Please fix these issues and send the PR again. Thanks, Sameera. On Fri, Oct 3, 2014 at 9:37 PM, Dhanuka Ranasinghe dhan...@wso2.com wrote: Hi, I don't have permission to merge below pull request, I guess some one who has permission would need to attend this. https://github.com/wso2/orbit/pull/26 Cheers, Dhanuka *Dhanuka Ranasinghe* Senior Software Engineer WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 715381915 On Fri, Oct 3, 2014 at 6:31 PM, Harsha Kumara hars...@wso2.com wrote: Adding Maheshika. On Fri, Oct 3, 2014 at 6:23 PM, Asanka Abeyweera asank...@wso2.com wrote: Hi all, I created a pull request [1] in wso2/orbit removing the parent pom reference in cql-driver bundle. Can we release this as cql-driver-1.0.5.wso2v2 in wso2/orbit? [1] https://github.com/wso2/orbit/pull/26 On Fri, Oct 3, 2014 at 6:17 PM, Asitha Nanayakkara asi...@wso2.com wrote: Hi everyone, Since the issue is a blocker for us we are making the versions consistent throughout the platform by using the existing cql-driver. Changes needed in carbon-storage-management is complete. @PrabathA: Please review and merge the pull request https://github.com/wso2-dev/carbon-storage-management/pull/48 Thank you. On Thu, Oct 2, 2014 at 7:37 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Everyone, AsankaAB and Asitha have finally found the root cause of this issue. Excellent stuff guys! It appears as if a few different versions of transitive dependencies (i.e guava) used within some of the libraries resulted in the package conflicts observed. As for the resolutions available, we'd have to make the versions of the aforesaid libraries that are being used in other dependencies consistent across the platform. This is currently being worked on and We'll be updating the thread once done. Cheers, Prabath On Wed, Oct 1, 2014 at 5:29 PM, Asitha Nanayakkara asi...@wso2.com wrote: adding dev list On Wed, Oct 1, 2014 at 9:36 AM, Asanka Abeyweera asank...@wso2.com wrote: Hi Asitha/Prabath, The issue is seems to be a side effect of the switch we made from cql-driver to cassandra-driver-core. I reverted back to cql-driver and the issue
Re: [Dev] Add Cassandra 1.2.13.wso2v4 into Orbit repository
Hi Prabath Added you to the orbit member list, therefore you would have the required privileges to merge. Please inform once done, will release it. On Mon, Oct 13, 2014 at 11:14 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Maheshika, Please review and merge [2]. [2] https://github.com/wso2/orbit/pull/29 Cheers, Prabath On Tue, Oct 7, 2014 at 10:10 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Maheshika, Just spotted some issue in the pull request sent. Let me fix it and resubmit. Cheers, Prabath On Tue, Oct 7, 2014 at 5:56 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Maheshika, Would you be able to do $subject and deploy the same into the nexus repo? The corresponding pull request containing all the required changes can be located at [1]. Please review and merge. [1] https://github.com/wso2/orbit/pull/27 Cheers, Prabath -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 -- Thanks Best Regards, Maheshika Goonetilleke Engineering Process Coordinator *WSO2 Inc* *email : mahesh...@wso2.com mahesh...@wso2.com* *mobile : +94 773 596707* *www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Issue in adding multiple devices for a user in EMM
Hi Pasanthi, AFAIK there could not be any issue for this scenario. We have tested it. Do you get any errors in server when enrolling the new device to the EMM? Thanks, Best Regards, 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 Mon, Oct 13, 2014 at 10:59 AM, Pasanthi Amarasekera pasan...@wso2.com wrote: On Sun, Oct 12, 2014 at 11:57 PM, Pasanthi Amarasekera pasan...@wso2.com wrote: Hi, Last week I created a user to the EMM running in my localhost and then enrolled an android phone, with the username and the password given in the user enrollment email. Today I tried to add an android tab to the same user with the same username and password. But those credentials didn't work today. What can be the reason for this ? The tab used is a nexus 7 with android 4.4.4 I had to create a new user to add the above mentioned tab to my local EMM. The only difference between the users I created last week and today is, the wifi network. Thank you. Regards, Pasanthi. -- Pasanthi Amarasekera WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: +94 77 9541735 -- Pasanthi Amarasekera WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: +94 77 9541735 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Add Cassandra 1.2.13.wso2v4 into Orbit repository
This is done! On Mon, Oct 13, 2014 at 11:39 AM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Prabath Added you to the orbit member list, therefore you would have the required privileges to merge. Please inform once done, will release it. On Mon, Oct 13, 2014 at 11:14 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Maheshika, Please review and merge [2]. [2] https://github.com/wso2/orbit/pull/29 Cheers, Prabath On Tue, Oct 7, 2014 at 10:10 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Maheshika, Just spotted some issue in the pull request sent. Let me fix it and resubmit. Cheers, Prabath On Tue, Oct 7, 2014 at 5:56 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Maheshika, Would you be able to do $subject and deploy the same into the nexus repo? The corresponding pull request containing all the required changes can be located at [1]. Please review and merge. [1] https://github.com/wso2/orbit/pull/27 Cheers, Prabath -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 -- Thanks Best Regards, Maheshika Goonetilleke Engineering Process Coordinator *WSO2 Inc* *email : mahesh...@wso2.com mahesh...@wso2.com* *mobile : +94 773 596707 %2B94%20773%20596707* *www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Add Cassandra 1.2.13.wso2v4 into Orbit repository
Hi Prabath Release of cassandra-driver/1.0.5.wso2v was success. However the following error occurred while trying to release cassandra/1.2.13wso2v4; [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 1.177s [INFO] Finished at: Mon Oct 13 06:32:16 UTC 2014 [INFO] Final Memory: 7M/224M [INFO] [ERROR] Failed to execute goal on project apache-cassandra: Could not resolve dependencies for project org.apache.cassandra.wso2:apache-cassandra:bundle:1.2.13.wso2v4: The following artifacts could not be resolved: org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3, org.apache.cassandra:apache-cassandra-thrift:jar:1.2.13-wso2v3: Failure to find org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3 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 - [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project apache-cassandra: Could not resolve dependencies for project org.apache.cassandra.wso2:apache-cassandra:bundle:1.2.13.wso2v4: The following artifacts could not be resolved: org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3, org.apache.cassandra:apache-cassandra-thrift:jar:1.2.13-wso2v3: Failure to find org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3 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.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.apache.cassandra.wso2:apache-cassandra:bundle:1.2.13.wso2v4: The following artifacts could not be resolved: org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3, org.apache.cassandra:apache-cassandra-thrift:jar:1.2.13-wso2v3: Failure to find org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3 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.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.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3, org.apache.cassandra:apache-cassandra-thrift:jar:1.2.13-wso2v3: Failure to find org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3 in
Re: [Dev] Add Cassandra 1.2.13.wso2v4 into Orbit repository
Let me check on this and get back to you. Cheers, Prabath On Mon, Oct 13, 2014 at 12:05 PM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Prabath Release of cassandra-driver/1.0.5.wso2v was success. However the following error occurred while trying to release cassandra/1.2.13wso2v4; [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 1.177s [INFO] Finished at: Mon Oct 13 06:32:16 UTC 2014 [INFO] Final Memory: 7M/224M [INFO] [ERROR] Failed to execute goal on project apache-cassandra: Could not resolve dependencies for project org.apache.cassandra.wso2:apache-cassandra:bundle:1.2.13.wso2v4: The following artifacts could not be resolved: org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3, org.apache.cassandra:apache-cassandra-thrift:jar:1.2.13-wso2v3: Failure to find org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3 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 - [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project apache-cassandra: Could not resolve dependencies for project org.apache.cassandra.wso2:apache-cassandra:bundle:1.2.13.wso2v4: The following artifacts could not be resolved: org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3, org.apache.cassandra:apache-cassandra-thrift:jar:1.2.13-wso2v3: Failure to find org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3 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.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.apache.cassandra.wso2:apache-cassandra:bundle:1.2.13.wso2v4: The following artifacts could not be resolved: org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3, org.apache.cassandra:apache-cassandra-thrift:jar:1.2.13-wso2v3: Failure to find org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3 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.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:
[Dev] Commit to kernel for CARBON-15014
Hi Kernel Team, Please commit patch for https://wso2.org/jira/browse/CARBON-15014. Relavant PR is https://github.com/wso2-dev/carbon4-kernel/pull/128 Thanks, Darshana -- Regards, *Darshana Gunawardana*Software Engineer WSO2 Inc.; http://wso2.com *E-mail: darsh...@wso2.com darsh...@wso2.com* *Mobile: +94718566859*Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Issue in adding multiple devices for a user in EMM
Hi Harshan, No I did not get any errors in server but the authentication failed with the agent in the device. And another thing I noticed is, it is not the same EMM server IP I get when I change the network. For example let's say I got PW_1 as password with WiFi_1 for user_1. I can't use this PW_1 to enroll another device for user_1 in WiFi_2. Thank you. Regards, Pasanthi. On Mon, Oct 13, 2014 at 11:54 AM, Harshan Liyanage hars...@wso2.com wrote: Hi Pasanthi, AFAIK there could not be any issue for this scenario. We have tested it. Do you get any errors in server when enrolling the new device to the EMM? Thanks, Best Regards, 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 Mon, Oct 13, 2014 at 10:59 AM, Pasanthi Amarasekera pasan...@wso2.com wrote: On Sun, Oct 12, 2014 at 11:57 PM, Pasanthi Amarasekera pasan...@wso2.com wrote: Hi, Last week I created a user to the EMM running in my localhost and then enrolled an android phone, with the username and the password given in the user enrollment email. Today I tried to add an android tab to the same user with the same username and password. But those credentials didn't work today. What can be the reason for this ? The tab used is a nexus 7 with android 4.4.4 I had to create a new user to add the above mentioned tab to my local EMM. The only difference between the users I created last week and today is, the wifi network. Thank you. Regards, Pasanthi. -- Pasanthi Amarasekera WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: +94 77 9541735 -- Pasanthi Amarasekera WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: +94 77 9541735 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Pasanthi Amarasekera WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: +94 77 9541735 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Issue in adding multiple devices for a user in EMM
Hi Pasanthi, We have not tested such multi-device scenarios in different networks. But it should work fine. However could you please try enrolling a different user enroll multiple devices for that user (in the same network)? Thanks, Best Regards, 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 Mon, Oct 13, 2014 at 12:33 PM, Pasanthi Amarasekera pasan...@wso2.com wrote: Hi Harshan, No I did not get any errors in server but the authentication failed with the agent in the device. And another thing I noticed is, it is not the same EMM server IP I get when I change the network. For example let's say I got PW_1 as password with WiFi_1 for user_1. I can't use this PW_1 to enroll another device for user_1 in WiFi_2. Thank you. Regards, Pasanthi. On Mon, Oct 13, 2014 at 11:54 AM, Harshan Liyanage hars...@wso2.com wrote: Hi Pasanthi, AFAIK there could not be any issue for this scenario. We have tested it. Do you get any errors in server when enrolling the new device to the EMM? Thanks, Best Regards, 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 Mon, Oct 13, 2014 at 10:59 AM, Pasanthi Amarasekera pasan...@wso2.com wrote: On Sun, Oct 12, 2014 at 11:57 PM, Pasanthi Amarasekera pasan...@wso2.com wrote: Hi, Last week I created a user to the EMM running in my localhost and then enrolled an android phone, with the username and the password given in the user enrollment email. Today I tried to add an android tab to the same user with the same username and password. But those credentials didn't work today. What can be the reason for this ? The tab used is a nexus 7 with android 4.4.4 I had to create a new user to add the above mentioned tab to my local EMM. The only difference between the users I created last week and today is, the wifi network. Thank you. Regards, Pasanthi. -- Pasanthi Amarasekera WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: +94 77 9541735 -- Pasanthi Amarasekera WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: +94 77 9541735 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Pasanthi Amarasekera WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: +94 77 9541735 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Issue in adding multiple devices for a user in EMM
Hi Pasanthi, Instead of creating a new user, can you use admin credential and enroll with two devices? This should be possible, and even for a normal user, it should work. What is the exact error shown on the device? Regards, Inosh On Mon, Oct 13, 2014 at 1:32 PM, Harshan Liyanage hars...@wso2.com wrote: Hi Pasanthi, We have not tested such multi-device scenarios in different networks. But it should work fine. However could you please try enrolling a different user enroll multiple devices for that user (in the same network)? Thanks, Best Regards, 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 Mon, Oct 13, 2014 at 12:33 PM, Pasanthi Amarasekera pasan...@wso2.com wrote: Hi Harshan, No I did not get any errors in server but the authentication failed with the agent in the device. And another thing I noticed is, it is not the same EMM server IP I get when I change the network. For example let's say I got PW_1 as password with WiFi_1 for user_1. I can't use this PW_1 to enroll another device for user_1 in WiFi_2. Thank you. Regards, Pasanthi. On Mon, Oct 13, 2014 at 11:54 AM, Harshan Liyanage hars...@wso2.com wrote: Hi Pasanthi, AFAIK there could not be any issue for this scenario. We have tested it. Do you get any errors in server when enrolling the new device to the EMM? Thanks, Best Regards, 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 Mon, Oct 13, 2014 at 10:59 AM, Pasanthi Amarasekera pasan...@wso2.com wrote: On Sun, Oct 12, 2014 at 11:57 PM, Pasanthi Amarasekera pasan...@wso2.com wrote: Hi, Last week I created a user to the EMM running in my localhost and then enrolled an android phone, with the username and the password given in the user enrollment email. Today I tried to add an android tab to the same user with the same username and password. But those credentials didn't work today. What can be the reason for this ? The tab used is a nexus 7 with android 4.4.4 I had to create a new user to add the above mentioned tab to my local EMM. The only difference between the users I created last week and today is, the wifi network. Thank you. Regards, Pasanthi. -- Pasanthi Amarasekera WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: +94 77 9541735 -- Pasanthi Amarasekera WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: +94 77 9541735 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Pasanthi Amarasekera WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: +94 77 9541735 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Some outdated information/typo in wso2server.sh --help
Hi All This output for ESB 4.8.1. command: --debug port Start the server in remote debugging mode. port: The remote debugging port. --start Start Carbon using nohup in the background --stop Stop the Carbon server process --restart Restart the Carbon server process --cleanRegistry Clean registry space. [CAUTION] All Registry data will be lost. --version What version of the product are you running? system-properties: * -DhttpPort=httpPort Overrides the HTTP port defined in the mgt-transports.xml file* * -DhttpsPort=httpsPort Overrides the HTTPS port defined in the mgt-transports.xml file* -DosgiConsole=[port] Start Carbon with Equinox OSGi console. If the optional 'port' parameter is provided, a telnet port will be opened -DosgiDebugOptions=[options-file] Start Carbon with OSGi debugging enabled. If the optional 'options-file is provided, the OSGi debug options will be loaded from it. -Dsetup Clean the Registry other configuration, recreate DB, re-populate the configuration, and start Carbon *-Dwso2.transports.xml=transportXmlPath Location of the mgt-transports.xml file.* -DserverRoles=roles A comma separated list of roles. Used in deploying cApps -Dcarbon.use.registry.repo Use registry based repository. -DdisableHttpLog Disable HTTP access logging -*DapplyPatches* Use this system property when there are patches to be applied/reverted to/from the system. Drop the patches to $CARBON_HOME/repository/*componenets*/patches directory and restart the system with this property. When you want to revert a patch, delete it from the patches directory and restart the system with this property -DworkerNode Set this system property when starting as a worker node. This is required in clustered setups with master and worker nodes. -Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Error while accessing ProvisioningAdminService
Hi, I am trying to install feature via ProvisioningAdminService using soapui requests. I Followed following steps. 1) Add feature repo via RepositoryAdminService - SUCCESSFUL 2) reviewProvisioningAction 3) performProvisioning Action In the step 3 it gives following error. What can be the error here? ERROR - ProvisioningAdminService Error occurred while performing provisioning action org.apache.axis2.AxisFault: Error occurred while performing provisioning action at org.wso2.carbon.feature.mgt.services.prov.ProvisioningAdminService.handleException(ProvisioningAdminService.java:386) at org.wso2.carbon.feature.mgt.services.prov.ProvisioningAdminService.performProvisioningAction(ProvisioningAdminService.java:281) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) -- Thanks, Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] CEP Window in Siddhi Query
Hi, I wrote a window extension for Siddhi (implementing Stremlib library) which suppose to be keeping most frequent K events in the window. According to the logs, the window in functional. Now I need to get the events which are *inside* the window into an output stream. Im using below siddhi query, from topkeventstream#window.custom:topKfrequency(3,1,symbol) insert into topkresultstream symbol , this gives me following error line 2:29 extraneous input 'symbol' expecting EOF Does someone has any idea on this ? BR *Asok Aravinda Perera* Software Engineer WSO2, Inc.;http://wso2.com/ http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ lean.enterprise.middleware Mobile: +94722241032 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] error in setup BAM server in API cluster setup
Hi all, I am trying add BAM server(https://docs.wso2.com/display/AM170/Publishing+API+Runtime+Statistics) in API manager Cluster setup(https://docs.wso2.com/display/CLUSTER420/Clustering+API+Manager). I just trying with default H2 database configurations and I get following error. org.wso2.carbon.databridge.agent.thrift.exception.AgentException: Cannot borrow client for TCP,172.20.2.150:7617,TCP,172.20.2.150:7717 at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:58) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.start(DataPublisher.java:273) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.init(DataPublisher.java:161) at org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$ReceiverConnectionWorker.run(AsyncDataPublisher.java:787) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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.apache.thrift.transport.TTransportException: Could not connect to 172.20.2.150 on port 7717 at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:212) at org.apache.thrift.transport.TSSLTransportFactory.getClientSocket(TSSLTransportFactory.java:166) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:90) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:48) at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212) at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:50) ... 8 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618) at sun.security.ssl.SSLSocketImpl.init(SSLSocketImpl.java:407) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88) at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:208) what should I do and when we setup BAM in api cluster is there specific server component(gateway or keymanager or store or publisher or both)to setup Regards, Akila This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] CEP Window in Siddhi Query
Hi Asok, Siddhi query you are using is wrong. Correct query is from topkeventstream#window.custom:topKfrequency(3,1,symbol) select symbol insert into topkresultstream; Please refer [1] to learn about Siddhi query language. When you want to send data out of the window execute nextProcessor.process(event). It will send particular set of events to the next execution element of the query(ex: Selector) [1] https://docs.wso2.com/display/CEP310/Siddhi+Language+Specification On Mon, Oct 13, 2014 at 3:59 PM, Asok Perera as...@wso2.com wrote: Hi, I wrote a window extension for Siddhi (implementing Stremlib library) which suppose to be keeping most frequent K events in the window. According to the logs, the window in functional. Now I need to get the events which are *inside* the window into an output stream. Im using below siddhi query, from topkeventstream#window.custom:topKfrequency(3,1,symbol) insert into topkresultstream symbol , this gives me following error line 2:29 extraneous input 'symbol' expecting EOF Does someone has any idea on this ? BR *Asok Aravinda Perera* Software Engineer WSO2, Inc.;http://wso2.com/ http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ lean.enterprise.middleware Mobile: +94722241032 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Tishan Dahanayakage Software Engineer WSO2, Inc. Mobile:+94 716481328 Disclaimer: This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, re-transmit, disseminate, or otherwise use the information contained in this communication. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] CEP Window in Siddhi Query
I think this was probably because there are some old queries in CEP documentation under Writing a custom window. I've created a doc jira[1] to track this. @Praneesha, can you look into this and fix the docs mentioned in the ticket, please? Thanks, Lasantha [1] https://wso2.org/jira/browse/DOCUMENTATION-1186 On 13 October 2014 16:20, Tishan Dahanayakage tis...@wso2.com wrote: Hi Asok, Siddhi query you are using is wrong. Correct query is from topkeventstream#window.custom:topKfrequency(3,1,symbol) select symbol insert into topkresultstream; Please refer [1] to learn about Siddhi query language. When you want to send data out of the window execute nextProcessor.process(event). It will send particular set of events to the next execution element of the query(ex: Selector) [1] https://docs.wso2.com/display/CEP310/Siddhi+Language+Specification On Mon, Oct 13, 2014 at 3:59 PM, Asok Perera as...@wso2.com wrote: Hi, I wrote a window extension for Siddhi (implementing Stremlib library) which suppose to be keeping most frequent K events in the window. According to the logs, the window in functional. Now I need to get the events which are *inside* the window into an output stream. Im using below siddhi query, from topkeventstream#window.custom:topKfrequency(3,1,symbol) insert into topkresultstream symbol , this gives me following error line 2:29 extraneous input 'symbol' expecting EOF Does someone has any idea on this ? BR *Asok Aravinda Perera* Software Engineer WSO2, Inc.;http://wso2.com/ http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ lean.enterprise.middleware Mobile: +94722241032 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Tishan Dahanayakage Software Engineer WSO2, Inc. Mobile:+94 716481328 Disclaimer: This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, re-transmit, disseminate, or otherwise use the information contained in this communication. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Lasantha Fernando* Software Engineer - Data Technologies Team WSO2 Inc. http://wso2.com email: lasan...@wso2.com mobile: (+94) 71 5247551 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] error in setup BAM server in API cluster setup
Hi Akila, This seems to be you are not given correct thrift port of BAM in APIM_HOME/repository/conf/api-manager.xml file. According to the BAM's offset you are running, the thrift port may changed. Default thrift port is 7611 (non secure) and 7711 (secure). If offset is 1, ports will be change 7612 and 7712. Thanks On Mon, Oct 13, 2014 at 4:08 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.com wrote: Hi all, I am trying add BAM server( https://docs.wso2.com/display/AM170/Publishing+API+Runtime+Statistics) in API manager Cluster setup( https://docs.wso2.com/display/CLUSTER420/Clustering+API+Manager). I just trying with default H2 database configurations and I get following error. org.wso2.carbon.databridge.agent.thrift.exception.AgentException: Cannot borrow client for TCP,172.20.2.150:7617,TCP,172.20.2.150:7717 at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:58) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.start(DataPublisher.java:273) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.init(DataPublisher.java:161) at org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$ReceiverConnectionWorker.run(AsyncDataPublisher.java:787) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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.apache.thrift.transport.TTransportException: Could not connect to 172.20.2.150 on port 7717 at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:212) at org.apache.thrift.transport.TSSLTransportFactory.getClientSocket(TSSLTransportFactory.java:166) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:90) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:48) at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212) at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:50) ... 8 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618) at sun.security.ssl.SSLSocketImpl.init(SSLSocketImpl.java:407) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88) at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:208) what should I do and when we setup BAM in api cluster is there specific server component(gateway or keymanager or store or publisher or both)to setup Regards, Akila This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Manoj Gunawardena Tech Lead WSO2, Inc.: http://wso2.com lean.enterprise.middleware Mobile : +94 77 2291643 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] error in setup BAM server in API cluster setup
Hi Akila, Seems like it's a connection issue. Have you specified correct IPs and ports in the configurations. Thanks, Harsha On Mon, Oct 13, 2014 at 4:08 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.com wrote: Hi all, I am trying add BAM server( https://docs.wso2.com/display/AM170/Publishing+API+Runtime+Statistics) in API manager Cluster setup( https://docs.wso2.com/display/CLUSTER420/Clustering+API+Manager). I just trying with default H2 database configurations and I get following error. org.wso2.carbon.databridge.agent.thrift.exception.AgentException: Cannot borrow client for TCP,172.20.2.150:7617,TCP,172.20.2.150:7717 at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:58) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.start(DataPublisher.java:273) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.init(DataPublisher.java:161) at org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$ReceiverConnectionWorker.run(AsyncDataPublisher.java:787) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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.apache.thrift.transport.TTransportException: Could not connect to 172.20.2.150 on port 7717 at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:212) at org.apache.thrift.transport.TSSLTransportFactory.getClientSocket(TSSLTransportFactory.java:166) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:90) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:48) at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212) at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:50) ... 8 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618) at sun.security.ssl.SSLSocketImpl.init(SSLSocketImpl.java:407) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88) at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:208) what should I do and when we setup BAM in api cluster is there specific server component(gateway or keymanager or store or publisher or both)to setup Regards, Akila This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you. ___ 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
Re: [Dev] CEP Window in Siddhi Query
Hi Tishan/Lasantha, Thank you..! Yes, I followed the queries in the CEP documentation.., I will try the correct query. Thanks again BR *Asok Aravinda Perera* Software Engineer WSO2, Inc.;http://wso2.com/ http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ lean.enterprise.middleware Mobile: +94722241032 On Mon, Oct 13, 2014 at 4:44 PM, Lasantha Fernando lasan...@wso2.com wrote: I think this was probably because there are some old queries in CEP documentation under Writing a custom window. I've created a doc jira[1] to track this. @Praneesha, can you look into this and fix the docs mentioned in the ticket, please? Thanks, Lasantha [1] https://wso2.org/jira/browse/DOCUMENTATION-1186 On 13 October 2014 16:20, Tishan Dahanayakage tis...@wso2.com wrote: Hi Asok, Siddhi query you are using is wrong. Correct query is from topkeventstream#window.custom:topKfrequency(3,1,symbol) select symbol insert into topkresultstream; Please refer [1] to learn about Siddhi query language. When you want to send data out of the window execute nextProcessor.process(event). It will send particular set of events to the next execution element of the query(ex: Selector) [1] https://docs.wso2.com/display/CEP310/Siddhi+Language+Specification On Mon, Oct 13, 2014 at 3:59 PM, Asok Perera as...@wso2.com wrote: Hi, I wrote a window extension for Siddhi (implementing Stremlib library) which suppose to be keeping most frequent K events in the window. According to the logs, the window in functional. Now I need to get the events which are *inside* the window into an output stream. Im using below siddhi query, from topkeventstream#window.custom:topKfrequency(3,1,symbol) insert into topkresultstream symbol , this gives me following error line 2:29 extraneous input 'symbol' expecting EOF Does someone has any idea on this ? BR *Asok Aravinda Perera* Software Engineer WSO2, Inc.;http://wso2.com/ http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ lean.enterprise.middleware Mobile: +94722241032 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Tishan Dahanayakage Software Engineer WSO2, Inc. Mobile:+94 716481328 Disclaimer: This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, re-transmit, disseminate, or otherwise use the information contained in this communication. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Lasantha Fernando* Software Engineer - Data Technologies Team WSO2 Inc. http://wso2.com email: lasan...@wso2.com mobile: (+94) 71 5247551 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] APPFAC-2170 - Remove multiple backend calls that happens when loading resource overview page
Hi, Following are the sub tasks I'm planning to do here: 1. Move databases page to new tab 2. Update Resource - overview page 3. Update Resource - properties page [1] https://wso2.org/jira/browse/APPFAC-2170 Thanks Amalka -- Amalka Subasinghe WSO2 Inc. Mobile: +94 77 9401267 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Backup Hive queries on BAM
Hi all, Is there a way to backup/restore the Hive queries(Analytics) you write on BAM. Where are these queries stored? Regards, Inosh -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Multi Tenant support with Active Directory
Hi Johan/Darshana I have completed the improvement which support Multi-Tenancy with active directory. Please review the code and commit , patches are attached in jira[1]. Please see below the problem had and solution given. Problem 1. After creating a tenant, created admin user is in a disable mode and need to manually enable that user to login to the system. 2. There is a code duplication to create the tenant admin user in tenant creation flow. Solution 1. Reuse existing user creation code in tenant creation flow to create the tenant admin user. [1] https://wso2.org/jira/browse/IDENTITY-2791 Thanks Godwin -- *Godwin Amila Shrimal* Senior Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94772264165* linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D* twitter: https://twitter.com/godwinamila ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Backup Hive queries on BAM
Hi Inosh, All the hive scripts are saved in the registry under /_system/config/repository/hive/scripts location. At the moment we don't provide backup/restore functionality. What is your use case? Regards, Gihan On Mon, Oct 13, 2014 at 5:34 PM, Inosh Perera ino...@wso2.com wrote: Hi all, Is there a way to backup/restore the Hive queries(Analytics) you write on BAM. Where are these queries stored? Regards, Inosh -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 -- W.G. Gihan Anuruddha Senior Software Engineer | WSO2, Inc. M: +94772272595 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] error in setup BAM server in API cluster setup
Hi harsha, Yes ip is correct .i put port as 7617 because I used 6 as BAM offset. please check below for apiusagetracking element details, APIUsageTracking Enabledtrue/Enabled PublisherClassorg.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher/PublisherClass ThriftPort7617/ThriftPort BAMServerURLtcp://172.20.2.150:7617//BAMServerURL BAMUsernameadmin/BAMUsername BAMPasswordadmin/BAMPassword DataSourceNamejdbc/WSO2AM_STATS_DB/DataSourceName /APIUsageTracking Regards, Akila From: Harsha Kumara [mailto:hars...@wso2.com] Sent: 13 October 2014 4:46 PM To: Akila Nimantha [IT/EKO/LOITS] Cc: dev@wso2.org Subject: Re: [Dev] error in setup BAM server in API cluster setup Hi Akila, Seems like it's a connection issue. Have you specified correct IPs and ports in the configurations. Thanks, Harsha On Mon, Oct 13, 2014 at 4:08 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.commailto:aki...@lolctech.com wrote: Hi all, I am trying add BAM server(https://docs.wso2.com/display/AM170/Publishing+API+Runtime+Statistics) in API manager Cluster setup(https://docs.wso2.com/display/CLUSTER420/Clustering+API+Manager). I just trying with default H2 database configurations and I get following error. org.wso2.carbon.databridge.agent.thrift.exception.AgentException: Cannot borrow client for TCP,172.20.2.150:7617http://172.20.2.150:7617,TCP,172.20.2.150:7717http://172.20.2.150:7717 at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:58) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.start(DataPublisher.java:273) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.init(DataPublisher.java:161) at org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$ReceiverConnectionWorker.run(AsyncDataPublisher.java:787) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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.apache.thrift.transport.TTransportException: Could not connect to 172.20.2.150 on port 7717 at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:212) at org.apache.thrift.transport.TSSLTransportFactory.getClientSocket(TSSLTransportFactory.java:166) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:90) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:48) at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212) at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:50) ... 8 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618) at sun.security.ssl.SSLSocketImpl.init(SSLSocketImpl.java:407) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88) at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:208) what should I do and when we setup BAM in api cluster is there specific server component(gateway or keymanager or store or publisher or both)to setup Regards, Akila This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you. ___ Dev mailing list
[Dev] STS WSDL does not get updated with newly added UsernameToken assertion requirements
Hi All, I'm working on JIRA issue[1]. There's a comment saying that the policy generated by the STS when secured with Username Token is incorrect. As per the WS-Policy specification the default version of the username token is the wsse:UsernameToken as defined in [WSS: Username Token Profile 1.0], and defining additional requirements of UsernameToken assertion as below is optional. sp:SignedSupportingTokens xmlns:sp= http://schemas.xmlsoap.org/ws/2005/07/securitypolicy; wsp:Policy sp:UsernameToken sp:IncludeToken= http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient wsp:Policy sp:WssUsernameToken10/ /wsp:Policy /sp:UsernameToken /wsp:Policy /sp:SignedSupportingTokens I tried to add this to the policy since it's been requested. For that I added above to the scenario1-policy.xml of org.wso2.carbon.security.mgt component at [2]. However though the updated policy file can be also seen in the registry (/_system/config/repository/components/org.wso2.carbon.security.mgt/policy/scenario1) when applying UsernameToken security to the STS the WSDL of the STS does not show the additional requirements added to Username Token assertion. It just contains the assertion below. sp:SignedSupportingTokens xmlns:sp= http://schemas.xmlsoap.org/ws/2005/07/securitypolicy; wsp:Policy sp:UsernameToken sp:IncludeToken= http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient / /wsp:Policy /sp:SignedSupportingTokens I have also tried associating the policy file that is in the registry when applying security to the STS. Yet is shows the same. Then I updated the org.wso2.carbon.sts.xml file at PRODUCT_HOME/repository/deployment/server/servicemetafiles/ with the addition. Neither this changed the WSDL of STS. Could somebody please help me to solve this problem or point out if I'm doing something wrong here. [1] https://wso2.org/jira/browse/IDENTITY-2537 [2] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/security/org.wso2.carbon.security.mgt/4.2.5/ Thanks, Malithi. -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] error in setup BAM server in API cluster setup
Hi Akila, During the BAM server startup, it will show a message like below. Please use that IP address to connect to BAM. [2014-10-13 14:51:17,448] INFO {org.wso2.carbon.databridge.receiver.thrift. internal.ThriftDataReceiver} - Thrift Server started at 0.0.0.0 [2014-10-13 14:51:17,453] INFO {org.wso2.carbon.databridge.receiver.thrift. internal.ThriftDataReceiver} - Thrift SSL port : 7711 [2014-10-13 14:51:17,456] INFO {org.wso2.carbon.databridge.receiver.thrift. internal.ThriftDataReceiver} - Thrift port : 7611 Regards, Gihan On Mon, Oct 13, 2014 at 5:46 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.com wrote: Hi harsha, Yes ip is correct .i put port as 7617 because I used 6 as BAM offset. please check below for apiusagetracking element details, APIUsageTracking Enabledtrue/Enabled PublisherClassorg.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher/PublisherClass ThriftPort7617/ThriftPort BAMServerURLtcp://172.20.2.150:7617//BAMServerURL BAMUsernameadmin/BAMUsername BAMPasswordadmin/BAMPassword DataSourceNamejdbc/WSO2AM_STATS_DB/DataSourceName /APIUsageTracking Regards, Akila *From:* Harsha Kumara [mailto:hars...@wso2.com] *Sent:* 13 October 2014 4:46 PM *To:* Akila Nimantha [IT/EKO/LOITS] *Cc:* dev@wso2.org *Subject:* Re: [Dev] error in setup BAM server in API cluster setup Hi Akila, Seems like it's a connection issue. Have you specified correct IPs and ports in the configurations. Thanks, Harsha On Mon, Oct 13, 2014 at 4:08 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.com wrote: Hi all, I am trying add BAM server( https://docs.wso2.com/display/AM170/Publishing+API+Runtime+Statistics) in API manager Cluster setup( https://docs.wso2.com/display/CLUSTER420/Clustering+API+Manager). I just trying with default H2 database configurations and I get following error. org.wso2.carbon.databridge.agent.thrift.exception.AgentException: Cannot borrow client for TCP,172.20.2.150:7617,TCP,172.20.2.150:7717 at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:58) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.start(DataPublisher.java:273) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.init(DataPublisher.java:161) at org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$ReceiverConnectionWorker.run(AsyncDataPublisher.java:787) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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.apache.thrift.transport.TTransportException: Could not connect to 172.20.2.150 on port 7717 at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:212) at org.apache.thrift.transport.TSSLTransportFactory.getClientSocket(TSSLTransportFactory.java:166) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:90) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:48) at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212) at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:50) ... 8 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618) at sun.security.ssl.SSLSocketImpl.init(SSLSocketImpl.java:407) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88) at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:208) what should I do and when we setup BAM in api cluster is there specific server component(gateway or keymanager or store or publisher or both)to setup Regards, Akila This message (including any attachments) is intended only for the use of
Re: [Dev] error in setup BAM server in API cluster setup
Hi Manoj, I used no 6 as BAM server offset. Regards, Akila From: Manoj Gunawardena [mailto:man...@wso2.com] Sent: 13 October 2014 4:46 PM To: Akila Nimantha [IT/EKO/LOITS] Cc: dev@wso2.org Subject: Re: [Dev] error in setup BAM server in API cluster setup Hi Akila, This seems to be you are not given correct thrift port of BAM in APIM_HOME/repository/conf/api-manager.xml file. According to the BAM's offset you are running, the thrift port may changed. Default thrift port is 7611 (non secure) and 7711 (secure). If offset is 1, ports will be change 7612 and 7712. Thanks On Mon, Oct 13, 2014 at 4:08 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.commailto:aki...@lolctech.com wrote: Hi all, I am trying add BAM server(https://docs.wso2.com/display/AM170/Publishing+API+Runtime+Statistics) in API manager Cluster setup(https://docs.wso2.com/display/CLUSTER420/Clustering+API+Manager). I just trying with default H2 database configurations and I get following error. org.wso2.carbon.databridge.agent.thrift.exception.AgentException: Cannot borrow client for TCP,172.20.2.150:7617http://172.20.2.150:7617,TCP,172.20.2.150:7717http://172.20.2.150:7717 at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:58) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.start(DataPublisher.java:273) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.init(DataPublisher.java:161) at org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$ReceiverConnectionWorker.run(AsyncDataPublisher.java:787) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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.apache.thrift.transport.TTransportException: Could not connect to 172.20.2.150 on port 7717 at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:212) at org.apache.thrift.transport.TSSLTransportFactory.getClientSocket(TSSLTransportFactory.java:166) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:90) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:48) at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212) at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:50) ... 8 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618) at sun.security.ssl.SSLSocketImpl.init(SSLSocketImpl.java:407) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88) at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:208) what should I do and when we setup BAM in api cluster is there specific server component(gateway or keymanager or store or publisher or both)to setup Regards, Akila This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you. ___ Dev mailing list Dev@wso2.orgmailto:Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Manoj Gunawardena Tech Lead WSO2, Inc.: http://wso2.comhttp://wso2.com/ lean.enterprise.middleware Mobile : +94 77 2291643 This message (including any attachments) is intended only for the use of the individual or entity to
Re: [Dev] error in setup BAM server in API cluster setup
Hi Akila, Can you attach the BAM wso2carbon.log Thanks On Mon, Oct 13, 2014 at 5:51 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.com wrote: Hi Manoj, I used no 6 as BAM server offset. Regards, Akila *From:* Manoj Gunawardena [mailto:man...@wso2.com] *Sent:* 13 October 2014 4:46 PM *To:* Akila Nimantha [IT/EKO/LOITS] *Cc:* dev@wso2.org *Subject:* Re: [Dev] error in setup BAM server in API cluster setup Hi Akila, This seems to be you are not given correct thrift port of BAM in APIM_HOME/repository/conf/api-manager.xml file. According to the BAM's offset you are running, the thrift port may changed. Default thrift port is 7611 (non secure) and 7711 (secure). If offset is 1, ports will be change 7612 and 7712. Thanks On Mon, Oct 13, 2014 at 4:08 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.com wrote: Hi all, I am trying add BAM server( https://docs.wso2.com/display/AM170/Publishing+API+Runtime+Statistics) in API manager Cluster setup( https://docs.wso2.com/display/CLUSTER420/Clustering+API+Manager). I just trying with default H2 database configurations and I get following error. org.wso2.carbon.databridge.agent.thrift.exception.AgentException: Cannot borrow client for TCP,172.20.2.150:7617,TCP,172.20.2.150:7717 at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:58) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.start(DataPublisher.java:273) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.init(DataPublisher.java:161) at org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$ReceiverConnectionWorker.run(AsyncDataPublisher.java:787) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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.apache.thrift.transport.TTransportException: Could not connect to 172.20.2.150 on port 7717 at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:212) at org.apache.thrift.transport.TSSLTransportFactory.getClientSocket(TSSLTransportFactory.java:166) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:90) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:48) at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212) at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:50) ... 8 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618) at sun.security.ssl.SSLSocketImpl.init(SSLSocketImpl.java:407) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88) at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:208) what should I do and when we setup BAM in api cluster is there specific server component(gateway or keymanager or store or publisher or both)to setup Regards, Akila This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Manoj Gunawardena Tech Lead WSO2,
Re: [Dev] CEP Window in Siddhi Query
Hi Lasantha, Thanks. Will do the needful. On Mon, Oct 13, 2014 at 5:03 PM, Asok Perera as...@wso2.com wrote: Hi Tishan/Lasantha, Thank you..! Yes, I followed the queries in the CEP documentation.., I will try the correct query. Thanks again BR *Asok Aravinda Perera* Software Engineer WSO2, Inc.;http://wso2.com/ http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ lean.enterprise.middleware Mobile: +94722241032 On Mon, Oct 13, 2014 at 4:44 PM, Lasantha Fernando lasan...@wso2.com wrote: I think this was probably because there are some old queries in CEP documentation under Writing a custom window. I've created a doc jira[1] to track this. @Praneesha, can you look into this and fix the docs mentioned in the ticket, please? Thanks, Lasantha [1] https://wso2.org/jira/browse/DOCUMENTATION-1186 On 13 October 2014 16:20, Tishan Dahanayakage tis...@wso2.com wrote: Hi Asok, Siddhi query you are using is wrong. Correct query is from topkeventstream#window.custom:topKfrequency(3,1,symbol) select symbol insert into topkresultstream; Please refer [1] to learn about Siddhi query language. When you want to send data out of the window execute nextProcessor.process(event). It will send particular set of events to the next execution element of the query(ex: Selector) [1] https://docs.wso2.com/display/CEP310/Siddhi+Language+Specification On Mon, Oct 13, 2014 at 3:59 PM, Asok Perera as...@wso2.com wrote: Hi, I wrote a window extension for Siddhi (implementing Stremlib library) which suppose to be keeping most frequent K events in the window. According to the logs, the window in functional. Now I need to get the events which are *inside* the window into an output stream. Im using below siddhi query, from topkeventstream#window.custom:topKfrequency(3,1,symbol) insert into topkresultstream symbol , this gives me following error line 2:29 extraneous input 'symbol' expecting EOF Does someone has any idea on this ? BR *Asok Aravinda Perera* Software Engineer WSO2, Inc.;http://wso2.com/ http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ lean.enterprise.middleware Mobile: +94722241032 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Tishan Dahanayakage Software Engineer WSO2, Inc. Mobile:+94 716481328 Disclaimer: This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, re-transmit, disseminate, or otherwise use the information contained in this communication. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Lasantha Fernando* Software Engineer - Data Technologies Team WSO2 Inc. http://wso2.com email: lasan...@wso2.com mobile: (+94) 71 5247551 -- Thanks Best Regards, *Praneesha Chandrasiri* *Technical Writer* *WSO2 Inc. * *Mobile: +(94) 718156888* *E-mail: pranee...@wso2.com pranee...@wso2.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] error in setup BAM server in API cluster setup
Dear Gihan, Yes I used figures displayed in my BAM log. Can you please tell me is there a specific server that I should put these configurations. Because I am trying to add BAM in a clustered setup. My followed document says just api_home and so on. So what should I change or both. For now I did same configuration in both four components(Gateway,keymanager,publisher and store). Regards, Akila From: Gihan Anuruddha [mailto:gi...@wso2.com] Sent: 13 October 2014 5:50 PM To: Akila Nimantha [IT/EKO/LOITS] Cc: dev@wso2.org Subject: Re: [Dev] error in setup BAM server in API cluster setup Hi Akila, During the BAM server startup, it will show a message like below. Please use that IP address to connect to BAM. [2014-10-13 14:51:17,448] INFO {org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceiver} - Thrift Server started at 0.0.0.0 [2014-10-13 14:51:17,453] INFO {org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceiver} - Thrift SSL port : 7711 [2014-10-13 14:51:17,456] INFO {org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceiver} - Thrift port : 7611 Regards, Gihan On Mon, Oct 13, 2014 at 5:46 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.commailto:aki...@lolctech.com wrote: Hi harsha, Yes ip is correct .i put port as 7617 because I used 6 as BAM offset. please check below for apiusagetracking element details, APIUsageTracking Enabledtrue/Enabled PublisherClassorg.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher/PublisherClass ThriftPort7617/ThriftPort BAMServerURLtcp://172.20.2.150:7617/http://172.20.2.150:7617//BAMServerURL BAMUsernameadmin/BAMUsername BAMPasswordadmin/BAMPassword DataSourceNamejdbc/WSO2AM_STATS_DB/DataSourceName /APIUsageTracking Regards, Akila From: Harsha Kumara [mailto:hars...@wso2.commailto:hars...@wso2.com] Sent: 13 October 2014 4:46 PM To: Akila Nimantha [IT/EKO/LOITS] Cc: dev@wso2.orgmailto:dev@wso2.org Subject: Re: [Dev] error in setup BAM server in API cluster setup Hi Akila, Seems like it's a connection issue. Have you specified correct IPs and ports in the configurations. Thanks, Harsha On Mon, Oct 13, 2014 at 4:08 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.commailto:aki...@lolctech.com wrote: Hi all, I am trying add BAM server(https://docs.wso2.com/display/AM170/Publishing+API+Runtime+Statistics) in API manager Cluster setup(https://docs.wso2.com/display/CLUSTER420/Clustering+API+Manager). I just trying with default H2 database configurations and I get following error. org.wso2.carbon.databridge.agent.thrift.exception.AgentException: Cannot borrow client for TCP,172.20.2.150:7617http://172.20.2.150:7617,TCP,172.20.2.150:7717http://172.20.2.150:7717 at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:58) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.start(DataPublisher.java:273) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.init(DataPublisher.java:161) at org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$ReceiverConnectionWorker.run(AsyncDataPublisher.java:787) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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.apache.thrift.transport.TTransportException: Could not connect to 172.20.2.150 on port 7717 at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:212) at org.apache.thrift.transport.TSSLTransportFactory.getClientSocket(TSSLTransportFactory.java:166) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:90) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:48) at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212) at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:50) ... 8 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at
Re: [Dev] error in setup BAM server in API cluster setup
Hi manoj, Please check the attachment for bam log. Regards, Akila From: Manoj Gunawardena [mailto:man...@wso2.com] Sent: 13 October 2014 5:59 PM To: Akila Nimantha [IT/EKO/LOITS] Cc: dev@wso2.org Subject: Re: [Dev] error in setup BAM server in API cluster setup Hi Akila, Can you attach the BAM wso2carbon.log Thanks On Mon, Oct 13, 2014 at 5:51 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.commailto:aki...@lolctech.com wrote: Hi Manoj, I used no 6 as BAM server offset. Regards, Akila From: Manoj Gunawardena [mailto:man...@wso2.commailto:man...@wso2.com] Sent: 13 October 2014 4:46 PM To: Akila Nimantha [IT/EKO/LOITS] Cc: dev@wso2.orgmailto:dev@wso2.org Subject: Re: [Dev] error in setup BAM server in API cluster setup Hi Akila, This seems to be you are not given correct thrift port of BAM in APIM_HOME/repository/conf/api-manager.xml file. According to the BAM's offset you are running, the thrift port may changed. Default thrift port is 7611 (non secure) and 7711 (secure). If offset is 1, ports will be change 7612 and 7712. Thanks On Mon, Oct 13, 2014 at 4:08 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.commailto:aki...@lolctech.com wrote: Hi all, I am trying add BAM server(https://docs.wso2.com/display/AM170/Publishing+API+Runtime+Statistics) in API manager Cluster setup(https://docs.wso2.com/display/CLUSTER420/Clustering+API+Manager). I just trying with default H2 database configurations and I get following error. org.wso2.carbon.databridge.agent.thrift.exception.AgentException: Cannot borrow client for TCP,172.20.2.150:7617http://172.20.2.150:7617,TCP,172.20.2.150:7717http://172.20.2.150:7717 at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:58) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.start(DataPublisher.java:273) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.init(DataPublisher.java:161) at org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$ReceiverConnectionWorker.run(AsyncDataPublisher.java:787) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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.apache.thrift.transport.TTransportException: Could not connect to 172.20.2.150 on port 7717 at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:212) at org.apache.thrift.transport.TSSLTransportFactory.getClientSocket(TSSLTransportFactory.java:166) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:90) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:48) at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212) at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:50) ... 8 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618) at sun.security.ssl.SSLSocketImpl.init(SSLSocketImpl.java:407) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88) at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:208) what should I do and when we setup BAM in api cluster is there specific server component(gateway or keymanager or store or publisher or both)to setup Regards, Akila This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a
Re: [Dev] error in setup BAM server in API cluster setup
Hi Akila Please refer the following thread. This may be useful for your scenario.Please make sure your BAM cluster working properly. If cluster works properly you can give BAM nodes as comma separated list in api-manager.xml file. h ttp://stackoverflow.com/questions/14395885/cluster-configuration-for-load-balancing-wso2-bam-cep http://stackoverflow.com/questions/14395885/cluster-configuration-for-load-balancing-wso2-bam-cep Thanks On Mon, Oct 13, 2014 at 6:15 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.com wrote: Dear Gihan, Yes I used figures displayed in my BAM log. Can you please tell me is there a specific server that I should put these configurations. Because I am trying to add BAM in a clustered setup. My followed document says just api_home and so on. So what should I change or both. For now I did same configuration in both four components(Gateway,keymanager,publisher and store). Regards, Akila *From:* Gihan Anuruddha [mailto:gi...@wso2.com] *Sent:* 13 October 2014 5:50 PM *To:* Akila Nimantha [IT/EKO/LOITS] *Cc:* dev@wso2.org *Subject:* Re: [Dev] error in setup BAM server in API cluster setup Hi Akila, During the BAM server startup, it will show a message like below. Please use that IP address to connect to BAM. [2014-10-13 14:51:17,448] INFO {org.wso2.carbon.databridge.receiver. thrift.internal.ThriftDataReceiver} - Thrift Server started at 0.0.0.0 [2014-10-13 14:51:17,453] INFO {org.wso2.carbon.databridge.receiver. thrift.internal.ThriftDataReceiver} - Thrift SSL port : 7711 [2014-10-13 14:51:17,456] INFO {org.wso2.carbon.databridge.receiver. thrift.internal.ThriftDataReceiver} - Thrift port : 7611 Regards, Gihan On Mon, Oct 13, 2014 at 5:46 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.com wrote: Hi harsha, Yes ip is correct .i put port as 7617 because I used 6 as BAM offset. please check below for apiusagetracking element details, APIUsageTracking Enabledtrue/Enabled PublisherClassorg.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher/PublisherClass ThriftPort7617/ThriftPort BAMServerURLtcp://172.20.2.150:7617//BAMServerURL BAMUsernameadmin/BAMUsername BAMPasswordadmin/BAMPassword DataSourceNamejdbc/WSO2AM_STATS_DB/DataSourceName /APIUsageTracking Regards, Akila *From:* Harsha Kumara [mailto:hars...@wso2.com] *Sent:* 13 October 2014 4:46 PM *To:* Akila Nimantha [IT/EKO/LOITS] *Cc:* dev@wso2.org *Subject:* Re: [Dev] error in setup BAM server in API cluster setup Hi Akila, Seems like it's a connection issue. Have you specified correct IPs and ports in the configurations. Thanks, Harsha On Mon, Oct 13, 2014 at 4:08 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.com wrote: Hi all, I am trying add BAM server( https://docs.wso2.com/display/AM170/Publishing+API+Runtime+Statistics) in API manager Cluster setup( https://docs.wso2.com/display/CLUSTER420/Clustering+API+Manager). I just trying with default H2 database configurations and I get following error. org.wso2.carbon.databridge.agent.thrift.exception.AgentException: Cannot borrow client for TCP,172.20.2.150:7617,TCP,172.20.2.150:7717 at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:58) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.start(DataPublisher.java:273) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.init(DataPublisher.java:161) at org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$ReceiverConnectionWorker.run(AsyncDataPublisher.java:787) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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.apache.thrift.transport.TTransportException: Could not connect to 172.20.2.150 on port 7717 at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:212) at org.apache.thrift.transport.TSSLTransportFactory.getClientSocket(TSSLTransportFactory.java:166) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:90) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:48) at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212) at
Re: [Dev] [Carbon] Cloud Tenant deletion-Carbon core patches
Hi Godwin, Were you able to provide the pull requests as requested by Sameera. We need to get them pushed to 4.3.0 kernel release. Regards, Amila. On Fri, Oct 3, 2014 at 12:00 PM, Sameera Jayasoma same...@wso2.com wrote: Hi Amila, Can we get the necessary pull request for this feature? Please fork the wso2/carbon4-kernel repo and create pull requests? Thanks, Sameera. On Thu, Oct 2, 2014 at 11:09 PM, Amila Maha Arachchi ami...@wso2.com wrote: Sameera, We need this to be committed to 4.3.0 Kernel so that any product release which goes with 4.3.0 can support tenant deletion. Godwin et al can send pull requests. If you need lets have a chat about this before that. Regards, Amila. On Thu, Oct 2, 2014 at 7:23 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi, We did Cloud Tenant Deletion as the training project. Out of all patches there are three patches related to Carbon core as mentioned below. 1. *javax.cache * We added a method to *CacheManagerFactoryImpl *class which delete the global cache for a specific tenant. public void removeTenant(String tenantDomain) { globalCacheManagerMap .remove(tenantDomain); } 2. *org.wso2.carbon.user.api* Added a method to *TenantManager *interface which allow only delete the tenantmanager cache other than persistent storage. public void deleteTenant(int tenantId, boolean removeFromPersistentStorage)throws UserStoreException; 2. *org.wso2.carbon.user.core* Implemented above deleteTenant method in JDBCTenantManager. Please give a feedback on this how we can add this to next carbon release. Thanks Godwin -- *Godwin Amila Shrimal* Senior Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94772264165* linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D* twitter: https://twitter.com/godwinamila -- *Amila Maharachchi* Senior Technical Lead WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446 -- Sameera Jayasoma, Software Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Mobile: 0094776364456 Lean . Enterprise . Middleware -- *Amila Maharachchi* Senior Technical Lead WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Carbon] Cloud Tenant deletion-Carbon core patches
Hi Amila, I discussed offline with the carbon team on this will send the pull request by tomorrow, since have to apply all the code changes which done in local SVN to Git. Thanks Godwin On Mon, Oct 13, 2014 at 7:21 PM, Amila Maha Arachchi ami...@wso2.com wrote: Hi Godwin, Were you able to provide the pull requests as requested by Sameera. We need to get them pushed to 4.3.0 kernel release. Regards, Amila. On Fri, Oct 3, 2014 at 12:00 PM, Sameera Jayasoma same...@wso2.com wrote: Hi Amila, Can we get the necessary pull request for this feature? Please fork the wso2/carbon4-kernel repo and create pull requests? Thanks, Sameera. On Thu, Oct 2, 2014 at 11:09 PM, Amila Maha Arachchi ami...@wso2.com wrote: Sameera, We need this to be committed to 4.3.0 Kernel so that any product release which goes with 4.3.0 can support tenant deletion. Godwin et al can send pull requests. If you need lets have a chat about this before that. Regards, Amila. On Thu, Oct 2, 2014 at 7:23 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi, We did Cloud Tenant Deletion as the training project. Out of all patches there are three patches related to Carbon core as mentioned below. 1. *javax.cache * We added a method to *CacheManagerFactoryImpl *class which delete the global cache for a specific tenant. public void removeTenant(String tenantDomain) { globalCacheManagerMap .remove(tenantDomain); } 2. *org.wso2.carbon.user.api* Added a method to *TenantManager *interface which allow only delete the tenantmanager cache other than persistent storage. public void deleteTenant(int tenantId, boolean removeFromPersistentStorage)throws UserStoreException; 2. *org.wso2.carbon.user.core* Implemented above deleteTenant method in JDBCTenantManager. Please give a feedback on this how we can add this to next carbon release. Thanks Godwin -- *Godwin Amila Shrimal* Senior Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94772264165* linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D* twitter: https://twitter.com/godwinamila -- *Amila Maharachchi* Senior Technical Lead WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446 -- Sameera Jayasoma, Software Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Mobile: 0094776364456 Lean . Enterprise . Middleware -- *Amila Maharachchi* Senior Technical Lead WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446 -- *Godwin Amila Shrimal* Senior Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94772264165* linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D* twitter: https://twitter.com/godwinamila ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Carbon] Cloud Tenant deletion-Carbon core patches
Thanks. Just wanted to make sure we don't drop the ball on this. If we miss adding this to 4.3.0 we loose a huge opportunity to support tenant deletion in our platform. On Mon, Oct 13, 2014 at 7:27 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi Amila, I discussed offline with the carbon team on this will send the pull request by tomorrow, since have to apply all the code changes which done in local SVN to Git. Thanks Godwin On Mon, Oct 13, 2014 at 7:21 PM, Amila Maha Arachchi ami...@wso2.com wrote: Hi Godwin, Were you able to provide the pull requests as requested by Sameera. We need to get them pushed to 4.3.0 kernel release. Regards, Amila. On Fri, Oct 3, 2014 at 12:00 PM, Sameera Jayasoma same...@wso2.com wrote: Hi Amila, Can we get the necessary pull request for this feature? Please fork the wso2/carbon4-kernel repo and create pull requests? Thanks, Sameera. On Thu, Oct 2, 2014 at 11:09 PM, Amila Maha Arachchi ami...@wso2.com wrote: Sameera, We need this to be committed to 4.3.0 Kernel so that any product release which goes with 4.3.0 can support tenant deletion. Godwin et al can send pull requests. If you need lets have a chat about this before that. Regards, Amila. On Thu, Oct 2, 2014 at 7:23 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi, We did Cloud Tenant Deletion as the training project. Out of all patches there are three patches related to Carbon core as mentioned below. 1. *javax.cache * We added a method to *CacheManagerFactoryImpl *class which delete the global cache for a specific tenant. public void removeTenant(String tenantDomain) { globalCacheManagerMap.remove(tenantDomain); } 2. *org.wso2.carbon.user.api* Added a method to *TenantManager *interface which allow only delete the tenantmanager cache other than persistent storage. public void deleteTenant(int tenantId, boolean removeFromPersistentStorage)throws UserStoreException; 2. *org.wso2.carbon.user.core* Implemented above deleteTenant method in JDBCTenantManager. Please give a feedback on this how we can add this to next carbon release. Thanks Godwin -- *Godwin Amila Shrimal* Senior Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94772264165* linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D* twitter: https://twitter.com/godwinamila -- *Amila Maharachchi* Senior Technical Lead WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446 -- Sameera Jayasoma, Software Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Mobile: 0094776364456 Lean . Enterprise . Middleware -- *Amila Maharachchi* Senior Technical Lead WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446 -- *Godwin Amila Shrimal* Senior Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94772264165* linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D* twitter: https://twitter.com/godwinamila -- *Amila Maharachchi* Senior Technical Lead WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Tomcat Session Replication Using Caching
Hi Azeez/Srinath I've managed to implement Tomcat Session replication using Hazelcast APIs. As per the off-line chats with Azeez and Sameera,This functionality is applicable to all web applications which are deploy in WSO2 AS. I've introduced a global web filter, which is define in the web.xml in the conf/ directory of Tomcat to have it included in all web applications deployed. As a result I've managed to replicate all the session attributes per web application. Furthermore I've tested basic auth webapp which works as expected. And I wrote a jmeter script to test session.setAttribute() by inserting 100+ records. Please advice as to how should I thoroughly test this feature. -Pubudu On Thu, Oct 2, 2014 at 11:40 AM, Afkham Azeez az...@wso2.com wrote: On Thu, Oct 2, 2014 at 9:22 AM, Srinath Perera srin...@wso2.com wrote: I am not sure from notes what we decided. Cannot we just used hazelcast session replication? does above design you mentioned built on top of Hazelcast? Yes, the plan is to use what Hazelcast provides. Otherwise, we will anyway have to solve all the problems the Hz implementation has solved. --Srinath On Wed, Oct 1, 2014 at 2:18 PM, Pubudu Dissanayake pubu...@wso2.com wrote: Hi All, Based on the Architecture review of Tomcat session replication using caching , following aspects were discussed. Participants - Azeez, Sameera , Aruna, Jayanga, Gayashan, SupunM, Niranjan and Myself Proposed solution. - key-val: (CarbonSessionCacheKey, CarbonSessionCache ) - Initial implementation was based on javax.caching api's. I've created CarbonSessionCache and CarbonSessionCacheKey to maintain HttpSession in the Hazelcast distributed map. Session will be intercepted by using a Tomcat Valve. - *Verdict* on the proposed solution. - Cache map Serialization and Deserialization is very expensive operation due to heavy traffic. Therefore it is not efficient to replicate the whole session object in the cache map. Counter Proposed solution - Having a Hazelcast map per session object. In that way if an attribute in the session changes the whole entry should not have to be replicated, only the changed attribute. - Have a per-session cache - ( session_id ). - Issue in this approach as follows - How can we acquire the session object from the map ? *Final verdict *on the feature implementation - Instead of using the caching APIs, This needs to fix in Hazelcast level and do it in the optimal way. [1] - HazelcastWM http://docs.hazelcast.org/docs/1.9.4/manual/html/ch08.html [2], Bring in the filter code level in to the tomcat valve instead -Pubudu [1] http://hazelcast.com/use-cases/web-session-clustering/ [2] http://docs.hazelcast.org/docs/1.9.4/manual/html/ch08.html On Wed, Oct 1, 2014 at 10:51 AM, Pubudu Dissanayake pubu...@wso2.com wrote: Hi Srinath Hazelcast WM allows us to cluster user http sessions automatically. Followings are required for enabling Hazelcast Session Clustering http://hazelcast.com/use-cases/web-session-clustering/ [2][3] - Target application or web server should support Java 1.5+ - Target application or web server should support Servlet 2.4+ spec - Session objects that needs to be clustered have to be Serializable Purpose of web session clustering is to replicate web session state across a distributed application servers. Benefits, allow us to scale out but also avoid any single point of failure and allow us to dynamically handle node failure within the application tier. performance of this web session clustering is high according to VP Hazelcast https://www.youtube.com/watch?v=8a0LrlOIXq0. Using Hazelcast session replication can be achieved in two different ways. Observations as follows. - *Hazelcast Enterprise* has native web session clustering build in to Apache Tomcat. - *Opensource Hazelcast* has provide a web session clustering as an external filter, basically Hazelcast filter has to be placed before all of other filters and that will enable us to provide the web session clustering in opensource. In this use case it doesn't required changes to application itself. [1] https://redmine.wso2.com/issues/2816 [2] http://hazelcast.com/use-cases/web-session-clustering/ [3] http://hazelcast.org/docs/latest/manual/html/httpsessionclustering.html [4] https://www.youtube.com/watch?v=8a0LrlOIXq0 More info $subject - Web Session Clustering / Session Replication using Hazelcast -Pubudu On Wed, Oct 1, 2014 at 10:41 AM, Srinath Perera srin...@wso2.com wrote: We need to use Hazelcast When implemented we need to test this with multilple nodes (at least 4) and in high load conditions before it is done done. --Srinath On Wed, Oct 1, 2014 at 8:52 AM, Dinesh J Weerakkody dine...@wso2.com wrote: Hi, I came across this project [1] and might be useful. It is based on memcached library.
Re: [Dev] ClassNotFoundException : org.wso2.carbon.student.mgt.GetStudents when creating carbon component.
Hi all, Sorry for the late reply on this. There were 2 issues with what I had done. Issue 1 - ClassNotFoundException : org.wso2.carbon.student.mgt.GetStudents - Was able to get this fixed by removing the version tag of the maven-bundle-plugin plugin. Issue 2 - The name was not shown properly in the side bar of the carbon site. - In components.xml, the end tag of the i18n-bundle element was on another line. This caused the menu item to show as student.menu rather than as Students. Thanks for all the help. Hemika Kodikara Software Engineer WSO2 Inc. lean . enterprise . middleware http://wso2.com Mobile : +9477762 On Thu, Oct 9, 2014 at 12:51 PM, Lahiru Chandima lahi...@wso2.com wrote: Hi Hemika, Expand the deployed student management stub osgi bundle and check whether GetStudents.class class file is in it. Thanks On Thu, Oct 9, 2014 at 12:34 PM, Rajeev Sampath raje...@wso2.com wrote: Hi, Class loading problems occur if multiple osgi bundles contain the same java package (unless they are added as fragment bundles). Check whether the 3 bundles you have added contain a common package. Thanks Rajeev On Thu, Oct 9, 2014 at 12:03 PM, Hemika Kodikara hem...@wso2.com wrote: Hi All, I have been following this tutorial on creating a carbon component [1]. I have created all 3 OSGI bundles and added them to the dropins folder. Once I start the carbon server, I see the component I created as student.menu. But when clicked on it, nothing happens. In the carbon console I see the following error. I have also attached a copy of the tree structure of the org.wso2.carbon.student.mgt.ui project and also the content of the org.wso2.carbon.student.mgt.ui jar file. The error - [2014-10-09 11:21:37,920] ERROR {org.apache.catalina.core.ApplicationDispatcher} - Servlet.service() for servlet bridgeservlet threw exception java.lang.ClassNotFoundException: org.wso2.carbon.student.mgt.GetStudents at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at org.wso2.carbon.student.mgt.stub.StudentManagerStub.toEnvelope(StudentManagerStub.java:461) at org.wso2.carbon.student.mgt.stub.StudentManagerStub.getStudents(StudentManagerStub.java:169) at org.wso2.carbon.student.mgt.ui.StudentManagerClient.getStudents(StudentManagerClient.java:24) at org.apache.jsp.student_002dmgt.index_jsp._jspService(org.apache.jsp.student_002dmgt.index_jsp:77) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155) at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544) at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37) at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:700) at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source) at
Re: [Dev] How do I add listener for Tenant unload event
Hi Bhathiya, Thanks for the help. I wrote a custom observer extending AbstractAxis2ConfigurationContextObserver and overwrite the required method. and register it as a service through BundleActivator.. In OSGI console, it listed in registered Services but it is not invoke when tenant unload. Couldn't find the cause for this. Am I missing something here. Thanks On Sat, Oct 11, 2014 at 10:44 AM, Bhathiya Jayasekara bhath...@wso2.com wrote: Hi Danesh, You can use one of below which are in AbstractAxis2ConfigurationContextObserver, according to your requirement. public void terminatingConfigurationContext(org.apache.axis2.context.ConfigurationContext configCtx) public void terminatedConfigurationContext(org.apache.axis2.context.ConfigurationContext configCtx) You have to extend AbstractAxis2ConfigurationContextObserver and overide one of above methods. Hope this is useful. Thanks, Bhathiya On Sat, Oct 11, 2014 at 9:37 AM, Danesh Kuruppu dan...@wso2.com wrote: HI all, $subject please? Need to listen to tenant unload event. Thanks -- Danesh Kuruppu Software Engineer WSO2 Inc, Mobile: +94 (77) 1690552 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Bhathiya Jayasekara* *Software Engineer,* *WSO2 inc., http://wso2.com http://wso2.com* *Phone: +94715478185 %2B94715478185* *LinkedIn: http://www.linkedin.com/in/bhathiyaj http://www.linkedin.com/in/bhathiyaj* *Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax* *Blog: http://movingaheadblog.blogspot.com http://movingaheadblog.blogspot.com/* -- Danesh Kuruppu Software Engineer WSO2 Inc, Mobile: +94 (77) 1690552 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Issue in adding multiple devices for a user in EMM
Hi Pasanthi, On Mon, Oct 13, 2014 at 12:33 PM, Pasanthi Amarasekera pasan...@wso2.com wrote: Hi Harshan, No I did not get any errors in server but the authentication failed with the agent in the device. And another thing I noticed is, it is not the same EMM server IP I get when I change the network. When the network changes, the server IP will change because the IP assigned to your laptop changes when you connect to another wifi network. Regards, Nira On Mon, Oct 13, 2014 at 1:42 PM, Inosh Perera ino...@wso2.com wrote: Hi Pasanthi, Instead of creating a new user, can you use admin credential and enroll with two devices? This should be possible, and even for a normal user, it should work. What is the exact error shown on the device? Regards, Inosh On Mon, Oct 13, 2014 at 1:32 PM, Harshan Liyanage hars...@wso2.com wrote: Hi Pasanthi, We have not tested such multi-device scenarios in different networks. But it should work fine. However could you please try enrolling a different user enroll multiple devices for that user (in the same network)? Thanks, Best Regards, 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 Mon, Oct 13, 2014 at 12:33 PM, Pasanthi Amarasekera pasan...@wso2.com wrote: Hi Harshan, No I did not get any errors in server but the authentication failed with the agent in the device. And another thing I noticed is, it is not the same EMM server IP I get when I change the network. For example let's say I got PW_1 as password with WiFi_1 for user_1. I can't use this PW_1 to enroll another device for user_1 in WiFi_2. Thank you. Regards, Pasanthi. On Mon, Oct 13, 2014 at 11:54 AM, Harshan Liyanage hars...@wso2.com wrote: Hi Pasanthi, AFAIK there could not be any issue for this scenario. We have tested it. Do you get any errors in server when enrolling the new device to the EMM? Thanks, Best Regards, 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 Mon, Oct 13, 2014 at 10:59 AM, Pasanthi Amarasekera pasan...@wso2.com wrote: On Sun, Oct 12, 2014 at 11:57 PM, Pasanthi Amarasekera pasan...@wso2.com wrote: Hi, Last week I created a user to the EMM running in my localhost and then enrolled an android phone, with the username and the password given in the user enrollment email. Today I tried to add an android tab to the same user with the same username and password. But those credentials didn't work today. What can be the reason for this ? The tab used is a nexus 7 with android 4.4.4 I had to create a new user to add the above mentioned tab to my local EMM. The only difference between the users I created last week and today is, the wifi network. Thank you. Regards, Pasanthi. -- Pasanthi Amarasekera WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: +94 77 9541735 -- Pasanthi Amarasekera WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: +94 77 9541735 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Pasanthi Amarasekera WSO2 Inc: http://wso2.com lean.enterprise.middleware Mobile: +94 77 9541735 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Niranjan Karunanandham* Senior Software Engineer - WSO2 Inc. WSO2 Inc.: http://www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Tomcat Session Replication Using Caching
Is a Hazelcast cluster created per webapp, or is a single cluster shared across all webapps? Why did you drop the idea of using a SessionListener SessionManager? On Mon, Oct 13, 2014 at 7:57 PM, Pubudu Dissanayake pubu...@wso2.com wrote: Hi Azeez/Srinath I've managed to implement Tomcat Session replication using Hazelcast APIs. As per the off-line chats with Azeez and Sameera,This functionality is applicable to all web applications which are deploy in WSO2 AS. I've introduced a global web filter, which is define in the web.xml in the conf/ directory of Tomcat to have it included in all web applications deployed. As a result I've managed to replicate all the session attributes per web application. Furthermore I've tested basic auth webapp which works as expected. And I wrote a jmeter script to test session.setAttribute() by inserting 100+ records. Please advice as to how should I thoroughly test this feature. -Pubudu On Thu, Oct 2, 2014 at 11:40 AM, Afkham Azeez az...@wso2.com wrote: On Thu, Oct 2, 2014 at 9:22 AM, Srinath Perera srin...@wso2.com wrote: I am not sure from notes what we decided. Cannot we just used hazelcast session replication? does above design you mentioned built on top of Hazelcast? Yes, the plan is to use what Hazelcast provides. Otherwise, we will anyway have to solve all the problems the Hz implementation has solved. --Srinath On Wed, Oct 1, 2014 at 2:18 PM, Pubudu Dissanayake pubu...@wso2.com wrote: Hi All, Based on the Architecture review of Tomcat session replication using caching , following aspects were discussed. Participants - Azeez, Sameera , Aruna, Jayanga, Gayashan, SupunM, Niranjan and Myself Proposed solution. - key-val: (CarbonSessionCacheKey, Carbon SessionCache) - Initial implementation was based on javax.caching api's. I've created CarbonSessionCache and CarbonSessionCacheKey to maintain HttpSession in the Hazelcast distributed map. Session will be intercepted by using a Tomcat Valve. - *Verdict* on the proposed solution. - Cache map Serialization and Deserialization is very expensive operation due to heavy traffic. Therefore it is not efficient to replicate the whole session object in the cache map. Counter Proposed solution - Having a Hazelcast map per session object. In that way if an attribute in the session changes the whole entry should not have to be replicated, only the changed attribute. - Have a per-session cache - ( session_id ). - Issue in this approach as follows - How can we acquire the session object from the map ? *Final verdict *on the feature implementation - Instead of using the caching APIs, This needs to fix in Hazelcast level and do it in the optimal way. [1] - HazelcastWM http://docs.hazelcast.org/docs/1.9.4/manual/html/ch08.html [2], Bring in the filter code level in to the tomcat valve instead -Pubudu [1] http://hazelcast.com/use-cases/web-session-clustering/ [2] http://docs.hazelcast.org/docs/1.9.4/manual/html/ch08.html On Wed, Oct 1, 2014 at 10:51 AM, Pubudu Dissanayake pubu...@wso2.com wrote: Hi Srinath Hazelcast WM allows us to cluster user http sessions automatically. Followings are required for enabling Hazelcast Session Clustering http://hazelcast.com/use-cases/web-session-clustering/ [2][3] - Target application or web server should support Java 1.5+ - Target application or web server should support Servlet 2.4+ spec - Session objects that needs to be clustered have to be Serializable Purpose of web session clustering is to replicate web session state across a distributed application servers. Benefits, allow us to scale out but also avoid any single point of failure and allow us to dynamically handle node failure within the application tier. performance of this web session clustering is high according to VP Hazelcast https://www.youtube.com/watch?v=8a0LrlOIXq0. Using Hazelcast session replication can be achieved in two different ways. Observations as follows. - *Hazelcast Enterprise* has native web session clustering build in to Apache Tomcat. - *Opensource Hazelcast* has provide a web session clustering as an external filter, basically Hazelcast filter has to be placed before all of other filters and that will enable us to provide the web session clustering in opensource. In this use case it doesn't required changes to application itself. [1] https://redmine.wso2.com/issues/2816 [2] http://hazelcast.com/use-cases/web-session-clustering/ [3] http://hazelcast.org/docs/latest/manual/html/httpsessionclustering.html [4] https://www.youtube.com/watch?v=8a0LrlOIXq0 More info $subject - Web Session Clustering / Session Replication using Hazelcast -Pubudu On Wed, Oct 1, 2014 at 10:41 AM, Srinath Perera srin...@wso2.com wrote: We need to use Hazelcast When implemented we need to test this with multilple
Re: [Dev] error in setup BAM server in API cluster setup
Hi, On Mon, Oct 13, 2014 at 6:15 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.com wrote: Dear Gihan, Yes I used figures displayed in my BAM log. Can you please tell me is there a specific server that I should put these configurations. Because I am trying to add BAM in a clustered setup. My followed document says just api_home and so on. So what should I change or both. For now I did same configuration in both four components(Gateway,keymanager,publisher and store). You need to configure usage tracking only in APIM-Gateway nodes. Please make sure APIM-Gateway nodes have the access to above BAM thrift server ports(telnet from gateway nodes to make sure). Regards, Akila *From:* Gihan Anuruddha [mailto:gi...@wso2.com] *Sent:* 13 October 2014 5:50 PM *To:* Akila Nimantha [IT/EKO/LOITS] *Cc:* dev@wso2.org *Subject:* Re: [Dev] error in setup BAM server in API cluster setup Hi Akila, During the BAM server startup, it will show a message like below. Please use that IP address to connect to BAM. [2014-10-13 14:51:17,448] INFO {org.wso2.carbon.databridge.receiver. thrift.internal.ThriftDataReceiver} - Thrift Server started at 0.0.0.0 [2014-10-13 14:51:17,453] INFO {org.wso2.carbon.databridge.receiver. thrift.internal.ThriftDataReceiver} - Thrift SSL port : 7711 [2014-10-13 14:51:17,456] INFO {org.wso2.carbon.databridge.receiver. thrift.internal.ThriftDataReceiver} - Thrift port : 7611 Regards, Gihan On Mon, Oct 13, 2014 at 5:46 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.com wrote: Hi harsha, Yes ip is correct .i put port as 7617 because I used 6 as BAM offset. please check below for apiusagetracking element details, APIUsageTracking Enabledtrue/Enabled PublisherClassorg.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher/PublisherClass ThriftPort7617/ThriftPort BAMServerURLtcp://172.20.2.150:7617//BAMServerURL BAMUsernameadmin/BAMUsername BAMPasswordadmin/BAMPassword DataSourceNamejdbc/WSO2AM_STATS_DB/DataSourceName /APIUsageTracking Regards, Akila *From:* Harsha Kumara [mailto:hars...@wso2.com] *Sent:* 13 October 2014 4:46 PM *To:* Akila Nimantha [IT/EKO/LOITS] *Cc:* dev@wso2.org *Subject:* Re: [Dev] error in setup BAM server in API cluster setup Hi Akila, Seems like it's a connection issue. Have you specified correct IPs and ports in the configurations. Thanks, Harsha On Mon, Oct 13, 2014 at 4:08 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.com wrote: Hi all, I am trying add BAM server( https://docs.wso2.com/display/AM170/Publishing+API+Runtime+Statistics) in API manager Cluster setup( https://docs.wso2.com/display/CLUSTER420/Clustering+API+Manager). I just trying with default H2 database configurations and I get following error. org.wso2.carbon.databridge.agent.thrift.exception.AgentException: Cannot borrow client for TCP,172.20.2.150:7617,TCP,172.20.2.150:7717 at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:58) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.start(DataPublisher.java:273) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.init(DataPublisher.java:161) at org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$ReceiverConnectionWorker.run(AsyncDataPublisher.java:787) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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.apache.thrift.transport.TTransportException: Could not connect to 172.20.2.150 on port 7717 at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:212) at org.apache.thrift.transport.TSSLTransportFactory.getClientSocket(TSSLTransportFactory.java:166) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:90) at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:48) at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212) at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:50) ... 8 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at
Re: [Dev] [WSO2MB] Cannot start User Manager Core bundle error on server startup
Hi All, The dependency fixes of andes compoenent is submitted through https://github.com/wso2-dev/andes/pull/95 . I have tested with these fixes locally and it works as expected. @PrabhathA : The following patches should be committed respectively to orbit and storage-management repos. I also noted that cassandra-driver-1.2.13.wso2v4 uses version 1.2.13.wso2v3 as a dependency. This i think causes two cassandra driver versions to exist at the final MB pack. Should we fix this ? @MB Team : We also need to remove any and all links of cassandra server feature from MB for refactoring purposes. I will work on this as time permits. Thanks On Mon, Oct 13, 2014 at 11:29 AM, Hasitha Amal De Silva hasit...@wso2.com wrote: Hi all, In terms of the andes component, we need to upgrade the guava dependencies to 14 from version 13 and verify. I'm working on this. On Mon, Oct 13, 2014 at 11:19 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Ramith/MB team, This is all fixed. Let me know if you guys happen to run into any other problem further to this. Cheers, Prabath On Tue, Oct 7, 2014 at 11:41 AM, Prabath Abeysekera praba...@wso2.com wrote: To give you guys an update on what's been done so far, I've managed to make both Cassandra as well as CQL Driver use the same guava version (14.0.1) exposed by the platform and fix all the issues reported in the thread. However, now I've come across another problem where Andes is unable to get the datasources that are being used for all its internal functionalities, bound to its data access layer due to a problem in the dependency initialisation order. To be more concrete on the issue, Cassandra server initialisation doesn't seem to happen before the data sources are registered. This in turn results in Andes not picking up the appropriate data sources to be able to access Cassandra forcing MB to fail at the server start-up. I already am working on a resolution, will update the thread as soon as this is fixed. Cheers, Prabath On Sat, Oct 4, 2014 at 1:09 PM, Ramith Jayasinghe ram...@wso2.com wrote: Hi Prabath, This has become a blocker for the MB v 3.0.0 M1. (Since Dhanuka might be travelling) Shall we have a look on how to fix this on Monday? regards Ramith. On Fri, Oct 3, 2014 at 10:52 PM, Dhanuka Ranasinghe dhan...@wso2.com wrote: Hi Sameera, The reason for embed third party libraries is osgi cyclic dependency issue. This has been discussed long time back with Kishanthan and you. Cheers, Dhanuka *Dhanuka Ranasinghe* Senior Software Engineer WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 715381915 On Fri, Oct 3, 2014 at 10:11 PM, Sameera Jayasoma same...@wso2.com wrote: Hi Dhanuka, I noticed few issues in pom.xml of this orbit bundle. 1) Import package section is empty. Please the put correct import package list. 2) Optional=true is missing from some of the dependencies. 3) Following third-party libraries have been embedded inside this orbit bundle netty metrics-core guava jackson-core-as |jackson-mapper-asl slf4j-api slf4j-log4j12 *apache-cassandra* libthrift; 4) Size of this bundle is around 8.5 MB and all the above embedded dependencies has contributed to this size. I know there exists orbit bundles with such issues, but we've started this effort recently to verify all the new orbit bundles before publishing them to nexus repository. I am rejecting this pull request. Please fix these issues and send the PR again. Thanks, Sameera. On Fri, Oct 3, 2014 at 9:37 PM, Dhanuka Ranasinghe dhan...@wso2.com wrote: Hi, I don't have permission to merge below pull request, I guess some one who has permission would need to attend this. https://github.com/wso2/orbit/pull/26 Cheers, Dhanuka *Dhanuka Ranasinghe* Senior Software Engineer WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 715381915 On Fri, Oct 3, 2014 at 6:31 PM, Harsha Kumara hars...@wso2.com wrote: Adding Maheshika. On Fri, Oct 3, 2014 at 6:23 PM, Asanka Abeyweera asank...@wso2.com wrote: Hi all, I created a pull request [1] in wso2/orbit removing the parent pom reference in cql-driver bundle. Can we release this as cql-driver-1.0.5.wso2v2 in wso2/orbit? [1] https://github.com/wso2/orbit/pull/26 On Fri, Oct 3, 2014 at 6:17 PM, Asitha Nanayakkara asi...@wso2.com wrote: Hi everyone, Since the issue is a blocker for us we are making the versions consistent throughout the platform by using the existing cql-driver. Changes needed in carbon-storage-management is complete. @PrabathA: Please review and merge the pull request https://github.com/wso2-dev/carbon-storage-management/pull/48 Thank you. On Thu, Oct 2, 2014 at 7:37 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Everyone, AsankaAB and Asitha have finally found the root cause of this issue. Excellent stuff guys! It appears as if a few different versions of
Re: [Dev] Tomcat Session Replication Using Caching
I haven't drop the idea of using HttpSessionManager but what i thought was to evaluate how extent we can use this feature as a global web filter and HttpSessionListener is already placed in the global filter. In the current implementation Hazelcast creates a cluster per webapp, but I'm in progress of make it a single cluster shared across all webapps. On Mon, Oct 13, 2014 at 10:21 PM, Afkham Azeez az...@wso2.com wrote: Is a Hazelcast cluster created per webapp, or is a single cluster shared across all webapps? Why did you drop the idea of using a SessionListener SessionManager? On Mon, Oct 13, 2014 at 7:57 PM, Pubudu Dissanayake pubu...@wso2.com wrote: Hi Azeez/Srinath I've managed to implement Tomcat Session replication using Hazelcast APIs. As per the off-line chats with Azeez and Sameera,This functionality is applicable to all web applications which are deploy in WSO2 AS. I've introduced a global web filter, which is define in the web.xml in the conf/ directory of Tomcat to have it included in all web applications deployed. As a result I've managed to replicate all the session attributes per web application. Furthermore I've tested basic auth webapp which works as expected. And I wrote a jmeter script to test session.setAttribute() by inserting 100+ records. Please advice as to how should I thoroughly test this feature. -Pubudu On Thu, Oct 2, 2014 at 11:40 AM, Afkham Azeez az...@wso2.com wrote: On Thu, Oct 2, 2014 at 9:22 AM, Srinath Perera srin...@wso2.com wrote: I am not sure from notes what we decided. Cannot we just used hazelcast session replication? does above design you mentioned built on top of Hazelcast? Yes, the plan is to use what Hazelcast provides. Otherwise, we will anyway have to solve all the problems the Hz implementation has solved. --Srinath On Wed, Oct 1, 2014 at 2:18 PM, Pubudu Dissanayake pubu...@wso2.com wrote: Hi All, Based on the Architecture review of Tomcat session replication using caching , following aspects were discussed. Participants - Azeez, Sameera , Aruna, Jayanga, Gayashan, SupunM, Niranjan and Myself Proposed solution. - key-val: (CarbonSessionCacheKey, Carbon SessionCache) - Initial implementation was based on javax.caching api's. I've created CarbonSessionCache and CarbonSessionCacheKey to maintain HttpSession in the Hazelcast distributed map. Session will be intercepted by using a Tomcat Valve. - *Verdict* on the proposed solution. - Cache map Serialization and Deserialization is very expensive operation due to heavy traffic. Therefore it is not efficient to replicate the whole session object in the cache map. Counter Proposed solution - Having a Hazelcast map per session object. In that way if an attribute in the session changes the whole entry should not have to be replicated, only the changed attribute. - Have a per-session cache - ( session_id ). - Issue in this approach as follows - How can we acquire the session object from the map ? *Final verdict *on the feature implementation - Instead of using the caching APIs, This needs to fix in Hazelcast level and do it in the optimal way. [1] - HazelcastWM http://docs.hazelcast.org/docs/1.9.4/manual/html/ch08.html [2], Bring in the filter code level in to the tomcat valve instead -Pubudu [1] http://hazelcast.com/use-cases/web-session-clustering/ [2] http://docs.hazelcast.org/docs/1.9.4/manual/html/ch08.html On Wed, Oct 1, 2014 at 10:51 AM, Pubudu Dissanayake pubu...@wso2.com wrote: Hi Srinath Hazelcast WM allows us to cluster user http sessions automatically. Followings are required for enabling Hazelcast Session Clustering http://hazelcast.com/use-cases/web-session-clustering/ [2][3] - Target application or web server should support Java 1.5+ - Target application or web server should support Servlet 2.4+ spec - Session objects that needs to be clustered have to be Serializable Purpose of web session clustering is to replicate web session state across a distributed application servers. Benefits, allow us to scale out but also avoid any single point of failure and allow us to dynamically handle node failure within the application tier. performance of this web session clustering is high according to VP Hazelcast https://www.youtube.com/watch?v=8a0LrlOIXq0. Using Hazelcast session replication can be achieved in two different ways. Observations as follows. - *Hazelcast Enterprise* has native web session clustering build in to Apache Tomcat. - *Opensource Hazelcast* has provide a web session clustering as an external filter, basically Hazelcast filter has to be placed before all of other filters and that will enable us to provide the web session clustering in opensource. In this use case it doesn't required changes to application itself. [1] https://redmine.wso2.com/issues/2816 [2]
[Dev] Update: iPaaS New Theme
Hi Team Theming for both ES (90%) and Recipe-App (50%) are completed. Planning to push my changes in to the GIT today. Will be having a chat with Senduran in the morning to get an idea on how the recipe app is structured, so can continue theming the remaining stuff. Thanks regards -- Dhanuka De Silva m: +94 773 887816 e: dhanu...@wso2.com w: http://www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Restart test server in Integration Tests
want sent before the completion :) continue I can change the configs and restart the server as follows, ServerConfigurationManager serverManager = new ServerConfigurationManager(automationContext); serverManager.applyConfiguration(new File(FrameworkPathUtil.getSystemResourceLocation() + File.separator + artifacts + File.separator + mb + File.separator + config + File.separator + advanced + File.separator + andes-virtualhosts-H2-mem.xml), new File(ServerConfigurationManager.getCarbonHome() + File.separator + repository + File.separator + conf + File.separator + advanced + File.separator + andes-virtualhosts.xml), true, true); But this doesn't seem to restart the server which was started by the test automation. Any ideas how I can achieve this. Thanks in advance, On Tue, Oct 14, 2014 at 8:24 AM, Darshana Akalanka Pagoda Arachchi darsha...@wso2.com wrote: Hi devs, I want to restart the WSO2 server which was started in the beginning of the Integration Test Run phase. I want to do this because I want to run all the tests cases again for different configurations. I was able to get all the tests run again with by creating a new test suit xml with same test cases. However, I am not able to get the server restarted with different configurations. serverManager1.applyConfiguration(new File(FrameworkPathUtil.getSystemResourceLocation() + File.separator + artifacts + File.separator + mb + File.separator + config + File.separator + advanced + File.separator + andes-virtualhosts-H2-mem.xml), new File(ServerConfigurationManager.getCarbonHome() + File.separator + repository + File.separator + conf + File.separator + advanced + File.separator + andes-virtualhosts.xml), true, true); -- *Darshana Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791* -- *Darshana Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [WSO2MB] Cannot start User Manager Core bundle error on server startup
Hi Harsha, On Tue, Oct 14, 2014 at 12:05 AM, Hasitha Amal De Silva hasit...@wso2.com wrote: Hi All, The dependency fixes of andes compoenent is submitted through https://github.com/wso2-dev/andes/pull/95 . I have tested with these fixes locally and it works as expected. @PrabhathA : The following patches should be committed respectively to orbit and storage-management repos. I also noted that cassandra-driver-1.2.13.wso2v4 uses version 1.2.13.wso2v3 as a dependency. This i think causes two cassandra driver versions to exist at the final MB pack. Should we fix this ? Would you be able to look into this? Cheers, Prabath @MB Team : We also need to remove any and all links of cassandra server feature from MB for refactoring purposes. I will work on this as time permits. Thanks On Mon, Oct 13, 2014 at 11:29 AM, Hasitha Amal De Silva hasit...@wso2.com wrote: Hi all, In terms of the andes component, we need to upgrade the guava dependencies to 14 from version 13 and verify. I'm working on this. On Mon, Oct 13, 2014 at 11:19 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Ramith/MB team, This is all fixed. Let me know if you guys happen to run into any other problem further to this. Cheers, Prabath On Tue, Oct 7, 2014 at 11:41 AM, Prabath Abeysekera praba...@wso2.com wrote: To give you guys an update on what's been done so far, I've managed to make both Cassandra as well as CQL Driver use the same guava version (14.0.1) exposed by the platform and fix all the issues reported in the thread. However, now I've come across another problem where Andes is unable to get the datasources that are being used for all its internal functionalities, bound to its data access layer due to a problem in the dependency initialisation order. To be more concrete on the issue, Cassandra server initialisation doesn't seem to happen before the data sources are registered. This in turn results in Andes not picking up the appropriate data sources to be able to access Cassandra forcing MB to fail at the server start-up. I already am working on a resolution, will update the thread as soon as this is fixed. Cheers, Prabath On Sat, Oct 4, 2014 at 1:09 PM, Ramith Jayasinghe ram...@wso2.com wrote: Hi Prabath, This has become a blocker for the MB v 3.0.0 M1. (Since Dhanuka might be travelling) Shall we have a look on how to fix this on Monday? regards Ramith. On Fri, Oct 3, 2014 at 10:52 PM, Dhanuka Ranasinghe dhan...@wso2.com wrote: Hi Sameera, The reason for embed third party libraries is osgi cyclic dependency issue. This has been discussed long time back with Kishanthan and you. Cheers, Dhanuka *Dhanuka Ranasinghe* Senior Software Engineer WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 715381915 On Fri, Oct 3, 2014 at 10:11 PM, Sameera Jayasoma same...@wso2.com wrote: Hi Dhanuka, I noticed few issues in pom.xml of this orbit bundle. 1) Import package section is empty. Please the put correct import package list. 2) Optional=true is missing from some of the dependencies. 3) Following third-party libraries have been embedded inside this orbit bundle netty metrics-core guava jackson-core-as |jackson-mapper-asl slf4j-api slf4j-log4j12 *apache-cassandra* libthrift; 4) Size of this bundle is around 8.5 MB and all the above embedded dependencies has contributed to this size. I know there exists orbit bundles with such issues, but we've started this effort recently to verify all the new orbit bundles before publishing them to nexus repository. I am rejecting this pull request. Please fix these issues and send the PR again. Thanks, Sameera. On Fri, Oct 3, 2014 at 9:37 PM, Dhanuka Ranasinghe dhan...@wso2.com wrote: Hi, I don't have permission to merge below pull request, I guess some one who has permission would need to attend this. https://github.com/wso2/orbit/pull/26 Cheers, Dhanuka *Dhanuka Ranasinghe* Senior Software Engineer WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 715381915 On Fri, Oct 3, 2014 at 6:31 PM, Harsha Kumara hars...@wso2.com wrote: Adding Maheshika. On Fri, Oct 3, 2014 at 6:23 PM, Asanka Abeyweera asank...@wso2.com wrote: Hi all, I created a pull request [1] in wso2/orbit removing the parent pom reference in cql-driver bundle. Can we release this as cql-driver-1.0.5.wso2v2 in wso2/orbit? [1] https://github.com/wso2/orbit/pull/26 On Fri, Oct 3, 2014 at 6:17 PM, Asitha Nanayakkara asi...@wso2.com wrote: Hi everyone, Since the issue is a blocker for us we are making the versions consistent throughout the platform by using the existing cql-driver. Changes needed in carbon-storage-management is complete. @PrabathA: Please review and merge the pull request https://github.com/wso2-dev/carbon-storage-management/pull/48 Thank you. On Thu, Oct 2, 2014 at 7:37 AM, Prabath Abeysekera
Re: [Dev] Add Cassandra 1.2.13.wso2v4 into Orbit repository
As it appears, 1.2.13.wso2v3 version of apache-cassandra-thrift dependency, which is something that Cassandra depends on, is not properly uploaded to the proper wso2-managed public repositories for some reason, causing the build to fail. Will fix this and let you know. Cheers, Prabath On Mon, Oct 13, 2014 at 12:06 PM, Prabath Abeysekera praba...@wso2.com wrote: Let me check on this and get back to you. Cheers, Prabath On Mon, Oct 13, 2014 at 12:05 PM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Prabath Release of cassandra-driver/1.0.5.wso2v was success. However the following error occurred while trying to release cassandra/1.2.13wso2v4; [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 1.177s [INFO] Finished at: Mon Oct 13 06:32:16 UTC 2014 [INFO] Final Memory: 7M/224M [INFO] [ERROR] Failed to execute goal on project apache-cassandra: Could not resolve dependencies for project org.apache.cassandra.wso2:apache-cassandra:bundle:1.2.13.wso2v4: The following artifacts could not be resolved: org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3, org.apache.cassandra:apache-cassandra-thrift:jar:1.2.13-wso2v3: Failure to find org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3 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 - [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project apache-cassandra: Could not resolve dependencies for project org.apache.cassandra.wso2:apache-cassandra:bundle:1.2.13.wso2v4: The following artifacts could not be resolved: org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3, org.apache.cassandra:apache-cassandra-thrift:jar:1.2.13-wso2v3: Failure to find org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3 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.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.apache.cassandra.wso2:apache-cassandra:bundle:1.2.13.wso2v4: The following artifacts could not be resolved: org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3, org.apache.cassandra:apache-cassandra-thrift:jar:1.2.13-wso2v3: Failure to find org.apache.cassandra:apache-cassandra:jar:1.2.13-wso2v3 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
Re: [Dev] Backup Hive queries on BAM
Hi Gihan, I have written a quite a lot of Hive queries to summaries data. This is regarding the EMM and BAM integration I discussed offline earlier. Isn't it possible to backup/restore these registry values? Regards, Inosh On Mon, Oct 13, 2014 at 5:46 PM, Gihan Anuruddha gi...@wso2.com wrote: Hi Inosh, All the hive scripts are saved in the registry under /_system/config/repository/hive/scripts location. At the moment we don't provide backup/restore functionality. What is your use case? Regards, Gihan On Mon, Oct 13, 2014 at 5:34 PM, Inosh Perera ino...@wso2.com wrote: Hi all, Is there a way to backup/restore the Hive queries(Analytics) you write on BAM. Where are these queries stored? Regards, Inosh -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 -- W.G. Gihan Anuruddha Senior Software Engineer | WSO2, Inc. M: +94772272595 -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] e4x issue - https://wso2.org/jira/browse/WSAS-1819
Ruchira and the team, Can you have a look at this issue? Thanks, Sameera. On Mon, Oct 13, 2014 at 6:16 PM, Karol Brejna karol.bre...@gmail.com wrote: Dear Sameera, Have you got some time to look into the issue? I am writing an article about WSO2 Application Server and got stuck in this. (I wanted to show simple jar service, simple mashup service, etc.) Maybe I am doing something wrong? Or is there a simple workaround? Regards, Karol -- Sameera Jayasoma, Software Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Mobile: 0094776364456 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Carbon] Cloud Tenant deletion-Carbon core patches
Tenant deletion implementation shouldn't be in the Kernel, only the APIs. You can check the carbon-multitenancy git repository for such implementations. We need to this soon. Thanks, Sameera. On Mon, Oct 13, 2014 at 7:44 PM, Amila Maha Arachchi ami...@wso2.com wrote: Thanks. Just wanted to make sure we don't drop the ball on this. If we miss adding this to 4.3.0 we loose a huge opportunity to support tenant deletion in our platform. On Mon, Oct 13, 2014 at 7:27 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi Amila, I discussed offline with the carbon team on this will send the pull request by tomorrow, since have to apply all the code changes which done in local SVN to Git. Thanks Godwin On Mon, Oct 13, 2014 at 7:21 PM, Amila Maha Arachchi ami...@wso2.com wrote: Hi Godwin, Were you able to provide the pull requests as requested by Sameera. We need to get them pushed to 4.3.0 kernel release. Regards, Amila. On Fri, Oct 3, 2014 at 12:00 PM, Sameera Jayasoma same...@wso2.com wrote: Hi Amila, Can we get the necessary pull request for this feature? Please fork the wso2/carbon4-kernel repo and create pull requests? Thanks, Sameera. On Thu, Oct 2, 2014 at 11:09 PM, Amila Maha Arachchi ami...@wso2.com wrote: Sameera, We need this to be committed to 4.3.0 Kernel so that any product release which goes with 4.3.0 can support tenant deletion. Godwin et al can send pull requests. If you need lets have a chat about this before that. Regards, Amila. On Thu, Oct 2, 2014 at 7:23 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi, We did Cloud Tenant Deletion as the training project. Out of all patches there are three patches related to Carbon core as mentioned below. 1. *javax.cache * We added a method to *CacheManagerFactoryImpl *class which delete the global cache for a specific tenant. public void removeTenant(String tenantDomain) { globalCacheManagerMap.remove(tenantDomain); } 2. *org.wso2.carbon.user.api* Added a method to *TenantManager *interface which allow only delete the tenantmanager cache other than persistent storage. public void deleteTenant(int tenantId, boolean removeFromPersistentStorage)throws UserStoreException; 2. *org.wso2.carbon.user.core* Implemented above deleteTenant method in JDBCTenantManager. Please give a feedback on this how we can add this to next carbon release. Thanks Godwin -- *Godwin Amila Shrimal* Senior Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94772264165* linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D* twitter: https://twitter.com/godwinamila -- *Amila Maharachchi* Senior Technical Lead WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446 -- Sameera Jayasoma, Software Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Mobile: 0094776364456 Lean . Enterprise . Middleware -- *Amila Maharachchi* Senior Technical Lead WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446 -- *Godwin Amila Shrimal* Senior Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94772264165* linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D* twitter: https://twitter.com/godwinamila -- *Amila Maharachchi* Senior Technical Lead WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446 -- Sameera Jayasoma, Software Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Mobile: 0094776364456 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Backup Hive queries on BAM
Hi Inosh, One thing you can do is, you can create a bam toolbox project. In the toolbox you can include your hive queries(and stream definition, dashboard). Then you can simply use this toolbox to install your hive queries in any BAM inctance. On Tuesday, October 14, 2014, Inosh Perera ino...@wso2.com wrote: Hi Gihan, I have written a quite a lot of Hive queries to summaries data. This is regarding the EMM and BAM integration I discussed offline earlier. Isn't it possible to backup/restore these registry values? Regards, Inosh On Mon, Oct 13, 2014 at 5:46 PM, Gihan Anuruddha gi...@wso2.com javascript:_e(%7B%7D,'cvml','gi...@wso2.com'); wrote: Hi Inosh, All the hive scripts are saved in the registry under /_system/config/repository/hive/scripts location. At the moment we don't provide backup/restore functionality. What is your use case? Regards, Gihan On Mon, Oct 13, 2014 at 5:34 PM, Inosh Perera ino...@wso2.com javascript:_e(%7B%7D,'cvml','ino...@wso2.com'); wrote: Hi all, Is there a way to backup/restore the Hive queries(Analytics) you write on BAM. Where are these queries stored? Regards, Inosh -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 -- W.G. Gihan Anuruddha Senior Software Engineer | WSO2, Inc. M: +94772272595 -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 -- Regards, Inosh Goonewardena Associate Technical Lead- WSO2 Inc. Mobile: +94779966317 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Restart test server in Integration Tests
Hi Darshana, You can do this by referring following sample code segment. This will restart the server after copying out particular resources to lib directory. private ServerConfigurationManager serverConfigurationManager; init(); serverConfigurationManager=new ServerConfigurationManager(context); serverConfigurationManager.copyToComponentLib (new File(getClass().getResource(JAR_LOCATION + File.separator + CLASS_JAR_THREE_PROPERTIES).toURI())); serverConfigurationManager.restartGracefully(); Thank you, Dharshana. On Tue, Oct 14, 2014 at 8:27 AM, Darshana Akalanka Pagoda Arachchi darsha...@wso2.com wrote: want sent before the completion :) continue I can change the configs and restart the server as follows, ServerConfigurationManager serverManager = new ServerConfigurationManager(automationContext); serverManager.applyConfiguration(new File(FrameworkPathUtil.getSystemResourceLocation() + File.separator + artifacts + File.separator + mb + File.separator + config + File.separator + advanced + File.separator + andes-virtualhosts-H2-mem.xml), new File(ServerConfigurationManager.getCarbonHome() + File.separator + repository + File.separator + conf + File.separator + advanced + File.separator + andes-virtualhosts.xml), true, true); But this doesn't seem to restart the server which was started by the test automation. Any ideas how I can achieve this. Thanks in advance, On Tue, Oct 14, 2014 at 8:24 AM, Darshana Akalanka Pagoda Arachchi darsha...@wso2.com wrote: Hi devs, I want to restart the WSO2 server which was started in the beginning of the Integration Test Run phase. I want to do this because I want to run all the tests cases again for different configurations. I was able to get all the tests run again with by creating a new test suit xml with same test cases. However, I am not able to get the server restarted with different configurations. serverManager1.applyConfiguration(new File(FrameworkPathUtil.getSystemResourceLocation() + File.separator + artifacts + File.separator + mb + File.separator + config + File.separator + advanced + File.separator + andes-virtualhosts-H2-mem.xml), new File(ServerConfigurationManager.getCarbonHome() + File.separator + repository + File.separator + conf + File.separator + advanced + File.separator + andes-virtualhosts.xml), true, true); -- *Darshana Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791 078-4721791* -- *Darshana Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791 078-4721791* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dharshana Warusavitharana Senior Software Engineer , Test Automation WSO2 Inc. http://wso2.com email : dharsha...@wso2.com dharsha...@wso2.com Tel : +94 11 214 5345 Fax :+94 11 2145300 cell : +94770342233 blog : http://dharshanaw.blogspot.com lean . enterprise . middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Restart test server in Integration Tests
Hi Dharshana, Thank you for the reply. What you have suggested does restart the server and gets the job done. On further analysis, I was able to use the applyConfiguration method too, to restart the server. As the javadocs suggest public void applyConfiguration(java.io.File sourceFile, java.io.File targetFile, boolean backupConfigFile, boolean restartServer) throws java.lang.Exception the last argument does restart the server. However, I was setting the wrong automation contexts. I fixed it as follows, automationContext = new AutomationContext(MB, TestUserMode.SUPER_TENANT_USER); Thanks, -- *Darshana Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How do I add listener for Tenant unload event
Hi Bhathiya, error was in service registration. now works fine. Thanks On Mon, Oct 13, 2014 at 9:56 PM, Danesh Kuruppu dan...@wso2.com wrote: Hi Bhathiya, Thanks for the help. I wrote a custom observer extending AbstractAxis2ConfigurationContextObserver and overwrite the required method. and register it as a service through BundleActivator.. In OSGI console, it listed in registered Services but it is not invoke when tenant unload. Couldn't find the cause for this. Am I missing something here. Thanks On Sat, Oct 11, 2014 at 10:44 AM, Bhathiya Jayasekara bhath...@wso2.com wrote: Hi Danesh, You can use one of below which are in AbstractAxis2ConfigurationContextObserver, according to your requirement. public void terminatingConfigurationContext(org.apache.axis2.context.ConfigurationContext configCtx) public void terminatedConfigurationContext(org.apache.axis2.context.ConfigurationContext configCtx) You have to extend AbstractAxis2ConfigurationContextObserver and overide one of above methods. Hope this is useful. Thanks, Bhathiya On Sat, Oct 11, 2014 at 9:37 AM, Danesh Kuruppu dan...@wso2.com wrote: HI all, $subject please? Need to listen to tenant unload event. Thanks -- Danesh Kuruppu Software Engineer WSO2 Inc, Mobile: +94 (77) 1690552 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Bhathiya Jayasekara* *Software Engineer,* *WSO2 inc., http://wso2.com http://wso2.com* *Phone: +94715478185 %2B94715478185* *LinkedIn: http://www.linkedin.com/in/bhathiyaj http://www.linkedin.com/in/bhathiyaj* *Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax* *Blog: http://movingaheadblog.blogspot.com http://movingaheadblog.blogspot.com/* -- Danesh Kuruppu Software Engineer WSO2 Inc, Mobile: +94 (77) 1690552 -- Danesh Kuruppu Software Engineer WSO2 Inc, Mobile: +94 (77) 1690552 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [WSO2MB] Cannot start User Manager Core bundle error on server startup
Hi Prabath, Sure I'll check this. Thanks, Harsha On Tue, Oct 14, 2014 at 8:32 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Harsha, On Tue, Oct 14, 2014 at 12:05 AM, Hasitha Amal De Silva hasit...@wso2.com wrote: Hi All, The dependency fixes of andes compoenent is submitted through https://github.com/wso2-dev/andes/pull/95 . I have tested with these fixes locally and it works as expected. @PrabhathA : The following patches should be committed respectively to orbit and storage-management repos. I also noted that cassandra-driver-1.2.13.wso2v4 uses version 1.2.13.wso2v3 as a dependency. This i think causes two cassandra driver versions to exist at the final MB pack. Should we fix this ? Would you be able to look into this? Cheers, Prabath @MB Team : We also need to remove any and all links of cassandra server feature from MB for refactoring purposes. I will work on this as time permits. Thanks On Mon, Oct 13, 2014 at 11:29 AM, Hasitha Amal De Silva hasit...@wso2.com wrote: Hi all, In terms of the andes component, we need to upgrade the guava dependencies to 14 from version 13 and verify. I'm working on this. On Mon, Oct 13, 2014 at 11:19 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Ramith/MB team, This is all fixed. Let me know if you guys happen to run into any other problem further to this. Cheers, Prabath On Tue, Oct 7, 2014 at 11:41 AM, Prabath Abeysekera praba...@wso2.com wrote: To give you guys an update on what's been done so far, I've managed to make both Cassandra as well as CQL Driver use the same guava version (14.0.1) exposed by the platform and fix all the issues reported in the thread. However, now I've come across another problem where Andes is unable to get the datasources that are being used for all its internal functionalities, bound to its data access layer due to a problem in the dependency initialisation order. To be more concrete on the issue, Cassandra server initialisation doesn't seem to happen before the data sources are registered. This in turn results in Andes not picking up the appropriate data sources to be able to access Cassandra forcing MB to fail at the server start-up. I already am working on a resolution, will update the thread as soon as this is fixed. Cheers, Prabath On Sat, Oct 4, 2014 at 1:09 PM, Ramith Jayasinghe ram...@wso2.com wrote: Hi Prabath, This has become a blocker for the MB v 3.0.0 M1. (Since Dhanuka might be travelling) Shall we have a look on how to fix this on Monday? regards Ramith. On Fri, Oct 3, 2014 at 10:52 PM, Dhanuka Ranasinghe dhan...@wso2.com wrote: Hi Sameera, The reason for embed third party libraries is osgi cyclic dependency issue. This has been discussed long time back with Kishanthan and you. Cheers, Dhanuka *Dhanuka Ranasinghe* Senior Software Engineer WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 715381915 On Fri, Oct 3, 2014 at 10:11 PM, Sameera Jayasoma same...@wso2.com wrote: Hi Dhanuka, I noticed few issues in pom.xml of this orbit bundle. 1) Import package section is empty. Please the put correct import package list. 2) Optional=true is missing from some of the dependencies. 3) Following third-party libraries have been embedded inside this orbit bundle netty metrics-core guava jackson-core-as |jackson-mapper-asl slf4j-api slf4j-log4j12 *apache-cassandra* libthrift; 4) Size of this bundle is around 8.5 MB and all the above embedded dependencies has contributed to this size. I know there exists orbit bundles with such issues, but we've started this effort recently to verify all the new orbit bundles before publishing them to nexus repository. I am rejecting this pull request. Please fix these issues and send the PR again. Thanks, Sameera. On Fri, Oct 3, 2014 at 9:37 PM, Dhanuka Ranasinghe dhan...@wso2.com wrote: Hi, I don't have permission to merge below pull request, I guess some one who has permission would need to attend this. https://github.com/wso2/orbit/pull/26 Cheers, Dhanuka *Dhanuka Ranasinghe* Senior Software Engineer WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 715381915 On Fri, Oct 3, 2014 at 6:31 PM, Harsha Kumara hars...@wso2.com wrote: Adding Maheshika. On Fri, Oct 3, 2014 at 6:23 PM, Asanka Abeyweera asank...@wso2.com wrote: Hi all, I created a pull request [1] in wso2/orbit removing the parent pom reference in cql-driver bundle. Can we release this as cql-driver-1.0.5.wso2v2 in wso2/orbit? [1] https://github.com/wso2/orbit/pull/26 On Fri, Oct 3, 2014 at 6:17 PM, Asitha Nanayakkara asi...@wso2.com wrote: Hi everyone, Since the issue is a blocker for us we are making the versions consistent throughout the platform by using the existing cql-driver. Changes needed in carbon-storage-management is complete. @PrabathA: Please review and merge the pull request
[Dev] What exactly is generated when we build a WSO2 product from source?
Sorry if I am asking something so obvious but I couldn't figure out what exactly is generated when we build a product from source. For an example, this https://docs.wso2.com/display/ESB481/Building+from+Source documentation page explains how to build ESB from source. What I want to know is, when we build from source, does it generate a package similar to what we download as a binary distribution from product website? If it does, what is the location of the generated package? Thanks -- Lahiru Chandima *Senior Software Engineer* Mobile : +94 (0) 772 253283 lahi...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] What exactly is generated when we build a WSO2 product from source?
Hi Lahiru, You can find the binary distribution under the products/Product_Name/modules/distribution/target directory. Thanks ! On Tue, Oct 14, 2014 at 10:53 AM, Lahiru Chandima lahi...@wso2.com wrote: Sorry if I am asking something so obvious but I couldn't figure out what exactly is generated when we build a product from source. For an example, this https://docs.wso2.com/display/ESB481/Building+from+Source documentation page explains how to build ESB from source. What I want to know is, when we build from source, does it generate a package similar to what we download as a binary distribution from product website? If it does, what is the location of the generated package? Thanks -- Lahiru Chandima *Senior Software Engineer* Mobile : +94 (0) 772 253283 lahi...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Regards, Manula Chathurika Thantriwatte Software Engineer WSO2 Inc. : http://wso2.com lean . enterprise . middleware email : manu...@wso2.com / man...@apache.org phone : +94 772492511 blog : http://manulachathurika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] What exactly is generated when we build a WSO2 product from source?
Thanks a lot Manula. Found the built ESB binary package in the mentioned directory. On Tue, Oct 14, 2014 at 10:56 AM, Manula Chathurika Thantriwatte manu...@wso2.com wrote: Hi Lahiru, You can find the binary distribution under the products/Product_Name/modules/distribution/target directory. Thanks ! On Tue, Oct 14, 2014 at 10:53 AM, Lahiru Chandima lahi...@wso2.com wrote: Sorry if I am asking something so obvious but I couldn't figure out what exactly is generated when we build a product from source. For an example, this https://docs.wso2.com/display/ESB481/Building+from+Source documentation page explains how to build ESB from source. What I want to know is, when we build from source, does it generate a package similar to what we download as a binary distribution from product website? If it does, what is the location of the generated package? Thanks -- Lahiru Chandima *Senior Software Engineer* Mobile : +94 (0) 772 253283 lahi...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Regards, Manula Chathurika Thantriwatte Software Engineer WSO2 Inc. : http://wso2.com lean . enterprise . middleware email : manu...@wso2.com / man...@apache.org phone : +94 772492511 blog : http://manulachathurika.blogspot.com/ -- Lahiru Chandima *Senior Software Engineer* Mobile : +94 (0) 772 253283 lahi...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Tomcat Session Replication Using Caching
Hi Pubudu, Just to be clear, this feature should work on per webapp basis. i.e not all webapps' sessions should be replicated, but the selected ones by the user. Earlier we used a webapp context property (distributable) to enable this at webapp level. Also here are the test cases that comes to mind. Say that we have a two node cluster (node-1, node-2) 1. Start both nodes - change session values at node-1, then check whether those changes are reflected at node-2 (also check this both ways). 2. Start node-1 - change session values at node-1 - start node-2 and check whether session got replicated to node-2. 3. Same as #2 above, but after the third step, stop node-1 and change the session values at node-2 then start node-1 again and check the session state. This should have the latest changes at node-1 even-though that node was offline for while. The above tests should make sure that session object was available all the time in the cluster, even-though the nodes were not available all the time. The next step is to test this with ELB setup. Say that we have a 1-Mgt+2-Worker setup fronted by an ELB. Since our ELB is session aware, it will send the requests to the same node based on the seesionID. And when that node goes offline, it will route the requests to the other node. But if we have enabled replication, this routing should work seamlessly where the same session object - which was replicated - will be used by the second node. So lets first do these tests and see. Thanks, Kishanthan. On Mon, Oct 13, 2014 at 10:37 PM, Pubudu Dissanayake pubu...@wso2.com wrote: I haven't drop the idea of using HttpSessionManager but what i thought was to evaluate how extent we can use this feature as a global web filter and HttpSessionListener is already placed in the global filter. In the current implementation Hazelcast creates a cluster per webapp, but I'm in progress of make it a single cluster shared across all webapps. On Mon, Oct 13, 2014 at 10:21 PM, Afkham Azeez az...@wso2.com wrote: Is a Hazelcast cluster created per webapp, or is a single cluster shared across all webapps? Why did you drop the idea of using a SessionListener SessionManager? On Mon, Oct 13, 2014 at 7:57 PM, Pubudu Dissanayake pubu...@wso2.com wrote: Hi Azeez/Srinath I've managed to implement Tomcat Session replication using Hazelcast APIs. As per the off-line chats with Azeez and Sameera,This functionality is applicable to all web applications which are deploy in WSO2 AS. I've introduced a global web filter, which is define in the web.xml in the conf/ directory of Tomcat to have it included in all web applications deployed. As a result I've managed to replicate all the session attributes per web application. Furthermore I've tested basic auth webapp which works as expected. And I wrote a jmeter script to test session.setAttribute() by inserting 100+ records. Please advice as to how should I thoroughly test this feature. -Pubudu On Thu, Oct 2, 2014 at 11:40 AM, Afkham Azeez az...@wso2.com wrote: On Thu, Oct 2, 2014 at 9:22 AM, Srinath Perera srin...@wso2.com wrote: I am not sure from notes what we decided. Cannot we just used hazelcast session replication? does above design you mentioned built on top of Hazelcast? Yes, the plan is to use what Hazelcast provides. Otherwise, we will anyway have to solve all the problems the Hz implementation has solved. --Srinath On Wed, Oct 1, 2014 at 2:18 PM, Pubudu Dissanayake pubu...@wso2.com wrote: Hi All, Based on the Architecture review of Tomcat session replication using caching , following aspects were discussed. Participants - Azeez, Sameera , Aruna, Jayanga, Gayashan, SupunM, Niranjan and Myself Proposed solution. - key-val: (CarbonSessionCacheKey, Carbon SessionCache) - Initial implementation was based on javax.caching api's. I've created CarbonSessionCache and CarbonSessionCacheKey to maintain HttpSession in the Hazelcast distributed map. Session will be intercepted by using a Tomcat Valve. - *Verdict* on the proposed solution. - Cache map Serialization and Deserialization is very expensive operation due to heavy traffic. Therefore it is not efficient to replicate the whole session object in the cache map. Counter Proposed solution - Having a Hazelcast map per session object. In that way if an attribute in the session changes the whole entry should not have to be replicated, only the changed attribute. - Have a per-session cache - ( session_id ). - Issue in this approach as follows - How can we acquire the session object from the map ? *Final verdict *on the feature implementation - Instead of using the caching APIs, This needs to fix in Hazelcast level and do it in the optimal way. [1] - HazelcastWM http://docs.hazelcast.org/docs/1.9.4/manual/html/ch08.html [2], Bring in the filter code level in to the tomcat valve instead