[Dev] login with multiple user stores

2016-10-05 Thread Ishara Karunarathna
Hi All,

While going through Apachi Shiro Noticed that it support for login with
multiple realms and
providing a unified view of a user [1].
This is some thing similar to our domain model where user exist in multiple
identity stores and credential stores with C5

Better to have a look on this when we model our C5 API

Thanks,
Ishara
[1] http://shiro.apache.org/authentication-features.html

-- 
Ishara Karunarathna
Associate Technical Lead
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
+94717996791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Latency in Deployment Synchronizer

2016-10-05 Thread Fathima Dilhasha
Thanks Thilini. I will go through the webinar.

On Thu, Oct 6, 2016 at 10:13 AM, Thilini Cooray  wrote:

> Hi Fathima,
>
> The delay in committing to svn can be caused by network latency.
> Have you specifically defined a checkout time period in your worker nodes?
>
> [1] is the webinar which clearly explains about the Dep-Sync mechanism.
>
> Hope it will give you an idea about the dep-sync behvior.
>
> [1] http://wso2.com/library/webinars/2012/10/enterprise-
> use-case-webinar-wso2-depsync-data-synchronization-between-nodes-cluster/
>
> Thanks.
>
> On Thu, Oct 6, 2016 at 10:02 AM, Fathima Dilhasha 
> wrote:
>
>> I have a cluster with two nodes of WSO2 API Manager 1.10.0 with the
>> following configurations for DeploymentSynchronizer.
>> (Note that both the nodes are capable of committing.)
>>
>>  120
>> 
>>   
>>   true
>>   true
>>   true
>>  ...
>>   
>>
>> I had the following observations when changing files at the path
>> "APIM/repository/tenants//.."
>>
>> When I change a file within a folder in above path at 1 node,
>> there is a latency of about 8mins until the change is committed to svn
>> repo. (Note that update interval is only 2mins)
>>
>> I am not very clear about why there is a latency more than expected? Can
>> this be due to added network latency?
>>
>> I would appreciate if you can point me to any documentation with details
>> about the internals of depSync.
>>
>> I have referred to [1]
>>
>> [1] https://docs.wso2.com/display/CLUSTER420/Introduction+
>> to+Deployment+Synchronizer
>>
>> Thanks & Regards,
>> Dilhasha
>>
>> --
>> Fathima Dilhasha
>> *Software Engineer*
>> Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
>> <%2B94%20%280%29%20773%20451194>
>> dilha...@wso2.com 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards,
>
> *Thilini Cooray*
> Software Engineer
> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20774%20570112>
> E-mail : thili...@wso2.com
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>



-- 
Fathima Dilhasha
*Software Engineer*
Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
<%2B94%20%280%29%20773%20451194>
dilha...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Latency in Deployment Synchronizer

2016-10-05 Thread Thilini Cooray
Hi Fathima,

The delay in committing to svn can be caused by network latency.
Have you specifically defined a checkout time period in your worker nodes?

[1] is the webinar which clearly explains about the Dep-Sync mechanism.

Hope it will give you an idea about the dep-sync behvior.

[1]
http://wso2.com/library/webinars/2012/10/enterprise-use-case-webinar-wso2-depsync-data-synchronization-between-nodes-cluster/

Thanks.

On Thu, Oct 6, 2016 at 10:02 AM, Fathima Dilhasha  wrote:

> I have a cluster with two nodes of WSO2 API Manager 1.10.0 with the
> following configurations for DeploymentSynchronizer.
> (Note that both the nodes are capable of committing.)
>
>  120
> 
>   
>   true
>   true
>   true
>  ...
>   
>
> I had the following observations when changing files at the path
> "APIM/repository/tenants//.."
>
> When I change a file within a folder in above path at 1 node,
> there is a latency of about 8mins until the change is committed to svn
> repo. (Note that update interval is only 2mins)
>
> I am not very clear about why there is a latency more than expected? Can
> this be due to added network latency?
>
> I would appreciate if you can point me to any documentation with details
> about the internals of depSync.
>
> I have referred to [1]
>
> [1] https://docs.wso2.com/display/CLUSTER420/Introduction+to+Deployment+
> Synchronizer
>
> Thanks & Regards,
> Dilhasha
>
> --
> Fathima Dilhasha
> *Software Engineer*
> Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
> <%2B94%20%280%29%20773%20451194>
> dilha...@wso2.com 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards,

*Thilini Cooray*
Software Engineer
Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20774%20570112>
E-mail : thili...@wso2.com

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error in deploying throttling policies from API Manager 2.0 [API Manager]

2016-10-05 Thread Mohanadarshan Vivekanandalingam
On Thu, Oct 6, 2016 at 10:07 AM, Thilini Cooray  wrote:

> Hi Nadeesha,
>
> Are you still getting the Illegal char error in Windows with Java 1.8 ?
> I encountered this issue while trying to add an event receiver from APIM
> 2.0.0 Management console UI and it got fixed after running on Java 1.8.
>
> My case the error popped out from CarbonEventReceiverService and not from
> ThrottlePolicyDeploymentManager and it got solved.
>
> @Mohan : I think there are many places which needs to be addressed if we
> are going for a fix.
>

Yes, we have tested in Windows OS and with multiple jdk combinations and it
worked fine. But, I believe there needs to be combination of OS bit version
and jdk version which we need to explore further..

@Thilini, fix needs to be done nearly in 5 components in that case..

Thanks,
Mohan



>
> Thanks.
>
> On Thu, Oct 6, 2016 at 9:44 AM, Nadeesha Gamage  wrote:
>
>> Hi Mohan,
>> I tried with jdk1.8.0_101 but the issue still exist so I dont think its
>> an issue that would be fixed by JDK version update.
>>
>> Thank you,
>> Nadeesha
>>
>> On Wed, Oct 5, 2016 at 10:56 AM, Nadeesha Gamage 
>> wrote:
>>
>>> Ok, will try and update the thread.
>>>
>>> Thank you,
>>> Nadeesha
>>>
>>> On Wed, Oct 5, 2016 at 10:48 AM, Mohanadarshan Vivekanandalingam <
>>> mo...@wso2.com> wrote:
>>>
 Hi Nadeesha,

 Thilini has done a test on this sometime back with jdk 1.8.0_73 and
 works fine.. If you don't mind can you please try with this version (or
 higher version) ?..

 Thanks,
 Mohan


 On Wed, Oct 5, 2016 at 10:27 AM, Nadeesha Gamage 
 wrote:

> Hi Mohan,
> It still gives the same issue on jdk1.8.0_65.
>
> Thank you,
> Nadeesha
>
> On Wed, Oct 5, 2016 at 10:25 AM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>> Hi Nadeesha,
>>
>> It is a known issue that we have seen in some windows version (with
>> combine with specific jdk). It is already fixed in latest components and
>> current APIM source code is depend on those components..  See related
>> references below..
>>
>> But again, as per our previous tests above issue cannot be reproduced
>> in JDK 1.8.0.. What is the minor version of the jdk 1.8 that you tried?
>>
>> [1] https://wso2.org/jira/browse/DAS-470
>>
>> [2] https://wso2.org/jira/browse/DAS-467
>>
>> Thanks,
>> Mohan
>>
>>
>>
>>
>> On Wed, Oct 5, 2016 at 10:20 AM, Nadeesha Gamage 
>> wrote:
>>
>>> Hi Rukshan,
>>> No Siddhi file is created in mentioned directory.
>>>
>>> Thank you,
>>> Nadeesha
>>>
>>> On Wed, Oct 5, 2016 at 10:03 AM, Rukshan Premathunga <
>>> ruks...@wso2.com> wrote:
>>>
 Hi Nadeeshan,

 I think you try to deploy policy using admin UI. So can you check
 the repository/deployment/server/executionplans directory and see
 created *.siddhiql file contain any invalid characters?

 Thanks and Regards

 On Wed, Oct 5, 2016 at 9:55 AM, Nadeesha Gamage 
 wrote:

> Hi Devs,
> I am having an issue in deploying a new API throttling policy in
> API M 2.0. The issue is described in the ticket below
>
> https://wso2.org/jira/browse/APIMANAGER-5415
>
>
> Error log is given below
>
> [2016-10-05 09:49:26,237] ERROR - ThrottlePolicyDeploymentManager
> Error while deploying policy to global policy server.Illegal char <:> 
> at
> index 2: /D:/APIM-D~1/API_M_2.0/WSO2AM~
> 1.0/bin/../repository/deployment/server/\executionplans
>
>
> I am using a *Windows OS* and this error occurs with both *Java
> 1.7 and 1.8*.
>
> Thank you,
> --
> Nadeesha Gamage
> Associate Technical Lead - Solutions Engineering
> T : +94 77 394 5706
> B : https://nadeesha678.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Rukshan Chathuranga.
 Software Engineer.
 WSO2, Inc.

>>>
>>>
>>>
>>> --
>>> Nadeesha Gamage
>>> Associate Technical Lead - Solutions Engineering
>>> T : +94 77 394 5706
>>> B : https://nadeesha678.wordpress.com/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *V. Mohanadarshan*
>> *Associate Tech Lead,*
>> *Data Technologies Team,*
>> *WSO2, Inc. http://wso2.com 

Re: [Dev] Error in deploying throttling policies from API Manager 2.0 [API Manager]

2016-10-05 Thread Thilini Cooray
Hi Nadeesha,

Are you still getting the Illegal char error in Windows with Java 1.8 ?
I encountered this issue while trying to add an event receiver from APIM
2.0.0 Management console UI and it got fixed after running on Java 1.8.

My case the error popped out from CarbonEventReceiverService and not from
ThrottlePolicyDeploymentManager and it got solved.

@Mohan : I think there are many places which needs to be addressed if we
are going for a fix.

Thanks.

On Thu, Oct 6, 2016 at 9:44 AM, Nadeesha Gamage  wrote:

