Re: [Dev] [AF] Call a same method simultaneously like BPS

2015-09-24 Thread Ruwan Abeykoon
Hi Lahiru,
I would go for option 1 (Concurrent Framework) as it gives much more
control to the programmer
e.g.
1. Thread pooling, how many threads can be active etc,
2. Better blocking mechanism than Trhead.join(), which blocks the caller
thread. We can make things totally asynchronous by creating another
Callable when all the parallel jobs are finished.

Cheers,
Ruwan

On Thu, Sep 24, 2015 at 10:35 AM, Lahiru Manohara  wrote:

> Hi All,
>
> The BPS we can define to call a methods simultaneously within the workflow.
> [image: Inline image 1]
>
> Same thing can be done using the java threads. There are two
> implementation available to tackle this problem.
> 1). Using java Executor interface[1]
> 2). Using runnable interface[2]
>
> [1]
> http://stackoverflow.com/questions/18162863/how-to-run-different-methods-parallely
> [2]
> http://stackoverflow.com/questions/9664036/how-to-run-two-methods-simultaneously
>
> Which option is better. WDYT.
>
> 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
>
>


-- 

*Ruwan Abeykoon*
*Architect,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

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


[Dev] Creating user Define Functions in spark-sql

2015-09-24 Thread Isuru Wijesinghe
Hi,

I was trying to query on process and task instance data using spark-sql
which published from BPMNDataPublisher to the DAS. Here I need to convert
the date string (eg: Thu Sep 24 09:35:56 IST 2015) into one of the datetime
format that allows in spark. I think it is not possible to query date
directly from spark-sql so I'm thinking of writing a user define function
for it.

Is it possible to write udf in spark-SQL (like in hive) and if possible how
can I import it into das to run the script?

(Please find the attached image of the sample data which stored in the das
side)


-- 
Isuru Wijesinghe
*Software Engineer*
Mobile: 0710933706
isur...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] identical pages in documentation

2015-09-24 Thread Shavantha Weerasinghe
Hi Jonathan

Thanks for pointing this out will inform the documentation team to make the
required changes

regards,

Shavantha Weerasinghe
Senior Software Engineer QA
WSO2, Inc.
lean.enterprise.middleware.
http://wso2.com
http://wso2.org
Tel : 94 11 214 5345
Fax :94 11 2145300


On Wed, Sep 23, 2015 at 6:49 PM, Jonathan Yom-Tov 
wrote:

> hi,
>
> The following two pages appear to have the exact same content. Given the
> heading, I think this is unintentional:
>
>1.
>
> https://docs.wso2.com/display/CEP400/Writing+a+Custom+Stream+Function+Extension
>2.
>https://docs.wso2.com/display/CEP400/Writing+a+Custom+Window+Extension
>
>
> Jon.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How do I override Siddhi's default sequence and pattern matching functionality?

2015-09-24 Thread Jonathan Yom-Tov
hi,

I'd like to write an extension to Siddhi that changes the way it finds
event sequences and patterns. The idea would is that I would be trying to
find sequences/patterns in order of selectivity, not time. For example, say
I wanted to match A->B->C, but I know that C is the rarest event, followed
by B and A. So I would keep a buffer of events until I found a C event,
then look for a B event in the buffer, then for an A. According to
http://assaf.net.technion.ac.il/files/2013/01/DEBS-2015.pdf this would make
the matching significantly more efficient in terms of CPU and memory
required.

The problem is, I'm not sure which classes I should override/look into. As
it's the actual pattern matching functionality I have to modify it seems
extending Windows, Transformers, OutputAttributeProcessors, Functions is
not the way to go. Does anyone have any pointers?

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


Re: [Dev] Creating user Define Functions in spark-sql

2015-09-24 Thread Thanuja Uruththirakodeeswaran
Hi Isuru,

Yes, it is not possible to query date directly from spark-sql. I also had a
requirement to get current time when executing a query in spark ( similar
to mysql NOW()) and formatting a timestamp which is in milli-second to some
data format.

You can write User Defined Function(UDF) in spark-sql and use it in DAS
spark environment as described in this blog [1].

[1].
http://thanu912.blogspot.com/2015/08/using-user-defined-function-udf-in.html

Thanks.

On Thu, Sep 24, 2015 at 1:56 PM, Isuru Wijesinghe  wrote:

> Hi,
>
> I was trying to query on process and task instance data using spark-sql
> which published from BPMNDataPublisher to the DAS. Here I need to convert
> the date string (eg: Thu Sep 24 09:35:56 IST 2015) into one of the
> datetime format that allows in spark. I think it is not possible to query
> date directly from spark-sql so I'm thinking of writing a user define
> function for it.
>
> Is it possible to write udf in spark-SQL (like in hive) and if possible
> how can I import it into das to run the script?
>
> (Please find the attached image of the sample data which stored in the das
> side)
>
>
> --
> Isuru Wijesinghe
> *Software Engineer*
> Mobile: 0710933706
> isur...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanuja Uruththirakodeeswaran
Software Engineer
WSO2 Inc.;http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] Creating user Define Functions in spark-sql

2015-09-24 Thread Isuru Wijesinghe
Hi Thanuja,

Thanks a lot. It is really helpful :)

On Thu, Sep 24, 2015 at 2:25 PM, Thanuja Uruththirakodeeswaran <
thanu...@wso2.com> wrote:

> Hi Isuru,
>
> Yes, it is not possible to query date directly from spark-sql. I also had
> a requirement to get current time when executing a query in spark ( similar
> to mysql NOW()) and formatting a timestamp which is in milli-second to some
> data format.
>
> You can write User Defined Function(UDF) in spark-sql and use it in DAS
> spark environment as described in this blog [1].
>
> [1].
> http://thanu912.blogspot.com/2015/08/using-user-defined-function-udf-in.html
>
> Thanks.
>
> On Thu, Sep 24, 2015 at 1:56 PM, Isuru Wijesinghe 
> wrote:
>
>> Hi,
>>
>> I was trying to query on process and task instance data using spark-sql
>> which published from BPMNDataPublisher to the DAS. Here I need to convert
>> the date string (eg: Thu Sep 24 09:35:56 IST 2015) into one of the
>> datetime format that allows in spark. I think it is not possible to query
>> date directly from spark-sql so I'm thinking of writing a user define
>> function for it.
>>
>> Is it possible to write udf in spark-SQL (like in hive) and if possible
>> how can I import it into das to run the script?
>>
>> (Please find the attached image of the sample data which stored in the
>> das side)
>>
>>
>> --
>> Isuru Wijesinghe
>> *Software Engineer*
>> Mobile: 0710933706
>> isur...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanuja Uruththirakodeeswaran
> Software Engineer
> WSO2 Inc.;http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 774363167
>



-- 
Isuru Wijesinghe
*Software Engineer*
Mobile: 0710933706
isur...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [carbon-kernel-5.0.0] Carbon stop command not working in sh script

2015-09-24 Thread Kasun Indrasiri
Thanks a lor Anura.

@Bhanuka : Can we please test this.

On Wed, Sep 23, 2015 at 12:36 PM, Aruna Karunarathna  wrote:

> @Kasun
>
> This is fixed with [1].
>
> [1]. https://github.com/wso2/carbon4-kernel/pull/504
>
>
> On Wed, Sep 23, 2015 at 10:01 AM, Aruna Karunarathna 
> wrote:
>
>>
>>
>> On Wed, Sep 23, 2015 at 9:51 AM, Supun Malinga  wrote:
>>
>>>
>>>
>>> On Wed, Sep 23, 2015 at 9:06 AM, Aruna Karunarathna 
>>> wrote:
>>>


 On Tue, Sep 22, 2015 at 11:23 AM, Kasun Indrasiri 
 wrote:

> Hi Aruna,
>
> Will you be able to provide some insight.. We need this capability to
> automate perf-testing of the C5 based servers. So, would be great if we 
> can
> have a solution soon.
>

 Hi Kasun,

 Seems like the wso2carbon.pid file (which contains the process id of
 the server) is not generated by the server. Haven't gone through the code
 level.

>>>
>>> AFAIR this is generated from the wso2server.sh
>>>
>>
>> Nope. It's added through code[1]. And its being read by the
>> wso2server.sh.. :)
>>
>> @Kasun. I went through the code. We will be able to add a fix for this
>> soon.
>>
>> [1].
>> https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.server/src/main/java/org/wso2/carbon/server/Main.java#L168
>>
>>
>>>
>>>
>>>
 Until finding a proper solution what you can do is, after starting the
 server create a wso2carbon.pid file in the root folder and add the carbon
 process id.
 You can get the carbon process id by jps command. Not sure this is a
 feasible workaround for your perf-testing scenario,

 Regards,
 Aruna

>
> Thanks,
> Kasun.
>
> On Tue, Sep 22, 2015 at 10:37 AM, Aruna Karunarathna 
> wrote:
>
>> Hi Bhanuka,
>>
>> Yes I was able to reproduce the same. Can you create a jira for
>> this?..
>>
>> Regards,
>> Aruna
>>
>> On Tue, Sep 22, 2015 at 10:32 AM, Bhanuka Dissanayake <
>> bhan...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> I am using the "wso2carbon-kernel-5.0.0-SNAPSHOT" pack , and have
>>> tried to start and stop the server demonically. The start command is
>>> working but the stop command gives the following error.
>>>
>>> cat:
>>> /home/boauser/wso2gw/perf/wso2carbon-kernel-5.0.0-SNAPSHOT/wso2carbon.pid:
>>> No such file or directory
>>> ./wso2server.sh: 188: kill: Usage: kill [-s sigspec | -signum |
>>> -sigspec] [pid | job]... or
>>> kill -l [exitstatus]
>>>
>>> --
>>> *Bhanuka Dissanayake*
>>> *Software Engineer* *Intern; WSO2, Inc.; http://www.wso2.com
>>> *
>>> Mobile : +94 777 669508
>>> Tel  : +94 112 793214
>>> lean.enterprise.middleware
>>>
>>> ___
>>> 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
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Kasun Indrasiri
> Software Architect
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +94 77 556 5206
> Blog : http://kasunpanorama.blogspot.com/
>



 --

 *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


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


>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> email: sup...@wso2.com 
>>> mobile: +94 (0)71 56 91 321
>>>
>>
>>
>>
>> --
>>
>> *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
>>
>>
>
>
>
> --
>
> *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
>
>



-- 
Kasun Indrasiri
Software Architect
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

cell: +94 77 556 5206
Blog : http://kasunpanorama.blogspot.com/
___
Dev mailing list
Dev@wso2.org
htt

Re: [Dev] [AF] Call a same method simultaneously like BPS

2015-09-24 Thread Samith Dassanayake
Hi Lahiru,

Working with the Thread class can be very tedious and error-prone. The
executor framework has protection against crashed runnables and
automatically re-create worker threads . On the other hand, as Ruwan has
mentioned, it gives much more control to the programmer. therefore going
with executors and executor services(Concurrent Framework) is the right way
if you want to have precise control over how many threads will your program
generate and their exact behavior.

[1]
http://www.javaworld.com/article/2078809/java-concurrency/java-concurrency-java-101-the-next-generation-java-concurrency-without-the-pain-part-1.html

Regards,
Samith

On Thu, Sep 24, 2015 at 1:50 PM, Ruwan Abeykoon  wrote:

> Hi Lahiru,
> I would go for option 1 (Concurrent Framework) as it gives much more
> control to the programmer
> e.g.
> 1. Thread pooling, how many threads can be active etc,
> 2. Better blocking mechanism than Trhead.join(), which blocks the caller
> thread. We can make things totally asynchronous by creating another
> Callable when all the parallel jobs are finished.
>
> Cheers,
> Ruwan
>
> On Thu, Sep 24, 2015 at 10:35 AM, Lahiru Manohara 
> wrote:
>
>> Hi All,
>>
>> The BPS we can define to call a methods simultaneously within the
>> workflow.
>> [image: Inline image 1]
>>
>> Same thing can be done using the java threads. There are two
>> implementation available to tackle this problem.
>> 1). Using java Executor interface[1]
>> 2). Using runnable interface[2]
>>
>> [1]
>> http://stackoverflow.com/questions/18162863/how-to-run-different-methods-parallely
>> [2]
>> http://stackoverflow.com/questions/9664036/how-to-run-two-methods-simultaneously
>>
>> Which option is better. WDYT.
>>
>> 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
>>
>>
>
>
> --
>
> *Ruwan Abeykoon*
> *Architect,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
>



-- 
Best Regards

Samith Dassanayake
Software Engineer | Cloud TG
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

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


[Dev] [Identity] traveolcity.com app doesn't redirect to Facebook login page.

2015-09-24 Thread Lakshani Gamage
Hi Devs,

Following steps in [1], I tried login to travelocity.com app using facebook
credentials. I followed the all the steps in the document correctly. But
travelocity.com app doesn't redirect to Facebook login page.

IS server version and facebook API version are mentioned in below.

*IS server version - IS-5.1.0* ( build from the latest github code)
*Facebook API version - v2.4*

Are there any additional steps, should I follow to fix $subject?

[1].
https://docs.wso2.com/display/IS500/Logging+into+the+Identity+Server+using+Facebook+Credentials

Thanks,
-- 
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


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

2015-09-24 Thread Kasun De Silva
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  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
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Identity] traveolcity.com app doesn't redirect to Facebook login page.

2015-09-24 Thread Hasanthi Purnima Dissanayake
Hi Lakshani,

In IS-5.1.0 when you are adding FB as a federated authenticator you need to
enter comma-separated user information fields you want to retrieve in 'User
Information Fields' textbox. By using this parameter IS sends a query param
named 'feilds' to Facebook. Though the previous FB API versions supported
without 'feilds' parameter, the latest API (v2.4) expects this. The
documentation you followed was for IS 5.0 and for the FB APIs before v2.4
the steps are perfectly fine.

