[Dev] WSO2 Committers += Malshani Senarathne

2020-10-01 Thread Amalka Subasinghe
Hi All,

It's my pleasure to announce Malshani Senarathne as a WSO2 Committer.

She has been a valuable contributor to the Open Banking team and WSO2. In
recognition of her contribution, dedication, and commitment she has been
voted as a WSO2 committer.

Congratulations Malshani and keep up the good work.

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Divya Premanantha

2020-06-08 Thread Amalka Subasinghe
Hi All,

It's my pleasure to announce Divya Premanantha as a WSO2 committer. She has
been a committed and very valuable contributor to the WSO2 Open Banking
team.

In recognition of her contribution, dedication, and commitment she has been
voted as a WSO2 committer.

Congratulations Divya and keep up the good work..!!!

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [Vote] Release of WSO2 API Microgateway 3.1.0 RC2

2020-03-25 Thread Amalka Subasinghe
Hi,

Tested docker support adding interceptor

No issues found.
*[+] Stable - Go ahead and release*


On Wed, Mar 25, 2020 at 4:32 PM Heshan Sudarshana  wrote:

> Hi all,
>
> Tested the following,
>
>- Define auth schemes for APIS + scopes
>- Configuration with external key managers
>
> No issues found.
>
>
> *[+] Stable - Go ahead and release*
> Thanks,
> Heshan
>
> On Wed, Mar 25, 2020 at 3:22 PM Praminda Jayawardana 
> wrote:
>
>> Hi All,
>>
>> Tested followings.
>>
>>- Authentication with JWT
>>- Pulling APIs/labels from WSO2 APIM
>>- Docker support with both config and command arguments
>>- Mutual SSL (mandatory, optional and security disabled scenarios)
>>- JWT revocation with WSO2 APIM
>>- Disable security for APIs and resources
>>
>>
>> No issues found.
>> *[+] Stable - Go ahead and release*
>>
>> Thanks,
>> Praminda
>>
>> On Wed, Mar 25, 2020 at 2:29 PM Kavindi Gunasinghe 
>> wrote:
>>
>>> Hi all,
>>>
>>> Tested the following scenarios,
>>>
>>>- Quick start guides on Binary distribution and Docker distribution
>>>
>>>
>>>- Tested on initializing a project
>>>   - Tested on building the microgateway project
>>>   - Tested on Running the API Microgateway
>>>   - Tested on obtaining a token and invoking the sample API
>>>
>>>
>>> No issues found
>>> *[+] Stable - Go ahead and release*
>>>
>>> Thanks and Regards
>>>
>>> On Wed, Mar 25, 2020 at 12:09 PM Viraj Gamage  wrote:
>>>
 Hi all,

 Tested the following.

- Global throttling for application policies, subscription
policies, resource level policies, and api level policies
- Analytics event publishing via File upload method
- Analytics event publishing using gRPC

 No issues found.
 *[+] Stable - Go ahead and release*

 regards,
 Viraj


 On Wed, Mar 25, 2020 at 11:57 AM Tharmini Thalayasingam <
 tharm...@wso2.com> wrote:

> Hi All,
>
> Tested the following scenarios.
>
>- Tested open API  with interceptors in resource level
>- Tested Jwt caching
>- Tested Jwt with scopes
>- Tested Custom headers
>- Tested Policy hub
>- Subscription throttling(oauth2 + JWT)(local throttling)
>- Tested Multiple JWT issuers
>- Tested API auth key authentication(API key taken from APIM 3.1.0)
>
> No issues found
> *[+] Stable - Go ahead and release*
>
> Thanks and Regards,
> T.Tharmini | Software Engineer | WSO2 Inc.
> (m) +94770085895 | Email: tharm...@wso2.com
> Linkedin:
> https://www.linkedin.com/in/tharmini-thalayasingam-74421b10b/
> Medium: https://medium.com/@tharmini7
> 
>
>
> On Tue, Mar 24, 2020 at 11:43 PM Praminda Jayawardana <
> prami...@wso2.com> wrote:
>
>> Hi All,
>>
>> WSO2 Api Manager team is pleased to announce the second release
>> candidate of WSO2 API Microgateway 3.1.0.
>>
>> The WSO2 API Microgateway is a lightweight, gateway distribution
>> which can be used to expose single or multiple APIs.
>>
>> Please find the improvements and fixes related to this release in Fixed
>> issues
>> 
>>
>> Download the product from here
>> 
>>
>> The Tag to be voted upon is
>> https://github.com/wso2/product-microgateway/tree/v3.1.0-rc2
>>
>>
>> Documentation: https://docs.wso2.com/display/MG310/
>>
>> Please download, test the product and vote.
>>
>>
>> *[+] Stable - Go ahead and release*
>>
>> *[-] Broken - Do not release *(explain why)
>>
>> Best Regards,
>> WSO2 API Manager Team
>>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


 --
 *Viraj Salaka Gamage* | Software Engineer | WSO2 Inc.
 +94 710 618 178
 GET INTEGRATION AGILE
 Integration Agility for Digitally Driven Business
 ___
 Architecture mailing list
 architect...@wso2.org
 https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

>>>
>>>
>>> --
>>> *Kavindi Gunasinghe* | Intern - Engineering | WSO2 Inc.
>>> 
>>> (M)+94 773058210 | (E) kavi...@wso2.com 
>>> 
>>>
>>>
>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>
>>
>> --
>>
>> *Praminda Jayawardana* | Associate Technical Lead | WSO2 Inc.
>> (m) +94 (0) 716 590918 | (e) 

[Dev] WSO2 Committers += Charitha Deshapriya

2019-12-02 Thread Amalka Subasinghe
Hi All,

It's my pleasure to announce Charitha Deshapriya as a WSO2 committer. He
has been a valuable contributor to WSO2 Open Banking team.

Congratulations Charitha!

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Kasun Dharmadasa

2019-11-27 Thread Amalka Subasinghe
Hi All,

It's my pleasure to announce Kasun Dharmadasa as a WSO2 committer. He has
been a valuable contributor to WSO2 Open Banking team.

Congratulations Kasun!

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Kaveen Rodrigo

2019-05-12 Thread Amalka Subasinghe
Hi All,

It's my pleasure to announce Kaveen Rodrigo as a WSO2 committer. He has
been a valuable contributor to WSO2 Open Banking team.

Congratulations Kaveen!

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Amjadh Ifthikar

2019-04-24 Thread Amalka Subasinghe
Hi All,

It's my pleasure to announce Amjadh Ifthikar as a WSO2 committer. He has
been a valuable contributor to WSO2 Open Banking team.

Congratulations Amjadh!

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Dimuth Manikgama

2018-12-14 Thread Amalka Subasinghe
Hi all,

It's my pleasure to announce Dimuth Manikgama as a WSO2 Committer. He has
been a valuable contributor to WSO2.

Congratulations Dimuth and keep up the good work!!

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Sachithra Dangalla

2018-07-15 Thread Amalka Subasinghe
Hi All,

It's my pleasure to announce Sachithra Dangalla as a WSO2 Committer. She
has been a valuable contributor to WSO2 Financial Solution Team.

Congratulations Sachithra and keep up the good work!

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release of WSO2 API Manager 2.5.0 RC4

2018-06-24 Thread Amalka Subasinghe
n store and publisher.
>>>>>>
>>>>>> 6. Installing SCIM identity feature in API Manager 2.5.0
>>>>>> 7. API Properties
>>>>>> 8. SDK generation feature
>>>>>>
>>>>>>
>>>>>> [+] -  Stable - go ahead and release
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>> Chamalee
>>>>>>
>>>>>>
>>>>>> On Fri, Jun 22, 2018 at 12:16 PM, Chamin Dias 
>>>>>> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> Tested following (for both super tenat and tenat) and no issues
>>>>>>> found.
>>>>>>>
>>>>>>> a) Label creation/update
>>>>>>> b) Attaching/removing labels to/from APIs
>>>>>>> c) Displaying label information in Publisher and Store
>>>>>>>
>>>>>>> [+] Stable - go ahead and release
>>>>>>>
>>>>>>> Thanks.
>>>>>>>
>>>>>>> On Fri, Jun 22, 2018 at 12:15 PM, Krishan Wijesena <
>>>>>>> krish...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>> I have tested following and no issues found.
>>>>>>>>
>>>>>>>> 1. Basic API flow
>>>>>>>> - API creation, publishing, invocation.
>>>>>>>> 2. Admin REST API
>>>>>>>> 3. Adding new Throttling policies
>>>>>>>> - Advanced policies
>>>>>>>> - Subscription policies
>>>>>>>> - Application policies
>>>>>>>> - Block list policies
>>>>>>>> 4. Microgateway label add/update REST API
>>>>>>>> 5. Test with browser IE 11
>>>>>>>>  - basic flow (Super tenant/tenant)
>>>>>>>>  - Label add/update
>>>>>>>>
>>>>>>>> [+]Stable - go ahead and release
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> krishan.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Thu, Jun 21, 2018 at 10:36 PM, Chamin Dias 
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi all,
>>>>>>>>>
>>>>>>>>> We are pleased to announce the fourth release candidate of WSO2
>>>>>>>>> API Manager 2.5.0.
>>>>>>>>>
>>>>>>>>> This release fixes the following issues.
>>>>>>>>> Fixes : carbon-apimgt
>>>>>>>>> <https://github.com/wso2/carbon-apimgt/issues?utf8=%E2%9C%93=is%3Aclosed+closed%3A2018-03-16..2018-06-21+-label%3A%22APIM+3.0.0%22>
>>>>>>>>> Fixes : product-apim
>>>>>>>>> <https://github.com/wso2/product-apim/issues?utf8=%E2%9C%93=is%3Aclosed+closed%3A2018-03-16..2018-06-21+-label%3A3.0.0>
>>>>>>>>> Fixes : analytics-apim
>>>>>>>>> <https://github.com/wso2/analytics-apim/issues?utf8=%E2%9C%93=closed%3A2018-03-16..2018-06-21+is%3Aclosed>
>>>>>>>>>
>>>>>>>>> Source and distribution,
>>>>>>>>> Runtime :
>>>>>>>>> https://github.com/wso2/product-apim/releases/tag/v2.5.0-rc4
>>>>>>>>> Analytics :
>>>>>>>>> https://github.com/wso2/analytics-apim/releases/tag/v2.5.0-rc1
>>>>>>>>>
>>>>>>>>> Please download, test the product and vote.
>>>>>>>>>
>>>>>>>>> [+] Stable - go ahead and release
>>>>>>>>> [-] Broken - do not release (explain why)
>>>>>>>>>
>>>>>>>>> *Note : We can still use APIM-Analytics 2.5.0-rc1 for analytics
>>>>>>>>> (no issues reported so far).*
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> WSO2 API Manager Team.
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Chamin Dias
>>>>>>>>> Mobile : 0716097455
>>>>>>>>> Email : cham...@wso2.com
>>>>>>>>> LinkedIn : https://www.linkedin.com/in/chamindias
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ___
>>>>>>>>> Dev mailing list
>>>>>>>>> Dev@wso2.org
>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> *Krishan Wijesena*
>>>>>>>> Software Engineer | WSO2
>>>>>>>>
>>>>>>>> Email : krish...@wso2.com
>>>>>>>> Mobile : +94776219923
>>>>>>>> WSO2 Inc : http://wso2.com
>>>>>>>> [image: http://wso2.com/signature] <http://wso2.com/signature>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Chamin Dias
>>>>>>> Mobile : 0716097455
>>>>>>> Email : cham...@wso2.com
>>>>>>> LinkedIn : https://www.linkedin.com/in/chamindias
>>>>>>>
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thanks & Regards,
>>>>>>
>>>>>> *Chamalee De Silva*
>>>>>> Senior Software Engineer
>>>>>> *WS**O2* Inc. :http://wso2.com/
>>>>>>
>>>>>> Office   :- *+94 11 2145345 <%2B94%2011%202145345>*
>>>>>> mobile  :- *+94 7 <%2B94%2077%202782039>1 4315942*
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Tharika Madurapperuma*
>>>>> Software Engineer | WSO2, Inc.
>>>>>
>>>>> Email : thar...@wso2.com
>>>>> Mobile : +94777875624
>>>>> Web : http://wso2.com
>>>>>
>>>>> <http://wso2.com/signature>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Dinusha Dissanayake
>>>> Software Engineer
>>>> WSO2 Inc
>>>> Mobile: +94712939439
>>>> <https://wso2.com/signature>
>>>> ___
>>>> Architecture mailing list
>>>> architect...@wso2.org
>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>
>>
>> --
>> Vithursa Mahendrarajah
>> Software Engineer
>> WSO2 Inc. - http ://wso2.com
>> Mobile  : +947*66695643*
>>
>>
>> * <http://wso2.com/signature> <http://wso2.com/signature>
>> <http://wso2.com/signature>*
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> Biruntha
>
> Software Engineer
> WSO2
> Email: birun...@wso2.com
> LinkedIn: https://lk.linkedin.com/in/biruntha
> Mobile : +94773718986
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
Amalka Subasinghe

WSO2 Inc. https://wso2.com/
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release of WSO2 Identity Server 5.6.0 RC3

2018-06-19 Thread Amalka Subasinghe
gt;>>>>>> Hi all,
>>>>>>>>>>>>>
>>>>>>>>>>>>> I've tested following scenarios on the IS 5.6.0-RC3 pack.
>>>>>>>>>>>>>
>>>>>>>>>>>>> User management (add/update/remove users).
>>>>>>>>>>>>> User management in secondary userstores (Read-Write LDAP).
>>>>>>>>>>>>> Consent Management in SAML SSO.
>>>>>>>>>>>>> SAML to SAML federation.
>>>>>>>>>>>>> Creating workflows definitions for primary userstore users.
>>>>>>>>>>>>> Engaging/Disabling workflows on user-store operations.
>>>>>>>>>>>>> Enable role based authorization using XACML for service
>>>>>>>>>>>>> providers.
>>>>>>>>>>>>> Tenant creation/update/disabling.
>>>>>>>>>>>>>
>>>>>>>>>>>>> No blocking issues are found.
>>>>>>>>>>>>>
>>>>>>>>>>>>> [+] Stable - go ahead and release.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>> Sathya
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Tue, Jun 19, 2018 at 12:26 PM, Vihanga Liyanage <
>>>>>>>>>>>>> viha...@wso2.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hi all,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I've tested following scenarios on the IS 5.6.0-RC3 pack
>>>>>>>>>>>>>> with default database setup.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>- Enable user self-registration and self-register a new
>>>>>>>>>>>>>>user.
>>>>>>>>>>>>>>- Add multiple consent purposes with multiple PII
>>>>>>>>>>>>>>categories.
>>>>>>>>>>>>>>- Login to dashboard and see whether we can see the
>>>>>>>>>>>>>>default consent and above added PII categories.
>>>>>>>>>>>>>>- Confirm claims are getting filtered based on consents.
>>>>>>>>>>>>>>- Configure a service provider with OpenID Connect and
>>>>>>>>>>>>>>acquire access tokens via Authorization Code, Implicit, 
>>>>>>>>>>>>>> Client Credential
>>>>>>>>>>>>>>and Password grant types.
>>>>>>>>>>>>>>- Enable ID token encryption for the service provider and
>>>>>>>>>>>>>>test the flow with decryption for all grant types.
>>>>>>>>>>>>>>- Delete the self-signed up user, create another user
>>>>>>>>>>>>>>with the exact same username, log in to the dashboard and see 
>>>>>>>>>>>>>> what are the
>>>>>>>>>>>>>>consents shown.
>>>>>>>>>>>>>>- Revoke consents of the user via the dashboard and try
>>>>>>>>>>>>>>accessing the SP to verify the consents are asked again.
>>>>>>>>>>>>>>- Delete the SP, login to the dashboard and see whether
>>>>>>>>>>>>>>the consents are deleted for that SP.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> No blocking issues are found.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> [+] Stable - go ahead and release.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>> Vihanga.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Fri, Jun 15, 2018 at 6:29 PM Madawa Soysa <
>>>>>>>>>>>>>> mada...@wso2.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hi all,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> We are pleased to announce the third release candidate of
>>>>>>>>>>>>>>> WSO2 Identity Server 5.6.0.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> This release fixes the following issues
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>- 5.6.0-RC Fixes
>>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/40?closed=1>
>>>>>>>>>>>>>>>- 5.6.0-Beta Fixes
>>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/39?closed=1>
>>>>>>>>>>>>>>>- 5.6.0-Alpha2 Fixes
>>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/43?closed=1>
>>>>>>>>>>>>>>>- 5.6.0-Alpha Fixes
>>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/38?closed=1>
>>>>>>>>>>>>>>>- 5.6.0-M7 Fixes
>>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/37?closed=1>
>>>>>>>>>>>>>>>- 5.6.0-M6 Fixes
>>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/36?closed=1>
>>>>>>>>>>>>>>>- 5.6.0-M5 Fixes
>>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/35?closed=1>
>>>>>>>>>>>>>>>- 5.6.0-M4 Fixes
>>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/34?closed=1>
>>>>>>>>>>>>>>>- 5.6.0-M3 Fixes
>>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/33?closed=1>
>>>>>>>>>>>>>>>- 5.6.0-M2 Fixes
>>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/31?closed=1>
>>>>>>>>>>>>>>>- 5.6.0-M1 Fixes
>>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/30?closed=1>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Source and distribution,
>>>>>>>>>>>>>>> Runtime -
>>>>>>>>>>>>>>> https://github.com/wso2/product-is/releases/tag/v5.6.0-rc3
>>>>>>>>>>>>>>> Analytics -
>>>>>>>>>>>>>>> https://github.com/wso2/analytics-is/releases/v5.6.0-rc3
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Please download, test the product and vote.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> [+] Stable - go ahead and release
>>>>>>>>>>>>>>> [-] Broken - do not release (explain why)
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>>> WSO2 Identity and Access Management Team
>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Madawa Soysa / Senior Software Engineer
>>>>>>>>>>>>>>> mada...@wso2.com / +94714616050
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> *WSO2 Inc.*
>>>>>>>>>>>>>>> lean.enterprise.middleware
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>   <https://wso2.com/signature>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Vihanga Liyanage
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Software Engineer | WS*O₂* Inc.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> M : +*94710124103* | http://wso2.com
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> [image: http://wso2.com/signature]
>>>>>>>>>>>>>> <http://wso2.com/signature>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ___
>>>>>>>>>>>>>> Dev mailing list
>>>>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Sathya Bandara
>>>>>>>>>>>>> Software Engineer
>>>>>>>>>>>>> WSO2 Inc. http://wso2.com
>>>>>>>>>>>>> Mobile: (+94) 715 360 421 <+94%2071%20411%205032>
>>>>>>>>>>>>>
>>>>>>>>>>>>> <+94%2071%20411%205032>
>>>>>>>>>>>>>
>>>>>>>>>>>>

-- 
Amalka Subasinghe

WSO2 Inc. https://wso2.com/
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to get the Maven project version into a shell script?

2018-04-17 Thread Amalka Subasinghe
If you can run the shell script as a step in maven process, you can easily
pass the ${project.version} using exec-maven-plugin

On Wed, Apr 18, 2018 at 9:36 AM, Abimaran Kugathasan <abima...@wso2.com>
wrote:

> Hi Nipuni,
>
> You can use xmlstarlet to read the version of the project without adding
> a maven plugin to POM file. I used this to read XML values in the command
> line. An example can be found here [2]
>
> [1]: http://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html
> [2]: https://stackoverflow.com/questions/12640152/xmlstarlet-select-value
>
> On Tue, Apr 17, 2018 at 2:37 PM, Nipuni Bhagya <nipu...@wso2.com> wrote:
>
>> Hi all,
>>
>> I have encountered a problem while trying to get the version number of a
>> jar into a shell script. Currently, the name of the jar is hardcoded in the
>> script. But the problem is when the maven version get updated in the
>> project it should reflect in the script. The closest solution I have come
>> up at the moment is to use the Maven Help Plugin
>> <http://maven.apache.org/plugins/maven-help-plugin/>. The
>> goal help:evaluate can evaluate Maven expression,
>> -Dexpression=project.version and then I can grep the version from its
>> result.
>>
>> I would really appreciate if someone of you could help me to find a
>> better way to achieve this task.
>>
>> Thank you in advance,
>>
>> --
>>
>>
>>
>> *Kind Regards,Nipuni Bhagya*
>>
>> *Software Engineering Intern*
>> *WSO2*
>>
>>
>>
>> *Mobile : +94 0779028904 <+94%2077%20767%201807>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820
>
> <http://stackoverflow.com/users/515034>
> <http://lk.linkedin.com/in/abimaran>
> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
> <https://twitter.com/abimaran>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Amalka Subasinghe

WSO2 Inc. https://wso2.com/
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB Connector] error when working with google drive connector

2017-08-19 Thread Amalka Subasinghe
Hi,

I'm using esb 5.0.0 and downloaded google drive connector from
store.wso2.com and added to the ESB and enabled.
When I try to create a proxy service with google drive init operation. it
does not allow me to do so..gives an error.


amalkasubasin...@gmail.com
x

xxx

https://www.googleapis.com/auth/drive


[2017-08-19 19:26:28,984] ERROR - MediatorFactoryFinder Unknown mediator
referenced by configuration element : {
http://ws.apache.org/ns/synapse}googledriveRest
[2017-08-19 19:26:28,985] ERROR - RPCMessageReceiver Unknown mediator
referenced by configuration element : {
http://ws.apache.org/ns/synapse}googledriveRest
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
at
org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
at
org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at
org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminStub.addProxy(ProxyServiceAdminStub.java:1272)
at
org.wso2.carbon.proxyadmin.ui.client.ProxyServiceAdminClient.addProxy(ProxyServiceAdminClient.java:102)
at
org.apache.jsp.proxyservices.submit_jsp._jspService(submit_jsp.java:147)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:603)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:542)
at
org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:955)
at
org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)
at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682)
at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
at

Re: [Dev] [ESB Connectors] gmail.sendMailWithAttachment gives an error

2017-08-19 Thread Amalka Subasinghe
tried following formats, since sample template and sample request shows
different properties [1]
[1]
https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Messages+in+Gmail#WorkingwithMessagesinGmail-sendMailWithAttachment


   with attachement
   ama...@wso2.com
   ama...@wso2.com
   ama...@wso2.com
   attachement body
   {$ctx:fileName}


and



with attachement
ama...@wso2.com
ama...@wso2.com
ama...@wso2.com
attachement body
{$ctx:filename}
/home/amalka/Desktop/amalka_test_in
 



I tried *sendMail* operation that is working without any issue :)

On Sat, Aug 19, 2017 at 4:47 PM, Amalka Subasinghe <ama...@wso2.com> wrote:

> Hi,
>
> I'm trying to send an email with an attachment using Gmail connector. I'm
> getting the error below. didn;t receive an email. Any idea what's the issue?
>
> 
> http://ws.apache.org/ns/synapse;
>name="sendEmail"
>startOnLoad="true"
>statistics="disable"
>trace="disable"
>transports="https,http">
>
>   
>
>   name="filename"/>
>  
> amalkasubasin...@gmail.com
> 
> 
> xx
> xx
> https://www.googleapis.com/gmail
>  
>
>  
> with attachement
> ama...@wso2.com
> ama...@wso2.com
> ama...@wso2.com
> attachement body
> {$ctx:filename}
> /home/amalka/Desktop/amalka_test_in
>  
>
>   
>   
>   
>
>
> 
>
>
> [2017-08-19 16:26:58,395] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "POST /gmail/v1/users/amalkasubasin...@gmail.com/messages/send
> HTTP/1.1[\r][\n]"
> [2017-08-19 16:26:58,395] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "X-Frame-Options: SAMEORIGIN[\r][\n]"
> [2017-08-19 16:26:58,395] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Authorization: Bearer [\r][\n]"
> [2017-08-19 16:26:58,395] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Alt-Svc: quic=":443"; ma=2592000; v="39,38,37,35"[\r][\n]"
> [2017-08-19 16:26:58,395] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Vary: Origin[\r][\n]"
> [2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Vary: X-Origin[\r][\n]"
> [2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "X-XSS-Protection: 1; mode=block[\r][\n]"
> [2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Expires: Mon, 01 Jan 1990 00:00:00 GMT[\r][\n]"
> [2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Content-Encoding: gzip[\r][\n]"
> [2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Content-Type: application/json[\r][\n]"
> [2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "X-Content-Type-Options: nosniff[\r][\n]"
> [2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Pragma: no-cache[\r][\n]"
> [2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Cache-Control: no-cache, no-store, max-age=0, must-revalidate[\r][\n]"
> [2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Transfer-Encoding: chunked[\r][\n]"
> [2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Host: www.googleapis.com[\r][\n]"
> [2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Connection: Keep-Alive[\r][\n]"
> [2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
> [2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "[\r][\n]"
> [2017-08-19 16:26:58,397] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "e0[\r][\n]"
> [2017-08-19 16:26:58,397] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "[0x1f][0x8b][0x8][0x0][0x0][0x0][0x0][0x0][0x0][0x0]M[
> 0xce]QN[0x83]0[0x0][0x0][0xd0][0xbb]p[0x82]R[0x6]q&~HM[0xeb]
> pVK[0xa4][0xa5][0xfd]k[0xa9]i][\n]"
> [2017-08-19 16:26:58,397] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "4[0xc2][0xb6][0x80][0xf1][0x

[Dev] [ESB Connectors] gmail.sendMailWithAttachment gives an error

2017-08-19 Thread Amalka Subasinghe
Hi,

I'm trying to send an email with an attachment using Gmail connector. I'm
getting the error below. didn;t receive an email. Any idea what's the issue?


http://ws.apache.org/ns/synapse;
   name="sendEmail"
   startOnLoad="true"
   statistics="disable"
   trace="disable"
   transports="https,http">
   
  

 
 
amalkasubasin...@gmail.com


xx
xx
https://www.googleapis.com/gmail
 

 
with attachement
ama...@wso2.com
ama...@wso2.com
ama...@wso2.com
attachement body
{$ctx:filename}
/home/amalka/Desktop/amalka_test_in
 

  
  
  
   
   



[2017-08-19 16:26:58,395] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"POST /gmail/v1/users/amalkasubasin...@gmail.com/messages/send
HTTP/1.1[\r][\n]"
[2017-08-19 16:26:58,395] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"X-Frame-Options: SAMEORIGIN[\r][\n]"
[2017-08-19 16:26:58,395] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Authorization: Bearer [\r][\n]"
[2017-08-19 16:26:58,395] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Alt-Svc: quic=":443"; ma=2592000; v="39,38,37,35"[\r][\n]"
[2017-08-19 16:26:58,395] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Vary: Origin[\r][\n]"
[2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Vary: X-Origin[\r][\n]"
[2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"X-XSS-Protection: 1; mode=block[\r][\n]"
[2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Expires: Mon, 01 Jan 1990 00:00:00 GMT[\r][\n]"
[2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Content-Encoding: gzip[\r][\n]"
[2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Content-Type: application/json[\r][\n]"
[2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"X-Content-Type-Options: nosniff[\r][\n]"
[2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Pragma: no-cache[\r][\n]"
[2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Cache-Control: no-cache, no-store, max-age=0, must-revalidate[\r][\n]"
[2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Transfer-Encoding: chunked[\r][\n]"
[2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Host: www.googleapis.com[\r][\n]"
[2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Connection: Keep-Alive[\r][\n]"
[2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
[2017-08-19 16:26:58,396] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"[\r][\n]"
[2017-08-19 16:26:58,397] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"e0[\r][\n]"
[2017-08-19 16:26:58,397] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"[0x1f][0x8b][0x8][0x0][0x0][0x0][0x0][0x0][0x0][0x0]M[0xce]QN[0x83]0[0x0][0x0][0xd0][0xbb]p[0x82]R[0x6]q&~HM[0xeb]pVK[0xa4][0xa5][0xfd]k[0xa9]i][\n]"
[2017-08-19 16:26:58,397] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"4[0xc2][0xb6][0x80][0xf1][0xee][0xe2][0xdf].[0xf0][0xf2]~[0x92]o}M[0xee][0x13]K[0xee][\n]"
[2017-08-19 16:26:58,397] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
")Ro[0xc8][0xec][0xd9][0xb3]][0xcd]z8K[0xb8][0x9f][0xd1]@S[0xd9][0xc7]
3V[0xb0][0x81][0xaf]Z[0xe4][0xa1][0xcb]^[0x1d][0x83]xQ[0xa8][0xec]Mvp[0x15][0xa1][0xe0][0xf3]).[0xaa][0xc5][0xa9]j)[0xa8]7G[0x8b][0xeb][0x8b][0x1a][0xaa][0x8b][0xf9][0x88][0xde][0x8]>
"HTTP/1.1 200 OK[\r][\n]"
[2017-08-19 16:26:58,926] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
"Cache-Control: no-cache, no-store, max-age=0, must-revalidate[\r][\n]"
[2017-08-19 16:26:58,927] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
"Pragma: no-cache[\r][\n]"
[2017-08-19 16:26:58,927] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
"Expires: Mon, 01 Jan 1990 00:00:00 GMT[\r][\n]"
[2017-08-19 16:26:58,927] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
"Date: Sat, 19 Aug 2017 10:56:58 GMT[\r][\n]"
[2017-08-19 16:26:58,928] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
"Vary: X-Origin[\r][\n]"
[2017-08-19 16:26:58,928] DEBUG - wire 

Re: [Dev] Create a gadget via REST datasource

2016-09-12 Thread Amalka Subasinghe
I cloud generate a gadget using following message formats via rest
datasource option in DAS

*response of data retrieve url:*

{ "message" :[
 
{"is_peak":true,"state":"Florida","metro_area":"Miami","device_id":4,"power_reading":484.4254,"house_id":19},
 
{"is_peak":false,"state":"Arizona","metro_area":"Phoenix","device_id":1,"power_reading":92.64153,"house_id":13},
 
{"is_peak":false,"state":"Texas","metro_area":"Dallas","device_id":3,"power_reading":259.73157,"house_id":2}
]}

*response of schema retrieve url:*

{"message":{
"columns":{
 "house_id":{"type":"INTEGER","isScoreParam":false,"isIndex":false,
"isFacet" : false},
 "metro_area":{"type":"STRING","isScoreParam":false,"isIndex":false,
"isFacet" : false},
 "state":{"type":"STRING","isScoreParam":false,"isIndex":false,
"isFacet" : false},
 "device_id":{"type":"INTEGER","isScoreParam":false,"isIndex":false,
"isFacet" : false},
 "power_reading":{"type":"FLOAT","isScoreParam":false,"isIndex":false,
"isFacet" : false},
 "is_peak":{"type":"BOOLEAN","isScoreParam":false,"isIndex":false,
"isFacet" : false}
},
"primaryKeys":[]
}}



On Wed, Sep 7, 2016 at 7:57 PM, Geesara Prathap <gees...@wso2.com> wrote:

> Hi Amalka,
>
> If you are to use rest data provider, you need to implement a web
> application which exposes those two APIs.  This sample implementation[1-2]
> will help you to understand how these two APIs are implemented. Responses
> of those two APIs should be in the JOSN format as well as response message
> should be similar to this.
>
> Sample response: retrieving the schema.
>
> {
> "columns": {
> "house_id": {
> "type": "INTEGER",
> "isScoreParam": false,
> "isIndex": false
> },
> "metro_area": {
> "type": "STRING",
> "isScoreParam": false,
> "isIndex": false
> },
> "state": {
> "type": "STRING",
> "isScoreParam": false,
> "isIndex": false
> },
> "device_id": {
> "type": "INTEGER",
> "isScoreParam": false,
> "isIndex": false
> },
> "power_reading": {
> "type": "FLOAT",
> "isScoreParam": false,
> "isIndex": false
> },
> "is_peak": {
> "type": "BOOLEAN",
> "isScoreParam": false,
> "isIndex": false
> }
> },
> "primaryKeys": []
> }
>
> Sample response: retrieving the data.
>
> {
>
> "message": [{
> "values": {
> "_version": "1.0.0",
> "is_peak": true,
> "state": "Florida",
> "metro_area": "Miami",
> "device_id": 4,
> "power_reading": 484.4254,
> "house_id": 19
> }
> }, {
> "values": {
> "_version": "1.0.0",
> "is_peak": false,
> "state": "Arizona",
> "metro_area": "Phoenix",
> "device_id": 1,
> "power_reading": 92.64153,
> "house_id": 13
> }
> }]
> }
>
> 1.https://github.com/wso2/product-iots/blob/master/modules/samples/
> geolocationTracker/component/api/src/main/java/org.deviceautomation/
> geolocationTracker/api/GeoLocationTrackerServiceImpl.java#L427
> 2.https://github.com/wso2/product-iots/blob/master/modules/samples/
> geolocationTracker/component/api/src/main/java/org.deviceautomation/
> geolocationTracker/api/GeoLocationTrackerServiceImpl.java#L499
>
> Thanks,
> Geesara
>
> On Wed, Sep 7, 2016 at 1:30 PM, Dunith Dhanushka <dun...@wso2.com> wrote:
>
>> +Geesara
>>
>> On Wed, Sep 7, 2016 at 1:24 PM, Amalka Subasinghe <ama...@wso2.com>
>> wrote:
>>
>>>
>>> Hi,
>>>
>>> I want to create a gadget in DAS via rest datasource
>>> What are the urls I need to provide for Data Retrieve URL * and Schema
>>> Retrieve URL * ?
>>>
>>> I want execute following kind of queries
>>> curl -GET 'http://wso2.influxdb.com:32086/query?pretty=true'
>>> --data-urlencode "db=k8s" --data-urlencode "q=SHOW MEASUREMENTS"
>>>
>>> Please help
>>>
>>> Thanks
>>> Amalka
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Regards,
>>
>> Dunith Dhanushka,
>> Associate Technical Lead
>> WSO2 Inc,
>>
>> Mobile - +94 71 8615744
>> Blog - *https://medium.com/@dunithd <https://medium.com/@dunithd>*
>> Twitter - @dunithd <http://twitter.com/dunithd>
>>
>
>
>
> --
> Geesara Prathap Kulathunga
> Software Engineer
> WSO2 Inc; http://wso2.com
> Mobile : +940772684174
>
>


-- 
Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Create a gadget via REST datasource

2016-09-07 Thread Amalka Subasinghe
Hi,

I want to create a gadget in DAS via rest datasource
What are the urls I need to provide for Data Retrieve URL * and Schema
Retrieve URL * ?

I want execute following kind of queries
curl -GET 'http://wso2.influxdb.com:32086/query?pretty=true'
--data-urlencode "db=k8s" --data-urlencode "q=SHOW MEASUREMENTS"

Please help

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Change the service endpoint URL in wsdl generated for proxy service in ESB

2016-09-03 Thread Amalka Subasinghe
It is through HAProxy URL rewriting.

User can invoke same proxy as following ways.
http://tenantDomain-appName-version-wso2apps.com/HellpProxy
http://tenantDomain-appName-wso2apps.com/HellpProxy
http://custom-url/HellpProxy

Then at the HAProxy level we have added a logic to rewrite above urls to
http://tenantDomain-appName-version-wso2apps.com/services/t/tenantDomain/HellpProxy



On Sun, Sep 4, 2016 at 8:04 AM, Chanaka Fernando <chana...@wso2.com> wrote:

> I'm bit confused about how we differentiate the endpoints for different
> tenants. I thought it was through this "/t/aa.com" section. If I have a
> proxy called "HelloProxy" and you have the same proxy (in your tenant), how
> are we going to differentiate? Is it from "host name" section?
>
> http://cloud.integration.wso2.com/services/*t/chanaka.com/HelloProxy
> <http://chanaka.com/HelloProxy>*
> http://cloud.integration.wso2.com/services/*t/maheeka.com/HelloProxy
> <http://maheeka.com/HelloProxy>*
>
> or
>
> http://*xxx.cloud.integration.wso2.com
> <http://xxx.cloud.integration.wso2.com>*/services/HelloProxy
> http://*yyy.cloud.integration.wso2.com
> <http://yyy.cloud.integration.wso2.com>*/services/HelloProxy
>
>
> On Sun, Sep 4, 2016 at 7:28 AM, Maheeka Jayasuriya <mahe...@wso2.com>
> wrote:
>
>> Hi Chanaka,
>>
>> When we deploy a car file containing a proxy service, we need to show the
>> WSDL for the proxy in integration cloud. The endpoints in the WSDL are
>> composed with the host name of the app and the tenant suffix -
>> t/tenantDomain, since we are doing the deployment in the tenant space.
>>
>> When we get a request as http://esb.wso2.com:8280/servi
>> ces/HelloProxy.HelloProxyHttpSoap11Endpoint
>> <http://jagatha-ThinkPad-T530:8280/services/t/aa.com/HelloProxy.HelloProxyHttpSoap11Endpoint>,
>> it is actually rewritten to http://esb.wso2.com:8280/servi
>> ces/t/aa.com/HelloProxy.HelloProxyHttpSoap11Endpoint
>> <http://jagatha-ThinkPad-T530:8280/services/t/aa.com/HelloProxy.HelloProxyHttpSoap11Endpoint>
>> by the HAProxy. Hence, requests are redirected to real tenant endpoint.
>> However, this tenant information is not necessary to be known to the users
>> when they use the WSDL to send a request. Hence the question whether it is
>> possible to do $subject.
>>
>> Thanks,
>> Maheeka
>>
>> Maheeka Jayasuriya
>> Senior Software Engineer
>> Mobile : +9450661
>>
>> On Sun, Sep 4, 2016 at 7:18 AM, Chanaka Fernando <chana...@wso2.com>
>> wrote:
>>
>>> Hi Jagath,
>>>
>>> What is the requirement here?
>>>
>>> On Sat, Sep 3, 2016 at 11:57 PM, Jagath Sisirakumara Ariyarathne <
>>> jaga...@wso2.com> wrote:
>>>
>>>> Hi All,
>>>>
>>>> When a Proxy (e.g. HelloProxy) is deployed in a tenant space (e.g
>>>> abc.com) in ESB, related wsdl will contain service definition as
>>>> follows;
>>>>
>>>> 
>>>> http://esb.wso2.com:8280/services/t/
>>>> aa.com/HelloProxy.HelloProxyHttpSoap11Endpoint
>>>> <http://jagatha-ThinkPad-T530:8280/services/t/aa.com/HelloProxy.HelloProxyHttpSoap11Endpoint>
>>>> "/>
>>>> 
>>>>
>>>> Is there a way to change the address in this definition, to make it
>>>> without the tenant ID like below, even though it is deployed in tenant
>>>> space.
>>>>
>>>> 
>>>> http://esb.wso2.com:8280/services/He
>>>> lloProxy.HelloProxyHttpSoap11Endpoint
>>>> <http://jagatha-ThinkPad-T530:8280/services/t/aa.com/HelloProxy.HelloProxyHttpSoap11Endpoint>
>>>> "/>
>>>> 
>>>>
>>>>
>>>> Thanks.
>>>> --
>>>> Jagath Ariyarathne
>>>> Technical Lead
>>>> WSO2 Inc.  http://wso2.com/
>>>> Email: jaga...@wso2.com
>>>> Mob  : +94 77 386 7048
>>>> <http://wso2.com/signature>
>>>>
>>>
>>>
>>>
>>> --
>>> Thank you and Best Regards,
>>> Chanaka Fernando
>>> Senior Technical Lead
>>> m: +94 773337238
>>> https://wso2.com <https://wso2.com/signature>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>
>
> --
> Thank you and Best Regards,
> Chanaka Fernando
> Senior Technical Lead
> m: +94 773337238
> https://wso2.com <https://wso2.com/signature>
>
>
>
>
>
>
>


-- 
Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [App Cloud] Loading DSS endpoints to the app cloud home page

2016-08-12 Thread Amalka Subasinghe
Hi,

In App Cloud we want to display all the wsdl endpoints which are deployed
in Data services.
So we need to know the admin password to invoke an admin service, which is
generate when the DSS starts. So we don't know the password.

# Changing admin password
if [ -z ${ADMIN_PASSWORD+x} ]; then
echo "ADMIN_PASSWORD is not set.";
echo "Generating admin password.";
ADMIN_PASSWORD=${ADMIN_PASS:-$(pwgen -s 12 1)}
echo "===
=="
echo "Credentials for the instance:"
echo
echo "user name: admin"
echo "password : $ADMIN_PASSWORD"
echo "===
=="
sed -i 
"s/.*admin<\/Password>.*/$ADMIN_PASSWORD<\/Password>/"
$CARBON_HOME_PATH/repository/conf/user-mgt.xml
else
echo "ADMIN_PASSWORD set by user.";
fi

one approach we can take for this is, generate password in our side, save
it in our database and set it to the container as an environment variable.
is this a good approach? Any other ideas?
This will be required to ESB app type as well (ATM ESB invokes the admin
service using admin/admin).

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Retrieve wsdl urls from DSS

2016-08-10 Thread Amalka Subasinghe
Hi,

Is there a way to get the list of wsdl urls from DSS?

In app cloud when we deploy a car file in DSS, I want to get the wsdl urls
to display on app cloud app-home page. Please help

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [App Cloud] "When createAppInDataBase failed, adding addAppCreationEvent also getting failed"

2016-07-08 Thread Amalka Subasinghe
Hi,

In our app creation logic, we have number of steps and when each step
failed/succeeded, we add a event to a event table.

We found a situation, where the createAppInDataBase step failed, then the
addAppCreationEvent also getting failed.
That's because, in createAppInDataBase we add application and version data
to the database and then in addAppCreationEvent we query the AC_VERSION
table to get the application version.

How we fix this issue? although the createAppInDataBase step failed,
addAppCreationEvent cannot be failed.

[1] https://wso2.org/jira/browse/APPCLOUD-206

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] log user events to audit.log file via Jaggery block layer

2016-07-03 Thread Amalka Subasinghe
Added above mentioned code block to the router.jag file
Then the logs will be printed as...

[2016-07-04 10:48:00,050]  INFO -  User : ad...@wso2.com, Action :
createDatabaseAndAttachUser
[2016-07-04 10:48:06,300]  INFO -  User : ad...@wso2.com, Action :
dropDatabase
[2016-07-04 10:48:08,406]  INFO -  User : ad...@wso2.com, Action :
dropDatabase
[2016-07-04 10:48:15,675]  INFO -  User : ad...@wso2.com, Action :
createDatabaseAndAttachUser
[2016-07-04 10:48:24,817]  INFO -  User : ad...@wso2.com, Action :
createDatabaseUser



On Sun, Jul 3, 2016 at 4:17 PM, Mahesh Chinthaka <mahe...@wso2.com> wrote:

> Hi Amalka,
>
> All the requests/actions go through it (router.jag).
>
>
>
> On Sun, Jul 3, 2016 at 7:16 AM, Amalka Subasinghe <ama...@wso2.com> wrote:
>
>> Hi,
>>
>> We can log adding following to the jaggery.
>>
>> var audit = org.wso2.carbon.CarbonConstants.AUDIT_LOG;
>> audit.info("User : " + jagg.getUser() + ", Action : " +  action);
>>
>> Here. I want to log who is the user logged in and what action he called.
>> Would it be ok to add this code to the router jag in app cloud? As I know
>> all requests/actions go through it. am I right?
>>
>> Thanks
>> Amalka
>>
>> On Fri, Jul 1, 2016 at 12:13 PM, Amalka Subasinghe <ama...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I have a Jaggery app deployed in WSO2AS, I want to log user activities
>>> via block layer to a separate file (to audit.log).
>>> Please help.
>>>
>>> Thanks
>>> Amalka
>>>
>>>
>>
>>
>> --
>> Amalka Subasinghe
>>
>> WSO2 Inc.
>> Mobile: +94 77 9401267
>>
>
>
>
> --
> *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
>



-- 
Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] log user events to audit.log file via Jaggery block layer

2016-07-02 Thread Amalka Subasinghe
Hi,

We can log adding following to the jaggery.

var audit = org.wso2.carbon.CarbonConstants.AUDIT_LOG;
audit.info("User : " + jagg.getUser() + ", Action : " +  action);

Here. I want to log who is the user logged in and what action he called.
Would it be ok to add this code to the router jag in app cloud? As I know
all requests/actions go through it. am I right?

Thanks
Amalka

On Fri, Jul 1, 2016 at 12:13 PM, Amalka Subasinghe <ama...@wso2.com> wrote:

> Hi,
>
> I have a Jaggery app deployed in WSO2AS, I want to log user activities via
> block layer to a separate file (to audit.log).
> Please help.
>
> Thanks
> Amalka
>
>


-- 
Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] log user events to audit.log file via Jaggery block layer

2016-07-01 Thread Amalka Subasinghe
Hi,

I have a Jaggery app deployed in WSO2AS, I want to log user activities via
block layer to a separate file (to audit.log).
Please help.

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error while stopping tomcat

2016-07-01 Thread Amalka Subasinghe
We see following error intermittenly, while shutting down the AS 5.2.1
is this a known issue?

TID: [0] [AS] [2016-06-30 10:07:31,544] ERROR
{org.wso2.carbon.tomcat.internal.ServerManager} -  Error while stopping
tomcat {org.wso2.carbon.tomcat.internal.ServerManager}
org.apache.catalina.LifecycleException: Failed to stop component
[StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:236)
at org.apache.catalina.startup.Tomcat.stop(Tomcat.java:345)
at
org.wso2.carbon.tomcat.internal.ServerManager.stop(ServerManager.java:113)
at
org.wso2.carbon.tomcat.internal.TomcatBundleActivator.stop(TomcatBundleActivator.java:65)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:771)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:764)
at
org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:510)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:566)
at
org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1206)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:592)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215)
at
org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:284)
at
org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:692)
at
org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:600)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:399)
at
org.wso2.carbon.core.init.CarbonServerManager.shutdown(CarbonServerManager.java:849)
at
org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:883)
at
org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:894)
Caused by: org.apache.catalina.LifecycleException: Failed to stop component
[StandardService[Catalina]]
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:236)
at
org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:753)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
... 19 more
Caused by: org.apache.catalina.LifecycleException: Failed to stop component
[StandardEngine[Catalina]]
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:236)
at
org.apache.catalina.core.StandardService.stopInternal(StandardService.java:502)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
... 21 more
Caused by: org.apache.catalina.LifecycleException: A child container failed
during stop
at
org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:1186)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
... 23 more
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] What is the compatible Firefox version, which works with selenium framework?

2016-06-29 Thread Amalka Subasinghe
Hi,

I'm executing product-mb selenium tests, getting following error. I have
firefox. 46.0.1 installed in my local machine


JavaScript warning:
https://normandy.cdn.mozilla.net/static/js/bundles/selfrepair-7575f6d27445b45bcffb.js,
line 9825: mutating the [[Prototype]] of an object will cause your code to
run very slowly; instead create the object with the correct initial
[[Prototype]] value using Object.create
Build info: version: '2.43.0', revision:
'accb3003b9fb8f7cae30f9669b4c594a065396a6', time: '2014-09-09 22:22:51'
System info: host: 'amalka-pc', ip: '127.0.0.1', os.name: 'Linux', os.arch:
'amd64', os.version: '3.13.0-55-generic', java.version: '1.7.0_79'
Driver info: driver.version: FirefoxDriver
at
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:130)
at
org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
at
org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:114)
at
org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:191)
at
org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:186)
at
org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:182)
at
org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:95)
at
org.wso2.carbon.automation.extensions.selenium.BrowserManager.getDriver(BrowserManager.java:86)
at
org.wso2.carbon.automation.extensions.selenium.BrowserManager.getWebDriver(BrowserManager.java:62)
at
org.wso2.mb.integration.common.utils.backend.MBIntegrationUiBaseTest.init(MBIntegrationUiBaseTest.java:67)
at
org.wso2.carbon.mb.ui.test.login.LoginTestCase.init(LoginTestCase.java:47)
Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to
connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console
output:
la.org
":{"d":"/usr/lib/firefox/browser/extensions/langpack-en...@firefox.mozilla.org.xpi
","e":true,"v":"46.0.1","st":1463011425000},"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/usr/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","e":true,"v":"46.0.1","st":1463010896000},"
langpack-en...@firefox.mozilla.org
":{"d":"/usr/lib/firefox/browser/extensions/langpack-en...@firefox.mozilla.org.xpi
","e":true,"v":"46.0.1","st":1463011425000}},"app-system-share":{"
ubu...@ubuntu.com
":{"d":"/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ubu...@ubuntu.com.xpi
","e":false,"v":"3.2","st":1442597111000}}}

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] The default tier of the api-level tier list sets as the default tier of the resource-level

2016-06-05 Thread Amalka Subasinghe
https://wso2.org/jira/browse/APIMANAGER-4952

On Fri, Jun 3, 2016 at 11:29 AM, Harsha Kumara <hars...@wso2.com> wrote:

> Yes, it's look like a bug. But you have have simple subtheme fix to get
> rid of the issue.
>
> [1] -
> http://sanjeewamalalgoda.blogspot.com/2015/01/how-to-add-sub-theme-to-api-manager.html
>
> On Fri, Jun 3, 2016 at 10:58 AM, Amalka Subasinghe <ama...@wso2.com>
> wrote:
>
>> No I removed it before create the api
>>
>> After removing the Unlimited tier, created a tenant and then created the
>> API
>>
>>
>> On Fri, Jun 3, 2016 at 10:09 AM, Rukshan Premathunga <ruks...@wso2.com>
>> wrote:
>>
>>> Hi Amalka,
>>>
>>> did you remove unlimited tier after the API creation. Since when
>>> unlimited tier is available this cannot be observed. I think this is a bug.
>>>
>>> Thanks.
>>>
>>> On Fri, Jun 3, 2016 at 7:52 AM, Amalka Subasinghe <ama...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> In my APIM 1.10.0 node, I have removed Unlimited tier from both
>>>> api-level and the resource-level.
>>>>
>>>> When I create an API, in the Manage page, api-level tier list display
>>>> as Gold, Silver, Bronze. But in resource-level it default set to Gold see
>>>> the image
>>>> (When I try to change the resource-level tier it shows the tier list as
>>>> Ultimate, Plus, Basic only)
>>>>
>>>> In
>>>> wso2am-1.10.0/repository/deployment/server/jaggeryapps/publisher/site/themes/default/templates/item-manage/template.jag
>>>> file, the following code block gets the default tier from api-level tier
>>>> list and sets it as default tier of the resource-level
>>>> is this the expected behavior?
>>>>
>>>> var tiers = mod.getTiers().tiers;
>>>> var resourceTiers = mod.getResourceTiers().tiers;
>>>> var default_tier = tiers[tiers.length -1].tierName;
>>>> for (var i = 0; i < tiers.length; i++){
>>>> if(tiers[i].defaultTier){
>>>> default_tier = tiers[i].tierName;
>>>> break;
>>>> }
>>>> }
>>>>
>>>>
>>>>
>>>> Thanks
>>>> Amalka
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Rukshan Chathuranga.
>>> Software Engineer.
>>> WSO2, Inc.
>>>
>>
>>
>>
>> --
>> Amalka Subasinghe
>>
>> WSO2 Inc.
>> Mobile: +94 77 9401267
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>



-- 
Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] The default tier of the api-level tier list sets as the default tier of the resource-level

2016-06-02 Thread Amalka Subasinghe
No I removed it before create the api

After removing the Unlimited tier, created a tenant and then created the API


On Fri, Jun 3, 2016 at 10:09 AM, Rukshan Premathunga <ruks...@wso2.com>
wrote:

> Hi Amalka,
>
> did you remove unlimited tier after the API creation. Since when unlimited
> tier is available this cannot be observed. I think this is a bug.
>
> Thanks.
>
> On Fri, Jun 3, 2016 at 7:52 AM, Amalka Subasinghe <ama...@wso2.com> wrote:
>
>> Hi,
>>
>> In my APIM 1.10.0 node, I have removed Unlimited tier from both api-level
>> and the resource-level.
>>
>> When I create an API, in the Manage page, api-level tier list display as
>> Gold, Silver, Bronze. But in resource-level it default set to Gold see the
>> image
>> (When I try to change the resource-level tier it shows the tier list as
>> Ultimate, Plus, Basic only)
>>
>> In
>> wso2am-1.10.0/repository/deployment/server/jaggeryapps/publisher/site/themes/default/templates/item-manage/template.jag
>> file, the following code block gets the default tier from api-level tier
>> list and sets it as default tier of the resource-level
>> is this the expected behavior?
>>
>> var tiers = mod.getTiers().tiers;
>> var resourceTiers = mod.getResourceTiers().tiers;
>> var default_tier = tiers[tiers.length -1].tierName;
>> for (var i = 0; i < tiers.length; i++){
>> if(tiers[i].defaultTier){
>> default_tier = tiers[i].tierName;
>> break;
>> }
>> }
>>
>>
>>
>> Thanks
>> Amalka
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
>



-- 
Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [TestAutomation]Deny some role permissions in test cases

2016-05-17 Thread Amalka Subasinghe
in automation.xml you can define different roles with required permissions
as follows




/permission//.../.../write
 .





/permission///.../read
 .



And Then define users & roles as follows


  user1
  password
  
   writeRole
  



  user2
  password
  
   readRole
  


And then enabling UserPopulateExtension in 
will populate users and reoles in process center.

  
org.wso2.carbon.integration.common.extensions.usermgt.UserPopulateExtension


Hope this helps


On Mon, May 16, 2016 at 12:47 PM, Yasima Dewmini <yas...@wso2.com> wrote:

> Hi all,
>
> I'm writing integration tests for Process Center. We can add role
> permissions in automation.xml as following.
>
> 
> 
> /permission/admin/configure
> /permission/admin/login
> 
> 
>
> I need to deny some role permissions like read, write for a specific
> process.
> How can I do this? Any help on this is appreciated.
>
> Thanks
> Yasima.
>
> --
> Yasima Dewmini
> Software Engineer, WSO2, Inc.
> Mobile: 0713117081
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] Starting DAS gives an error when secure vault enabled

2016-05-09 Thread Amalka Subasinghe
HI Inosh,

I tried again, it worked. But not sure what was wrong in my configurations.

Thanks
Amlaka

On Tue, May 10, 2016 at 9:44 AM, Inosh Goonewardena <in...@wso2.com> wrote:

> Hi Amalka,
>
> Could you please try this again? I checked this and it worked without any
> issues. I think this might be some configuration issue happen when
> configuring Secure vault.
>
> On Tue, May 10, 2016 at 8:49 AM, Amalka Subasinghe <ama...@wso2.com>
> wrote:
>
>> Hi,
>>
>> Steps to reproduce.
>>
>> 1. Get DAS 3.0.1 vanilla pack.
>>
>> 2. Enable secure vault as follows
>>
>> a. added the following line to the
>> wso2das-3.0.1/repository/conf/security/cipher-tool.properties file
>>
>> Datasources.WSO2_ANALYTICS_EVENT_STORE_DB.Configuration.Password=repository/conf/datasources/analytics-datasources.xml//datasources-configuration/datasources/datasource[name='WSO2_ANALYTICS_EVENT_STORE_DB']/definition[@type='RDBMS']/configuration/password,true
>>
>> b. Added the following line to the
>> wso2das-3.0.1/repository/conf/security/cipher-text.properties file
>>
>> Datasources.WSO2_ANALYTICS_EVENT_STORE_DB.Configuration.Password=[wso2carbon]
>>
>> c. Go to wso2das-3.0.1/bin, run ./ciphertool.sh -Dconfigure
>>
>> d. Now the datasource config is as follows
>>
>> 
>> WSO2_ANALYTICS_EVENT_STORE_DB
>> The datasource used for analytics record
>> store
>> 
>> 
>>
>> jdbc:h2:repository/database/ANALYTICS_EVENT_STORE;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=6
>> wso2carbon
>> > svns:secretAlias="Datasources.WSO2_ANALYTICS_EVENT_STORE_DB.Configuration.Password">password
>> org.h2.Driver
>> 50
>> 6
>> SELECT 1
>> false
>> 0
>> true
>>
>> 4000
>> 
>> 
>> 
>>
>> 3. Start the DAS - this will give following error
>>
>> [2016-05-10 08:36:18,622] ERROR
>> {org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceComponent}
>> -  Error in activating analytics data service: Error in looking up database
>> type: Wrong user name or password [8004-140]
>> org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException:
>> Error in looking up database type: Wrong user name or password [8004-140]
>> at
>> org.wso2.carbon.analytics.datasource.rdbms.RDBMSUtils.lookupDatabaseInfo(RDBMSUtils.java:73)
>> at
>> org.wso2.carbon.analytics.datasource.rdbms.RDBMSUtils.lookupCurrentQueryConfigurationEntry(RDBMSUtils.java:89)
>> at
>> org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRecordStore.init(RDBMSAnalyticsRecordStore.java:83)
>> at
>> org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceImpl.initARS(AnalyticsDataServiceImpl.java:263)
>> at
>> org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceImpl.(AnalyticsDataServiceImpl.java:123)
>> at
>> org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceComponent.activate(AnalyticsDataServiceComponent.java:63)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
>> at
>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
>> at
>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
>> at
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextI

[Dev] [DAS] Starting DAS gives an error when secure vault enabled

2016-05-09 Thread Amalka Subasinghe
Hi,

Steps to reproduce.

1. Get DAS 3.0.1 vanilla pack.

2. Enable secure vault as follows

a. added the following line to the
wso2das-3.0.1/repository/conf/security/cipher-tool.properties file
Datasources.WSO2_ANALYTICS_EVENT_STORE_DB.Configuration.Password=repository/conf/datasources/analytics-datasources.xml//datasources-configuration/datasources/datasource[name='WSO2_ANALYTICS_EVENT_STORE_DB']/definition[@type='RDBMS']/configuration/password,true

b. Added the following line to the
wso2das-3.0.1/repository/conf/security/cipher-text.properties file
Datasources.WSO2_ANALYTICS_EVENT_STORE_DB.Configuration.Password=[wso2carbon]

c. Go to wso2das-3.0.1/bin, run ./ciphertool.sh -Dconfigure

d. Now the datasource config is as follows


WSO2_ANALYTICS_EVENT_STORE_DB
The datasource used for analytics record
store



jdbc:h2:repository/database/ANALYTICS_EVENT_STORE;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=6
wso2carbon
password
org.h2.Driver
50
6
SELECT 1
false
0
true

4000




3. Start the DAS - this will give following error

[2016-05-10 08:36:18,622] ERROR
{org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceComponent}
-  Error in activating analytics data service: Error in looking up database
type: Wrong user name or password [8004-140]
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException:
Error in looking up database type: Wrong user name or password [8004-140]
at
org.wso2.carbon.analytics.datasource.rdbms.RDBMSUtils.lookupDatabaseInfo(RDBMSUtils.java:73)
at
org.wso2.carbon.analytics.datasource.rdbms.RDBMSUtils.lookupCurrentQueryConfigurationEntry(RDBMSUtils.java:89)
at
org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRecordStore.init(RDBMSAnalyticsRecordStore.java:83)
at
org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceImpl.initARS(AnalyticsDataServiceImpl.java:263)
at
org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceImpl.(AnalyticsDataServiceImpl.java:123)
at
org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceComponent.activate(AnalyticsDataServiceComponent.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at
org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at
org.wso2.carbon.ntask.core.internal.TasksDSComponent.activate(TasksDSComponent.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at

[Dev] [BPS] Any idea to differentiate BPMN form property we should generate as text field and a textarea?

2016-04-17 Thread Amalka Subasinghe
Hi,

When implementing BPMN User Task I want to generate a form (from the form
properties I define in User Task) with a *Textarea*.

When going through the BPMN explorer code I found that, if the form
property type is string then it generates the form as text field, if it is
enum then it generates as list box, etc... via a JavaScript code.
How can I generate a Textarea using the form property we defined in BPMN ?

As I know Activiti supports string, long, boolean, enum and date property
types only.
Any idea to differentiate a property defined in form section in BPMN as a
textarea?

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS] How can I see the execution flow of BPMN?

2016-04-06 Thread Amalka Subasinghe
I want to see the full flow to find out what are the tasks got executed
..not the current state

BTW, enabling debug logs I could managed.

On Wed, Apr 6, 2016 at 2:59 PM, Nandika Jayawardana <nand...@wso2.com>
wrote:

> You can find the current state from the bpmn instance view  diagram.
>
> Regards
> Nandika
>
> On Wed, Apr 6, 2016 at 11:37 AM, Amalka Subasinghe <ama...@wso2.com>
> wrote:
>
>> Hi,
>>
>> Is there a way we can see BPMN execution flow?
>> I can find where it is waiting from the carbon console. But couldn't find
>> a way to see the flow
>>
>> Thanks
>> Amalka
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Nandika Jayawardana
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
>



-- 
Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [BPS] How can I see the execution flow of BPMN?

2016-04-06 Thread Amalka Subasinghe
Hi,

Is there a way we can see BPMN execution flow?
I can find where it is waiting from the carbon console. But couldn't find a
way to see the flow

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How can I query a specific task (completed) which belongs to a process instance

2016-04-04 Thread Amalka Subasinghe
I tried to get it querying historic-task-instances. it always gives user
tasks only.
https://192.168.1.5:9453/bpmn/history/historic-task-instances?processInstanceId=22575

is there a better way to do this?

Result of the query:

{
  "sort": "taskInstanceId",
  "order": "asc",
  "start": 0,
  "total": 2,
  "data": [
{
  "processDefinitionUrl": "
https://192.168.1.5:9453/bpmn/history/process-definitions/allocate_consultant_3:1:22542
",
  "processInstanceUrl": "
https://192.168.1.5:9453/bpmn/history/historic-process-instances/22575;,
  "url": "
https://192.168.1.5:9453/bpmn/history/historic-task-instances/22586;,
  "tenantId": "-1234",
  "variables": [],
  "category": null,
  "processInstanceId": "22575",
  "formKey": null,
  "assignee": "admin",
  "dueDate": null,
  "executionId": "22583",
  "processDefinitionId": "allocate_consultant_3:1:22542",
  "taskDefinitionKey": "usertask2",
  "parentTaskId": null,
  "deleteReason": "completed",
  "durationInMillis": 651104,
  "workTimeInMillis": null,
  "claimTime": null,
  "endTime": 1459782351301,
  "startTime": 1459781700197,
  "description": null,
  "name": "Ready for Clearance",
  "id": "22586",
  "priority": 50,
  "owner": null
},
{
  "processDefinitionUrl": "
https://192.168.1.5:9453/bpmn/history/process-definitions/allocate_consultant_3:1:22542
",
  "processInstanceUrl": "
https://192.168.1.5:9453/bpmn/history/historic-process-instances/22575;,
  "url": "
https://192.168.1.5:9453/bpmn/history/historic-task-instances/22594;,
  "tenantId": "-1234",
  "variables": [],
  "category": null,
  "processInstanceId": "22575",
  "formKey": null,
  "assignee": null,
  "dueDate": null,
  "executionId": "22591",
  "processDefinitionId": "allocate_consultant_3:1:22542",
  "taskDefinitionKey": "usertask9",
  "parentTaskId": null,
  "deleteReason": "deleted",
  "durationInMillis": 13,
  "workTimeInMillis": null,
  "claimTime": null,
  "endTime": 1459782356090,
  "startTime": 1459782356077,
  "description": null,
  "name": "Confirmed",
  "id": "22594",
  "priority": 50,
  "owner": null
}
  ],
  "message": null,
  "size": 2
}

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [BPS] Invoking REST api via BPMN Service Task gives an error

2016-03-31 Thread Amalka Subasinghe
Hi,

$subject [1]
When I invoke the same api via rest client - it works

Configurations:

  

  


  


  


  





  


[1]
TID: [-1234] [] [2016-03-31 11:25:37,925] ERROR
{org.apache.catalina.core.StandardWrapperValve} -  Servlet.service() for
servlet [bridgeservlet] in context with path [/] threw exception
{org.apache.catalina.core.StandardWrapperValve}
org.apache.axis2.AxisFault
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at
org.wso2.carbon.core.transports.CarbonServlet.doGet(CarbonServlet.java:155)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSRFPreventionFilter.java:88)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(CRLFPreventionFilter.java:59)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
at
org.apache.axis2.json.AbstractJSONOMBuilder.processDocument(AbstractJSONOMBuilder.java:96)
at
org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:188)
at

[Dev] [BPS] What is the best approach to create BPMN processes

2016-03-28 Thread Amalka Subasinghe
Hi,

I have a scenario like
1. User log in and fill a form and save, it will save in external database
with the status 'Created'
2. later time User log in again, he sees the records which are in "Created"
status and change the status of those records to 'In Progress', it will
again update the database.

for this kind of scenario, the best approach would be creating 1 BPMN
process including both or creating 2 BPMN processes ?

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Invoking Query type API call via People HR connector

2016-03-01 Thread Amalka Subasinghe
Thanks

Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267

On Tue, Mar 1, 2016 at 2:10 PM, Thulasika Vijayanathan <thulas...@wso2.com>
wrote:

> Hi Amalka,
>
> Please find the updated peoplehr connector in store[1].
> [1]
> https://store.wso2.com/store/assets/esbconnector/875a8019-8fe9-42ff-9cd2-acb0ea7e2d3a
> <https://store.wso2.com/store/assets/esbconnector/?query=peoplehr>
>
> Thanks,
> Thulasika.
>
>
> On Mon, Feb 29, 2016 at 12:05 PM, Amalka Subasinghe <ama...@wso2.com>
> wrote:
>
>> Hi,
>>
>> is it possible to $subject?
>> According to the documentation I couldn't find a way
>>
>> [1] https://api.peoplehr.net/Pages/Functional/Default.aspx
>> [2]
>> https://docs.wso2.com/display/ESBCONNECTORS/Configuring+PeopleHR+Operations
>>
>> Thanks
>> Amalka
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thulasika
> Associate Software Engineer
> Mobile:0778014295
> email: thulas...@wso2.com <sanj...@wso2.com>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Invoking Query type API call via People HR connector

2016-02-29 Thread Amalka Subasinghe
Created a jira
https://wso2.org/jira/browse/ESBCONNECT-83

Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267

On Mon, Feb 29, 2016 at 12:09 PM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi Amalka,
>
> We don't have that operation in current implemented connector. Could you
> please create a jira ticket for this?
>
> Thanks,
>
>
> On Mon, Feb 29, 2016 at 12:05 PM, Amalka Subasinghe <ama...@wso2.com>
> wrote:
>
>> Hi,
>>
>> is it possible to $subject?
>> According to the documentation I couldn't find a way
>>
>> [1] https://api.peoplehr.net/Pages/Functional/Default.aspx
>> [2]
>> https://docs.wso2.com/display/ESBCONNECTORS/Configuring+PeopleHR+Operations
>>
>> Thanks
>> Amalka
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> <dev-requ...@wso2.org>
> Keerthika Mahendralingam
> Associate Software Engineer
> Mobile :+94 (0) 776 121144
> keerth...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Invoking Query type API call via People HR connector

2016-02-28 Thread Amalka Subasinghe
Hi,

is it possible to $subject?
According to the documentation I couldn't find a way

[1] https://api.peoplehr.net/Pages/Functional/Default.aspx
[2]
https://docs.wso2.com/display/ESBCONNECTORS/Configuring+PeopleHR+Operations

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting tenant domain from tenant id

2016-02-11 Thread Amalka Subasinghe
UserRealmService realmService =
(UserRealmService)
PrivilegedCarbonContext.getThreadLocalCarbonContext()
.getOSGiService(UserRealmService.class);
String tenantDomain = realmService.getTenantManager().getDomain(tenantId);

Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267

On Thu, Feb 11, 2016 at 7:32 PM, Lahiru Manohara <lahir...@wso2.com> wrote:

> Hi All,
>
> I am writing a web application for AppCloud and i need to get tenant
> domain from tenant id. The application in super tenant.
>
> Thanks!
>
> --
> Best regards,
>
> *Lahiru Manohara*
> *Software Engineer*
> Mobile: +94716561576
> WSO2 Inc. | http://wso2.com
> 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] [AF] Fixing (APPFAC-3217) - Support APIM group subscription in App Factory

2016-01-13 Thread Amalka Subasinghe
Hi Amila

I don't understand how appowner sees all the Apps which belongs to
different groups on same APIM screen.
I tested this in APIM setup, but when a one user has 2 groupIds, he/she
could see the Default application only.


On Thu, Jan 14, 2016 at 10:28 AM, Amila De Silva <ami...@wso2.com> wrote:

> Hi Amalka,
>
> Apparently when the AppOwner logs in without a groupId, he/she sees all
> the Apps (even the one's created with different groupIds) in the same
> screen.
> So the problem would only be there for AppDevelopers.
>
> Answering to your query; it depends on how you get the group Id. If we
> assume that SSO is enabled at Store, when trying to login directly to
> Store, users (only talking about App Owners here) will be re-directed to an
> IDP, and whatever the groupId set from IDP will be used for fetching Apps.
> If the IDP doesn't set a groupId, all the apps will be shown.
>
> On Thu, Jan 14, 2016 at 8:35 AM, Amalka Subasinghe <ama...@wso2.com>
> wrote:
>
>>
>> With this Amila's explanation; when a appowner login to the APIM via two
>> different apps of AF, will see two different views in APIM.
>> If the same appowner login to the APIM directly, what will he see in APIM?
>>
>> I believe when a user login to the APIM; (either via AF or directly), he
>> should see the same view every time. (if that user belongs to two different
>> groups he should see all subscriptions belongs to all groups).
>>
>>
>> On Wed, Jan 13, 2016 at 11:05 PM, Amila De Silva <ami...@wso2.com> wrote:
>>
>>> Hi Danushka/Amalka,
>>>
>>> It's not that the scenario of user belonging to two or more groups is
>>> not supported in the current version. It's only that the way it currently
>>> happens slightly differs from how you need it.
>>>
>>> What we are basically trying to achieve is, displaying Apps,
>>> subscriptions when user belongs to two or more groups. A single user can
>>> have many group Ids, but in a single session user can only have one group
>>> Id.
>>> AFAIU, with the existing implementation following can be achieved;
>>> 1. AppOwner creates 2 Apps in AppF , App1 (with groupId as
>>> appowner1_app1)  and App2 (groupId being appowner1_app2).
>>> 2. I assume Apps in APIM gets automatically created while doing 1.
>>> 3. AppOwner selects App1 in AppF and tries to see the relevant App in
>>> APIM.
>>> 4. AppOwner is re-directed to API Store with groupId set as
>>> appowner1_app1 (need to discuss how/where this is set)
>>> 5. AppOwner is logged into the Store as a user with groupId
>>> appowner1_app1, therefore only sees App1.
>>> 6. AppOwner logs out from Store.
>>> 7. AppOwner goes to AppF and selects App2, follows a link that
>>> re-directs to APIMStore.
>>> 8. AppOwner now goes to Store as a user in appowner1_app2 group, so only
>>> sees App2.
>>>
>>> To view each App, user would need to make a trip back to the AppF. It
>>> might be possible eliminate step 6, and if it's so, we might have to change
>>> subscription.jag (and several other jags) to clear out the groupId set in
>>> the session, and set the one coming with the request. There are few points
>>> that needs to be discussed more with the above steps, but this would be the
>>> way it would look like.
>>>
>>> It's true that the default group Id extractor gets the group Id from
>>> http://wso2.org/claims/organization claim, but it doesn't have to be
>>> like that in every case. In the very first time it was written thinking
>>> that Group ID is coming with the SAML Response sent back from IDp.
>>>
>>> On Wed, Jan 13, 2016 at 6:37 PM, Danushka Fernando <danush...@wso2.com>
>>> wrote:
>>>
>>>> Hi Nuwan
>>>> The issue of adding extension to cloud is we have to add it to API
>>>> cloud and it will affect all API cloud users who don't use APP cloud also.
>>>> And since multiple groups per user seems to be a valid use case how
>>>> complex will this be to implement?
>>>>
>>>> Thanks & Regards
>>>> Danushka Fernando
>>>> Senior Software Engineer
>>>> WSO2 inc. http://wso2.com/
>>>> Mobile : +94716332729
>>>>
>>>>
>>>> On Jan 13, 2016 3:53 PM, "Lakshman Udayakantha" <lakshm...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Nuwan,
>>>>>
>>>>> Even though we have extracted multiple group ids using group id
>>>&

Re: [Dev] [AF] Fixing (APPFAC-3217) - Support APIM group subscription in App Factory

2016-01-13 Thread Amalka Subasinghe
With this Amila's explanation; when a appowner login to the APIM via two
different apps of AF, will see two different views in APIM.
If the same appowner login to the APIM directly, what will he see in APIM?

I believe when a user login to the APIM; (either via AF or directly), he
should see the same view every time. (if that user belongs to two different
groups he should see all subscriptions belongs to all groups).


On Wed, Jan 13, 2016 at 11:05 PM, Amila De Silva <ami...@wso2.com> wrote:

> Hi Danushka/Amalka,
>
> It's not that the scenario of user belonging to two or more groups is not
> supported in the current version. It's only that the way it currently
> happens slightly differs from how you need it.
>
> What we are basically trying to achieve is, displaying Apps, subscriptions
> when user belongs to two or more groups. A single user can have many group
> Ids, but in a single session user can only have one group Id.
> AFAIU, with the existing implementation following can be achieved;
> 1. AppOwner creates 2 Apps in AppF , App1 (with groupId as appowner1_app1)
>  and App2 (groupId being appowner1_app2).
> 2. I assume Apps in APIM gets automatically created while doing 1.
> 3. AppOwner selects App1 in AppF and tries to see the relevant App in APIM.
> 4. AppOwner is re-directed to API Store with groupId set as appowner1_app1
> (need to discuss how/where this is set)
> 5. AppOwner is logged into the Store as a user with groupId
> appowner1_app1, therefore only sees App1.
> 6. AppOwner logs out from Store.
> 7. AppOwner goes to AppF and selects App2, follows a link that re-directs
> to APIMStore.
> 8. AppOwner now goes to Store as a user in appowner1_app2 group, so only
> sees App2.
>
> To view each App, user would need to make a trip back to the AppF. It
> might be possible eliminate step 6, and if it's so, we might have to change
> subscription.jag (and several other jags) to clear out the groupId set in
> the session, and set the one coming with the request. There are few points
> that needs to be discussed more with the above steps, but this would be the
> way it would look like.
>
> It's true that the default group Id extractor gets the group Id from
> http://wso2.org/claims/organization claim, but it doesn't have to be like
> that in every case. In the very first time it was written thinking that
> Group ID is coming with the SAML Response sent back from IDp.
>
> On Wed, Jan 13, 2016 at 6:37 PM, Danushka Fernando <danush...@wso2.com>
> wrote:
>
>> Hi Nuwan
>> The issue of adding extension to cloud is we have to add it to API cloud
>> and it will affect all API cloud users who don't use APP cloud also.
>> And since multiple groups per user seems to be a valid use case how
>> complex will this be to implement?
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>>
>> On Jan 13, 2016 3:53 PM, "Lakshman Udayakantha" <lakshm...@wso2.com>
>> wrote:
>>
>>> Hi Nuwan,
>>>
>>> Even though we have extracted multiple group ids using group id
>>> extractor, DAO classes use one group id to extract the applications and
>>> subscriptions. I think we have to implement to get all the applications and
>>> subscriptions if user are in several groups.
>>>
>>> Thanks
>>>
>>> On Wed, Jan 13, 2016 at 2:18 PM, Nuwan Dias <nuw...@wso2.com> wrote:
>>>
>>>>
>>>>
>>>> On Wed, Jan 13, 2016 at 12:32 PM, Amalka Subasinghe <ama...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Nuwan,
>>>>>
>>>>> We need APIM support to show subscribed API, when there's 1 user
>>>>> assigned to 2 user groups.
>>>>>
>>>>> *Our current AF APIM integration flow works as follows.*
>>>>>
>>>>> let's say we have a tenant foo.com and users - appowner1 and
>>>>> developer1
>>>>> App owner1 creates an AF application 'AFapp1' and assign devloper1 as
>>>>> a developer of that application.
>>>>> according to the current implementation only the appowner1 can
>>>>> subscribe to the APIM API.
>>>>> [When appowner1 login to the APIM, we create an application 'AFapp1'
>>>>> in APIM side and selecting that application appowner1 can subscribe to an
>>>>> API]
>>>>> Then appowner1 can see subscribed APIs in AF side, where developers
>>>>> can't see that API.
>>>>>
>>>>> So we need to implement

Re: [Dev] [AF] Fixing (APPFAC-3217) - Support APIM group subscription in App Factory

2016-01-12 Thread Amalka Subasinghe
Hi Nuwan,

We need APIM support to show subscribed API, when there's 1 user assigned
to 2 user groups.

*Our current AF APIM integration flow works as follows.*

let's say we have a tenant foo.com and users - appowner1 and developer1
App owner1 creates an AF application 'AFapp1' and assign devloper1 as a
developer of that application.
according to the current implementation only the appowner1 can subscribe to
the APIM API.
[When appowner1 login to the APIM, we create an application 'AFapp1' in
APIM side and selecting that application appowner1 can subscribe to an API]
Then appowner1 can see subscribed APIs in AF side, where developers can't
see that API.

So we need to implement APIM group subscriptions in AF.
to implement it we have to set the organization claim (as eg:
'foo.com_AFapp1') for appowner1 and developer1.
Then both users can see the subscribed API.

*We have another use case;*
basically our user grouping happens per AF application and 1 user can be in
2 groups

Let's say appowner1 creates an another application AFapp2
then appowner1 is belongs to 2 user groups. So we need to assign two values
for the organization claim. (foo.com_AFapp1, foo.com_AFapp2)
appowner1 want to see subscribed API in APIM side based on that 2
organizations.

As I know, APIM does not support this when there's a more than 1 group
assigned for the organization claim.
But this is a required use case for the AF/cloud, and we can't customize
the GroupingExtractor due to maintainability issues in cloud.

Can this improvement provide by APIM?

Thanks
Amalka






On Tue, Jan 12, 2016 at 1:42 PM, Amalka Subasinghe <ama...@wso2.com> wrote:

> Hi,
>
> Currently only the app owner allows to subscribed to an API, generate keys
> and see subscribed APIs, where other users are not allowed as showed in the
> below table.
>
>
> Subscribe to API Generate Keys View subscribed APIs in AF side View Prod
> keys in AF side View Sandbox keys in AF side App owner Y Y Y Y Y Developer
>
>
>
> Y QA
>
>
>
> Y DevOps
>
>
> Y Y
> We want to improve the AF - APIM integration as follows. So we need
> implement $subject.
> 1. making both app owner and developer can subscribe to an API and
> generate keys
> 2. making all users to see subscribed API per application
>
>
> Subscribe to API Generate Keys View subscribed APIs in AF side View Prod
> keys in AF side View Sandbox keys in AF side App owner Y Y Y Y Y Developer
> Y Y Y
> Y QA
>
> Y
> Y DevOps
>
> Y Y Y
> *Things to do:*
>
> 1. All the users of a particular app we need to maintain as a group.
>
> In APIM side they uses http://wso2.org/claims/organization claim to group
> the users. We have to set this claim (eg: app key as the value of the
> claim) when appowner or developer try to click on 'Go to API Manager'
> button.
> Currently we use a role app_appName to group the users of a particular
> application in AF. If we use this we have to implement a custom grouping
> extractor to get the users of a particular group.
>
>
> *Issues: *a. Since we don't set the claim for QA and DevOps users, they
> can't view subscribed APIs in AF side, and If we add the claim they also
> will be able to subscribe to APIs and generate keys. So we need to find a
> way to view subscribed api for a particular application by QA and Devops
> users.
> b. With this implementation Developer can see prod keys also.
>
>
> 2. Make Go to API Manager and Sync Keys buttons enabled only to appowner
> and developer.
> For this we can use resource permissions we already have.
>
>
> 3. Need to improve/test all the rest calls we do with APIM to work with
> groups and fix if there's any issue.
>
>- Login - When user clicks on 'Go to API Manager' button of a
>particular app, it should login to APIM and show the subscribed APIs,
>listed under selected application.
>- Create application
>- Remove application
>- Get published APIs by application
>- List subscription
>- Get applications
>
> [1] https://wso2.org/jira/browse/APPFAC-3217
>
> Thanks
> Amalka
>
>


-- 
Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AF] Fixing (APPFAC-3217) - Support APIM group subscription in App Factory

2016-01-12 Thread Amalka Subasinghe
Hi,

Currently only the app owner allows to subscribed to an API, generate keys
and see subscribed APIs, where other users are not allowed as showed in the
below table.


Subscribe to API Generate Keys View subscribed APIs in AF side View Prod
keys in AF side View Sandbox keys in AF side App owner Y Y Y Y Y Developer



Y QA



Y DevOps


Y Y
We want to improve the AF - APIM integration as follows. So we need
implement $subject.
1. making both app owner and developer can subscribe to an API and generate
keys
2. making all users to see subscribed API per application


Subscribe to API Generate Keys View subscribed APIs in AF side View Prod
keys in AF side View Sandbox keys in AF side App owner Y Y Y Y Y Developer Y
Y Y
Y QA

Y
Y DevOps

Y Y Y
*Things to do:*

1. All the users of a particular app we need to maintain as a group.

In APIM side they uses http://wso2.org/claims/organization claim to group
the users. We have to set this claim (eg: app key as the value of the
claim) when appowner or developer try to click on 'Go to API Manager'
button.
Currently we use a role app_appName to group the users of a particular
application in AF. If we use this we have to implement a custom grouping
extractor to get the users of a particular group.


*Issues: *a. Since we don't set the claim for QA and DevOps users, they
can't view subscribed APIs in AF side, and If we add the claim they also
will be able to subscribe to APIs and generate keys. So we need to find a
way to view subscribed api for a particular application by QA and Devops
users.
b. With this implementation Developer can see prod keys also.


2. Make Go to API Manager and Sync Keys buttons enabled only to appowner
and developer.
For this we can use resource permissions we already have.


3. Need to improve/test all the rest calls we do with APIM to work with
groups and fix if there's any issue.

   - Login - When user clicks on 'Go to API Manager' button of a particular
   app, it should login to APIM and show the subscribed APIs, listed under
   selected application.
   - Create application
   - Remove application
   - Get published APIs by application
   - List subscription
   - Get applications

[1] https://wso2.org/jira/browse/APPFAC-3217

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] Integration tests run before deploying web app

2015-11-10 Thread Amalka Subasinghe
We can read the carbon log and check whether there's a web app deployed log.

Automation team might know some more options :)



On Tue, Nov 10, 2015 at 7:51 PM, Geesara Prathap <gees...@wso2.com> wrote:

> Hi Amalka,
>
> Actually that is what I asked. What sort of logic should be invoked
> through a @Before method? I can periodically send requests to service
> endpoint check whether service is available or not. But what would be the
> proper way to achieve this.
>
> Thanks,
>
> On Tue, Nov 10, 2015 at 6:24 PM, Amalka Subasinghe <ama...@wso2.com>
> wrote:
>
>> You can implement some waiting logic to check whether the web app
>> deployed in the server and invoke it in @BeforeClass method
>>
>>
>> On Mon, Nov 9, 2015 at 10:25 PM, Geesara Prathap <gees...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> I wrote some integration test cases to test a web service. Here is my
>>> the build section of maven configuration looks like.
>>>
>>> * *
>>>
>>> **
>>>
>>> **
>>>
>>> *maven-war-plugin*
>>>
>>> *2.3*
>>>
>>> **
>>>
>>> *src/main/webapp/WEB-INF/web.xml*
>>>
>>> *${name}*
>>>
>>> *
>>> /home/geesara/wso2/products/wso2as-5.3.0/repository/deployment/server/webapps*
>>>
>>> **
>>>
>>> **
>>>
>>> **
>>>
>>> **
>>>
>>>
>>> **
>>>
>>> *maven-compiler-plugin*
>>>
>>> *3.1*
>>>
>>> **
>>>
>>> *1.7*
>>>
>>> *1.7*
>>>
>>> **
>>>
>>> **
>>>
>>>
>>> **
>>>
>>> *org.apache.maven.plugins*
>>>
>>> *maven-failsafe-plugin*
>>>
>>> *2.12.4*
>>>
>>> **
>>>
>>> *    *
>>>
>>> *integration-test*
>>>
>>> **
>>>
>>> *integration-test*
>>>
>>> *verify*
>>>
>>> **
>>>
>>> **
>>>
>>> **
>>>
>>> **
>>>
>>> **
>>>
>>> **
>>>
>>> As the $subject, How should we wait until web app has been deployed on
>>> the server to execute integration test cases.
>>>
>>> Thanks,
>>>
>>>
>>> --
>>> Geesara Prathap Kulathunga
>>> Software Engineer
>>> WSO2 Inc; http://wso2.com
>>> phone: +940772684174
>>>
>>
>>
>>
>> --
>> Amalka Subasinghe
>> Senior Software Engineer
>> WSO2 Inc.
>> Mobile: +94 77 9401267
>>
>
>
>
> --
> Geesara Prathap Kulathunga
> Software Engineer
> WSO2 Inc; http://wso2.com
> phone: +940772684174
>



-- 
Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory][Kubernetes][DevSetup] Issue in appfactory dev setup with kubernates and docker

2015-11-10 Thread Amalka Subasinghe
I'm also getting similar issues these days. I think resources are not
enough in the openstack instance

On Tue, Nov 10, 2015 at 5:44 PM, Pubudu Gunatilaka <pubu...@wso2.com> wrote:

> Hi,
>
> Restarting the cartridge agent will not work and it will halt at the
> instance initialization. If the application went from Active to  Deploy
> state, then most probably faulty member has detected and a new docker
> instance has spawned.
>
> Can you attach the agent log in one of the docker containers?
>
> Thank you!
>
> On Tue, Nov 10, 2015 at 5:24 PM, Anuruddha Premalal <anurud...@wso2.com>
> wrote:
>
>> Hi Roshan,
>>
>> Can you check whether your teant is subscribed to the cartridge? (you
>> could use stratos rest api).
>>
>> Try with a new tenant. This might probably be due to a subscription issue.
>>
>> On Tue, Nov 10, 2015 at 5:15 PM, Roshan Deniyage <rosh...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>> I'm working with new appfactory dev setup with kubenetes and docker.
>>> In appfactory side the setup works fine and when app is created it
>>> successfully get commit to s2git (git server which cartridge agent get
>>> artifact from).
>>>
>>> But, I'm facing an issue getting the artifact deployed to the cartridge.
>>> The trouble shooting steps are as follows,
>>>
>>> * After the dev setup is completed I restarted mq, activemq, stratos, 3
>>> greg servers, jenkins and appfactory in the given order.
>>> * Then executed the "executor.sh" script which is inside the ppass to
>>> subscribe to stratos since the setup is not executing it successfully.
>>> * Then 3 applications in the stratos for dev, test and prod env, show
>>> the applications are in "deployed" state but never becomes "active".
>>> * Hence, I logged into 3 docker instances and restated the wso2app
>>> servers. (cartridge)
>>> * Then, 3 applications became active.
>>> * But, once I create a new application, it goes upto s2git but not
>>> deploying in the cartridge.
>>> * Then, I restarted the cartridge agents in 3 docker instance but it
>>> cause to become 3 stratos applications to "deployed" state from "active"
>>> stage.
>>> * The agent logs doesn't show any error messages.
>>>
>>> I have no clue what's going on. If someone has any idea how to find the
>>> root cause, that  would be great.
>>>
>>>
>>> Thanks,
>>> Roshan Deniyage
>>> Associate Technical Lead
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile:  +94 777636406 / +1 408 667 6254
>>> 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
>>>
>>>
>>
>>
>> --
>> *Anuruddha Premalal*
>> Software Eng. | WSO2 Inc.
>> Mobile : +94717213122
>> Web site : www.anuruddha.org
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774079049 <%2B94772207163>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can we pass a variable from TestManagerListener to a TestCase?

2015-10-13 Thread Amalka Subasinghe
No we can't

What I want to do it, when executing TestManagerListener.onStart() class we
create a tenant and then in the test cases i want to use that tenant's id.

if we hard code the tenant id in automation.xml file, every time we have to
manually create the tenant in the af setup before execute our test cases.



On Tue, Oct 13, 2015 at 2:22 PM, Mahesh Chinthaka <mahe...@wso2.com> wrote:

> Hi Amalka,
>
> What is the use case ? Why do you want to pass a value from onStart method
> to a test case.
> Configuring the value in automation.xml and reading it inside the test
> case wont help ?
>
> Thanks
>
> On Tue, Oct 13, 2015 at 2:16 PM, Amalka Subasinghe <ama...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I want to set a value to a variable in TestManagerListener.onStart()
>> method and use it in a test case. How can I do it?
>>
>> Thanks
>> Amalka
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *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
>



-- 
Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Can we pass a variable from TestManagerListener to a TestCase?

2015-10-13 Thread Amalka Subasinghe
Hi,

I want to set a value to a variable in TestManagerListener.onStart() method
and use it in a test case. How can I do it?

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory] How to maintain Docker images used in App Factory

2015-10-07 Thread Amalka Subasinghe
+1

On Wed, Oct 7, 2015 at 7:49 PM, Punnadi Gunarathna <punn...@wso2.com> wrote:

> Hi All,
>
> Shall we have our own space for AppFactory in DockerHub and upload the
> WSO2AS image and the other images we have created so far with custom
> changes?
> I think we will can use the existing Dockerfile [1] in WSO2AS (and for
> other image types also) and we just have to change the values passed to the
> below command in build.sh to differentiate it as a WSO2AS image with custom
> changes made for App Factory deployment.
> docker build -t wso2/${wso2_product_type}:${wso2_product_version}
>
> This way we can release the images in parallel with the product releases
> as well.WDYT?
>
> [1]
> https://github.com/punnadih/product-private-paas/blob/master/cartridges/docker/wso2as-5.2.1/Dockerfile
> --
>
> Thanks and Regards,
>
> Punnadi Gunarathna
> Senior Software Engineer,
> WSO2, Inc.; http://wso2.com <http://wso2>
> Blog: http://hi-my-world.blogspot.com/
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
> <http://lalajisureshika.blogspot.com/>
>



-- 
Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] dockersupport-1.1 branch building issue with workflow extensions changes

2015-10-06 Thread Amalka Subasinghe
Yes, we need 3 messages in MB, that we are creating within the
initializeCloudManager method.
see the sequence diagram I have shared in @architecture: [Architecture]
[AppFactory]New governance and tenant creation changes to AppFactory
deployment with single Stratos

On Tue, Oct 6, 2015 at 8:03 PM, Punnadi Gunarathna <punn...@wso2.com> wrote:

> Hi,
>
> I think since we are going to introduce 3 GReg servers for each stage, we
> will have to have 3 topics in MB and subscribe to relevant one based on the
> stage as it was done before.
>
> On Tue, Oct 6, 2015 at 9:07 AM, Amalka Subasinghe <ama...@wso2.com> wrote:
>
>> As I know what you are doing is, implementing a extension class to invoke
>> the methods defined in AppFactoryTenantInfraStructureInitializerService
>> class. Now with the new implementation we have removed calling
>> initializeCloudManager method 3 times for 3 stages. Instead of that we call
>> initializeCloudManager methods only once and within that method we create
>> tenant in all stages.
>>
>> So you need to update your extension class to invoke
>> initializeCloudManager method once. No need to revert the changes done by
>> Punnadi.
>>
>> On Tue, Oct 6, 2015 at 5:43 PM, Punnadi Gunarathna <punn...@wso2.com>
>> wrote:
>>
>>> Hi Lahiru,
>>>
>>>
>>> Please find the changes made by me in [1]. I think you will have to
>>> revert it back to it's initial state.
>>>
>>> [1]
>>> https://github.com/punnadih/product-af/commit/c58f448a61f42d1ba8f6e5206e437076926267f8
>>>
>>> On Tue, Oct 6, 2015 at 6:49 AM, Lahiru Manohara <lahir...@wso2.com>
>>> wrote:
>>>
>>>> Now cloud manager initialization is happening inside the 
>>>> initializeCloudManager
>>>> method and also initializeCloudManager method calls for three stages  are
>>>> removed from the BPEL as well.
>>>>
>>>> On Tue, Oct 6, 2015 at 4:25 PM, Anuruddha Premalal <anurud...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Lahiru,
>>>>>
>>>>> Tenant creation was done by (+ punnadi). Since we had a single
>>>>> stratos, didn't want stage parameter to create tenant in separate
>>>>> registries, however once we move tenant creation to greg's you might have
>>>>> to bring the stage parameter back or you could use multiple subscriber on
>>>>> the tenant creation message.
>>>>>
>>>>> Regards,
>>>>> Anuruddha.
>>>>>
>>>>> On Tue, Oct 6, 2015 at 2:49 PM, Lahiru Manohara <lahir...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Anuruddha,
>>>>>>
>>>>>> According to this full request[1]. The stage parameter was removed
>>>>>> from the initializeCloudManager method in
>>>>>> the AppFactoryTenantInfraStructureInitializerService class. In
>>>>>> Tenantcreation BPEL and default workflow is calling 
>>>>>> initializeCloudManager
>>>>>> for three stages (development, testing and production). But how could i 
>>>>>> do
>>>>>> this from updated code?
>>>>>>
>>>>>> [1]. https://github.com/wso2/product-af/pull/526/files
>>>>>>
>>>>>> Thanks.
>>>>>> --
>>>>>> Best regards,
>>>>>>
>>>>>> *Lahiru Manohara*
>>>>>> *Software Engineer*
>>>>>> Mobile: +94716561576
>>>>>> WSO2 Inc. | http://wso2.com
>>>>>> lean.enterprise.middleware
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Anuruddha Premalal*
>>>>> Software Eng. | WSO2 Inc.
>>>>> Mobile : +94717213122
>>>>> Web site : www.anuruddha.org
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Best regards,
>>>>
>>>> *Lahiru Manohara*
>>>> *Software Engineer*
>>>> Mobile: +94716561576
>>>> WSO2 Inc. | http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> Thanks and Regards,
>>>
>>> Punnadi Gunarathna
>>> Senior Software Engineer,
>>> WSO2, Inc.; http://wso2.com <http://wso2>
>>> Blog: http://hi-my-world.blogspot.com/
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>>
>>> <http://lalajisureshika.blogspot.com/>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Amalka Subasinghe
>> Senior Software Engineer
>> WSO2 Inc.
>> Mobile: +94 77 9401267
>>
>
>
>
> --
>
> Thanks and Regards,
>
> Punnadi Gunarathna
> Senior Software Engineer,
> WSO2, Inc.; http://wso2.com <http://wso2>
> Blog: http://hi-my-world.blogspot.com/
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
> <http://lalajisureshika.blogspot.com/>
>



-- 
Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] dockersupport-1.1 branch building issue with workflow extensions changes

2015-10-06 Thread Amalka Subasinghe
As I know what you are doing is, implementing a extension class to invoke
the methods defined in AppFactoryTenantInfraStructureInitializerService
class. Now with the new implementation we have removed calling
initializeCloudManager method 3 times for 3 stages. Instead of that we call
initializeCloudManager methods only once and within that method we create
tenant in all stages.

So you need to update your extension class to invoke initializeCloudManager
method once. No need to revert the changes done by Punnadi.

On Tue, Oct 6, 2015 at 5:43 PM, Punnadi Gunarathna <punn...@wso2.com> wrote:

> Hi Lahiru,
>
>
> Please find the changes made by me in [1]. I think you will have to revert
> it back to it's initial state.
>
> [1]
> https://github.com/punnadih/product-af/commit/c58f448a61f42d1ba8f6e5206e437076926267f8
>
> On Tue, Oct 6, 2015 at 6:49 AM, Lahiru Manohara <lahir...@wso2.com> wrote:
>
>> Now cloud manager initialization is happening inside the 
>> initializeCloudManager
>> method and also initializeCloudManager method calls for three stages  are
>> removed from the BPEL as well.
>>
>> On Tue, Oct 6, 2015 at 4:25 PM, Anuruddha Premalal <anurud...@wso2.com>
>> wrote:
>>
>>> Hi Lahiru,
>>>
>>> Tenant creation was done by (+ punnadi). Since we had a single stratos,
>>> didn't want stage parameter to create tenant in separate registries,
>>> however once we move tenant creation to greg's you might have to bring the
>>> stage parameter back or you could use multiple subscriber on the tenant
>>> creation message.
>>>
>>> Regards,
>>> Anuruddha.
>>>
>>> On Tue, Oct 6, 2015 at 2:49 PM, Lahiru Manohara <lahir...@wso2.com>
>>> wrote:
>>>
>>>> Hi Anuruddha,
>>>>
>>>> According to this full request[1]. The stage parameter was removed from
>>>> the initializeCloudManager method in
>>>> the AppFactoryTenantInfraStructureInitializerService class. In
>>>> Tenantcreation BPEL and default workflow is calling initializeCloudManager
>>>> for three stages (development, testing and production). But how could i do
>>>> this from updated code?
>>>>
>>>> [1]. https://github.com/wso2/product-af/pull/526/files
>>>>
>>>> Thanks.
>>>> --
>>>> Best regards,
>>>>
>>>> *Lahiru Manohara*
>>>> *Software Engineer*
>>>> Mobile: +94716561576
>>>> WSO2 Inc. | http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>
>>>
>>>
>>> --
>>> *Anuruddha Premalal*
>>> Software Eng. | WSO2 Inc.
>>> Mobile : +94717213122
>>> Web site : www.anuruddha.org
>>>
>>>
>>
>>
>> --
>> Best regards,
>>
>> *Lahiru Manohara*
>> *Software Engineer*
>> Mobile: +94716561576
>> WSO2 Inc. | http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
>
> Thanks and Regards,
>
> Punnadi Gunarathna
> Senior Software Engineer,
> WSO2, Inc.; http://wso2.com <http://wso2>
> Blog: http://hi-my-world.blogspot.com/
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
> <http://lalajisureshika.blogspot.com/>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] dockersupport-1.1 branch building issue with workflow extensions changes

2015-10-06 Thread Amalka Subasinghe
On Tue, Oct 6, 2015 at 8:26 PM, Amalka Subasinghe <ama...@wso2.com> wrote:

> Yes, we need 3 messages in MB, that we are creating within the
> initializeCloudManager method.
> see the sequence diagram I have shared in @architecture: [Architecture]
> [AppFactory]New governance and tenant creation changes to AppFactory
> deployment with single Stratos
>

within the  initializeCloudManager method, get the stages defined in
appfactory.xml file (in our case, dev, test n prod), create 3 messages to
create tenant in 3 Greg instances and put in MB

>
> On Tue, Oct 6, 2015 at 8:03 PM, Punnadi Gunarathna <punn...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I think since we are going to introduce 3 GReg servers for each stage, we
>> will have to have 3 topics in MB and subscribe to relevant one based on the
>> stage as it was done before.
>>
>> On Tue, Oct 6, 2015 at 9:07 AM, Amalka Subasinghe <ama...@wso2.com>
>> wrote:
>>
>>> As I know what you are doing is, implementing a extension class to
>>> invoke the methods defined in
>>> AppFactoryTenantInfraStructureInitializerService class. Now with the new
>>> implementation we have removed calling initializeCloudManager method 3
>>> times for 3 stages. Instead of that we call initializeCloudManager methods
>>> only once and within that method we create tenant in all stages.
>>>
>>> So you need to update your extension class to invoke
>>> initializeCloudManager method once. No need to revert the changes done by
>>> Punnadi.
>>>
>>> On Tue, Oct 6, 2015 at 5:43 PM, Punnadi Gunarathna <punn...@wso2.com>
>>> wrote:
>>>
>>>> Hi Lahiru,
>>>>
>>>>
>>>> Please find the changes made by me in [1]. I think you will have to
>>>> revert it back to it's initial state.
>>>>
>>>> [1]
>>>> https://github.com/punnadih/product-af/commit/c58f448a61f42d1ba8f6e5206e437076926267f8
>>>>
>>>> On Tue, Oct 6, 2015 at 6:49 AM, Lahiru Manohara <lahir...@wso2.com>
>>>> wrote:
>>>>
>>>>> Now cloud manager initialization is happening inside the 
>>>>> initializeCloudManager
>>>>> method and also initializeCloudManager method calls for three stages  are
>>>>> removed from the BPEL as well.
>>>>>
>>>>> On Tue, Oct 6, 2015 at 4:25 PM, Anuruddha Premalal <anurud...@wso2.com
>>>>> > wrote:
>>>>>
>>>>>> Hi Lahiru,
>>>>>>
>>>>>> Tenant creation was done by (+ punnadi). Since we had a single
>>>>>> stratos, didn't want stage parameter to create tenant in separate
>>>>>> registries, however once we move tenant creation to greg's you might have
>>>>>> to bring the stage parameter back or you could use multiple subscriber on
>>>>>> the tenant creation message.
>>>>>>
>>>>>> Regards,
>>>>>> Anuruddha.
>>>>>>
>>>>>> On Tue, Oct 6, 2015 at 2:49 PM, Lahiru Manohara <lahir...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Anuruddha,
>>>>>>>
>>>>>>> According to this full request[1]. The stage parameter was removed
>>>>>>> from the initializeCloudManager method in
>>>>>>> the AppFactoryTenantInfraStructureInitializerService class. In
>>>>>>> Tenantcreation BPEL and default workflow is calling 
>>>>>>> initializeCloudManager
>>>>>>> for three stages (development, testing and production). But how could i 
>>>>>>> do
>>>>>>> this from updated code?
>>>>>>>
>>>>>>> [1]. https://github.com/wso2/product-af/pull/526/files
>>>>>>>
>>>>>>> Thanks.
>>>>>>> --
>>>>>>> Best regards,
>>>>>>>
>>>>>>> *Lahiru Manohara*
>>>>>>> *Software Engineer*
>>>>>>> Mobile: +94716561576
>>>>>>> WSO2 Inc. | http://wso2.com
>>>>>>> lean.enterprise.middleware
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Anuruddha Premalal*
>>>>>> Software Eng. | WSO2 Inc.
>>>>>> Mobile : +94717213122
>>>>>> Web site : www.anuruddha.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best regards,
>>>>>
>>>>> *Lahiru Manohara*
>>>>> *Software Engineer*
>>>>> Mobile: +94716561576
>>>>> WSO2 Inc. | http://wso2.com
>>>>> lean.enterprise.middleware
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Thanks and Regards,
>>>>
>>>> Punnadi Gunarathna
>>>> Senior Software Engineer,
>>>> WSO2, Inc.; http://wso2.com <http://wso2>
>>>> Blog: http://hi-my-world.blogspot.com/
>>>> Tel : 94 11 214 5345
>>>> Fax :94 11 2145300
>>>>
>>>> <http://lalajisureshika.blogspot.com/>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Amalka Subasinghe
>>> Senior Software Engineer
>>> WSO2 Inc.
>>> Mobile: +94 77 9401267
>>>
>>
>>
>>
>> --
>>
>> Thanks and Regards,
>>
>> Punnadi Gunarathna
>> Senior Software Engineer,
>> WSO2, Inc.; http://wso2.com <http://wso2>
>> Blog: http://hi-my-world.blogspot.com/
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>>
>> <http://lalajisureshika.blogspot.com/>
>>
>
>
>
> --
> Amalka Subasinghe
> Senior Software Engineer
> WSO2 Inc.
> Mobile: +94 77 9401267
>



-- 
Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] Error while creating a version for existing application.

2015-09-28 Thread Amalka Subasinghe
I will try this fix and update soon

On Thu, Sep 24, 2015 at 3:01 PM, Kasun De Silva <kas...@wso2.com> wrote:

> Hi Amalka,
>
> According to the registry team this could be possibly fix with the
> following change into the RxtManager. Is this intermittent?  Can you
> reproduce this regularly? This should be reproducible in our local setups
> right? Is so please patch the appfactory.core with the diff provided, and
> test. Let us know the results.
>
> diff --git
> a/modules/components/org.wso2.carbon.appfactory.core/src/main/java/org/wso2/carbon/appfactory/core/governance/RxtManager.java
> b/modules/components/org.wso2.carbon.appfactory.core/src/main/java/org/wso2/carbon/appfactory/core/governance/RxtManager.java
> index 3259299..609419d 100644
> ---
> a/modules/components/org.wso2.carbon.appfactory.core/src/main/java/org/wso2/carbon/appfactory/core/governance/RxtManager.java
> +++
> b/modules/components/org.wso2.carbon.appfactory.core/src/main/java/org/wso2/carbon/appfactory/core/governance/RxtManager.java
> @@ -200,6 +200,7 @@ public class RxtManager {
>  factory.setProperty(XMLInputFactory.IS_COALESCING, true);
>  XMLStreamReader reader = null;
>  reader = factory.createXMLStreamReader(new
> StringReader(info));
> +   GovernanceUtils.loadGovernanceArtifacts(userRegistry);
>  GenericArtifactManager manager = new
> GenericArtifactManager(userRegistry, key);
>  GenericArtifact artifact = manager.newGovernanceArtifact(new
> StAXOMBuilder(reader).getDocumentElement());
>
>
> Thanks,
> Kasun
>
>
> *Kasun de Silva*
> Software Engineer | *WSO2 Inc.*; http://wso2.com
> lean.enterprise.middleware
>
> email   : kas...@wso2.com
> mobile : +94 77 794 4260
>
>
> On Tue, Sep 15, 2015 at 2:08 PM, Amalka Subasinghe <ama...@wso2.com>
> wrote:
>
>> Hi,
>>
>>
>> I got the following error, when I try to create a version in an existing
>> application
>>
>> By referring the logs, we can see that config and governance registries
>> are being loaded.
>>
>> TID: [0] [AF] [2015-09-15 01:06:23,476]  INFO
>> {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -  Connected
>> to mount at config in 5ms
>> {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService}
>>
>> TID: [0] [AF] [2015-09-15 01:06:23,619]  INFO
>> {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -  Connected
>> to mount at governance in 12ms
>> {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService}
>>
>>
>> however, after I login to the carbon console, using the same tenant I
>> could create the version without errors.
>>
>>
>> TID: [0] [AF] [2015-09-14 21:02:41,818] ERROR
>> {org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl}
>> -  Error in associating lifecycle for the artifact. id:
>> e47109a2-893b-4c7d-a76a-1fc46aa25954, path:
>> /repository/applications/aftestsetupmonitori/1.0.0.
>> {org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl}
>>
>> org.wso2.carbon.registry.core.exceptions.RegistryException: Couldn't find
>> aspectName 'ApplicationLifecycle'
>>
>>at
>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.associateAspect(EmbeddedRegistry.java:2428)
>>
>>at
>> org.wso2.carbon.registry.core.caching.CacheBackedRegistry.associateAspect(CacheBackedRegistry.java:416)
>>
>>at
>> org.wso2.carbon.registry.core.session.UserRegistry.associateAspectInternal(UserRegistry.java:1904)
>>
>>at
>> org.wso2.carbon.registry.core.session.UserRegistry.access$3800(UserRegistry.java:60)
>>
>>at
>> org.wso2.carbon.registry.core.session.UserRegistry$39.run(UserRegistry.java:1876)
>>
>>at
>> org.wso2.carbon.registry.core.session.UserRegistry$39.run(UserRegistry.java:1873)
>>
>>at java.security.AccessController.doPrivileged(Native Method)
>>
>>at
>> org.wso2.carbon.registry.core.session.UserRegistry.associateAspect(UserRegistry.java:1873)
>>
>>at
>> org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.attachLifecycle(GovernanceArtifactImpl.java:276)
>>at
>> org.wso2.carbon.appfactory.core.governance.RxtManager.addArtifact(RxtManager.java:212)
>>
>>
>> Thanks
>> Amalka
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] Error while creating a version for existing application.

2015-09-28 Thread Amalka Subasinghe
Hi Kasun,

I applied the given fix and tested this scenario, still I'm getting the
same exception. This need to investigate more and give a proper solution.

Thanks
Amalka

On Mon, Sep 28, 2015 at 12:40 PM, Amalka Subasinghe <ama...@wso2.com> wrote:

> I will try this fix and update soon
>
> On Thu, Sep 24, 2015 at 3:01 PM, Kasun De Silva <kas...@wso2.com> wrote:
>
>> Hi Amalka,
>>
>> According to the registry team this could be possibly fix with the
>> following change into the RxtManager. Is this intermittent?  Can you
>> reproduce this regularly? This should be reproducible in our local setups
>> right? Is so please patch the appfactory.core with the diff provided, and
>> test. Let us know the results.
>>
>> diff --git
>> a/modules/components/org.wso2.carbon.appfactory.core/src/main/java/org/wso2/carbon/appfactory/core/governance/RxtManager.java
>> b/modules/components/org.wso2.carbon.appfactory.core/src/main/java/org/wso2/carbon/appfactory/core/governance/RxtManager.java
>> index 3259299..609419d 100644
>> ---
>> a/modules/components/org.wso2.carbon.appfactory.core/src/main/java/org/wso2/carbon/appfactory/core/governance/RxtManager.java
>> +++
>> b/modules/components/org.wso2.carbon.appfactory.core/src/main/java/org/wso2/carbon/appfactory/core/governance/RxtManager.java
>> @@ -200,6 +200,7 @@ public class RxtManager {
>>  factory.setProperty(XMLInputFactory.IS_COALESCING, true);
>>  XMLStreamReader reader = null;
>>  reader = factory.createXMLStreamReader(new
>> StringReader(info));
>> +   GovernanceUtils.loadGovernanceArtifacts(userRegistry);
>>  GenericArtifactManager manager = new
>> GenericArtifactManager(userRegistry, key);
>>  GenericArtifact artifact = manager.newGovernanceArtifact(new
>> StAXOMBuilder(reader).getDocumentElement());
>>
>>
>> Thanks,
>> Kasun
>>
>>
>> *Kasun de Silva*
>> Software Engineer | *WSO2 Inc.*; http://wso2.com
>> lean.enterprise.middleware
>>
>> email   : kas...@wso2.com
>> mobile : +94 77 794 4260
>>
>>
>> On Tue, Sep 15, 2015 at 2:08 PM, Amalka Subasinghe <ama...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>>
>>> I got the following error, when I try to create a version in an existing
>>> application
>>>
>>> By referring the logs, we can see that config and governance registries
>>> are being loaded.
>>>
>>> TID: [0] [AF] [2015-09-15 01:06:23,476]  INFO
>>> {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -  Connected
>>> to mount at config in 5ms
>>> {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService}
>>>
>>> TID: [0] [AF] [2015-09-15 01:06:23,619]  INFO
>>> {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -  Connected
>>> to mount at governance in 12ms
>>> {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService}
>>>
>>>
>>> however, after I login to the carbon console, using the same tenant I
>>> could create the version without errors.
>>>
>>>
>>> TID: [0] [AF] [2015-09-14 21:02:41,818] ERROR
>>> {org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl}
>>> -  Error in associating lifecycle for the artifact. id:
>>> e47109a2-893b-4c7d-a76a-1fc46aa25954, path:
>>> /repository/applications/aftestsetupmonitori/1.0.0.
>>> {org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl}
>>>
>>> org.wso2.carbon.registry.core.exceptions.RegistryException: Couldn't
>>> find aspectName 'ApplicationLifecycle'
>>>
>>>at
>>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.associateAspect(EmbeddedRegistry.java:2428)
>>>
>>>at
>>> org.wso2.carbon.registry.core.caching.CacheBackedRegistry.associateAspect(CacheBackedRegistry.java:416)
>>>
>>>at
>>> org.wso2.carbon.registry.core.session.UserRegistry.associateAspectInternal(UserRegistry.java:1904)
>>>
>>>at
>>> org.wso2.carbon.registry.core.session.UserRegistry.access$3800(UserRegistry.java:60)
>>>
>>>at
>>> org.wso2.carbon.registry.core.session.UserRegistry$39.run(UserRegistry.java:1876)
>>>
>>>at
>>> org.wso2.carbon.registry.core.session.UserRegistry$39.run(UserRegistry.java:1873)
>>>
>>>at java.security.AccessController.doPrivileged(Native Method)
>>>
>>>at
>>> org

Re: [Dev] [AF] Setup AF development environment without 3 Greg instances

2015-09-23 Thread Amalka Subasinghe
Yes

On Wed, Sep 23, 2015 at 3:53 PM, Dimuthu Leelarathne <dimut...@wso2.com>
wrote:

> Hi Amalka,
>
> Is the first one happening automatically?
>
> thanks,
> dimuthu
>
> On Wed, Sep 23, 2015 at 3:49 PM, Amalka Subasinghe <ama...@wso2.com>
> wrote:
>
>> Hi,
>>
>> With 2.2.0-M3 we introduced 3 Greg servers to manage registry resources
>> for dev, test and prod environments. But still we can manage the resources
>> without 3 Greg instances, giving the resource management responsibility to
>> App servers.
>>
>> *What we need to do:*
>>
>> 1. Copy following jars to 3 appservers
>> org.wso2.carbon.appfactory.resource.mgt-2.2.0-SNAPSHOT.jar
>> org.wso2.carbon.registry.ws.client_4.2.0.jar
>> org.wso2.carbon.registry.ws.stub_4.2.0.jar
>>
>> 2. Update the appfactory.xml in appfactory node.
>> Change the port of GregServerURL under each deployment stage to 9443
>> 
>> https://gregserver.dev.appfactory.private.wso2.com:9443/services/
>> 
>>
>> 3. Update the Greg host entries in /etc/hosts file as follows
>> gregserver.dev.appfactory.private.wso2.com
>>   gregserver.test.appfactory.private.wso2.com
>>  gregserver.prod.appfactory.private.wso2.com
>>
>>
>> I have updated puppet modules [1] to setup App servers with all the above
>> jars every time. So, when a developer wants to setup the AF without 3
>> Gregs: remove the the dev_greg, test_greg, prod_greg strings from [2] file
>> and setup the app factory, then do the 2nd and 3rd setps mentioned above.
>>
>> [1]
>> https://github.com/wso2/product-af/blob/master/modules/puppet-manifests/
>> [2]
>> https://github.com/wso2/product-af/blob/master/modules/puppet-manifests/setup-script/config.properties
>>
>> Thanks
>> Amalka
>>
>
>
>
> --
> Dimuthu Leelarathne
> Director
>
> WSO2, Inc. (http://wso2.com)
> email: dimut...@wso2.com
> Mobile : 0773661935
>
> Lean . Enterprise . Middleware
>



-- 
Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AF] Setup AF development environment without 3 Greg instances

2015-09-23 Thread Amalka Subasinghe
Hi,

With 2.2.0-M3 we introduced 3 Greg servers to manage registry resources for
dev, test and prod environments. But still we can manage the resources
without 3 Greg instances, giving the resource management responsibility to
App servers.

*What we need to do:*

1. Copy following jars to 3 appservers
org.wso2.carbon.appfactory.resource.mgt-2.2.0-SNAPSHOT.jar
org.wso2.carbon.registry.ws.client_4.2.0.jar
org.wso2.carbon.registry.ws.stub_4.2.0.jar

2. Update the appfactory.xml in appfactory node.
Change the port of GregServerURL under each deployment stage to 9443

https://gregserver.dev.appfactory.private.wso2.com:9443/services/


3. Update the Greg host entries in /etc/hosts file as follows
gregserver.dev.appfactory.private.wso2.com
  gregserver.test.appfactory.private.wso2.com
 gregserver.prod.appfactory.private.wso2.com


I have updated puppet modules [1] to setup App servers with all the above
jars every time. So, when a developer wants to setup the AF without 3
Gregs: remove the the dev_greg, test_greg, prod_greg strings from [2] file
and setup the app factory, then do the 2nd and 3rd setps mentioned above.

[1] https://github.com/wso2/product-af/blob/master/modules/puppet-manifests/
[2]
https://github.com/wso2/product-af/blob/master/modules/puppet-manifests/setup-script/config.properties

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AF] Error while creating a version for existing application.

2015-09-15 Thread Amalka Subasinghe
Hi,


I got the following error, when I try to create a version in an existing
application

By referring the logs, we can see that config and governance registries are
being loaded.

TID: [0] [AF] [2015-09-15 01:06:23,476]  INFO
{org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -  Connected
to mount at config in 5ms
{org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService}

TID: [0] [AF] [2015-09-15 01:06:23,619]  INFO
{org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -  Connected
to mount at governance in 12ms
{org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService}


however, after I login to the carbon console, using the same tenant I could
create the version without errors.


TID: [0] [AF] [2015-09-14 21:02:41,818] ERROR
{org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl}
-  Error in associating lifecycle for the artifact. id:
e47109a2-893b-4c7d-a76a-1fc46aa25954, path:
/repository/applications/aftestsetupmonitori/1.0.0.
{org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl}

org.wso2.carbon.registry.core.exceptions.RegistryException: Couldn't find
aspectName 'ApplicationLifecycle'

   at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.associateAspect(EmbeddedRegistry.java:2428)

   at
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.associateAspect(CacheBackedRegistry.java:416)

   at
org.wso2.carbon.registry.core.session.UserRegistry.associateAspectInternal(UserRegistry.java:1904)

   at
org.wso2.carbon.registry.core.session.UserRegistry.access$3800(UserRegistry.java:60)

   at
org.wso2.carbon.registry.core.session.UserRegistry$39.run(UserRegistry.java:1876)

   at
org.wso2.carbon.registry.core.session.UserRegistry$39.run(UserRegistry.java:1873)

   at java.security.AccessController.doPrivileged(Native Method)

   at
org.wso2.carbon.registry.core.session.UserRegistry.associateAspect(UserRegistry.java:1873)

   at
org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.attachLifecycle(GovernanceArtifactImpl.java:276)
   at
org.wso2.carbon.appfactory.core.governance.RxtManager.addArtifact(RxtManager.java:212)


Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AF] "Show More Detail" button in runtime config page takes long time to respond

2015-09-11 Thread Amalka Subasinghe
Hi,

With the improvement we have made in 2.2.0-M3 release to the Runtime Config
pages [1], we have introduced a new button called "Show More Detail" to
show all details of resources only when the user click on it. otherwise we
display name and description only.

Let's say we have 10 properties defined in a given application, when we
click on this button it makes more than 30 remote calls to all dev, test,
prod gregs to returns the details.
In the cloud staging environment it takes around *19 seconds to load the
details of 10 properties.*

We can reduce this loading time, introducing button or icon in front of
each property to load information one by one (not all at once)

[1] architecture mail - [Architecture] [AF] Removing Registry Mounts for
the Dev, Test, Prod Registries.

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 AppFactory 2.2.0 Milestone 3 Released!

2015-08-26 Thread Amalka Subasinghe
*WSO2 AppFactory 2.2.0 Milestone 3 Released!*

WSO2 AppFactory team is pleased to announce the release of version 2.2.0-M3
of the WSO2 App Factory.

WSO2 App Factory is a multi-tenant, elastic and self-service enterprise
platform that enables multiple project teams to collaboratively create, run
and manage enterprise applications. Combining complete application
lifecycle management and Platform-as-a-Service (PaaS) capabilities, WSO2
App Factory makes it possible to develop, test, deploy to production and
retire applications with a single click. It also provides an easy way to
discover and consume apps and APIs through a user-friendly storefront.

*New Features  Improvements*

   - UX Improvements and bug fixes for appmgt application
   - Greg integration with AF to manage registry resources
   - Performance improvements for Runtime Config page

*All resolved Issues*

   - WSO2 App Factory resolved issues
   
https://wso2.org/jira/issues/?jql=project%20%3D%20APPFAC%20AND%20fixVersion%20%3D%20%222.2.0-M2%22%20AND%20status%20%3D%20Resolved%20ORDER%20BY%20priority%20DESC


The distribution is available to download at [1].

Source repository for App Factory can be found at [2].

Puppet manifests for App Factory can be found at [3].

We encourage you to report issues, documentation faults and feature
requests regarding WSO2 AppFactory through the public WSO2 AppFactory JIRA
https://wso2.org/jira/browse/APPFAC.

[1].
https://github.com/wso2/product-af/releases/download/wso2appfactory-2.2.0-M3/wso2appfactory-2.2.0-SNAPSHOT.zip

[2]. https://github.com/wso2/product-af/tree/wso2appfactory-2.2.0-M3
[3].
https://github.com/wso2/product-af/tree/wso2appfactory-2.2.0-M3/modules/puppet-manifests

*-- The WSO2 App Factory Team --*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error when generating/refreshing keys in APIM 1.9.0

2015-07-24 Thread Amalka Subasinghe
Hi,

I'm upgrading API Manager to 1.9.0 in App Factory setup.

When generating/refreshing keys I'm getting following exception.
I removed consumer key from AM_APPLICATION_KEY_MAPPING and try to generate
the key again - but the exception is still throwing

Any idea about this?

TID: [0] [AM] [2015-07-24 10:23:06,385]  INFO
{JAGGERY.site.blocks.subscription.subscription-add.ajax.subscription-add:jag}
-
generateApplicationKey
{JAGGERY.site.blocks.subscription.subscription-add.ajax.subscription-add:jag}
TID: [0] [AM] [2015-07-24 10:23:06,389]  INFO
{JAGGERY.site.blocks.subscription.subscription-add.ajax.subscription-add:jag}
-  -store.getApplicationKey-
{JAGGERY.site.blocks.subscription.subscription-add.ajax.subscription-add:jag}
TID: [0] [AM] [2015-07-24 10:23:06,469] ERROR
{org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO} -  Error occurred while
creating an Application Registration Entry for Application :
DefaultApplication {org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO}
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:
Duplicate entry '1-1-PRODUCTION' for key 'SUBSCRIBER_ID'
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
at com.mysql.jdbc.Util.getInstance(Util.java:386)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2825)
at
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2156)
at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1379)
at
org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.createApplicationRegistrationEntry(ApiMgtDAO.java:308)
at
org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.complete(ApplicationRegistrationSimpleWorkflowExecutor.java:80)
at
org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.execute(ApplicationRegistrationSimpleWorkflowExecutor.java:58)
at
org.wso2.carbon.apimgt.impl.APIConsumerImpl.requestApprovalForApplicationRegistration(APIConsumerImpl.java:2179)
at
org.wso2.carbon.apimgt.impl.UserAwareAPIConsumer.requestApprovalForApplicationRegistration(UserAwareAPIConsumer.java:34)
at
org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject.jsFunction_getApplicationKey(APIStoreHostObject.java:751)
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.FunctionObject.call(FunctionObject.java:386)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at
org.jaggeryjs.rhino.store.modules.subscription.c2._c_anonymous_2(/store/modules/subscription/key.jag:41)
at
org.jaggeryjs.rhino.store.modules.subscription.c2.call(/store/modules/subscription/key.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.store.modules.subscription.c0._c_anonymous_9(/store/modules/subscription/module.jag:32)
at
org.jaggeryjs.rhino.store.modules.subscription.c0.call(/store/modules/subscription/module.jag)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at
org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0._c_anonymous_1(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag:240)
at
org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0.call(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag)
at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
at
org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0._c_script_0(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag:3)
at

Re: [Dev] Error when generating/refreshing keys in APIM 1.9.0

2015-07-24 Thread Amalka Subasinghe
I'm getting this error when I create new application and try to generate
keys as well

On Fri, Jul 24, 2015 at 4:33 PM, Roshan Wijesena ros...@wso2.com wrote:

 Yes, As Uvindra said there will be a duplicate record in 
 AM_APPLICATION_REGISTRATION
 table.. Is it possible to delete your APIM application and try again ?

 On Fri, Jul 24, 2015 at 4:31 PM, Uvindra Dias Jayasinha uvin...@wso2.com
 wrote:

 According to the exception seems there is a duplicate entry value when
 trying to insert into AM_APPLICATION_REGISTRATION table. Seems that the
 same Application is getting registered multiple times. Can you let us know
 the exacts steps you are following?

 On 24 July 2015 at 16:13, Amalka Subasinghe ama...@wso2.com wrote:

 Hi,

 I'm upgrading API Manager to 1.9.0 in App Factory setup.

 When generating/refreshing keys I'm getting following exception.
 I removed consumer key from AM_APPLICATION_KEY_MAPPING and try to
 generate the key again - but the exception is still throwing

 Any idea about this?

 TID: [0] [AM] [2015-07-24 10:23:06,385]  INFO
 {JAGGERY.site.blocks.subscription.subscription-add.ajax.subscription-add:jag}
 -
 generateApplicationKey
 {JAGGERY.site.blocks.subscription.subscription-add.ajax.subscription-add:jag}
 TID: [0] [AM] [2015-07-24 10:23:06,389]  INFO
 {JAGGERY.site.blocks.subscription.subscription-add.ajax.subscription-add:jag}
 -  -store.getApplicationKey-
 {JAGGERY.site.blocks.subscription.subscription-add.ajax.subscription-add:jag}
 TID: [0] [AM] [2015-07-24 10:23:06,469] ERROR
 {org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO} -  Error occurred while
 creating an Application Registration Entry for Application :
 DefaultApplication {org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO}
 com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:
 Duplicate entry '1-1-PRODUCTION' for key 'SUBSCRIBER_ID'
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
 at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
 at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
 at com.mysql.jdbc.Util.getInstance(Util.java:386)
 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)
 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
 at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
 at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
 at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2825)
 at
 com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2156)
 at
 com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1379)
 at
 org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.createApplicationRegistrationEntry(ApiMgtDAO.java:308)
 at
 org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.complete(ApplicationRegistrationSimpleWorkflowExecutor.java:80)
 at
 org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.execute(ApplicationRegistrationSimpleWorkflowExecutor.java:58)
 at
 org.wso2.carbon.apimgt.impl.APIConsumerImpl.requestApprovalForApplicationRegistration(APIConsumerImpl.java:2179)
 at
 org.wso2.carbon.apimgt.impl.UserAwareAPIConsumer.requestApprovalForApplicationRegistration(UserAwareAPIConsumer.java:34)
 at
 org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject.jsFunction_getApplicationKey(APIStoreHostObject.java:751)
 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.FunctionObject.call(FunctionObject.java:386)
 at
 org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
 at
 org.jaggeryjs.rhino.store.modules.subscription.c2._c_anonymous_2(/store/modules/subscription/key.jag:41)
 at
 org.jaggeryjs.rhino.store.modules.subscription.c2.call(/store/modules/subscription/key.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.store.modules.subscription.c0._c_anonymous_9(/store/modules/subscription/module.jag:32

Re: [Dev] Error when generating/refreshing keys in APIM 1.9.0

2015-07-24 Thread Amalka Subasinghe
HI,

I had configured revoke api url incorrectly.
Thanks Amilad for helping to fix this.

Thanks

On Fri, Jul 24, 2015 at 4:56 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Amalka,

 When you new creating application, Is this coming during first click of
 generate token? I think your first attempt is failed and you get this when
 you click it for the second time?

 Thanks,
 Harsha

 On Fri, Jul 24, 2015 at 4:40 PM, Amalka Subasinghe ama...@wso2.com
 wrote:

 I'm getting this error when I create new application and try to generate
 keys as well

 On Fri, Jul 24, 2015 at 4:33 PM, Roshan Wijesena ros...@wso2.com wrote:

 Yes, As Uvindra said there will be a duplicate record in 
 AM_APPLICATION_REGISTRATION
 table.. Is it possible to delete your APIM application and try again ?

 On Fri, Jul 24, 2015 at 4:31 PM, Uvindra Dias Jayasinha 
 uvin...@wso2.com wrote:

 According to the exception seems there is a duplicate entry value when
 trying to insert into AM_APPLICATION_REGISTRATION table. Seems that the
 same Application is getting registered multiple times. Can you let us know
 the exacts steps you are following?

 On 24 July 2015 at 16:13, Amalka Subasinghe ama...@wso2.com wrote:

 Hi,

 I'm upgrading API Manager to 1.9.0 in App Factory setup.

 When generating/refreshing keys I'm getting following exception.
 I removed consumer key from AM_APPLICATION_KEY_MAPPING and try to
 generate the key again - but the exception is still throwing

 Any idea about this?

 TID: [0] [AM] [2015-07-24 10:23:06,385]  INFO
 {JAGGERY.site.blocks.subscription.subscription-add.ajax.subscription-add:jag}
 -
 generateApplicationKey
 {JAGGERY.site.blocks.subscription.subscription-add.ajax.subscription-add:jag}
 TID: [0] [AM] [2015-07-24 10:23:06,389]  INFO
 {JAGGERY.site.blocks.subscription.subscription-add.ajax.subscription-add:jag}
 -  -store.getApplicationKey-
 {JAGGERY.site.blocks.subscription.subscription-add.ajax.subscription-add:jag}
 TID: [0] [AM] [2015-07-24 10:23:06,469] ERROR
 {org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO} -  Error occurred while
 creating an Application Registration Entry for Application :
 DefaultApplication {org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO}
 com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:
 Duplicate entry '1-1-PRODUCTION' for key 'SUBSCRIBER_ID'
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
 at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
 at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
 at com.mysql.jdbc.Util.getInstance(Util.java:386)
 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)
 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
 at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
 at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
 at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2825)
 at
 com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2156)
 at
 com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1379)
 at
 org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.createApplicationRegistrationEntry(ApiMgtDAO.java:308)
 at
 org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.complete(ApplicationRegistrationSimpleWorkflowExecutor.java:80)
 at
 org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.execute(ApplicationRegistrationSimpleWorkflowExecutor.java:58)
 at
 org.wso2.carbon.apimgt.impl.APIConsumerImpl.requestApprovalForApplicationRegistration(APIConsumerImpl.java:2179)
 at
 org.wso2.carbon.apimgt.impl.UserAwareAPIConsumer.requestApprovalForApplicationRegistration(UserAwareAPIConsumer.java:34)
 at
 org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject.jsFunction_getApplicationKey(APIStoreHostObject.java:751)
 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.FunctionObject.call(FunctionObject.java:386)
 at
 org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
 at
 org.jaggeryjs.rhino.store.modules.subscription.c2._c_anonymous_2(/store/modules/subscription/key.jag:41)
 at
 org.jaggeryjs.rhino.store.modules.subscription.c2.call(/store/modules/subscription/key.jag

Re: [Dev] [EMM] Errors when creating secondary user store

2015-06-04 Thread Amalka Subasinghe
Hi,

I could see secondary domain and AD users with following config. But that
config contains some properties with spaces. isn't this something we need
to fix?

UserStoreManager
class=org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager

Property name=defaultRealmNameWSO2.ORG/Property
Property name=Disabledfalse/Property
*Property name=Diabledfalse/Property*
Property name=kdcEnabledfalse/Property
Property
name=ConnectionNameCN=Administrator,CN=Users,DC=wso2,DC=test/Property
  *  Property name=Connection
NameCN=Administrator,CN=Users,DC=wso2,DC=test/Property*
Property name=ConnectionURLldaps://192.168.18.13:636/Property
*Property name=Connection URLldaps://192.168.18.13:636
http://192.168.18.13:636/Property*
Property name=ConnectionPasswordpass#word2/Property
  *  Property name=Connection Passwordpass#word2/Property*
Property name=UserSearchBaseCN=Users,DC=wso2,DC=test/Property
  *  Property name=User Search BaseCN=Users,DC=wso2,DC=test/Property*
Property name=passwordHashMethodPLAIN_TEXT/Property


*  Property name=User Search
Filter(amp;(objectClass=user)(cn=?))/PropertyProperty name=User
Object Class(objectClass=user)/PropertyProperty name=User Entry
Object Classuser/Property*
Property name=UserEntryObjectClassuser/Property
Property name=UserNameAttributecn/Property
  *  Property name=Username Attributecn/Property*
Property name=isADLDSRolefalse/Property
Property name=userAccountControl512/Property
Property name=UserNameListFilter(objectClass=user)/Property
Property
name=UserNameSearchFilter(amp;(objectClass=user)(cn=?))/Property
Property name=UsernameJavaRegEx[a-zA-Z0-9._-|//]{3,30}$/Property
Property name=UsernameJavaScriptRegEx^[\S]{3,30}$/Property
Property name=PasswordJavaScriptRegEx^[\S]{5,30}$/Property
Property name=RolenameJavaScriptRegEx^[\S]{3,30}$/Property
Property name=RolenameJavaRegEx[a-zA-Z0-9._-|//]{3,30}$/Property
Property name=ReadGroupstrue/Property
Property name=WriteGroupstrue/Property
Property name=EmptyRolesAllowedtrue/Property
Property name=GroupSearchBaseCN=Users,DC=WSO2,DC=Com/Property
Property name=GroupEntryObjectClassgroup/Property
Property name=GroupNameAttributecn/Property
Property name=SharedGroupNameAttributecn/Property
Property
name=SharedGroupSearchBaseou=SharedGroups,dc=wso2,dc=org/Property
Property name=SharedGroupEntryObjectClassgroups/Property
Property
name=SharedTenantNameListFilter(object=organizationalUnit)/Property
Property name=SharedTenantNameAttributeou/Property
Property name=SharedTenantObjectClassorganizationalUnit/Property
Property name=MembershipAttributemember/Property
Property name=GroupNameListFilter(objectcategory=group)/Property
Property
name=GroupNameSearchFilter(amp;(objectClass=group)(cn=?))/Property
Property name=UserRolesCacheEnabledtrue/Property
Property name=Referralfollow/Property
Property name=BackLinksEnabledtrue/Property
Property name=MaxRoleNameListLength100/Property
Property name=MaxUserNameListLength100/Property
Property name=SCIMEnabledfalse/Property
Property name=DomainNameAD2/Property

 /UserStoreManager


On Thu, Jun 4, 2015 at 12:07 PM, Amalka Subasinghe ama...@wso2.com wrote:

 Hi,

 I'm trying to setup AD as secondary user store in EMM 1.1.0.

 When I try to create it via UI it creates the xml file as [1]. each
 property contains a space between words
 then the carbon log gives an error [2] saying Required ConnectionURL
 property is not set at the LDAP configurations
 Then I removed the space in between property Connection URL and save.
 Then carbon log gives another error [3] - Required mandatory property
 Connection URL is not defined!
 So I gave both Connection URL and ConnectionURL in xml file to solve
 the issue with ConnectionURL

 Same as above, I had to specify the same property with and without space
 to fix the errors in carbon log and there were some properties missing in
 the xml file too. had to add those manually.
 [4] shows the xml file after fixing all the errors. [missing properties
 shows in red color.]

 Still I can't see the Secondary user domain and users of the AD in users
 page. How can I fix this?

 [1]

 ?xml version=1.0 encoding=UTF-8?UserStoreManager
 class=org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager
   Property name=*Connection Name*
 CN=Administrator,CN=Users,DC=wso2,DC=test/Property
   Property name=Connection URLldaps://192.168.18.13:636/Property
   Property name=Connection Passwordpass#word2/Property
   Property name=User Search BaseCN=Users,DC=wso2,DC=test/Property
   Property name=Diabledfalse/Property
   Property name=User Object Class(objectClass=user)/Property
   Property name=Username Attributecn/Property
   Property name=User Search
 Filter(amp;(objectClass=user)(cn=?))/Property
   Property name=User Entry Object Classuser/Property
   Property

[Dev] [EMM] Errors when creating secondary user store

2015-06-04 Thread Amalka Subasinghe
 AlgorithmPLAIN_TEXT/Property
  Property name=Password RegEx (Javascript)^[\S]{5,30}$/Property
  Property name=Username RegEx (Javascript)^[\S]{3,30}$/Property
  Property name=Username RegEx
(Java)[a-zA-Z0-9._-|//]{3,30}$/Property
  Property name=Role Name RegEx (Javascript)^[\S]{3,30}$/Property
  Property name=Role Name RegEx
(Java)[a-zA-Z0-9._-|//]{3,30}$/Property
  Property name=Enable Write Groupstrue/Property
  Property name=User DN
Patternuid={0},ou=Users,dc=wso2,dc=org/Property
  Property name=Allow Empty Rolestrue/Property
  Property name=Default Realm NameWSO2.ORG/Property
  Property name=Enable KDCfalse/Property
  Property name=Display Name Attributecn/Property
  Property name=Is ADLDS Rolefalse/Property
  Property name=User Account Control512/Property
  Property name=Referralfollow/Property
  Property name=Enable Back Linkstrue/Property
  Property name=DomainNameAD/Property
  Property name=Description/
/UserStoreManager

-- 
Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] Error while starting EMM 1.1.0 fresh pack

2015-06-04 Thread Amalka Subasinghe
I downloaded the pack from product page and started. didn't do any
configuration changes.

On Thu, Jun 4, 2015 at 2:33 PM, Dilan Udara Ariyaratne dil...@wso2.com
wrote:

 Hi Amalka,

 Did you do any configuration changes or this is just a newly-unzipped-pack
 of EMM 1.1.0.
 If it was a newly-unzipped-pack of EMM 1.1.0, this is unlikely to happen.

 Cheers,
 Dilan.



 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Wed, Jun 3, 2015 at 4:41 PM, Amalka Subasinghe ama...@wso2.com wrote:


 Hi,

 I got the following error when starting the EMM 1.1.0 fresh pack

 [2015-06-03 16:38:57,592] ERROR
 {org.jaggeryjs.hostobjects.db.DatabaseHostObject} -  Failed to get
 connection
 org.h2.jdbc.JdbcSQLException: Wrong user name or password [8004-140]
 at
 org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
 at org.h2.message.DbException.get(DbException.java:167)
 at org.h2.message.DbException.get(DbException.java:144)
 at org.h2.message.DbException.get(DbException.java:133)
 at org.h2.engine.Engine.validateUserAndPassword(Engine.java:277)
 at org.h2.engine.Engine.getSession(Engine.java:133)
 at org.h2.engine.Session.createSession(Session.java:122)
 at
 org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241)
 at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219)
 at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:111)
 at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:95)
 at org.h2.Driver.connect(Driver.java:73)
 at
 org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278)
 at
 org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)
 at
 org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701)
 at
 org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635)
 at
 org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188)
 at
 org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:127)
 at
 org.jaggeryjs.hostobjects.db.DatabaseHostObject.jsConstructor(DatabaseHostObject.java:84)
 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.FunctionObject.call(FunctionObject.java:392)
 at
 org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:343)
 at
 org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c4._c_anonymous_4(/publisher/modules/data/driver.js:40)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c4.call(/publisher/modules/data/driver.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_10(/publisher/modules/data/model.manager.js:104)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
 at
 org.mozilla.javascript.gen._store__server_js_3._c_anonymous_17([store]/server.js:271)
 at
 org.mozilla.javascript.gen._store__server_js_3.call([store]/server.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
 at
 org.mozilla.javascript.gen._store__server_js_3._c_anonymous_16([store]/server.js:251)
 at
 org.mozilla.javascript.gen._store__server_js_3.call([store]/server.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_9(/publisher/modules/data/model.manager.js:103)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_17(/publisher/modules/data/model.manager.js:151)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_5(/publisher/modules/data/model.manager.js:76)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_4(/publisher/modules/data/model.manager.js:42

Re: [Dev] [EMM] Errors when creating secondary user store

2015-06-04 Thread Amalka Subasinghe
The properties I have bolded

On Thu, Jun 4, 2015 at 1:32 PM, Inosh Perera ino...@wso2.com wrote:

 Hi Amalka,

 But that config contains some properties with spaces. isn't this something
 we need to fix?
 Could you please highlight what these properties are exactly?

 Regards,
 Inosh

 On Thu, Jun 4, 2015 at 1:10 PM, Amalka Subasinghe ama...@wso2.com wrote:

 Hi,

 I could see secondary domain and AD users with following config. But that
 config contains some properties with spaces. isn't this something we need
 to fix?

 UserStoreManager
 class=org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager

 Property name=defaultRealmNameWSO2.ORG/Property
 Property name=Disabledfalse/Property
 *Property name=Diabledfalse/Property*

 Property name=kdcEnabledfalse/Property
 Property
 name=ConnectionNameCN=Administrator,CN=Users,DC=wso2,DC=test/Property
   *  Property name=Connection
 NameCN=Administrator,CN=Users,DC=wso2,DC=test/Property*
 Property name=ConnectionURLldaps://192.168.18.13:636/Property
 *Property name=Connection URLldaps://192.168.18.13:636
 http://192.168.18.13:636/Property*
 Property name=ConnectionPasswordpass#word2/Property
   *  Property name=Connection Passwordpass#word2/Property*
 Property name=UserSearchBaseCN=Users,DC=wso2,DC=test/Property
   *  Property name=User Search
 BaseCN=Users,DC=wso2,DC=test/Property*
 Property name=passwordHashMethodPLAIN_TEXT/Property


 *  Property name=User Search
 Filter(amp;(objectClass=user)(cn=?))/PropertyProperty name=User
 Object Class(objectClass=user)/PropertyProperty name=User Entry
 Object Classuser/Property*
 Property name=UserEntryObjectClassuser/Property
 Property name=UserNameAttributecn/Property
   *  Property name=Username Attributecn/Property*
 Property name=isADLDSRolefalse/Property
 Property name=userAccountControl512/Property
 Property name=UserNameListFilter(objectClass=user)/Property
 Property
 name=UserNameSearchFilter(amp;(objectClass=user)(cn=?))/Property
 Property name=UsernameJavaRegEx[a-zA-Z0-9._-|//]{3,30}$/Property
 Property name=UsernameJavaScriptRegEx^[\S]{3,30}$/Property
 Property name=PasswordJavaScriptRegEx^[\S]{5,30}$/Property
 Property name=RolenameJavaScriptRegEx^[\S]{3,30}$/Property
 Property name=RolenameJavaRegEx[a-zA-Z0-9._-|//]{3,30}$/Property
 Property name=ReadGroupstrue/Property
 Property name=WriteGroupstrue/Property
 Property name=EmptyRolesAllowedtrue/Property
 Property name=GroupSearchBaseCN=Users,DC=WSO2,DC=Com/Property
 Property name=GroupEntryObjectClassgroup/Property
 Property name=GroupNameAttributecn/Property
 Property name=SharedGroupNameAttributecn/Property
 Property
 name=SharedGroupSearchBaseou=SharedGroups,dc=wso2,dc=org/Property
 Property name=SharedGroupEntryObjectClassgroups/Property
 Property
 name=SharedTenantNameListFilter(object=organizationalUnit)/Property
 Property name=SharedTenantNameAttributeou/Property
 Property name=SharedTenantObjectClassorganizationalUnit/Property
 Property name=MembershipAttributemember/Property
 Property name=GroupNameListFilter(objectcategory=group)/Property
 Property
 name=GroupNameSearchFilter(amp;(objectClass=group)(cn=?))/Property
 Property name=UserRolesCacheEnabledtrue/Property
 Property name=Referralfollow/Property
 Property name=BackLinksEnabledtrue/Property
 Property name=MaxRoleNameListLength100/Property
 Property name=MaxUserNameListLength100/Property
 Property name=SCIMEnabledfalse/Property
 Property name=DomainNameAD2/Property

  /UserStoreManager


 On Thu, Jun 4, 2015 at 12:07 PM, Amalka Subasinghe ama...@wso2.com
 wrote:

 Hi,

 I'm trying to setup AD as secondary user store in EMM 1.1.0.

 When I try to create it via UI it creates the xml file as [1]. each
 property contains a space between words
 then the carbon log gives an error [2] saying Required ConnectionURL
 property is not set at the LDAP configurations
 Then I removed the space in between property Connection URL and save.
 Then carbon log gives another error [3] - Required mandatory property
 Connection URL is not defined!
 So I gave both Connection URL and ConnectionURL in xml file to solve
 the issue with ConnectionURL

 Same as above, I had to specify the same property with and without space
 to fix the errors in carbon log and there were some properties missing in
 the xml file too. had to add those manually.
 [4] shows the xml file after fixing all the errors. [missing properties
 shows in red color.]

 Still I can't see the Secondary user domain and users of the AD in users
 page. How can I fix this?

 [1]

 ?xml version=1.0 encoding=UTF-8?UserStoreManager
 class=org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager
   Property name=*Connection Name*
 CN=Administrator,CN=Users,DC=wso2,DC=test/Property
   Property name=Connection URLldaps://192.168.18.13:636
 /Property

Re: [Dev] [EMM] Error while starting EMM 1.1.0 fresh pack

2015-06-04 Thread Amalka Subasinghe
logs

[2015-06-04 16:53:44,694]  INFO {JAGGERY.config.app:js} -  Emitting event :
tenantLoad
[2015-06-04 16:53:44,846]  INFO {debugging} -
 : config {dataSource : JAGH2}
[2015-06-04 16:53:44,846]  INFO {debugging} -
 : username null
[2015-06-04 16:53:44,846]  INFO {debugging} -
 : password null
[2015-06-04 16:53:45,275] ERROR
{org.jaggeryjs.hostobjects.db.DatabaseHostObject} -  Failed to get
connection
org.h2.jdbc.JdbcSQLException: Wrong user name or password [8004-140]


On Thu, Jun 4, 2015 at 4:39 PM, Dilan Udara Ariyaratne dil...@wso2.com
wrote:

 Hi Amalka,

 Can you update your EMM server pack with following file, restart the
 server and send the startup logs to see
 what is going on in this specific case.

 File to replace (with attached driver.js) :
 wso2emm-1.1.0/repository/deployment/server/jaggeryapps/publisher/modules/data/driver.js

 Cheers,
 Dilan.



 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Thu, Jun 4, 2015 at 2:52 PM, Amalka Subasinghe ama...@wso2.com wrote:

 I downloaded the pack from product page and started. didn't do any
 configuration changes.

 On Thu, Jun 4, 2015 at 2:33 PM, Dilan Udara Ariyaratne dil...@wso2.com
 wrote:

 Hi Amalka,

 Did you do any configuration changes or this is just a
 newly-unzipped-pack of EMM 1.1.0.
 If it was a newly-unzipped-pack of EMM 1.1.0, this is unlikely to happen.

 Cheers,
 Dilan.



 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Wed, Jun 3, 2015 at 4:41 PM, Amalka Subasinghe ama...@wso2.com
 wrote:


 Hi,

 I got the following error when starting the EMM 1.1.0 fresh pack

 [2015-06-03 16:38:57,592] ERROR
 {org.jaggeryjs.hostobjects.db.DatabaseHostObject} -  Failed to get
 connection
 org.h2.jdbc.JdbcSQLException: Wrong user name or password [8004-140]
 at
 org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
 at org.h2.message.DbException.get(DbException.java:167)
 at org.h2.message.DbException.get(DbException.java:144)
 at org.h2.message.DbException.get(DbException.java:133)
 at org.h2.engine.Engine.validateUserAndPassword(Engine.java:277)
 at org.h2.engine.Engine.getSession(Engine.java:133)
 at org.h2.engine.Session.createSession(Session.java:122)
 at
 org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241)
 at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219)
 at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:111)
 at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:95)
 at org.h2.Driver.connect(Driver.java:73)
 at
 org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278)
 at
 org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)
 at
 org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701)
 at
 org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635)
 at
 org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188)
 at
 org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:127)
 at
 org.jaggeryjs.hostobjects.db.DatabaseHostObject.jsConstructor(DatabaseHostObject.java:84)
 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.FunctionObject.call(FunctionObject.java:392)
 at
 org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:343)
 at
 org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c4._c_anonymous_4(/publisher/modules/data/driver.js:40)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c4.call(/publisher/modules/data/driver.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_10(/publisher/modules/data/model.manager.js:104)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
 at
 org.mozilla.javascript.gen._store__server_js_3._c_anonymous_17([store]/server.js:271)
 at
 org.mozilla.javascript.gen._store__server_js_3.call([store]/server.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
 at
 org.mozilla.javascript.gen._store__server_js_3._c_anonymous_16([store]/server.js

[Dev] [EMM] Error while starting EMM 1.1.0 fresh pack

2015-06-03 Thread Amalka Subasinghe
Hi,

I got the following error when starting the EMM 1.1.0 fresh pack

[2015-06-03 16:38:57,592] ERROR
{org.jaggeryjs.hostobjects.db.DatabaseHostObject} -  Failed to get
connection
org.h2.jdbc.JdbcSQLException: Wrong user name or password [8004-140]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
at org.h2.message.DbException.get(DbException.java:167)
at org.h2.message.DbException.get(DbException.java:144)
at org.h2.message.DbException.get(DbException.java:133)
at org.h2.engine.Engine.validateUserAndPassword(Engine.java:277)
at org.h2.engine.Engine.getSession(Engine.java:133)
at org.h2.engine.Session.createSession(Session.java:122)
at
org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241)
at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219)
at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:111)
at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:95)
at org.h2.Driver.connect(Driver.java:73)
at
org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278)
at
org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188)
at
org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:127)
at
org.jaggeryjs.hostobjects.db.DatabaseHostObject.jsConstructor(DatabaseHostObject.java:84)
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.FunctionObject.call(FunctionObject.java:392)
at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:343)
at
org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)
at
org.jaggeryjs.rhino.publisher.modules.data.c4._c_anonymous_4(/publisher/modules/data/driver.js:40)
at
org.jaggeryjs.rhino.publisher.modules.data.c4.call(/publisher/modules/data/driver.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_10(/publisher/modules/data/model.manager.js:104)
at
org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)
at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
at
org.mozilla.javascript.gen._store__server_js_3._c_anonymous_17([store]/server.js:271)
at
org.mozilla.javascript.gen._store__server_js_3.call([store]/server.js)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at
org.mozilla.javascript.gen._store__server_js_3._c_anonymous_16([store]/server.js:251)
at
org.mozilla.javascript.gen._store__server_js_3.call([store]/server.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_9(/publisher/modules/data/model.manager.js:103)
at
org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)
at
org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
at
org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_17(/publisher/modules/data/model.manager.js:151)
at
org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)
at
org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
at
org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_5(/publisher/modules/data/model.manager.js:76)
at
org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_4(/publisher/modules/data/model.manager.js:42)
at
org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.publisher.modules.c9._c_anonymous_13(/publisher/modules/bundler.js:168)
at
org.jaggeryjs.rhino.publisher.modules.c9.call(/publisher/modules/bundler.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_3(/publisher/modules/data/model.manager.js:40)
at
org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)
at

Re: [Dev] [AF] Database user creation fails with the same user name in different applications.

2015-06-03 Thread Amalka Subasinghe
Hi Pirin,

Isn't this issue apply to database names? Can you create 2 databases with
same name under two application?


On Wed, Jun 3, 2015 at 2:08 PM, Pirinthapan Mahendran pirintha...@wso2.com
wrote:

 Hi Amalka,

 The issue is not only during the database creation time. I am considering
 the following scenario :
 After a user created the databases with different names under different
 apps, he cant create the user (by clicking the button Add New User) with
 the same name under these databases.

 Thanks.



 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.

 On Wed, Jun 3, 2015 at 1:19 PM, Amalka Subasinghe ama...@wso2.com wrote:

 Without creating user with database name, can't we generate 7 character
 user name randomly?

 There's another scenario: if we try create a new database with a name
 which was deleted earlier, that does not allow to create the user again
 with the same name. (user is exist although we remove the database) in that
 case, when we create the database, we have appended randomly generated 2
 letters at the end of the user defined user name to make the user name
 unique.
 So if we generate the full 7 character user name randomly each time we
 will not require to append 2 letter at the end.

 Further, because of the above UI allows to enter 5 letters for database
 name, we can remove that validation also if we can give a randomly
 generated user name



 On Wed, Jun 3, 2015 at 12:17 PM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi Pirinthapan
 I guess what we need to do is create the final user name as following

 user defined user name_hash code of applicaiton key + _ + tenant
 domain

 So this won't support by OOTB in SS.

 @Dimuthu : Is it OK if we add another service to RSSAdmin service to
 create a application specific database user? WDYT?


 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Jun 3, 2015 at 12:05 PM, Rajeevan Vimalanathan 
 rajeev...@wso2.com wrote:

 Hi Pirinthapan,

 Since the user name is not unique at the tenant domain (but it should
 be unique at application domain), can't we simply use the following pattern
 to the verification of user name?

 user defined user name_base64 encoding of the application key

 I hope this should resolve your issue.

 Thanks,
 Rajeevan

 On Wed, Jun 3, 2015 at 11:52 AM, Pirinthapan Mahendran 
 pirintha...@wso2.com wrote:

 Hi all,

 In App Factory, the database users are application local. That means
 if we create a database user under one application its not visible to
 another application even within the same tenant. So if we try to create a
 user with the same name in different applications within same tenant, we
 are getting 'user already exists exception'.

 This is because the RSSAdmin service only allows to create the user
 with the same name in different tenants. Not within same tenant.

 To overcome this issue I tried to append the base64 encoding of the
 application key to the user name in template layer level. This also 
 failing
 because of the following reason.

 By default mysql user name length is limited to 16 characters. In the
 current implementation of App Factory, we have allocated these 16
 characters in the following pattern.

 user defined user name_hash code of tenant domain

 1. First 7 characters for the user name, provided by the user.
 (Limited this to 7 characters in UI level)
 2. 8th character is for the connector '_'.
 3. last 8 characters for the base64 encoding of the hash code of
 tenant domain (this is created by 'carbon-storage-management' component).

 I kindly expect your thoughts to overcome this issue.

 Thanks  Regards.
 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --

 Vimalanathan Rajeevan
 Software Engineer
 WSO2 Inc.:http://wso2.com
 lean.enterprise.middleware


 Mobile : +94 773090875

 ___
 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




 --
 Amalka Subasinghe
 Senior Software Engineer
 WSO2 Inc.
 Mobile: +94 77 9401267





-- 
Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] Database user creation fails with the same user name in different applications.

2015-06-03 Thread Amalka Subasinghe
Without creating user with database name, can't we generate 7 character
user name randomly?

There's another scenario: if we try create a new database with a name which
was deleted earlier, that does not allow to create the user again with the
same name. (user is exist although we remove the database) in that case,
when we create the database, we have appended randomly generated 2 letters
at the end of the user defined user name to make the user name unique.
So if we generate the full 7 character user name randomly each time we will
not require to append 2 letter at the end.

Further, because of the above UI allows to enter 5 letters for database
name, we can remove that validation also if we can give a randomly
generated user name



On Wed, Jun 3, 2015 at 12:17 PM, Danushka Fernando danush...@wso2.com
wrote:

 Hi Pirinthapan
 I guess what we need to do is create the final user name as following

 user defined user name_hash code of applicaiton key + _ + tenant
 domain

 So this won't support by OOTB in SS.

 @Dimuthu : Is it OK if we add another service to RSSAdmin service to
 create a application specific database user? WDYT?


 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Jun 3, 2015 at 12:05 PM, Rajeevan Vimalanathan rajeev...@wso2.com
  wrote:

 Hi Pirinthapan,

 Since the user name is not unique at the tenant domain (but it should be
 unique at application domain), can't we simply use the following pattern to
 the verification of user name?

 user defined user name_base64 encoding of the application key

 I hope this should resolve your issue.

 Thanks,
 Rajeevan

 On Wed, Jun 3, 2015 at 11:52 AM, Pirinthapan Mahendran 
 pirintha...@wso2.com wrote:

 Hi all,

 In App Factory, the database users are application local. That means if
 we create a database user under one application its not visible to another
 application even within the same tenant. So if we try to create a user with
 the same name in different applications within same tenant, we are getting
 'user already exists exception'.

 This is because the RSSAdmin service only allows to create the user with
 the same name in different tenants. Not within same tenant.

 To overcome this issue I tried to append the base64 encoding of the
 application key to the user name in template layer level. This also failing
 because of the following reason.

 By default mysql user name length is limited to 16 characters. In the
 current implementation of App Factory, we have allocated these 16
 characters in the following pattern.

 user defined user name_hash code of tenant domain

 1. First 7 characters for the user name, provided by the user. (Limited
 this to 7 characters in UI level)
 2. 8th character is for the connector '_'.
 3. last 8 characters for the base64 encoding of the hash code of tenant
 domain (this is created by 'carbon-storage-management' component).

 I kindly expect your thoughts to overcome this issue.

 Thanks  Regards.
 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --

 Vimalanathan Rajeevan
 Software Engineer
 WSO2 Inc.:http://wso2.com
 lean.enterprise.middleware


 Mobile : +94 773090875

 ___
 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




-- 
Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] Error while starting MB 3.0.0 cluster setup

2015-05-20 Thread Amalka Subasinghe
I'm using M7 pack. but I have to create the databases manually.

On Wed, May 20, 2015 at 10:51 PM, Indika Sampath indi...@wso2.com wrote:

 Hi Amalka,

 You don't need to externally run db script. Below set of tables created
 when you start MB 3.0.0 pack with -Dsetup option. Which milestone pack did
 you configure ?

 MB_BINDING
 MB_CONTENT
 MB_DURABLE_SUBSCRIPTION
 MB_EXCHANGE
 MB_EXPIRATION_DATA
 MB_METADATA
 MB_NODE
 MB_QUEUE
 MB_QUEUE_COUNTER
 MB_QUEUE_MAPPING

 Cheers!

 On Wed, May 20, 2015 at 10:14 PM, Amalka Subasinghe ama...@wso2.com
 wrote:

 Hi,

 I'm trying to setup MB cluster with 2 MB nodes. When I start the MB node
 with -Dsetup following error was thrown.
 Do I need to create tables manually for wso2_mb (MB store db)?

 2015-05-20 22:01:04,676] ERROR
 {org.wso2.andes.server.registry.ApplicationRegistry} -
 org.wso2.andes.kernel.AndesException: Error occurred while retrieving all
 queue information.
 Exception during startup: java.lang.Exception:
 org.wso2.andes.kernel.AndesException: Error occurred while retrieving all
 queue information.
 java.lang.Exception: org.wso2.andes.kernel.AndesException: Error occurred
 while retrieving all queue information.
 at
 org.wso2.andes.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:266)
 at
 org.wso2.andes.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:147)
 at org.wso2.andes.server.Broker.startupImpl(Broker.java:147)
 at org.wso2.andes.server.Broker.startup(Broker.java:108)
 at org.wso2.andes.server.Main.startBroker(Main.java:218)
 at org.wso2.andes.server.Main.execute(Main.java:207)
 at org.wso2.andes.server.Main.init(Main.java:48)
 at org.wso2.andes.server.Main.main(Main.java:41)
 at
 org.wso2.carbon.andes.internal.QpidServiceComponent.startAndesBroker(QpidServiceComponent.java:324)
 at
 org.wso2.carbon.andes.internal.QpidServiceComponent.setHazelcastInstance(QpidServiceComponent.java:226)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:432)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.dynamicBind(InstanceProcess.java:416)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:334)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:950)
 at
 org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent.init(HazelcastClusteringAgent.java:223)
 at
 org.wso2.carbon.core.util.ClusteringUtil.enableClustering(ClusteringUtil.java:38)
 at
 org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:174)
 at
 org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:285)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged

[Dev] [MB] Error while starting MB 3.0.0 cluster setup

2015-05-20 Thread Amalka Subasinghe
Hi,

I'm trying to setup MB cluster with 2 MB nodes. When I start the MB node
with -Dsetup following error was thrown.
Do I need to create tables manually for wso2_mb (MB store db)?

2015-05-20 22:01:04,676] ERROR
{org.wso2.andes.server.registry.ApplicationRegistry} -
org.wso2.andes.kernel.AndesException: Error occurred while retrieving all
queue information.
Exception during startup: java.lang.Exception:
org.wso2.andes.kernel.AndesException: Error occurred while retrieving all
queue information.
java.lang.Exception: org.wso2.andes.kernel.AndesException: Error occurred
while retrieving all queue information.
at
org.wso2.andes.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:266)
at
org.wso2.andes.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:147)
at org.wso2.andes.server.Broker.startupImpl(Broker.java:147)
at org.wso2.andes.server.Broker.startup(Broker.java:108)
at org.wso2.andes.server.Main.startBroker(Main.java:218)
at org.wso2.andes.server.Main.execute(Main.java:207)
at org.wso2.andes.server.Main.init(Main.java:48)
at org.wso2.andes.server.Main.main(Main.java:41)
at
org.wso2.carbon.andes.internal.QpidServiceComponent.startAndesBroker(QpidServiceComponent.java:324)
at
org.wso2.carbon.andes.internal.QpidServiceComponent.setHazelcastInstance(QpidServiceComponent.java:226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:432)
at
org.eclipse.equinox.internal.ds.InstanceProcess.dynamicBind(InstanceProcess.java:416)
at
org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:334)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:950)
at
org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent.init(HazelcastClusteringAgent.java:223)
at
org.wso2.carbon.core.util.ClusteringUtil.enableClustering(ClusteringUtil.java:38)
at
org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:174)
at
org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:285)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at

Re: [Dev] [MB] Error while starting MB 3.0.0 cluster setup

2015-05-20 Thread Amalka Subasinghe
attached broker.xml and master-datasources.xml files

On Wed, May 20, 2015 at 11:31 PM, Hemika Kodikara hem...@wso2.com wrote:

 Hi Amalka,

 Can you attach the broker.xml file and master-datasources.xml files ?

 Regards,
 Hemika

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762

 On Wed, May 20, 2015 at 10:54 PM, Amalka Subasinghe ama...@wso2.com
 wrote:

 I'm using M7 pack. but I have to create the databases manually.

 On Wed, May 20, 2015 at 10:51 PM, Indika Sampath indi...@wso2.com
 wrote:

 Hi Amalka,

 You don't need to externally run db script. Below set of tables created
 when you start MB 3.0.0 pack with -Dsetup option. Which milestone pack did
 you configure ?

 MB_BINDING
 MB_CONTENT
 MB_DURABLE_SUBSCRIPTION
 MB_EXCHANGE
 MB_EXPIRATION_DATA
 MB_METADATA
 MB_NODE
 MB_QUEUE
 MB_QUEUE_COUNTER
 MB_QUEUE_MAPPING

 Cheers!

 On Wed, May 20, 2015 at 10:14 PM, Amalka Subasinghe ama...@wso2.com
 wrote:

 Hi,

 I'm trying to setup MB cluster with 2 MB nodes. When I start the MB
 node with -Dsetup following error was thrown.
 Do I need to create tables manually for wso2_mb (MB store db)?

 2015-05-20 22:01:04,676] ERROR
 {org.wso2.andes.server.registry.ApplicationRegistry} -
 org.wso2.andes.kernel.AndesException: Error occurred while retrieving all
 queue information.
 Exception during startup: java.lang.Exception:
 org.wso2.andes.kernel.AndesException: Error occurred while retrieving all
 queue information.
 java.lang.Exception: org.wso2.andes.kernel.AndesException: Error
 occurred while retrieving all queue information.
 at
 org.wso2.andes.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:266)
 at
 org.wso2.andes.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:147)
 at org.wso2.andes.server.Broker.startupImpl(Broker.java:147)
 at org.wso2.andes.server.Broker.startup(Broker.java:108)
 at org.wso2.andes.server.Main.startBroker(Main.java:218)
 at org.wso2.andes.server.Main.execute(Main.java:207)
 at org.wso2.andes.server.Main.init(Main.java:48)
 at org.wso2.andes.server.Main.main(Main.java:41)
 at
 org.wso2.carbon.andes.internal.QpidServiceComponent.startAndesBroker(QpidServiceComponent.java:324)
 at
 org.wso2.carbon.andes.internal.QpidServiceComponent.setHazelcastInstance(QpidServiceComponent.java:226)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:432)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.dynamicBind(InstanceProcess.java:416)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:334)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:950)
 at
 org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent.init(HazelcastClusteringAgent.java:223)
 at
 org.wso2.carbon.core.util.ClusteringUtil.enableClustering(ClusteringUtil.java:38)
 at
 org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:174)
 at
 org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:285)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged

Re: [Dev] Integration test Error

2015-05-07 Thread Amalka Subasinghe
 in tranpsorts: transports
 transporthttps/transport
 /transports and which is/are not available in Axis2
 at
 org.apache.axis2.deployment.DeploymentEngine.loadServiceGroup(DeploymentEngine.java:1324)
 at
 org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.deployService(SampleAxis2Server.java:132)
 at
 org.wso2.carbon.automation.core.PlatformExecutionManager.startSimpleAxis2Server(PlatformExecutionManager.java:230)
 at
 org.wso2.carbon.automation.core.PlatformExecutionManager.startSevers(PlatformExecutionManager.java:190)
 at
 org.wso2.carbon.automation.core.PlatformExecutionManager.onExecutionStart(PlatformExecutionManager.java:76)
 at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
 at org.testng.TestNG.run(TestNG.java:983)
 at
 org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
 at
 org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
 at
 org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
 at
 org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
 at
 org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
 at
 org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
 at
 org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
 Caused by: org.apache.axis2.deployment.DeploymentException: Service
 [DataSourceAdmin] is trying expose in tranpsorts: transports
 transporthttps/transport
 /transports and which is/are not available in Axis2
 at
 org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:106)
 at
 org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:109)
 at
 org.apache.axis2.deployment.DeploymentEngine.loadServiceGroup(DeploymentEngine.java:1317)
 ... 18 more
 Caused by: org.apache.axis2.deployment.DeploymentException: Service
 [DataSourceAdmin] is trying expose in tranpsorts: transports
 transporthttps/transport
 /transports and which is/are not available in Axis2
 at
 org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:441)
 at
 org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:101)
 ... 20 more
 Caused by: org.apache.axis2.AxisFault: Service [DataSourceAdmin] is
 trying expose in tranpsorts: transports
 transporthttps/transport
 /transports and which is/are not available in Axis2
 at
 org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:353)
 ... 21 more
 org.apache.maven.surefire.util.SurefireReflectionException:
 java.lang.reflect.InvocationTargetException; nested exception is
 java.lang.reflect.InvocationTargetException: null
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
 at
 org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
 at
 org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
 at
 org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
 at
 org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
 Caused by: org.testng.TestNGException:




 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788
 Blog - https://shivabalachandran.wordpress.com/

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 --
 Chanaka Fernando
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 773337238
 Blog : http://soatutorials.blogspot.com
 LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
 Twitter:https://twitter.com/chanakaudaya
 Wordpress:http://chanakaudaya.wordpress.com





 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 

Amalka Subasinghe
Senior Software

Re: [Dev] Get User store domain name of logged in user

2015-05-06 Thread Amalka Subasinghe
You can get it from AbstractUserStoreManager.getMyDomainName()

Thanks
Amalka

On Wed, May 6, 2015 at 4:07 PM, Lakshani Gamage laksh...@wso2.com wrote:

 Hi all,
 I want to get user store domain name of logged in user. Can I get it from
 CarbonContext?

 Thank you.
 Regards,
 Lakshani


 --
 Lakshani Gamage

 *Software Engineer*
 Mobile : +94 (0) 71 5478184 %2B94%20%280%29%20773%20451194

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 

Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] JMS scenario automation

2015-05-06 Thread Amalka Subasinghe
Hi,

There are some JMS related integration tests in ESB project.
Did u follow those?

https://github.com/wso2/product-esb/tree/master/modules/integration/tests-integration/tests-sample/src/test/java/org/wso2/carbon/esb/samples/test/messaging

Thanks
Amalka

On Thu, May 7, 2015 at 9:13 AM, Prabath Ariyarathna prabat...@wso2.com
wrote:


 Looping to support dev

 On Thu, May 7, 2015 at 9:11 AM, Prabath Ariyarathna prabat...@wso2.com
 wrote:

 Looping to support dev


 On Tue, May 5, 2015 at 3:07 PM, Prabath Ariyarathna prabat...@wso2.com
 wrote:

 Hi Automation team

 I'm going to automate following scenario for the reported issue[1].
 Could you please verify whether this is possible with existing integration
 test suite capabilities.

 1. Start ESB  MB(ActiveMQ/Wso2 MB)
 2. Send Message
 3. Restart MB
 4. Start Backend service
 5. Get a received messages count by the backend service.

 [1] = *https://wso2.org/jira/browse/ESBJAVA-3670
 https://wso2.org/jira/browse/ESBJAVA-3670*


 Thanks.
 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com prabat...@wso2.com*

 *Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com/*

 *Flicker : https://www.flickr.com/photos/47759189@N08
 https://www.flickr.com/photos/47759189@N08*

 *Mobile: +94 77 699 4730 *






 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com prabat...@wso2.com*

 *Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com*

 *Flicker : https://www.flickr.com/photos/47759189@N08
 https://www.flickr.com/photos/47759189@N08*

 *Mobile: +94 77 699 4730 *








 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com prabat...@wso2.com*

 *Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com*

 *Flicker : https://www.flickr.com/photos/47759189@N08
 https://www.flickr.com/photos/47759189@N08*

 *Mobile: +94 77 699 4730 *








-- 

Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] JMS scenario automation

2015-05-06 Thread Amalka Subasinghe
Hi Prabath,

You can get the back end call count using tcpmon client
https://github.com/wso2/carbon-platform-integration/tree/master/test-automation-framework/org.wso2.carbon.automation.test.utils/src/main/java/org/wso2/carbon/automation/test/utils/tcpmon/client

There are some ESB samples you can find out how to use the tcpmon client in
tests

Amalka

On Thu, May 7, 2015 at 9:55 AM, Hemika Kodikara hem...@wso2.com wrote:

 Hi Prabath,

 You can restart a server as follows.

 ServerConfigurationManager  serverManager = new
 ServerConfigurationManager(automationContext);
 serverManager.restartGracefully();

 Have to send the appropriate automation context based on the WSO2 product
 mentioned in the automation.xml.

 Regards,
 Hemika

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762

 On Thu, May 7, 2015 at 9:51 AM, Dharshana Warusavitharana 
 dharsha...@wso2.com wrote:

 Hi Prabath,

 You can follow Nuwan's blog post on this. Please find blog on [1].

 [1].
 http://nuwanwimalasekara.blogspot.com/2013/05/how-to-write-wso2-esb-and-jms.html

 Thank you,
 Dharshana.

 On Thu, May 7, 2015 at 9:47 AM, Amalka Subasinghe ama...@wso2.com
 wrote:

 Hi,

 There are some JMS related integration tests in ESB project.
 Did u follow those?


 https://github.com/wso2/product-esb/tree/master/modules/integration/tests-integration/tests-sample/src/test/java/org/wso2/carbon/esb/samples/test/messaging

 Thanks
 Amalka

 On Thu, May 7, 2015 at 9:13 AM, Prabath Ariyarathna prabat...@wso2.com
 wrote:


 Looping to support dev

 On Thu, May 7, 2015 at 9:11 AM, Prabath Ariyarathna prabat...@wso2.com
  wrote:

 Looping to support dev


 On Tue, May 5, 2015 at 3:07 PM, Prabath Ariyarathna 
 prabat...@wso2.com wrote:

 Hi Automation team

 I'm going to automate following scenario for the reported issue[1].
 Could you please verify whether this is possible with existing 
 integration
 test suite capabilities.

 1. Start ESB  MB(ActiveMQ/Wso2 MB)
 2. Send Message
 3. Restart MB
 4. Start Backend service
 5. Get a received messages count by the backend service.

 [1] = *https://wso2.org/jira/browse/ESBJAVA-3670
 https://wso2.org/jira/browse/ESBJAVA-3670*


 Thanks.
 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com prabat...@wso2.com*

 *Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com/*

 *Flicker : https://www.flickr.com/photos/47759189@N08
 https://www.flickr.com/photos/47759189@N08*

 *Mobile: +94 77 699 4730 *






 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com prabat...@wso2.com*

 *Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com*

 *Flicker : https://www.flickr.com/photos/47759189@N08
 https://www.flickr.com/photos/47759189@N08*

 *Mobile: +94 77 699 4730 *








 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com prabat...@wso2.com*

 *Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com*

 *Flicker : https://www.flickr.com/photos/47759189@N08
 https://www.flickr.com/photos/47759189@N08*

 *Mobile: +94 77 699 4730 *








 --

 Amalka Subasinghe
 Senior Software Engineer
 WSO2 Inc.
 Mobile: +94 77 9401267




 --

 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





-- 

Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Set the FTP home to a different location except user home

2015-04-02 Thread Amalka Subasinghe
Hi,

Does anyone know how to do the $subject?

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Set the FTP home to a different location except user home

2015-04-02 Thread Amalka Subasinghe
Tried different articles but couldn't find a correct one

On Fri, Apr 3, 2015 at 9:17 AM, Amalka Subasinghe ama...@wso2.com wrote:

 Hi,

 Does anyone know how to do the $subject?

 Thanks
 Amalka




-- 

Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 App Factory 2.1.0 Released!

2015-03-16 Thread Amalka Subasinghe
WSO2 App Factory 2.1.0 Released!

WSO2 App Factory team is pleased to announce the general availability of
WSO2 App Factory 2.1.0.

WSO2 App Factory is a multi-tenant, elastic and self-service enterprise
platform that enables multiple project teams to collaboratively create, run
and manage enterprise applications. Combining complete application
lifecycle management and Platform-as-a-Service (PaaS) capabilities, WSO2
App Factory makes it possible to develop, test, deploy to production and
retire applications with a single click. It also provides an easy way to
discover and consume apps and APIs through a user-friendly storefront.

You can download this distribution from
http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/appfactory/wso2appfactory/2.1.0/wso2appfactory-2.1.0.zip

The online documentation is available at
https://docs.wso2.com/display/AF210/WSO2+App+Factory+Documentation

Source repository for App Factory can be found at
https://github.com/wso2/product-af/tree/wso2appfactory-2.1.0

Puppet manifests for App Factory can be found at
https://github.com/wso2/product-af/tree/wso2appfactory-2.1.0/modules/puppet-manifests

New Features  Improvements


   -

   BAM integration for user activity
   -

   Ability to warn the user when app type violating commit occur
   -

   Add new application types by adding an archive
   -

   Refactor all app types to be deployed by a single archive
   -

   Wall improvements
   -

   Moving run-time data from registry to database
   -

   Write a Authenticator in place of Mutual SSL
   -

   Use puppet for dev setup
   -

   Ability to add runtime externally
   -

   Custom URL improvements


All resolved Issues

   -

   WSO2 App Factory resolved issues
   
https://wso2.org/jira/issues/?jql=project%20%3D%20APPFAC%20AND%20fixVersion%20in%20%28%222.1.0%22%2C%20%222.1.0%20RC1%22%2C%20%222.1.0-M6%22%2C%20%222.1.0%20Alpha%22%2C%20%222.1.0%20Beta%22%2C%20%222.1.0-M7%22%29%20ORDER%20BY%20key%20DESC


Known Issues

   -

   WSO2 App Factory known issues
   
https://wso2.org/jira/issues/?jql=project%20%3D%20APPFAC%20AND%20issuetype%20%3D%20Bug%20AND%20affectedVersion%20%3D%20%222.1.0%20RC1%22%20AND%20status%20%3D%20Open%20ORDER%20BY%20priority%20DESC


How You Can Contribute


   -

   Mailing Lists

Join our mailing list and correspond with the developers directly.

Developer list : dev@wso2.org | Subscribe | Mail Archive
http://wso2.org/mailarchive/dev/

User forum : StackOverflow http://stackoverflow.com/questions/tagged/wso2


http://stackoverflow.com/questions/tagged/wso2

   -

   Reporting Issues

We encourage you to report issues, documentation faults and feature
requests regarding WSO2 App Factory or in the Carbon base framework through
the public WSO2 App Factory JIRA https://wso2.org/jira/browse/APPFAC or
Carbon JIRA http://www.wso2.org/jira/browse/CARBON.

Support

We are committed to ensuring that your enterprise middleware deployment is
completely supported from evaluation to production. Our unique approach
ensures that all support leverages our open development methodology and is
provided by the very same engineers who build the technology.

For more details and to take advantage of this unique opportunity
http://wso2.com/support/

For more information about WSO2 App Factory Server, please see
http://wso2.com/cloud/app-factory/.

Thank you for your interest in WSO2 App Factory.

-- The WSO2 App Factory Team --
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Announce] WSO2 App Factory 2.1.0 RC Released!

2015-03-12 Thread Amalka Subasinghe
WSO2 App Factory 2.1.0 RC Released!


WSO2 App Factory team is pleased to announce the release of version 2.1.0
RC of the WSO2 App Factory.


WSO2 App Factory is a multi-tenant, elastic and self-service enterprise
platform that enables multiple project teams to collaboratively create, run
and manage enterprise applications. Combining complete application
lifecycle management and Platform-as-a-Service (PaaS) capabilities, WSO2
App Factory makes it possible to develop, test, deploy to production and
retire applications with a single click. It also provides an easy way to
discover and consume apps and APIs through a user-friendly storefront.

The distribution is available to download at [1] .

Bug fixes in this release can be found at [2].

Source repository for App Factory can be found at [3].

Puppet manifests for App Factory can be found at [4].

We encourage you to report issues, documentation faults and feature
requests regarding WSO2 App Factory through the public WSO2 App Factory
JIRA [5].


[1]
https://svn.wso2.org/repos/wso2/scratch/appfactorycc_tags/2.1.0-RC/packs/wso2appfactory-2.1.0.zip

[2]
https://wso2.org/jira/issues/?jql=project%20%3D%20APPFAC%20AND%20fixVersion%20%3D%20%222.1.0%20RC1%22%20AND%20status%20%3D%20Resolved%20ORDER%20BY%20priority%20DESC

[3] https://github.com/wso2/product-af/tree/release-2.1.0

[4]
https://github.com/wso2/product-af/tree/release-2.1.0/modules/puppet-manifests

[5] https://wso2.org/jira/browse/APPFAC


-- The WSO2 App Factory Team --


-- 

Amalka Subasinghe

Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Aiyadurai Rajeevn

2015-02-25 Thread Amalka Subasinghe
Congrats Rajeevan :)

On Thu, Feb 26, 2015 at 10:08 AM, Rajeevan Vimalanathan rajeev...@wso2.com
wrote:

 Congrats Rajeevan...!!!

 On Thu, Feb 26, 2015 at 10:05 AM, Lahiru Cooray lahi...@wso2.com wrote:

 Congratz Rajeevan!!!

 On Thu, Feb 26, 2015 at 10:00 AM, Dimuthu Leelarathne dimut...@wso2.com
 wrote:


 Hi all,

 It is with great pleasure that WSO2 welcomes Aiyadurai Rajeevn as
 WSO2 committer!

 Congratulations!

 thanks,
 Dimuthu
 --
 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




 --
 *Lahiru Cooray*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 lean.enterprise.middleware

 Mobile: +94 715 654154

 ___
 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

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 

Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AF] Improve reading datasources in AF

2015-02-11 Thread Amalka Subasinghe
Hi,

The error specified in the Jira [1] has occurred while reading datasources
from App Servers.

I got AF logs from AF M6 installed production environment and when
analyzing, following error message was found. It seems like the error has
occurred due to app servers was being busy while reading datasources.

TID: [0] [AF] [2015-02-10 00:00:18,572]  INFO
{org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost to
url[https://appserver.dev.cloud.wso2.com/services/AppFactoryNDataSourceAdmin]
{org.apache.axis2.transport.http.HTTPSender}
java.net.SocketTimeoutException: Read timed out

 How to fix this?

- Reduce the number of times we do remote calls to load datasources.
Already done in M7.
- Eliminate the remote calls to the datasources. Can be down with two ways.
 1 - By storing datasoruces in governance registry - [2]
 2 - By storing in AF database

[1] https://wso2.org/jira/browse/APPFAC-2681
[2] https://wso2.org/jira/browse/WSAS-1895

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] User permission update for Runtime Configs

2015-02-10 Thread Amalka Subasinghe
the users who have create permissions, can delete resources

On Tue, Feb 10, 2015 at 4:38 PM, Sewmini Jayaweera sewm...@wso2.com wrote:

 Hi Amalka,

  How about delete permission?
 As I understand it should be only admin, application owner, developer can
 delete from development environment is it ?


 Thank You,
 Sewmini

 Sewmini Jayaweera
 *Software Engineer - QA Team*
 Mobile: +94 (0) 773 381 250
 sewm...@wso2.com

 On Tue, Feb 10, 2015 at 12:05 PM, Chathurika De Silva 
 chathuri...@wso2.com wrote:

 Hi

 One QA resource will be unavailable on 12th and 13th. So there will be a
 deviation around one day to the original estimate of one week because only
 one resource will be working on the above mentioned two days.

 Thank You
 Erandi

 On Tue, Feb 10, 2015 at 11:39 AM, Dimuthu Leelarathne dimut...@wso2.com
 wrote:

 Hi,

 We'll give a new setup tomorrow morning. Meanwhile please cover the
 breath in other areas that have not changed.

 thanks,
 dimuthu

 On Tue, Feb 10, 2015 at 11:20 AM, Chathurika De Silva 
 chathuri...@wso2.com wrote:

 Hi All

 Considering the above changes and the bug fixes that will be
 incorporated in the latest pack, there should be a new qa cycle on the
 latest pack. While considering the amount of test cases we have as well as
 the available qa resources (#2) it will take around one week to complete
 the test cycle after the pack release date.

 Thank You
 Erandi

 On Tue, Feb 10, 2015 at 11:18 AM, Manjula Rathnayake manju...@wso2.com
  wrote:

 Hi all,

 Please note that only change with respect to existing permission model
 is that, appOwner is not allowed to create runtime configs in Testing and
 Production stages. Configs will be copied at the time of
 promotion/deployment of application in Testing and Production stages.

 However, the permissions related to databases will not be changed from
 existing model where each stake holders of runtime environments are 
 allowed
 to create databases in their environments. eg. QA can create databases on
 Testing but not in Production.

 thank you.


 On Tue, Feb 10, 2015 at 11:04 AM, Amalka Subasinghe ama...@wso2.com
 wrote:

 Hi All,

 I'm going to do the following changes to the runtime configs
 (datasources, properties, external apis)

 - Create/update/read permissions will be as shown in the table after
 this fix.

 - The tenant admin also have similar permissions as appowner; he can
 only create in development stage and then resources will be propagated to
 the testing and production environments via promoting.
 So, create resources in all environments checkbox, is not valid
 anymore, I'm removing it.




 development testing production
  appowner create x



 update x x x

 read x x x






  dev create x



 update x



 read x x







  qa create




 update
 x


 read x x







  devops create




 update

 x

 read
 x x






  admin create x



 update x x x

 read x x x

 Thanks
 Amalka


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Manjula Rathnayaka
 Software Engineer
 WSO2, Inc.
 Mobile:+94 77 743 1987




 --
 *Chathurika Erandi*
 Software Engineer,
 WSO2 Inc.

 *E-mail:* chathuri...@wso2.com
 *Mobile: *+94714 328 612
 *Blog*: chathurikaerandi.blogspot.com




 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware




 --
 *Chathurika Erandi*
 Software Engineer,
 WSO2 Inc.

 *E-mail:* chathuri...@wso2.com
 *Mobile: *+94714 328 612
 *Blog*: chathurikaerandi.blogspot.com





-- 

Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AF] User permission update for Runtime Configs

2015-02-09 Thread Amalka Subasinghe
Hi All,

I'm going to do the following changes to the runtime configs (datasources,
properties, external apis)

- Create/update/read permissions will be as shown in the table after this
fix.

- The tenant admin also have similar permissions as appowner; he can only
create in development stage and then resources will be propagated to the
testing and production environments via promoting.
So, create resources in all environments checkbox, is not valid anymore,
I'm removing it.




development testing production
 appowner create x



update x x x

read x x x






 dev create x



update x



read x x







 qa create




update
x


read x x







 devops create




update

x

read
x x






 admin create x



update x x x

read x x x

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS][APIM] - Installing Key Manager feature resets the registry mounting data sources entries

2015-01-29 Thread Amalka Subasinghe
[1] says

*Warning*: Installing this feature will result in changes to some of the
configuration files in Identity Server. The
IS_HOME/repository/conf/identity.xml file and the
IS_HOME/repository/conf/datasources/master-datasouces.xml file will lose
their current configurations.

[1]
https://docs.wso2.com/display/CLUSTER420/Configuring+WSO2+Identity+Server+as+the+Key+Manager



On Thu, Jan 29, 2015 at 3:34 PM, Chamila De Alwis chami...@wso2.com wrote:

 Hi,

 I have a cluster of two IS nodes (5.0.0), with registry mounting
 configured. In the worked node, I installed the Key Manager features
 (1.8.0) and restarted the server. This resulted in the
 repository/conf/datasources/master-datasources.xml being replaced with a
 fresh configuration, removing the data source configurations for mounted
 registry.

 Is this an expected behavior?

 Regards,
 Chamila de Alwis
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 

Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Generating code coverage report for AF integration tests

2015-01-22 Thread Amalka Subasinghe
On Fri, Jan 16, 2015 at 1:48 PM, Amalka Subasinghe ama...@wso2.com wrote:

 *Steps to generate the code coverage report for AF*
 [NOTE: did all the steps using afpuppet user]

 1. Create a folder [eg: emma]

 2. Copy the following files to the emma folder
 - emma.jar
 - jarlist file (create a file which contains the appfactory jars we want
 to use in code coverage) see the attachment

 3. Stop the appfactory

 4. Execute the following command to instrument the jars, it will create
 coverage.em file in the emma folder
 java -cp emma.jar emma instr -m overwrite -cp @jarlist

 5. Copy emma.jar file to the APPFACTORY_HOME/repository/component/lib

 6. Start the appfactory and run the tests

 7. Stop the appfactory (now you can see the coverage.ec file in the emma
 folder)

 8. Generate the report executing following command
 java -cp emma.jar emma report -r html -in coverage.em -in coverage.ec

 Now you can find the coverage at emma/coverage/index.html

 Thanks
 Amalka





 On Wed, Jan 14, 2015 at 12:17 PM, Amalka Subasinghe ama...@wso2.com
 wrote:

 Hi all,

 Currently I'm trying to $subject. Since AF integration tests runs in
 platform mode, we can't generate code coverage report via our existing test
 framework.

 I found a blog we can use for this. [1]
 as specified in the blog when I execute the xargs -n 1
 $JAVA_HOME/jre/bin/java -cp emma.jar emma instr -m overwrite -cp 
 jarlist.txt.
 It changes file permissions on appfactory jars, because of that I can't
 up the appfactory setup to run the tests.

 Does anyone have ideas on how to do this?

 [1]
 http://charithaka.blogspot.com/2009/05/run-time-code-coverage-using-emma.html

 Thanks
 Amalka




___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AF] Problem in login to API manager via REST client in AF Setup

2015-01-21 Thread Amalka Subasinghe
Hi,

Since the SSO enabled in AF setup, we can't login to Publisher portal via a
REST client.

I want to login to publisher portal and create a new API via an integration
test, any idea of doing this?

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Generating code coverage report for AF integration tests

2015-01-16 Thread Amalka Subasinghe
Here i'm giving required list of jars using jarlist file (I have attached
the file).. In that case, do I still need to specify the filter.txt?

On Fri, Jan 16, 2015 at 2:18 PM, Dharshana Warusavitharana 
dharsha...@wso2.com wrote:

 Hi Amalka,

 In this case there are some jars you need to avoid from instrumenting as
 example all equinox jars. To take coverage in certain product you need only
 to instrument jars which are related to particular product.

 In Instrumentation EMMA what happens is it updates a metatag in jar so it
 changes MD5 sum and some times default permisions of jars.

 Use following filters in filter.txt to eliminate unwated jars form
 instrumenting

 -*.stub*-*.stub_-*.stub_4.0.0-*.stub--org.eclipse.*-*.equinox.*
 -org.wso2.carbon.user.core.*-samples.*-*.log4j*-*.axis2*-*.ui*-*.tenant*
 -*.stratos*-*.eventing*-*transports*-org.wso2.carbon.mediation.statistics*
 -*startup*

 Thank You,
 Dharshana.

 On Wed, Jan 14, 2015 at 12:17 PM, Amalka Subasinghe ama...@wso2.com
 wrote:

 Hi all,

 Currently I'm trying to $subject. Since AF integration tests runs in
 platform mode, we can't generate code coverage report via our existing test
 framework.

 I found a blog we can use for this. [1]
 as specified in the blog when I execute the xargs -n 1
 $JAVA_HOME/jre/bin/java -cp emma.jar emma instr -m overwrite -cp 
 jarlist.txt.
 It changes file permissions on appfactory jars, because of that I can't
 up the appfactory setup to run the tests.

 Does anyone have ideas on how to do this?

 [1]
 http://charithaka.blogspot.com/2009/05/run-time-code-coverage-using-emma.html

 Thanks
 Amalka


 ___
 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




-- 

Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Generating code coverage report for AF integration tests

2015-01-13 Thread Amalka Subasinghe
Hi all,

Currently I'm trying to $subject. Since AF integration tests runs in
platform mode, we can't generate code coverage report via our existing test
framework.

I found a blog we can use for this. [1]
as specified in the blog when I execute the xargs -n 1
$JAVA_HOME/jre/bin/java -cp emma.jar emma instr -m overwrite -cp 
jarlist.txt.
It changes file permissions on appfactory jars, because of that I can't up
the appfactory setup to run the tests.

Does anyone have ideas on how to do this?

[1]
http://charithaka.blogspot.com/2009/05/run-time-code-coverage-using-emma.html

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Retrieving correlation Id of JMS message in ESB always return null

2014-12-16 Thread Amalka Subasinghe
Hi,

$subject. Is there anything missing?

proxy name=test
  transports=https http jms
  startOnLoad=true
  trace=disable
  description/
  target
 inSequence
log level=custom
   property name=corelationId
expression=get-property('transport', 'JMS_COORELATION_ID')/
/log
 /insequence
  /target
/proxy

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ELB Comparisons

2014-11-30 Thread Amalka Subasinghe
Hi,

I didn't do any load balancer comparison.
What I did finding how to configure different load balancers with our
product clusters.

Thanks
Amalka

On Mon, Dec 1, 2014 at 10:37 AM, Aruna Karunarathna ar...@wso2.com wrote:

 AFAIR Amalka did something similar. :)


 Regards,
 Aruna

 On Mon, Dec 1, 2014 at 10:29 AM, Shiva Balachandran sh...@wso2.com
 wrote:

 Hi All,

 Is there a document making comparisons of ELBs? Like a chart comparing
 the ELBs available? I'm looking for a comparison between WSO2 ELB  and
 NGIX, AWS ELB.

 I found a document on WSO2 ELB and other open source products [1].

 [1] -
 http://wso2.com/library/articles/2014/03/wso2-elb-vs-other-open-source-load-balancers/

 Regards

 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com





-- 

Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ELB Comparisons

2014-11-30 Thread Amalka Subasinghe
https://docs.wso2.com/display/CLUSTER420/Clustering+WSO2+Products+without+WSO2+ELB

On Mon, Dec 1, 2014 at 11:18 AM, Shiva Balachandran sh...@wso2.com wrote:

 Hi Amalka,

 Could you please share documents too.

 Thank you

 Regards
 Shiva Balachandran

 On Mon, Dec 1, 2014 at 10:45 AM, Amalka Subasinghe ama...@wso2.com
 wrote:

 Hi,

 I didn't do any load balancer comparison.
 What I did finding how to configure different load balancers with our
 product clusters.

 Thanks
 Amalka

 On Mon, Dec 1, 2014 at 10:37 AM, Aruna Karunarathna ar...@wso2.com
 wrote:

 AFAIR Amalka did something similar. :)


 Regards,
 Aruna

 On Mon, Dec 1, 2014 at 10:29 AM, Shiva Balachandran sh...@wso2.com
 wrote:

 Hi All,

 Is there a document making comparisons of ELBs? Like a chart comparing
 the ELBs available? I'm looking for a comparison between WSO2 ELB  and
 NGIX, AWS ELB.

 I found a document on WSO2 ELB and other open source products [1].

 [1] -
 http://wso2.com/library/articles/2014/03/wso2-elb-vs-other-open-source-load-balancers/

 Regards

 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com





 --

 Amalka Subasinghe

 WSO2 Inc.
 Mobile: +94 77 9401267




 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788




-- 

Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APP Factory] loading resource page from App Factory Database

2014-10-16 Thread Amalka Subasinghe
OK then, I will do the page layout changes without loading data

On Thu, Oct 16, 2014 at 4:54 PM, Danushka Fernando danush...@wso2.com
wrote:

 If we save these data in AF DB there will be data duplication. Since
 registry team is working on the mounting issue we had IMO we can wait for
 that fix.

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Thu, Oct 16, 2014 at 4:43 PM, Amalka Subasinghe ama...@wso2.com
 wrote:

 Hi,

 Issue [1] says to load the resource page from App Factory DB.
 is that mean, we need to save the basic data (resource_name, type,
 environment, description) related to resources (datasources, external api,
 enterprise api, properties) in App Fac DB?

 [1] https://wso2.org/jira/browse/APPFAC-2170

 Thanks
 Amalka


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev





-- 

Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APP Factory] What is the best way to load the database information to the DataBases landing page?

2014-10-15 Thread Amalka Subasinghe
Hi,

I have developed the new Databases landing page as follows


​

Here, except Database Type I can get all other information from App Factory
DB.

Is there a way to get the Database Type except getting it via RSSAdmin?

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APP Factory] What is the best way to load the database information to the DataBases landing page?

2014-10-15 Thread Amalka Subasinghe
OR is there a specific requirement to show the Database Type here?
if not, we can get rid of this RSSAdmin backend call

On Wed, Oct 15, 2014 at 12:41 PM, Amalka Subasinghe ama...@wso2.com wrote:

 Hi,

 I have developed the new Databases landing page as follows


 ​

 Here, except Database Type I can get all other information from App
 Factory DB.

 Is there a way to get the Database Type except getting it via RSSAdmin?

 Thanks
 Amalka




-- 

Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [SS] Is there a way to get the value of DbmsType via RSSAdmin?

2014-10-14 Thread Amalka Subasinghe
Hi,

Appreciate your help on $subject.

 Environment
NameTesting/Name
RSSInstances
RSSInstance
NameTesting/Name
InstanceTypeSYSTEM/InstanceType
*DbmsTypeMYSQL/DbmsType*
ServerCategoryLOCAL/ServerCategory
DataSourceConfiguration
Definition
Urljdbc:mysql://
mysql.appfactory.private.wso2.com:3306/Url
Usernameroot/Username
Passwordroot/Password

DriverClassNamecom.mysql.jdbc.Driver/DriverClassName
/Definition
/DataSourceConfiguration
/RSSInstance
/RSSInstances
 /Environment

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] APPFAC-2170 - Remove multiple backend calls that happens when loading resource overview page

2014-10-13 Thread Amalka Subasinghe
Hi,

Following are the sub tasks I'm planning to do here:

1. Move databases page to new tab
2. Update Resource - overview page
3. Update Resource - properties page

[1] https://wso2.org/jira/browse/APPFAC-2170

Thanks
Amalka

-- 

Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to run integration tests in App Factory

2014-10-08 Thread Amalka Subasinghe
Hi,

Test location: [1]

I have skipped running integration tests from regular builds making
skipPlatformTests = true in [2].


When you want to execute the tests; either you can

a. change the property skipPlatformTestsfalseskipPlatformTests in [2]
and then execute the command mvn clean install

OR

b. execute the command mvn clean install -DskipPlatformTests=false

[1]
https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/products/appfactory/2.1.0/modules/integration/
[2]
https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/products/appfactory/2.1.0/modules/integration/tests-integration/tests-scenarios/pom.xml


Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   >