> Hi Mohan,
> I tried with jdk1.8.0_101 but the issue still exist so I dont think its an
> issue that would be fixed by JDK version update.
>
> Thank you,
> Nadeesha
>
> On Wed, Oct 5, 2016 at 10:56 AM, Nadeesha Gamage 
> wrote:
>
>> Ok, will try and update the thread.
>>
>> Thank you,
>> Nadeesha
>>
>> On Wed, Oct 5, 2016 at 10:48 AM, Mohanadarshan Vivekanandalingam <
>> mo...@wso2.com> wrote:
>>
>>> Hi Nadeesha,
>>>
>>> Thilini has done a test on this sometime back with jdk 1.8.0_73 and
>>> works fine.. If you don't mind can you please try with this version (or
>>> higher version) ?..
>>>
>>> Thanks,
>>> Mohan
>>>
>>>
>>> On Wed, Oct 5, 2016 at 10:27 AM, Nadeesha Gamage 
>>> wrote:
>>>
 Hi Mohan,
 It still gives the same issue on jdk1.8.0_65.

 Thank you,
 Nadeesha

 On Wed, Oct 5, 2016 at 10:25 AM, Mohanadarshan Vivekanandalingam <
 mo...@wso2.com> wrote:

> Hi Nadeesha,
>
> It is a known issue that we have seen in some windows version (with
> combine with specific jdk). It is already fixed in latest components and
> current APIM source code is depend on those components..  See related
> references below..
>
> But again, as per our previous tests above issue cannot be reproduced
> in JDK 1.8.0.. What is the minor version of the jdk 1.8 that you tried?
>
> [1] https://wso2.org/jira/browse/DAS-470
>
> [2] https://wso2.org/jira/browse/DAS-467
>
> Thanks,
> Mohan
>
>
>
>
> On Wed, Oct 5, 2016 at 10:20 AM, Nadeesha Gamage 
> wrote:
>
>> Hi Rukshan,
>> No Siddhi file is created in mentioned directory.
>>
>> Thank you,
>> Nadeesha
>>
>> On Wed, Oct 5, 2016 at 10:03 AM, Rukshan Premathunga <
>> ruks...@wso2.com> wrote:
>>
>>> Hi Nadeeshan,
>>>
>>> I think you try to deploy policy using admin UI. So can you check
>>> the repository/deployment/server/executionplans directory and see
>>> created *.siddhiql file contain any invalid characters?
>>>
>>> Thanks and Regards
>>>
>>> On Wed, Oct 5, 2016 at 9:55 AM, Nadeesha Gamage 
>>> wrote:
>>>
 Hi Devs,
 I am having an issue in deploying a new API throttling policy in
 API M 2.0. The issue is described in the ticket below

 https://wso2.org/jira/browse/APIMANAGER-5415


 Error log is given below

 [2016-10-05 09:49:26,237] ERROR - ThrottlePolicyDeploymentManager
 Error while deploying policy to global policy server.Illegal char <:> 
 at
 index 2: /D:/APIM-D~1/API_M_2.0/WSO2AM~
 1.0/bin/../repository/deployment/server/\executionplans


 I am using a *Windows OS* and this error occurs with both *Java
 1.7 and 1.8*.

 Thank you,
 --
 Nadeesha Gamage
 Associate Technical Lead - Solutions Engineering
 T : +94 77 394 5706
 B : https://nadeesha678.wordpress.com/

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


>>>
>>>
>>> --
>>> Rukshan Chathuranga.
>>> Software Engineer.
>>> WSO2, Inc.
>>>
>>
>>
>>
>> --
>> Nadeesha Gamage
>> Associate Technical Lead - Solutions Engineering
>> T : +94 77 394 5706
>> B : https://nadeesha678.wordpress.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *V. Mohanadarshan*
> *Associate Tech Lead,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>



 --
 Nadeesha Gamage
 Associate Technical Lead - Solutions Engineering
 T : +94 77 394 5706
 B : https://nadeesha678.wordpress.com/

>>>
>>>
>>>
>>> --
>>> *V. Mohanadarshan*
>>> *Associate Tech Lead,*
>>> *Data Technologies Team,*
>>> *WSO2, Inc. http://wso2.com  *
>>> *lean.enterprise.middleware.*
>>>
>>> email: mo...@wso2.com
>>> phone:(+94) 771117673
>>>
>>

[Dev] Latency in Deployment Synchronizer

2016-10-05 Thread Fathima Dilhasha
I have a cluster with two nodes of WSO2 API Manager 1.10.0 with the
following configurations for DeploymentSynchronizer.
(Note that both the nodes are capable of committing.)

 120

  
  true
  true
  true
 ...
  

I had the following observations when changing files at the path
"APIM/repository/tenants//.."

When I change a file within a folder in above path at 1 node,
there is a latency of about 8mins until the change is committed to svn
repo. (Note that update interval is only 2mins)

I am not very clear about why there is a latency more than expected? Can
this be due to added network latency?

I would appreciate if you can point me to any documentation with details
about the internals of depSync.

I have referred to [1]

[1]
https://docs.wso2.com/display/CLUSTER420/Introduction+to+Deployment+Synchronizer

Thanks & Regards,
Dilhasha

-- 
Fathima Dilhasha
*Software Engineer*
Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
<%2B94%20%280%29%20773%20451194>
dilha...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error in deploying throttling policies from API Manager 2.0 [API Manager]

2016-10-05 Thread Mohanadarshan Vivekanandalingam
On Thu, Oct 6, 2016 at 9:44 AM, Nadeesha Gamage  wrote:

> Hi Mohan,
> I tried with jdk1.8.0_101 but the issue still exist so I dont think its an
> issue that would be fixed by JDK version update.
>

OK, then we need a code level fix..


>
> Thank you,
> Nadeesha
>
> On Wed, Oct 5, 2016 at 10:56 AM, Nadeesha Gamage 
> wrote:
>
>> Ok, will try and update the thread.
>>
>> Thank you,
>> Nadeesha
>>
>> On Wed, Oct 5, 2016 at 10:48 AM, Mohanadarshan Vivekanandalingam <
>> mo...@wso2.com> wrote:
>>
>>> Hi Nadeesha,
>>>
>>> Thilini has done a test on this sometime back with jdk 1.8.0_73 and
>>> works fine.. If you don't mind can you please try with this version (or
>>> higher version) ?..
>>>
>>> Thanks,
>>> Mohan
>>>
>>>
>>> On Wed, Oct 5, 2016 at 10:27 AM, Nadeesha Gamage 
>>> wrote:
>>>
 Hi Mohan,
 It still gives the same issue on jdk1.8.0_65.

 Thank you,
 Nadeesha

 On Wed, Oct 5, 2016 at 10:25 AM, Mohanadarshan Vivekanandalingam <
 mo...@wso2.com> wrote:

> Hi Nadeesha,
>
> It is a known issue that we have seen in some windows version (with
> combine with specific jdk). It is already fixed in latest components and
> current APIM source code is depend on those components..  See related
> references below..
>
> But again, as per our previous tests above issue cannot be reproduced
> in JDK 1.8.0.. What is the minor version of the jdk 1.8 that you tried?
>
> [1] https://wso2.org/jira/browse/DAS-470
>
> [2] https://wso2.org/jira/browse/DAS-467
>
> Thanks,
> Mohan
>
>
>
>
> On Wed, Oct 5, 2016 at 10:20 AM, Nadeesha Gamage 
> wrote:
>
>> Hi Rukshan,
>> No Siddhi file is created in mentioned directory.
>>
>> Thank you,
>> Nadeesha
>>
>> On Wed, Oct 5, 2016 at 10:03 AM, Rukshan Premathunga <
>> ruks...@wso2.com> wrote:
>>
>>> Hi Nadeeshan,
>>>
>>> I think you try to deploy policy using admin UI. So can you check
>>> the repository/deployment/server/executionplans directory and see
>>> created *.siddhiql file contain any invalid characters?
>>>
>>> Thanks and Regards
>>>
>>> On Wed, Oct 5, 2016 at 9:55 AM, Nadeesha Gamage 
>>> wrote:
>>>
 Hi Devs,
 I am having an issue in deploying a new API throttling policy in
 API M 2.0. The issue is described in the ticket below

 https://wso2.org/jira/browse/APIMANAGER-5415


 Error log is given below

 [2016-10-05 09:49:26,237] ERROR - ThrottlePolicyDeploymentManager
 Error while deploying policy to global policy server.Illegal char <:> 
 at
 index 2: /D:/APIM-D~1/API_M_2.0/WSO2AM~
 1.0/bin/../repository/deployment/server/\executionplans


 I am using a *Windows OS* and this error occurs with both *Java
 1.7 and 1.8*.

 Thank you,
 --
 Nadeesha Gamage
 Associate Technical Lead - Solutions Engineering
 T : +94 77 394 5706
 B : https://nadeesha678.wordpress.com/

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


>>>
>>>
>>> --
>>> Rukshan Chathuranga.
>>> Software Engineer.
>>> WSO2, Inc.
>>>
>>
>>
>>
>> --
>> Nadeesha Gamage
>> Associate Technical Lead - Solutions Engineering
>> T : +94 77 394 5706
>> B : https://nadeesha678.wordpress.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *V. Mohanadarshan*
> *Associate Tech Lead,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>



 --
 Nadeesha Gamage
 Associate Technical Lead - Solutions Engineering
 T : +94 77 394 5706
 B : https://nadeesha678.wordpress.com/

>>>
>>>
>>>
>>> --
>>> *V. Mohanadarshan*
>>> *Associate Tech Lead,*
>>> *Data Technologies Team,*
>>> *WSO2, Inc. http://wso2.com  *
>>> *lean.enterprise.middleware.*
>>>
>>> email: mo...@wso2.com
>>> phone:(+94) 771117673
>>>
>>
>>
>>
>> --
>> Nadeesha Gamage
>> Associate Technical Lead - Solutions Engineering
>> T : +94 77 394 5706
>> B : https://nadeesha678.wordpress.com/
>>
>
>
>
> --
> Nadeesha Gamage
> Associate Technical Lead - Solutions Engineering
> T : +94 77 394 5706
> B : https://nadeesha678.wordpress.com/
>