Thanks

Hasanthi Dissanayake

Software Engineer | WSO2

E: hasan...@wso2.com 
M :0718407133| http://wso2.com 

On Thu, Sep 24, 2015 at 3:01 PM, Lakshani Gamage  wrote:

> Hi Devs,
>
> Following steps in [1], I tried login to travelocity.com app using
> facebook credentials. I followed the all the steps in the document
> correctly. But travelocity.com app doesn't redirect to Facebook login
> page.
>
> IS server version and facebook API version are mentioned in below.
>
> *IS server version - IS-5.1.0* ( build from the latest github code)
> *Facebook API version - v2.4*
>
> Are there any additional steps, should I follow to fix $subject?
>
> [1].
> https://docs.wso2.com/display/IS500/Logging+into+the+Identity+Server+using+Facebook+Credentials
>
> Thanks,
> --
> 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


[Dev] [DEV] [IS] [Oauth] Clarification on the issue with SAML2 bearer type accesstoken genaration

2015-09-24 Thread Kavitha Subramaniyam
Hi team,

I have tried SAML bearer in tenant mode and it is failing for signature
validation. I have followed below steps to produce this:

- SP created for travelocity.com and an app for oauth(here myapp2)
- Exported public certificate of the private key used at webapp side (here
wso2carbon.cer) and imported this to tenant keystore.
- Imported public key of tenant (here test.com) to webapp's keystore.
- Modified travelocity.properties according to configurations.

and the error log shows [2]

Find the SAML configuration in attachment and jira has been raised for this
[1]

I could not get the point why this is failing and appreciate if anyone can
clarify this issue.

[1] https://wso2.org/jira/browse/IDENTITY-3625

[2] -

