Re: [Dev] [AppFactory] Moving the application name to the AppFactory database
Hi Dimuthu, On Wed, Oct 22, 2014 at 9:31 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Janaka, +1 but we need caching at Carbon layer in front of the database. Please make sure the cache is updated properly as app names keeps adding. All the other changes(including the migration scripts) are done. I'll start introducing a caching layer for this. Thanks, Janaka thanks, dimuthu On Mon, Oct 20, 2014 at 5:45 PM, Danushka Fernando danush...@wso2.com wrote: The only concern should be is about data migration we have to do in cloud. But IMO its now or never. So +1 to do it now. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Oct 20, 2014 at 5:05 PM, Janaka Ranabahu jan...@wso2.com wrote: Hi, As a solution to [1], we have to move the Application Name to the AppFactory database. The current implementation keeps the application name in the registry and to check whether the name exists, we retrieve all the applications and then iterate through them to check whether the name exists. There is a considerable performance hit in this approach and therefore to improve the performance of this method,we will be adding the Application Name to the AppFactory database. Please raise any concerns you have on this. Also please note that we will be creating an migration script to migrate any old data as a part of this JIRA. Thanks, Janaka [1] https://wso2.org/jira/browse/APPFAC-2517 -- *Janaka Ranabahu* Senior Software Engineer; WSO2 Inc.; http://wso2.com *E-mail: jan...@wso2.com http://wso2.com**M: **+94 718370861 %2B94%20718370861* Lean . Enterprise . Middleware -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- *Janaka Ranabahu* Senior Software Engineer; WSO2 Inc.; http://wso2.com *E-mail: jan...@wso2.com http://wso2.com**M: **+94 718370861* Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Deployment synchroniser not working with mac
Hi, I enabled deployment synchroniser in ESB 4.8.0 and it stop server start with the below warning message. WARN - StartupFinalizerServiceComponent Waiting for required OSGi services: org.wso2.carbon.mediation.initializer.services.SynapseEnvironmentService,org.wso2.carbon.server.admin.common.IServerAdmin,org.wso2.carbon.throttling.agent.ThrottlingAgent, *Software* OS X 10.9 (13A3028) java version 1.6.0_65 I checked for this error and found some incidents where this error appears before but I couldn't find a exact reason or solution. Is this a known issue in mac? Thank you, Regards, Sithumini -- Sithumini Senevirathne Software Engineer WSO2 Inc. - lean . enterprise . middleware | wso2.com email: sithumi...@wso2.com, mobile: +94 756977999 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AppFactory] Moving the application name to the AppFactory database
Hi Janaka, +1 but we need caching at Carbon layer in front of the database. Please make sure the cache is updated properly as app names keeps adding. thanks, dimuthu On Mon, Oct 20, 2014 at 5:45 PM, Danushka Fernando danush...@wso2.com wrote: The only concern should be is about data migration we have to do in cloud. But IMO its now or never. So +1 to do it now. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Oct 20, 2014 at 5:05 PM, Janaka Ranabahu jan...@wso2.com wrote: Hi, As a solution to [1], we have to move the Application Name to the AppFactory database. The current implementation keeps the application name in the registry and to check whether the name exists, we retrieve all the applications and then iterate through them to check whether the name exists. There is a considerable performance hit in this approach and therefore to improve the performance of this method,we will be adding the Application Name to the AppFactory database. Please raise any concerns you have on this. Also please note that we will be creating an migration script to migrate any old data as a part of this JIRA. Thanks, Janaka [1] https://wso2.org/jira/browse/APPFAC-2517 -- *Janaka Ranabahu* Senior Software Engineer; WSO2 Inc.; http://wso2.com *E-mail: jan...@wso2.com http://wso2.com**M: **+94 718370861 %2B94%20718370861* Lean . Enterprise . Middleware -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Front-end framework to use
Hi all, Thanks a lot for offering help and for suggestions guys! :) Best regards. On Wed, Oct 22, 2014 at 8:37 AM, Dhanuka De Silva dhanu...@wso2.com wrote: Hi CD If you need help defining the user experience workflow for your project, pls feel free to talk. Cheers Dhanuka On Tue, Oct 21, 2014 at 10:32 AM, Dhanuka De Silva dhanu...@wso2.com wrote: Hi Can you share more information on what you are trying to achieve here? any user stories ? Redmine does not have any detailed information of this ticket. Cheers On Tue, Oct 21, 2014 at 10:29 AM, Sameera Medagammaddegedara samee...@wso2.com wrote: Hi CD, Are you making a single page application? Thank You, Sameera On Tue, Oct 21, 2014 at 12:46 AM, CD Athuraliya chathur...@wso2.com wrote: Hi Shiva, The GUI will be mainly used for user interaction and geo map integration. I am currently using Bootstrap with jQuery for this purpose. Kindly point out if there is a better choice. Thanks. On Mon, Oct 20, 2014 at 5:42 PM, Shiva Balachandran sh...@wso2.com wrote: Hi CD, Can you please be more specific about what goes in the web based GUI. There are many frameworks/modules, used for such purposes but depending on your necessities, you can narrow down a suitable one. Any mock-ups or designs? Thank you, Shiva Balachandran On Fri, Oct 17, 2014 at 11:09 AM, CD Athuraliya chathur...@wso2.com wrote: Hi Chamila, Thanks for the tip on license compatibility. I will look into this. Best regards. On Fri, Oct 17, 2014 at 11:05 AM, Chamila De Alwis chami...@wso2.com wrote: Hi, I haven't done any serious front end work, but as an additional concern when selecting frameworks and modules, have a look at the license they are using. They should be licensed under Apache License v2.0 or under a compatible license. It might help going briefly through the articles[1][2][3] on Apache about license compatibility before selecting a particular module. Perhaps Dakshika can add ideas on the specific frameworks to use [1] - http://www.apache.org/licenses/GPL-compatibility.html [2] - http://www.apache.org/legal/3party.html [3] - http://www.apache.org/legal/resolved.html Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Fri, Oct 17, 2014 at 10:40 AM, CD Athuraliya chathur...@wso2.com wrote: Hi all, I am developing a web based GUI as a part of this project [1]. Are there any de facto frameworks/modules, used for such purposes? Any help would be much appreciated. [1] https://redmine.wso2.com/issues/3327 Thanks. -- *CD Athuraliya* Software Engineering Intern WSO2, Inc. lean . enterprise . middleware Mobile: +94 716288847 LinkedIn http://lk.linkedin.com/in/cdathuraliya | Twitter https://twitter.com/cdathuraliya | Blog http://cdathuraliya.tumblr.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *CD Athuraliya* Software Engineering Intern WSO2, Inc. lean . enterprise . middleware Mobile: +94 716288847 LinkedIn http://lk.linkedin.com/in/cdathuraliya | Twitter https://twitter.com/cdathuraliya | Blog http://cdathuraliya.tumblr.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Shiva Balachandran Software Engineer WSO2 Inc. Mobile - +94 774445788 -- *CD Athuraliya* Software Engineering Intern WSO2, Inc. lean . enterprise . middleware Mobile: +94 716288847 LinkedIn http://lk.linkedin.com/in/cdathuraliya | Twitter https://twitter.com/cdathuraliya | Blog http://cdathuraliya.tumblr.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Sameera Medagammaddegedara Software Engineer Contact: Email: samee...@wso2.com Mobile: + 94 077 255 3005 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dhanuka De Silva m: +94 773 887816 e: dhanu...@wso2.com w: http://www.wso2.com -- Dhanuka De Silva m: +94 773 887816 e: dhanu...@wso2.com w: http://www.wso2.com -- *CD Athuraliya* Software Engineering Intern WSO2, Inc. lean . enterprise . middleware Mobile: +94 716288847 LinkedIn http://lk.linkedin.com/in/cdathuraliya | Twitter https://twitter.com/cdathuraliya | Blog http://cdathuraliya.tumblr.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] API Manager 1.8.0 pack 20-10-2014
I am looking into this, the script has been changed recently On 22 October 2014 07:53, Yasassri Ratnayake yasas...@wso2.com wrote: Hi All, There seems to be an Syntax error in the mysql DB scripts(apim scripts), and due to this some of the tables do not get created. I have reported this at [1]. Since this is a blocking issue pls provide a fix ASAP. When the server is started with -Dsetup parameter the server doesn't even throw an error indicating that the DB scripts haven't executed properly. Isn't this another concern? [1] - https://wso2.org/jira/browse/APIMANAGER-2981 -- Yasassri Ratnayake Software Engineer - QA WSO2 Inc ; http://wso2.com lean.enterprise.middleware *Mobile : +94715933168 %2B94715933168* *Blog : http://yasassriratnayake.blogspot.com/ http://yasassriratnayake.blogspot.com/* -- Regards, Uvindra Mobile: 33962 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] AM Store and Publisher too slow in cluster setup
Hi Lakshman, Awesome. Its working. ☺ . What I did was changed testOnBorrow true to false created oracle datasources in conf/datasources/mster-datasource.xml. Can you guys mention(change) this thing on api manager performance tuning document(https://docs.wso2.com/display/AM170/Tuning+Performance)(it says to put “true”) . It will help others like me. Regards, Akila From: Lakshman Udayakantha [mailto:lakshm...@wso2.com] Sent: 21 October 2014 9:32 PM To: Akila Nimantha [IT/EKO/LOITS] Cc: dev@wso2.org Subject: Re: [Dev] AM Store and Publisher too slow in cluster setup Hi akila, Can you check the solution provided by Nuwan on this jira https://wso2.org/jira/browse/APIMANAGER-2358. Fixed by setting testOnBorrow to false. Thanks On Tue, Oct 21, 2014 at 1:35 PM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.commailto:aki...@lolctech.com wrote: Hi all, I deployed API Manager cluster(gateway,keymanager,publisher and store) in a same server machine and when starting four servers, started with specific profiles(ex. Gateway node started with gateway profile). Even before creating APIs , Publisher and Store applications are very slow(ex. It takes more than 15 seconds when prompting to the store home page). Also did both kernel level and AM level performance tuning using documentations(https://docs.wso2.com/display/AM170/Tuning+Performance). Also in the server machine there is more enough memory space. But when using created apis, seems no issue in latency. Is there a way to speedup store publisher. 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 -- Lakshman Udayakantha WSO2 Inc. www.wso2.comhttp://www.wso2.com lean.enterprise.middleware Mobile: 0711241005 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] Handling Concurrency with Jaggery Scripts
HI Dilan, When comes to session variable AFAIK it represents the http session between the HTTP client and the HTTP server. For example, if we consider https connection, all key information (such as cookies etc.) related to https session are wrapped in the session variable. If you need you can put variables within it if you need to maintain specific data for specific session. Thanks, Milinda On Wed, Oct 22, 2014 at 9:12 AM, Dinesh J Weerakkody dine...@wso2.com wrote: Hi Dilan, As I understood, Jaggery is running on top of JSP/Servlet structure and use same principles (more like a wrapper to JSP). Session scopes and concurrency also similar to simple Jsp app. Each request will be served by separate thread. So You have to deal with shared resources by keeping that in mind.. PS: Please correct me if I'm wrong.. :) On Wed, Oct 22, 2014 at 7:59 AM, Dilan Udara Ariyaratne dil...@wso2.com wrote: Hi All, I am just curious to know on To what extent, Jaggery can deal with Concurrency Issues. For example, if some Jaggery Script is there to handle some file operations on a shared file or some database operations that we expect to be mutually exclusive... And also about the scope of Jaggery session variable: i.e. when the server is dealing with multiple concurrent executions of the same Jaggery script, are we dealing with multiple independent sessions or just one session instance... Any Feedback on this would be highly appreciated. Thanks. *Dilan U. Ariyaratne* Software Engineer WSO2 Inc. http://wso2.com/ Mobile: +94775149066 lean . enterprise . middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Dinesh J. Weerakkody* Software Engineer WSO2 Inc. lean | enterprise | middleware M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Milinda Perera Software Engineer; WSO2 Inc. http://wso2.com , Mobile: (+94) 714 115 032 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] API Manager 1.8.0 pack 20-10-2014
So are we recommending the users to use mysql only above 5.6.5 ? On Wed, Oct 22, 2014 at 9:50 AM, Uvindra Dias Jayasinha uvin...@wso2.com wrote: The change to the script was introduced via the resolution of this ticket, https://wso2.org/jira/browse/APIMANAGER-2536 This issue is MySQL version dependent and does not occur on version 5.6.5 and above. Most probably this was tested on a newer version of MySQL during development and therefore did not cause any issues. On 22 October 2014 09:41, Uvindra Dias Jayasinha uvin...@wso2.com wrote: I am looking into this, the script has been changed recently On 22 October 2014 07:53, Yasassri Ratnayake yasas...@wso2.com wrote: Hi All, There seems to be an Syntax error in the mysql DB scripts(apim scripts), and due to this some of the tables do not get created. I have reported this at [1]. Since this is a blocking issue pls provide a fix ASAP. When the server is started with -Dsetup parameter the server doesn't even throw an error indicating that the DB scripts haven't executed properly. Isn't this another concern? [1] - https://wso2.org/jira/browse/APIMANAGER-2981 -- Yasassri Ratnayake Software Engineer - QA WSO2 Inc ; http://wso2.com lean.enterprise.middleware *Mobile : +94715933168 %2B94715933168* *Blog : http://yasassriratnayake.blogspot.com/ http://yasassriratnayake.blogspot.com/* -- Regards, Uvindra Mobile: 33962 -- Regards, Uvindra Mobile: 33962 -- *Chamara Ariyarathne* Senior Software Engineer WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] API Manager 1.8.0 pack 20-10-2014
The change to the script was introduced via the resolution of this ticket, https://wso2.org/jira/browse/APIMANAGER-2536 This issue is MySQL version dependent and does not occur on version 5.6.5 and above. Most probably this was tested on a newer version of MySQL during development and therefore did not cause any issues. On 22 October 2014 09:41, Uvindra Dias Jayasinha uvin...@wso2.com wrote: I am looking into this, the script has been changed recently On 22 October 2014 07:53, Yasassri Ratnayake yasas...@wso2.com wrote: Hi All, There seems to be an Syntax error in the mysql DB scripts(apim scripts), and due to this some of the tables do not get created. I have reported this at [1]. Since this is a blocking issue pls provide a fix ASAP. When the server is started with -Dsetup parameter the server doesn't even throw an error indicating that the DB scripts haven't executed properly. Isn't this another concern? [1] - https://wso2.org/jira/browse/APIMANAGER-2981 -- Yasassri Ratnayake Software Engineer - QA WSO2 Inc ; http://wso2.com lean.enterprise.middleware *Mobile : +94715933168 %2B94715933168* *Blog : http://yasassriratnayake.blogspot.com/ http://yasassriratnayake.blogspot.com/* -- Regards, Uvindra Mobile: 33962 -- Regards, Uvindra Mobile: 33962 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Handling Concurrency with Jaggery Scripts
Ultimately Jaggery is compiled into a java byte-code by the Rhino Engine. So the same principals will apply as Dinesh as mentioned. :) 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 Wed, Oct 22, 2014 at 9:12 AM, Dinesh J Weerakkody dine...@wso2.com wrote: Hi Dilan, As I understood, Jaggery is running on top of JSP/Servlet structure and use same principles (more like a wrapper to JSP). Session scopes and concurrency also similar to simple Jsp app. Each request will be served by separate thread. So You have to deal with shared resources by keeping that in mind.. PS: Please correct me if I'm wrong.. :) On Wed, Oct 22, 2014 at 7:59 AM, Dilan Udara Ariyaratne dil...@wso2.com wrote: Hi All, I am just curious to know on To what extent, Jaggery can deal with Concurrency Issues. For example, if some Jaggery Script is there to handle some file operations on a shared file or some database operations that we expect to be mutually exclusive... And also about the scope of Jaggery session variable: i.e. when the server is dealing with multiple concurrent executions of the same Jaggery script, are we dealing with multiple independent sessions or just one session instance... Any Feedback on this would be highly appreciated. Thanks. *Dilan U. Ariyaratne* Software Engineer WSO2 Inc. http://wso2.com/ Mobile: +94775149066 lean . enterprise . middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Dinesh J. Weerakkody* Software Engineer WSO2 Inc. lean | enterprise | middleware M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com ___ 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] API Manager 1.8.0 pack 20-10-2014
Yes you can use the scripts from the previous pack to continue but refrain from testing any *work flow* related functionality until we resolve this for the moment. We will change this so that it is backward compatible. On 22 October 2014 09:59, Yasassri Ratnayake yasas...@wso2.com wrote: Hi Uvindra, I'm using *mysql 5.5.40*. Till you fix this issue is it OK if we use the scripts from the 6th October pack since this issue is blocking us. With regards, On Wed, Oct 22, 2014 at 9:50 AM, Uvindra Dias Jayasinha uvin...@wso2.com wrote: The change to the script was introduced via the resolution of this ticket, https://wso2.org/jira/browse/APIMANAGER-2536 This issue is MySQL version dependent and does not occur on version 5.6.5 and above. Most probably this was tested on a newer version of MySQL during development and therefore did not cause any issues. On 22 October 2014 09:41, Uvindra Dias Jayasinha uvin...@wso2.com wrote: I am looking into this, the script has been changed recently On 22 October 2014 07:53, Yasassri Ratnayake yasas...@wso2.com wrote: Hi All, There seems to be an Syntax error in the mysql DB scripts(apim scripts), and due to this some of the tables do not get created. I have reported this at [1]. Since this is a blocking issue pls provide a fix ASAP. When the server is started with -Dsetup parameter the server doesn't even throw an error indicating that the DB scripts haven't executed properly. Isn't this another concern? [1] - https://wso2.org/jira/browse/APIMANAGER-2981 -- Yasassri Ratnayake Software Engineer - QA WSO2 Inc ; http://wso2.com lean.enterprise.middleware *Mobile : +94715933168 %2B94715933168* *Blog : http://yasassriratnayake.blogspot.com/ http://yasassriratnayake.blogspot.com/* -- Regards, Uvindra Mobile: 33962 -- Regards, Uvindra Mobile: 33962 -- Yasassri Ratnayake Software Engineer - QA WSO2 Inc ; http://wso2.com lean.enterprise.middleware *Mobile : +94715933168 %2B94715933168* *Blog : http://yasassriratnayake.blogspot.com/ http://yasassriratnayake.blogspot.com/* -- Regards, Uvindra Mobile: 33962 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem with registry mounting with multiple mounts
Hi Senka, This came from a use case of app factory, Danushka should be able to provide some more detail of needed. They have AF instance that has its governance spaced mounted. and they want to mount all the governance spaces of other products that are running into AF so all the governance spaces can be used from one place ( Danushka correct me if i am wrong about the usecase ). That is the scenario that i replicated using an AS and a Greg. This is not the normal mounting scenario but this is a valid usecase IMO. Regards, Pulasthi On Wed, Oct 22, 2014 at 1:21 AM, Senaka Fernando sen...@wso2.com wrote: Pulasthi, You have mounted AS on G-Reg but not G-Reg on AS right? This is not the normal way of setting this up. Any reason for doing this? Thanks, Senaka. On Tuesday, October 21, 2014, Pulasthi Supun pulas...@wso2.com wrote: Hi Senaka/All, Consider the following mounting scenario A greg has its governance space mounted mount path=/_system/governance overwrite=true instanceIdreggov/instanceId targetPath/_system/governance/targetPath /mount And the governance space of a separate AS server is mounted to a different path in the greg. mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount When the mounts are done mount does not work properly everything under /_system/as/governance is replaced by resources that are in /_system/governance . So the governance space of the greg is populated into both paths. When we remove the mount of the greg and only mount the governance of AS, it works properly. Is this a known bug?. Regards Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- *[image: http://wso2.com] http://wso2.comSenaka Fernando* Solutions Architect; WSO2 Inc.; http://wso2.com *Member; Apache Software Foundation; http://apache.org http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408 754 7388 %2B1%20408%20754%207388; ext: 51736*; *M: +44 782 741 1966 %2B44%20782%20741%201966Linked-In: http://linkedin.com/in/senakafernando http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] API Manager 1.8.0 pack 20-10-2014
Hi Uvindra, I'm using *mysql 5.5.40*. Till you fix this issue is it OK if we use the scripts from the 6th October pack since this issue is blocking us. With regards, On Wed, Oct 22, 2014 at 9:50 AM, Uvindra Dias Jayasinha uvin...@wso2.com wrote: The change to the script was introduced via the resolution of this ticket, https://wso2.org/jira/browse/APIMANAGER-2536 This issue is MySQL version dependent and does not occur on version 5.6.5 and above. Most probably this was tested on a newer version of MySQL during development and therefore did not cause any issues. On 22 October 2014 09:41, Uvindra Dias Jayasinha uvin...@wso2.com wrote: I am looking into this, the script has been changed recently On 22 October 2014 07:53, Yasassri Ratnayake yasas...@wso2.com wrote: Hi All, There seems to be an Syntax error in the mysql DB scripts(apim scripts), and due to this some of the tables do not get created. I have reported this at [1]. Since this is a blocking issue pls provide a fix ASAP. When the server is started with -Dsetup parameter the server doesn't even throw an error indicating that the DB scripts haven't executed properly. Isn't this another concern? [1] - https://wso2.org/jira/browse/APIMANAGER-2981 -- Yasassri Ratnayake Software Engineer - QA WSO2 Inc ; http://wso2.com lean.enterprise.middleware *Mobile : +94715933168 %2B94715933168* *Blog : http://yasassriratnayake.blogspot.com/ http://yasassriratnayake.blogspot.com/* -- Regards, Uvindra Mobile: 33962 -- Regards, Uvindra Mobile: 33962 -- Yasassri Ratnayake Software Engineer - QA WSO2 Inc ; http://wso2.com lean.enterprise.middleware *Mobile : +94715933168* *Blog : http://yasassriratnayake.blogspot.com/ http://yasassriratnayake.blogspot.com/* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] How to identify thread ID's for messages in ESB?
Hi, We are in the process of writing test cases for following ESB properties. ClientApiNonBlocking - By default, Axis2 will spawn a new thread to handle each outgoing message. To change this behavior, remove this property from the message. Removal of this property could be vital when queuing transports like JMS are involved. ConcurrentConsumers - The minimum number of threads for message consuming. The value specified for this property is the initial number of threads started. As the number of messages to be consumed increases, number of threads are also increased to match the load until the total number of threads equals the value specified for the transport.jms.MaxConcurrentConsumers property. We are in a doubt as how to count the number of threads handling each request/response as per the definition. I did enable synapse logs to see whether it writes any thread ID in the logs but had no luck. Is there any way to identify thread IDs for each out going messages / messages consuming in ESB? Regards -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem with registry mounting with multiple mounts
Hi all, Here is the OT JIRA I have reported about a week ago. https://wso2.org/jira/browse/REGISTRY-2320 thanks, dimuthu On Wed, Oct 22, 2014 at 9:58 AM, Pulasthi Supun pulas...@wso2.com wrote: Hi Senka, This came from a use case of app factory, Danushka should be able to provide some more detail of needed. They have AF instance that has its governance spaced mounted. and they want to mount all the governance spaces of other products that are running into AF so all the governance spaces can be used from one place ( Danushka correct me if i am wrong about the usecase ). That is the scenario that i replicated using an AS and a Greg. This is not the normal mounting scenario but this is a valid usecase IMO. Regards, Pulasthi On Wed, Oct 22, 2014 at 1:21 AM, Senaka Fernando sen...@wso2.com wrote: Pulasthi, You have mounted AS on G-Reg but not G-Reg on AS right? This is not the normal way of setting this up. Any reason for doing this? Thanks, Senaka. On Tuesday, October 21, 2014, Pulasthi Supun pulas...@wso2.com wrote: Hi Senaka/All, Consider the following mounting scenario A greg has its governance space mounted mount path=/_system/governance overwrite=true instanceIdreggov/instanceId targetPath/_system/governance/targetPath /mount And the governance space of a separate AS server is mounted to a different path in the greg. mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount When the mounts are done mount does not work properly everything under /_system/as/governance is replaced by resources that are in /_system/governance . So the governance space of the greg is populated into both paths. When we remove the mount of the greg and only mount the governance of AS, it works properly. Is this a known bug?. Regards Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- *[image: http://wso2.com] http://wso2.comSenaka Fernando* Solutions Architect; WSO2 Inc.; http://wso2.com *Member; Apache Software Foundation; http://apache.org http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408 754 7388 %2B1%20408%20754%207388; ext: 51736*; *M: +44 782 741 1966 %2B44%20782%20741%201966Linked-In: http://linkedin.com/in/senakafernando http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem with registry mounting with multiple mounts
Pulasthi, You have mounted AS on G-Reg but not G-Reg on AS right? This is not the normal way of setting this up. Any reason for doing this? Thanks, Senaka. On Tuesday, October 21, 2014, Pulasthi Supun pulas...@wso2.com wrote: Hi Senaka/All, Consider the following mounting scenario A greg has its governance space mounted mount path=/_system/governance overwrite=true instanceIdreggov/instanceId targetPath/_system/governance/targetPath /mount And the governance space of a separate AS server is mounted to a different path in the greg. mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount When the mounts are done mount does not work properly everything under /_system/as/governance is replaced by resources that are in /_system/governance . So the governance space of the greg is populated into both paths. When we remove the mount of the greg and only mount the governance of AS, it works properly. Is this a known bug?. Regards Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com javascript:_e(%7B%7D,'cvml','pulas...@wso2.com'); Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- *[image: http://wso2.com] http://wso2.comSenaka Fernando* Solutions Architect; WSO2 Inc.; http://wso2.com *Member; Apache Software Foundation; http://apache.org http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408 754 7388; ext: 51736*; *M: +44 782 741 1966Linked-In: http://linkedin.com/in/senakafernando http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] BAM 2.5.0 Release testing
Hi, Can we please have a p2 repo to be used for this? Regards Asanthi On Tue, Oct 21, 2014 at 8:39 PM, Shavantha Weerasinghe shavan...@wso2.com wrote: Hi Aparna I have started work on the test scenarios for feature ID#3186 related to Multiple Transport/Data Format Support in BAM regards, Shavantha Weerasinghe Senior Software Engineer QA WSO2, Inc. lean.enterprise.middleware. http://wso2.com http://wso2.org Tel : 94 11 214 5345 Fax :94 11 2145300 On Tue, Oct 21, 2014 at 2:24 PM, Yasith Tharindu yas...@wso2.com wrote: Given access to the nominated people. On Mon, Oct 20, 2014 at 5:19 PM, Evanthika Amarasiri evanth...@wso2.com wrote: Hi Yasith, It would be great if we you can grant us access to the QA cloud asap since we need to start setting up the environments and start testing the products. The release is on the 24th (Oct). Regards, Evanthika On Mon, Oct 20, 2014 at 5:15 PM, Rasanjaya Subasinghe rasanj...@wso2.com wrote: Hi, The new setup is almost configured and linux bases images are already uploaded and tested.And newly system can be accessible by OT credentials. But before gain access to the private cloud you need to ask yasith to enable the user credentials. Thank you. -- ~Thanks Yasith Tharindu,*WSO2 Inc,* Blog : http://www.yasith.info Twitter : http://twitter.com/yasithnd LinkedIn : http://www.linkedin.com/in/yasithnd GPG ID : *57CEE66E* *US : +1 (408) 754-7388 %28408%29%20754-7388 - 51926* *LK : +94 (011) 214 5345 - 1005739* ' lean ' enterprise ' middleware ' http://wso2.com -- *Asanthi Kulasinghe* WSO2 Inc; http://www.wso2.com/. Mobile: +94777355522 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Tishan Dahanayakage
Congratulations Tishan! Roshan Deniyage Associate Technical Lead WSO2, Inc: http://wso2.com Mobile: +94 777636406 Twitter: *https://twitter.com/roshku https://twitter.com/roshku* LinkedIn : https://www.linkedin.com/in/roshandeniyage On Wed, Oct 22, 2014 at 7:53 AM, Aiyadurai Rajeevan rajeev...@wso2.com wrote: Congratulations Tishan.. :) Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc E-Mail: rajeev...@wso2.com | Mobile : +94776411636 On Wed, Oct 22, 2014 at 5:44 AM, Rajith Vitharana raji...@wso2.com wrote: Congratulations Tishan ... !! On Thu, Oct 16, 2014 at 10:12 PM, Kalpa Welivitigoda kal...@wso2.com wrote: Congratulations Tishan ! On Fri, Oct 17, 2014 at 10:41 AM, Sriskandarajah Suhothayan s...@wso2.com wrote: Hi all, It's our pleasure to welcome Tishan Dahanayakage as a WSO2 Committer. Tishan has contributed immensely to WSO2 Complex Event Processor especially on Siddhi and shown great commitment. In recognition of his contribution, he has been voted as a WSO2 Commiter. Welcome aboard and keep up the good work ! Regards Suho. -- *S. Suhothayan* Technical Lead Team Lead of WSO2 Complex Event Processor *WSO2 Inc. *http://wso2.com * http://wso2.com/* lean . enterprise . middleware *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog: http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter: http://twitter.com/suhothayan http://twitter.com/suhothayan | linked-in: http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, Kalpa Welivitigoda Software Engineer, WSO2 Inc. http://wso2.com Email: kal...@wso2.com Mobile: +94776509215 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Cache apphome data to improve performance in AF
Hi, Lets remove the branch count from user home page. Because it doesn't give any useful information to the users involed in the app. The users who are involved in the app knows how active and apps are. thanks, dimuthu On Mon, Oct 20, 2014 at 1:41 PM, Samith Dassanayake sam...@wso2.com wrote: Hi all, Since we are displaying the branch count in the user home we cannot simply use the above solution since if branch count is updated we should update the cache for the completed applications as well. What is the essence of the branch count in user home? Do we really need to show it? If it is not, we can use the above method since only dynamic field is *applicationCreationStatus *and therefore we can cache the completed apps in the user home and only lookup for change in *applicationCreationStatus *of pending applications. If branch count is needed to display, what we can do is,each time we can send a backend call to retrieve branch count of the all the completed applications and show it in the home page. WDYT? Thanks, Samith On Thu, Oct 9, 2014 at 6:33 PM, Samith Dassanayake sam...@wso2.com wrote: What we are going to do is, when we are polling, first we'll get the app keys of the pending application list, from the cache and then we request user home data only for the those keys. For that we will implement a method to retrieve app home data for given array of appkeys: getUserHomeData(String[] appkeys) and update the cache accordingly based on the status of the retrieved user home data. On Thu, Oct 9, 2014 at 6:24 PM, Danushka Fernando danush...@wso2.com wrote: Hi Samith So say we create a new application. It goes to the pending list. So we are polling pending and failed lists. So this application creates successfully. Then it will disappear from pending. On what approach we are updating the UI saying the new application is successfully created? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Oct 9, 2014 at 5:56 PM, Samith Dassanayake sam...@wso2.com wrote: Hi all, I have started to work on $subject[1]. Currently we poll all the user home data based on a timeout to update the user home and in current implementation we are fetching all the application's data each time regardless of the *applicationCreationStatus*.This operation causes huge delay in user home. On the other hand we cannot cache *userHomeInfo* directly since it includes a dynamic data element,*applicationCreationStatus[2] and a*s a solution the approach that we going to take here is, first we'll retrieve the User Home data based on each *applicationCreationStatus* and cache them separately as user_home_apps_completed, user_home_apps_pending, user_home_apps_failed and then we'll only poll for the pending and failed applications based on the cached app info and update the cache accordingly. This we reduce the delay in the home page after the the first login. [1] https://wso2.org/jira/browse/APPFAC-2396 [2] Mail thread: [AppFactory] Updating ApplicationInfoService Thanks, Samith -- Best Regards Samith Dassanayake Software Engineer, WSO2 Inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards Samith Dassanayake Software Engineer, WSO2 Inc. -- Best Regards Samith Dassanayake Software Engineer, WSO2 Inc. -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Appfactory] Use GJit plugin for repository management
Hi Mahesh, As per our offline discussion we can use org.wso2.carbon.appfactory. repository.mgt.client.AppfacotryRepositoryClient inside deployers as well. So we'll have one AppFactoryRepositoryClient everywhere. If we copy the RepositoryMgt into the AppServer it should function without an issue because the Carbon env is visible to the Jenkins webapp. thanks, dimuthu On Tue, Oct 21, 2014 at 6:57 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi, ok then , i will proceed with refactoring. Thanks. On Tue, Oct 21, 2014 at 6:36 PM, Janaka Ranabahu jan...@wso2.com wrote: Hi, On Tue, Oct 21, 2014 at 6:19 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi , No i meant a webservice, i understand it's not a good idea. Anyway there are some more findings so far, *Regarding appfactory.core.deploy.AppfactoryRepositoryClient* *appfactory.core.deploy.AppfactoryRepositoryClient* is used only twice for whole code. That is in *deleteFromDepSyncGitRepo* method and *undeployAllArtifactsOfAppFromDepSyncGitRepo *method in *ApplicationDeployer* class within the same package. And above two methods are private. Though all other repository deployment functions happen in *appfactory.deployers *(which jar goes to jenkins) , undeployment happens in *appfactory.core* section (correct me if im wrong). Therefore if we move undeploy functionality to *appfactory.deployers *section , we can get rid of *appfactory.core.deploy.AppfactoryRepositoryClient. * +1. Please proceed with the re-factoring. We need to handle deployment and undeployment related operations from the same place. *Regarding appfactory.deployers.clients.AppfactoryRepositoryClient* Unfortunately we will have to do the same implementation as in *appfactory.repository.mgt *here , since this goes to jenkins and we need to keep minimum dependancies. Because of the minimum dependencies scenario we cannot use *JGitAgent* available in *appfacotry.repository.mgt . *Therefore we have to re-implement it here in *appfactory.deployers.clients* though it's a replication. Let's check whether we could move them to a common component, maybe something like appfactory.common component. Thanks, Janaka Advise please On Tue, Oct 21, 2014 at 3:36 PM, Danushka Fernando danush...@wso2.com wrote: What do you meant by a service ? An OSGI service? +1 Go ahead with the solution #2. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Tue, Oct 21, 2014 at 3:29 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Im working on [1] In here we have to consider 3 classes 1. org.wso2.carbon.appfactory.repository.mgt.client .AppfacotryRepositoryClient 2. org.wso2.carbon.appfactory.core.deploy .AppfacotryRepositoryClient 3. org.wso2.carbon.appfactory.deployers.clients .AppfacotryRepositoryClient *org.wso2.carbon.appfactory.repository.mgt.client.AppfacotryRepositoryClient* has already integrated with JGit plugin via *JGitAgent* class. Still *org.wso2.carbon.appfactory.core.deploy.AppfacotryRepositoryClient* and *org.wso2.carbon.appfactory.deployers.clients.AppfacotryRepositoryClient* use *GitSCMClient*. Now we need to remove SCM plugin and integrate JGit plugin to these two classes as well. I see following approaches, 1. Implement same functionality which is in *org.wso2.carbon.appfactory.repository.mgt.client.AppfacotryRepositoryClient* for above both places. But this will cause code redundancy, I guess. 2. Make *org.wso2.carbon.appfactory.repository.mgt.client.AppfacotryRepositoryClient* as a service and make it available to use in other two places. Please advise me in way forward. Suggest me a better approach please. Thanks [1] - https://wso2.org/jira/browse/APPFAC-2328 -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- *Janaka Ranabahu* Senior Software Engineer; WSO2 Inc.; http://wso2.com *E-mail: jan...@wso2.com http://wso2.com**M: **+94 718370861 %2B94%20718370861* Lean . Enterprise . Middleware -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org
Re: [Dev] [Appfactory] Use GJit plugin for repository management
Hi Dimuthu, I will try that way out and let you know. Thanks. On Wed, Oct 22, 2014 at 11:08 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Mahesh, As per our offline discussion we can use org.wso2.carbon.appfactory. repository.mgt.client.AppfacotryRepositoryClient inside deployers as well. So we'll have one AppFactoryRepositoryClient everywhere. If we copy the RepositoryMgt into the AppServer it should function without an issue because the Carbon env is visible to the Jenkins webapp. thanks, dimuthu On Tue, Oct 21, 2014 at 6:57 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi, ok then , i will proceed with refactoring. Thanks. On Tue, Oct 21, 2014 at 6:36 PM, Janaka Ranabahu jan...@wso2.com wrote: Hi, On Tue, Oct 21, 2014 at 6:19 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi , No i meant a webservice, i understand it's not a good idea. Anyway there are some more findings so far, *Regarding appfactory.core.deploy.AppfactoryRepositoryClient* *appfactory.core.deploy.AppfactoryRepositoryClient* is used only twice for whole code. That is in *deleteFromDepSyncGitRepo* method and *undeployAllArtifactsOfAppFromDepSyncGitRepo *method in *ApplicationDeployer* class within the same package. And above two methods are private. Though all other repository deployment functions happen in *appfactory.deployers *(which jar goes to jenkins) , undeployment happens in *appfactory.core* section (correct me if im wrong). Therefore if we move undeploy functionality to *appfactory.deployers *section , we can get rid of *appfactory.core.deploy.AppfactoryRepositoryClient. * +1. Please proceed with the re-factoring. We need to handle deployment and undeployment related operations from the same place. *Regarding appfactory.deployers.clients.AppfactoryRepositoryClient* Unfortunately we will have to do the same implementation as in *appfactory.repository.mgt *here , since this goes to jenkins and we need to keep minimum dependancies. Because of the minimum dependencies scenario we cannot use *JGitAgent* available in *appfacotry.repository.mgt . *Therefore we have to re-implement it here in *appfactory.deployers.clients* though it's a replication. Let's check whether we could move them to a common component, maybe something like appfactory.common component. Thanks, Janaka Advise please On Tue, Oct 21, 2014 at 3:36 PM, Danushka Fernando danush...@wso2.com wrote: What do you meant by a service ? An OSGI service? +1 Go ahead with the solution #2. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Tue, Oct 21, 2014 at 3:29 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Im working on [1] In here we have to consider 3 classes 1. org.wso2.carbon.appfactory.repository.mgt.client .AppfacotryRepositoryClient 2. org.wso2.carbon.appfactory.core.deploy .AppfacotryRepositoryClient 3. org.wso2.carbon.appfactory.deployers.clients .AppfacotryRepositoryClient *org.wso2.carbon.appfactory.repository.mgt.client.AppfacotryRepositoryClient* has already integrated with JGit plugin via *JGitAgent* class. Still *org.wso2.carbon.appfactory.core.deploy.AppfacotryRepositoryClient* and *org.wso2.carbon.appfactory.deployers.clients.AppfacotryRepositoryClient* use *GitSCMClient*. Now we need to remove SCM plugin and integrate JGit plugin to these two classes as well. I see following approaches, 1. Implement same functionality which is in *org.wso2.carbon.appfactory.repository.mgt.client.AppfacotryRepositoryClient* for above both places. But this will cause code redundancy, I guess. 2. Make *org.wso2.carbon.appfactory.repository.mgt.client.AppfacotryRepositoryClient* as a service and make it available to use in other two places. Please advise me in way forward. Suggest me a better approach please. Thanks [1] - https://wso2.org/jira/browse/APPFAC-2328 -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- *Janaka Ranabahu* Senior Software Engineer; WSO2 Inc.; http://wso2.com *E-mail: jan...@wso2.com http://wso2.com**M: **+94 718370861 %2B94%20718370861* Lean . Enterprise . Middleware -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email:
Re: [Dev] BAM 2.5.0 Release testing
Hi Anjana, As we discussed(Anjana, Evanthika myself), due to the limited time frame we have to prioritize the testing scope. BAM Cluster should be configured using puppet scripts. Therefore can you please specify the exact Cassandra hadoop versions to test. Regards, Aparna. On Wed, Oct 22, 2014 at 11:26 AM, Asanthi Kulasinghe asan...@wso2.com wrote: Hi, Can we please have a p2 repo to be used for this? Regards Asanthi On Tue, Oct 21, 2014 at 8:39 PM, Shavantha Weerasinghe shavan...@wso2.com wrote: Hi Aparna I have started work on the test scenarios for feature ID#3186 related to Multiple Transport/Data Format Support in BAM regards, Shavantha Weerasinghe Senior Software Engineer QA WSO2, Inc. lean.enterprise.middleware. http://wso2.com http://wso2.org Tel : 94 11 214 5345 Fax :94 11 2145300 On Tue, Oct 21, 2014 at 2:24 PM, Yasith Tharindu yas...@wso2.com wrote: Given access to the nominated people. On Mon, Oct 20, 2014 at 5:19 PM, Evanthika Amarasiri evanth...@wso2.com wrote: Hi Yasith, It would be great if we you can grant us access to the QA cloud asap since we need to start setting up the environments and start testing the products. The release is on the 24th (Oct). Regards, Evanthika On Mon, Oct 20, 2014 at 5:15 PM, Rasanjaya Subasinghe rasanj...@wso2.com wrote: Hi, The new setup is almost configured and linux bases images are already uploaded and tested.And newly system can be accessible by OT credentials. But before gain access to the private cloud you need to ask yasith to enable the user credentials. Thank you. -- ~Thanks Yasith Tharindu,*WSO2 Inc,* Blog : http://www.yasith.info Twitter : http://twitter.com/yasithnd LinkedIn : http://www.linkedin.com/in/yasithnd GPG ID : *57CEE66E* *US : +1 (408) 754-7388 %28408%29%20754-7388 - 51926* *LK : +94 (011) 214 5345 - 1005739* ' lean ' enterprise ' middleware ' http://wso2.com -- *Asanthi Kulasinghe* WSO2 Inc; http://www.wso2.com/. Mobile: +94777355522 -- *Aparna Karunarathna.* *Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Missing delete user operation in RemoteUserStoreManagerServiceClient and add user with claims in UserManagementClient of TAF 4.2.8
Hi, I'm working on writing integration tests for openid. In order to test the open id flow I have implemented a parameterized test case that run for different parameters. Here as per the received parameters I'm creating a user before the test method and delete at the end. I also create claim values for that user. In the TAF 4.2.8 there is a RemoteUserStoreManagerServiceClient class that calls to the RemoteUserStoreManagerService service via RemoteUserStoreManagerServiceStub and UserManagementClient class that calls to the UserAdmin service via UserAdminStub. But RemoteUserStoreManagerServiceClient has not exposed the deleteUser operation of the stub so by using this client I cannot delete users where as UserManagementClient has not exposed the addUser operation of the stub that accept claim values as a parameter so I cannot add users with claims. Would it be ok if I add these missing methods so that I can use them in my tests. 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
[Dev] [Suggestion] List of ports used by WSO2 products
Hi, Is there a list of products used by WSO2 products by default? IMO it would be better if we could have one, because it would be easier to setup Security Group Rules while spawning support cloud instances. Would like to know your opinion about this! Cheers -- *Niranda Perera* Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 https://twitter.com/N1R44 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem with registry mounting with multiple mounts
Hi Senaka Here is Our use case. Our deployment is like below. We have three separate governance registries for three clouds. So when we want to do a operation to registry of those clouds we have to do a network call which gives an overhead. So if we can mount those governance registries to AF to different paths, then we can do this without a remote call. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Oct 22, 2014 at 10:21 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi all, Here is the OT JIRA I have reported about a week ago. https://wso2.org/jira/browse/REGISTRY-2320 thanks, dimuthu On Wed, Oct 22, 2014 at 9:58 AM, Pulasthi Supun pulas...@wso2.com wrote: Hi Senka, This came from a use case of app factory, Danushka should be able to provide some more detail of needed. They have AF instance that has its governance spaced mounted. and they want to mount all the governance spaces of other products that are running into AF so all the governance spaces can be used from one place ( Danushka correct me if i am wrong about the usecase ). That is the scenario that i replicated using an AS and a Greg. This is not the normal mounting scenario but this is a valid usecase IMO. Regards, Pulasthi On Wed, Oct 22, 2014 at 1:21 AM, Senaka Fernando sen...@wso2.com wrote: Pulasthi, You have mounted AS on G-Reg but not G-Reg on AS right? This is not the normal way of setting this up. Any reason for doing this? Thanks, Senaka. On Tuesday, October 21, 2014, Pulasthi Supun pulas...@wso2.com wrote: Hi Senaka/All, Consider the following mounting scenario A greg has its governance space mounted mount path=/_system/governance overwrite=true instanceIdreggov/instanceId targetPath/_system/governance/targetPath /mount And the governance space of a separate AS server is mounted to a different path in the greg. mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount When the mounts are done mount does not work properly everything under /_system/as/governance is replaced by resources that are in /_system/governance . So the governance space of the greg is populated into both paths. When we remove the mount of the greg and only mount the governance of AS, it works properly. Is this a known bug?. Regards Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- *[image: http://wso2.com] http://wso2.comSenaka Fernando* Solutions Architect; WSO2 Inc.; http://wso2.com *Member; Apache Software Foundation; http://apache.org http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408 754 7388 %2B1%20408%20754%207388; ext: 51736*; *M: +44 782 741 1966 %2B44%20782%20741%201966Linked-In: http://linkedin.com/in/senakafernando http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Seeing some warnings while building data-services component
Great. Thanks! On Wed, Oct 22, 2014 at 9:15 AM, Chanika Geeganage chan...@wso2.com wrote: Hi Prabath, All the warnings are fixed now except the following warning. [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon:org.wso2.carbon.dataservices.core:bundle:4.3.0-SNAPSHOT [WARNING] 'dependencies.dependency.systemPath' for ojdbc:ojdbc6:jar should not point at files within the project directory, ${basedir}/src/test/resources/lib/ojdbc6.jar will be unresolvable by dependent projects @ line 146, column 25 [WARNING] The Oracle JDBC jar is not hosted in any public repository. Therefore it is kept in the above location. This jar is used to run data-service Oracle test suite. As per the discussion went on [1] agreed to keep in that way [1] [Dev] [maven3 warning] 'dependencies.dependency.systemPath' should not point at files within the project directory (http://mail.wso2.org/mailarchive/dev/2012-June/006374.html) Thanks On Tue, Oct 21, 2014 at 11:03 PM, Prabath Abeysekera praba...@wso2.com wrote: Hi Chanika, $Subject. We might need to fix them. [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon:org.wso2.carbon.dataservices.common:bundle:4.3.0-SNAPSHOT [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.wso2.carbon:org.wso2.carbon.dataservices.common:jar - duplicate declaration of version ${carbon.platform.version} @ org.wso2.carbon:carbon-data:4.3.0-SNAPSHOT, /Users/WSO2USER08/WSO2/git/prabathabey/carbon-data/pom.xml, line 231, column 25 [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache-extras.cassandra-jdbc.wso2:cassandra-jdbc:jar - duplicate declaration of version ${cassandra-jdbc.driver.version} @ org.wso2.carbon:carbon-data:4.3.0-SNAPSHOT, /Users/WSO2USER08/WSO2/git/prabathabey/carbon-data/pom.xml, line 340, column 25 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 45, column 21 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon:org.wso2.carbon.dataservices.core:bundle:4.3.0-SNAPSHOT [WARNING] 'dependencies.dependency.systemPath' for ojdbc:ojdbc6:jar should not point at files within the project directory, ${basedir}/src/test/resources/lib/ojdbc6.jar will be unresolvable by dependent projects @ line 146, column 25 [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.wso2.carbon:org.wso2.carbon.dataservices.common:jar - duplicate declaration of version ${carbon.platform.version} @ org.wso2.carbon:carbon-data:4.3.0-SNAPSHOT, /Users/WSO2USER08/WSO2/git/prabathabey/carbon-data/pom.xml, line 231, column 25 [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache-extras.cassandra-jdbc.wso2:cassandra-jdbc:jar - duplicate declaration of version ${cassandra-jdbc.driver.version} @ org.wso2.carbon:carbon-data:4.3.0-SNAPSHOT, /Users/WSO2USER08/WSO2/git/prabathabey/carbon-data/pom.xml, line 340, column 25 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 165, column 21 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon:org.wso2.carbon.dataservices.ui:bundle:4.3.0-SNAPSHOT [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.wso2.carbon:org.wso2.carbon.dataservices.common:jar - duplicate declaration of version ${carbon.platform.version} @ org.wso2.carbon:carbon-data:4.3.0-SNAPSHOT, /Users/WSO2USER08/WSO2/git/prabathabey/carbon-data/pom.xml, line 231, column 25 [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache-extras.cassandra-jdbc.wso2:cassandra-jdbc:jar - duplicate declaration of version ${cassandra-jdbc.driver.version} @ org.wso2.carbon:carbon-data:4.3.0-SNAPSHOT, /Users/WSO2USER08/WSO2/git/prabathabey/carbon-data/pom.xml, line 340, column 25 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon:org.wso2.carbon.dataservices.task:bundle:4.3.0-SNAPSHOT [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.wso2.carbon:org.wso2.carbon.dataservices.common:jar - duplicate declaration of version ${carbon.platform.version} @ org.wso2.carbon:carbon-data:4.3.0-SNAPSHOT, /Users/WSO2USER08/WSO2/git/prabathabey/carbon-data/pom.xml, line 231, column 25 [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)'
[Dev] Use of javax.net.ssl.keyStore and javax.net.ssl.trustStore
Hi, I have a webapp that calls an admin service of IS through mutual ssl authentication. The call is done using the HttpClient. For that I am setting the keystore and truststore details of the client at runtime like below. System.setProperty(javax.net.ssl.keyStore, CLIENT_KEY_STORE_PATH); System.setProperty(javax.net.ssl.trustStore, CLIENT_TRUST_STORE_PATH); System.setProperty(javax.net.ssl.keyStorePassword, CLIENT_KEY_STORE_PASSWORD); System.setProperty(javax.net.ssl.trustStorePassword, CLIENT_TRUST_STORE_PASSWORD); SSLContext context = SSLContexts.createSystemDefault(); HttpClientBuilder builder = HttpClientBuilder.create(); RegistryConnectionSocketFactory registry = RegistryBuilder .ConnectionSocketFactorycreate() .register(https, new SSLConnectionSocketFactory(context)) .build(); HttpClientConnectionManager ccm = new BasicHttpClientConnectionManager(registry); builder.setConnectionManager(ccm); HttpClient client = builder.build(); Now I want to get rid of the code that sets the ssl system properties at runtime. Here it is assumed that those properties are already set. But System.getProperty(javax.net.ssl.keyStore) and System.getProperty(javax.net.ssl.keyStorePassword) return null at runtime and therefore the client cannot call the service properly. It seems those two properties get overwritten at runtime. TrustStore properties are not overwritten and they remain with the same values set previously. Any suggestions for setting the keyStore properties correctly (outside the webapp) ? -- Tharindu Edirisinghe Software Engineer | WSO2 Inc Identity Server Team mobile : +94 775 181586 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Missing delete user operation in RemoteUserStoreManagerServiceClient and add user with claims in UserManagementClient of TAF 4.2.8
Copying Krishantha. On Wed, Oct 22, 2014 at 11:47 AM, Malithi Edirisinghe malit...@wso2.com wrote: Hi, I'm working on writing integration tests for openid. In order to test the open id flow I have implemented a parameterized test case that run for different parameters. Here as per the received parameters I'm creating a user before the test method and delete at the end. I also create claim values for that user. In the TAF 4.2.8 there is a RemoteUserStoreManagerServiceClient class that calls to the RemoteUserStoreManagerService service via RemoteUserStoreManagerServiceStub and UserManagementClient class that calls to the UserAdmin service via UserAdminStub. But RemoteUserStoreManagerServiceClient has not exposed the deleteUser operation of the stub so by using this client I cannot delete users where as UserManagementClient has not exposed the addUser operation of the stub that accept claim values as a parameter so I cannot add users with claims. Would it be ok if I add these missing methods so that I can use them in my tests. Thanks, Malithi. -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com -- *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] Reduce the execution speed of Web Driver
Hi Sohani, As I see the issue you are facing is web driver expects a element even before it loads in the page. One of the cleanest ways to do this is add a wait based on a condition. WebDriverWait wait = new WebDriverWait(webDriver, timeoutInSeconds); wait.until(ExpectedConditions.visibilityOfElementLocated(By.idlocator)); else you can use RenderedWebElement to check whether the element is rendered before proceeding RenderedWebElement resultsDiv = (RenderedWebElement) driver.findElement(By.className(gac_m)); Mostly Selenium testing speed does not affect the test functionality. In such case any way we have to handle the scenario irrespective of the speed selinium executes the test. Thank You, Dharshana. On Mon, Oct 20, 2014 at 6:37 PM, Malintha Adikari malin...@wso2.com wrote: On Mon, Oct 20, 2014 at 4:55 AM, Ayesha Dissanayaka aye...@wso2.com wrote: Hi, I'm also having this concern while executing UI test cases in WSO2 ES. In my case ES Publisher App take ablout 15sec in order to populate properly after completing indexing and all. Hence, I have to thread sleep all the test classes. I would also like to know whether this is the recommended way to slow down the web driver, or can we implicitly wait to start the test execution by the framework. Thanks! - Ayesha On Fri, Oct 17, 2014 at 10:10 AM, Sohani Weerasinghe soh...@wso2.com wrote: Hi, When using selenium web driver to write test cases, currently I am using Thread sleeps in order to control the speed of the browser. Is this the recommended way to slow down the execution speed? Selenium web driver has no method to control the speed of the tests. Yes ,the possible solution is hold the execution by implicit/explicit waiting (but not mixing them - [1] ). IMO, in the worst case we have to use thread sleep when we cannot find a way to use above web driver built in waiting methods. [1] http://docs.seleniumhq.org/docs/04_webdriver_advanced.jsp Regards, Malintha Adikari Please note that I am also using explicit waits to wait for certain conditions to occur before proceeding further and implicit waits to poll the DOM for a certain amount of time to find an element. Thanks, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Ayesha Dissanayaka* Software Engineer, WSO2, Inc : http://wso2.com http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg 20, Palmgrove Avenue, Colombo 3 E-Mail: aye...@wso2.com ayshsa...@gmail.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Malintha Adikari* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile: +94 71 2312958 Blog:http://malinthas.blogspot.com Page: http://about.me/malintha ___ 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
[Dev] [APIM][BAM] issue with integrating APIM 1.8.0 with BAM 2.5.0
Hi All, I am trying to integrate BAM 2.5.0 with APIM 1.8.0. I followed https://docs.wso2.com/display/AM170/Publishing+API+Runtime+Statistics to do this. After I configured BAM and started it, got the following exception and can’t publish the data. anyone has any idea about this error? [2014-10-22 13:42:00,008] INFO {org.wso2.carbon.analytics.hive.task.HiveScriptExecutorTask} - Running script executor task for script am_stats_analyzer. [Wed Oct 22 13:42:00 GMT+05:30 2014] Hive history file=/Users/lakshman/Documents/wso2_products/BAM/wso2bam-2.5.0/tmp/hive/root-querylogs/hive_job_log_lakshman_201410221342_1864185710.txt 2014-10-22 13:42:00.943 java[15403:9407] Unable to load realm info from SCDynamicStore [2014-10-22 13:42:01,367] ERROR {org.apache.hadoop.hive.cassandra.CassandraProxyClient} - Error while trying to connect to cassandra host:localhost org.apache.hadoop.hive.cassandra.CassandraException: unable to connect to server at org.apache.hadoop.hive.cassandra.CassandraClientHolder.initClient(CassandraClientHolder.java:65) at org.apache.hadoop.hive.cassandra.CassandraClientHolder.init(CassandraClientHolder.java:40) at org.apache.hadoop.hive.cassandra.CassandraProxyClient.createConnection(CassandraProxyClient.java:200) at org.apache.hadoop.hive.cassandra.CassandraProxyClient.initializeConnection(CassandraProxyClient.java:226) at org.apache.hadoop.hive.cassandra.CassandraProxyClient.init(CassandraProxyClient.java:142) at org.apache.hadoop.hive.cassandra.CassandraManager.openConnection(CassandraManager.java:219) at org.apache.hadoop.hive.cassandra.CassandraStorageHandler.preCreateTable(CassandraStorageHandler.java:284) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.createTable(HiveMetaStoreClient.java:396) at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:540) at org.apache.hadoop.hive.ql.exec.DDLTask.createTable(DDLTask.java:3479) at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:225) at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:129) at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:62) at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1351) at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1126) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:934) at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:201) at org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:187) at org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.executeHiveQuery(HiveExecutorServiceImpl.java:578) at org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:286) at org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:189) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:695) Caused by: org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused at org.apache.thrift.transport.TSocket.open(TSocket.java:183) at org.apache.thrift.transport.TFramedTransport.open(TFramedTransport.java:81) at org.apache.hadoop.hive.cassandra.CassandraClientHolder.initClient(CassandraClientHolder.java:63) ... 25 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:382) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:241) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:228) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:431) at java.net.Socket.connect(Socket.java:527) at org.apache.thrift.transport.TSocket.open(TSocket.java:178) ... 27 more FAILED: Error in metadata: java.lang.NullPointerException [2014-10-22 13:42:01,370] ERROR {org.apache.hadoop.hive.ql.exec.Task} - FAILED: Error in metadata: java.lang.NullPointerException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.NullPointerException at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:546) at org.apache.hadoop.hive.ql.exec.DDLTask.createTable(DDLTask.java:3479) at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:225) at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:129) at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:62) at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1351) at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1126) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:934) at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:201) at
Re: [Dev] Missing delete user operation in RemoteUserStoreManagerServiceClient and add user with claims in UserManagementClient of TAF 4.2.8
Yes please ahead and add the missing method. Thanks, Krishantha. On Wed, Oct 22, 2014 at 1:27 PM, Malithi Edirisinghe malit...@wso2.com wrote: Copying Krishantha. On Wed, Oct 22, 2014 at 11:47 AM, Malithi Edirisinghe malit...@wso2.com wrote: Hi, I'm working on writing integration tests for openid. In order to test the open id flow I have implemented a parameterized test case that run for different parameters. Here as per the received parameters I'm creating a user before the test method and delete at the end. I also create claim values for that user. In the TAF 4.2.8 there is a RemoteUserStoreManagerServiceClient class that calls to the RemoteUserStoreManagerService service via RemoteUserStoreManagerServiceStub and UserManagementClient class that calls to the UserAdmin service via UserAdminStub. But RemoteUserStoreManagerServiceClient has not exposed the deleteUser operation of the stub so by using this client I cannot delete users where as UserManagementClient has not exposed the addUser operation of the stub that accept claim values as a parameter so I cannot add users with claims. Would it be ok if I add these missing methods so that I can use them in my tests. Thanks, Malithi. -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [AppFactory] LoadBalancingDataPublisher seems to handle failover but not load balancing
Hi all, I have been trying to move the AsyncDataPublisher used in App Factory to LoadBalancingDataPublisher to cater load balancing and failover. Even though [1] describes that it sends data to available receiver nodes in a round robin manner, I was only able to observe the failover scenario. Can somebody please explain ? [1] https://docs.wso2.com/display/BAM240/Setting+up+Multi+Receiver+and+Load+Balancing+Data+Agent#SettingupMultiReceiverandLoadBalancingDataAgent-Loadbalancingconfigurations Thanks GayanD -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 GREG - Asset Models with more ESB
Hi Aliosha, In this set up ESB nodes asset will sync to Governance Registry. It means when we have ESB1 and ESB 2 , once ESB 1 will sync with Governance Registry and on the other time ESB 2 will sync with Governance Registry. Hence ESB1 and ESB2 will not sync among them. So when you need to sync ESB1 and ESB2 asset you need to use svn Deployment Synchronizer (*DepSync*)[1] https://docs.wso2.com/display/CLUSTER420/Introduction+to+Deployment+Synchronizer Thanks On Tue, Oct 21, 2014 at 11:32 PM, Aliosha aliosh...@gmail.com wrote: thanks for answering... really i already tried to mount Greg to both ESB instances but i was wondering if it's possible to synchronize assets like sequences, proxies etc, withouth the need to mount ESB to Governance Registry, as it's said in the documentation. I tried just with 1 ESB instances and i see that WSO2 Governance Registry runs a separate task internally to periodically check for updates and synchronize with WSO2 ESB. With 2 ESB there is the error i mentioned in my first email. Is it possibile to use more than one ESB withouth mounting the GREG on each ESB instances? Thanks. 2014-10-21 13:08 GMT+02:00 Prasanna Dangalla prasa...@wso2.com: Hi Aliosha, Have you mounted Greg to Both ESB instances ? If not follow these guides [1], [2] and implement mounting. [1] https://docs.wso2.com/display/Governance460/Remote+Instance+and+Mount+Configuration+Details [2] http://ajithvblogs.blogspot.com/2012/09/create-jdbc-mount-to-wso2-governance.html Thanks On Tue, Oct 21, 2014 at 2:24 PM, Aliosha aliosh...@gmail.com wrote: I'm following the procedure described at this documentation url: https://docs.wso2.com/display/Governance460/ESB+Asset+Models The configuration works fine trying it with 1 WSO2 ESB 4.8.1 and 1 WSO2 GREG 4.6.0. What about the task configuration in the registry.xml, if I have 2 WSO2 ESB connected with the registry (localhost:9443/, localhost:9445/)? I tried to replicate the code, task name=MediationTask class=org.wso2.carbon.governance.platform.extensions.mediation.MediationArtifactPopulatorTask trigger cron=0/10 * * * * ?/ property key=userName value=admin / property key=password value=admin / property key=serverUrl value= https://localhost:9443/services// property key=proxyArtifactKey value=proxy / property key=sequenceArtifactKey value=sequence / property key=endpointArtifactKey value=endpoint / /task adding another task (MediationTask1): task name=MediationTask1 class=org.wso2.carbon.governance.platform.extensions.mediation.MediationArtifactPopulatorTask trigger cron=0/9 * * * * ?/ property key=userName value=admin / property key=password value=admin / property key=serverUrl value= https://localhost:9445/services// property key=proxyArtifactKey value=proxy / property key=sequenceArtifactKey value=sequence / property key=endpointArtifactKey value=endpoint / /task But after rebooting the Greg it seems to be a conflict situation in wich just one artifact (from ESB1 or ESB2) is uploaded into the registry. Thanks -- Prasanna Dangalla Software Engineer, WSO2, Inc.; http://wso2.com/ lean.enterprise.middleware cell: +94 777 55 80 30 | +94 718 11 27 51 twitter: @prasa77 -- Prasanna Dangalla Software Engineer, WSO2, Inc.; http://wso2.com/ lean.enterprise.middleware cell: +94 777 55 80 30 | +94 718 11 27 51 twitter: @prasa77 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem with registry mounting with multiple mounts
Hi Shazni, Nope, the configs are correct mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount this config means to mount the /_system/governance path in AS, into the /_system/as/governance. Regards, Pulasthi On Wed, Oct 22, 2014 at 2:45 PM, Shazni Nazeer sha...@wso2.com wrote: Pulasthi, As I understand you have to change the AS mount as below. mount path=/_system/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount i.e. As Senaka has mentioned you aren't trying to mount /_system/governance of AS, but rather /_system/as/governance to /_system/governance of GREG. Shazni Nazeer Senior Software Engineer Mob : +94 37331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com On Wed, Oct 22, 2014 at 1:21 AM, Senaka Fernando sen...@wso2.com wrote: Pulasthi, You have mounted AS on G-Reg but not G-Reg on AS right? This is not the normal way of setting this up. Any reason for doing this? Thanks, Senaka. On Tuesday, October 21, 2014, Pulasthi Supun pulas...@wso2.com wrote: Hi Senaka/All, Consider the following mounting scenario A greg has its governance space mounted mount path=/_system/governance overwrite=true instanceIdreggov/instanceId targetPath/_system/governance/targetPath /mount And the governance space of a separate AS server is mounted to a different path in the greg. mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount When the mounts are done mount does not work properly everything under /_system/as/governance is replaced by resources that are in /_system/governance . So the governance space of the greg is populated into both paths. When we remove the mount of the greg and only mount the governance of AS, it works properly. Is this a known bug?. Regards Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- *[image: http://wso2.com] http://wso2.comSenaka Fernando* Solutions Architect; WSO2 Inc.; http://wso2.com *Member; Apache Software Foundation; http://apache.org http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408 754 7388 %2B1%20408%20754%207388; ext: 51736*; *M: +44 782 741 1966 %2B44%20782%20741%201966Linked-In: http://linkedin.com/in/senakafernando http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] BAM 2.5.0 Release testing
Hi Aparna, First, use the versions by default mentioned in the puppet setup. Then after that, you can move into Apache Cassandra 2.0.x and DSE Cassandra 2.0 based one. Hadoop use the same mentioned in the puppet setup, that is the stable v1 version. Cheers, Anjana. On Wed, Oct 22, 2014 at 11:40 AM, Aparna Karunarathna apa...@wso2.com wrote: Hi Anjana, As we discussed(Anjana, Evanthika myself), due to the limited time frame we have to prioritize the testing scope. BAM Cluster should be configured using puppet scripts. Therefore can you please specify the exact Cassandra hadoop versions to test. Regards, Aparna. On Wed, Oct 22, 2014 at 11:26 AM, Asanthi Kulasinghe asan...@wso2.com wrote: Hi, Can we please have a p2 repo to be used for this? Regards Asanthi On Tue, Oct 21, 2014 at 8:39 PM, Shavantha Weerasinghe shavan...@wso2.com wrote: Hi Aparna I have started work on the test scenarios for feature ID#3186 related to Multiple Transport/Data Format Support in BAM regards, Shavantha Weerasinghe Senior Software Engineer QA WSO2, Inc. lean.enterprise.middleware. http://wso2.com http://wso2.org Tel : 94 11 214 5345 Fax :94 11 2145300 On Tue, Oct 21, 2014 at 2:24 PM, Yasith Tharindu yas...@wso2.com wrote: Given access to the nominated people. On Mon, Oct 20, 2014 at 5:19 PM, Evanthika Amarasiri evanth...@wso2.com wrote: Hi Yasith, It would be great if we you can grant us access to the QA cloud asap since we need to start setting up the environments and start testing the products. The release is on the 24th (Oct). Regards, Evanthika On Mon, Oct 20, 2014 at 5:15 PM, Rasanjaya Subasinghe rasanj...@wso2.com wrote: Hi, The new setup is almost configured and linux bases images are already uploaded and tested.And newly system can be accessible by OT credentials. But before gain access to the private cloud you need to ask yasith to enable the user credentials. Thank you. -- ~Thanks Yasith Tharindu,*WSO2 Inc,* Blog : http://www.yasith.info Twitter : http://twitter.com/yasithnd LinkedIn : http://www.linkedin.com/in/yasithnd GPG ID : *57CEE66E* *US : +1 (408) 754-7388 %28408%29%20754-7388 - 51926* *LK : +94 (011) 214 5345 - 1005739* ' lean ' enterprise ' middleware ' http://wso2.com -- *Asanthi Kulasinghe* WSO2 Inc; http://www.wso2.com/. Mobile: +94777355522 -- *Aparna Karunarathna.* *Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533 0714002533* -- *Anjana Fernando* Senior Technical Lead WSO2 Inc. | http://wso2.com lean . enterprise . middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem with registry mounting with multiple mounts
Pulasthi, As I understand you have to change the AS mount as below. mount path=/_system/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount i.e. As Senaka has mentioned you aren't trying to mount /_system/governance of AS, but rather /_system/as/governance to /_system/governance of GREG. Shazni Nazeer Senior Software Engineer Mob : +94 37331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com On Wed, Oct 22, 2014 at 1:21 AM, Senaka Fernando sen...@wso2.com wrote: Pulasthi, You have mounted AS on G-Reg but not G-Reg on AS right? This is not the normal way of setting this up. Any reason for doing this? Thanks, Senaka. On Tuesday, October 21, 2014, Pulasthi Supun pulas...@wso2.com wrote: Hi Senaka/All, Consider the following mounting scenario A greg has its governance space mounted mount path=/_system/governance overwrite=true instanceIdreggov/instanceId targetPath/_system/governance/targetPath /mount And the governance space of a separate AS server is mounted to a different path in the greg. mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount When the mounts are done mount does not work properly everything under /_system/as/governance is replaced by resources that are in /_system/governance . So the governance space of the greg is populated into both paths. When we remove the mount of the greg and only mount the governance of AS, it works properly. Is this a known bug?. Regards Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- *[image: http://wso2.com] http://wso2.comSenaka Fernando* Solutions Architect; WSO2 Inc.; http://wso2.com *Member; Apache Software Foundation; http://apache.org http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408 754 7388 %2B1%20408%20754%207388; ext: 51736*; *M: +44 782 741 1966 %2B44%20782%20741%201966Linked-In: http://linkedin.com/in/senakafernando http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware ___ 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] API Manager 1.8.0 pack 20-10-2014
Ticket has been resolved and the updated scripts can be obtained from here till a new pack is issued, https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/apimgt/1.8.0/modules/distribution/resources/sql/ You can use these scripts instead of the ones in the 20 October pack to create databases for your testing On 22 October 2014 10:02, Uvindra Dias Jayasinha uvin...@wso2.com wrote: Yes you can use the scripts from the previous pack to continue but refrain from testing any *work flow* related functionality until we resolve this for the moment. We will change this so that it is backward compatible. On 22 October 2014 09:59, Yasassri Ratnayake yasas...@wso2.com wrote: Hi Uvindra, I'm using *mysql 5.5.40*. Till you fix this issue is it OK if we use the scripts from the 6th October pack since this issue is blocking us. With regards, On Wed, Oct 22, 2014 at 9:50 AM, Uvindra Dias Jayasinha uvin...@wso2.com wrote: The change to the script was introduced via the resolution of this ticket, https://wso2.org/jira/browse/APIMANAGER-2536 This issue is MySQL version dependent and does not occur on version 5.6.5 and above. Most probably this was tested on a newer version of MySQL during development and therefore did not cause any issues. On 22 October 2014 09:41, Uvindra Dias Jayasinha uvin...@wso2.com wrote: I am looking into this, the script has been changed recently On 22 October 2014 07:53, Yasassri Ratnayake yasas...@wso2.com wrote: Hi All, There seems to be an Syntax error in the mysql DB scripts(apim scripts), and due to this some of the tables do not get created. I have reported this at [1]. Since this is a blocking issue pls provide a fix ASAP. When the server is started with -Dsetup parameter the server doesn't even throw an error indicating that the DB scripts haven't executed properly. Isn't this another concern? [1] - https://wso2.org/jira/browse/APIMANAGER-2981 -- Yasassri Ratnayake Software Engineer - QA WSO2 Inc ; http://wso2.com lean.enterprise.middleware *Mobile : +94715933168 %2B94715933168* *Blog : http://yasassriratnayake.blogspot.com/ http://yasassriratnayake.blogspot.com/* -- Regards, Uvindra Mobile: 33962 -- Regards, Uvindra Mobile: 33962 -- Yasassri Ratnayake Software Engineer - QA WSO2 Inc ; http://wso2.com lean.enterprise.middleware *Mobile : +94715933168 %2B94715933168* *Blog : http://yasassriratnayake.blogspot.com/ http://yasassriratnayake.blogspot.com/* -- Regards, Uvindra Mobile: 33962 -- Regards, Uvindra Mobile: 33962 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] API Manager 1.8.0 pack 20-10-2014
Thanks, We will be using the provided scripts for time being. On Wed, Oct 22, 2014 at 2:52 PM, Uvindra Dias Jayasinha uvin...@wso2.com wrote: Ticket has been resolved and the updated scripts can be obtained from here till a new pack is issued, https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/apimgt/1.8.0/modules/distribution/resources/sql/ You can use these scripts instead of the ones in the 20 October pack to create databases for your testing On 22 October 2014 10:02, Uvindra Dias Jayasinha uvin...@wso2.com wrote: Yes you can use the scripts from the previous pack to continue but refrain from testing any *work flow* related functionality until we resolve this for the moment. We will change this so that it is backward compatible. On 22 October 2014 09:59, Yasassri Ratnayake yasas...@wso2.com wrote: Hi Uvindra, I'm using *mysql 5.5.40*. Till you fix this issue is it OK if we use the scripts from the 6th October pack since this issue is blocking us. With regards, On Wed, Oct 22, 2014 at 9:50 AM, Uvindra Dias Jayasinha uvin...@wso2.com wrote: The change to the script was introduced via the resolution of this ticket, https://wso2.org/jira/browse/APIMANAGER-2536 This issue is MySQL version dependent and does not occur on version 5.6.5 and above. Most probably this was tested on a newer version of MySQL during development and therefore did not cause any issues. On 22 October 2014 09:41, Uvindra Dias Jayasinha uvin...@wso2.com wrote: I am looking into this, the script has been changed recently On 22 October 2014 07:53, Yasassri Ratnayake yasas...@wso2.com wrote: Hi All, There seems to be an Syntax error in the mysql DB scripts(apim scripts), and due to this some of the tables do not get created. I have reported this at [1]. Since this is a blocking issue pls provide a fix ASAP. When the server is started with -Dsetup parameter the server doesn't even throw an error indicating that the DB scripts haven't executed properly. Isn't this another concern? [1] - https://wso2.org/jira/browse/APIMANAGER-2981 -- Yasassri Ratnayake Software Engineer - QA WSO2 Inc ; http://wso2.com lean.enterprise.middleware *Mobile : +94715933168 %2B94715933168* *Blog : http://yasassriratnayake.blogspot.com/ http://yasassriratnayake.blogspot.com/* -- Regards, Uvindra Mobile: 33962 -- Regards, Uvindra Mobile: 33962 -- Yasassri Ratnayake Software Engineer - QA WSO2 Inc ; http://wso2.com lean.enterprise.middleware *Mobile : +94715933168 %2B94715933168* *Blog : http://yasassriratnayake.blogspot.com/ http://yasassriratnayake.blogspot.com/* -- Regards, Uvindra Mobile: 33962 -- Regards, Uvindra Mobile: 33962 -- Yasassri Ratnayake Software Engineer - QA WSO2 Inc ; http://wso2.com lean.enterprise.middleware *Mobile : +94715933168* *Blog : http://yasassriratnayake.blogspot.com/ http://yasassriratnayake.blogspot.com/* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem with registry mounting with multiple mounts
Hi Pulasthi, Have you done this configuration in GREG or AS? If you want to mount /_system/governance path in AS to /_system/as/governance in GREG, you have to put the following in AS mount path=/_system/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount and mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount in GREG. Replace the instanceId as appropriate Shazni Nazeer Senior Software Engineer Mob : +94 37331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com On Wed, Oct 22, 2014 at 3:11 PM, Pulasthi Supun pulas...@wso2.com wrote: Hi Shazni, Nope, the configs are correct mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount this config means to mount the /_system/governance path in AS, into the /_system/as/governance. Regards, Pulasthi On Wed, Oct 22, 2014 at 2:45 PM, Shazni Nazeer sha...@wso2.com wrote: Pulasthi, As I understand you have to change the AS mount as below. mount path=/_system/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount i.e. As Senaka has mentioned you aren't trying to mount /_system/governance of AS, but rather /_system/as/governance to /_system/governance of GREG. Shazni Nazeer Senior Software Engineer Mob : +94 37331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com On Wed, Oct 22, 2014 at 1:21 AM, Senaka Fernando sen...@wso2.com wrote: Pulasthi, You have mounted AS on G-Reg but not G-Reg on AS right? This is not the normal way of setting this up. Any reason for doing this? Thanks, Senaka. On Tuesday, October 21, 2014, Pulasthi Supun pulas...@wso2.com wrote: Hi Senaka/All, Consider the following mounting scenario A greg has its governance space mounted mount path=/_system/governance overwrite=true instanceIdreggov/instanceId targetPath/_system/governance/targetPath /mount And the governance space of a separate AS server is mounted to a different path in the greg. mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount When the mounts are done mount does not work properly everything under /_system/as/governance is replaced by resources that are in /_system/governance . So the governance space of the greg is populated into both paths. When we remove the mount of the greg and only mount the governance of AS, it works properly. Is this a known bug?. Regards Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- *[image: http://wso2.com] http://wso2.comSenaka Fernando* Solutions Architect; WSO2 Inc.; http://wso2.com *Member; Apache Software Foundation; http://apache.org http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408 754 7388 %2B1%20408%20754%207388; ext: 51736*; *M: +44 782 741 1966 %2B44%20782%20741%201966Linked-In: http://linkedin.com/in/senakafernando http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [BAM][API-Manager] issue in updating API Manager statistics dashboard with BAM
Hi Lakshman, First you should make sure all the required statistics are published to BAM with the data publisher. In order to do it you can, 1. Add a debug log to the data publisher publishing method to log all the messages passed through it. 2. Then you can use Cassandra Explorer or another tool like cassandra cli to see whether all the events sent to BAM are stored in Cassandra. 3. ONLY AFTER the above two was confirmed working properly we have to look into next stage, summarised data. 4. Clean H2/MySQL tables and run the hive script again with drop table commands for all Hive tables at the start of the script. 5. Then if the Hive query runs without any issue look at the summarised data in H2/MySQL tables. Therefore let the publisher publish several events to BAM and then verify the above given steps. There were several situations I have seen earlier that had problems with not publishing data due to an other publisher side error in logic. Thanks. *Maninda Edirisooriya* Senior Software Engineer *WSO2, Inc.*lean.enterprise.middleware. *Blog* : http://maninda.blogspot.com/ *E-mail* : mani...@wso2.com *Skype* : @manindae *Twitter* : @maninda On Wed, Oct 22, 2014 at 9:28 AM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Gihan, I will do that test and get back to you. Thanks On Wed, Oct 22, 2014 at 9:23 AM, Inosh Goonewardena in...@wso2.com wrote: Hi, On Wednesday, October 22, 2014, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Inosh, data in cassandra database are summized to a relational database. records in cassandra database and this relational table is same. so I think there is no problem with cassandra explorer. Ok understood. I have misread your previous email. Thanks On Wed, Oct 22, 2014 at 9:14 AM, Inosh Goonewardena in...@wso2.com wrote: Hi Lakshman, You mean data is therw in cassandra and cassandra explorer doesn't show these data? Did you compare by using cassandra CLI tool? On Wednesday, October 22, 2014, Lakshman Udayakantha lakshm...@wso2.com wrote: HI Gihan , They are lost randomly. Thanks On Wed, Oct 22, 2014 at 9:00 AM, Gihan Anuruddha gi...@wso2.com wrote: Hi Lakshman, How many records did you send to BAM and how many events are lost? Regards, Gihan On Wed, Oct 22, 2014 at 8:18 AM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Gihan, These data in cassandra database are summarised by a hive script and insert into a relational database. I checked that relational database table also. Number of records in cassandra database and relational database table are same. Then it should not be a problem with cassandra explorer. Thanks On Wed, Oct 22, 2014 at 7:53 AM, Manoj Gunawardena man...@wso2.com wrote: Hi, This can be an issue for other products as well. ES, AS and EMM also publishing data to BAM. In ES we are using load balancing data publisher. I also notice if we call stop method, sometimes data not get publish to BAM. We changed this to initiate data publisher at the first event and call data publishers stop method in the bundle activator's stop method. Need to test with load. Thanks On Tue, Oct 21, 2014 at 10:07 PM, Gihan Anuruddha gi...@wso2.com wrote: Hi Lakshman, It should be in Cassandra if publishEvent method executes. How do you validate the data loss in Cassandra side? BAM embedded Cassandra explorer is a not good tool for that. Can you please verify that with tool like CQL or cassandra-cli? Regards, Gihan On Tue, Oct 21, 2014 at 9:18 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi All, I am working on https://wso2.org/jira/browse/APIMANAGER-2064. By looking at the Cassandra database on BAM, I could figure out some requests publish to Cassandra database and some do not when I invoke the api. That is the reason for the missing requests in statistics dashboard. I tried debugging the APIMgtUsageDataBridgeDataPublisher class since it has publishEvent method to publish data. APIMgtUsageDataBridgeDataPublisher class uses LoadBalancingDataPublisher as the dataPublisher in this case. I found that every time when I invoke the api via rest client, this method will execute. but randomly some requests are not publishing in Cassandra database. I used the latest org.wso2.carbon.databridge.agent.thrift jar. but the problem is still there. if requests come to publishEvent method, should they publish in Cassandra database?and is there any known reason for data get not published in cassendra database. if not where I can find the data publisher to cassendra in BAM from API Manager. Thanks -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005 0711241005* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- W.G. Gihan Anuruddha Senior Software Engineer | WSO2, Inc. M: +94772272595
Re: [Dev] [APIM][BAM] issue with integrating APIM 1.8.0 with BAM 2.5.0
Hi All, As per the offline discussion with Maninda, after changing the port offset to another value rather than zero, it shouldn't change the port for WSO2BAM_CASSANDRA_DATASOURCE in bam-datasource.xml in BAM 2.5.0. with that change setup is working properly Thanks On Wed, Oct 22, 2014 at 1:55 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi All, I am trying to integrate BAM 2.5.0 with APIM 1.8.0. I followed https://docs.wso2.com/display/AM170/Publishing+API+Runtime+Statistics to do this. After I configured BAM and started it, got the following exception and can’t publish the data. anyone has any idea about this error? [2014-10-22 13:42:00,008] INFO {org.wso2.carbon.analytics.hive.task.HiveScriptExecutorTask} - Running script executor task for script am_stats_analyzer. [Wed Oct 22 13:42:00 GMT+05:30 2014] Hive history file=/Users/lakshman/Documents/wso2_products/BAM/wso2bam-2.5.0/tmp/hive/root-querylogs/hive_job_log_lakshman_201410221342_1864185710.txt 2014-10-22 13:42:00.943 java[15403:9407] Unable to load realm info from SCDynamicStore [2014-10-22 13:42:01,367] ERROR {org.apache.hadoop.hive.cassandra.CassandraProxyClient} - Error while trying to connect to cassandra host:localhost org.apache.hadoop.hive.cassandra.CassandraException: unable to connect to server at org.apache.hadoop.hive.cassandra.CassandraClientHolder.initClient(CassandraClientHolder.java:65) at org.apache.hadoop.hive.cassandra.CassandraClientHolder.init(CassandraClientHolder.java:40) at org.apache.hadoop.hive.cassandra.CassandraProxyClient.createConnection(CassandraProxyClient.java:200) at org.apache.hadoop.hive.cassandra.CassandraProxyClient.initializeConnection(CassandraProxyClient.java:226) at org.apache.hadoop.hive.cassandra.CassandraProxyClient.init(CassandraProxyClient.java:142) at org.apache.hadoop.hive.cassandra.CassandraManager.openConnection(CassandraManager.java:219) at org.apache.hadoop.hive.cassandra.CassandraStorageHandler.preCreateTable(CassandraStorageHandler.java:284) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.createTable(HiveMetaStoreClient.java:396) at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:540) at org.apache.hadoop.hive.ql.exec.DDLTask.createTable(DDLTask.java:3479) at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:225) at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:129) at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:62) at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1351) at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1126) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:934) at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:201) at org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:187) at org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.executeHiveQuery(HiveExecutorServiceImpl.java:578) at org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:286) at org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:189) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:695) Caused by: org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused at org.apache.thrift.transport.TSocket.open(TSocket.java:183) at org.apache.thrift.transport.TFramedTransport.open(TFramedTransport.java:81) at org.apache.hadoop.hive.cassandra.CassandraClientHolder.initClient(CassandraClientHolder.java:63) ... 25 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:382) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:241) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:228) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:431) at java.net.Socket.connect(Socket.java:527) at org.apache.thrift.transport.TSocket.open(TSocket.java:178) ... 27 more FAILED: Error in metadata: java.lang.NullPointerException [2014-10-22 13:42:01,370] ERROR {org.apache.hadoop.hive.ql.exec.Task} - FAILED: Error in metadata: java.lang.NullPointerException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.NullPointerException at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:546) at org.apache.hadoop.hive.ql.exec.DDLTask.createTable(DDLTask.java:3479) at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:225) at
[Dev] Carbon Kernel COMPILATION ERROR : Feature Manager Core
Hi, When building the Carbon kernel 4.3.0 i am getting the following compilation error. Please advice me how to proceed from here. The Git repository is https://github.com/wso2/carbon4-kernel/tree/release-4.3.0 [INFO] - [ERROR] COMPILATION ERROR : [INFO] - [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/ ProfileChangeOperation.java:[143,72] error: incompatible types [ERROR] Object /Users/irham/workspace/products/carbon/carbon4-kernel/core/feature-manager/ org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/ carbon/feature/mgt/core/operations/ProfileChangeOperation.java:[159,72] error: incompatible types [ERROR] Object /Users/irham/workspace/products/carbon/carbon4-kernel/core/feature-manager/ org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/ carbon/feature/mgt/core/util/ProvisioningUtils.java:[92,50] error: incompatible types [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ ProvisioningUtils.java:[117,50] error: incompatible types [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ ProvisioningUtils.java:[122,50] error: incompatible types [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ ProvisioningUtils.java:[190,14] error: type IQuery does not take parameters [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ ProvisioningUtils.java:[207,14] error: type IQuery does not take parameters [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ ProvisioningUtils.java:[226,14] error: type IQuery does not take parameters [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ ProvisioningUtils.java:[238,14] error: type IQuery does not take parameters [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/ operations/RevertOperation.java:[54,104] error: incompatible types [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/ operations/RevertOperation.java:[59,105] error: incompatible types [INFO] 11 errors [INFO] - [INFO] [INFO] Reactor Summary: [INFO] [INFO] WSO2 Carbon - Parent Pom .. SUCCESS [0.155s] [INFO] WSO2 Carbon - Service Stubs - Aggregator Module ... SUCCESS [0.064s] [INFO] WSO2 Carbon - Default Authenticator Stub .. SUCCESS [4.381s] [INFO] WSO2 Carbon Core - Common Stub SUCCESS [7.454s] [INFO] WSO2 Carbon - Component Manager Stub .. SUCCESS [5.345s] [INFO] WSO2 Carbon - Server Role Management Stub . SUCCESS [2.643s] [INFO] WSO2 Carbon - Server Administration Stub .. SUCCESS [3.423s] [INFO] WSO2 Carbon Kernel - Parent Maven Project . SUCCESS [0.058s] [INFO] WSO2 Carbon - Bootstrap ... SUCCESS [0.822s] [INFO] WSO2 Carbon - Logging . SUCCESS [0.952s] [INFO] WSO2 Carbon - Queuing . SUCCESS [0.333s] [INFO] WSO2 Carbon - Secure Vault SUCCESS [0.517s] [INFO] WSO2 Carbon - Base SUCCESS [0.676s] [INFO] WSO2 Carbon - User Manager API SUCCESS [0.605s] [INFO] WSO2 Carbon - Registry API SUCCESS [7.805s] [INFO] WSO2 Carbon - Utilities ... SUCCESS [3.429s] [INFO] WSO2 Carbon - JSR 107 API . SUCCESS [1.686s] [INFO] WSO2 Carbon - carbon tomcat bundle SUCCESS [1.035s] [INFO] WSO2 Carbon - Xbootclasspath library for Registry Kernel SUCCESS [0.230s] [INFO] WSO2 Carbon - New Data Sources Common . SUCCESS [0.289s] [INFO] WSO2 Carbon - New Data Sources RDBMS .. SUCCESS [0.845s] [INFO] WSO2 Carbon - User Manager Kernel . SUCCESS [3.357s] [INFO] WSO2 Carbon - Registry Kernel . SUCCESS [3:58.351s] [INFO] WSO2 Carbon -
[Dev] Permission issue when changing the life cycle state in ES publisher
Hi, I'm getting the following exception when changing the life-cycle state ( to Approve or Reject) in mobile publisher with reviewer role. JaggeryTravellingPermissionLifeCycle org.wso2.carbon.registry.core.secure.AuthorizationFailedException: Resource update failed. User rev is not authorized to update the resource /_system/governance/mobileapps/pub/android/WSO2 App/1.0. [2014-10-22 15:33:27,966] ERROR - GovernanceArtifactImpl Invoking lifecycle action Approve failed org.wso2.carbon.registry.core.exceptions.RegistryException: Resource update failed. User rev is not authorized to update the resource /_system/governance/mobileapps/pub/android/WSO2 App/1.0. at org.wso2.jaggery.scxml.aspects.JaggeryTravellingPermissionLifeCycle.invoke(JaggeryTravellingPermissionLifeCycle.java:510) at org.wso2.carbon.governance.registry.eventing.handlers.GovernanceEventingHandler.invokeAspect(GovernanceEventingHandler.java:243) at org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.invokeAspect(HandlerManager.java:2792) at org.wso2.carbon.registry.core.jdbc.handlers.HandlerLifecycleManager.invokeAspect(HandlerLifecycleManager.java:531) at org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.invokeAspect(EmbeddedRegistry.java:2550) at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.invokeAspect(CacheBackedRegistry.java:427) at org.wso2.carbon.registry.core.session.UserRegistry.invokeAspect(UserRegistry.java:1930) at org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.invokeAction(GovernanceArtifactImpl.java:625) at org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.invokeAction(GovernanceArtifactImpl.java:605) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.mozilla.javascript.gen.artifacts_17._c_anonymous_21(artifacts:283) at org.mozilla.javascript.gen.artifacts_17.call(artifacts) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.apis.v_1.c4._c_mobileAppsLifeCycleChange_24(/publisher/apis/v1/lifecycle_api_router.jag:473) at org.jaggeryjs.rhino.publisher.apis.v_1.c4.call(/publisher/apis/v1/lifecycle_api_router.jag) at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63) at org.jaggeryjs.rhino.publisher.apis.v_1.c4._c_anonymous_9(/publisher/apis/v1/lifecycle_api_router.jag:138) at org.jaggeryjs.rhino.publisher.apis.v_1.c4.call(/publisher/apis/v1/lifecycle_api_router.jag) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.publisher.modules.c4._c_anonymous_12(/publisher/modules/router-g.js:183) at org.jaggeryjs.rhino.publisher.modules.c4.call(/publisher/modules/router-g.js) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.apis.v_1.c4._c_anonymous_1(/publisher/apis/v1/lifecycle_api_router.jag:438) at org.jaggeryjs.rhino.publisher.apis.v_1.c4.call(/publisher/apis/v1/lifecycle_api_router.jag) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.modules.c6._c_anonymous_17(/publisher/modules/publisher.js:438) at org.jaggeryjs.rhino.publisher.modules.c6.call(/publisher/modules/publisher.js) at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23) at org.mozilla.javascript.gen._store__server_js_8._c_anonymous_17([store]/server.js:271) at org.mozilla.javascript.gen._store__server_js_8.call([store]/server.js) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.modules.c6._c_anonymous_16(/publisher/modules/publisher.js:433) at org.jaggeryjs.rhino.publisher.modules.c6.call(/publisher/modules/publisher.js) at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52) at org.jaggeryjs.rhino.publisher.apis.v_1.c4._c_script_0(/publisher/apis/v1/lifecycle_api_router.jag:24) at org.jaggeryjs.rhino.publisher.apis.v_1.c4.call(/publisher/apis/v1/lifecycle_api_router.jag) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) at org.jaggeryjs.rhino.publisher.apis.v_1.c4.call(/publisher/apis/v1/lifecycle_api_router.jag) at org.jaggeryjs.rhino.publisher.apis.v_1.c4.exec(/publisher/apis/v1/lifecycle_api_router.jag) at
Re: [Dev] WSO2 Committers += Tishan Dahanayakage
Congrats Tishan! Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Fri, Oct 17, 2014 at 10:41 AM, Sriskandarajah Suhothayan s...@wso2.com wrote: Hi all, It's our pleasure to welcome Tishan Dahanayakage as a WSO2 Committer. Tishan has contributed immensely to WSO2 Complex Event Processor especially on Siddhi and shown great commitment. In recognition of his contribution, he has been voted as a WSO2 Commiter. Welcome aboard and keep up the good work ! Regards Suho. -- *S. Suhothayan* Technical Lead Team Lead of WSO2 Complex Event Processor *WSO2 Inc. *http://wso2.com * http://wso2.com/* lean . enterprise . middleware *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog: http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter: http://twitter.com/suhothayan http://twitter.com/suhothayan | linked-in: http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan* ___ 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] Carbon Kernel COMPILATION ERROR : Feature Manager Core
Hi Sameera, It works after using JDK6 to build Thanks, Iqbal On Wed, Oct 22, 2014 at 4:46 PM, Sameera Jayasoma same...@wso2.com wrote: Use JDK6 to build Thanks, Sameera. On Wed, Oct 22, 2014 at 4:44 PM, Irham Iqbal iq...@wso2.com wrote: Hi, When building the Carbon kernel 4.3.0 i am getting the following compilation error. Please advice me how to proceed from here. The Git repository is https://github.com/wso2/carbon4-kernel/tree/release-4.3.0 [INFO] - [ERROR] COMPILATION ERROR : [INFO] - [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/ ProfileChangeOperation.java:[143,72] error: incompatible types [ERROR] Object /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/ ProfileChangeOperation.java:[159,72] error: incompatible types [ERROR] Object /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[92,50] error: incompatible types [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ ProvisioningUtils.java:[117,50] error: incompatible types [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ ProvisioningUtils.java:[122,50] error: incompatible types [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ ProvisioningUtils.java:[190,14] error: type IQuery does not take parameters [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ ProvisioningUtils.java:[207,14] error: type IQuery does not take parameters [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ ProvisioningUtils.java:[226,14] error: type IQuery does not take parameters [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ ProvisioningUtils.java:[238,14] error: type IQuery does not take parameters [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/ operations/RevertOperation.java:[54,104] error: incompatible types [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/ operations/RevertOperation.java:[59,105] error: incompatible types [INFO] 11 errors [INFO] - [INFO] [INFO] Reactor Summary: [INFO] [INFO] WSO2 Carbon - Parent Pom .. SUCCESS [0.155s] [INFO] WSO2 Carbon - Service Stubs - Aggregator Module ... SUCCESS [0.064s] [INFO] WSO2 Carbon - Default Authenticator Stub .. SUCCESS [4.381s] [INFO] WSO2 Carbon Core - Common Stub SUCCESS [7.454s] [INFO] WSO2 Carbon - Component Manager Stub .. SUCCESS [5.345s] [INFO] WSO2 Carbon - Server Role Management Stub . SUCCESS [2.643s] [INFO] WSO2 Carbon - Server Administration Stub .. SUCCESS [3.423s] [INFO] WSO2 Carbon Kernel - Parent Maven Project . SUCCESS [0.058s] [INFO] WSO2 Carbon - Bootstrap ... SUCCESS [0.822s] [INFO] WSO2 Carbon - Logging . SUCCESS [0.952s] [INFO] WSO2 Carbon - Queuing . SUCCESS [0.333s] [INFO] WSO2 Carbon - Secure Vault SUCCESS [0.517s] [INFO] WSO2 Carbon - Base SUCCESS [0.676s] [INFO] WSO2 Carbon - User Manager API SUCCESS [0.605s] [INFO] WSO2 Carbon - Registry API SUCCESS [7.805s] [INFO] WSO2 Carbon - Utilities ... SUCCESS [3.429s] [INFO] WSO2 Carbon - JSR 107 API . SUCCESS [1.686s] [INFO] WSO2 Carbon - carbon tomcat bundle SUCCESS [1.035s] [INFO] WSO2 Carbon - Xbootclasspath library for Registry
Re: [Dev] Carbon Kernel COMPILATION ERROR : Feature Manager Core
Use JDK6 to build Thanks, Sameera. On Wed, Oct 22, 2014 at 4:44 PM, Irham Iqbal iq...@wso2.com wrote: Hi, When building the Carbon kernel 4.3.0 i am getting the following compilation error. Please advice me how to proceed from here. The Git repository is https://github.com/wso2/carbon4-kernel/tree/release-4.3.0 [INFO] - [ERROR] COMPILATION ERROR : [INFO] - [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/ ProfileChangeOperation.java:[143,72] error: incompatible types [ERROR] Object /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/ ProfileChangeOperation.java:[159,72] error: incompatible types [ERROR] Object /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[92,50] error: incompatible types [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ ProvisioningUtils.java:[117,50] error: incompatible types [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ ProvisioningUtils.java:[122,50] error: incompatible types [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ ProvisioningUtils.java:[190,14] error: type IQuery does not take parameters [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ ProvisioningUtils.java:[207,14] error: type IQuery does not take parameters [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ ProvisioningUtils.java:[226,14] error: type IQuery does not take parameters [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ ProvisioningUtils.java:[238,14] error: type IQuery does not take parameters [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/ operations/RevertOperation.java:[54,104] error: incompatible types [ERROR] /Users/irham/workspace/products/carbon/carbon4- kernel/core/feature-manager/org.wso2.carbon.feature.mgt. core/src/main/java/org/wso2/carbon/feature/mgt/core/ operations/RevertOperation.java:[59,105] error: incompatible types [INFO] 11 errors [INFO] - [INFO] [INFO] Reactor Summary: [INFO] [INFO] WSO2 Carbon - Parent Pom .. SUCCESS [0.155s] [INFO] WSO2 Carbon - Service Stubs - Aggregator Module ... SUCCESS [0.064s] [INFO] WSO2 Carbon - Default Authenticator Stub .. SUCCESS [4.381s] [INFO] WSO2 Carbon Core - Common Stub SUCCESS [7.454s] [INFO] WSO2 Carbon - Component Manager Stub .. SUCCESS [5.345s] [INFO] WSO2 Carbon - Server Role Management Stub . SUCCESS [2.643s] [INFO] WSO2 Carbon - Server Administration Stub .. SUCCESS [3.423s] [INFO] WSO2 Carbon Kernel - Parent Maven Project . SUCCESS [0.058s] [INFO] WSO2 Carbon - Bootstrap ... SUCCESS [0.822s] [INFO] WSO2 Carbon - Logging . SUCCESS [0.952s] [INFO] WSO2 Carbon - Queuing . SUCCESS [0.333s] [INFO] WSO2 Carbon - Secure Vault SUCCESS [0.517s] [INFO] WSO2 Carbon - Base SUCCESS [0.676s] [INFO] WSO2 Carbon - User Manager API SUCCESS [0.605s] [INFO] WSO2 Carbon - Registry API SUCCESS [7.805s] [INFO] WSO2 Carbon - Utilities ... SUCCESS [3.429s] [INFO] WSO2 Carbon - JSR 107 API . SUCCESS [1.686s] [INFO] WSO2 Carbon - carbon tomcat bundle SUCCESS [1.035s] [INFO] WSO2 Carbon - Xbootclasspath library for Registry Kernel SUCCESS [0.230s] [INFO] WSO2 Carbon - New Data Sources Common . SUCCESS [0.289s] [INFO] WSO2 Carbon - New Data Sources RDBMS ..
Re: [Dev] Create HttpServletRequest programatically.
Hi Manoj/Rajeevan, I could sort out my issue without using HttpServletRequest, AFAIK there is no mock object creation framework used in the carbon framework. On Tue, Oct 21, 2014 at 12:36 PM, Manoj Gunawardena man...@wso2.com wrote: Hi, Yes, Spring and Struts both has Servlet mock object creation. But if use easyMock, we can use it for other mock object create purposes as well. Is there any other mock object frameworks using In our products? Thanks On Tue, Oct 21, 2014 at 12:20 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi Manoj/Rajeevan, Thanks for the response, I'll check both EasyMock and Spring approach. On Tue, Oct 21, 2014 at 12:16 PM, Rajeevan Vimalanathan rajeev...@wso2.com wrote: Hi Godwin, You can simply use spring-test module if your project already has dependency for spring. *org.springframework.mock.web.MockHttpServletRequest [1] *class will do the required things. [1] http://docs.spring.io/spring/docs/3.0.x/api/org/springframework/mock/web/MockHttpServletRequest.html Thanks, Rajeevan On Tue, Oct 21, 2014 at 11:38 AM, Manoj Gunawardena man...@wso2.com wrote: Hi Amila, You have to create mock object of HttpservletRequest. Can we use EasyMock in our products. Or currently we are using any other mock object creation frameworks? http://easymock.org Thanks On Tue, Oct 21, 2014 at 11:27 AM, Godwin Amila Shrimal god...@wso2.com wrote: Hi, I am working on test automation of OAuth, In that I need to pass a HttpServletRequest object to apache amber oauth2 API and get the authorization code. Can any one suggest me a better way to programmatically create a HttpServletRequest. Please see below the code snippet used to get the authorization code. OAuthAuthzResponse authzResponse = OAuthAuthzResponse .oauthCodeAuthzResponse(request) String code = authzResponse.getCode(); 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 -- 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 -- Best Regards, V.Rajeevan Software Engineer, WSO2 Inc. :http://wso2.com Mobile : +94 773090875 Email : rajeev...@wso2.com -- *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 -- Manoj Gunawardena Tech Lead WSO2, Inc.: http://wso2.com lean.enterprise.middleware Mobile : +94 77 2291643 -- *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] Missing delete user operation in RemoteUserStoreManagerServiceClient and add user with claims in UserManagementClient of TAF 4.2.8
Hi, So I will be adding below method to the org.wso2.carbon.automation.api.clients.identity.usermgt.remote.RemoteUserStoreManagerServiceClient which would be used in my test cases to create and delete users accordingly. public void deleteUser(String username) throws RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException { remoteUserStoreManagerServiceStub.deleteUser(username); } Thanks, Malithi. On Wed, Oct 22, 2014 at 1:39 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Yes please ahead and add the missing method. Thanks, Krishantha. On Wed, Oct 22, 2014 at 1:27 PM, Malithi Edirisinghe malit...@wso2.com wrote: Copying Krishantha. On Wed, Oct 22, 2014 at 11:47 AM, Malithi Edirisinghe malit...@wso2.com wrote: Hi, I'm working on writing integration tests for openid. In order to test the open id flow I have implemented a parameterized test case that run for different parameters. Here as per the received parameters I'm creating a user before the test method and delete at the end. I also create claim values for that user. In the TAF 4.2.8 there is a RemoteUserStoreManagerServiceClient class that calls to the RemoteUserStoreManagerService service via RemoteUserStoreManagerServiceStub and UserManagementClient class that calls to the UserAdmin service via UserAdminStub. But RemoteUserStoreManagerServiceClient has not exposed the deleteUser operation of the stub so by using this client I cannot delete users where as UserManagementClient has not exposed the addUser operation of the stub that accept claim values as a parameter so I cannot add users with claims. Would it be ok if I add these missing methods so that I can use them in my tests. Thanks, Malithi. -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *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
[Dev] Session maintain in HttpClient
Hi, I am using org.apache.http.client.HttpClient to send http request, here I want to maintain the session. Ex. I have a web application hosted in tomcat. web app has a *test1.jsp* which set session attribute *code. *there is a another JSP called *test2.jsp* which get the session attribute *code *and print it*. *I use HttpClient and send a request to *test1.jsp *and then *test2.jsp, *when I call the *test2.jsp *it cannot get the session attribute *code *and session is not maintained. Can anyone suggest a solution for this. 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
[Dev] [Carbon] - How to revert the changes made by 'sh ciphertool.sh -Dconfigure' command?
Hi Devs, I'm working with secure vault feature in wso2 products. After we encrypting the sensitive data in configuration files using the command sh ciphertool.sh -Dconfigure, is there a way to revert the changes made? I mean if someone wants to use plain text password later on, is there a way to do it without touching the configuration files manually? Thanks, Roshan Deniyage Associate Technical Lead WSO2, Inc: http://wso2.com Mobile: +94 777636406 Twitter: *https://twitter.com/roshku https://twitter.com/roshku* LinkedIn : https://www.linkedin.com/in/roshandeniyage ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Permission issue when changing the life cycle state in ES publisher
Hi DIlan, Could you provide the states involved in the transition? Thank You, Sameera On Wed, Oct 22, 2014 at 4:27 PM, Chathura Dilan chathu...@wso2.com wrote: Hi, I'm getting the following exception when changing the life-cycle state ( to Approve or Reject) in mobile publisher with reviewer role. JaggeryTravellingPermissionLifeCycle org.wso2.carbon.registry.core.secure.AuthorizationFailedException: Resource update failed. User rev is not authorized to update the resource /_system/governance/mobileapps/pub/android/WSO2 App/1.0. [2014-10-22 15:33:27,966] ERROR - GovernanceArtifactImpl Invoking lifecycle action Approve failed org.wso2.carbon.registry.core.exceptions.RegistryException: Resource update failed. User rev is not authorized to update the resource /_system/governance/mobileapps/pub/android/WSO2 App/1.0. at org.wso2.jaggery.scxml.aspects.JaggeryTravellingPermissionLifeCycle.invoke(JaggeryTravellingPermissionLifeCycle.java:510) at org.wso2.carbon.governance.registry.eventing.handlers.GovernanceEventingHandler.invokeAspect(GovernanceEventingHandler.java:243) at org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.invokeAspect(HandlerManager.java:2792) at org.wso2.carbon.registry.core.jdbc.handlers.HandlerLifecycleManager.invokeAspect(HandlerLifecycleManager.java:531) at org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.invokeAspect(EmbeddedRegistry.java:2550) at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.invokeAspect(CacheBackedRegistry.java:427) at org.wso2.carbon.registry.core.session.UserRegistry.invokeAspect(UserRegistry.java:1930) at org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.invokeAction(GovernanceArtifactImpl.java:625) at org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.invokeAction(GovernanceArtifactImpl.java:605) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.mozilla.javascript.gen.artifacts_17._c_anonymous_21(artifacts:283) at org.mozilla.javascript.gen.artifacts_17.call(artifacts) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.apis.v_1.c4._c_mobileAppsLifeCycleChange_24(/publisher/apis/v1/lifecycle_api_router.jag:473) at org.jaggeryjs.rhino.publisher.apis.v_1.c4.call(/publisher/apis/v1/lifecycle_api_router.jag) at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63) at org.jaggeryjs.rhino.publisher.apis.v_1.c4._c_anonymous_9(/publisher/apis/v1/lifecycle_api_router.jag:138) at org.jaggeryjs.rhino.publisher.apis.v_1.c4.call(/publisher/apis/v1/lifecycle_api_router.jag) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.publisher.modules.c4._c_anonymous_12(/publisher/modules/router-g.js:183) at org.jaggeryjs.rhino.publisher.modules.c4.call(/publisher/modules/router-g.js) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.apis.v_1.c4._c_anonymous_1(/publisher/apis/v1/lifecycle_api_router.jag:438) at org.jaggeryjs.rhino.publisher.apis.v_1.c4.call(/publisher/apis/v1/lifecycle_api_router.jag) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.modules.c6._c_anonymous_17(/publisher/modules/publisher.js:438) at org.jaggeryjs.rhino.publisher.modules.c6.call(/publisher/modules/publisher.js) at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23) at org.mozilla.javascript.gen._store__server_js_8._c_anonymous_17([store]/server.js:271) at org.mozilla.javascript.gen._store__server_js_8.call([store]/server.js) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.modules.c6._c_anonymous_16(/publisher/modules/publisher.js:433) at org.jaggeryjs.rhino.publisher.modules.c6.call(/publisher/modules/publisher.js) at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52) at org.jaggeryjs.rhino.publisher.apis.v_1.c4._c_script_0(/publisher/apis/v1/lifecycle_api_router.jag:24) at org.jaggeryjs.rhino.publisher.apis.v_1.c4.call(/publisher/apis/v1/lifecycle_api_router.jag) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at
[Dev] How to run tests sequentially using @Factory and @DataProvider
Hi, I am creating tests dynamically with @Factory annotation for various set of parameters with the use of a data provider. I want these tests to be executed exactly in the order of the array of objects returned by the data provider method. Ex: @Factory(dataProvider = dp) public FactoryDataProviderSampleTest(int n) { this.n = n; } @DataProvider static public Object[][] dp() { return new Object[][] { new Object[] { 1 }, new Object[] { 2 }, }; } Here I want to execute the tests first for 1 and then for 2. I found [1] when searching the web. But setting the attribute 'group-by-instances' that they mention in the testng.xml didn't solve this problem, and the IDE complains that attribute is not allowed. Could someone please help me to solve this problem. [1] http://fruzenshtein.com/testng-dataprovider-run-tests-sequentially/ 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
[Dev] Oauth2 Access Token expiry time VS openid connect IDToken expiry time
Hi, Oauth2 access token and openid connect IDToken both contains expiry time, confusion is are any relationship between those values or access token expiry time equal to IDToken expiry time. Openid connect specification mentioned that [1] *Expiration time on or after which the ID Token MUST NOT be accepted for processing. The processing of this parameter requires that the current date/time MUST be before the expiration date/time listed in the value. Implementers MAY provide for some small leeway, usually no more than a few minutes, to account for clock skew. Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time. See RFC 3339 http://openid.net/specs/openid-connect-core-1_0.html#RFC3339 [RFC3339] for details regarding date/times in general and UTC in particular* But there is no information about how this relates to access token expiry time. WDYT? [1] http://openid.net/specs/openid-connect-core-1_0.html#IDToken -- Gayan Gunawardana Software Engineer; WSO2 Inc.; http://wso2.com/ Email: ga...@wso2.com Mobile: +94 (71) 8020933 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [BAM][API-Manager] issue in updating API Manager statistics dashboard with BAM
Hi Gihan, I sent 1 requests with the preconditions you have mentioned. only one record is missed in cassendra database for every time I sent 1 requests via APIM. Thanks On Wed, Oct 22, 2014 at 9:28 AM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Gihan, I will do that test and get back to you. Thanks On Wed, Oct 22, 2014 at 9:23 AM, Inosh Goonewardena in...@wso2.com wrote: Hi, On Wednesday, October 22, 2014, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Inosh, data in cassandra database are summized to a relational database. records in cassandra database and this relational table is same. so I think there is no problem with cassandra explorer. Ok understood. I have misread your previous email. Thanks On Wed, Oct 22, 2014 at 9:14 AM, Inosh Goonewardena in...@wso2.com wrote: Hi Lakshman, You mean data is therw in cassandra and cassandra explorer doesn't show these data? Did you compare by using cassandra CLI tool? On Wednesday, October 22, 2014, Lakshman Udayakantha lakshm...@wso2.com wrote: HI Gihan , They are lost randomly. Thanks On Wed, Oct 22, 2014 at 9:00 AM, Gihan Anuruddha gi...@wso2.com wrote: Hi Lakshman, How many records did you send to BAM and how many events are lost? Regards, Gihan On Wed, Oct 22, 2014 at 8:18 AM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Gihan, These data in cassandra database are summarised by a hive script and insert into a relational database. I checked that relational database table also. Number of records in cassandra database and relational database table are same. Then it should not be a problem with cassandra explorer. Thanks On Wed, Oct 22, 2014 at 7:53 AM, Manoj Gunawardena man...@wso2.com wrote: Hi, This can be an issue for other products as well. ES, AS and EMM also publishing data to BAM. In ES we are using load balancing data publisher. I also notice if we call stop method, sometimes data not get publish to BAM. We changed this to initiate data publisher at the first event and call data publishers stop method in the bundle activator's stop method. Need to test with load. Thanks On Tue, Oct 21, 2014 at 10:07 PM, Gihan Anuruddha gi...@wso2.com wrote: Hi Lakshman, It should be in Cassandra if publishEvent method executes. How do you validate the data loss in Cassandra side? BAM embedded Cassandra explorer is a not good tool for that. Can you please verify that with tool like CQL or cassandra-cli? Regards, Gihan On Tue, Oct 21, 2014 at 9:18 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi All, I am working on https://wso2.org/jira/browse/APIMANAGER-2064. By looking at the Cassandra database on BAM, I could figure out some requests publish to Cassandra database and some do not when I invoke the api. That is the reason for the missing requests in statistics dashboard. I tried debugging the APIMgtUsageDataBridgeDataPublisher class since it has publishEvent method to publish data. APIMgtUsageDataBridgeDataPublisher class uses LoadBalancingDataPublisher as the dataPublisher in this case. I found that every time when I invoke the api via rest client, this method will execute. but randomly some requests are not publishing in Cassandra database. I used the latest org.wso2.carbon.databridge.agent.thrift jar. but the problem is still there. if requests come to publishEvent method, should they publish in Cassandra database?and is there any known reason for data get not published in cassendra database. if not where I can find the data publisher to cassendra in BAM from API Manager. Thanks -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005 0711241005* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- 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 -- Manoj Gunawardena Tech Lead WSO2, Inc.: http://wso2.com lean.enterprise.middleware Mobile : +94 77 2291643 -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005 0711241005* -- W.G. Gihan Anuruddha Senior Software Engineer | WSO2, Inc. M: +94772272595 -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005* -- Regards, Inosh Goonewardena Associate Technical Lead- WSO2 Inc. Mobile: +94779966317 -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005* -- Regards, Inosh Goonewardena Associate Technical Lead- WSO2 Inc. Mobile: +94779966317 -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005* -- Lakshman Udayakantha WSO2 Inc. www.wso2.com
Re: [Dev] [BAM][API-Manager] issue in updating API Manager statistics dashboard with BAM
Hi Lakshman, That's is a good observation. So I believe this event should be either first one or the last one. Can you please do a another small test? Shutdown the BAM server. Delete the Cassandra data folder completely (You can find that in repository/databases/cassandra) Truncate the APIM related RDBMS tables. Run your script with 100 requests. Please try to identify the message that going to miss. I think we need to check data sending part in APIM side? Also add a debug log message to publishEvent method with static counter and print that value. So it will be easy to identify the issue. Regards, Gihan On Wed, Oct 22, 2014 at 6:37 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Gihan, I sent 1 requests with the preconditions you have mentioned. only one record is missed in cassendra database for every time I sent 1 requests via APIM. Thanks On Wed, Oct 22, 2014 at 9:28 AM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Gihan, I will do that test and get back to you. Thanks On Wed, Oct 22, 2014 at 9:23 AM, Inosh Goonewardena in...@wso2.com wrote: Hi, On Wednesday, October 22, 2014, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Inosh, data in cassandra database are summized to a relational database. records in cassandra database and this relational table is same. so I think there is no problem with cassandra explorer. Ok understood. I have misread your previous email. Thanks On Wed, Oct 22, 2014 at 9:14 AM, Inosh Goonewardena in...@wso2.com wrote: Hi Lakshman, You mean data is therw in cassandra and cassandra explorer doesn't show these data? Did you compare by using cassandra CLI tool? On Wednesday, October 22, 2014, Lakshman Udayakantha lakshm...@wso2.com wrote: HI Gihan , They are lost randomly. Thanks On Wed, Oct 22, 2014 at 9:00 AM, Gihan Anuruddha gi...@wso2.com wrote: Hi Lakshman, How many records did you send to BAM and how many events are lost? Regards, Gihan On Wed, Oct 22, 2014 at 8:18 AM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Gihan, These data in cassandra database are summarised by a hive script and insert into a relational database. I checked that relational database table also. Number of records in cassandra database and relational database table are same. Then it should not be a problem with cassandra explorer. Thanks On Wed, Oct 22, 2014 at 7:53 AM, Manoj Gunawardena man...@wso2.com wrote: Hi, This can be an issue for other products as well. ES, AS and EMM also publishing data to BAM. In ES we are using load balancing data publisher. I also notice if we call stop method, sometimes data not get publish to BAM. We changed this to initiate data publisher at the first event and call data publishers stop method in the bundle activator's stop method. Need to test with load. Thanks On Tue, Oct 21, 2014 at 10:07 PM, Gihan Anuruddha gi...@wso2.com wrote: Hi Lakshman, It should be in Cassandra if publishEvent method executes. How do you validate the data loss in Cassandra side? BAM embedded Cassandra explorer is a not good tool for that. Can you please verify that with tool like CQL or cassandra-cli? Regards, Gihan On Tue, Oct 21, 2014 at 9:18 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi All, I am working on https://wso2.org/jira/browse/APIMANAGER-2064. By looking at the Cassandra database on BAM, I could figure out some requests publish to Cassandra database and some do not when I invoke the api. That is the reason for the missing requests in statistics dashboard. I tried debugging the APIMgtUsageDataBridgeDataPublisher class since it has publishEvent method to publish data. APIMgtUsageDataBridgeDataPublisher class uses LoadBalancingDataPublisher as the dataPublisher in this case. I found that every time when I invoke the api via rest client, this method will execute. but randomly some requests are not publishing in Cassandra database. I used the latest org.wso2.carbon.databridge.agent.thrift jar. but the problem is still there. if requests come to publishEvent method, should they publish in Cassandra database?and is there any known reason for data get not published in cassendra database. if not where I can find the data publisher to cassendra in BAM from API Manager. Thanks -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005 0711241005* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- 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 -- Manoj Gunawardena Tech Lead WSO2, Inc.: http://wso2.com lean.enterprise.middleware Mobile : +94 77 2291643 -- Lakshman Udayakantha WSO2 Inc. www.wso2.com
[Dev] ES login issue with network assigned IP
Hi Sameera/Ruchira, We have noticed following behavior in latest ES based store application. If the user tries to access store application using a network assigned IP address, they won't be able to login into store app. Instead he will be redirected to the same page again and again. However login function work as expected for localhost. Is this a known issue? Regards, Chandana -- *Chandana Napagoda* Senior Software Engineer WSO2 Inc. - http://wso2.org *Email : chand...@wso2.com chand...@wso2.com**Mobile : +94718169299* *Blog :http://cnapagoda.blogspot.com http://cnapagoda.blogspot.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Tishan Dahanayakage
Congratulations Tishan..! On Wed, Oct 22, 2014 at 4:12 PM, Chamila De Alwis chami...@wso2.com wrote: Congrats Tishan! Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Fri, Oct 17, 2014 at 10:41 AM, Sriskandarajah Suhothayan s...@wso2.com wrote: Hi all, It's our pleasure to welcome Tishan Dahanayakage as a WSO2 Committer. Tishan has contributed immensely to WSO2 Complex Event Processor especially on Siddhi and shown great commitment. In recognition of his contribution, he has been voted as a WSO2 Commiter. Welcome aboard and keep up the good work ! Regards Suho. -- *S. Suhothayan* Technical Lead Team Lead of WSO2 Complex Event Processor *WSO2 Inc. *http://wso2.com * http://wso2.com/* lean . enterprise . middleware *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog: http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter: http://twitter.com/suhothayan http://twitter.com/suhothayan | linked-in: http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan* ___ 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 -- Chanuka Dissanayake *Software Engineer | **WSO2 Inc.*; http://wso2.com Mobile: +94 71 33 63 596 Email: chan...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] ES login issue with network assigned IP
Hi Chandana, I was able to reproduce the problem on my local setup. I will provide an update on this as soon as possible, could you please create a JIRA to track the issue? Thank You, Sameera On Wed, Oct 22, 2014 at 7:09 PM, Chandana Napagoda chand...@wso2.com wrote: Hi Sameera/Ruchira, We have noticed following behavior in latest ES based store application. If the user tries to access store application using a network assigned IP address, they won't be able to login into store app. Instead he will be redirected to the same page again and again. However login function work as expected for localhost. Is this a known issue? Regards, Chandana -- *Chandana Napagoda* Senior Software Engineer WSO2 Inc. - http://wso2.org *Email : chand...@wso2.com chand...@wso2.com**Mobile : +94718169299 %2B94718169299* *Blog :http://cnapagoda.blogspot.com http://cnapagoda.blogspot.com* -- Sameera Medagammaddegedara Software Engineer Contact: Email: samee...@wso2.com Mobile: + 94 077 255 3005 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [BAM][API-Manager] issue in updating API Manager statistics dashboard with BAM
Hi Gihan, I will try that way. thank you so much for the support you have given so far Thanks On Wed, Oct 22, 2014 at 6:49 PM, Gihan Anuruddha gi...@wso2.com wrote: Hi Lakshman, That's is a good observation. So I believe this event should be either first one or the last one. Can you please do a another small test? Shutdown the BAM server. Delete the Cassandra data folder completely (You can find that in repository/databases/cassandra) Truncate the APIM related RDBMS tables. Run your script with 100 requests. Please try to identify the message that going to miss. I think we need to check data sending part in APIM side? Also add a debug log message to publishEvent method with static counter and print that value. So it will be easy to identify the issue. Regards, Gihan On Wed, Oct 22, 2014 at 6:37 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Gihan, I sent 1 requests with the preconditions you have mentioned. only one record is missed in cassendra database for every time I sent 1 requests via APIM. Thanks On Wed, Oct 22, 2014 at 9:28 AM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Gihan, I will do that test and get back to you. Thanks On Wed, Oct 22, 2014 at 9:23 AM, Inosh Goonewardena in...@wso2.com wrote: Hi, On Wednesday, October 22, 2014, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Inosh, data in cassandra database are summized to a relational database. records in cassandra database and this relational table is same. so I think there is no problem with cassandra explorer. Ok understood. I have misread your previous email. Thanks On Wed, Oct 22, 2014 at 9:14 AM, Inosh Goonewardena in...@wso2.com wrote: Hi Lakshman, You mean data is therw in cassandra and cassandra explorer doesn't show these data? Did you compare by using cassandra CLI tool? On Wednesday, October 22, 2014, Lakshman Udayakantha lakshm...@wso2.com wrote: HI Gihan , They are lost randomly. Thanks On Wed, Oct 22, 2014 at 9:00 AM, Gihan Anuruddha gi...@wso2.com wrote: Hi Lakshman, How many records did you send to BAM and how many events are lost? Regards, Gihan On Wed, Oct 22, 2014 at 8:18 AM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Gihan, These data in cassandra database are summarised by a hive script and insert into a relational database. I checked that relational database table also. Number of records in cassandra database and relational database table are same. Then it should not be a problem with cassandra explorer. Thanks On Wed, Oct 22, 2014 at 7:53 AM, Manoj Gunawardena man...@wso2.com wrote: Hi, This can be an issue for other products as well. ES, AS and EMM also publishing data to BAM. In ES we are using load balancing data publisher. I also notice if we call stop method, sometimes data not get publish to BAM. We changed this to initiate data publisher at the first event and call data publishers stop method in the bundle activator's stop method. Need to test with load. Thanks On Tue, Oct 21, 2014 at 10:07 PM, Gihan Anuruddha gi...@wso2.com wrote: Hi Lakshman, It should be in Cassandra if publishEvent method executes. How do you validate the data loss in Cassandra side? BAM embedded Cassandra explorer is a not good tool for that. Can you please verify that with tool like CQL or cassandra-cli? Regards, Gihan On Tue, Oct 21, 2014 at 9:18 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi All, I am working on https://wso2.org/jira/browse/APIMANAGER-2064. By looking at the Cassandra database on BAM, I could figure out some requests publish to Cassandra database and some do not when I invoke the api. That is the reason for the missing requests in statistics dashboard. I tried debugging the APIMgtUsageDataBridgeDataPublisher class since it has publishEvent method to publish data. APIMgtUsageDataBridgeDataPublisher class uses LoadBalancingDataPublisher as the dataPublisher in this case. I found that every time when I invoke the api via rest client, this method will execute. but randomly some requests are not publishing in Cassandra database. I used the latest org.wso2.carbon.databridge.agent.thrift jar. but the problem is still there. if requests come to publishEvent method, should they publish in Cassandra database?and is there any known reason for data get not published in cassendra database. if not where I can find the data publisher to cassendra in BAM from API Manager. Thanks -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005 0711241005* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- W.G. Gihan Anuruddha Senior Software Engineer | WSO2, Inc. M: +94772272595 ___ Dev mailing list Dev@wso2.org
[Dev] Improvement to Jaggery Log HostObject
Hi all, Jaggery Log hostobject has been improved[1] in Jaggery master to support both a message and the exception object as in log4j API. i.e. You can log use it as below for all log levels. log.error(e) //print the stacktrace log.error('my error messge') //print the message log.error('my error message', e) //print both message and stacktrace FYI. [1] https://github.com/wso2/jaggery/issues/105 /Ruchira -- *Ruchira Wageesha**Associate Technical Lead* *WSO2 Inc. - lean . enterprise . middleware | wso2.com http://wso2.com* *email: ruch...@wso2.com ruch...@wso2.com, blog: ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com, mobile: +94 77 5493444* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Session maintain in HttpClient
Hi Amila, Use same httpContext object to create httpclient connections to test1 and test2 jsps. Thanks On Wed, Oct 22, 2014 at 5:45 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi, I am using org.apache.http.client.HttpClient to send http request, here I want to maintain the session. Ex. I have a web application hosted in tomcat. web app has a *test1.jsp* which set session attribute *code. *there is a another JSP called *test2.jsp* which get the session attribute *code *and print it*. *I use HttpClient and send a request to *test1.jsp *and then *test2.jsp, *when I call the *test2.jsp *it cannot get the session attribute *code *and session is not maintained. Can anyone suggest a solution for this. 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 -- 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] [AppFactory] LoadBalancingDataPublisher seems to handle failover but not load balancing
Hi gayan, In order to verify the loadbalancing of events in a round robin manner, you can have two BAM nodes pointing to its own cassandra instance (not clustered), and send the events to those BAM nodes. If your client is configured correctly for load balancing scenario, then you will see each bam nodes will have nearly equal amount of events stored in its respective BAM nodes. This is just for testing purpose to verify, but of course in real case cassandra will be clustered, hence finally even though the load is balanced within receiver nodes it stores in the same cassandra cluster, hence it's not observable from outside. Thanks, Sinthuja. On Wed, Oct 22, 2014 at 4:53 AM, Gayan Dhanushka gay...@wso2.com wrote: Hi all, I have been trying to move the AsyncDataPublisher used in App Factory to LoadBalancingDataPublisher to cater load balancing and failover. Even though [1] describes that it sends data to available receiver nodes in a round robin manner, I was only able to observe the failover scenario. Can somebody please explain ? [1] https://docs.wso2.com/display/BAM240/Setting+up+Multi+Receiver+and+Load+Balancing+Data+Agent#SettingupMultiReceiverandLoadBalancingDataAgent-Loadbalancingconfigurations Thanks GayanD -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd -- *Sinthuja Rajendran* Senior Software Engineer http://wso2.com/ WSO2, Inc.:http://wso2.com Blog: http://sinthu-rajan.blogspot.com/ Mobile: +94774273955 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [BAM][API-Manager] issue in updating API Manager statistics dashboard with BAM
Hi Lakshman, This is very useful results, Thanks for sharing. We will do the same test for ES as well. Is this test run for single BAM instance, or multiple? (load balanced environment) Thanks On Wed, Oct 22, 2014 at 6:37 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Gihan, I sent 1 requests with the preconditions you have mentioned. only one record is missed in cassendra database for every time I sent 1 requests via APIM. Thanks On Wed, Oct 22, 2014 at 9:28 AM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Gihan, I will do that test and get back to you. Thanks On Wed, Oct 22, 2014 at 9:23 AM, Inosh Goonewardena in...@wso2.com wrote: Hi, On Wednesday, October 22, 2014, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Inosh, data in cassandra database are summized to a relational database. records in cassandra database and this relational table is same. so I think there is no problem with cassandra explorer. Ok understood. I have misread your previous email. Thanks On Wed, Oct 22, 2014 at 9:14 AM, Inosh Goonewardena in...@wso2.com wrote: Hi Lakshman, You mean data is therw in cassandra and cassandra explorer doesn't show these data? Did you compare by using cassandra CLI tool? On Wednesday, October 22, 2014, Lakshman Udayakantha lakshm...@wso2.com wrote: HI Gihan , They are lost randomly. Thanks On Wed, Oct 22, 2014 at 9:00 AM, Gihan Anuruddha gi...@wso2.com wrote: Hi Lakshman, How many records did you send to BAM and how many events are lost? Regards, Gihan On Wed, Oct 22, 2014 at 8:18 AM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Gihan, These data in cassandra database are summarised by a hive script and insert into a relational database. I checked that relational database table also. Number of records in cassandra database and relational database table are same. Then it should not be a problem with cassandra explorer. Thanks On Wed, Oct 22, 2014 at 7:53 AM, Manoj Gunawardena man...@wso2.com wrote: Hi, This can be an issue for other products as well. ES, AS and EMM also publishing data to BAM. In ES we are using load balancing data publisher. I also notice if we call stop method, sometimes data not get publish to BAM. We changed this to initiate data publisher at the first event and call data publishers stop method in the bundle activator's stop method. Need to test with load. Thanks On Tue, Oct 21, 2014 at 10:07 PM, Gihan Anuruddha gi...@wso2.com wrote: Hi Lakshman, It should be in Cassandra if publishEvent method executes. How do you validate the data loss in Cassandra side? BAM embedded Cassandra explorer is a not good tool for that. Can you please verify that with tool like CQL or cassandra-cli? Regards, Gihan On Tue, Oct 21, 2014 at 9:18 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi All, I am working on https://wso2.org/jira/browse/APIMANAGER-2064. By looking at the Cassandra database on BAM, I could figure out some requests publish to Cassandra database and some do not when I invoke the api. That is the reason for the missing requests in statistics dashboard. I tried debugging the APIMgtUsageDataBridgeDataPublisher class since it has publishEvent method to publish data. APIMgtUsageDataBridgeDataPublisher class uses LoadBalancingDataPublisher as the dataPublisher in this case. I found that every time when I invoke the api via rest client, this method will execute. but randomly some requests are not publishing in Cassandra database. I used the latest org.wso2.carbon.databridge.agent.thrift jar. but the problem is still there. if requests come to publishEvent method, should they publish in Cassandra database?and is there any known reason for data get not published in cassendra database. if not where I can find the data publisher to cassendra in BAM from API Manager. Thanks -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005 0711241005* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- 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 -- Manoj Gunawardena Tech Lead WSO2, Inc.: http://wso2.com lean.enterprise.middleware Mobile : +94 77 2291643 -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005 0711241005* -- W.G. Gihan Anuruddha Senior Software Engineer | WSO2, Inc. M: +94772272595 -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005* -- Regards, Inosh Goonewardena Associate Technical Lead- WSO2 Inc. Mobile: +94779966317 -- Lakshman Udayakantha WSO2 Inc. www.wso2.com
Re: [Dev] ES login issue with network assigned IP
Great... Thanks Sameera, I have created a JIRA[1] for this issue. [1]. https://wso2.org/jira/browse/STORE-542 Regards, Chandana On Wed, Oct 22, 2014 at 7:22 PM, Sameera Medagammaddegedara samee...@wso2.com wrote: Hi Chandana, I was able to reproduce the problem on my local setup. I will provide an update on this as soon as possible, could you please create a JIRA to track the issue? Thank You, Sameera On Wed, Oct 22, 2014 at 7:09 PM, Chandana Napagoda chand...@wso2.com wrote: Hi Sameera/Ruchira, We have noticed following behavior in latest ES based store application. If the user tries to access store application using a network assigned IP address, they won't be able to login into store app. Instead he will be redirected to the same page again and again. However login function work as expected for localhost. Is this a known issue? Regards, Chandana -- *Chandana Napagoda* Senior Software Engineer WSO2 Inc. - http://wso2.org *Email : chand...@wso2.com chand...@wso2.com**Mobile : +94718169299 %2B94718169299* *Blog :http://cnapagoda.blogspot.com http://cnapagoda.blogspot.com* -- Sameera Medagammaddegedara Software Engineer Contact: Email: samee...@wso2.com Mobile: + 94 077 255 3005 -- *Chandana Napagoda* Senior Software Engineer WSO2 Inc. - http://wso2.org *Email : chand...@wso2.com chand...@wso2.com**Mobile : +94718169299* *Blog :http://cnapagoda.blogspot.com http://cnapagoda.blogspot.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problems running build with auto tests on Mac
Hi, FYI I include this line of code to my .bash_profile profile and did some integration testing in greg. There was an unusual behaviour after I add this code line in mac osx. Better not to use: export JAVA_TOOL_OPTIONS='-Djava.awt.headless=true' I couldn't identify the root cause but I assume something regarding jmx client[1][2] is not working after we export this EV. Thanks, [1]- https://docs.wso2.com/display/Governance453/Adding+JMX+Subscriptions+to+a+Resource [2]- https://docs.wso2.com/display/Governance453/Use+JConsole+to+Monitor+and+Manage+Governance+Registry On Wed, Oct 1, 2014 at 10:45 AM, Krishantha Samaraweera krishan...@wso2.com wrote: This explain it all - http://blog.jeroenreijn.com/2013/09/the-mystery-of-bootstrap-application.html Thanks, Krishantha. On Wed, Oct 1, 2014 at 8:58 AM, Samisa Abeysinghe sam...@wso2.com wrote: I will try Thanks, Samisa... Samisa Abeysinghe Vice President Delivery WSO2 Inc. http://wso2.com On Wed, Oct 1, 2014 at 8:54 AM, Lahiru Chandima lahi...@wso2.com wrote: Hi Samisa, I also had the same problem and could resolve by adding the following to my .bash_profile export JAVA_TOOL_OPTIONS='-Djava.awt.headless=true' I am not sure whether this affects any other functionality but it resolves the issue Thanks. On Wed, Oct 1, 2014 at 8:42 AM, Samisa Abeysinghe sam...@wso2.com wrote: The process focus keep switching to Java icon due to server invocations Cannot do any other work while building on mac OS Do we have a solution? Thanks, Samisa... Samisa Abeysinghe Vice President Delivery WSO2 Inc. http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Lahiru Chandima *Senior Software Engineer* Mobile : +94 (0) 772 253283 lahi...@wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thushara Kasun Ranawaka Software Engineer WSO2 Inc.; http://www.wso2.com lean.enterprise.middleware Mobile : *+94 (0) 773438949* *thusha...@wso2.com thusha...@wso2.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] ES login issue with network assigned IP
Hi Chandana/Sameera, AFAIK, Store and publisher are in SSO and they are registered as service providers with localhost in sso-idp-config.xml (ES_HOME/repositort/conf). You have to register the service provider with IP in sso-idp-config.xml as below in order to access via IP. ServiceProvider Issuerstore/Issuer *AssertionConsumerServicehttps://IP:9443/store/acs/AssertionConsumerService* SignResponsetrue/SignResponse CustomLoginPage/store/login.jag/CustomLoginPage /ServiceProvider Thanks, Rajeeva. On Wed, Oct 22, 2014 at 7:52 PM, Chandana Napagoda chand...@wso2.com wrote: Great... Thanks Sameera, I have created a JIRA[1] for this issue. [1]. https://wso2.org/jira/browse/STORE-542 Regards, Chandana On Wed, Oct 22, 2014 at 7:22 PM, Sameera Medagammaddegedara samee...@wso2.com wrote: Hi Chandana, I was able to reproduce the problem on my local setup. I will provide an update on this as soon as possible, could you please create a JIRA to track the issue? Thank You, Sameera On Wed, Oct 22, 2014 at 7:09 PM, Chandana Napagoda chand...@wso2.com wrote: Hi Sameera/Ruchira, We have noticed following behavior in latest ES based store application. If the user tries to access store application using a network assigned IP address, they won't be able to login into store app. Instead he will be redirected to the same page again and again. However login function work as expected for localhost. Is this a known issue? Regards, Chandana -- *Chandana Napagoda* Senior Software Engineer WSO2 Inc. - http://wso2.org *Email : chand...@wso2.com chand...@wso2.com**Mobile : +94718169299 %2B94718169299* *Blog :http://cnapagoda.blogspot.com http://cnapagoda.blogspot.com* -- Sameera Medagammaddegedara Software Engineer Contact: Email: samee...@wso2.com Mobile: + 94 077 255 3005 -- *Chandana Napagoda* Senior Software Engineer WSO2 Inc. - http://wso2.org *Email : chand...@wso2.com chand...@wso2.com**Mobile : +94718169299 %2B94718169299* *Blog :http://cnapagoda.blogspot.com http://cnapagoda.blogspot.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Rajeeva Uthayasangar* Software Engineer WSO2, Inc.:http://wso2.com Mobile: +94777298873 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AppFactory] LoadBalancingDataPublisher seems to handle failover but not load balancing
Hi Sinthuja, I tested with two BAM servers pointing to its own cassandra (not clustered). I was not able to see the load balancing scenario where nearly equal amount of events are published into respective BAM nodes. Following is the code that I have used. Please correct me if I have done something wrong. Urls defined in appfactory.xml *tcp://192.168.16.2:7614 http://192.168.16.2:7614,tcp://192.168.16.2:7624 http://192.168.16.2:7624* code for preparing receiver groups * AppFactoryConfiguration config = AppFactoryUtil .getAppfactoryConfiguration();String EnableStatPublishing = config .getFirstProperty(BAM.EnableStatPublishing);String bamServerURL = config.getFirstProperty(BAM.BAMServerURL); String bamServerUserName = config .getFirstProperty(BAM.BAMUserName);String bamServerPassword = config.getFirstProperty(BAM.BAMPassword); AgentConfiguration agentConfiguration = new AgentConfiguration();Agent agent = new Agent(agentConfiguration);ArrayListReceiverGroup allReceiverGroups = new ArrayListReceiverGroup(); ArrayListString receiverGroupUrls = DataPublisherUtil.getReceiverGroups(bamServerURL);for (String aReceiverGroupURL : receiverGroupUrls) { ArrayListDataPublisherHolder dataPublisherHolders = new ArrayListDataPublisherHolder();String[] urls = aReceiverGroupURL.split(,);for (String aUrl : urls) {DataPublisherHolder aNode = new DataPublisherHolder(null, aUrl.trim(), bamServerUserName, bamServerPassword); dataPublisherHolders.add(aNode);} ReceiverGroup group = new ReceiverGroup(dataPublisherHolders, true);allReceiverGroups.add(group);} loadBalancingDataPublisher = new LoadBalancingDataPublisher(allReceiverGroups, agent);* Method for event publishing *public void publishEvents(Event event, String Stream, String version)throws AgentException, InterruptedException {loadBalancingDataPublisher.publish(Stream, version, event); }* Thanks GayanD On Wed, Oct 22, 2014 at 7:32 PM, Sinthuja Ragendran sinth...@wso2.com wrote: Hi gayan, In order to verify the loadbalancing of events in a round robin manner, you can have two BAM nodes pointing to its own cassandra instance (not clustered), and send the events to those BAM nodes. If your client is configured correctly for load balancing scenario, then you will see each bam nodes will have nearly equal amount of events stored in its respective BAM nodes. This is just for testing purpose to verify, but of course in real case cassandra will be clustered, hence finally even though the load is balanced within receiver nodes it stores in the same cassandra cluster, hence it's not observable from outside. Thanks, Sinthuja. On Wed, Oct 22, 2014 at 4:53 AM, Gayan Dhanushka gay...@wso2.com wrote: Hi all, I have been trying to move the AsyncDataPublisher used in App Factory to LoadBalancingDataPublisher to cater load balancing and failover. Even though [1] describes that it sends data to available receiver nodes in a round robin manner, I was only able to observe the failover scenario. Can somebody please explain ? [1] https://docs.wso2.com/display/BAM240/Setting+up+Multi+Receiver+and+Load+Balancing+Data+Agent#SettingupMultiReceiverandLoadBalancingDataAgent-Loadbalancingconfigurations Thanks GayanD -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd -- *Sinthuja Rajendran* Senior Software Engineer http://wso2.com/ WSO2, Inc.:http://wso2.com Blog: http://sinthu-rajan.blogspot.com/ Mobile: +94774273955 -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] ES login issue with network assigned IP
Hi Rajeeva, During the offline discussion with Chandana it was noted that the response was hitting the correct acs endpoint. Thank You, Sameera On Wed, Oct 22, 2014 at 8:24 PM, Rajeeva Uthayasangar raje...@wso2.com wrote: Hi Chandana/Sameera, AFAIK, Store and publisher are in SSO and they are registered as service providers with localhost in sso-idp-config.xml (ES_HOME/repositort/conf). You have to register the service provider with IP in sso-idp-config.xml as below in order to access via IP. ServiceProvider Issuerstore/Issuer *AssertionConsumerServicehttps://IP:9443/store/acs/AssertionConsumerService* SignResponsetrue/SignResponse CustomLoginPage/store/login.jag/CustomLoginPage /ServiceProvider Thanks, Rajeeva. On Wed, Oct 22, 2014 at 7:52 PM, Chandana Napagoda chand...@wso2.com wrote: Great... Thanks Sameera, I have created a JIRA[1] for this issue. [1]. https://wso2.org/jira/browse/STORE-542 Regards, Chandana On Wed, Oct 22, 2014 at 7:22 PM, Sameera Medagammaddegedara samee...@wso2.com wrote: Hi Chandana, I was able to reproduce the problem on my local setup. I will provide an update on this as soon as possible, could you please create a JIRA to track the issue? Thank You, Sameera On Wed, Oct 22, 2014 at 7:09 PM, Chandana Napagoda chand...@wso2.com wrote: Hi Sameera/Ruchira, We have noticed following behavior in latest ES based store application. If the user tries to access store application using a network assigned IP address, they won't be able to login into store app. Instead he will be redirected to the same page again and again. However login function work as expected for localhost. Is this a known issue? Regards, Chandana -- *Chandana Napagoda* Senior Software Engineer WSO2 Inc. - http://wso2.org *Email : chand...@wso2.com chand...@wso2.com**Mobile : +94718169299 %2B94718169299* *Blog :http://cnapagoda.blogspot.com http://cnapagoda.blogspot.com* -- Sameera Medagammaddegedara Software Engineer Contact: Email: samee...@wso2.com Mobile: + 94 077 255 3005 -- *Chandana Napagoda* Senior Software Engineer WSO2 Inc. - http://wso2.org *Email : chand...@wso2.com chand...@wso2.com**Mobile : +94718169299 %2B94718169299* *Blog :http://cnapagoda.blogspot.com http://cnapagoda.blogspot.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Rajeeva Uthayasangar* Software Engineer WSO2, Inc.:http://wso2.com Mobile: +94777298873 -- Sameera Medagammaddegedara Software Engineer Contact: Email: samee...@wso2.com Mobile: + 94 077 255 3005 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Oauth2 Access Token expiry time VS openid connect IDToken expiry time
Making the expiry time of IDToken equal to access token in general looks OK to me and inline with our access token implementation which is to always issue the same token if one already exists and only reduce the remaining lifetime. There could some cases we need to think about. 1. Need to think about both cases where access token expiry time is greater than and less than IDToken expiry time. Currently we have two separate configs for this. One possibility might be even to remove one of those configs. I am not sure even if IDToken validity access token validity is a practical case. 2. Whats the effect with refresh_token grant type. In spec IIRC it says issuing IDToken for refresh_token grant is optional like. Our current implementation doesn't support IDToken for refresh grants. So what will happen if an access token is refreshed? Could that cause any issue? To my mind I don't see any issue. The next time you use authorization_code grantto get an access token you will get a new IDToken with a new expiry time matching the expiry you got using the refresh grant. Thanks, Johann. On Wed, Oct 22, 2014 at 6:13 PM, Gayan Gunawardana ga...@wso2.com wrote: Hi, Oauth2 access token and openid connect IDToken both contains expiry time, confusion is are any relationship between those values or access token expiry time equal to IDToken expiry time. Openid connect specification mentioned that [1] *Expiration time on or after which the ID Token MUST NOT be accepted for processing. The processing of this parameter requires that the current date/time MUST be before the expiration date/time listed in the value. Implementers MAY provide for some small leeway, usually no more than a few minutes, to account for clock skew. Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time. See RFC 3339 http://openid.net/specs/openid-connect-core-1_0.html#RFC3339 [RFC3339] for details regarding date/times in general and UTC in particular* But there is no information about how this relates to access token expiry time. WDYT? [1] http://openid.net/specs/openid-connect-core-1_0.html#IDToken -- Gayan Gunawardana Software Engineer; WSO2 Inc.; http://wso2.com/ Email: ga...@wso2.com Mobile: +94 (71) 8020933 -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [BAM][API-Manager] issue in updating API Manager statistics dashboard with BAM
Hi Manoj, I tested this with single BAM instance. As Gihan mentioned ,Still need to check there is a problem in APIM side. I will update this thread if problem is in APIM Thanks On Wed, Oct 22, 2014 at 7:49 PM, Manoj Gunawardena man...@wso2.com wrote: Hi Lakshman, This is very useful results, Thanks for sharing. We will do the same test for ES as well. Is this test run for single BAM instance, or multiple? (load balanced environment) Thanks On Wed, Oct 22, 2014 at 6:37 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Gihan, I sent 1 requests with the preconditions you have mentioned. only one record is missed in cassendra database for every time I sent 1 requests via APIM. Thanks On Wed, Oct 22, 2014 at 9:28 AM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Gihan, I will do that test and get back to you. Thanks On Wed, Oct 22, 2014 at 9:23 AM, Inosh Goonewardena in...@wso2.com wrote: Hi, On Wednesday, October 22, 2014, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Inosh, data in cassandra database are summized to a relational database. records in cassandra database and this relational table is same. so I think there is no problem with cassandra explorer. Ok understood. I have misread your previous email. Thanks On Wed, Oct 22, 2014 at 9:14 AM, Inosh Goonewardena in...@wso2.com wrote: Hi Lakshman, You mean data is therw in cassandra and cassandra explorer doesn't show these data? Did you compare by using cassandra CLI tool? On Wednesday, October 22, 2014, Lakshman Udayakantha lakshm...@wso2.com wrote: HI Gihan , They are lost randomly. Thanks On Wed, Oct 22, 2014 at 9:00 AM, Gihan Anuruddha gi...@wso2.com wrote: Hi Lakshman, How many records did you send to BAM and how many events are lost? Regards, Gihan On Wed, Oct 22, 2014 at 8:18 AM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Gihan, These data in cassandra database are summarised by a hive script and insert into a relational database. I checked that relational database table also. Number of records in cassandra database and relational database table are same. Then it should not be a problem with cassandra explorer. Thanks On Wed, Oct 22, 2014 at 7:53 AM, Manoj Gunawardena man...@wso2.com wrote: Hi, This can be an issue for other products as well. ES, AS and EMM also publishing data to BAM. In ES we are using load balancing data publisher. I also notice if we call stop method, sometimes data not get publish to BAM. We changed this to initiate data publisher at the first event and call data publishers stop method in the bundle activator's stop method. Need to test with load. Thanks On Tue, Oct 21, 2014 at 10:07 PM, Gihan Anuruddha gi...@wso2.com wrote: Hi Lakshman, It should be in Cassandra if publishEvent method executes. How do you validate the data loss in Cassandra side? BAM embedded Cassandra explorer is a not good tool for that. Can you please verify that with tool like CQL or cassandra-cli? Regards, Gihan On Tue, Oct 21, 2014 at 9:18 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi All, I am working on https://wso2.org/jira/browse/APIMANAGER-2064. By looking at the Cassandra database on BAM, I could figure out some requests publish to Cassandra database and some do not when I invoke the api. That is the reason for the missing requests in statistics dashboard. I tried debugging the APIMgtUsageDataBridgeDataPublisher class since it has publishEvent method to publish data. APIMgtUsageDataBridgeDataPublisher class uses LoadBalancingDataPublisher as the dataPublisher in this case. I found that every time when I invoke the api via rest client, this method will execute. but randomly some requests are not publishing in Cassandra database. I used the latest org.wso2.carbon.databridge.agent.thrift jar. but the problem is still there. if requests come to publishEvent method, should they publish in Cassandra database?and is there any known reason for data get not published in cassendra database. if not where I can find the data publisher to cassendra in BAM from API Manager. Thanks -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005 0711241005* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- 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 -- Manoj Gunawardena Tech Lead WSO2, Inc.: http://wso2.com lean.enterprise.middleware Mobile : +94 77 2291643 -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005 0711241005* -- W.G. Gihan Anuruddha Senior Software Engineer | WSO2, Inc. M: +94772272595
Re: [Dev] [AppFactory] LoadBalancingDataPublisher seems to handle failover but not load balancing
Hi Gayan, I think the bamServerURL format you are passing is not correct. It should be pass to the DataPublisherUtil.getReceiverGroups method with following format. * {*tcp://192.168.16.2:7614},{tcp://192.168.16.2:7624}*.* Each host should enclose with curly brackets. Pls refer http://mohanadarshan.wordpress.com/2013/05/04/load-balancing-data-publisher-to-bamcep-example-code/ Thanks On Wed, Oct 22, 2014 at 8:34 PM, Gayan Dhanushka gay...@wso2.com wrote: Hi Sinthuja, I tested with two BAM servers pointing to its own cassandra (not clustered). I was not able to see the load balancing scenario where nearly equal amount of events are published into respective BAM nodes. Following is the code that I have used. Please correct me if I have done something wrong. Urls defined in appfactory.xml *tcp://192.168.16.2:7614 http://192.168.16.2:7614,tcp://192.168.16.2:7624 http://192.168.16.2:7624* code for preparing receiver groups * AppFactoryConfiguration config = AppFactoryUtil .getAppfactoryConfiguration();String EnableStatPublishing = config .getFirstProperty(BAM.EnableStatPublishing);String bamServerURL = config.getFirstProperty(BAM.BAMServerURL); String bamServerUserName = config .getFirstProperty(BAM.BAMUserName);String bamServerPassword = config.getFirstProperty(BAM.BAMPassword); AgentConfiguration agentConfiguration = new AgentConfiguration();Agent agent = new Agent(agentConfiguration);ArrayListReceiverGroup allReceiverGroups = new ArrayListReceiverGroup(); ArrayListString receiverGroupUrls = DataPublisherUtil.getReceiverGroups(bamServerURL);for (String aReceiverGroupURL : receiverGroupUrls) { ArrayListDataPublisherHolder dataPublisherHolders = new ArrayListDataPublisherHolder();String[] urls = aReceiverGroupURL.split(,);for (String aUrl : urls) {DataPublisherHolder aNode = new DataPublisherHolder(null, aUrl.trim(), bamServerUserName, bamServerPassword); dataPublisherHolders.add(aNode);} ReceiverGroup group = new ReceiverGroup(dataPublisherHolders, true);allReceiverGroups.add(group);} loadBalancingDataPublisher = new LoadBalancingDataPublisher(allReceiverGroups, agent);* Method for event publishing *public void publishEvents(Event event, String Stream, String version)throws AgentException, InterruptedException {loadBalancingDataPublisher.publish(Stream, version, event); }* Thanks GayanD On Wed, Oct 22, 2014 at 7:32 PM, Sinthuja Ragendran sinth...@wso2.com wrote: Hi gayan, In order to verify the loadbalancing of events in a round robin manner, you can have two BAM nodes pointing to its own cassandra instance (not clustered), and send the events to those BAM nodes. If your client is configured correctly for load balancing scenario, then you will see each bam nodes will have nearly equal amount of events stored in its respective BAM nodes. This is just for testing purpose to verify, but of course in real case cassandra will be clustered, hence finally even though the load is balanced within receiver nodes it stores in the same cassandra cluster, hence it's not observable from outside. Thanks, Sinthuja. On Wed, Oct 22, 2014 at 4:53 AM, Gayan Dhanushka gay...@wso2.com wrote: Hi all, I have been trying to move the AsyncDataPublisher used in App Factory to LoadBalancingDataPublisher to cater load balancing and failover. Even though [1] describes that it sends data to available receiver nodes in a round robin manner, I was only able to observe the failover scenario. Can somebody please explain ? [1] https://docs.wso2.com/display/BAM240/Setting+up+Multi+Receiver+and+Load+Balancing+Data+Agent#SettingupMultiReceiverandLoadBalancingDataAgent-Loadbalancingconfigurations Thanks GayanD -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd -- *Sinthuja Rajendran* Senior Software Engineer http://wso2.com/ WSO2, Inc.:http://wso2.com Blog: http://sinthu-rajan.blogspot.com/ Mobile: +94774273955 -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd ___ 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] [AppFactory] LoadBalancingDataPublisher seems to handle failover but not load balancing
Hi, On Wed, Oct 22, 2014 at 11:52 AM, Manoj Gunawardena man...@wso2.com wrote: Hi Gayan, I think the bamServerURL format you are passing is not correct. It should be pass to the DataPublisherUtil.getReceiverGroups method with following format. * {*tcp://192.168.16.2:7614},{tcp://192.168.16.2:7624}*.* Each host should enclose with curly brackets. No, this url should be used if you need to send an event to both URLs. @Gayan: The below code line should pass 'false' in you want loadbalancing feature, with failover. If you need only active/passive setup (ie, failover only), you need to pass true. Hence please correct that and try again. *ReceiverGroup group = new ReceiverGroup(dataPublisherHolders, true);* Thanks, Sinthuja. Pls refer http://mohanadarshan.wordpress.com/2013/05/04/load-balancing-data-publisher-to-bamcep-example-code/ Thanks On Wed, Oct 22, 2014 at 8:34 PM, Gayan Dhanushka gay...@wso2.com wrote: Hi Sinthuja, I tested with two BAM servers pointing to its own cassandra (not clustered). I was not able to see the load balancing scenario where nearly equal amount of events are published into respective BAM nodes. Following is the code that I have used. Please correct me if I have done something wrong. Urls defined in appfactory.xml *tcp://192.168.16.2:7614 http://192.168.16.2:7614,tcp://192.168.16.2:7624 http://192.168.16.2:7624* code for preparing receiver groups * AppFactoryConfiguration config = AppFactoryUtil .getAppfactoryConfiguration();String EnableStatPublishing = config .getFirstProperty(BAM.EnableStatPublishing);String bamServerURL = config.getFirstProperty(BAM.BAMServerURL); String bamServerUserName = config .getFirstProperty(BAM.BAMUserName);String bamServerPassword = config.getFirstProperty(BAM.BAMPassword); AgentConfiguration agentConfiguration = new AgentConfiguration();Agent agent = new Agent(agentConfiguration);ArrayListReceiverGroup allReceiverGroups = new ArrayListReceiverGroup(); ArrayListString receiverGroupUrls = DataPublisherUtil.getReceiverGroups(bamServerURL);for (String aReceiverGroupURL : receiverGroupUrls) { ArrayListDataPublisherHolder dataPublisherHolders = new ArrayListDataPublisherHolder();String[] urls = aReceiverGroupURL.split(,);for (String aUrl : urls) {DataPublisherHolder aNode = new DataPublisherHolder(null, aUrl.trim(), bamServerUserName, bamServerPassword); dataPublisherHolders.add(aNode);} ReceiverGroup group = new ReceiverGroup(dataPublisherHolders, true);allReceiverGroups.add(group);} loadBalancingDataPublisher = new LoadBalancingDataPublisher(allReceiverGroups, agent);* Method for event publishing *public void publishEvents(Event event, String Stream, String version)throws AgentException, InterruptedException {loadBalancingDataPublisher.publish(Stream, version, event); }* Thanks GayanD On Wed, Oct 22, 2014 at 7:32 PM, Sinthuja Ragendran sinth...@wso2.com wrote: Hi gayan, In order to verify the loadbalancing of events in a round robin manner, you can have two BAM nodes pointing to its own cassandra instance (not clustered), and send the events to those BAM nodes. If your client is configured correctly for load balancing scenario, then you will see each bam nodes will have nearly equal amount of events stored in its respective BAM nodes. This is just for testing purpose to verify, but of course in real case cassandra will be clustered, hence finally even though the load is balanced within receiver nodes it stores in the same cassandra cluster, hence it's not observable from outside. Thanks, Sinthuja. On Wed, Oct 22, 2014 at 4:53 AM, Gayan Dhanushka gay...@wso2.com wrote: Hi all, I have been trying to move the AsyncDataPublisher used in App Factory to LoadBalancingDataPublisher to cater load balancing and failover. Even though [1] describes that it sends data to available receiver nodes in a round robin manner, I was only able to observe the failover scenario. Can somebody please explain ? [1] https://docs.wso2.com/display/BAM240/Setting+up+Multi+Receiver+and+Load+Balancing+Data+Agent#SettingupMultiReceiverandLoadBalancingDataAgent-Loadbalancingconfigurations Thanks GayanD -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd -- *Sinthuja Rajendran* Senior Software Engineer http://wso2.com/ WSO2, Inc.:http://wso2.com Blog: http://sinthu-rajan.blogspot.com/ Mobile: +94774273955 -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94
Re: [Dev] ES login issue with network assigned IP
On Wed, Oct 22, 2014 at 10:08 PM, Rajeeva Uthayasangar raje...@wso2.com wrote: Hi Sameera, Issue comes in the redirection URL after the authentication. It's redirecting with the IP but the domain we registered in SP is localhost. Redirection domain should be same as what we gave in SP registering AFAIK. What Rajeeva faced should be a authentication request validation failure.. But if the authentication response hit the acs, authentication request validation seems to be passed and it returning a saml response. @Sameera : Have you traced SAML requests? Does the ACS hitting with a valid SAML assertion? @Chandana The solution which i mentioned, solved the issue in App Manager. Thanks, Rajeeva. On Wed, Oct 22, 2014 at 8:35 PM, Sameera Medagammaddegedara samee...@wso2.com wrote: Hi Rajeeva, During the offline discussion with Chandana it was noted that the response was hitting the correct acs endpoint. Thank You, Sameera On Wed, Oct 22, 2014 at 8:24 PM, Rajeeva Uthayasangar raje...@wso2.com wrote: Hi Chandana/Sameera, AFAIK, Store and publisher are in SSO and they are registered as service providers with localhost in sso-idp-config.xml (ES_HOME/repositort/conf). You have to register the service provider with IP in sso-idp-config.xml as below in order to access via IP. ServiceProvider Issuerstore/Issuer *AssertionConsumerServicehttps://IP:9443/store/acs/AssertionConsumerService* SignResponsetrue/SignResponse CustomLoginPage/store/login.jag/CustomLoginPage /ServiceProvider Thanks, Rajeeva. On Wed, Oct 22, 2014 at 7:52 PM, Chandana Napagoda chand...@wso2.com wrote: Great... Thanks Sameera, I have created a JIRA[1] for this issue. [1]. https://wso2.org/jira/browse/STORE-542 Regards, Chandana On Wed, Oct 22, 2014 at 7:22 PM, Sameera Medagammaddegedara samee...@wso2.com wrote: Hi Chandana, I was able to reproduce the problem on my local setup. I will provide an update on this as soon as possible, could you please create a JIRA to track the issue? Thank You, Sameera On Wed, Oct 22, 2014 at 7:09 PM, Chandana Napagoda chand...@wso2.com wrote: Hi Sameera/Ruchira, We have noticed following behavior in latest ES based store application. If the user tries to access store application using a network assigned IP address, they won't be able to login into store app. Instead he will be redirected to the same page again and again. However login function work as expected for localhost. Is this a known issue? Regards, Chandana -- *Chandana Napagoda* Senior Software Engineer WSO2 Inc. - http://wso2.org *Email : chand...@wso2.com chand...@wso2.com**Mobile : +94718169299 %2B94718169299* *Blog :http://cnapagoda.blogspot.com http://cnapagoda.blogspot.com* -- Sameera Medagammaddegedara Software Engineer Contact: Email: samee...@wso2.com Mobile: + 94 077 255 3005 -- *Chandana Napagoda* Senior Software Engineer WSO2 Inc. - http://wso2.org *Email : chand...@wso2.com chand...@wso2.com**Mobile : +94718169299 %2B94718169299* *Blog :http://cnapagoda.blogspot.com http://cnapagoda.blogspot.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Rajeeva Uthayasangar* Software Engineer WSO2, Inc.:http://wso2.com Mobile: +94777298873 -- Sameera Medagammaddegedara Software Engineer Contact: Email: samee...@wso2.com Mobile: + 94 077 255 3005 -- *Rajeeva Uthayasangar* Software Engineer WSO2, Inc.:http://wso2.com Mobile: +94777298873 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Regards, *Darshana Gunawardana*Software Engineer WSO2 Inc.; http://wso2.com *E-mail: darsh...@wso2.com darsh...@wso2.com* *Mobile: +94718566859 %2B94718566859*Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AppFactory] LoadBalancingDataPublisher seems to handle failover but not load balancing
Hi Sinthuja, Thanks a lot. It is working as expected now. Regards GayanD On Wed, Oct 22, 2014 at 9:29 PM, Sinthuja Ragendran sinth...@wso2.com wrote: Hi, On Wed, Oct 22, 2014 at 11:52 AM, Manoj Gunawardena man...@wso2.com wrote: Hi Gayan, I think the bamServerURL format you are passing is not correct. It should be pass to the DataPublisherUtil.getReceiverGroups method with following format. * {*tcp://192.168.16.2:7614},{tcp://192.168.16.2:7624}*.* Each host should enclose with curly brackets. No, this url should be used if you need to send an event to both URLs. @Gayan: The below code line should pass 'false' in you want loadbalancing feature, with failover. If you need only active/passive setup (ie, failover only), you need to pass true. Hence please correct that and try again. *ReceiverGroup group = new ReceiverGroup(dataPublisherHolders, true);* Thanks, Sinthuja. Pls refer http://mohanadarshan.wordpress.com/2013/05/04/load-balancing-data-publisher-to-bamcep-example-code/ Thanks On Wed, Oct 22, 2014 at 8:34 PM, Gayan Dhanushka gay...@wso2.com wrote: Hi Sinthuja, I tested with two BAM servers pointing to its own cassandra (not clustered). I was not able to see the load balancing scenario where nearly equal amount of events are published into respective BAM nodes. Following is the code that I have used. Please correct me if I have done something wrong. Urls defined in appfactory.xml *tcp://192.168.16.2:7614 http://192.168.16.2:7614,tcp://192.168.16.2:7624 http://192.168.16.2:7624* code for preparing receiver groups * AppFactoryConfiguration config = AppFactoryUtil .getAppfactoryConfiguration();String EnableStatPublishing = config .getFirstProperty(BAM.EnableStatPublishing);String bamServerURL = config.getFirstProperty(BAM.BAMServerURL); String bamServerUserName = config .getFirstProperty(BAM.BAMUserName);String bamServerPassword = config.getFirstProperty(BAM.BAMPassword); AgentConfiguration agentConfiguration = new AgentConfiguration();Agent agent = new Agent(agentConfiguration);ArrayListReceiverGroup allReceiverGroups = new ArrayListReceiverGroup(); ArrayListString receiverGroupUrls = DataPublisherUtil.getReceiverGroups(bamServerURL);for (String aReceiverGroupURL : receiverGroupUrls) { ArrayListDataPublisherHolder dataPublisherHolders = new ArrayListDataPublisherHolder();String[] urls = aReceiverGroupURL.split(,);for (String aUrl : urls) {DataPublisherHolder aNode = new DataPublisherHolder(null, aUrl.trim(), bamServerUserName, bamServerPassword); dataPublisherHolders.add(aNode);} ReceiverGroup group = new ReceiverGroup(dataPublisherHolders, true);allReceiverGroups.add(group);} loadBalancingDataPublisher = new LoadBalancingDataPublisher(allReceiverGroups, agent);* Method for event publishing *public void publishEvents(Event event, String Stream, String version)throws AgentException, InterruptedException {loadBalancingDataPublisher.publish(Stream, version, event); }* Thanks GayanD On Wed, Oct 22, 2014 at 7:32 PM, Sinthuja Ragendran sinth...@wso2.com wrote: Hi gayan, In order to verify the loadbalancing of events in a round robin manner, you can have two BAM nodes pointing to its own cassandra instance (not clustered), and send the events to those BAM nodes. If your client is configured correctly for load balancing scenario, then you will see each bam nodes will have nearly equal amount of events stored in its respective BAM nodes. This is just for testing purpose to verify, but of course in real case cassandra will be clustered, hence finally even though the load is balanced within receiver nodes it stores in the same cassandra cluster, hence it's not observable from outside. Thanks, Sinthuja. On Wed, Oct 22, 2014 at 4:53 AM, Gayan Dhanushka gay...@wso2.com wrote: Hi all, I have been trying to move the AsyncDataPublisher used in App Factory to LoadBalancingDataPublisher to cater load balancing and failover. Even though [1] describes that it sends data to available receiver nodes in a round robin manner, I was only able to observe the failover scenario. Can somebody please explain ? [1] https://docs.wso2.com/display/BAM240/Setting+up+Multi+Receiver+and+Load+Balancing+Data+Agent#SettingupMultiReceiverandLoadBalancingDataAgent-Loadbalancingconfigurations Thanks GayanD -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd -- *Sinthuja Rajendran* Senior Software Engineer http://wso2.com/ WSO2, Inc.:http://wso2.com Blog:
Re: [Dev] Session maintain in HttpClient
Hi Amila, As I understood session should maintain in server not client right? and is these two Jsp pages reside in same web application? if they are in same web app, one thing to notice is your session may be time out. make sure it is not. you can try adding below code in your jsp2 %@ page language=java contentType=text/html session=true % the solution in thread [1] may be helpful for setting session variable. http://www.experts-exchange.com/Programming/Misc/Q_21903762.html Thanks On Wed, Oct 22, 2014 at 7:29 PM, Manoj Gunawardena man...@wso2.com wrote: Hi Amila, Use same httpContext object to create httpclient connections to test1 and test2 jsps. Thanks On Wed, Oct 22, 2014 at 5:45 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi, I am using org.apache.http.client.HttpClient to send http request, here I want to maintain the session. Ex. I have a web application hosted in tomcat. web app has a *test1.jsp* which set session attribute *code. *there is a another JSP called *test2.jsp* which get the session attribute *code *and print it*. *I use HttpClient and send a request to *test1.jsp *and then *test2.jsp, *when I call the *test2.jsp *it cannot get the session attribute *code *and session is not maintained. Can anyone suggest a solution for this. 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 -- 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 -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Carbon] - How to revert the changes made by 'sh ciphertool.sh -Dconfigure' command?
Hi Roshan, There is no way to revert all changes at once, but you can just remove the secret alias with secure vault name space (svns:secretAlias) and use a plain text password. For example: You can change following Password svns:secretAlias=Carbon.Security.KeyStore.KeyPasswordpassword/Password to Passwordwso2carbon/Password I hope this helps! Thanks! Best Regards, On Wed, Oct 22, 2014 at 2:10 PM, Roshan Deniyage rosh...@wso2.com wrote: Hi Devs, I'm working with secure vault feature in wso2 products. After we encrypting the sensitive data in configuration files using the command sh ciphertool.sh -Dconfigure, is there a way to revert the changes made? I mean if someone wants to use plain text password later on, is there a way to do it without touching the configuration files manually? Thanks, Roshan Deniyage Associate Technical Lead WSO2, Inc: http://wso2.com Mobile: +94 777636406 Twitter: *https://twitter.com/roshku https://twitter.com/roshku* LinkedIn : https://www.linkedin.com/in/roshandeniyage ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Isuru Perera Senior Software Engineer | WSO2, Inc. | http://wso2.com/ Lean . Enterprise . Middleware about.me/chrishantha ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Limitations with Cache Mediator
Hi, On Fri, Dec 6, 2013 at 2:49 AM, Lakmali Baminiwatta lakm...@wso2.com wrote: Hi Sanjeewa, On 6 December 2013 07:48, Sanjeewa Malalgoda sanje...@wso2.com wrote: On Mon, Dec 2, 2013 at 6:23 PM, Lakmali Baminiwatta lakm...@wso2.com wrote: Hi, On 2 December 2013 18:02, Sumedha Rubasinghe sume...@wso2.com wrote: On Mon, Dec 2, 2013 at 5:24 PM, Lakmali Baminiwatta lakm...@wso2.com wrote: Hi Sanjeewa, On 2 December 2013 17:00, Sanjeewa Malalgoda sanje...@wso2.com wrote: On Sun, Dec 1, 2013 at 11:01 PM, Lakmali Baminiwatta lakm...@wso2.com wrote: Hi all, When processing the response, if the request is REST then soap format, transport headers and message type are also stored. Similarly when retrieving the cached response, if the request is REST then stored values are used to compose the response message. With these modifications cache mediator returns the response correctly for non SOAP requests. But we have another issue here. Currently the request Hash value is derived from the SOAP message body. So for REST calls it gets the same hash value for all requests which sent without a payload. ex: Both below requests are recognized as the same request according to the hash value derived from DOMHASHGenerator. curl -v -H Authorization: Bearer 1EV6Qqa_DboaBzNj2JfiyXoO1Ysa http://localhost:8280/test/1.0.0?regNo=001 curl -v -H Authorization: Bearer 1EV6Qqa_DboaBzNj2JfiyXoO1Ysa http://localhost:8280/test/1.0.0?regNo=002 http://localhost:8280/test/1.0.0?regNo=001 So right now we need to figure out a mechanism to generate hash value for REST calls. How if we consider full request path(including query params and etc) + headers. For above example something like follows (full request path and , separated transport headers list). We can compute hash value of that string and store it. *http://localhost:8280/test/1.0.0?regNo=002,Authorization http://localhost:8280/test/1.0.0?regNo=002,Authorization: Bearer 1EV6Qqa_DboaBzNj2JfiyXoO1Ysa* Here we cannot only consider full request path as we take some decisions at backend based on headers. WDYT? Yeah, need to consider request path + headers. But I think we don't need hash Authorization headers, as request hits the cache mediator after going through the handlers. So in default case, at the time of hashing we don't have the authorization header. So AFAIU, the only concern which comes up here is, same request invoked using different keys may get the response from the cache. I believe that is ok. WDYT? We simply store response values against a given request pattern. But Authorisation header should not be part of it. Otherwise it will become a token based cache. But are whole lot of other header parameter like content-type, accept header, accept language ( http://en.wikipedia.org/wiki/List_of_HTTP_header_fields). Let's ignore Authorisation header for time being. +1. So for now let's generate the hash based on request path, Accept Content-Type headers and payload (if available). +1. IMO we should use all other headers except authentication headers (Ex. sometimes response may depend on client type or sometimes it may depend on any other custom header). We can use all the headers [1]. But there are some headers which seems not correct to use for hashing the request. ex: Date - This is unique for each request. If this is used for generting the hash, cache will be never used. User-Agent - This is specific to the user client/browser who sent the request. So different caches for different users. So I think we need to figure out which headers to skip or which headers to use for hash generation. Did we consider , above unique request headers to include in hashing the request or are we generating the cache digest based on all transport headers..? [1]http://en.wikipedia.org/wiki/List_of_HTTP_header_fields Thanks, Lakmali Thanks, sanjeewa. Thanks, Lakmali I am writing a new Digest Generator implementation by extending DOMHASHGenerator. This basically does what DOMHASHGenerator had been doing and additionally it digests request path and available transport headers as well. Thanks, Lakmali Thanks, sanjeewa. Thanks, Lakmali On 29 November 2013 00:18, Lakmali Baminiwatta lakm...@wso2.com wrote: Hi all, Currently Cache mediator stores the response message as a byte array and builds the soap envelope from that when sending the cached response[1]. When building the response, it checks whether the request format is in SOAP11 or SOAP12 and do the build accordingly. For SOAP requests, the SOAP format for response and request messages are same since most of the time a WSDL is used. So above logic works. But the response message for REST calls may be in different SOAP formats than the request. This results in errors when building the message. ex: Below REST call's request message context is SOAP12. But the response SOAP
Re: [Dev] Oauth2 Access Token expiry time VS openid connect IDToken expiry time
There are no hard fast rules.. In that case it would be better to keep two configurations... Will reply in detail later Thanks regards, -Prabath On Wed, Oct 22, 2014 at 8:56 PM, Johann Nallathamby joh...@wso2.com wrote: Making the expiry time of IDToken equal to access token in general looks OK to me and inline with our access token implementation which is to always issue the same token if one already exists and only reduce the remaining lifetime. There could some cases we need to think about. 1. Need to think about both cases where access token expiry time is greater than and less than IDToken expiry time. Currently we have two separate configs for this. One possibility might be even to remove one of those configs. I am not sure even if IDToken validity access token validity is a practical case. 2. Whats the effect with refresh_token grant type. In spec IIRC it says issuing IDToken for refresh_token grant is optional like. Our current implementation doesn't support IDToken for refresh grants. So what will happen if an access token is refreshed? Could that cause any issue? To my mind I don't see any issue. The next time you use authorization_code grantto get an access token you will get a new IDToken with a new expiry time matching the expiry you got using the refresh grant. Thanks, Johann. On Wed, Oct 22, 2014 at 6:13 PM, Gayan Gunawardana ga...@wso2.com wrote: Hi, Oauth2 access token and openid connect IDToken both contains expiry time, confusion is are any relationship between those values or access token expiry time equal to IDToken expiry time. Openid connect specification mentioned that [1] *Expiration time on or after which the ID Token MUST NOT be accepted for processing. The processing of this parameter requires that the current date/time MUST be before the expiration date/time listed in the value. Implementers MAY provide for some small leeway, usually no more than a few minutes, to account for clock skew. Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time. See RFC 3339 http://openid.net/specs/openid-connect-core-1_0.html#RFC3339 [RFC3339] for details regarding date/times in general and UTC in particular* But there is no information about how this relates to access token expiry time. WDYT? [1] http://openid.net/specs/openid-connect-core-1_0.html#IDToken -- Gayan Gunawardana Software Engineer; WSO2 Inc.; http://wso2.com/ Email: ga...@wso2.com Mobile: +94 (71) 8020933 -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* -- Thanks Regards, Prabath Twitter : @prabath LinkedIn : http://www.linkedin.com/in/prabathsiriwardena Mobile : +94 71 809 6732 http://blog.facilelogin.com http://blog.api-security.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem with registry mounting with multiple mounts
Guys, So before digging directly into the solution, we should take a step back and see whether we are doing the right thing in the first place. So, firstly Danushka, thanks for sharing the use-case. Having said this, AppFactory, long-term is not going to just have AppServer only. When you say network call do you mean, 1. the network call using WS-API to access a single shared registry or 2. the network call to copy data from G-Reg (dev) to G-Reg (test)? If this is #2, how would having a single mounted registry instance solve the problem? Are you planning to share the same resources among all environments? If not, wouldn't you still need to copy from A to B? If so, are you simply referring to the overhead of copying between two G-Reg nodes vs copying from path X to path Y in a single G-Reg? Thanks, Senaka. On Wed, Oct 22, 2014 at 11:06 AM, Shazni Nazeer sha...@wso2.com wrote: Hi Pulasthi, Have you done this configuration in GREG or AS? If you want to mount /_system/governance path in AS to /_system/as/governance in GREG, you have to put the following in AS mount path=/_system/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount and mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount in GREG. Replace the instanceId as appropriate Shazni Nazeer Senior Software Engineer Mob : +94 37331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com On Wed, Oct 22, 2014 at 3:11 PM, Pulasthi Supun pulas...@wso2.com wrote: Hi Shazni, Nope, the configs are correct mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount this config means to mount the /_system/governance path in AS, into the /_system/as/governance. Regards, Pulasthi On Wed, Oct 22, 2014 at 2:45 PM, Shazni Nazeer sha...@wso2.com wrote: Pulasthi, As I understand you have to change the AS mount as below. mount path=/_system/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount i.e. As Senaka has mentioned you aren't trying to mount /_system/governance of AS, but rather /_system/as/governance to /_system/governance of GREG. Shazni Nazeer Senior Software Engineer Mob : +94 37331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com On Wed, Oct 22, 2014 at 1:21 AM, Senaka Fernando sen...@wso2.com wrote: Pulasthi, You have mounted AS on G-Reg but not G-Reg on AS right? This is not the normal way of setting this up. Any reason for doing this? Thanks, Senaka. On Tuesday, October 21, 2014, Pulasthi Supun pulas...@wso2.com wrote: Hi Senaka/All, Consider the following mounting scenario A greg has its governance space mounted mount path=/_system/governance overwrite=true instanceIdreggov/instanceId targetPath/_system/governance/targetPath /mount And the governance space of a separate AS server is mounted to a different path in the greg. mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount When the mounts are done mount does not work properly everything under /_system/as/governance is replaced by resources that are in /_system/governance . So the governance space of the greg is populated into both paths. When we remove the mount of the greg and only mount the governance of AS, it works properly. Is this a known bug?. Regards Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- *[image: http://wso2.com] http://wso2.comSenaka Fernando* Solutions Architect; WSO2 Inc.; http://wso2.com *Member; Apache Software Foundation; http://apache.org http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408 754 7388 %2B1%20408%20754%207388; ext: 51736*; *M: +44 782 741 1966 %2B44%20782%20741%201966Linked-In: http://linkedin.com/in/senakafernando http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- *[image: http://wso2.com] http://wso2.comSenaka Fernando* Solutions Architect; WSO2 Inc.; http://wso2.com *Member; Apache Software Foundation; http://apache.org http://apache.orgE-mail:
Re: [Dev] Problem with registry mounting with multiple mounts
Hi Senaka I just added appserver inside the cloud because that what we have right now. ;) By network calls I meant #1. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Oct 23, 2014 at 1:56 AM, Senaka Fernando sen...@wso2.com wrote: Guys, So before digging directly into the solution, we should take a step back and see whether we are doing the right thing in the first place. So, firstly Danushka, thanks for sharing the use-case. Having said this, AppFactory, long-term is not going to just have AppServer only. When you say network call do you mean, 1. the network call using WS-API to access a single shared registry or 2. the network call to copy data from G-Reg (dev) to G-Reg (test)? If this is #2, how would having a single mounted registry instance solve the problem? Are you planning to share the same resources among all environments? If not, wouldn't you still need to copy from A to B? If so, are you simply referring to the overhead of copying between two G-Reg nodes vs copying from path X to path Y in a single G-Reg? Thanks, Senaka. On Wed, Oct 22, 2014 at 11:06 AM, Shazni Nazeer sha...@wso2.com wrote: Hi Pulasthi, Have you done this configuration in GREG or AS? If you want to mount /_system/governance path in AS to /_system/as/governance in GREG, you have to put the following in AS mount path=/_system/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount and mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount in GREG. Replace the instanceId as appropriate Shazni Nazeer Senior Software Engineer Mob : +94 37331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com On Wed, Oct 22, 2014 at 3:11 PM, Pulasthi Supun pulas...@wso2.com wrote: Hi Shazni, Nope, the configs are correct mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount this config means to mount the /_system/governance path in AS, into the /_system/as/governance. Regards, Pulasthi On Wed, Oct 22, 2014 at 2:45 PM, Shazni Nazeer sha...@wso2.com wrote: Pulasthi, As I understand you have to change the AS mount as below. mount path=/_system/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount i.e. As Senaka has mentioned you aren't trying to mount /_system/governance of AS, but rather /_system/as/governance to /_system/governance of GREG. Shazni Nazeer Senior Software Engineer Mob : +94 37331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com On Wed, Oct 22, 2014 at 1:21 AM, Senaka Fernando sen...@wso2.com wrote: Pulasthi, You have mounted AS on G-Reg but not G-Reg on AS right? This is not the normal way of setting this up. Any reason for doing this? Thanks, Senaka. On Tuesday, October 21, 2014, Pulasthi Supun pulas...@wso2.com wrote: Hi Senaka/All, Consider the following mounting scenario A greg has its governance space mounted mount path=/_system/governance overwrite=true instanceIdreggov/instanceId targetPath/_system/governance/targetPath /mount And the governance space of a separate AS server is mounted to a different path in the greg. mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount When the mounts are done mount does not work properly everything under /_system/as/governance is replaced by resources that are in /_system/governance . So the governance space of the greg is populated into both paths. When we remove the mount of the greg and only mount the governance of AS, it works properly. Is this a known bug?. Regards Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- *[image: http://wso2.com] http://wso2.comSenaka Fernando* Solutions Architect; WSO2 Inc.; http://wso2.com *Member; Apache Software Foundation; http://apache.org http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408 754 7388 %2B1%20408%20754%207388; ext: 51736*; *M: +44 782 741 1966 %2B44%20782%20741%201966Linked-In: http://linkedin.com/in/senakafernando http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com
Re: [Dev] Problem with registry mounting with multiple mounts
Hi Danushka, So, in this case, why not keep things simple and have one registry per environment, like in your picture and mount /_system/governance of G-Reg to /_system/governance of AS? Why won't this work? Thanks, Senaka. On Wed, Oct 22, 2014 at 9:37 PM, Danushka Fernando danush...@wso2.com wrote: Hi Senaka I just added appserver inside the cloud because that what we have right now. ;) By network calls I meant #1. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Oct 23, 2014 at 1:56 AM, Senaka Fernando sen...@wso2.com wrote: Guys, So before digging directly into the solution, we should take a step back and see whether we are doing the right thing in the first place. So, firstly Danushka, thanks for sharing the use-case. Having said this, AppFactory, long-term is not going to just have AppServer only. When you say network call do you mean, 1. the network call using WS-API to access a single shared registry or 2. the network call to copy data from G-Reg (dev) to G-Reg (test)? If this is #2, how would having a single mounted registry instance solve the problem? Are you planning to share the same resources among all environments? If not, wouldn't you still need to copy from A to B? If so, are you simply referring to the overhead of copying between two G-Reg nodes vs copying from path X to path Y in a single G-Reg? Thanks, Senaka. On Wed, Oct 22, 2014 at 11:06 AM, Shazni Nazeer sha...@wso2.com wrote: Hi Pulasthi, Have you done this configuration in GREG or AS? If you want to mount /_system/governance path in AS to /_system/as/governance in GREG, you have to put the following in AS mount path=/_system/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount and mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount in GREG. Replace the instanceId as appropriate Shazni Nazeer Senior Software Engineer Mob : +94 37331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com On Wed, Oct 22, 2014 at 3:11 PM, Pulasthi Supun pulas...@wso2.com wrote: Hi Shazni, Nope, the configs are correct mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount this config means to mount the /_system/governance path in AS, into the /_system/as/governance. Regards, Pulasthi On Wed, Oct 22, 2014 at 2:45 PM, Shazni Nazeer sha...@wso2.com wrote: Pulasthi, As I understand you have to change the AS mount as below. mount path=/_system/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount i.e. As Senaka has mentioned you aren't trying to mount /_system/governance of AS, but rather /_system/as/governance to /_system/governance of GREG. Shazni Nazeer Senior Software Engineer Mob : +94 37331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com On Wed, Oct 22, 2014 at 1:21 AM, Senaka Fernando sen...@wso2.com wrote: Pulasthi, You have mounted AS on G-Reg but not G-Reg on AS right? This is not the normal way of setting this up. Any reason for doing this? Thanks, Senaka. On Tuesday, October 21, 2014, Pulasthi Supun pulas...@wso2.com wrote: Hi Senaka/All, Consider the following mounting scenario A greg has its governance space mounted mount path=/_system/governance overwrite=true instanceIdreggov/instanceId targetPath/_system/governance/targetPath /mount And the governance space of a separate AS server is mounted to a different path in the greg. mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount When the mounts are done mount does not work properly everything under /_system/as/governance is replaced by resources that are in /_system/governance . So the governance space of the greg is populated into both paths. When we remove the mount of the greg and only mount the governance of AS, it works properly. Is this a known bug?. Regards Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- *[image: http://wso2.com] http://wso2.comSenaka Fernando* Solutions Architect; WSO2 Inc.; http://wso2.com *Member; Apache Software Foundation; http://apache.org http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408 754 7388 %2B1%20408%20754%207388; ext: 51736*; *M: +44 782 741 1966 %2B44%20782%20741%201966Linked-In:
Re: [Dev] Reduce the execution speed of Web Driver
Hi, On Mon, Oct 20, 2014 at 10:25 AM, Ayesha Dissanayaka aye...@wso2.com wrote: Hi, I'm also having this concern while executing UI test cases in WSO2 ES. In my case ES Publisher App take ablout 15sec in order to populate properly after completing indexing and all. Hence, I have to thread sleep all the test classes. I would also like to know whether this is the recommended way to slow down the web driver, or can we implicitly wait to start the test execution by the framework. Never use thread sleeps for waits unless it is really required and no any other way to achieve page waits. You need to write your own wait function based on the elements you are expecting to be visible in next step. References given at [1] would be helpful. [1] http://selenium-tutorial.blogspot.com/2014/03/webdriver-wait-for-page-load.html Thanks, Krishantha. Thanks! - Ayesha On Fri, Oct 17, 2014 at 10:10 AM, Sohani Weerasinghe soh...@wso2.com wrote: Hi, When using selenium web driver to write test cases, currently I am using Thread sleeps in order to control the speed of the browser. Is this the recommended way to slow down the execution speed? Please note that I am also using explicit waits to wait for certain conditions to occur before proceeding further and implicit waits to poll the DOM for a certain amount of time to find an element. Thanks, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Ayesha Dissanayaka* Software Engineer, WSO2, Inc : http://wso2.com http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg 20, Palmgrove Avenue, Colombo 3 E-Mail: aye...@wso2.com ayshsa...@gmail.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem with registry mounting with multiple mounts
Hi Senaka For an app in AF users can add Resources like datasources, databases, registry properties and apis. We save registry properties and apis in cloud registry. So we read/write them from network calls. In cloud these network calls cause lot of issues like slowness, timeouts and so on. As a solution if we can access the cloud registry without network calls, then we can make this more stabilized. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Oct 23, 2014 at 4:14 AM, Senaka Fernando sen...@wso2.com wrote: Hi Danushka, So, in this case, why not keep things simple and have one registry per environment, like in your picture and mount /_system/governance of G-Reg to /_system/governance of AS? Why won't this work? Thanks, Senaka. On Wed, Oct 22, 2014 at 9:37 PM, Danushka Fernando danush...@wso2.com wrote: Hi Senaka I just added appserver inside the cloud because that what we have right now. ;) By network calls I meant #1. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Oct 23, 2014 at 1:56 AM, Senaka Fernando sen...@wso2.com wrote: Guys, So before digging directly into the solution, we should take a step back and see whether we are doing the right thing in the first place. So, firstly Danushka, thanks for sharing the use-case. Having said this, AppFactory, long-term is not going to just have AppServer only. When you say network call do you mean, 1. the network call using WS-API to access a single shared registry or 2. the network call to copy data from G-Reg (dev) to G-Reg (test)? If this is #2, how would having a single mounted registry instance solve the problem? Are you planning to share the same resources among all environments? If not, wouldn't you still need to copy from A to B? If so, are you simply referring to the overhead of copying between two G-Reg nodes vs copying from path X to path Y in a single G-Reg? Thanks, Senaka. On Wed, Oct 22, 2014 at 11:06 AM, Shazni Nazeer sha...@wso2.com wrote: Hi Pulasthi, Have you done this configuration in GREG or AS? If you want to mount /_system/governance path in AS to /_system/as/governance in GREG, you have to put the following in AS mount path=/_system/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount and mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount in GREG. Replace the instanceId as appropriate Shazni Nazeer Senior Software Engineer Mob : +94 37331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com On Wed, Oct 22, 2014 at 3:11 PM, Pulasthi Supun pulas...@wso2.com wrote: Hi Shazni, Nope, the configs are correct mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount this config means to mount the /_system/governance path in AS, into the /_system/as/governance. Regards, Pulasthi On Wed, Oct 22, 2014 at 2:45 PM, Shazni Nazeer sha...@wso2.com wrote: Pulasthi, As I understand you have to change the AS mount as below. mount path=/_system/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount i.e. As Senaka has mentioned you aren't trying to mount /_system/governance of AS, but rather /_system/as/governance to /_system/governance of GREG. Shazni Nazeer Senior Software Engineer Mob : +94 37331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com On Wed, Oct 22, 2014 at 1:21 AM, Senaka Fernando sen...@wso2.com wrote: Pulasthi, You have mounted AS on G-Reg but not G-Reg on AS right? This is not the normal way of setting this up. Any reason for doing this? Thanks, Senaka. On Tuesday, October 21, 2014, Pulasthi Supun pulas...@wso2.com wrote: Hi Senaka/All, Consider the following mounting scenario A greg has its governance space mounted mount path=/_system/governance overwrite=true instanceIdreggov/instanceId targetPath/_system/governance/targetPath /mount And the governance space of a separate AS server is mounted to a different path in the greg. mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount When the mounts are done mount does not work properly everything under /_system/as/governance is replaced by resources that are in /_system/governance . So the governance space of the greg is populated into both paths. When we remove the mount of the greg and only mount the governance of AS, it works properly. Is this a known bug?. Regards Pulasthi --
Re: [Dev] Permission issue when changing the life cycle state in ES publisher
Hi Sameera, It is In-Review to Approved On Wed, Oct 22, 2014 at 5:36 PM, Sameera Medagammaddegedara samee...@wso2.com wrote: Hi DIlan, Could you provide the states involved in the transition? Thank You, Sameera On Wed, Oct 22, 2014 at 4:27 PM, Chathura Dilan chathu...@wso2.com wrote: Hi, I'm getting the following exception when changing the life-cycle state ( to Approve or Reject) in mobile publisher with reviewer role. JaggeryTravellingPermissionLifeCycle org.wso2.carbon.registry.core.secure.AuthorizationFailedException: Resource update failed. User rev is not authorized to update the resource /_system/governance/mobileapps/pub/android/WSO2 App/1.0. [2014-10-22 15:33:27,966] ERROR - GovernanceArtifactImpl Invoking lifecycle action Approve failed org.wso2.carbon.registry.core.exceptions.RegistryException: Resource update failed. User rev is not authorized to update the resource /_system/governance/mobileapps/pub/android/WSO2 App/1.0. at org.wso2.jaggery.scxml.aspects.JaggeryTravellingPermissionLifeCycle.invoke(JaggeryTravellingPermissionLifeCycle.java:510) at org.wso2.carbon.governance.registry.eventing.handlers.GovernanceEventingHandler.invokeAspect(GovernanceEventingHandler.java:243) at org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.invokeAspect(HandlerManager.java:2792) at org.wso2.carbon.registry.core.jdbc.handlers.HandlerLifecycleManager.invokeAspect(HandlerLifecycleManager.java:531) at org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.invokeAspect(EmbeddedRegistry.java:2550) at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.invokeAspect(CacheBackedRegistry.java:427) at org.wso2.carbon.registry.core.session.UserRegistry.invokeAspect(UserRegistry.java:1930) at org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.invokeAction(GovernanceArtifactImpl.java:625) at org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.invokeAction(GovernanceArtifactImpl.java:605) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.mozilla.javascript.gen.artifacts_17._c_anonymous_21(artifacts:283) at org.mozilla.javascript.gen.artifacts_17.call(artifacts) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.apis.v_1.c4._c_mobileAppsLifeCycleChange_24(/publisher/apis/v1/lifecycle_api_router.jag:473) at org.jaggeryjs.rhino.publisher.apis.v_1.c4.call(/publisher/apis/v1/lifecycle_api_router.jag) at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63) at org.jaggeryjs.rhino.publisher.apis.v_1.c4._c_anonymous_9(/publisher/apis/v1/lifecycle_api_router.jag:138) at org.jaggeryjs.rhino.publisher.apis.v_1.c4.call(/publisher/apis/v1/lifecycle_api_router.jag) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.publisher.modules.c4._c_anonymous_12(/publisher/modules/router-g.js:183) at org.jaggeryjs.rhino.publisher.modules.c4.call(/publisher/modules/router-g.js) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.apis.v_1.c4._c_anonymous_1(/publisher/apis/v1/lifecycle_api_router.jag:438) at org.jaggeryjs.rhino.publisher.apis.v_1.c4.call(/publisher/apis/v1/lifecycle_api_router.jag) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.modules.c6._c_anonymous_17(/publisher/modules/publisher.js:438) at org.jaggeryjs.rhino.publisher.modules.c6.call(/publisher/modules/publisher.js) at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23) at org.mozilla.javascript.gen._store__server_js_8._c_anonymous_17([store]/server.js:271) at org.mozilla.javascript.gen._store__server_js_8.call([store]/server.js) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.modules.c6._c_anonymous_16(/publisher/modules/publisher.js:433) at org.jaggeryjs.rhino.publisher.modules.c6.call(/publisher/modules/publisher.js) at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52) at org.jaggeryjs.rhino.publisher.apis.v_1.c4._c_script_0(/publisher/apis/v1/lifecycle_api_router.jag:24) at
Re: [Dev] Limitations with Cache Mediator
Hi Lalaji, In REQUESTHASHGenerator, we excluded Date and User-Agent headers when generating the request hash. If there are any other or custom headers which need to be excluded, we can write a new Hash Generator implementation by extending REQUESTHASHGenerator and override 'getDigest()' method. Then we can use that in the cache mediator. Thanks, Lakmali On 22 October 2014 22:59, Lalaji Sureshika lal...@wso2.com wrote: Hi, On Fri, Dec 6, 2013 at 2:49 AM, Lakmali Baminiwatta lakm...@wso2.com wrote: Hi Sanjeewa, On 6 December 2013 07:48, Sanjeewa Malalgoda sanje...@wso2.com wrote: On Mon, Dec 2, 2013 at 6:23 PM, Lakmali Baminiwatta lakm...@wso2.com wrote: Hi, On 2 December 2013 18:02, Sumedha Rubasinghe sume...@wso2.com wrote: On Mon, Dec 2, 2013 at 5:24 PM, Lakmali Baminiwatta lakm...@wso2.com wrote: Hi Sanjeewa, On 2 December 2013 17:00, Sanjeewa Malalgoda sanje...@wso2.com wrote: On Sun, Dec 1, 2013 at 11:01 PM, Lakmali Baminiwatta lakm...@wso2.com wrote: Hi all, When processing the response, if the request is REST then soap format, transport headers and message type are also stored. Similarly when retrieving the cached response, if the request is REST then stored values are used to compose the response message. With these modifications cache mediator returns the response correctly for non SOAP requests. But we have another issue here. Currently the request Hash value is derived from the SOAP message body. So for REST calls it gets the same hash value for all requests which sent without a payload. ex: Both below requests are recognized as the same request according to the hash value derived from DOMHASHGenerator. curl -v -H Authorization: Bearer 1EV6Qqa_DboaBzNj2JfiyXoO1Ysa http://localhost:8280/test/1.0.0?regNo=001 curl -v -H Authorization: Bearer 1EV6Qqa_DboaBzNj2JfiyXoO1Ysa http://localhost:8280/test/1.0.0?regNo=002 http://localhost:8280/test/1.0.0?regNo=001 So right now we need to figure out a mechanism to generate hash value for REST calls. How if we consider full request path(including query params and etc) + headers. For above example something like follows (full request path and , separated transport headers list). We can compute hash value of that string and store it. *http://localhost:8280/test/1.0.0?regNo=002,Authorization http://localhost:8280/test/1.0.0?regNo=002,Authorization: Bearer 1EV6Qqa_DboaBzNj2JfiyXoO1Ysa* Here we cannot only consider full request path as we take some decisions at backend based on headers. WDYT? Yeah, need to consider request path + headers. But I think we don't need hash Authorization headers, as request hits the cache mediator after going through the handlers. So in default case, at the time of hashing we don't have the authorization header. So AFAIU, the only concern which comes up here is, same request invoked using different keys may get the response from the cache. I believe that is ok. WDYT? We simply store response values against a given request pattern. But Authorisation header should not be part of it. Otherwise it will become a token based cache. But are whole lot of other header parameter like content-type, accept header, accept language ( http://en.wikipedia.org/wiki/List_of_HTTP_header_fields). Let's ignore Authorisation header for time being. +1. So for now let's generate the hash based on request path, Accept Content-Type headers and payload (if available). +1. IMO we should use all other headers except authentication headers (Ex. sometimes response may depend on client type or sometimes it may depend on any other custom header). We can use all the headers [1]. But there are some headers which seems not correct to use for hashing the request. ex: Date - This is unique for each request. If this is used for generting the hash, cache will be never used. User-Agent - This is specific to the user client/browser who sent the request. So different caches for different users. So I think we need to figure out which headers to skip or which headers to use for hash generation. Did we consider , above unique request headers to include in hashing the request or are we generating the cache digest based on all transport headers..? [1]http://en.wikipedia.org/wiki/List_of_HTTP_header_fields Thanks, Lakmali Thanks, sanjeewa. Thanks, Lakmali I am writing a new Digest Generator implementation by extending DOMHASHGenerator. This basically does what DOMHASHGenerator had been doing and additionally it digests request path and available transport headers as well. Thanks, Lakmali Thanks, sanjeewa. Thanks, Lakmali On 29 November 2013 00:18, Lakmali Baminiwatta lakm...@wso2.com wrote: Hi all, Currently Cache mediator stores the response message as a byte array and builds the soap envelope from that when sending the cached response[1]. When building the response, it checks whether the request
Re: [Dev] Use of javax.net.ssl.keyStore and javax.net.ssl.trustStore
You should be able to use SSLSocketFactory API to create a custom SSL context. However you need to think about where you are going to store the key store and trust store. For your requirement, it should default to the carbon key store and trust store in IS by default. Only if someone wants to they can override it with their own configuration. Basically you need to provide a callback to get this information. Default callback should populate it using carbon server key store. Thanks, Johann. On Wed, Oct 22, 2014 at 12:47 PM, Tharindu Edirisinghe tharin...@wso2.com wrote: Hi, I have a webapp that calls an admin service of IS through mutual ssl authentication. The call is done using the HttpClient. For that I am setting the keystore and truststore details of the client at runtime like below. System.setProperty(javax.net.ssl.keyStore, CLIENT_KEY_STORE_PATH); System.setProperty(javax.net.ssl.trustStore, CLIENT_TRUST_STORE_PATH); System.setProperty(javax.net.ssl.keyStorePassword, CLIENT_KEY_STORE_PASSWORD); System.setProperty(javax.net.ssl.trustStorePassword, CLIENT_TRUST_STORE_PASSWORD); SSLContext context = SSLContexts.createSystemDefault(); HttpClientBuilder builder = HttpClientBuilder.create(); RegistryConnectionSocketFactory registry = RegistryBuilder .ConnectionSocketFactorycreate() .register(https, new SSLConnectionSocketFactory(context)) .build(); HttpClientConnectionManager ccm = new BasicHttpClientConnectionManager(registry); builder.setConnectionManager(ccm); HttpClient client = builder.build(); Now I want to get rid of the code that sets the ssl system properties at runtime. Here it is assumed that those properties are already set. But System.getProperty(javax.net.ssl.keyStore) and System.getProperty(javax.net.ssl.keyStorePassword) return null at runtime and therefore the client cannot call the service properly. It seems those two properties get overwritten at runtime. TrustStore properties are not overwritten and they remain with the same values set previously. Any suggestions for setting the keyStore properties correctly (outside the webapp) ? -- Tharindu Edirisinghe Software Engineer | WSO2 Inc Identity Server Team mobile : +94 775 181586 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Use of javax.net.ssl.keyStore and javax.net.ssl.trustStore
HI Tharindu, Here is code example of using custom SSL context. [1] [1] https://github.com/wso2-dev/carbon-platform-integration/blob/master/test-automation-framework/org.wso2.carbon.automation.test.utils/src/main/java/org/wso2/carbon/automation/test/utils/generic/MutualSSLClient.java On Thu, Oct 23, 2014 at 9:39 AM, Johann Nallathamby joh...@wso2.com wrote: You should be able to use SSLSocketFactory API to create a custom SSL context. However you need to think about where you are going to store the key store and trust store. For your requirement, it should default to the carbon key store and trust store in IS by default. Only if someone wants to they can override it with their own configuration. Basically you need to provide a callback to get this information. Default callback should populate it using carbon server key store. Thanks, Johann. On Wed, Oct 22, 2014 at 12:47 PM, Tharindu Edirisinghe tharin...@wso2.com wrote: Hi, I have a webapp that calls an admin service of IS through mutual ssl authentication. The call is done using the HttpClient. For that I am setting the keystore and truststore details of the client at runtime like below. System.setProperty(javax.net.ssl.keyStore, CLIENT_KEY_STORE_PATH); System.setProperty(javax.net.ssl.trustStore, CLIENT_TRUST_STORE_PATH); System.setProperty(javax.net.ssl.keyStorePassword, CLIENT_KEY_STORE_PASSWORD); System.setProperty(javax.net.ssl.trustStorePassword, CLIENT_TRUST_STORE_PASSWORD); SSLContext context = SSLContexts.createSystemDefault(); HttpClientBuilder builder = HttpClientBuilder.create(); RegistryConnectionSocketFactory registry = RegistryBuilder .ConnectionSocketFactorycreate() .register(https, new SSLConnectionSocketFactory(context)) .build(); HttpClientConnectionManager ccm = new BasicHttpClientConnectionManager(registry); builder.setConnectionManager(ccm); HttpClient client = builder.build(); Now I want to get rid of the code that sets the ssl system properties at runtime. Here it is assumed that those properties are already set. But System.getProperty(javax.net.ssl.keyStore) and System.getProperty(javax.net.ssl.keyStorePassword) return null at runtime and therefore the client cannot call the service properly. It seems those two properties get overwritten at runtime. TrustStore properties are not overwritten and they remain with the same values set previously. Any suggestions for setting the keyStore properties correctly (outside the webapp) ? -- Tharindu Edirisinghe Software Engineer | WSO2 Inc Identity Server Team mobile : +94 775 181586 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- 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] Merged Carbon-utils to Carbon-Commons
Hi, The pull request for $subject is attached herewith[1]. [1] https://github.com/wso2/carbon-commons/pull/18 thanks -- Best Regards, Himan Gamage Software Engineer Intern Mobile: *+94714636720* Email: hi...@wso2.com Blog : http://www.himangamage.info/ *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Reduce the execution speed of Web Driver
Hi Krishantha, In order to avoid thread sleeps inside ui-test cases, I have written an extension[01] for the automation framework which waits test execution until assets are populated properly after completing indexing and all. This applies for some other tests(ex: REST APIs) other than ui-test cases as well. With that I do not need to wait test cases unless specific cases. For specific cases where wait is needed We'll implement our own wait functions where ever possible. WDYT? [01] https://docs.wso2.com/display/TA430/TestNG+Listeners Thanks! - Ayesha On Thu, Oct 23, 2014 at 6:06 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi, On Mon, Oct 20, 2014 at 10:25 AM, Ayesha Dissanayaka aye...@wso2.com wrote: Hi, I'm also having this concern while executing UI test cases in WSO2 ES. In my case ES Publisher App take ablout 15sec in order to populate properly after completing indexing and all. Hence, I have to thread sleep all the test classes. I would also like to know whether this is the recommended way to slow down the web driver, or can we implicitly wait to start the test execution by the framework. Never use thread sleeps for waits unless it is really required and no any other way to achieve page waits. You need to write your own wait function based on the elements you are expecting to be visible in next step. References given at [1] would be helpful. [1] http://selenium-tutorial.blogspot.com/2014/03/webdriver-wait-for-page-load.html Thanks, Krishantha. Thanks! - Ayesha On Fri, Oct 17, 2014 at 10:10 AM, Sohani Weerasinghe soh...@wso2.com wrote: Hi, When using selenium web driver to write test cases, currently I am using Thread sleeps in order to control the speed of the browser. Is this the recommended way to slow down the execution speed? Please note that I am also using explicit waits to wait for certain conditions to occur before proceeding further and implicit waits to poll the DOM for a certain amount of time to find an element. Thanks, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Ayesha Dissanayaka* Software Engineer, WSO2, Inc : http://wso2.com http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg 20, Palmgrove Avenue, Colombo 3 E-Mail: aye...@wso2.com ayshsa...@gmail.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *Ayesha Dissanayaka* Software Engineer, WSO2, Inc : http://wso2.com http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg 20, Palmgrove Avenue, Colombo 3 E-Mail: aye...@wso2.com ayshsa...@gmail.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Session maintain in HttpClient
Hi, AFAIK, client session management should be handled by both client side and server side. If you use Servlet container like tomat, it automatically manage session and send the relevant session cookie to client side. If you want to use that session, in subsequent requests you have to send the same session cookie from client side. There may have easy mechanism to pass back and forth the session cookie in org.apache.http.client.HttpClient. Or otherwise you have to get the session cookie from previous http response and set it to the next http request manually. Thanks, Roshan Deniyage Associate Technical Lead WSO2, Inc: http://wso2.com Mobile: +94 777636406 Twitter: *https://twitter.com/roshku https://twitter.com/roshku* LinkedIn : https://www.linkedin.com/in/roshandeniyage On Wed, Oct 22, 2014 at 10:35 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Amila, As I understood session should maintain in server not client right? and is these two Jsp pages reside in same web application? if they are in same web app, one thing to notice is your session may be time out. make sure it is not. you can try adding below code in your jsp2 %@ page language=java contentType=text/html session=true % the solution in thread [1] may be helpful for setting session variable. http://www.experts-exchange.com/Programming/Misc/Q_21903762.html Thanks On Wed, Oct 22, 2014 at 7:29 PM, Manoj Gunawardena man...@wso2.com wrote: Hi Amila, Use same httpContext object to create httpclient connections to test1 and test2 jsps. Thanks On Wed, Oct 22, 2014 at 5:45 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi, I am using org.apache.http.client.HttpClient to send http request, here I want to maintain the session. Ex. I have a web application hosted in tomcat. web app has a *test1.jsp* which set session attribute *code. *there is a another JSP called *test2.jsp* which get the session attribute *code *and print it*. *I use HttpClient and send a request to *test1.jsp *and then *test2.jsp, *when I call the *test2.jsp *it cannot get the session attribute *code *and session is not maintained. Can anyone suggest a solution for this. 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 -- 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 -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005* ___ 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] Session maintain in HttpClient
Hi Lakshman, Session in the server is maintaining properly, But server should recognize same client session accessing the resources, When we send an request to the server, server create an session, when we send an another request sever create another session. We need to send a cookie and access the same session. On Wed, Oct 22, 2014 at 10:35 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Amila, As I understood session should maintain in server not client right? and is these two Jsp pages reside in same web application? if they are in same web app, one thing to notice is your session may be time out. make sure it is not. you can try adding below code in your jsp2 %@ page language=java contentType=text/html session=true % the solution in thread [1] may be helpful for setting session variable. http://www.experts-exchange.com/Programming/Misc/Q_21903762.html Thanks On Wed, Oct 22, 2014 at 7:29 PM, Manoj Gunawardena man...@wso2.com wrote: Hi Amila, Use same httpContext object to create httpclient connections to test1 and test2 jsps. Thanks On Wed, Oct 22, 2014 at 5:45 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi, I am using org.apache.http.client.HttpClient to send http request, here I want to maintain the session. Ex. I have a web application hosted in tomcat. web app has a *test1.jsp* which set session attribute *code. *there is a another JSP called *test2.jsp* which get the session attribute *code *and print it*. *I use HttpClient and send a request to *test1.jsp *and then *test2.jsp, *when I call the *test2.jsp *it cannot get the session attribute *code *and session is not maintained. Can anyone suggest a solution for this. 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 -- 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 -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005* -- *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] Session maintain in HttpClient
Hi Roshan, Correct. Server session is managed by Servlet container and Client session handled by Cookie, We need to get the cookie from first response and pass it to server via second request. BTW I tried it and not working properly. On Thu, Oct 23, 2014 at 10:05 AM, Roshan Deniyage rosh...@wso2.com wrote: Hi, AFAIK, client session management should be handled by both client side and server side. If you use Servlet container like tomat, it automatically manage session and send the relevant session cookie to client side. If you want to use that session, in subsequent requests you have to send the same session cookie from client side. There may have easy mechanism to pass back and forth the session cookie in org.apache.http.client.HttpClient. Or otherwise you have to get the session cookie from previous http response and set it to the next http request manually. Thanks, Roshan Deniyage Associate Technical Lead WSO2, Inc: http://wso2.com Mobile: +94 777636406 Twitter: *https://twitter.com/roshku https://twitter.com/roshku* LinkedIn : https://www.linkedin.com/in/roshandeniyage On Wed, Oct 22, 2014 at 10:35 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Amila, As I understood session should maintain in server not client right? and is these two Jsp pages reside in same web application? if they are in same web app, one thing to notice is your session may be time out. make sure it is not. you can try adding below code in your jsp2 %@ page language=java contentType=text/html session=true % the solution in thread [1] may be helpful for setting session variable. http://www.experts-exchange.com/Programming/Misc/Q_21903762.html Thanks On Wed, Oct 22, 2014 at 7:29 PM, Manoj Gunawardena man...@wso2.com wrote: Hi Amila, Use same httpContext object to create httpclient connections to test1 and test2 jsps. Thanks On Wed, Oct 22, 2014 at 5:45 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi, I am using org.apache.http.client.HttpClient to send http request, here I want to maintain the session. Ex. I have a web application hosted in tomcat. web app has a *test1.jsp* which set session attribute *code. *there is a another JSP called *test2.jsp* which get the session attribute *code *and print it*. *I use HttpClient and send a request to *test1.jsp *and then *test2.jsp, *when I call the *test2.jsp *it cannot get the session attribute *code *and session is not maintained. Can anyone suggest a solution for this. 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 -- 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 -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005* ___ 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 -- *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] Reduce the execution speed of Web Driver
On Thu, Oct 23, 2014 at 10:03 AM, Ayesha Dissanayaka aye...@wso2.com wrote: Hi Krishantha, In order to avoid thread sleeps inside ui-test cases, I have written an extension[01] for the automation framework which waits test execution until assets are populated properly after completing indexing and all. This applies for some other tests(ex: REST APIs) other than ui-test cases as well. With that I do not need to wait test cases unless specific cases. For specific cases where wait is needed We'll implement our own wait functions where ever possible. WDYT? +1 would like to go though the new extension during the code review schedule in next week. May be we can make it a common extension and reuse it for all products. Thanks, Krishantha. [01] https://docs.wso2.com/display/TA430/TestNG+Listeners Thanks! - Ayesha On Thu, Oct 23, 2014 at 6:06 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi, On Mon, Oct 20, 2014 at 10:25 AM, Ayesha Dissanayaka aye...@wso2.com wrote: Hi, I'm also having this concern while executing UI test cases in WSO2 ES. In my case ES Publisher App take ablout 15sec in order to populate properly after completing indexing and all. Hence, I have to thread sleep all the test classes. I would also like to know whether this is the recommended way to slow down the web driver, or can we implicitly wait to start the test execution by the framework. Never use thread sleeps for waits unless it is really required and no any other way to achieve page waits. You need to write your own wait function based on the elements you are expecting to be visible in next step. References given at [1] would be helpful. [1] http://selenium-tutorial.blogspot.com/2014/03/webdriver-wait-for-page-load.html Thanks, Krishantha. Thanks! - Ayesha On Fri, Oct 17, 2014 at 10:10 AM, Sohani Weerasinghe soh...@wso2.com wrote: Hi, When using selenium web driver to write test cases, currently I am using Thread sleeps in order to control the speed of the browser. Is this the recommended way to slow down the execution speed? Please note that I am also using explicit waits to wait for certain conditions to occur before proceeding further and implicit waits to poll the DOM for a certain amount of time to find an element. Thanks, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Ayesha Dissanayaka* Software Engineer, WSO2, Inc : http://wso2.com http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg 20, Palmgrove Avenue, Colombo 3 E-Mail: aye...@wso2.com ayshsa...@gmail.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *Ayesha Dissanayaka* Software Engineer, WSO2, Inc : http://wso2.com http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg 20, Palmgrove Avenue, Colombo 3 E-Mail: aye...@wso2.com ayshsa...@gmail.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Carbon] - How to revert the changes made by 'sh ciphertool.sh -Dconfigure' command?
Thanks Isuru for the information. I was looking for an one time change rather than manual changes. Anyway, if there is no such way, I'll follow the manual way. Thanks again. Roshan Deniyage Associate Technical Lead WSO2, Inc: http://wso2.com Mobile: +94 777636406 Twitter: *https://twitter.com/roshku https://twitter.com/roshku* LinkedIn : https://www.linkedin.com/in/roshandeniyage On Wed, Oct 22, 2014 at 10:47 PM, Isuru Perera isu...@wso2.com wrote: Hi Roshan, There is no way to revert all changes at once, but you can just remove the secret alias with secure vault name space (svns:secretAlias) and use a plain text password. For example: You can change following Password svns:secretAlias=Carbon.Security.KeyStore.KeyPasswordpassword/Password to Passwordwso2carbon/Password I hope this helps! Thanks! Best Regards, On Wed, Oct 22, 2014 at 2:10 PM, Roshan Deniyage rosh...@wso2.com wrote: Hi Devs, I'm working with secure vault feature in wso2 products. After we encrypting the sensitive data in configuration files using the command sh ciphertool.sh -Dconfigure, is there a way to revert the changes made? I mean if someone wants to use plain text password later on, is there a way to do it without touching the configuration files manually? Thanks, Roshan Deniyage Associate Technical Lead WSO2, Inc: http://wso2.com Mobile: +94 777636406 Twitter: *https://twitter.com/roshku https://twitter.com/roshku* LinkedIn : https://www.linkedin.com/in/roshandeniyage ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Isuru Perera Senior Software Engineer | WSO2, Inc. | http://wso2.com/ Lean . Enterprise . Middleware about.me/chrishantha ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APIM][BAM] issue with integrating APIM 1.8.0 with BAM 2.5.0
Hi, When a port offset is applied to BAM 2.5.0, it'll automatically increment the ports of all Cassandra data sources if they have been pointed to embedded Cassandra instance. So there's no need to manually edit BAM_HOME/repository/conf/bam-datasources.xml file anymore. For more information on BAM 2.5.0 port offset configuration, refer [1] For BAM 2.4.1 port offset configurations, refer [2] [1] https://docs.wso2.com/display/BAM250/Port+Offset [2] https://docs.wso2.com/display/BAM241/Port+Offset Regards, Dunith On Wed, Oct 22, 2014 at 4:03 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi All, As per the offline discussion with Maninda, after changing the port offset to another value rather than zero, it shouldn't change the port for WSO2BAM_CASSANDRA_DATASOURCE in bam-datasource.xml in BAM 2.5.0. with that change setup is working properly Thanks On Wed, Oct 22, 2014 at 1:55 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi All, I am trying to integrate BAM 2.5.0 with APIM 1.8.0. I followed https://docs.wso2.com/display/AM170/Publishing+API+Runtime+Statistics to do this. After I configured BAM and started it, got the following exception and can’t publish the data. anyone has any idea about this error? [2014-10-22 13:42:00,008] INFO {org.wso2.carbon.analytics.hive.task.HiveScriptExecutorTask} - Running script executor task for script am_stats_analyzer. [Wed Oct 22 13:42:00 GMT+05:30 2014] Hive history file=/Users/lakshman/Documents/wso2_products/BAM/wso2bam-2.5.0/tmp/hive/root-querylogs/hive_job_log_lakshman_201410221342_1864185710.txt 2014-10-22 13:42:00.943 java[15403:9407] Unable to load realm info from SCDynamicStore [2014-10-22 13:42:01,367] ERROR {org.apache.hadoop.hive.cassandra.CassandraProxyClient} - Error while trying to connect to cassandra host:localhost org.apache.hadoop.hive.cassandra.CassandraException: unable to connect to server at org.apache.hadoop.hive.cassandra.CassandraClientHolder.initClient(CassandraClientHolder.java:65) at org.apache.hadoop.hive.cassandra.CassandraClientHolder.init(CassandraClientHolder.java:40) at org.apache.hadoop.hive.cassandra.CassandraProxyClient.createConnection(CassandraProxyClient.java:200) at org.apache.hadoop.hive.cassandra.CassandraProxyClient.initializeConnection(CassandraProxyClient.java:226) at org.apache.hadoop.hive.cassandra.CassandraProxyClient.init(CassandraProxyClient.java:142) at org.apache.hadoop.hive.cassandra.CassandraManager.openConnection(CassandraManager.java:219) at org.apache.hadoop.hive.cassandra.CassandraStorageHandler.preCreateTable(CassandraStorageHandler.java:284) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.createTable(HiveMetaStoreClient.java:396) at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:540) at org.apache.hadoop.hive.ql.exec.DDLTask.createTable(DDLTask.java:3479) at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:225) at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:129) at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:62) at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1351) at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1126) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:934) at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:201) at org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:187) at org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.executeHiveQuery(HiveExecutorServiceImpl.java:578) at org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:286) at org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:189) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:695) Caused by: org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused at org.apache.thrift.transport.TSocket.open(TSocket.java:183) at org.apache.thrift.transport.TFramedTransport.open(TFramedTransport.java:81) at org.apache.hadoop.hive.cassandra.CassandraClientHolder.initClient(CassandraClientHolder.java:63) ... 25 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:382) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:241) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:228) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:431) at
Re: [Dev] Use of javax.net.ssl.keyStore and javax.net.ssl.trustStore
Hi Tharindu, Are you using HttpClient library or javax.net library ? I think its better you use javax.net library like Waruna has used, then there will be less dependencies to pack into the webapp. The authenticationendpoint webapp should be lightweight as possible. Thanks, Johann. On Thu, Oct 23, 2014 at 9:39 AM, Johann Nallathamby joh...@wso2.com wrote: You should be able to use SSLSocketFactory API to create a custom SSL context. However you need to think about where you are going to store the key store and trust store. For your requirement, it should default to the carbon key store and trust store in IS by default. Only if someone wants to they can override it with their own configuration. Basically you need to provide a callback to get this information. Default callback should populate it using carbon server key store. Thanks, Johann. On Wed, Oct 22, 2014 at 12:47 PM, Tharindu Edirisinghe tharin...@wso2.com wrote: Hi, I have a webapp that calls an admin service of IS through mutual ssl authentication. The call is done using the HttpClient. For that I am setting the keystore and truststore details of the client at runtime like below. System.setProperty(javax.net.ssl.keyStore, CLIENT_KEY_STORE_PATH); System.setProperty(javax.net.ssl.trustStore, CLIENT_TRUST_STORE_PATH); System.setProperty(javax.net.ssl.keyStorePassword, CLIENT_KEY_STORE_PASSWORD); System.setProperty(javax.net.ssl.trustStorePassword, CLIENT_TRUST_STORE_PASSWORD); SSLContext context = SSLContexts.createSystemDefault(); HttpClientBuilder builder = HttpClientBuilder.create(); RegistryConnectionSocketFactory registry = RegistryBuilder .ConnectionSocketFactorycreate() .register(https, new SSLConnectionSocketFactory(context)) .build(); HttpClientConnectionManager ccm = new BasicHttpClientConnectionManager(registry); builder.setConnectionManager(ccm); HttpClient client = builder.build(); Now I want to get rid of the code that sets the ssl system properties at runtime. Here it is assumed that those properties are already set. But System.getProperty(javax.net.ssl.keyStore) and System.getProperty(javax.net.ssl.keyStorePassword) return null at runtime and therefore the client cannot call the service properly. It seems those two properties get overwritten at runtime. TrustStore properties are not overwritten and they remain with the same values set previously. Any suggestions for setting the keyStore properties correctly (outside the webapp) ? -- Tharindu Edirisinghe Software Engineer | WSO2 Inc Identity Server Team mobile : +94 775 181586 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Permission issue when changing the life cycle state in ES publisher
Hi Dilan, As per our offline discussion this seems to be caused by the reviewer attempting change the state to a state in which he/she has no get rights to the resource. One way of tackle this problem would be to do lifecycle transitions as an admin user after checking the permissions of the logged in user.However, the downside to do tackling this problem with this approach is that the lifecycle history records the transition as been done by the admin user. The necessary methods to implement this functionality can found at: 1. *permissions.js *(URL: https://github.com/wso2-dev/product-es/blob/master/modules/apps/publisher/modules/permissions.js) https://github.com/wso2-dev/product-es/blob/master/modules/apps/publisher/modules/permissions.js - This script will determine if a given user has the necessary permissions to change the state 2. *rxt manager* (URL: https://github.com/wso2-dev/product-es/blob/master/modules/apps/publisher/modules/rxt.manager.js#L116 ) - Provides a utility method to obtain an artifact manager instance (Used to perform the lifecycle transition) which uses the system registry of the current tenant A sample implementation can be found here: https://github.com/wso2-dev/product-es/blob/master/modules/apps/publisher/apis/v1/lifecycle_api_router.jag#L171 Thank You, Sameera On Thu, Oct 23, 2014 at 8:01 AM, Chathura Dilan chathu...@wso2.com wrote: Hi Sameera, It is In-Review to Approved On Wed, Oct 22, 2014 at 5:36 PM, Sameera Medagammaddegedara samee...@wso2.com wrote: Hi DIlan, Could you provide the states involved in the transition? Thank You, Sameera On Wed, Oct 22, 2014 at 4:27 PM, Chathura Dilan chathu...@wso2.com wrote: Hi, I'm getting the following exception when changing the life-cycle state ( to Approve or Reject) in mobile publisher with reviewer role. JaggeryTravellingPermissionLifeCycle org.wso2.carbon.registry.core.secure.AuthorizationFailedException: Resource update failed. User rev is not authorized to update the resource /_system/governance/mobileapps/pub/android/WSO2 App/1.0. [2014-10-22 15:33:27,966] ERROR - GovernanceArtifactImpl Invoking lifecycle action Approve failed org.wso2.carbon.registry.core.exceptions.RegistryException: Resource update failed. User rev is not authorized to update the resource /_system/governance/mobileapps/pub/android/WSO2 App/1.0. at org.wso2.jaggery.scxml.aspects.JaggeryTravellingPermissionLifeCycle.invoke(JaggeryTravellingPermissionLifeCycle.java:510) at org.wso2.carbon.governance.registry.eventing.handlers.GovernanceEventingHandler.invokeAspect(GovernanceEventingHandler.java:243) at org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.invokeAspect(HandlerManager.java:2792) at org.wso2.carbon.registry.core.jdbc.handlers.HandlerLifecycleManager.invokeAspect(HandlerLifecycleManager.java:531) at org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.invokeAspect(EmbeddedRegistry.java:2550) at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.invokeAspect(CacheBackedRegistry.java:427) at org.wso2.carbon.registry.core.session.UserRegistry.invokeAspect(UserRegistry.java:1930) at org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.invokeAction(GovernanceArtifactImpl.java:625) at org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.invokeAction(GovernanceArtifactImpl.java:605) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.mozilla.javascript.gen.artifacts_17._c_anonymous_21(artifacts:283) at org.mozilla.javascript.gen.artifacts_17.call(artifacts) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.apis.v_1.c4._c_mobileAppsLifeCycleChange_24(/publisher/apis/v1/lifecycle_api_router.jag:473) at org.jaggeryjs.rhino.publisher.apis.v_1.c4.call(/publisher/apis/v1/lifecycle_api_router.jag) at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63) at org.jaggeryjs.rhino.publisher.apis.v_1.c4._c_anonymous_9(/publisher/apis/v1/lifecycle_api_router.jag:138) at org.jaggeryjs.rhino.publisher.apis.v_1.c4.call(/publisher/apis/v1/lifecycle_api_router.jag) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.publisher.modules.c4._c_anonymous_12(/publisher/modules/router-g.js:183) at org.jaggeryjs.rhino.publisher.modules.c4.call(/publisher/modules/router-g.js) at