-- 
*V. Mohanadarshan*
*Associate Tech Lead,*
*Data Technologies Team,*
*WSO2, Inc. http://wso2.com  *

Re: [Dev] Error in deploying throttling policies from API Manager 2.0 [API Manager]

2016-10-05 Thread Nadeesha Gamage
Hi Mohan,
I tried with jdk1.8.0_101 but the issue still exist so I dont think its an
issue that would be fixed by JDK version update.

Thank you,
Nadeesha

On Wed, Oct 5, 2016 at 10:56 AM, Nadeesha Gamage  wrote:

> Ok, will try and update the thread.
>
> Thank you,
> Nadeesha
>
> On Wed, Oct 5, 2016 at 10:48 AM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>> Hi Nadeesha,
>>
>> Thilini has done a test on this sometime back with jdk 1.8.0_73 and
>> works fine.. If you don't mind can you please try with this version (or
>> higher version) ?..
>>
>> Thanks,
>> Mohan
>>
>>
>> On Wed, Oct 5, 2016 at 10:27 AM, Nadeesha Gamage 
>> wrote:
>>
>>> Hi Mohan,
>>> It still gives the same issue on jdk1.8.0_65.
>>>
>>> Thank you,
>>> Nadeesha
>>>
>>> On Wed, Oct 5, 2016 at 10:25 AM, Mohanadarshan Vivekanandalingam <
>>> mo...@wso2.com> wrote:
>>>
 Hi Nadeesha,

 It is a known issue that we have seen in some windows version (with
 combine with specific jdk). It is already fixed in latest components and
 current APIM source code is depend on those components..  See related
 references below..

 But again, as per our previous tests above issue cannot be reproduced
 in JDK 1.8.0.. What is the minor version of the jdk 1.8 that you tried?

 [1] https://wso2.org/jira/browse/DAS-470

 [2] https://wso2.org/jira/browse/DAS-467

 Thanks,
 Mohan




 On Wed, Oct 5, 2016 at 10:20 AM, Nadeesha Gamage 
 wrote:

> Hi Rukshan,
> No Siddhi file is created in mentioned directory.
>
> Thank you,
> Nadeesha
>
> On Wed, Oct 5, 2016 at 10:03 AM, Rukshan Premathunga  > wrote:
>
>> Hi Nadeeshan,
>>
>> I think you try to deploy policy using admin UI. So can you check the
>> repository/deployment/server/executionplans directory and see
>> created *.siddhiql file contain any invalid characters?
>>
>> Thanks and Regards
>>
>> On Wed, Oct 5, 2016 at 9:55 AM, Nadeesha Gamage 
>> wrote:
>>
>>> Hi Devs,
>>> I am having an issue in deploying a new API throttling policy in API
>>> M 2.0. The issue is described in the ticket below
>>>
>>> https://wso2.org/jira/browse/APIMANAGER-5415
>>>
>>>
>>> Error log is given below
>>>
>>> [2016-10-05 09:49:26,237] ERROR - ThrottlePolicyDeploymentManager
>>> Error while deploying policy to global policy server.Illegal char <:> at
>>> index 2: /D:/APIM-D~1/API_M_2.0/WSO2AM~
>>> 1.0/bin/../repository/deployment/server/\executionplans
>>>
>>>
>>> I am using a *Windows OS* and this error occurs with both *Java 1.7
>>> and 1.8*.
>>>
>>> Thank you,
>>> --
>>> Nadeesha Gamage
>>> Associate Technical Lead - Solutions Engineering
>>> T : +94 77 394 5706
>>> B : https://nadeesha678.wordpress.com/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rukshan Chathuranga.
>> Software Engineer.
>> WSO2, Inc.
>>
>
>
>
> --
> Nadeesha Gamage
> Associate Technical Lead - Solutions Engineering
> T : +94 77 394 5706
> B : https://nadeesha678.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *V. Mohanadarshan*
 *Associate Tech Lead,*
 *Data Technologies Team,*
 *WSO2, Inc. http://wso2.com  *
 *lean.enterprise.middleware.*

 email: mo...@wso2.com
 phone:(+94) 771117673

>>>
>>>
>>>
>>> --
>>> Nadeesha Gamage
>>> Associate Technical Lead - Solutions Engineering
>>> T : +94 77 394 5706
>>> B : https://nadeesha678.wordpress.com/
>>>
>>
>>
>>
>> --
>> *V. Mohanadarshan*
>> *Associate Tech Lead,*
>> *Data Technologies Team,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: mo...@wso2.com
>> phone:(+94) 771117673
>>
>
>
>
> --
> Nadeesha Gamage
> Associate Technical Lead - Solutions Engineering
> T : +94 77 394 5706
> B : https://nadeesha678.wordpress.com/
>



-- 
Nadeesha Gamage
Associate Technical Lead - Solutions Engineering
T : +94 77 394 5706
B : https://nadeesha678.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Metrics issue when doing long running tests for Message Broker

2016-10-05 Thread Malith Jayasinghe
Hi Hasitha,

Thanks for reporting this issue. I don't think we tested the metrics with
postgresql. We will get back to you soon.

On Wed, Oct 5, 2016 at 5:29 PM, Hasitha Hiranya  wrote:

> Hi Performance Team ,
>
> We observed following exception when doing long running tests for MB 3.2.0
> [1].
> Have we tested metrics with postgresql? Any idea on the issue? We created
> jira [2] to follow up
>
> [1].
>
> TID: [] [] [2016-10-05 17:02:44,321] ERROR 
> {org.wso2.carbon.metrics.jdbc.reporter.JDBCReporter}
> -  Error when reporting timers {org.wso2.carbon.metrics.jdbc.
> reporter.JDBCReporter}
> java.sql.BatchUpdateException: Batch entry 0 INSERT INTO METRIC_TIMER
> (SOURCE,TIMESTAMP,NAME,COUNT,MAX,MEAN,MIN,STDDEV,P50,P75,
> P95,P98,P99,P999,MEAN_RATE,M1_RATE,M5_RATE,M15_RATE,RATE_UNIT,DURATION_UNIT)
> VALUES ('MBNODE30',1475701364303,'org.wso2.mb.database.read',
> 140,107728.4415579,37167.08968820929,0.321192,49845.
> 87357880018,2.830612,107728.4415579,107728.4415579,107728.
> 4415579,107728.4415579,107728.4415579,0.0205320360573999,0.
> 009795331416994773,0.04902573050340198,0.04158178311107816,'calls/second','milliseconds')
> was aborted.  Call getNextException to see the cause.
> at org.postgresql.jdbc.BatchResultHandler.handleError(
> BatchResultHandler.java:137)
> at org.postgresql.core.v3.QueryExecutorImpl$1.
> handleError(QueryExecutorImpl.java:436)
> at org.postgresql.core.v3.QueryExecutorImpl.processResults(
> QueryExecutorImpl.java:2024)
> at org.postgresql.core.v3.QueryExecutorImpl.execute(
> QueryExecutorImpl.java:377)
> at org.postgresql.jdbc.PgStatement.executeBatch(PgStatement.java:1026)
> at org.postgresql.jdbc.PgPreparedStatement.executeBatch(
> PgPreparedStatement.java:1661)
> at org.wso2.carbon.metrics.jdbc.reporter.JDBCReporter.
> reportTimers(JDBCReporter.java:389)
> at org.wso2.carbon.metrics.jdbc.reporter.JDBCReporter.report(
> JDBCReporter.java:200)
> at com.codahale.metrics.ScheduledReporter.report(
> ScheduledReporter.java:162)
> at com.codahale.metrics.ScheduledReporter$1.run(
> ScheduledReporter.java:117)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
> at java.util.concurrent.ScheduledThreadPoolExecutor$
> ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
> at java.util.concurrent.ScheduledThreadPoolExecutor$
> ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>
> [2]. https://wso2.org/jira/browse/MB-1833
>
> Thanks
> --
> *Hasitha Abeykoon*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> *cell:* *+94 719363063*
> *blog: **abeykoon.blogspot.com* 
>
>


-- 
Malith Jayasinghe