[2015-09-24 14:21:59,074] DEBUG
{org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
 Received a request : /oauth2/token
[2015-09-24 14:21:59,074] DEBUG
{org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
 --logging request headers.--
[2015-09-24 14:21:59,074] DEBUG
{org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
 content-type : application/x-www-form-urlencoded
[2015-09-24 14:21:59,075] DEBUG
{org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
 authorization : Basic
bUdxWFNNdDd4RHhLNzEycjlHTEhMUFJMQUxRYTp4al9XWUdnb3F6cFN0VURKaTBNRDRnTm1QQ2Nh
[2015-09-24 14:21:59,075] DEBUG
{org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
 cache-control : no-cache
[2015-09-24 14:21:59,075] DEBUG
{org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
 pragma : no-cache
[2015-09-24 14:21:59,075] DEBUG
{org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
 user-agent : Java/1.7.0_80
[2015-09-24 14:21:59,075] DEBUG
{org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -  host
: localhost:9443
[2015-09-24 14:21:59,075] DEBUG
{org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
 accept : text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
[2015-09-24 14:21:59,075] DEBUG
{org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
 connection : keep-alive
[2015-09-24 14:21:59,076] DEBUG
{org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
 content-length : 4437
[2015-09-24 14:21:59,076] DEBUG
{org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
 --logging request parameters.--
[2015-09-24 14:21:59,076] DEBUG
{org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
 grant_type - urn:ietf:params:oauth:grant-type:saml2-bearer
[2015-09-24 14:21:59,076] DEBUG
{org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
 client_id - null
[2015-09-24 14:21:59,076] DEBUG
{org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -  code
- null
[2015-09-24 14:21:59,076] DEBUG
{org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
 redirect_uri - null
[2015-09-24 14:21:59,077] DEBUG
{org.wso2.carbon.identity.oauth2.OAuth2Service} -  Access Token request
received for Client ID mGqXSMt7xDxK712r9GLHLPRLALQa, User ID null, Scope :
[] and Grant Type : urn:ietf:params:oauth:grant-type:saml2-bearer
[2015-09-24 14:21:59,077] DEBUG
{org.wso2.carbon.identity.oauth2.token.handlers.clientauth.AbstractClientAuthHandler}
-  Can authenticate with client ID and Secret. Client ID:
mGqXSMt7xDxK712r9GLHLPRLALQa
[2015-09-24 14:21:59,077] DEBUG
{org.wso2.carbon.identity.oauth2.token.handlers.clientauth.AbstractClientAuthHandler}
-  Grant type : urn:ietf:params:oauth:grant-type:saml2-bearer Strict client
validation set to : null
[2015-09-24 14:21:59,078] DEBUG
{org.wso2.carbon.identity.oauth2.util.OAuth2Util} -  Client credentials
were available in the cache for client id : mGqXSMt7xDxK712r9GLHLPRLALQa
[2015-09-24 14:21:59,079] DEBUG
{org.wso2.carbon.identity.oauth2.util.OAuth2Util} -  Successfully
authenticated the client with client id : mGqXSMt7xDxK712r9GLHLPRLALQa
[2015-09-24 14:21:59,080] DEBUG
{org.wso2.carbon.identity.oauth2.token.handlers.grant.saml.SAML2BearerGrantHandler}
-  Received SAML assertion : localhosthttp://www.w3.org/2000/09/xmldsig#";>http://www.w3.org/2001/10/xml-exc-c14n#"/>http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>http://www.w3.org/2001/10/xml-exc-c14n#"/>http://www.w3.org/2000/09/xmldsig#sha1"/>ujddpzz54/lv07FWlH4BnDux0a0=R+oV4MGmMJSQTEA8W7Z+MzgoTHQ0gT14wSfu6y2BwpaJ4A6a52C2VV88+6Ux/z6D+eD/vk+rPKdSa6m/rrktZ5/LlGIcoUOfm+GKISA5sF8hMWOMlN5zsGqBAEd1FXoDDOjH61v0YZqwaPHe+6Tjur37Ns+Qe0ij+y676PbvYsk=MIICBTCCAW6gAwIBAgIElJ+ePTANBgkqhkiG9w0BAQQFADBHMREwDwYDVQQDEwh0ZXN0LmNvbTENMAsGA1UECxMETm9uZTEUMBIGA1UEChMLTm9uZSBMPU5vbmUxDTALBgNVBAYTBE5vbmUwHhcNMTUwODIxMTEzMzAxWhcNMjUwOTE3MTEzMzAxWjBHMREwDwYDVQQDEwh0ZXN0LmNvbTENMAsGA1UECxMETm9uZTEUMBIGA1UEChMLTm9uZSBMPU5vbmUxDTALBgNVBAYTBE5vbmUwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALApNnyqzdZrbJzG12idPOjuqsKe0wrLiPie24Wx5qjQlEuUfeNtt3BWd8vs4Wi85p9GQaJbmkGq

Re: [Dev] [Identity] traveolcity.com app doesn't redirect to Facebook login page.

2015-09-24 Thread Lakshani Gamage
Hi Hasanthi & Tharindu,

Thanks for the quick response.

Regards,
Lakshani

On Thu, Sep 24, 2015 at 3:19 PM, Tharindu Edirisinghe 
wrote:

> Hi Lakshani,
>
> I tested the same and it is working. I have attached the screenshots of
> the config I used. Can you try it and confirm.
>
> Regards,
> Tharindu
>
> On Thu, Sep 24, 2015 at 3:01 PM, Lakshani Gamage 
> wrote:
>
>> Hi Devs,
>>
>> Following steps in [1], I tried login to travelocity.com app using
>> facebook credentials. I followed the all the steps in the document
>> correctly. But travelocity.com app doesn't redirect to Facebook login
>> page.
>>
>> IS server version and facebook API version are mentioned in below.
>>
>> *IS server version - IS-5.1.0* ( build from the latest github code)
>> *Facebook API version - v2.4*
>>
>> Are there any additional steps, should I follow to fix $subject?
>>
>> [1].
>> https://docs.wso2.com/display/IS500/Logging+into+the+Identity+Server+using+Facebook+Credentials
>>
>> Thanks,
>> --
>> 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
>>
>>
>
>
> --
>
> Tharindu Edirisinghe
> Software Engineer | WSO2 Inc
> Identity Server Team
> Blog : tharindue.blogspot.com
> mobile : +94 775 181586
>
>
>


-- 
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


[Dev] WSO2 Committers += Milan Harindu Perera

2015-09-24 Thread Prabath Abeysekera
 Hi Everyone,

It's my pleasure to welcome Milan Harindu Perera as a WSO2 Committer. Milan
has been a key member of the EMM/CDM-F team contributing immensely to many
aspects of product development ever since he joined us. In recognition of
his contributions, ownership shown towards the tasks/responsibilities
assigned to him, and commitment, he's been voted as a WSO2 committer.

Milan, Welcome aboard and keep up the awesome work!



Cheers,
Prabath
--
Prabath Abeysekara
Technical Lead
WSO2 Inc.
Email: praba...@wso2.com
Mobile: +94774171471
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [UX] [Carbon-jira] [jira] (IDENTITY-3528) Error while adding datepicker for selecting date range with jquery 1.6.0

2015-09-24 Thread Chamila Wijayarathna
Hi Dakshika/ UX-team,

We are having the issue mentioned in IDENTITY-3525, this is a blocker for
IS 5.1.0 release.
Can someone from UX team look into this ASAP?

Thanks


-- Forwarded message --
From: Chamila Wijayarathna (JIRA) 
Date: Fri, Aug 21, 2015 at 4:29 PM
Subject: [Carbon-jira] [jira] (IDENTITY-3528) Error while adding datepicker
for selecting date range with jquery 1.6.0
To: carbon-j...@wso2.org


Chamila Wijayarathna

created [image: Bug] IDENTITY-3528

*Error while adding datepicker for selecting date range with jquery 1.6.0*

*Issue Type:* [image: Bug] Bug *Assignee:* Thusitha Kalugamage

*Components:* workflows *Created:* 21/Aug/15 4:29 PM *Description:*

This issue can be reproduced in current master branch of github. In
monitor-> workflow requests page, in date picker there, when onClose called
for one time, calander is not shown again, it shows input field as a test
box.
*Project:* WSO2 Identity Server 
*Priority:* [image: Normal] Normal *Reporter:* Chamila Wijayarathna
 This
message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA
administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

___
Carbon-jira mailing list
carbon-j...@wso2.org
https://wso2.org/cgi-bin/mailman/listinfo/carbon-jira




-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [CEP] "order by" clause in SiddhiQL

2015-09-24 Thread Maheshakya Wijewardena
Hi,

Does SiddhiQL support "ORDER BY" statement? I couldn't find that in the
documentation[1].

Best regards,

[1] https://docs.wso2.com/display/CEP400/SiddhiQL+Guide+3.0

-- 
Pruthuvi Maheshakya Wijewardena
Software Engineer
WSO2 : http://wso2.com/
Email: mahesha...@wso2.com
Mobile: +94711228855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ML] Accuracy Measure for Anomaly Detection?

2015-09-24 Thread Supun Sethunga
Hi Ashen,

In probabilistic models, what we do is, compare the predicted output of a
new data-point, against a cutoff probability, to decide which class it
belongs to. And this cutoff probability is decided by the user, hence has
the freedom to change from 0 to 1. So for a set of newly-arrived data
points, we can change the "cutoff probability" for any number of times
(between 0-1) and find a series of confusion matrices.

But in this case, (From what understood from the other mail thread, the
logic applied here is..) you first cluster the data, then for each incoming
data, you find the nearest cluster, then compare the distance between the
new point and the cluster's center, with the cluster-boundary. (please
correct me if i've mistaken). So we have only one static value as the class
boundary, and hence cannot have a series of confusion matrices. (which
means no ROC). But again, in the other mail thread you mentioned "*select
the* *percentile value from distances of each clusters as their cluster
boundaries*", Im not really sure what that "percentile" value is, but if
this is a volatile value or a user preferred value, I think we can change
that and do a similar thing as in the probabilistic case..  This means we
are  changing the cluster boundaries and see how the accuracy (or the
measurement statistics) change.

Regards,
Supun


On Wed, Sep 23, 2015 at 9:17 AM, Ashen Weerathunga  wrote:

> Hi all,
>
> Thanks Mahesan for the suggestion. yes we can give all the measure if It
> is better.
>
> But there is some problem of drawing PR curve or ROC curve. Since we can
> get only one point using the confusion matrix we cant give PR curve or ROC
> curve in the summary of the model. Currently ROC curve provided only in
> probabilistic classification methods. It's also calculated using the model
> itself. But in this scenario we use K means algorithm. after generating the
> clusters we evaluate the model using the test data according to the
> percentile value that user provided. So as a result we can get the
> confusion matrix which consist of TP,TN,FP,FN. But to draw a PR curve or
> ROC curve that is not enough. Does anyone have any suggestions about that?
> or should we drop it?
>
> On Mon, Sep 21, 2015 at 7:05 AM, Sinnathamby Mahesan  > wrote:
>
>> Ashen
>> Here is a situation:
>> Doctors  are testing a person for a disease, say, d.
>> Doctor's point of view +ve means  patient has (d)
>>
>> Which is of the following is worse than the other?
>> (1) The person who does NOT  have (d)  is identified as having (d)  -
>>  (that is, false  positive )
>> (2) The person who does have (d) is identified as NOT having (d)   -
>>  (that is, false negative)
>>
>> Doctors  argument is that  we have to be more concern on reducing case
>>  (2)
>> That is to say,  the sensitivity needs to be high.
>>
>> Anyway, I also thought it is better to display all measures :
>> sensitivity, specificity, precision and F1-Score
>> (suggesting to consider sensitivity for the case of  anomalous being
>> positive.
>>
>> Good Luck
>> Mahesan
>>
>>
>> On 18 September 2015 at 15:27, Ashen Weerathunga  wrote:
>>
>>> Hi all.
>>>
>>> Since we are considering the anomaly detection true positive would be a
>>> case where a true anomaly detected as a anomaly by the model. Since in the
>>> real world scenario of anomaly detection as you said the positive(anomaly)
>>> instances are vary rare we can't go for more general measure. So I can
>>> summarized the most applicable measures as below,
>>>
>>>- Sensitivity(recall) - gives the True Positive Rate. ( TP/(TP + FN)
>>>)
>>>- Precision - gives the probability of predicting a True Positive
>>>from all positive predictions ( TP/(TP+FP) )
>>>- PR cure - Precision recall(Sensitivity) curve - PR curve plots
>>>Precision Vs. Recall.
>>>- F1 score - gives the harmonic mean of Precision and
>>>Sensitivity(recall) ( 2TP / (2TP + FP + FN) )
>>>
>>> So Precision and the Sensitivity are the most suitable measures to
>>> measure a model where positive instances are very less. And PR curve and F1
>>> score are mixtures of both Sensitivity and Precision. So PR curve and F1
>>> score can be used to tell how good is the model IMO. We can give
>>> Sensitivity and Precision also separately.
>>>
>>> Thanks everyone for the support.
>>>
>>> @Srinath, sure, I will write an article.
>>>
>>>
>>> Thanks and Regards,
>>>
>>> Ashen
>>>
>>> On Thu, Sep 17, 2015 at 10:19 AM, madhuka udantha <
>>> madhukaudan...@gmail.com> wrote:
>>>
 Hi,

 This is good survey paper that can be found regard to Anomaly detection
 [1], According to your need; it seems you will no need to go through whole
 the survey papers. But few sub topics will be very useful for you. This
 paper will be useful for your work.

 [1] Varun Chandola, Arindam Banerjee, and Vipin Kumar. 2009. Anomaly
 detection: A survey. ACM Comput. Surv. 41, 3, Article 15 (July 2009), 58
 pages. DOI=10.1145/1541880.1

Re: [Dev] [ML] Accuracy Measure for Anomaly Detection?

2015-09-24 Thread Supun Sethunga
>
> ...test data according to the percentile value that user provided.


Sorry I missed this part. If so, can't we not ask the user the percentile,
but instead create the ROC and let him decide the best percentile looking
at the ROC?

On Thu, Sep 24, 2015 at 10:26 AM, Supun Sethunga  wrote:

> Hi Ashen,
>
> In probabilistic models, what we do is, compare the predicted output of a
> new data-point, against a cutoff probability, to decide which class it
> belongs to. And this cutoff probability is decided by the user, hence has
> the freedom to change from 0 to 1. So for a set of newly-arrived data
> points, we can change the "cutoff probability" for any number of times
> (between 0-1) and find a series of confusion matrices.
>
> But in this case, (From what understood from the other mail thread, the
> logic applied here is..) you first cluster the data, then for each incoming
> data, you find the nearest cluster, then compare the distance between the
> new point and the cluster's center, with the cluster-boundary. (please
> correct me if i've mistaken). So we have only one static value as the class
> boundary, and hence cannot have a series of confusion matrices. (which
> means no ROC). But again, in the other mail thread you mentioned "*select
> the* *percentile value from distances of each clusters as their cluster
> boundaries*", Im not really sure what that "percentile" value is, but if
> this is a volatile value or a user preferred value, I think we can change
> that and do a similar thing as in the probabilistic case..  This means we
> are  changing the cluster boundaries and see how the accuracy (or the
> measurement statistics) change.
>
> Regards,
> Supun
>
>
> On Wed, Sep 23, 2015 at 9:17 AM, Ashen Weerathunga  wrote:
>
>> Hi all,
>>
>> Thanks Mahesan for the suggestion. yes we can give all the measure if It
>> is better.
>>
>> But there is some problem of drawing PR curve or ROC curve. Since we can
>> get only one point using the confusion matrix we cant give PR curve or ROC
>> curve in the summary of the model. Currently ROC curve provided only in
>> probabilistic classification methods. It's also calculated using the model
>> itself. But in this scenario we use K means algorithm. after generating the
>> clusters we evaluate the model using the test data according to the
>> percentile value that user provided. So as a result we can get the
>> confusion matrix which consist of TP,TN,FP,FN. But to draw a PR curve or
>> ROC curve that is not enough. Does anyone have any suggestions about that?
>> or should we drop it?
>>
>> On Mon, Sep 21, 2015 at 7:05 AM, Sinnathamby Mahesan <
>> sinnatha...@wso2.com> wrote:
>>
>>> Ashen
>>> Here is a situation:
>>> Doctors  are testing a person for a disease, say, d.
>>> Doctor's point of view +ve means  patient has (d)
>>>
>>> Which is of the following is worse than the other?
>>> (1) The person who does NOT  have (d)  is identified as having (d)  -
>>>  (that is, false  positive )
>>> (2) The person who does have (d) is identified as NOT having (d)   -
>>>  (that is, false negative)
>>>
>>> Doctors  argument is that  we have to be more concern on reducing case
>>>  (2)
>>> That is to say,  the sensitivity needs to be high.
>>>
>>> Anyway, I also thought it is better to display all measures :
>>> sensitivity, specificity, precision and F1-Score
>>> (suggesting to consider sensitivity for the case of  anomalous being
>>> positive.
>>>
>>> Good Luck
>>> Mahesan
>>>
>>>
>>> On 18 September 2015 at 15:27, Ashen Weerathunga  wrote:
>>>
 Hi all.

 Since we are considering the anomaly detection true positive would be a
 case where a true anomaly detected as a anomaly by the model. Since in the
 real world scenario of anomaly detection as you said the positive(anomaly)
 instances are vary rare we can't go for more general measure. So I can
 summarized the most applicable measures as below,

- Sensitivity(recall) - gives the True Positive Rate. ( TP/(TP +
FN) )
- Precision - gives the probability of predicting a True Positive
from all positive predictions ( TP/(TP+FP) )
- PR cure - Precision recall(Sensitivity) curve - PR curve plots
Precision Vs. Recall.
- F1 score - gives the harmonic mean of Precision and
Sensitivity(recall) ( 2TP / (2TP + FP + FN) )

 So Precision and the Sensitivity are the most suitable measures to
 measure a model where positive instances are very less. And PR curve and F1
 score are mixtures of both Sensitivity and Precision. So PR curve and F1
 score can be used to tell how good is the model IMO. We can give
 Sensitivity and Precision also separately.

 Thanks everyone for the support.

 @Srinath, sure, I will write an article.


 Thanks and Regards,

 Ashen

 On Thu, Sep 17, 2015 at 10:19 AM, madhuka udantha <
 madhukaudan...@gmail.com> wrote:

> Hi,
>
> This is g

[Dev] problem in integrating g-reg with svn

2015-09-24 Thread Akila Nimantha [IT/EKO/LOITS]
Hi all,

I want to know if the SCM configuration in the registry.xml of wso2 governance 
registry allows to synchronize with the subversion repository.

I used below SCM code in registry.xml, but it's not working. There is no 
specific server log in registry carbon log.

[cid:image001.png@01D0F6F6.F9319BB0]


And I want to know what should I give the checkOutURL and workingDir parameters.



Also I have gone thorough below documentation but it's not succeeded,
https://docs.wso2.com/pages/viewpage.action?pageId=22185063


Best Regards,

Akila Rathnayake
Software Engineer
http://legendans.blogspot.com



This message (including any attachments) is intended only for
the use of the individual or entity to which it is addressed and
may contain information that is non-public, proprietary,
privileged, confidential, and exempt from disclosure under
applicable law or may constitute as attorney work product.
If you are not the intended recipient, you are hereby notified
that any use, dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this
communication in error, notify us immediately by telephone and
(i) destroy this message if a facsimile or (ii) delete this message
immediately if this is an electronic communication.

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


Re: [Dev] [CEP] "order by" clause in SiddhiQL

2015-09-24 Thread Lasantha Fernando
Hi Maheshakya,

Ordering of events for real-time analytics need to be done within a time
frame or an event frame. Siddhi does have a sort window processor that can
be used to sort events within the window itself.

You can find the documentation at [1] or refer to our test cases at [2]. If
you can describe your use case in more detail, we might be able to point
you to some constructs in Siddhi language that would let you achieve the
'order by' characteristics of a standard SQL query.

[1]
https://docs.wso2.com/display/CEP400/Inbuilt+Windows#InbuiltWindows-sortsort
[2]
https://github.com/wso2/siddhi/blob/master/modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/window/SortWindowTestCase.java

Thanks,
Lasantha

On 24 September 2015 at 18:13, Maheshakya Wijewardena 
wrote:

> Hi,
>
> Does SiddhiQL support "ORDER BY" statement? I couldn't find that in the
> documentation[1].
>
> Best regards,
>
> [1] https://docs.wso2.com/display/CEP400/SiddhiQL+Guide+3.0
>
> --
> Pruthuvi Maheshakya Wijewardena
> Software Engineer
> WSO2 : http://wso2.com/
> Email: mahesha...@wso2.com
> Mobile: +94711228855
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Lasantha Fernando*
Senior Software Engineer - Data Technologies Team
WSO2 Inc. http://wso2.com

email: lasan...@wso2.com
mobile: (+94) 71 5247551
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Kathees Rajendram

2015-09-24 Thread Malaka Silva
Hi Devs,

Its my pleasure to welcome Kathees Rajendram as a WSO2 Committer.

Kathees has been a key member of the Platform Extensions Team (Earlier
Connector Team) contributing immensely to many aspects ESB Connectors, IS
Connectors and ESB product development ever since he joined us. In
recognition of his contributions, ownership shown towards the
tasks/responsibilities assigned to him, and dedication.

Kathees, welcome aboard and keep up the good work .. !

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/


Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Kathees Rajendram

2015-09-24 Thread Keerthika Mahendralingam
Congratulations Kathees :)

On Thu, Sep 24, 2015 at 9:31 PM, Malaka Silva  wrote:

> Hi Devs,
>
> Its my pleasure to welcome Kathees Rajendram as a WSO2 Committer.
>
> Kathees has been a key member of the Platform Extensions Team (Earlier
> Connector Team) contributing immensely to many aspects ESB Connectors, IS
> Connectors and ESB product development ever since he joined us. In
> recognition of his contributions, ownership shown towards the
> tasks/responsibilities assigned to him, and dedication.
>
> Kathees, welcome aboard and keep up the good work .. !
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

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


Re: [Dev] WSO2 Committers += Kathees Rajendram

2015-09-24 Thread Viraj Senevirathne
congratz Kathees

On Thu, Sep 24, 2015 at 9:32 PM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Congratulations Kathees :)
>
> On Thu, Sep 24, 2015 at 9:31 PM, Malaka Silva  wrote:
>
>> Hi Devs,
>>
>> Its my pleasure to welcome Kathees Rajendram as a WSO2 Committer.
>>
>> Kathees has been a key member of the Platform Extensions Team (Earlier
>> Connector Team) contributing immensely to many aspects ESB Connectors, IS
>> Connectors and ESB product development ever since he joined us. In
>> recognition of his contributions, ownership shown towards the
>> tasks/responsibilities assigned to him, and dedication.
>>
>> Kathees, welcome aboard and keep up the good work .. !
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> email only if it is absolutely necessary.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 
> 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
>
>


-- 
Viraj Senevirathne
Software Engineer; WSO2, Inc.

Mobile : +94 71 958 0269
Email : vir...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [IS] [Oauth] Clarification on the issue with SAML2 bearer type accesstoken genaration

2015-09-24 Thread Maduranga Siriwardena
Hi Kavitha,

By going through your configurations in travelocity.properties , I noticed
few missing and incorrect configurations.

#OAuth2 token endpoint URL
OAuth2.TokenURL=https://localhost:9443/oauth2/token?tenantDomain=test.com

#Additional request parameters
QueryParams=tenantDomain=test.com

Please add these properties and check your user case works.

Thanks,
Maduranga.

On Thu, Sep 24, 2015 at 3:17 PM, Kavitha Subramaniyam 
wrote:

> Hi team,
>
> I have tried SAML bearer in tenant mode and it is failing for signature
> validation. I have followed below steps to produce this:
>
> - SP created for travelocity.com and an app for oauth(here myapp2)
> - Exported public certificate of the private key used at webapp side (here
> wso2carbon.cer) and imported this to tenant keystore.
> - Imported public key of tenant (here test.com) to webapp's keystore.
> - Modified travelocity.properties according to configurations.
>
> and the error log shows [2]
>
> Find the SAML configuration in attachment and jira has been raised for
> this [1]
>
> I could not get the point why this is failing and appreciate if anyone can
> clarify this issue.
>
> [1] https://wso2.org/jira/browse/IDENTITY-3625
>
> [2] -
>
> [2015-09-24 14:21:59,074] DEBUG
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>  Received a request : /oauth2/token
> [2015-09-24 14:21:59,074] DEBUG
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>  --logging request headers.--
> [2015-09-24 14:21:59,074] DEBUG
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>  content-type : application/x-www-form-urlencoded
> [2015-09-24 14:21:59,075] DEBUG
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>  authorization : Basic
> bUdxWFNNdDd4RHhLNzEycjlHTEhMUFJMQUxRYTp4al9XWUdnb3F6cFN0VURKaTBNRDRnTm1QQ2Nh
> [2015-09-24 14:21:59,075] DEBUG
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>  cache-control : no-cache
> [2015-09-24 14:21:59,075] DEBUG
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>  pragma : no-cache
> [2015-09-24 14:21:59,075] DEBUG
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>  user-agent : Java/1.7.0_80
> [2015-09-24 14:21:59,075] DEBUG
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -  host
> : localhost:9443
> [2015-09-24 14:21:59,075] DEBUG
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>  accept : text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
> [2015-09-24 14:21:59,075] DEBUG
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>  connection : keep-alive
> [2015-09-24 14:21:59,076] DEBUG
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>  content-length : 4437
> [2015-09-24 14:21:59,076] DEBUG
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>  --logging request parameters.--
> [2015-09-24 14:21:59,076] DEBUG
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>  grant_type - urn:ietf:params:oauth:grant-type:saml2-bearer
> [2015-09-24 14:21:59,076] DEBUG
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>  client_id - null
> [2015-09-24 14:21:59,076] DEBUG
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -  code
> - null
> [2015-09-24 14:21:59,076] DEBUG
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>  redirect_uri - null
> [2015-09-24 14:21:59,077] DEBUG
> {org.wso2.carbon.identity.oauth2.OAuth2Service} -  Access Token request
> received for Client ID mGqXSMt7xDxK712r9GLHLPRLALQa, User ID null, Scope :
> [] and Grant Type : urn:ietf:params:oauth:grant-type:saml2-bearer
> [2015-09-24 14:21:59,077] DEBUG
> {org.wso2.carbon.identity.oauth2.token.handlers.clientauth.AbstractClientAuthHandler}
> -  Can authenticate with client ID and Secret. Client ID:
> mGqXSMt7xDxK712r9GLHLPRLALQa
> [2015-09-24 14:21:59,077] DEBUG
> {org.wso2.carbon.identity.oauth2.token.handlers.clientauth.AbstractClientAuthHandler}
> -  Grant type : urn:ietf:params:oauth:grant-type:saml2-bearer Strict client
> validation set to : null
> [2015-09-24 14:21:59,078] DEBUG
> {org.wso2.carbon.identity.oauth2.util.OAuth2Util} -  Client credentials
> were available in the cache for client id : mGqXSMt7xDxK712r9GLHLPRLALQa
> [2015-09-24 14:21:59,079] DEBUG
> {org.wso2.carbon.identity.oauth2.util.OAuth2Util} -  Successfully
> authenticated the client with client id : mGqXSMt7xDxK712r9GLHLPRLALQa
> [2015-09-24 14:21:59,080] DEBUG
> {org.wso2.carbon.identity.oauth2.token.handlers.grant.saml.SAML2BearerGrantHandler}
> -  Received SAML assertion :  encoding="UTF-8"?> xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
> ID="ceenhgjbpllaoakdoelhcanhedoappakdianaohb"
> IssueInstant="2015-09-24T08:51:18.439Z" Version="2.0"> Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">localhost xm

Re: [Dev] [CEP] "order by" clause in SiddhiQL

2015-09-24 Thread Maheshakya Wijewardena
Hi Lasantha,

Thank you for the references.

What I want to is something similar to the following:

Suppose you have an input stream and there are multiple number of
processing logics. Each logic will generate a result after consuming the
events the stream. What I'm trying to do is obtaining the most frequent
outcome out of these multiple processing logics. i.e. what result has been
produced most.

An approach to do this is: first group by each result, then order by the
descending order of the count of each result and finally retrieving the
first entry from that.

I was wondering whether this type of task can be done with Siddhi.


Best regards.

On Thu, Sep 24, 2015 at 8:34 PM, Lasantha Fernando 
wrote:

> Hi Maheshakya,
>
> Ordering of events for real-time analytics need to be done within a time
> frame or an event frame. Siddhi does have a sort window processor that can
> be used to sort events within the window itself.
>
> You can find the documentation at [1] or refer to our test cases at [2].
> If you can describe your use case in more detail, we might be able to point
> you to some constructs in Siddhi language that would let you achieve the
> 'order by' characteristics of a standard SQL query.
>
> [1]
> https://docs.wso2.com/display/CEP400/Inbuilt+Windows#InbuiltWindows-sortsort
> [2]
> https://github.com/wso2/siddhi/blob/master/modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/window/SortWindowTestCase.java
>
> Thanks,
> Lasantha
>
> On 24 September 2015 at 18:13, Maheshakya Wijewardena  > wrote:
>
>> Hi,
>>
>> Does SiddhiQL support "ORDER BY" statement? I couldn't find that in the
>> documentation[1].
>>
>> Best regards,
>>
>> [1] https://docs.wso2.com/display/CEP400/SiddhiQL+Guide+3.0
>>
>> --
>> Pruthuvi Maheshakya Wijewardena
>> Software Engineer
>> WSO2 : http://wso2.com/
>> Email: mahesha...@wso2.com
>> Mobile: +94711228855
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Lasantha Fernando*
> Senior Software Engineer - Data Technologies Team
> WSO2 Inc. http://wso2.com
>
> email: lasan...@wso2.com
> mobile: (+94) 71 5247551
>



-- 
Pruthuvi Maheshakya Wijewardena
Software Engineer
WSO2 : http://wso2.com/
Email: mahesha...@wso2.com
Mobile: +94711228855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP] "order by" clause in SiddhiQL

2015-09-24 Thread Maheshakya Wijewardena
>
> An approach to do this is: first group by each result, then order by the
> descending order of the count of each result and finally retrieving the
> first entry from that.
>

Sorry, the approach should be as follows:
First group by result, then order by the descending order of the count of
each result and finally retrieving the first entry from that.

On Thu, Sep 24, 2015 at 9:50 PM, Maheshakya Wijewardena  wrote:

> Hi Lasantha,
>
> Thank you for the references.
>
> What I want to is something similar to the following:
>
> Suppose you have an input stream and there are multiple number of
> processing logics. Each logic will generate a result after consuming the
> events the stream. What I'm trying to do is obtaining the most frequent
> outcome out of these multiple processing logics. i.e. what result has been
> produced most.
>
> An approach to do this is: first group by each result, then order by the
> descending order of the count of each result and finally retrieving the
> first entry from that.
>
> I was wondering whether this type of task can be done with Siddhi.
>
>
> Best regards.
>
> On Thu, Sep 24, 2015 at 8:34 PM, Lasantha Fernando 
> wrote:
>
>> Hi Maheshakya,
>>
>> Ordering of events for real-time analytics need to be done within a time
>> frame or an event frame. Siddhi does have a sort window processor that can
>> be used to sort events within the window itself.
>>
>> You can find the documentation at [1] or refer to our test cases at [2].
>> If you can describe your use case in more detail, we might be able to point
>> you to some constructs in Siddhi language that would let you achieve the
>> 'order by' characteristics of a standard SQL query.
>>
>> [1]
>> https://docs.wso2.com/display/CEP400/Inbuilt+Windows#InbuiltWindows-sortsort
>> [2]
>> https://github.com/wso2/siddhi/blob/master/modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/window/SortWindowTestCase.java
>>
>> Thanks,
>> Lasantha
>>
>> On 24 September 2015 at 18:13, Maheshakya Wijewardena <
>> mahesha...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Does SiddhiQL support "ORDER BY" statement? I couldn't find that in the
>>> documentation[1].
>>>
>>> Best regards,
>>>
>>> [1] https://docs.wso2.com/display/CEP400/SiddhiQL+Guide+3.0
>>>
>>> --
>>> Pruthuvi Maheshakya Wijewardena
>>> Software Engineer
>>> WSO2 : http://wso2.com/
>>> Email: mahesha...@wso2.com
>>> Mobile: +94711228855
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Lasantha Fernando*
>> Senior Software Engineer - Data Technologies Team
>> WSO2 Inc. http://wso2.com
>>
>> email: lasan...@wso2.com
>> mobile: (+94) 71 5247551
>>
>
>
>
> --
> Pruthuvi Maheshakya Wijewardena
> Software Engineer
> WSO2 : http://wso2.com/
> Email: mahesha...@wso2.com
> Mobile: +94711228855
>
>
>


-- 
Pruthuvi Maheshakya Wijewardena
Software Engineer
WSO2 : http://wso2.com/
Email: mahesha...@wso2.com
Mobile: +94711228855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP] "order by" clause in SiddhiQL

2015-09-24 Thread Sriskandarajah Suhothayan
I think this can be achieved using
https://docs.wso2.com/display/CEP400/Inbuilt+Windows#InbuiltWindows-sortsort

As this will collect sort and output the max or min value.

Suho

On Thu, Sep 24, 2015 at 9:58 PM, Maheshakya Wijewardena  wrote:

> An approach to do this is: first group by each result, then order by the
>> descending order of the count of each result and finally retrieving the
>> first entry from that.
>>
>
> Sorry, the approach should be as follows:
> First group by result, then order by the descending order of the count of
> each result and finally retrieving the first entry from that.
>
> On Thu, Sep 24, 2015 at 9:50 PM, Maheshakya Wijewardena <
> mahesha...@wso2.com> wrote:
>
>> Hi Lasantha,
>>
>> Thank you for the references.
>>
>> What I want to is something similar to the following:
>>
>> Suppose you have an input stream and there are multiple number of
>> processing logics. Each logic will generate a result after consuming the
>> events the stream. What I'm trying to do is obtaining the most frequent
>> outcome out of these multiple processing logics. i.e. what result has been
>> produced most.
>>
>> An approach to do this is: first group by each result, then order by the
>> descending order of the count of each result and finally retrieving the
>> first entry from that.
>>
>> I was wondering whether this type of task can be done with Siddhi.
>>
>>
>> Best regards.
>>
>> On Thu, Sep 24, 2015 at 8:34 PM, Lasantha Fernando 
>> wrote:
>>
>>> Hi Maheshakya,
>>>
>>> Ordering of events for real-time analytics need to be done within a time
>>> frame or an event frame. Siddhi does have a sort window processor that can
>>> be used to sort events within the window itself.
>>>
>>> You can find the documentation at [1] or refer to our test cases at [2].
>>> If you can describe your use case in more detail, we might be able to point
>>> you to some constructs in Siddhi language that would let you achieve the
>>> 'order by' characteristics of a standard SQL query.
>>>
>>> [1]
>>> https://docs.wso2.com/display/CEP400/Inbuilt+Windows#InbuiltWindows-sortsort
>>> [2]
>>> https://github.com/wso2/siddhi/blob/master/modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/window/SortWindowTestCase.java
>>>
>>> Thanks,
>>> Lasantha
>>>
>>> On 24 September 2015 at 18:13, Maheshakya Wijewardena <
>>> mahesha...@wso2.com> wrote:
>>>
 Hi,

 Does SiddhiQL support "ORDER BY" statement? I couldn't find that in the
 documentation[1].

 Best regards,

 [1] https://docs.wso2.com/display/CEP400/SiddhiQL+Guide+3.0

 --
 Pruthuvi Maheshakya Wijewardena
 Software Engineer
 WSO2 : http://wso2.com/
 Email: mahesha...@wso2.com
 Mobile: +94711228855



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


>>>
>>>
>>> --
>>> *Lasantha Fernando*
>>> Senior Software Engineer - Data Technologies Team
>>> WSO2 Inc. http://wso2.com
>>>
>>> email: lasan...@wso2.com
>>> mobile: (+94) 71 5247551
>>>
>>
>>
>>
>> --
>> Pruthuvi Maheshakya Wijewardena
>> Software Engineer
>> WSO2 : http://wso2.com/
>> Email: mahesha...@wso2.com
>> Mobile: +94711228855
>>
>>
>>
>
>
> --
> Pruthuvi Maheshakya Wijewardena
> Software Engineer
> WSO2 : http://wso2.com/
> Email: mahesha...@wso2.com
> Mobile: +94711228855
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*S. Suhothayan*
Technical Lead & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Regard Authorization token to BE

2015-09-24 Thread Vanjikumaran Sivajothy
Hi team,

AFAIK, false value in api-manager.xml property
"RemoveOAuthHeadersFromOutMessage" will allow the calls to send
the Authorization BE. However, is there anyway to restrict to certain APIs?



-- 
Vanjikumaran Sivajothy
*Associate Technical Lead*
*WSO2 Inc. http://wso2.com *
*USA Mobile **+1-812-361-1286*
*Srilanka Mobile:+94-777-219-209*
[image: Facebook]  [image: Twitter]
 [image: LinkedIn]
 [image:
Blogger]  [image: SlideShare]


This communication may contain privileged or other confidential information
and is intended exclusively for the addressee/s. If you are not the
intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print,
copy, re-transmit, disseminate, or otherwise use the information contained
in this communication. Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender does not accept liability
for any errors or omissions
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [UX] [Carbon-jira] [jira] (IDENTITY-3528) Error while adding datepicker for selecting date range with jquery 1.6.0

2015-09-24 Thread Dakshika Jayathilaka
Hi Chamila,

Yes we can help you on this. Can you share latest pack and other relevant
information.

Regards,

*Dakshika Jayathilaka*
PMC Member & Committer of Apache Stratos
Senior Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Thu, Sep 24, 2015 at 5:04 PM, Chamila Wijayarathna 
wrote:

> Hi Dakshika/ UX-team,
>
> We are having the issue mentioned in IDENTITY-3525, this is a blocker for
> IS 5.1.0 release.
> Can someone from UX team look into this ASAP?
>
> Thanks
>
>
> -- Forwarded message --
> From: Chamila Wijayarathna (JIRA) 
> Date: Fri, Aug 21, 2015 at 4:29 PM
> Subject: [Carbon-jira] [jira] (IDENTITY-3528) Error while adding
> datepicker for selecting date range with jquery 1.6.0
> To: carbon-j...@wso2.org
>
>
> Chamila Wijayarathna
> 
> created [image: Bug] IDENTITY-3528
> 
> *Error while adding datepicker for selecting date range with jquery 1.6.0*
> 
> *Issue Type:* [image: Bug] Bug *Assignee:* Thusitha Kalugamage
> 
> *Components:* workflows *Created:* 21/Aug/15 4:29 PM *Description:*
>
> This issue can be reproduced in current master branch of github. In
> monitor-> workflow requests page, in date picker there, when onClose called
> for one time, calander is not shown again, it shows input field as a test
> box.
> *Project:* WSO2 Identity Server 
> *Priority:* [image: Normal] Normal *Reporter:* Chamila Wijayarathna
>  This
> message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA
> administrators
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
> ___
> Carbon-jira mailing list
> carbon-j...@wso2.org
> https://wso2.org/cgi-bin/mailman/listinfo/carbon-jira
>
>
>
>
> --
> *Chamila Dilshan Wijayarathna,*
> Software Engineer
> Mobile:(+94)788193620
> WSO2 Inc., http://wso2.com/
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failed in Jenkins: carbon-deployment #717

2015-09-24 Thread Supun Malinga
This is due to an OOM error.

Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded


@Maheshika, How much memory have we allocated for this project?

On Fri, Sep 25, 2015 at 2:12 AM,  wrote:

> See 
>
> --
> [...truncated 13251 lines...]
> [INFO] [02:07:00.967] Execute Findbugs 2.0.3...
> [INFO] [02:07:01.000] Findbugs output report: <
> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/sonar/findbugs-result.xml
> >
> [INFO] [02:07:31.084] Execute Findbugs 2.0.3 done: 30117 ms
> [INFO] [02:07:31.085] Sensor FindbugsSensor done: 30119 ms
> [INFO] [02:07:31.086] Sensor InitialOpenIssuesSensor...
> [INFO] [02:07:31.962] Sensor InitialOpenIssuesSensor done: 876 ms
> [INFO] [02:07:31.962] Sensor ProjectLinksSensor...
> [INFO] [02:07:31.982] Sensor ProjectLinksSensor done: 20 ms
> [INFO] [02:07:31.982] Sensor VersionEventsSensor...
> [INFO] [02:07:31.990] Sensor VersionEventsSensor done: 8 ms
> [INFO] [02:07:31.990] Sensor FileHashSensor...
> [INFO] [02:07:31.991] Sensor FileHashSensor done: 1 ms
> [INFO] [02:07:31.991] Sensor SurefireSensor...
> [INFO] [02:07:31.991] parsing <
> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/surefire-reports
> >
> [WARN] [02:07:31.991] Reports path not found: <
> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/surefire-reports
> >
> [INFO] [02:07:31.991] Sensor SurefireSensor done: 0 ms
> [INFO] [02:07:31.991] Sensor Maven dependencies...
> [INFO] [02:07:33.685] Sensor Maven dependencies done: 1694 ms
> [INFO] [02:07:33.689] Sensor CPD Sensor (wrapped)...
> [INFO] [02:07:33.689] JavaCpdEngine is used for java
> [INFO] [02:07:33.689] Cross-project analysis disabled
> [INFO] [02:07:33.695] Sensor CPD Sensor (wrapped) done: 6 ms
> [INFO] [02:07:41.025] Execute decorators...
> [INFO] [02:07:41.107] -  Scan WSO2 Carbon - Spring Services
> Aggregator Module carbon-deployment
> [INFO] [02:07:41.109] Load module settings
> [INFO] [02:07:50.943] Configure Maven plugins
> [INFO] [02:07:50.947] Compare to previous analysis (2015-06-11)
> [INFO] [02:07:50.949] Compare over 30 days (2015-08-26, analysis of
> 2015-06-11 12:54:20.0)
> [INFO] [02:07:50.950] Compare to previous version (2015-06-11)
> [INFO] [02:07:50.951] No quality gate is configured.
> [INFO] [02:07:52.438] Initializer FindbugsMavenInitializer...
> [INFO] [02:07:52.438] Initializer FindbugsMavenInitializer done: 0 ms
> [INFO] [02:07:52.438] Base dir: <
> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services
> >
> [INFO] [02:07:52.438] Working dir: <
> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/target/sonar
> >
> [INFO] [02:07:52.438] Source encoding: UTF-8, default locale: en_US
> [INFO] [02:07:52.442] Sensor InitialOpenIssuesSensor...
> [INFO] [02:07:52.451] Sensor InitialOpenIssuesSensor done: 9 ms
> [INFO] [02:07:52.451] Sensor ProjectLinksSensor...
> [INFO] [02:07:52.471] Sensor ProjectLinksSensor done: 20 ms
> [INFO] [02:07:52.471] Sensor VersionEventsSensor...
> [INFO] [02:07:52.480] Sensor VersionEventsSensor done: 9 ms
> [INFO] [02:07:52.480] Sensor FileHashSensor...
> [INFO] [02:07:52.480] Sensor FileHashSensor done: 0 ms
> [INFO] [02:07:52.480] Sensor Maven dependencies...
> [INFO] [02:08:15.721] Sensor Maven dependencies done: 23241 ms
> [INFO] [02:08:15.725] Sensor CPD Sensor (wrapped)...
> [INFO] [02:08:15.725] Sensor CPD Sensor (wrapped) done: 0 ms
> [INFO] [02:08:47.833] Execute decorators...
> [INFO] [02:08:47.891] -  Scan WSO2 Carbon - BAM - Service Stat
> publisher carbon-deployment
> [INFO] [02:08:47.892] Load module settings
> [INFO]
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] WSO2 Carbon - Deployment Aggregator Pom ... FAILURE
> [5:08.017s]
> [INFO] WSO2 Carbon - Service Management Parent Module  SKIPPED
> [INFO] WSO2 Carbon - AAR Services Stub ... SKIPPED
> [INFO] WSO2 Carbon - JAR Services Stub ... SKIPPED
> [INFO] WSO2 Carbon - Spring Services Stub  SKIPPED
> [INFO] WSO2 Carbon - Axis2 Repository Management Stub  SKIPPED
> [INFO] WSO2 Carbon - Module Management Stub .. SKIPPED
> [INFO] WSO2 Carbon - Operation Management Stub ... SKIPPED
> [INFO] WSO2 Carbon - Service Management Stub . SKIPPED
> [INFO] WSO2 Carbon -  BAM - Service Stat publisher Stub .. SKIPPED
> [INFO] WSO2 Carbon - Webapp Management Parent Module . SKIPPED
> [INFO] WSO2 Carbon - Application Management Webapp Stub .. SKIPPED
> [INFO] WSO2 Carbon - Webapp Management Stub .. SKIPPED
> [INFO] WSO2 Carbon -  BAM - 

Re: [Dev] WSO2 Committers += Kathees Rajendram

2015-09-24 Thread Elilmatha Sivanesan
Congratulations Kathees :)


On Thu, Sep 24, 2015 at 9:46 PM, Viraj Senevirathne  wrote:

> congratz Kathees
>
> On Thu, Sep 24, 2015 at 9:32 PM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Congratulations Kathees :)
>>
>> On Thu, Sep 24, 2015 at 9:31 PM, Malaka Silva  wrote:
>>
>>> Hi Devs,
>>>
>>> Its my pleasure to welcome Kathees Rajendram as a WSO2 Committer.
>>>
>>> Kathees has been a key member of the Platform Extensions Team (Earlier
>>> Connector Team) contributing immensely to many aspects ESB Connectors, IS
>>> Connectors and ESB product development ever since he joined us. In
>>> recognition of his contributions, ownership shown towards the
>>> tasks/responsibilities assigned to him, and dedication.
>>>
>>> Kathees, welcome aboard and keep up the good work .. !
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Tech Lead
>>> M: +94 777 219 791
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>> Skype : malaka.sampath.silva
>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>> Blog : http://mrmalakasilva.blogspot.com/
>>>
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>> http://www.wso2.com/about/team/malaka-silva/
>>> 
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 
>> 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
>>
>>
>
>
> --
> Viraj Senevirathne
> Software Engineer; WSO2, Inc.
>
> Mobile : +94 71 958 0269
> Email : vir...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*S.Elilmatha*
Associate  Software Engineer,

WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] [UX] [Carbon-jira] [jira] (IDENTITY-3528) Error while adding datepicker for selecting date range with jquery 1.6.0

2015-09-24 Thread Chamila Wijayarathna
Hi Dakshika,'

The issue can be reproduced in IS-5.1.0-alpha pack which can be downloaded
from [1].
The jsp page relevant to this issue is at [2].
I have described how the issue can be reproduced at the above jira [3].
Please let me know if you need any further details on this.

Thanks


1. https://github.com/wso2/product-is/releases/tag/v5.1.0-alpha
2.
https://github.com/wso2/carbon-identity/blob/master/components/workflow-mgt/org.wso2.carbon.identity.workflow.mgt.ui/src/main/resources/web/workflow-mgt/wf-request-list.jsp
3. https://wso2.org/jira/browse/IDENTITY-3528

On Fri, Sep 25, 2015 at 6:26 AM, Dakshika Jayathilaka 
wrote:

> Hi Chamila,
>
> Yes we can help you on this. Can you share latest pack and other relevant
> information.
>
> Regards,
>
> *Dakshika Jayathilaka*
> PMC Member & Committer of Apache Stratos
> Senior Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Thu, Sep 24, 2015 at 5:04 PM, Chamila Wijayarathna 
> wrote:
>
>> Hi Dakshika/ UX-team,
>>
>> We are having the issue mentioned in IDENTITY-3525, this is a blocker for
>> IS 5.1.0 release.
>> Can someone from UX team look into this ASAP?
>>
>> Thanks
>>
>>
>> -- Forwarded message --
>> From: Chamila Wijayarathna (JIRA) 
>> Date: Fri, Aug 21, 2015 at 4:29 PM
>> Subject: [Carbon-jira] [jira] (IDENTITY-3528) Error while adding
>> datepicker for selecting date range with jquery 1.6.0
>> To: carbon-j...@wso2.org
>>
>>
>> Chamila Wijayarathna
>> 
>> created [image: Bug] IDENTITY-3528
>> 
>> *Error while adding datepicker for selecting date range with jquery 1.6.0*
>> 
>> *Issue Type:* [image: Bug] Bug *Assignee:* Thusitha Kalugamage
>> 
>> *Components:* workflows *Created:* 21/Aug/15 4:29 PM *Description:*
>>
>> This issue can be reproduced in current master branch of github. In
>> monitor-> workflow requests page, in date picker there, when onClose called
>> for one time, calander is not shown again, it shows input field as a test
>> box.
>> *Project:* WSO2 Identity Server 
>> *Priority:* [image: Normal] Normal *Reporter:* Chamila Wijayarathna
>>  This
>> message is automatically generated by JIRA.
>> If you think it was sent incorrectly, please contact your JIRA
>> administrators
>> For more information on JIRA, see: http://www.atlassian.com/software/jira
>>
>> ___
>> Carbon-jira mailing list
>> carbon-j...@wso2.org
>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-jira
>>
>>
>>
>>
>> --
>> *Chamila Dilshan Wijayarathna,*
>> Software Engineer
>> Mobile:(+94)788193620
>> WSO2 Inc., http://wso2.com/
>>
>
>


-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Regard Authorization token to BE

2015-09-24 Thread Sanjeewa Malalgoda
No vanji, currently there is no possible way of doing this per API.
If you need only option is remove it using custom sequence(enable sending
in global level and remove it per API).

Thanks,
sanjeewa.

On Fri, Sep 25, 2015 at 4:24 AM, Vanjikumaran Sivajothy 
wrote:

> Hi team,
>
> AFAIK, false value in api-manager.xml property
> "RemoveOAuthHeadersFromOutMessage" will allow the calls to send
> the Authorization BE. However, is there anyway to restrict to certain APIs?
>
>
>
> --
> Vanjikumaran Sivajothy
> *Associate Technical Lead*
> *WSO2 Inc. http://wso2.com *
> *USA Mobile **+1-812-361-1286*
> *Srilanka Mobile:+94-777-219-209*
> [image: Facebook]  [image: Twitter]
>  [image: LinkedIn]
>  [image:
> Blogger]  [image: SlideShare]
> 
>
> This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may
> have received this communication in error, please reply to the
> sender indicating that fact and delete the copy you received and in
> addition, you should not print, copy, re-transmit, disseminate, or
> otherwise use the information contained in this communication.
> Internet communications cannot be guaranteed to be timely, secure, error
> or virus-free. The sender does not accept liability for any errors
> or omissions
>



-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

blog
:http://sanjeewamalalgoda.blogspot.com/

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


Re: [Dev] [Vote] Release WSO2 Carbon Kernel 4.4.2 RC1

2015-09-24 Thread Indunil Upeksha Rathnayake
Hi,

The deadlock issue(https://wso2.org/jira/browse/MB-1326) come up in oracle
and mssql when clearResourceAuthorizations where permissions are deleted in
UM_ROLE_PERMISSIONS, UM_USER_PERMISSIONS and UM_PERMISSION tables through
one transaction. The fix would be using cascade delete for above tables.

But I think another issue(foreign key constraint violation) may come up
when addAuthorizationForRole, as following example scenario. Ex: Node1 may
be retrieve the permission entry in UM_PERMISSION table (in
addAuthorizationForRole()) and just after that node2 may delete the entry
(in clearResourceAuthorizations()) and after that when node1 trying to
delete & add permissions in UM_ROLE_PERMISSIONS (in
addAuthorizationForRole()) will return the above exception since the entry
in UM_PERMISSION is already deleted.
I think the fix need to be, if UM_ROLE_PERMISSIONS and UM_PERMISSION tables
are going to update, first have to lock both tables, until all the required
operations are finished. Then meanwhile another node can't delete any
entries.

Please provide your opinions regarding this.

Thanks and Regards
-- 
Indunil Upeksha Rathnayake
Software Engineer | WSO2 Inc
Emailindu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [BPS 3.5.0] QA Cycle

2015-09-24 Thread Chathurika De Silva
Hi

For BPS 3.5.0 following sections will be tested. Please note that this will
be a non release oriented test.

1. BPEL
2. BPMN
3. BPMN Explorer (new feature in 3.5.0)
4. Human Tasks
5. Human Task Explorer (new feature in 3.5.0)
6. Migration from 3.2.0 to 3.5.0
7. Performance
8. Provided patches

Thank You
Erandi






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

*E-mail:* chathuri...@wso2.com
*Mobile: *+94714 328 612
*Blog*: chathurikaerandi.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Finding the feature that pack a particular bundle

2015-09-24 Thread Nuwan Pallewela
Hi Maduranga,


I also wanted this some time back. I could not find any way to do it using
osgi console.
So what I did was grep the source code folder which contains the .pom files.
grep -r "bundle_name" .

Thanks,
Nuwan

On Wed, Sep 23, 2015 at 12:37 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Maduranga,
>
> You can go to repository/components/features directory and do a grep for
> the required bundle name
>
> Thanks
> /Thusitha
>
> On Wed, Sep 23, 2015 at 12:35 PM, Hasintha Indrajee 
> wrote:
>
>> Hi Maduranga,
>>
>> You can do a grep from the bundle name, within your product's feature
>> directory and find out. (ie from repository/components/features/).
>>
>>
>> On Wed, Sep 23, 2015 at 12:31 PM, Maduranga Siriwardena <
>> madura...@wso2.com> wrote:
>>
>>> Hi Thilini,
>>>
>>> Thanks for the response. I am looking for a way to find the feature that
>>> packs a bundle.
>>>
>>> Thanks.
>>>
>>> On Wed, Sep 23, 2015 at 11:56 AM, Thilini Cooray 
>>> wrote:
>>>
 Hi,

 From osgi console you can find from where a bundle gets imported and
 exported.
 Use the command
 b 

 [1] contains some more useful commands.

 [1]
 https://isurues.wordpress.com/2009/01/01/useful-equinox-osgi-commands/

 Thanks.

 On Wed, Sep 23, 2015 at 11:35 AM, Maduranga Siriwardena <
 madura...@wso2.com> wrote:

> Hi all,
>
> Is there a way to find the feature that pack a particular bundle?
> (From the osgi console or from any other method)
>
> Thanks,
> Maduranga
>
> --
> Maduranga Siriwardena
> Software Engineer
> WSO2 Inc.
>
> email: madura...@wso2.com
> mobile: +94718990591
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Best Regards,

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

 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware

>>>
>>>
>>>
>>> --
>>> Maduranga Siriwardena
>>> Software Engineer
>>> WSO2 Inc.
>>>
>>> email: madura...@wso2.com
>>> mobile: +94718990591
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Hasintha Indrajee
>> Software Engineer
>> WSO2, Inc.
>> Mobile:+94 771892453
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
--

*Nuwan Chamara Pallewela*


*Software Engineer*

*WSO2, Inc. *http://wso2.com
*lean . enterprise . middleware*

Email   *nuw...@wso2.com *
Mobile  *+94719079739*

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


[Dev] Fwd: Help ESB WSO2 (please)

2015-09-24 Thread Malaka Silva
Hi Sebastian,

I will add you query to dev mail list so that we can help you quickly.

I guess you are using WSO2 ESB 4.8.1? If so please try using latest ESB
(4.9.0)

Most of the issues related to this nature is fixed in latest version.

[1] http://wso2.com/products/enterprise-service-bus/

015-09-23 08:42:25,972 [-] [PassThroughMessageProcessor-213] ERROR
NativeWorkerPool Uncaught exception
java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:102)
at java.util.Stack.pop(Stack.java:84)
at 
org.apache.synapse.mediators.template.TemplateMediator.popFuncContextFrom(TemplateMediator.java:115)
at 
org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:156)
at 
org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:184)
at 
org.apache.synapse.mediators.filters.FilterMediator.mediate(FilterMediator.java:243)
at 
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:245)
at 
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:556)
at 
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:198)
at 
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
at 
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at 
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
at 
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
2015-09-23 08:42:26,009 [-] [PassThroughMessageProcessor-301] ERROR
NativeWorkerPool Uncaught exception
java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:102)
at java.util.Stack.pop(Stack.java:84)
at 
org.apache.synapse.mediators.template.TemplateMediator.popFuncContextFrom(TemplateMediator.java:115)
at 
org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:156)
at 
org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:184)
at 
org.apache.synapse.mediators.filters.FilterMediator.mediate(FilterMediator.java:243)
at 
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:245)
at 
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:556)
at 
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:198)
at 
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
at 
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at 
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
at 
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)smz.sebast...@gmail.com
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
2015-09-23 08:42:26,062 [-] [PassThroughMessageProcessor-193] ERROR
NativeWorkerPool Uncaught exception
java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:102)
at java.util.Stack.pop(Stack.java:84)
at 
org.apache.synapse.mediators.template.TemplateMediator.popFuncContextFrom(TemplateMediator.java:115)
at 
org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:156)
at 
org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:184)
at 
org.apache.synapse.mediators.filters.FilterMediator.mediate(FilterMediator.java:243)
at 
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:245)
at 
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:556)
at 
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:198)
at 
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
at 
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
  

Re: [Dev] Build failed in Jenkins: carbon-deployment #717

2015-09-24 Thread Maheshika Goonetilleke
Hi SupunM

The build is failing during sonar analysis.

I have configured Jenkins with the following : -Xmx1024M
-XX:MaxPermSize=2048M

Please advice what is the best combination to be given.

On Fri, Sep 25, 2015 at 8:34 AM, Supun Malinga  wrote:

> This is due to an OOM error.
>
> Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
>
>
> @Maheshika, How much memory have we allocated for this project?
>
> On Fri, Sep 25, 2015 at 2:12 AM,  wrote:
>
>> See 
>>
>> --
>> [...truncated 13251 lines...]
>> [INFO] [02:07:00.967] Execute Findbugs 2.0.3...
>> [INFO] [02:07:01.000] Findbugs output report: <
>> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/sonar/findbugs-result.xml
>> >
>> [INFO] [02:07:31.084] Execute Findbugs 2.0.3 done: 30117 ms
>> [INFO] [02:07:31.085] Sensor FindbugsSensor done: 30119 ms
>> [INFO] [02:07:31.086] Sensor InitialOpenIssuesSensor...
>> [INFO] [02:07:31.962] Sensor InitialOpenIssuesSensor done: 876 ms
>> [INFO] [02:07:31.962] Sensor ProjectLinksSensor...
>> [INFO] [02:07:31.982] Sensor ProjectLinksSensor done: 20 ms
>> [INFO] [02:07:31.982] Sensor VersionEventsSensor...
>> [INFO] [02:07:31.990] Sensor VersionEventsSensor done: 8 ms
>> [INFO] [02:07:31.990] Sensor FileHashSensor...
>> [INFO] [02:07:31.991] Sensor FileHashSensor done: 1 ms
>> [INFO] [02:07:31.991] Sensor SurefireSensor...
>> [INFO] [02:07:31.991] parsing <
>> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/surefire-reports
>> >
>> [WARN] [02:07:31.991] Reports path not found: <
>> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/surefire-reports
>> >
>> [INFO] [02:07:31.991] Sensor SurefireSensor done: 0 ms
>> [INFO] [02:07:31.991] Sensor Maven dependencies...
>> [INFO] [02:07:33.685] Sensor Maven dependencies done: 1694 ms
>> [INFO] [02:07:33.689] Sensor CPD Sensor (wrapped)...
>> [INFO] [02:07:33.689] JavaCpdEngine is used for java
>> [INFO] [02:07:33.689] Cross-project analysis disabled
>> [INFO] [02:07:33.695] Sensor CPD Sensor (wrapped) done: 6 ms
>> [INFO] [02:07:41.025] Execute decorators...
>> [INFO] [02:07:41.107] -  Scan WSO2 Carbon - Spring Services
>> Aggregator Module carbon-deployment
>> [INFO] [02:07:41.109] Load module settings
>> [INFO] [02:07:50.943] Configure Maven plugins
>> [INFO] [02:07:50.947] Compare to previous analysis (2015-06-11)
>> [INFO] [02:07:50.949] Compare over 30 days (2015-08-26, analysis of
>> 2015-06-11 12:54:20.0)
>> [INFO] [02:07:50.950] Compare to previous version (2015-06-11)
>> [INFO] [02:07:50.951] No quality gate is configured.
>> [INFO] [02:07:52.438] Initializer FindbugsMavenInitializer...
>> [INFO] [02:07:52.438] Initializer FindbugsMavenInitializer done: 0 ms
>> [INFO] [02:07:52.438] Base dir: <
>> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services
>> >
>> [INFO] [02:07:52.438] Working dir: <
>> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/target/sonar
>> >
>> [INFO] [02:07:52.438] Source encoding: UTF-8, default locale: en_US
>> [INFO] [02:07:52.442] Sensor InitialOpenIssuesSensor...
>> [INFO] [02:07:52.451] Sensor InitialOpenIssuesSensor done: 9 ms
>> [INFO] [02:07:52.451] Sensor ProjectLinksSensor...
>> [INFO] [02:07:52.471] Sensor ProjectLinksSensor done: 20 ms
>> [INFO] [02:07:52.471] Sensor VersionEventsSensor...
>> [INFO] [02:07:52.480] Sensor VersionEventsSensor done: 9 ms
>> [INFO] [02:07:52.480] Sensor FileHashSensor...
>> [INFO] [02:07:52.480] Sensor FileHashSensor done: 0 ms
>> [INFO] [02:07:52.480] Sensor Maven dependencies...
>> [INFO] [02:08:15.721] Sensor Maven dependencies done: 23241 ms
>> [INFO] [02:08:15.725] Sensor CPD Sensor (wrapped)...
>> [INFO] [02:08:15.725] Sensor CPD Sensor (wrapped) done: 0 ms
>> [INFO] [02:08:47.833] Execute decorators...
>> [INFO] [02:08:47.891] -  Scan WSO2 Carbon - BAM - Service
>> Stat publisher carbon-deployment
>> [INFO] [02:08:47.892] Load module settings
>> [INFO]
>> 
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] WSO2 Carbon - Deployment Aggregator Pom ... FAILURE
>> [5:08.017s]
>> [INFO] WSO2 Carbon - Service Management Parent Module  SKIPPED
>> [INFO] WSO2 Carbon - AAR Services Stub ... SKIPPED
>> [INFO] WSO2 Carbon - JAR Services Stub ... SKIPPED
>> [INFO] WSO2 Carbon - Spring Services Stub  SKIPPED
>> [INFO] WSO2 Carbon - Axis2 Repository Management Stub  SKIPPED
>> [INFO] WSO2 Carbon - Module Management Stub .. SKIPPED
>> [INFO] WSO2 Carbon - Operation Management Stub ... SKIPPED
>> [INFO] WSO2 Carbon - Service M