WSO2, Inc. (http://wso2.com)
Email   : mali...@wso2.com
Mobile : 0770704040
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Scatter and Gather Pattern for Dynamic Endpoints

2016-10-05 Thread Isuru Haththotuwa
On Wed, Oct 5, 2016 at 8:10 PM, Isuru Udana  wrote:

>
>
> On Wed, Oct 5, 2016 at 8:06 PM, Isuru Haththotuwa  wrote:
>
>> It seems we can't dynamically set min and max values for messageCount of
>> completeCondition.
>>
>> If I omit the min, max response message counts and the timeout, still it
>> aggregates the responses. The defaults are -1 for min and max message
>> counts and 0 for timeout [1]. How does the mediator figure out when to
>> complete the aggregation?
>>
> Similar to Clone and Iterate mediators, RecepientList endpoint set the
> MESSAGE_SEQUENCE before sending the message out, using that Aggregate
> Mediator figure out what's needed to be aggregated.
>
Great! Thanks for the clarifications IsuruU.

>
>> [1]. https://github.com/wso2/wso2-synapse/blob/Apache-Synapse-2.1
>> .5-wso2v2/modules/core/src/main/java/org/apache/synapse/medi
>> ators/eip/aggregator/Aggregate.java#L42
>>
>> On Wed, Oct 5, 2016 at 7:11 AM, Isuru Haththotuwa 
>> wrote:
>>
>>>
>>>
>>> On Wed, Oct 5, 2016 at 7:10 AM, Isuru Haththotuwa 
>>> wrote:
>>>
 Additionally, is it possible to set min and max values for messageCount
 of completeCondition to be dynamically picked, preferably property, etc?

>>> Meant to say 'preferably from a msg context property'
>>>

 On Mon, Oct 3, 2016 at 9:57 PM, Isuru Haththotuwa 
 wrote:

> Thanks for the info IsuruU and Viraj. Will check this.
>
> On Mon, Oct 3, 2016 at 10:03 AM, Viraj Rajaguru 
> wrote:
>
>> Hi,
>>
>> On Mon, Oct 3, 2016 at 7:43 AM, Isuru Udana  wrote:
>>
>>> Hi Isuru,
>>>
>>> By looking at the synapse code of RecipientListEndpoint, I can see
>>> that there is an option to pick endpoint list dynamically. I am not sure
>>> whether that is configurable through tooling. You may have a look on 
>>> that.
>>>
>>
>> ESB Tooling supports RecipientListEndpoint configurations.
>>
>> Thanks,
>> Viraj.
>>
>>>
>>> Please note that I haven't tried it out.
>>>
>>> Thanks.
>>>
>>>
>>> On Sun, Oct 2, 2016 at 11:12 AM, Isuru Haththotuwa 
>>> wrote:
>>>
 Missed the link:

 [1]. https://docs.wso2.com/display/IntegrationPatterns/Scatter-Ga
 ther

 On Sun, Oct 2, 2016 at 11:12 AM, Isuru Haththotuwa  wrote:

> Hi Devs,
>
> Do we support $subject with latest ESB? The use case is as follows:
>
>- The endpoints are dynamically picked up during the mediation
>flow (Ex. via a DB query, etc.). The number of endpoints are not 
> fixed
>- In the aggregation, need to wait till the all the endpoints
>to which the request were sent returns a response
>
> In the EIP sample [1], we can achieve the same with a fixed number
> of endpoints. Can we do the same with a dynamic number of endpoints?
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>


 --
 Thanks and Regards,

 Isuru H.
 +94 716 358 048* *



>>>
>>>
>>> --
>>> *Isuru Udana*
>>> Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>> email: isu...@wso2.com cell: +94 77 3791887
>>> blog: http://mytecheye.blogspot.com/
>>>
>>
>>
>>
>> --
>> Viraj Rajaguru
>> Associate Technical Lead
>> WSO2 Inc. : http://wso2.com
>>
>> Mobile: +94 77 3683068
>>
>>
>>
>>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>


 --
 Thanks and Regards,

 Isuru H.
 +94 716 358 048* *



>>>
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048* *
>>>
>>>
>>>
>>
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* *
>>
>>
>>
>
>
> --
> *Isuru Udana*
> Technical Lead
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
>



-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] carbon-device-mgt and carbon-device-mgt-plugins GIT clone error on windows

2016-10-05 Thread Eranga Liyanage
Thank you Dakshika, I'll check this.

*Eranga Liyanage*
Senior UX Engineer | WSO2
Mob : +94 77 395 
Blog : https://medium.com/@erangatl
Linkedin : https://www.linkedin.com/in/erangaliyanage


On Wed, Oct 5, 2016 at 9:39 PM, Dakshika Jayathilaka 
wrote:

> Hi Eranga,
>
> Try this
>
> http://ourcodeworld.com/articles/read/109/how-to-
> solve-filename-too-long-error-in-git-powershell-and-github-
> application-for-windows
>
> Regards,
>
> *Dakshika Jayathilaka*
> PMC Member & Committer of Apache Stratos
> Associate Technical Lead
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Wed, Oct 5, 2016 at 12:01 PM, Eranga Liyanage  wrote:
>
>> Hi,
>>
>> I'm getting filename too long error while trying to
>> clone carbon-device-mgt and  carbon-device-mgt-plugins in windows 7.
>>
>> Please find below error and environment details.
>>
>> *carbon-device-mgt*
>>
>> Eranga@ERANGA-PC D:\GIT
>> $ git clone https://github.com/erangatl/carbon-device-mgt.git
>> Cloning into 'carbon-device-mgt'...
>> remote: Counting objects: 75226, done.
>> remote: Total 75226 (delta 0), reused 0 (delta 0), pack-reused 75225
>> Receiving objects: 100% (75226/75226), 26.38 MiB | 85.00 KiB/s, done.
>> Resolving deltas: 100% (28711/28711), done.
>> error: unable to create file components/device-mgt-extensio
>> ns/org.wso2.carbon.device.mgt.extensions.push.notification.
>> provider.mqtt/src/main/java/org/wso2/carbon/device/mgt/
>> extensions/push/notification/provider/mqtt/internal/MQTTPus
>> hNotificationServiceComponent.java: Filename too long
>> error: unable to create file components/device-mgt-extensio
>> ns/org.wso2.carbon.device.mgt.extensions.push.notification.
>> provider.xmpp/src/main/java/org/wso2/carbon/device/mgt/
>> extensions/push/notification/provider/xmpp/internal/XMPPPus
>> hNotificationServiceComponent.java: Filename too long
>> error: unable to create file components/identity-extensions
>> /dynamic-client-registration/org.wso2.carbon.dynamic.
>> client.web.app.registration/src/main/java/org/wso2/carbon/
>> dynamic/client/web/app/registration/internal/DynamicC
>> lientWebAppRegistrationServiceComponent.java: Filename too long
>> error: unable to create file components/identity-extensions
>> /dynamic-client-registration/org.wso2.carbon.dynamic.
>> client.web.app.registration/src/main/java/org/wso2/carbon/
>> dynamic/client/web/app/registration/listner/DynamicCl
>> ientWebAppDeploymentLifecycleListener.java: Filename too long
>> fatal: unable to checkout working tree
>> warning: Clone succeeded, but checkout failed.
>> You can inspect what was checked out with 'git status'
>> and retry the checkout with 'git checkout -f HEAD'
>>
>>
>>
>> *carbon-device-mgt-plugins*
>>
>> Eranga@ERANGA-PC D:\GIT
>> $ git clone https://github.com/erangatl/carbon-device-mgt-plugins.git
>> Cloning into 'carbon-device-mgt-plugins'...
>> remote: Counting objects: 57854, done.
>> remote: Total 57854 (delta 0), reused 0 (delta 0), pack-reused 57854
>> Receiving objects: 100% (57854/57854), 138.17 MiB | 325.00 KiB/s, done.
>> Resolving deltas: 100% (19888/19888), done.
>> error: unable to create file components/iot-plugins/android
>> sense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.ui/src/
>> main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.dev
>> ice.type.android_sense.platform.configuration/public/js/platfor
>> m-configuration.js: Filename too long
>> error: unable to create file components/iot-plugins/android
>> sense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.ui/src/
>> main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.dev
>> ice.type.android_sense.realtime.analytics-view/public/js/socket
>> .io.min.js: Filename too long
>> error: unable to create file components/iot-plugins/raspber
>> rypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.ui/src/ma
>> in/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.devic
>> e.type.raspberrypi.platform.configuration/public/js/platform-co
>> nfiguration.js: Filename too long
>> warning: unable to access 'components/iot-plugins/virtua
>> l-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm
>> .agent.advanced.impl/src/main/java/org/wso2/carbon/device/mg
>> t/iot/virtualfirealarm/agent/advanced/communication/http/.gitat
>> tributes': Filename too long
>> error: unable to create file components/iot-plugins/virtual
>> -fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfireala
>> rm.agent.advanced.impl/src/main/java/org/wso2/carbon/device/
>> mgt/iot/virtualfirealarm/agent/advanced/communication/http/Fire
>> AlarmHTTPCommunicator.java: Filename too long
>> warning: unable to access 'components/iot-plugins/virtua
>> l-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm
>> .agent.advanced.impl/src/main/java/org/wso2/carbon/device/mg
>> t/iot/virtualfirealarm/agent/advanced/communication/mqtt/.gitat
>> tributes': Filename too long
>> error: unable to create file components/iot-plugins/virtual
>> 

Re: [Dev] carbon-device-mgt and carbon-device-mgt-plugins GIT clone error on windows

2016-10-05 Thread Dakshika Jayathilaka
Hi Eranga,

Try this

http://ourcodeworld.com/articles/read/109/how-to-solve-filename-too-long-error-in-git-powershell-and-github-application-for-windows

Regards,

*Dakshika Jayathilaka*
PMC Member & Committer of Apache Stratos
Associate Technical Lead
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Wed, Oct 5, 2016 at 12:01 PM, Eranga Liyanage  wrote:

> Hi,
>
> I'm getting filename too long error while trying to
> clone carbon-device-mgt and  carbon-device-mgt-plugins in windows 7.
>
> Please find below error and environment details.
>
> *carbon-device-mgt*
>
> Eranga@ERANGA-PC D:\GIT
> $ git clone https://github.com/erangatl/carbon-device-mgt.git
> Cloning into 'carbon-device-mgt'...
> remote: Counting objects: 75226, done.
> remote: Total 75226 (delta 0), reused 0 (delta 0), pack-reused 75225
> Receiving objects: 100% (75226/75226), 26.38 MiB | 85.00 KiB/s, done.
> Resolving deltas: 100% (28711/28711), done.
> error: unable to create file components/device-mgt-
> extensions/org.wso2.carbon.device.mgt.extensions.push.
> notification.provider.mqtt/src/main/java/org/wso2/carbon/
> device/mgt/extensions/push/notification/provider/mqtt/internal/
> MQTTPushNotificationServiceComponent.java: Filename too long
> error: unable to create file components/device-mgt-
> extensions/org.wso2.carbon.device.mgt.extensions.push.
> notification.provider.xmpp/src/main/java/org/wso2/carbon/
> device/mgt/extensions/push/notification/provider/xmpp/internal/
> XMPPPushNotificationServiceComponent.java: Filename too long
> error: unable to create file components/identity-
> extensions/dynamic-client-registration/org.wso2.carbon.
> dynamic.client.web.app.registration/src/main/java/org/wso2/carbon/dynamic/
> client/web/app/registration/internal/DynamicClientWebAppRegistrationServiceComponent.java:
> Filename too long
> error: unable to create file components/identity-
> extensions/dynamic-client-registration/org.wso2.carbon.
> dynamic.client.web.app.registration/src/main/java/org/wso2/carbon/dynamic/
> client/web/app/registration/listner/DynamicClientWebAppDeploymentLifecycleListener.java:
> Filename too long
> fatal: unable to checkout working tree
> warning: Clone succeeded, but checkout failed.
> You can inspect what was checked out with 'git status'
> and retry the checkout with 'git checkout -f HEAD'
>
>
>
> *carbon-device-mgt-plugins*
>
> Eranga@ERANGA-PC D:\GIT
> $ git clone https://github.com/erangatl/carbon-device-mgt-plugins.git
> Cloning into 'carbon-device-mgt-plugins'...
> remote: Counting objects: 57854, done.
> remote: Total 57854 (delta 0), reused 0 (delta 0), pack-reused 57854
> Receiving objects: 100% (57854/57854), 138.17 MiB | 325.00 KiB/s, done.
> Resolving deltas: 100% (19888/19888), done.
> error: unable to create file components/iot-plugins/
> androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.ui/src/
> main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.
> device.type.android_sense.platform.configuration/public/js/platfor
> m-configuration.js: Filename too long
> error: unable to create file components/iot-plugins/
> androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.ui/src/
> main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.
> device.type.android_sense.realtime.analytics-view/public/js/socket
> .io.min.js: Filename too long
> error: unable to create file components/iot-plugins/
> raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.ui/src/ma
> in/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.
> device.type.raspberrypi.platform.configuration/public/js/platform-co
> nfiguration.js: Filename too long
> warning: unable to access 'components/iot-plugins/
> virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm
> .agent.advanced.impl/src/main/java/org/wso2/carbon/device/
> mgt/iot/virtualfirealarm/agent/advanced/communication/http/.gitat
> tributes': Filename too long
> error: unable to create file components/iot-plugins/
> virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfireala
> rm.agent.advanced.impl/src/main/java/org/wso2/carbon/device/mgt/iot/
> virtualfirealarm/agent/advanced/communication/http/Fire
> AlarmHTTPCommunicator.java: Filename too long
> warning: unable to access 'components/iot-plugins/
> virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm
> .agent.advanced.impl/src/main/java/org/wso2/carbon/device/
> mgt/iot/virtualfirealarm/agent/advanced/communication/mqtt/.gitat
> tributes': Filename too long
> error: unable to create file components/iot-plugins/
> virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfireala
> rm.agent.advanced.impl/src/main/java/org/wso2/carbon/device/mgt/iot/
> virtualfirealarm/agent/advanced/communication/mqtt/Fire
> AlarmMQTTCommunicator.java: Filename too long
> warning: unable to access 'components/iot-plugins/
> virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm
> 

[Dev] carbon-device-mgt and carbon-device-mgt-plugins GIT clone error on windows

2016-10-05 Thread Eranga Liyanage
Hi,

I'm getting filename too long error while trying to clone carbon-device-mgt
and  carbon-device-mgt-plugins in windows 7.

Please find below error and environment details.

*carbon-device-mgt*

Eranga@ERANGA-PC D:\GIT
$ git clone https://github.com/erangatl/carbon-device-mgt.git
Cloning into 'carbon-device-mgt'...
remote: Counting objects: 75226, done.
remote: Total 75226 (delta 0), reused 0 (delta 0), pack-reused 75225
Receiving objects: 100% (75226/75226), 26.38 MiB | 85.00 KiB/s, done.
Resolving deltas: 100% (28711/28711), done.
error: unable to create file
components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt/src/main/java/org/wso2/carbon/device/mgt/extensions/push/notification/provider/mqtt/internal/MQTTPushNotificationServiceComponent.java:
Filename too long
error: unable to create file
components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.xmpp/src/main/java/org/wso2/carbon/device/mgt/extensions/push/notification/provider/xmpp/internal/XMPPPushNotificationServiceComponent.java:
Filename too long
error: unable to create file
components/identity-extensions/dynamic-client-registration/org.wso2.carbon.dynamic.client.web.app.registration/src/main/java/org/wso2/carbon/dynamic/client/web/app/registration/internal/DynamicClientWebAppRegistrationServiceComponent.java:
Filename too long
error: unable to create file
components/identity-extensions/dynamic-client-registration/org.wso2.carbon.dynamic.client.web.app.registration/src/main/java/org/wso2/carbon/dynamic/client/web/app/registration/listner/DynamicClientWebAppDeploymentLifecycleListener.java:
Filename too long
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'



*carbon-device-mgt-plugins*

Eranga@ERANGA-PC D:\GIT
$ git clone https://github.com/erangatl/carbon-device-mgt-plugins.git
Cloning into 'carbon-device-mgt-plugins'...
remote: Counting objects: 57854, done.
remote: Total 57854 (delta 0), reused 0 (delta 0), pack-reused 57854
Receiving objects: 100% (57854/57854), 138.17 MiB | 325.00 KiB/s, done.
Resolving deltas: 100% (19888/19888), done.
error: unable to create file
components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.ui/src/
main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.platform.configuration/public/js/platfor
m-configuration.js: Filename too long
error: unable to create file
components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.ui/src/
main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.realtime.analytics-view/public/js/socket
.io.min.js: Filename too long
error: unable to create file
components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.ui/src/ma
in/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.raspberrypi.platform.configuration/public/js/platform-co
nfiguration.js: Filename too long
warning: unable to access
'components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm
.agent.advanced.impl/src/main/java/org/wso2/carbon/device/mgt/iot/virtualfirealarm/agent/advanced/communication/http/.gitat
tributes': Filename too long
error: unable to create file
components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfireala
rm.agent.advanced.impl/src/main/java/org/wso2/carbon/device/mgt/iot/virtualfirealarm/agent/advanced/communication/http/Fire
AlarmHTTPCommunicator.java: Filename too long
warning: unable to access
'components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm
.agent.advanced.impl/src/main/java/org/wso2/carbon/device/mgt/iot/virtualfirealarm/agent/advanced/communication/mqtt/.gitat
tributes': Filename too long
error: unable to create file
components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfireala
rm.agent.advanced.impl/src/main/java/org/wso2/carbon/device/mgt/iot/virtualfirealarm/agent/advanced/communication/mqtt/Fire
AlarmMQTTCommunicator.java: Filename too long
warning: unable to access
'components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm
.agent.advanced.impl/src/main/java/org/wso2/carbon/device/mgt/iot/virtualfirealarm/agent/advanced/communication/xmpp/.gitat
tributes': Filename too long
error: unable to create file
components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfireala
rm.agent.advanced.impl/src/main/java/org/wso2/carbon/device/mgt/iot/virtualfirealarm/agent/advanced/communication/xmpp/Fire
AlarmXMPPCommunicator.java: Filename too long
error: unable to create file
components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfireala

[Dev] [IoTS] Errors after change the admin password and restart the IoTS server

2016-10-05 Thread 云展智创
Hi all,

I got these errors after I change the admin password and back to the origin 
password and restart the IoTS server again. I confirmed that I had create 
streams to process these messages in the topics. 

Could anybody help me? Thanks. 

TID: [-1] [] [2016-10-05 21:51:12,838]  INFO 
{org.wso2.andes.kernel.disruptor.inbound.MessagePreProcessor} -  Message 
routing key: carbon.super/thgsensors/1ibc0sz4yxsfr/command No routes in 
cluster. Ignoring Message id 47893570607644672 
{org.wso2.andes.kernel.disruptor.inbound.MessagePreProcessor}
TID: [-1] [] [2016-10-05 21:52:47,340]  INFO 
{org.wso2.andes.kernel.disruptor.inbound.MessagePreProcessor} -  Message 
routing key: carbon.super/thgsensors/rl7wme4wjw4j/command No routes in cluster. 
Ignoring Message id 47893595380776960 
{org.wso2.andes.kernel.disruptor.inbound.MessagePreProcessor}
TID: [-1] [] [2016-10-05 21:54:57,263]  INFO 
{org.wso2.andes.kernel.disruptor.inbound.MessagePreProcessor} -  Message 
routing key: carbon.super/fourswitchs/1ibhl22d1zzg6/command No routes in 
cluster. Ignoring Message id 47893629439311872 
{org.wso2.andes.kernel.disruptor.inbound.MessagePreProcessor}

TID: [-1] [] [2016-10-05 22:56:16,659]  INFO 
{org.wso2.andes.kernel.disruptor.inbound.MessagePreProcessor} -  Message 
routing key: carbon.super/thgsensors/1iuy87wofrv3n/bee No routes in cluster. 
Ignoring Message id 47894593970896898 
{org.wso2.andes.kernel.disruptor.inbound.MessagePreProcessor}
TID: [-1] [] [2016-10-05 22:56:44,202]  INFO 
{org.wso2.andes.kernel.disruptor.inbound.MessagePreProcessor} -  Message 
routing key: carbon.super/thgsensors/1iuy87wofrv3n/alert No routes in cluster. 
Ignoring Message id 47894601191129088 
{org.wso2.andes.kernel.disruptor.inbound.MessagePreProcessor}

--
Zhanwen Zhou (Jason)
+86 13922218435
zhanwen.z...@smartcloudex.com
Guangzhou Smart Cloudex Technology Co., Ltd.
Business: IOT, API Management

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


Re: [Dev] Scatter and Gather Pattern for Dynamic Endpoints

2016-10-05 Thread Isuru Udana
On Wed, Oct 5, 2016 at 8:06 PM, Isuru Haththotuwa  wrote:

> It seems we can't dynamically set min and max values for messageCount of
> completeCondition.
>
> If I omit the min, max response message counts and the timeout, still it
> aggregates the responses. The defaults are -1 for min and max message
> counts and 0 for timeout [1]. How does the mediator figure out when to
> complete the aggregation?
>
Similar to Clone and Iterate mediators, RecepientList endpoint set the
MESSAGE_SEQUENCE before sending the message out, using that Aggregate
Mediator figure out what's needed to be aggregated.

>
> [1]. https://github.com/wso2/wso2-synapse/blob/Apache-Synapse-2.
> 1.5-wso2v2/modules/core/src/main/java/org/apache/synapse/
> mediators/eip/aggregator/Aggregate.java#L42
>
> On Wed, Oct 5, 2016 at 7:11 AM, Isuru Haththotuwa  wrote:
>
>>
>>
>> On Wed, Oct 5, 2016 at 7:10 AM, Isuru Haththotuwa 
>> wrote:
>>
>>> Additionally, is it possible to set min and max values for messageCount
>>> of completeCondition to be dynamically picked, preferably property, etc?
>>>
>> Meant to say 'preferably from a msg context property'
>>
>>>
>>> On Mon, Oct 3, 2016 at 9:57 PM, Isuru Haththotuwa 
>>> wrote:
>>>
 Thanks for the info IsuruU and Viraj. Will check this.

 On Mon, Oct 3, 2016 at 10:03 AM, Viraj Rajaguru  wrote:

> Hi,
>
> On Mon, Oct 3, 2016 at 7:43 AM, Isuru Udana  wrote:
>
>> Hi Isuru,
>>
>> By looking at the synapse code of RecipientListEndpoint, I can see
>> that there is an option to pick endpoint list dynamically. I am not sure
>> whether that is configurable through tooling. You may have a look on 
>> that.
>>
>
> ESB Tooling supports RecipientListEndpoint configurations.
>
> Thanks,
> Viraj.
>
>>
>> Please note that I haven't tried it out.
>>
>> Thanks.
>>
>>
>> On Sun, Oct 2, 2016 at 11:12 AM, Isuru Haththotuwa 
>> wrote:
>>
>>> Missed the link:
>>>
>>> [1]. https://docs.wso2.com/display/IntegrationPatterns/Scatter-Ga
>>> ther
>>>
>>> On Sun, Oct 2, 2016 at 11:12 AM, Isuru Haththotuwa 
>>> wrote:
>>>
 Hi Devs,

 Do we support $subject with latest ESB? The use case is as follows:

- The endpoints are dynamically picked up during the mediation
flow (Ex. via a DB query, etc.). The number of endpoints are not 
 fixed
- In the aggregation, need to wait till the all the endpoints
to which the request were sent returns a response

 In the EIP sample [1], we can achieve the same with a fixed number
 of endpoints. Can we do the same with a dynamic number of endpoints?

 --
 Thanks and Regards,

 Isuru H.
 +94 716 358 048* *



>>>
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048* *
>>>
>>>
>>>
>>
>>
>> --
>> *Isuru Udana*
>> Technical Lead
>> WSO2 Inc.; http://wso2.com
>> email: isu...@wso2.com cell: +94 77 3791887
>> blog: http://mytecheye.blogspot.com/
>>
>
>
>
> --
> Viraj Rajaguru
> Associate Technical Lead
> WSO2 Inc. : http://wso2.com
>
> Mobile: +94 77 3683068
>
>
>
>


 --
 Thanks and Regards,

 Isuru H.
 +94 716 358 048* *



>>>
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048* *
>>>
>>>
>>>
>>
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* *
>>
>>
>>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>


-- 
*Isuru Udana*
Technical Lead
WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Scatter and Gather Pattern for Dynamic Endpoints

2016-10-05 Thread Isuru Haththotuwa
It seems we can't dynamically set min and max values for messageCount of
completeCondition.

If I omit the min, max response message counts and the timeout, still it
aggregates the responses. The defaults are -1 for min and max message
counts and 0 for timeout [1]. How does the mediator figure out when to
complete the aggregation?

[1].
https://github.com/wso2/wso2-synapse/blob/Apache-Synapse-2.1.5-wso2v2/modules/core/src/main/java/org/apache/synapse/mediators/eip/aggregator/Aggregate.java#L42

On Wed, Oct 5, 2016 at 7:11 AM, Isuru Haththotuwa  wrote:

>
>
> On Wed, Oct 5, 2016 at 7:10 AM, Isuru Haththotuwa  wrote:
>
>> Additionally, is it possible to set min and max values for messageCount
>> of completeCondition to be dynamically picked, preferably property, etc?
>>
> Meant to say 'preferably from a msg context property'
>
>>
>> On Mon, Oct 3, 2016 at 9:57 PM, Isuru Haththotuwa 
>> wrote:
>>
>>> Thanks for the info IsuruU and Viraj. Will check this.
>>>
>>> On Mon, Oct 3, 2016 at 10:03 AM, Viraj Rajaguru  wrote:
>>>
 Hi,

 On Mon, Oct 3, 2016 at 7:43 AM, Isuru Udana  wrote:

> Hi Isuru,
>
> By looking at the synapse code of RecipientListEndpoint, I can see
> that there is an option to pick endpoint list dynamically. I am not sure
> whether that is configurable through tooling. You may have a look on that.
>

 ESB Tooling supports RecipientListEndpoint configurations.

 Thanks,
 Viraj.

>
> Please note that I haven't tried it out.
>
> Thanks.
>
>
> On Sun, Oct 2, 2016 at 11:12 AM, Isuru Haththotuwa 
> wrote:
>
>> Missed the link:
>>
>> [1]. https://docs.wso2.com/display/IntegrationPatterns/Scatter-Gather
>>
>> On Sun, Oct 2, 2016 at 11:12 AM, Isuru Haththotuwa 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> Do we support $subject with latest ESB? The use case is as follows:
>>>
>>>- The endpoints are dynamically picked up during the mediation
>>>flow (Ex. via a DB query, etc.). The number of endpoints are not 
>>> fixed
>>>- In the aggregation, need to wait till the all the endpoints to
>>>which the request were sent returns a response
>>>
>>> In the EIP sample [1], we can achieve the same with a fixed number
>>> of endpoints. Can we do the same with a dynamic number of endpoints?
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048* *
>>>
>>>
>>>
>>
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* *
>>
>>
>>
>
>
> --
> *Isuru Udana*
> Technical Lead
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
>



 --
 Viraj Rajaguru
 Associate Technical Lead
 WSO2 Inc. : http://wso2.com

 Mobile: +94 77 3683068




>>>
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048* *
>>>
>>>
>>>
>>
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* *
>>
>>
>>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>


-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Carbon Feature Plugin 1.5.8 Released

2016-10-05 Thread Thusitha Thilina Dayaratne
*WSO2 Carbon Feature Plugin 1.5.8 Released*

The Platform team is pleased to announce the release of Carbon Feature
Plugin 1.5.8. It is now available to download from here
.

*How to Contribute*

   - WSO2 Carbon Feature Plugin code is hosted on Github.
   - The Git repository is https://github.com/wso2/carbon-maven-plugins
   - Carbon Feature Plugin 1.5.8 release tag is
   https://github.com/wso2/carbon-maven-plugins/releases/tag/v1.5.8
   - Please report issues at Carbon Feature Plugin Jira,
   https://wso2.org/jira/browse/CMVNPLG
   


*Contact Us*

WSO2 Carbon developers can be contacted via following mailing lists:

   - WSO2 Developers List: dev@wso2.org
   - WSO2 Architecture List: architect...@wso2.org


Best Regards
Platform Team
-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

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


Re: [Dev] WSO2 Committers += Ashen Weerathunga

2016-10-05 Thread Ashen Weerathunga
Thanks everyone!!! :)

On Wed, Oct 5, 2016 at 5:50 PM, Lahiru Manohara  wrote:

> Hi Ashen,
>
> Congratulations ..!!!
>
> On Tue, Oct 4, 2016 at 4:37 PM, Charini Nanayakkara 
> wrote:
>
>> Congrats Ashen! :)
>>
>> On Tue, Oct 4, 2016 at 3:56 PM, Mushthaq Rumy  wrote:
>>
>>> Congrats Ashen!
>>>
>>> Thanks & Regards,
>>> Mushthaq
>>>
>>> On Tue, Oct 4, 2016 at 2:39 PM, Sameera Ramasinghe 
>>> wrote:
>>>
 Congratz Ashen!!

 On Tue, Oct 4, 2016 at 1:56 PM, Grainier Perera 
 wrote:

> Congratulations Ashen.!
>
> On Tue, Oct 4, 2016 at 11:03 AM, Nirmal Fernando 
> wrote:
>
>> Hi all,
>>
>> It is my pleasure to welcome Ashen Weerathunga as a WSO2 Committer.
>> In recognition of Ashen's contributions to ML, Siddhi and IoT analytics, 
>> he
>> has been voted as a Committer.
>>
>> Ashen, welcome aboard and keep up the good work.
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Team Lead - WSO2 Machine Learner
>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Grainier Perera
> Software Engineer
> Mobile : +94716122384
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Sameera Ramasinghe*
 Software Engineer, WSO2 Inc.; http://wso2.com
 mobile: *+94 714489682*

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


>>>
>>>
>>> --
>>> Mushthaq Rumy
>>> *Software Engineer*
>>> Mobile : +94 (0) 779 492140 <%2B94%20%280%29%20773%20451194>
>>> Email : musht...@wso2.com
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middleware.
>>>
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Charini Vimansha Nanayakkara*
>> Software Engineer at WSO2
>>
>> Mobile: 0714126293
>> E-mail: chari...@wso2.com
>> Blog: http://www.charini.me/
>>
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Lahiru Manohara*
> *Software Engineer*
> Mobile: +94716561576
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>



-- 
*Ashen Weerathunga*
Software Engineer
WSO2 Inc.: http://wso2.com
lean.enterprise.middleware

Email: as...@wso2.com
Mobile: tel:94716042995 <94716042995>
LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
*

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


[Dev] Metrics issue when doing long running tests for Message Broker

2016-10-05 Thread Hasitha Hiranya
Hi Performance Team ,

We observed following exception when doing long running tests for MB 3.2.0
[1].
Have we tested metrics with postgresql? Any idea on the issue? We created
jira [2] to follow up

[1].

TID: [] [] [2016-10-05 17:02:44,321] ERROR
{org.wso2.carbon.metrics.jdbc.reporter.JDBCReporter} -  Error when
reporting timers {org.wso2.carbon.metrics.jdbc.reporter.JDBCReporter}
java.sql.BatchUpdateException: Batch entry 0 INSERT INTO METRIC_TIMER
(SOURCE,TIMESTAMP,NAME,COUNT,MAX,MEAN,MIN,STDDEV,P50,P75,P95,P98,P99,P999,MEAN_RATE,M1_RATE,M5_RATE,M15_RATE,RATE_UNIT,DURATION_UNIT)
VALUES
('MBNODE30',1475701364303,'org.wso2.mb.database.read',140,107728.4415579,37167.08968820929,0.321192,49845.87357880018,2.830612,107728.4415579,107728.4415579,107728.4415579,107728.4415579,107728.4415579,0.0205320360573999,0.009795331416994773,0.04902573050340198,0.04158178311107816,'calls/second','milliseconds')
was aborted.  Call getNextException to see the cause.
at
org.postgresql.jdbc.BatchResultHandler.handleError(BatchResultHandler.java:137)
at
org.postgresql.core.v3.QueryExecutorImpl$1.handleError(QueryExecutorImpl.java:436)
at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2024)
at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:377)
at org.postgresql.jdbc.PgStatement.executeBatch(PgStatement.java:1026)
at
org.postgresql.jdbc.PgPreparedStatement.executeBatch(PgPreparedStatement.java:1661)
at
org.wso2.carbon.metrics.jdbc.reporter.JDBCReporter.reportTimers(JDBCReporter.java:389)
at
org.wso2.carbon.metrics.jdbc.reporter.JDBCReporter.report(JDBCReporter.java:200)
at com.codahale.metrics.ScheduledReporter.report(ScheduledReporter.java:162)
at com.codahale.metrics.ScheduledReporter$1.run(ScheduledReporter.java:117)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)

[2]. https://wso2.org/jira/browse/MB-1833

Thanks
-- 
*Hasitha Abeykoon*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
*cell:* *+94 719363063*
*blog: **abeykoon.blogspot.com* 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Analytics] NoClassDefFoundError:com.codahale.metrics.json.MetricsModule when installing latest analytics features in IOT server

2016-10-05 Thread Niranda Perera
Hi Ruwan,

Did we try upgrading the jackson version in spark? I'm hoping that there
are no API changes in jackson 2.8.3.

We have done a similar exercise for guava and hadoop client

Best

On Wed, Oct 5, 2016 at 12:44 AM, Ruwan Yatawara  wrote:

> Hi Niranda,
>
> Are u referring to the spark core? if so, it is bound to json4s-jackson
> bundle.
>
> if we are changing the jackson version of metrics-json we will have to
> make an orbit out of it. From the way I see it, metrics-json must have
> included said version range in attempt to make the bundle future proof.
> (Latest releave version of jackson-core is 2.8.3 [1])
>
> Given that we have to push out a release in a weeks time, changing
> jackson version of spark is not a feasible option.
>
> Therefore, I am +1 for changing the jakson version range of
> metrics-json to [2.4.0,2.5.0).
>
> [1] -https://mvnrepository.com/artifact/com.fasterxml.
> jackson.core/jackson-core
>
> Thanks and Regards,
>
> Ruwan Yatawara
>
> Associate Technical Lead,
> WSO2 Inc.
>
> email : ruw...@wso2.com
> mobile : +94 77 9110413
> blog : http://ruwansrants.blogspot.com/
>   https://500px.com/ruwan_ace
> www: :http://wso2.com
>
>
> On Tue, Oct 4, 2016 at 7:39 PM, Niranda Perera  wrote:
>
>> Hi Maninda,
>>
>> What are the 2 Jason versions here?
>>
>> Best
>>
>> On Tue, Oct 4, 2016 at 8:17 AM, Maninda Edirisooriya 
>> wrote:
>>
>>> + SameeraJ
>>>
>>> As we have found so far, the issue is due to the existence of two
>>> versions of Jackson bundles exists in the IoT server pack. This was not the
>>> case in DAS because IoT has APIM dependencies which brings the newer
>>> version of Jackson into the environment. As Spark uses the older version of
>>> Jackson and Metrics use the newer version of Jackson, importing Metrics
>>> bundle to Spark bundle fails in OSGi level, because the export packages in
>>> Metrics, uses some Jackson packages.
>>>
>>> This has several potential solutions but with inherent issues.
>>>
>>> 1. Release a new version of Metrics bundle having the same older Jackson
>>> dependency. - Releasing with a older version of dependency may be
>>> unsuitable in long term. And if in future, APIM features starts to import
>>> Metrics bundle, the issue will start to happen again on that import.
>>>
>>> 2. Release a new version of Spark to work with newer Jackson bundles.
>>> - As Spark bundle is only correctly functioning with Jackson 2.4.4 (older
>>> version) and not working properly with later version of Jackson we will not
>>> be able to easily release a new Spark version without fixing that issue.
>>>
>>> 3. Remove DAS components from the IoT server and package as separate IoT
>>> Analytics server - Some customers may want to run DAS inside IoT and
>>> removing DAS components from IoT server will effect the user experience for
>>> a WSO2 product evaluator to run  in a single server.
>>>
>>> Please help to find the best approach.
>>>
>>> Thanks.
>>>
>>>
>>> *Maninda Edirisooriya*
>>> Senior Software Engineer
>>>
>>> *WSO2, Inc.*lean.enterprise.middleware.
>>>
>>> *Blog* : http://maninda.blogspot.com/
>>> *E-mail* : mani...@wso2.com
>>> *Skype* : @manindae
>>> *Twitter* : @maninda
>>>
>>> On Tue, Oct 4, 2016 at 5:06 PM, Ruwan Yatawara  wrote:
>>>
 Hi Niranda,

 Yes, this bundle is active. We found this Jackson related problem upon
 further debugging.

 Thanks and Regards,

 Ruwan Yatawara

 Associate Technical Lead,
 WSO2 Inc.

 email : ruw...@wso2.com
 mobile : +94 77 9110413
 blog : http://ruwansrants.blogspot.com/
   https://500px.com/ruwan_ace
 www: :http://wso2.com


 On Tue, Oct 4, 2016 at 4:49 PM, Niranda Perera 
 wrote:

> + RuwanY
>
> @Waruna, can you check if the com.codahale.metrics.json bundle is
> active or not from the OSGI console?
>
> Best
>
> On Tue, Oct 4, 2016 at 4:25 AM, Waruna Jayaweera 
> wrote:
>
>> [Looping Niranda,Anjana]
>>
>> On Tue, Oct 4, 2016 at 12:15 PM, Waruna Jayaweera 
>> wrote:
>>
>>> Hi,
>>> After moving to latest analytics version(1.2.8) , we are getting
>>> class not found error [1].
>>>
>>> This is due to the package import conflicts of spark bundle and
>>> io.dropwizard.metrics.json which imports different version of jackson
>>> packages. IOT server packs multiple jackson versions 2.4.4 and 2.8.2.
>>> Spark bundle has jackson import range of [2.4.0,2.5.0), so wired to
>>> jackson-core 2.4.4.
>>> Io.dropwizard.metrics.json bundle has jackson import range of
>>> [2.4,3), so wired to jackson-core 2.8.2.
>>> Spark also required to import Io.dropwizard.metrics.json but it
>>> fails due to two different version of jackson packages in spark bundle
>>> class space.
>>> So we need to upgrade the spark 

Re: [Dev] [APIM 1.9.1] Sorting options for listed APIs

2016-10-05 Thread Dakshika Jayathilaka
Hi All,

Thank you for the reply.

I was looking for the feature that Jo mentioned.

Regards,

*Dakshika Jayathilaka*
PMC Member & Committer of Apache Stratos
Associate Technical Lead
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Wed, Oct 5, 2016 at 12:45 AM, Joseph Fonseka  wrote:

> @Abimaran I guess Dakshika is asking if we allow to sort based on other
> criteria ie created time, updated time.
>
> @Dakshika currently we do not have this feature in the implementation
> which means it is not available in the UI or in the REST APIs ATM.  And
> this is something we have planed to implement in the future.
>
> Regards
> Jo
>
>
>
> On Wed, Oct 5, 2016 at 9:54 AM, Abimaran Kugathasan 
> wrote:
>
>> Yes, Store Jaggery APIs are sorting the APIs in the order of provider,
>> API name and version. If there are two APIs with same provider, then those
>> APIs will be sorted using name,
>>
>> On Tue, Oct 4, 2016 at 8:24 PM, Dakshika Jayathilaka 
>> wrote:
>>
>>> Hi All,
>>>
>>> Do we have $subject out of the box?
>>>
>>> Regards,
>>>
>>> *Dakshika Jayathilaka*
>>> PMC Member & Committer of Apache Stratos
>>> Associate Technical Lead
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>> 0771100911
>>>
>>> ___
>>> 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
>>
>> 
>> 
>>   
>> 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> --
> *Joseph Fonseka*
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 772 512 430
> skype: jpfonseka
>
> * *
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB 490] Create empty named json array inside an xslt

2016-10-05 Thread Udara Liyanage
Hi Senduran,

Thanks, That worked.

We are generating it inside a xslt where we can not use payloadFactory.

On Wed, Oct 5, 2016 at 12:24 PM, Rajith Vitharana  wrote:

> Hi Udara,
>
> Try using the config senduran mentioned inside a payloadfactory mediator.
> Sample would be as below.
>
> 
> 
>
>
>  sample1
>  test
>  sample2
>
>
>
> 
>
> Thanks,
>
>
>
> On 5 October 2016 at 12:18, Udara Liyanage  wrote:
>
>> Hi Senduran,
>>
>> I need to create json array within synapse configs coz backend expects an
>> array
>>
>> On Wed, Oct 5, 2016 at 8:11 AM, Senduran Balasubramaniyam <
>> sendu...@wso2.com> wrote:
>>
>>> Hi Udara,
>>>
>>> I tried the following API and the request, (I am using ESB 500)
>>> API:
>>>
>>> 
>>> http://ws.apache.org/ns/synapse;
>>>  name="XMLtoJSON"
>>>  context="/XMLtoJSON">
>>>
>>>   
>>>  >> scope="axis2"/>
>>>  
>>>   
>>>
>>> 
>>>
>>>
>>> Request:
>>>
>>> curl -v -d ''
>>> http://localhost:8280/XMLtoJSON -H "Content-type: application/xml"
>>>
>>> Regards
>>> Senduran
>>>
>>>
>>> On Tue, Oct 4, 2016 at 6:36 PM, Udara Liyanage  wrote:
>>>
 Hi Senduran,

 Below is xslt snippet I tried.

   
 
   
 
   
 

 On Tue, Oct 4, 2016 at 6:26 PM, Udara Liyanage  wrote:

> Hi Senduran,
>
> That I tried already. But it produced
>
> {"root":null}
>
> On Tue, Oct 4, 2016 at 5:37 PM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> Hi Udara,
>>
>> You can get an empty addresses array by following:
>>
>> 
>>
>> 
>>
>> Regards
>> Senduran
>>
>> On Tue, Oct 4, 2016 at 12:09 PM, Udara Liyanage 
>> wrote:
>>
>>> Hi,
>>>
>>> I want to generate an empty json array ("addresses":[]) when
>>> addresses count is zero. I tried below as [1] which resulted only in 
>>> null.
>>>
>>>
>>>  
>>> 
>>>   
>>> 
>>>   
>>>
>>>
>>> [1] https://docs.wso2.com/display/ESB500/JSON+Support
>>>
>>>
>>> --
>>>
>>> Udara Liyanage
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> Blog: http://udaraliyanage.wordpress.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Senduran *
>> Senior Software Engineer,
>> WSO2, Inc.;  http://wso2.com/ 
>> Mobile: +94 77 952 6548
>>
>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> Blog: http://udaraliyanage.wordpress.com
>



 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 Blog: http://udaraliyanage.wordpress.com

>>>
>>>
>>>
>>> --
>>> *Senduran *
>>> Senior Software Engineer,
>>> WSO2, Inc.;  http://wso2.com/ 
>>> Mobile: +94 77 952 6548
>>>
>>
>>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> Blog: http://udaraliyanage.wordpress.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rajith Vitharana
>
> Senior Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
> 
>



-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

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


Re: [Dev] [ESB 490] Create empty named json array inside an xslt

2016-10-05 Thread Rajith Vitharana
Hi Udara,

Try using the config senduran mentioned inside a payloadfactory mediator.
Sample would be as below.



   
   
 sample1
 test
 sample2
   
   
   


Thanks,



On 5 October 2016 at 12:18, Udara Liyanage  wrote:

> Hi Senduran,
>
> I need to create json array within synapse configs coz backend expects an
> array
>
> On Wed, Oct 5, 2016 at 8:11 AM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> Hi Udara,
>>
>> I tried the following API and the request, (I am using ESB 500)
>> API:
>>
>> 
>> http://ws.apache.org/ns/synapse;
>>  name="XMLtoJSON"
>>  context="/XMLtoJSON">
>>
>>   
>>  > scope="axis2"/>
>>  
>>   
>>
>> 
>>
>>
>> Request:
>>
>> curl -v -d ''
>> http://localhost:8280/XMLtoJSON -H "Content-type: application/xml"
>>
>> Regards
>> Senduran
>>
>>
>> On Tue, Oct 4, 2016 at 6:36 PM, Udara Liyanage  wrote:
>>
>>> Hi Senduran,
>>>
>>> Below is xslt snippet I tried.
>>>
>>>   
>>> 
>>>   
>>> 
>>>   
>>> 
>>>
>>> On Tue, Oct 4, 2016 at 6:26 PM, Udara Liyanage  wrote:
>>>
 Hi Senduran,

 That I tried already. But it produced

 {"root":null}

 On Tue, Oct 4, 2016 at 5:37 PM, Senduran Balasubramaniyam <
 sendu...@wso2.com> wrote:

> Hi Udara,
>
> You can get an empty addresses array by following:
>
> 
>
> 
>
> Regards
> Senduran
>
> On Tue, Oct 4, 2016 at 12:09 PM, Udara Liyanage 
> wrote:
>
>> Hi,
>>
>> I want to generate an empty json array ("addresses":[]) when
>> addresses count is zero. I tried below as [1] which resulted only in 
>> null.
>>
>>
>>  
>> 
>>   
>> 
>>   
>>
>>
>> [1] https://docs.wso2.com/display/ESB500/JSON+Support
>>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> Blog: http://udaraliyanage.wordpress.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Senduran *
> Senior Software Engineer,
> WSO2, Inc.;  http://wso2.com/ 
> Mobile: +94 77 952 6548
>



 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 Blog: http://udaraliyanage.wordpress.com

>>>
>>>
>>>
>>> --
>>>
>>> Udara Liyanage
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> Blog: http://udaraliyanage.wordpress.com
>>>
>>
>>
>>
>> --
>> *Senduran *
>> Senior Software Engineer,
>> WSO2, Inc.;  http://wso2.com/ 
>> Mobile: +94 77 952 6548
>>
>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> Blog: http://udaraliyanage.wordpress.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/

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


Re: [Dev] [ESB 490] Create empty named json array inside an xslt

2016-10-05 Thread Senduran Balasubramaniyam
Hi Udara,

Since you have to create the XML using the XSLT and the XSLT have to return
an processing instruction, you have to have the following XSLT:


   
  addresses
   


Regards
Senduran

On Wed, Oct 5, 2016 at 12:18 PM, Udara Liyanage  wrote:

> Hi Senduran,
>
> I need to create json array within synapse configs coz backend expects an
> array
>
> On Wed, Oct 5, 2016 at 8:11 AM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> Hi Udara,
>>
>> I tried the following API and the request, (I am using ESB 500)
>> API:
>>
>> 
>> http://ws.apache.org/ns/synapse;
>>  name="XMLtoJSON"
>>  context="/XMLtoJSON">
>>
>>   
>>  > scope="axis2"/>
>>  
>>   
>>
>> 
>>
>>
>> Request:
>>
>> curl -v -d ''
>> http://localhost:8280/XMLtoJSON -H "Content-type: application/xml"
>>
>> Regards
>> Senduran
>>
>>
>> On Tue, Oct 4, 2016 at 6:36 PM, Udara Liyanage  wrote:
>>
>>> Hi Senduran,
>>>
>>> Below is xslt snippet I tried.
>>>
>>>   
>>> 
>>>   
>>> 
>>>   
>>> 
>>>
>>> On Tue, Oct 4, 2016 at 6:26 PM, Udara Liyanage  wrote:
>>>
 Hi Senduran,

 That I tried already. But it produced

 {"root":null}

 On Tue, Oct 4, 2016 at 5:37 PM, Senduran Balasubramaniyam <
 sendu...@wso2.com> wrote:

> Hi Udara,
>
> You can get an empty addresses array by following:
>
> 
>
> 
>
> Regards
> Senduran
>
> On Tue, Oct 4, 2016 at 12:09 PM, Udara Liyanage 
> wrote:
>
>> Hi,
>>
>> I want to generate an empty json array ("addresses":[]) when
>> addresses count is zero. I tried below as [1] which resulted only in 
>> null.
>>
>>
>>  
>> 
>>   
>> 
>>   
>>
>>
>> [1] https://docs.wso2.com/display/ESB500/JSON+Support
>>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> Blog: http://udaraliyanage.wordpress.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Senduran *
> Senior Software Engineer,
> WSO2, Inc.;  http://wso2.com/ 
> Mobile: +94 77 952 6548
>



 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 Blog: http://udaraliyanage.wordpress.com

>>>
>>>
>>>
>>> --
>>>
>>> Udara Liyanage
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> Blog: http://udaraliyanage.wordpress.com
>>>
>>
>>
>>
>> --
>> *Senduran *
>> Senior Software Engineer,
>> WSO2, Inc.;  http://wso2.com/ 
>> Mobile: +94 77 952 6548
>>
>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> Blog: http://udaraliyanage.wordpress.com
>



-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB 490] Create empty named json array inside an xslt

2016-10-05 Thread Udara Liyanage
Hi Senduran,

I need to create json array within synapse configs coz backend expects an
array

On Wed, Oct 5, 2016 at 8:11 AM, Senduran Balasubramaniyam  wrote:

> Hi Udara,
>
> I tried the following API and the request, (I am using ESB 500)
> API:
>
> 
> http://ws.apache.org/ns/synapse;
>  name="XMLtoJSON"
>  context="/XMLtoJSON">
>
>   
>   scope="axis2"/>
>  
>   
>
> 
>
>
> Request:
>
> curl -v -d ''
> http://localhost:8280/XMLtoJSON -H "Content-type: application/xml"
>
> Regards
> Senduran
>
>
> On Tue, Oct 4, 2016 at 6:36 PM, Udara Liyanage  wrote:
>
>> Hi Senduran,
>>
>> Below is xslt snippet I tried.
>>
>>   
>> 
>>   
>> 
>>   
>> 
>>
>> On Tue, Oct 4, 2016 at 6:26 PM, Udara Liyanage  wrote:
>>
>>> Hi Senduran,
>>>
>>> That I tried already. But it produced
>>>
>>> {"root":null}
>>>
>>> On Tue, Oct 4, 2016 at 5:37 PM, Senduran Balasubramaniyam <
>>> sendu...@wso2.com> wrote:
>>>
 Hi Udara,

 You can get an empty addresses array by following:

 

 

 Regards
 Senduran

 On Tue, Oct 4, 2016 at 12:09 PM, Udara Liyanage  wrote:

> Hi,
>
> I want to generate an empty json array ("addresses":[]) when addresses
> count is zero. I tried below as [1] which resulted only in null.
>
>
>  
> 
>   
> 
>   
>
>
> [1] https://docs.wso2.com/display/ESB500/JSON+Support
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> Blog: http://udaraliyanage.wordpress.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Senduran *
 Senior Software Engineer,
 WSO2, Inc.;  http://wso2.com/ 
 Mobile: +94 77 952 6548

>>>
>>>
>>>
>>> --
>>>
>>> Udara Liyanage
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> Blog: http://udaraliyanage.wordpress.com
>>>
>>
>>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> Blog: http://udaraliyanage.wordpress.com
>>
>
>
>
> --
> *Senduran *
> Senior Software Engineer,
> WSO2, Inc.;  http://wso2.com/ 
> Mobile: +94 77 952 6548
>



-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

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