Re: [Dev] Build failed in Jenkins: carbon-deployment #717

2015-09-24 Thread Supun Malinga
On Fri, Sep 25, 2015 at 10:36 AM, Maheshika Goonetilleke  wrote:

> Hi SupunM
>
> The build is failing during sonar analysis.
>
> I have configured Jenkins with the following : -Xmx1024M
> -XX:MaxPermSize=2048M
>

This is enough for carbon-deployment. Was the sonar analysis there
previously or was this added recently?.

>
> Please advice what is the best combination to be given.
>
> On Fri, Sep 25, 2015 at 8:34 AM, Supun Malinga  wrote:
>
>> This is due to an OOM error.
>>
>> Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
>>
>>
>> @Maheshika, How much memory have we allocated for this project?
>>
>> On Fri, Sep 25, 2015 at 2:12 AM,  wrote:
>>
>>> See 
>>>
>>> --
>>> [...truncated 13251 lines...]
>>> [INFO] [02:07:00.967] Execute Findbugs 2.0.3...
>>> [INFO] [02:07:01.000] Findbugs output report: <
>>> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/sonar/findbugs-result.xml
>>> >
>>> [INFO] [02:07:31.084] Execute Findbugs 2.0.3 done: 30117 ms
>>> [INFO] [02:07:31.085] Sensor FindbugsSensor done: 30119 ms
>>> [INFO] [02:07:31.086] Sensor InitialOpenIssuesSensor...
>>> [INFO] [02:07:31.962] Sensor InitialOpenIssuesSensor done: 876 ms
>>> [INFO] [02:07:31.962] Sensor ProjectLinksSensor...
>>> [INFO] [02:07:31.982] Sensor ProjectLinksSensor done: 20 ms
>>> [INFO] [02:07:31.982] Sensor VersionEventsSensor...
>>> [INFO] [02:07:31.990] Sensor VersionEventsSensor done: 8 ms
>>> [INFO] [02:07:31.990] Sensor FileHashSensor...
>>> [INFO] [02:07:31.991] Sensor FileHashSensor done: 1 ms
>>> [INFO] [02:07:31.991] Sensor SurefireSensor...
>>> [INFO] [02:07:31.991] parsing <
>>> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/surefire-reports
>>> >
>>> [WARN] [02:07:31.991] Reports path not found: <
>>> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/surefire-reports
>>> >
>>> [INFO] [02:07:31.991] Sensor SurefireSensor done: 0 ms
>>> [INFO] [02:07:31.991] Sensor Maven dependencies...
>>> [INFO] [02:07:33.685] Sensor Maven dependencies done: 1694 ms
>>> [INFO] [02:07:33.689] Sensor CPD Sensor (wrapped)...
>>> [INFO] [02:07:33.689] JavaCpdEngine is used for java
>>> [INFO] [02:07:33.689] Cross-project analysis disabled
>>> [INFO] [02:07:33.695] Sensor CPD Sensor (wrapped) done: 6 ms
>>> [INFO] [02:07:41.025] Execute decorators...
>>> [INFO] [02:07:41.107] -  Scan WSO2 Carbon - Spring Services
>>> Aggregator Module carbon-deployment
>>> [INFO] [02:07:41.109] Load module settings
>>> [INFO] [02:07:50.943] Configure Maven plugins
>>> [INFO] [02:07:50.947] Compare to previous analysis (2015-06-11)
>>> [INFO] [02:07:50.949] Compare over 30 days (2015-08-26, analysis of
>>> 2015-06-11 12:54:20.0)
>>> [INFO] [02:07:50.950] Compare to previous version (2015-06-11)
>>> [INFO] [02:07:50.951] No quality gate is configured.
>>> [INFO] [02:07:52.438] Initializer FindbugsMavenInitializer...
>>> [INFO] [02:07:52.438] Initializer FindbugsMavenInitializer done: 0 ms
>>> [INFO] [02:07:52.438] Base dir: <
>>> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services
>>> >
>>> [INFO] [02:07:52.438] Working dir: <
>>> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/target/sonar
>>> >
>>> [INFO] [02:07:52.438] Source encoding: UTF-8, default locale: en_US
>>> [INFO] [02:07:52.442] Sensor InitialOpenIssuesSensor...
>>> [INFO] [02:07:52.451] Sensor InitialOpenIssuesSensor done: 9 ms
>>> [INFO] [02:07:52.451] Sensor ProjectLinksSensor...
>>> [INFO] [02:07:52.471] Sensor ProjectLinksSensor done: 20 ms
>>> [INFO] [02:07:52.471] Sensor VersionEventsSensor...
>>> [INFO] [02:07:52.480] Sensor VersionEventsSensor done: 9 ms
>>> [INFO] [02:07:52.480] Sensor FileHashSensor...
>>> [INFO] [02:07:52.480] Sensor FileHashSensor done: 0 ms
>>> [INFO] [02:07:52.480] Sensor Maven dependencies...
>>> [INFO] [02:08:15.721] Sensor Maven dependencies done: 23241 ms
>>> [INFO] [02:08:15.725] Sensor CPD Sensor (wrapped)...
>>> [INFO] [02:08:15.725] Sensor CPD Sensor (wrapped) done: 0 ms
>>> [INFO] [02:08:47.833] Execute decorators...
>>> [INFO] [02:08:47.891] -  Scan WSO2 Carbon - BAM - Service
>>> Stat publisher carbon-deployment
>>> [INFO] [02:08:47.892] Load module settings
>>> [INFO]
>>> 
>>> [INFO] Reactor Summary:
>>> [INFO]
>>> [INFO] WSO2 Carbon - Deployment Aggregator Pom ... FAILURE
>>> [5:08.017s]
>>> [INFO] WSO2 Carbon - Service Management Parent Module  SKIPPED
>>> [INFO] WSO2 Carbon - AAR Services Stub ... SKIPPED
>>> [INFO] WSO2 Carbon - JAR Services Stub ... SKIPPED
>>> [INFO] WSO2 Carbon - Spring Se

Re: [Dev] [ML] Accuracy Measure for Anomaly Detection?

2015-09-24 Thread Ashen Weerathunga
Thanks Dr. Ruvan and Supun for the suggestions!

Yes Supun, In this scenario we consider a percentile value of all distances
to identify the cluster boundary rather than just considering the max
distance. Right now we are getting that percentile value from the user.
yes, If we do calculate set of confusion matrices by considering set of
boundary values it will help user to identify the best option. will work on
that. Thanks for the idea!

On Thu, Sep 24, 2015 at 8:05 PM, Supun Sethunga  wrote:

> ...test data according to the percentile value that user provided.
>
>
> Sorry I missed this part. If so, can't we not ask the user the percentile,
> but instead create the ROC and let him decide the best percentile looking
> at the ROC?
>
> On Thu, Sep 24, 2015 at 10:26 AM, Supun Sethunga  wrote:
>
>> Hi Ashen,
>>
>> In probabilistic models, what we do is, compare the predicted output of a
>> new data-point, against a cutoff probability, to decide which class it
>> belongs to. And this cutoff probability is decided by the user, hence has
>> the freedom to change from 0 to 1. So for a set of newly-arrived data
>> points, we can change the "cutoff probability" for any number of times
>> (between 0-1) and find a series of confusion matrices.
>>
>> But in this case, (From what understood from the other mail thread, the
>> logic applied here is..) you first cluster the data, then for each incoming
>> data, you find the nearest cluster, then compare the distance between the
>> new point and the cluster's center, with the cluster-boundary. (please
>> correct me if i've mistaken). So we have only one static value as the class
>> boundary, and hence cannot have a series of confusion matrices. (which
>> means no ROC). But again, in the other mail thread you mentioned "*select
>> the* *percentile value from distances of each clusters as their cluster
>> boundaries*", Im not really sure what that "percentile" value is, but if
>> this is a volatile value or a user preferred value, I think we can change
>> that and do a similar thing as in the probabilistic case..  This means we
>> are  changing the cluster boundaries and see how the accuracy (or the
>> measurement statistics) change.
>>
>> Regards,
>> Supun
>>
>>
>> On Wed, Sep 23, 2015 at 9:17 AM, Ashen Weerathunga 
>> wrote:
>>
>>> Hi all,
>>>
>>> Thanks Mahesan for the suggestion. yes we can give all the measure if It
>>> is better.
>>>
>>> But there is some problem of drawing PR curve or ROC curve. Since we can
>>> get only one point using the confusion matrix we cant give PR curve or ROC
>>> curve in the summary of the model. Currently ROC curve provided only in
>>> probabilistic classification methods. It's also calculated using the model
>>> itself. But in this scenario we use K means algorithm. after generating the
>>> clusters we evaluate the model using the test data according to the
>>> percentile value that user provided. So as a result we can get the
>>> confusion matrix which consist of TP,TN,FP,FN. But to draw a PR curve or
>>> ROC curve that is not enough. Does anyone have any suggestions about that?
>>> or should we drop it?
>>>
>>> On Mon, Sep 21, 2015 at 7:05 AM, Sinnathamby Mahesan <
>>> sinnatha...@wso2.com> wrote:
>>>
 Ashen
 Here is a situation:
 Doctors  are testing a person for a disease, say, d.
 Doctor's point of view +ve means  patient has (d)

 Which is of the following is worse than the other?
 (1) The person who does NOT  have (d)  is identified as having (d)  -
  (that is, false  positive )
 (2) The person who does have (d) is identified as NOT having (d)   -
  (that is, false negative)

 Doctors  argument is that  we have to be more concern on reducing case
  (2)
 That is to say,  the sensitivity needs to be high.

 Anyway, I also thought it is better to display all measures :
 sensitivity, specificity, precision and F1-Score
 (suggesting to consider sensitivity for the case of  anomalous being
 positive.

 Good Luck
 Mahesan


 On 18 September 2015 at 15:27, Ashen Weerathunga 
 wrote:

> Hi all.
>
> Since we are considering the anomaly detection true positive would be
> a case where a true anomaly detected as a anomaly by the model. Since in
> the real world scenario of anomaly detection as you said the
> positive(anomaly) instances are vary rare we can't go for more general
> measure. So I can summarized the most applicable measures as below,
>
>- Sensitivity(recall) - gives the True Positive Rate. ( TP/(TP +
>FN) )
>- Precision - gives the probability of predicting a True Positive
>from all positive predictions ( TP/(TP+FP) )
>- PR cure - Precision recall(Sensitivity) curve - PR curve plots
>Precision Vs. Recall.
>- F1 score - gives the harmonic mean of Precision and
>Sensitivity(recall) ( 2TP / (2TP + FP + FN) )
>
> So Precision an

Re: [Dev] [DEV] [IS] [Oauth] Clarification on the issue with SAML2 bearer type accesstoken genaration

2015-09-24 Thread Kavitha Subramaniyam
Hi Maduranga,

I have been checked with adding tenant domain at travelocity.properties as
you mentioned above and access token has generated now. Appreciated for
your help!


Thanks & Kind regards,

On Thu, Sep 24, 2015 at 9:51 PM, Maduranga Siriwardena 
wrote:

> Hi Kavitha,
>
> By going through your configurations in travelocity.properties , I noticed
> few missing and incorrect configurations.
>
> #OAuth2 token endpoint URL
> OAuth2.TokenURL=https://localhost:9443/oauth2/token?tenantDomain=test.com
>
> #Additional request parameters
> QueryParams=tenantDomain=test.com
>
> Please add these properties and check your user case works.
>
> Thanks,
> Maduranga.
>
> On Thu, Sep 24, 2015 at 3:17 PM, Kavitha Subramaniyam 
> wrote:
>
>> Hi team,
>>
>> I have tried SAML bearer in tenant mode and it is failing for signature
>> validation. I have followed below steps to produce this:
>>
>> - SP created for travelocity.com and an app for oauth(here myapp2)
>> - Exported public certificate of the private key used at webapp side
>> (here wso2carbon.cer) and imported this to tenant keystore.
>> - Imported public key of tenant (here test.com) to webapp's keystore.
>> - Modified travelocity.properties according to configurations.
>>
>> and the error log shows [2]
>>
>> Find the SAML configuration in attachment and jira has been raised for
>> this [1]
>>
>> I could not get the point why this is failing and appreciate if anyone
>> can clarify this issue.
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-3625
>>
>> [2] -
>>
>> [2015-09-24 14:21:59,074] DEBUG
>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>>  Received a request : /oauth2/token
>> [2015-09-24 14:21:59,074] DEBUG
>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>>  --logging request headers.--
>> [2015-09-24 14:21:59,074] DEBUG
>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>>  content-type : application/x-www-form-urlencoded
>> [2015-09-24 14:21:59,075] DEBUG
>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>>  authorization : Basic
>> bUdxWFNNdDd4RHhLNzEycjlHTEhMUFJMQUxRYTp4al9XWUdnb3F6cFN0VURKaTBNRDRnTm1QQ2Nh
>> [2015-09-24 14:21:59,075] DEBUG
>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>>  cache-control : no-cache
>> [2015-09-24 14:21:59,075] DEBUG
>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>>  pragma : no-cache
>> [2015-09-24 14:21:59,075] DEBUG
>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>>  user-agent : Java/1.7.0_80
>> [2015-09-24 14:21:59,075] DEBUG
>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -  host
>> : localhost:9443
>> [2015-09-24 14:21:59,075] DEBUG
>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>>  accept : text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
>> [2015-09-24 14:21:59,075] DEBUG
>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>>  connection : keep-alive
>> [2015-09-24 14:21:59,076] DEBUG
>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>>  content-length : 4437
>> [2015-09-24 14:21:59,076] DEBUG
>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>>  --logging request parameters.--
>> [2015-09-24 14:21:59,076] DEBUG
>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>>  grant_type - urn:ietf:params:oauth:grant-type:saml2-bearer
>> [2015-09-24 14:21:59,076] DEBUG
>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>>  client_id - null
>> [2015-09-24 14:21:59,076] DEBUG
>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -  code
>> - null
>> [2015-09-24 14:21:59,076] DEBUG
>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>>  redirect_uri - null
>> [2015-09-24 14:21:59,077] DEBUG
>> {org.wso2.carbon.identity.oauth2.OAuth2Service} -  Access Token request
>> received for Client ID mGqXSMt7xDxK712r9GLHLPRLALQa, User ID null, Scope :
>> [] and Grant Type : urn:ietf:params:oauth:grant-type:saml2-bearer
>> [2015-09-24 14:21:59,077] DEBUG
>> {org.wso2.carbon.identity.oauth2.token.handlers.clientauth.AbstractClientAuthHandler}
>> -  Can authenticate with client ID and Secret. Client ID:
>> mGqXSMt7xDxK712r9GLHLPRLALQa
>> [2015-09-24 14:21:59,077] DEBUG
>> {org.wso2.carbon.identity.oauth2.token.handlers.clientauth.AbstractClientAuthHandler}
>> -  Grant type : urn:ietf:params:oauth:grant-type:saml2-bearer Strict client
>> validation set to : null
>> [2015-09-24 14:21:59,078] DEBUG
>> {org.wso2.carbon.identity.oauth2.util.OAuth2Util} -  Client credentials
>> were available in the cache for client id : mGqXSMt7xDxK712r9GLHLPRLALQa
>> [2015-09-24 14:21:59,079] DEBUG
>> {org.wso2.carbon.identity.oauth2.util.OAuth2Util} -  Successfully
>> authenticated the client with client id : mGqXSMt7xDxK712r9GLHLPRLALQa
>> [2015-09-24

Re: [Dev] Build failed in Jenkins: carbon-deployment #717

2015-09-24 Thread Maheshika Goonetilleke
Hi Supun,

This was added last evening. carbon-data and carbon-dashboards jobs build
successfully with the same configuration.

We are adding this incrementally to the Jobs.


On Fri, Sep 25, 2015 at 10:47 AM, Supun Malinga  wrote:

>
>
> On Fri, Sep 25, 2015 at 10:36 AM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> Hi SupunM
>>
>> The build is failing during sonar analysis.
>>
>> I have configured Jenkins with the following : -Xmx1024M
>> -XX:MaxPermSize=2048M
>>
>
> This is enough for carbon-deployment. Was the sonar analysis there
> previously or was this added recently?.
>
>>
>> Please advice what is the best combination to be given.
>>
>> On Fri, Sep 25, 2015 at 8:34 AM, Supun Malinga  wrote:
>>
>>> This is due to an OOM error.
>>>
>>> Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
>>>
>>>
>>> @Maheshika, How much memory have we allocated for this project?
>>>
>>> On Fri, Sep 25, 2015 at 2:12 AM,  wrote:
>>>
 See 

 --
 [...truncated 13251 lines...]
 [INFO] [02:07:00.967] Execute Findbugs 2.0.3...
 [INFO] [02:07:01.000] Findbugs output report: <
 https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/sonar/findbugs-result.xml
 >
 [INFO] [02:07:31.084] Execute Findbugs 2.0.3 done: 30117 ms
 [INFO] [02:07:31.085] Sensor FindbugsSensor done: 30119 ms
 [INFO] [02:07:31.086] Sensor InitialOpenIssuesSensor...
 [INFO] [02:07:31.962] Sensor InitialOpenIssuesSensor done: 876 ms
 [INFO] [02:07:31.962] Sensor ProjectLinksSensor...
 [INFO] [02:07:31.982] Sensor ProjectLinksSensor done: 20 ms
 [INFO] [02:07:31.982] Sensor VersionEventsSensor...
 [INFO] [02:07:31.990] Sensor VersionEventsSensor done: 8 ms
 [INFO] [02:07:31.990] Sensor FileHashSensor...
 [INFO] [02:07:31.991] Sensor FileHashSensor done: 1 ms
 [INFO] [02:07:31.991] Sensor SurefireSensor...
 [INFO] [02:07:31.991] parsing <
 https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/surefire-reports
 >
 [WARN] [02:07:31.991] Reports path not found: <
 https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/surefire-reports
 >
 [INFO] [02:07:31.991] Sensor SurefireSensor done: 0 ms
 [INFO] [02:07:31.991] Sensor Maven dependencies...
 [INFO] [02:07:33.685] Sensor Maven dependencies done: 1694 ms
 [INFO] [02:07:33.689] Sensor CPD Sensor (wrapped)...
 [INFO] [02:07:33.689] JavaCpdEngine is used for java
 [INFO] [02:07:33.689] Cross-project analysis disabled
 [INFO] [02:07:33.695] Sensor CPD Sensor (wrapped) done: 6 ms
 [INFO] [02:07:41.025] Execute decorators...
 [INFO] [02:07:41.107] -  Scan WSO2 Carbon - Spring Services
 Aggregator Module carbon-deployment
 [INFO] [02:07:41.109] Load module settings
 [INFO] [02:07:50.943] Configure Maven plugins
 [INFO] [02:07:50.947] Compare to previous analysis (2015-06-11)
 [INFO] [02:07:50.949] Compare over 30 days (2015-08-26, analysis of
 2015-06-11 12:54:20.0)
 [INFO] [02:07:50.950] Compare to previous version (2015-06-11)
 [INFO] [02:07:50.951] No quality gate is configured.
 [INFO] [02:07:52.438] Initializer FindbugsMavenInitializer...
 [INFO] [02:07:52.438] Initializer FindbugsMavenInitializer done: 0 ms
 [INFO] [02:07:52.438] Base dir: <
 https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services
 >
 [INFO] [02:07:52.438] Working dir: <
 https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/target/sonar
 >
 [INFO] [02:07:52.438] Source encoding: UTF-8, default locale: en_US
 [INFO] [02:07:52.442] Sensor InitialOpenIssuesSensor...
 [INFO] [02:07:52.451] Sensor InitialOpenIssuesSensor done: 9 ms
 [INFO] [02:07:52.451] Sensor ProjectLinksSensor...
 [INFO] [02:07:52.471] Sensor ProjectLinksSensor done: 20 ms
 [INFO] [02:07:52.471] Sensor VersionEventsSensor...
 [INFO] [02:07:52.480] Sensor VersionEventsSensor done: 9 ms
 [INFO] [02:07:52.480] Sensor FileHashSensor...
 [INFO] [02:07:52.480] Sensor FileHashSensor done: 0 ms
 [INFO] [02:07:52.480] Sensor Maven dependencies...
 [INFO] [02:08:15.721] Sensor Maven dependencies done: 23241 ms
 [INFO] [02:08:15.725] Sensor CPD Sensor (wrapped)...
 [INFO] [02:08:15.725] Sensor CPD Sensor (wrapped) done: 0 ms
 [INFO] [02:08:47.833] Execute decorators...
 [INFO] [02:08:47.891] -  Scan WSO2 Carbon - BAM - Service
 Stat publisher carbon-deployment
 [INFO] [02:08:47.892] Load module settings
 [INFO]
 
 [INFO] Re

Re: [Dev] [Vote] Release WSO2 Carbon Kernel 4.4.2 RC1

2015-09-24 Thread Darshana Gunawardana
Hi Indunil,

On Fri, Sep 25, 2015 at 10:15 AM, Indunil Upeksha Rathnayake <
indu...@wso2.com> wrote:

> Hi,
>
> The deadlock issue(https://wso2.org/jira/browse/MB-1326) come up in
> oracle and mssql when clearResourceAuthorizations where permissions are
> deleted in UM_ROLE_PERMISSIONS, UM_USER_PERMISSIONS and UM_PERMISSION
> tables through one transaction. The fix would be using cascade delete for
> above tables.
>

+1


> But I think another issue(foreign key constraint violation) may come up
> when addAuthorizationForRole, as following example scenario. Ex: Node1 may
> be retrieve the permission entry in UM_PERMISSION table (in
> addAuthorizationForRole()) and just after that node2 may delete the entry
> (in clearResourceAuthorizations()) and after that when node1 trying to
> delete & add permissions in UM_ROLE_PERMISSIONS (in
> addAuthorizationForRole()) will return the above exception since the entry
> in UM_PERMISSION is already deleted.
>
I think the fix need to be, if UM_ROLE_PERMISSIONS and UM_PERMISSION tables
> are going to update, first have to lock both tables, until all the required
> operations are finished. Then meanwhile another node can't delete any
> entries.
>

Have you able to reproduce this behavior? I guess we cannot lock those
tables from the java code in db in dependent manner. Please check with our
db experts.

In worst case we could handle IntegrityConstraintViolationException since
its ok to avoiding addAuthorization for a permission which got deleted
later.

Thanks,


> Please provide your opinions regarding this.
>
> Thanks and Regards
> --
> Indunil Upeksha Rathnayake
> Software Engineer | WSO2 Inc
> Emailindu...@wso2.com
>



-- 
Regards,


*Darshana Gunawardana*Senior Software Engineer
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com *
*Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failed in Jenkins: carbon-deployment #717

2015-09-24 Thread Supun Malinga
Hi,

Let's put  -Xmx2048M -XX:MaxPermSize=512M

On Fri, Sep 25, 2015 at 11:13 AM, Maheshika Goonetilleke  wrote:

> Hi Supun,
>
> This was added last evening. carbon-data and carbon-dashboards jobs build
> successfully with the same configuration.
>
> We are adding this incrementally to the Jobs.
>
>
> On Fri, Sep 25, 2015 at 10:47 AM, Supun Malinga  wrote:
>
>>
>>
>> On Fri, Sep 25, 2015 at 10:36 AM, Maheshika Goonetilleke <
>> mahesh...@wso2.com> wrote:
>>
>>> Hi SupunM
>>>
>>> The build is failing during sonar analysis.
>>>
>>> I have configured Jenkins with the following : -Xmx1024M
>>> -XX:MaxPermSize=2048M
>>>
>>
>> This is enough for carbon-deployment. Was the sonar analysis there
>> previously or was this added recently?.
>>
>>>
>>> Please advice what is the best combination to be given.
>>>
>>> On Fri, Sep 25, 2015 at 8:34 AM, Supun Malinga  wrote:
>>>
 This is due to an OOM error.

 Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded


 @Maheshika, How much memory have we allocated for this project?

 On Fri, Sep 25, 2015 at 2:12 AM,  wrote:

> See 
>
> --
> [...truncated 13251 lines...]
> [INFO] [02:07:00.967] Execute Findbugs 2.0.3...
> [INFO] [02:07:01.000] Findbugs output report: <
> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/sonar/findbugs-result.xml
> >
> [INFO] [02:07:31.084] Execute Findbugs 2.0.3 done: 30117 ms
> [INFO] [02:07:31.085] Sensor FindbugsSensor done: 30119 ms
> [INFO] [02:07:31.086] Sensor InitialOpenIssuesSensor...
> [INFO] [02:07:31.962] Sensor InitialOpenIssuesSensor done: 876 ms
> [INFO] [02:07:31.962] Sensor ProjectLinksSensor...
> [INFO] [02:07:31.982] Sensor ProjectLinksSensor done: 20 ms
> [INFO] [02:07:31.982] Sensor VersionEventsSensor...
> [INFO] [02:07:31.990] Sensor VersionEventsSensor done: 8 ms
> [INFO] [02:07:31.990] Sensor FileHashSensor...
> [INFO] [02:07:31.991] Sensor FileHashSensor done: 1 ms
> [INFO] [02:07:31.991] Sensor SurefireSensor...
> [INFO] [02:07:31.991] parsing <
> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/surefire-reports
> >
> [WARN] [02:07:31.991] Reports path not found: <
> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/surefire-reports
> >
> [INFO] [02:07:31.991] Sensor SurefireSensor done: 0 ms
> [INFO] [02:07:31.991] Sensor Maven dependencies...
> [INFO] [02:07:33.685] Sensor Maven dependencies done: 1694 ms
> [INFO] [02:07:33.689] Sensor CPD Sensor (wrapped)...
> [INFO] [02:07:33.689] JavaCpdEngine is used for java
> [INFO] [02:07:33.689] Cross-project analysis disabled
> [INFO] [02:07:33.695] Sensor CPD Sensor (wrapped) done: 6 ms
> [INFO] [02:07:41.025] Execute decorators...
> [INFO] [02:07:41.107] -  Scan WSO2 Carbon - Spring
> Services Aggregator Module carbon-deployment
> [INFO] [02:07:41.109] Load module settings
> [INFO] [02:07:50.943] Configure Maven plugins
> [INFO] [02:07:50.947] Compare to previous analysis (2015-06-11)
> [INFO] [02:07:50.949] Compare over 30 days (2015-08-26, analysis of
> 2015-06-11 12:54:20.0)
> [INFO] [02:07:50.950] Compare to previous version (2015-06-11)
> [INFO] [02:07:50.951] No quality gate is configured.
> [INFO] [02:07:52.438] Initializer FindbugsMavenInitializer...
> [INFO] [02:07:52.438] Initializer FindbugsMavenInitializer done: 0 ms
> [INFO] [02:07:52.438] Base dir: <
> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services
> >
> [INFO] [02:07:52.438] Working dir: <
> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/target/sonar
> >
> [INFO] [02:07:52.438] Source encoding: UTF-8, default locale: en_US
> [INFO] [02:07:52.442] Sensor InitialOpenIssuesSensor...
> [INFO] [02:07:52.451] Sensor InitialOpenIssuesSensor done: 9 ms
> [INFO] [02:07:52.451] Sensor ProjectLinksSensor...
> [INFO] [02:07:52.471] Sensor ProjectLinksSensor done: 20 ms
> [INFO] [02:07:52.471] Sensor VersionEventsSensor...
> [INFO] [02:07:52.480] Sensor VersionEventsSensor done: 9 ms
> [INFO] [02:07:52.480] Sensor FileHashSensor...
> [INFO] [02:07:52.480] Sensor FileHashSensor done: 0 ms
> [INFO] [02:07:52.480] Sensor Maven dependencies...
> [INFO] [02:08:15.721] Sensor Maven dependencies done: 23241 ms
> [INFO] [02:08:15.725] Sensor CPD Sensor (wrapped)...
> [INFO] [02:08:15.725] Sensor CPD Sensor (wrapped) done: 0 ms
> [INFO] [02:08:47.833] Execute decorators...
> [INFO] [02:08:47.891] - 

Re: [Dev] [Vote] Release WSO2 Carbon Kernel 4.4.2 RC1

2015-09-24 Thread Johann Nallathamby
On Fri, Sep 25, 2015 at 11:16 AM, Darshana Gunawardana 
wrote:

> Hi Indunil,
>
> On Fri, Sep 25, 2015 at 10:15 AM, Indunil Upeksha Rathnayake <
> indu...@wso2.com> wrote:
>
>> Hi,
>>
>> The deadlock issue(https://wso2.org/jira/browse/MB-1326) come up in
>> oracle and mssql when clearResourceAuthorizations where permissions are
>> deleted in UM_ROLE_PERMISSIONS, UM_USER_PERMISSIONS and UM_PERMISSION
>> tables through one transaction. The fix would be using cascade delete for
>> above tables.
>>
>
> +1
>
>
>> But I think another issue(foreign key constraint violation) may come up
>> when addAuthorizationForRole, as following example scenario. Ex: Node1 may
>> be retrieve the permission entry in UM_PERMISSION table (in
>> addAuthorizationForRole()) and just after that node2 may delete the entry
>> (in clearResourceAuthorizations()) and after that when node1 trying to
>> delete & add permissions in UM_ROLE_PERMISSIONS (in
>> addAuthorizationForRole()) will return the above exception since the entry
>> in UM_PERMISSION is already deleted.
>>
> I think the fix need to be, if UM_ROLE_PERMISSIONS and UM_PERMISSION
>> tables are going to update, first have to lock both tables, until all the
>> required operations are finished. Then meanwhile another node can't delete
>> any entries.
>>
>
> Have you able to reproduce this behavior? I guess we cannot lock those
> tables from the java code in db in dependent manner. Please check with our
> db experts.
>
> In worst case we could handle IntegrityConstraintViolationException since
> its ok to avoiding addAuthorization for a permission which got deleted
> later.
>

Yes, lets not go into locking tables. As much as possible try to avoid it
or recover gracefully.

>
> Thanks,
>
>
>> Please provide your opinions regarding this.
>>
>> Thanks and Regards
>> --
>> Indunil Upeksha Rathnayake
>> Software Engineer | WSO2 Inc
>> Emailindu...@wso2.com
>>
>
>
>
> --
> Regards,
>
>
> *Darshana Gunawardana*Senior Software Engineer
> WSO2 Inc.; http://wso2.com
>
> *E-mail: darsh...@wso2.com *
> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Technical Lead & Product Lead of WSO2 Identity Server
Governance Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev