Re: [Dev] Analytics IS - Handling null or empty Strings to show on respective gadgets

2016-06-07 Thread Damith Wickramasinghe
Hi Johann and all,

Our decided approach was to send a empty string for all the cases from IS
side and from DAS after retrieving data, provide a default string with some
style to show that its a special empty case. But in lucene we cannot have
empty attributes since they cannot be indexed and search will not work for
them. Our next option is to provide a standard naming for a default value
and also provide some configuration in IS to change it if needed. WDYT ?

Regards,
Damith.

On Mon, Jun 6, 2016 at 7:19 PM, Damith Wickramasinghe 
wrote:

> Hi,
>
> When it comes to authentication scenarios in some cases we cannot specify
> roles etc to publishing events eg:- non existing user tried to login with
> username and password. Then for the said events roles attribute will be
> empty/null  .
>
> Also as discussed with Pulasthi there can be other attributes as well
> which can be empty or null. For all those scenarios we need to show a
> authentication failure count for all the dimensions of User, Role,
> IdentityProvider etc.For that we need a constant String which can be used
> to show the respective fail counts.  Having a constant value like
> "NOT-AVAILABLE" can be sent from IS side or populated from DAS side but any
> user can create an username of any sort . eg:NOT-AVAILABLE .So there can be
> issues in calculating authentication failure counts.
>
> Any insights on handling such scenarios ?
>
> Regards,
> Damith.
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>


-- 
Software Engineer
WSO2 Inc.; http://wso2.com

lean.enterprise.middleware

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


[Dev] Getting error JsonUtil #writeAsJson. Payload could not be written as JSON with ESB 5.0.0 - BETA

2016-06-07 Thread Kesavan Yogarajah
Hi All,

I am checking Zuora connector with ESB 5.0.0 - BETA.I am getting error [1]
when the API response with 403 comes with no body.But this works fine with
ESB -4.9.0 [2]. Is this an expected behavior?

[1]

[2016-06-07 11:43:43,212] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"DELETE /rest/v1/payment-methods/ HTTP/1.1[\r][\n]"
[2016-06-07 11:43:43,213] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Authorization: Basic aXXX==[\r][\n]"
[2016-06-07 11:43:43,213] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Origin: chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop[\r][\n]"
[2016-06-07 11:43:43,214] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Action: urn:deletePayments[\r][\n]"
[2016-06-07 11:43:43,214] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Accept: */*[\r][\n]"
[2016-06-07 11:43:43,214] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Cache-Control: no-cache[\r][\n]"
[2016-06-07 11:43:43,215] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Postman-Token: b618abc9-99ca-9540-3332-b6302bb01e10[\r][\n]"
[2016-06-07 11:43:43,215] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Accept-Encoding: gzip, deflate[\r][\n]"
[2016-06-07 11:43:43,215] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Accept-Language: en-US,en;q=0.8[\r][\n]"
[2016-06-07 11:43:43,215] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Content-Type: application/json[\r][\n]"
[2016-06-07 11:43:43,215] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Host: apisandbox-api.zuora.com[\r][\n]"
[2016-06-07 11:43:43,216] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"Connection: Keep-Alive[\r][\n]"
[2016-06-07 11:43:43,216] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
[2016-06-07 11:43:43,216] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
"[\r][\n]"
[2016-06-07 11:43:43,639] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
"HTTP/1.1 403 Forbidden[\r][\n]"
[2016-06-07 11:43:43,640] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
"Server: Zuora App[\r][\n]"
[2016-06-07 11:43:43,640] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
"Access-Control-Allow-Credentials: true[\r][\n]"
[2016-06-07 11:43:43,641] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
"Access-Control-Allow-Origin:
chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop[\r][\n]"
[2016-06-07 11:43:43,641] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
"Content-Length: 0[\r][\n]"
[2016-06-07 11:43:43,641] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
"Expires: Tue, 07 Jun 2016 06:13:43 GMT[\r][\n]"
[2016-06-07 11:43:43,641] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
"Cache-Control: max-age=0, no-cache, no-store[\r][\n]"
[2016-06-07 11:43:43,642] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
"Pragma: no-cache[\r][\n]"
[2016-06-07 11:43:43,642] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
"Date: Tue, 07 Jun 2016 06:13:43 GMT[\r][\n]"
[2016-06-07 11:43:43,642] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
"Connection: keep-alive[\r][\n]"
[2016-06-07 11:43:43,643] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
"[\r][\n]"
[2016-06-07 11:43:43,663] ERROR - JsonUtil #writeAsJson. Payload could not
be written as JSON. MessageID: urn:uuid:7cf1bb4f-1227-428f-ad6d-1899babf0b15
[2016-06-07 11:43:43,666] ERROR - PassThroughHttpSender Failed to submit
the response
org.apache.axis2.AxisFault: Payload could not be written as JSON.
at org.apache.synapse.commons.json.JsonUtil.writeAsJson(JsonUtil.java:260)
at
org.apache.synapse.commons.json.JsonStreamFormatter.writeTo(JsonStreamFormatter.java:61)
at
org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:555)
at
org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:264)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
at
org.apache.synapse.mediators.builtin.RespondMediator.mediate(RespondMediator.java:35)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:87)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:292)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:774)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:282)
at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:546)
at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:179)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:255)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.

[Dev] [DEV] [BPS] How to do blocking HTTP calls in C5

2016-06-07 Thread Natasha Wijesekara
Hi,

With regards to the $subject, in BPS  currently we are using the  HTTP
Client for external invocations as we need to do blocking HTTP calls to
invoke partner services. In C5, what are the options available to do
blocking HTTP calls ?  It seems that netty transport is only supporting
non-blocking HTTP calls.


Best Regards,
*Natasha Wijesekare*

*Software Engineering Intern, WSO2  Inc:  http://wso2.com
*
*email  : nata...@wso2.com *
*mobile: +94 771358651 <%2B94%20771358651>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Remove old opensaml bundle from carbon-apimgt

2016-06-07 Thread KasunG Gajasinghe
Hi APIM team,

The OpenSaml2 version 2.4.1.wso2v1 is deprecated due to several security
vulnerabilities that were discovered. Therefore, please remove this bundle
[1]. If you need to use opensaml2, then you should import this feature. [2]

Note that the new opensaml2 bundle does not export velocity packages since
that is wrong. If you need to directly use velocity, then you will need to
use a Velocity orbit.

[1]
https://github.com/wso2/carbon-apimgt/commit/62cbfd6a9e42689b0624ea3a432daa412542ed3d

[2]
https://github.com/wso2-extensions/identity-inbound-auth-saml/blob/master/features/org.wso2.carbon.identity.sso.saml.server.feature/pom.xml

Thanks,
KasunG

-- 

*Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove old opensaml bundle from carbon-apimgt

2016-06-07 Thread Bhathiya Jayasekara
Thanks Kasun. Will do the change.

Regards,
Bhathiya

On Tue, Jun 7, 2016 at 12:36 PM, KasunG Gajasinghe  wrote:

> Hi APIM team,
>
> The OpenSaml2 version 2.4.1.wso2v1 is deprecated due to several security
> vulnerabilities that were discovered. Therefore, please remove this bundle
> [1]. If you need to use opensaml2, then you should import this feature. [2]
>
> Note that the new opensaml2 bundle does not export velocity packages since
> that is wrong. If you need to directly use velocity, then you will need to
> use a Velocity orbit.
>
> [1]
> https://github.com/wso2/carbon-apimgt/commit/62cbfd6a9e42689b0624ea3a432daa412542ed3d
>
> [2]
> https://github.com/wso2-extensions/identity-inbound-auth-saml/blob/master/features/org.wso2.carbon.identity.sso.saml.server.feature/pom.xml
>
> Thanks,
> KasunG
>
> --
>
> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove old opensaml bundle from carbon-apimgt

2016-06-07 Thread Bhathiya Jayasekara
Hi Kasun,

Do we already have a velocity orbit already? I can't find in
https://github.com/wso2/orbit

Thanks,
Bhathiya

On Tue, Jun 7, 2016 at 12:54 PM, Bhathiya Jayasekara 
wrote:

> Thanks Kasun. Will do the change.
>
> Regards,
> Bhathiya
>
> On Tue, Jun 7, 2016 at 12:36 PM, KasunG Gajasinghe 
> wrote:
>
>> Hi APIM team,
>>
>> The OpenSaml2 version 2.4.1.wso2v1 is deprecated due to several security
>> vulnerabilities that were discovered. Therefore, please remove this bundle
>> [1]. If you need to use opensaml2, then you should import this feature. [2]
>>
>> Note that the new opensaml2 bundle does not export velocity packages
>> since that is wrong. If you need to directly use velocity, then you will
>> need to use a Velocity orbit.
>>
>> [1]
>> https://github.com/wso2/carbon-apimgt/commit/62cbfd6a9e42689b0624ea3a432daa412542ed3d
>>
>> [2]
>> https://github.com/wso2-extensions/identity-inbound-auth-saml/blob/master/features/org.wso2.carbon.identity.sso.saml.server.feature/pom.xml
>>
>> Thanks,
>> KasunG
>>
>> --
>>
>> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>>
>>
>>
>
>
>
> --
> *Bhathiya Jayasekara*
> *Senior Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>



-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove old opensaml bundle from carbon-apimgt

2016-06-07 Thread Rajith Vitharana
Hi Bhathiya,

[1] seems to be already a osgi bundle which is in maven central [2]

[1] - 
  org.apache.velocity
  velocity
  1.7

[2] - http://mvnrepository.com/artifact/org.apache.velocity/velocity/1.7

Thanks,

On Tue, Jun 7, 2016 at 12:57 PM, Bhathiya Jayasekara 
wrote:

> Hi Kasun,
>
> Do we already have a velocity orbit already? I can't find in
> https://github.com/wso2/orbit
>
> Thanks,
> Bhathiya
>
> On Tue, Jun 7, 2016 at 12:54 PM, Bhathiya Jayasekara 
> wrote:
>
>> Thanks Kasun. Will do the change.
>>
>> Regards,
>> Bhathiya
>>
>> On Tue, Jun 7, 2016 at 12:36 PM, KasunG Gajasinghe 
>> wrote:
>>
>>> Hi APIM team,
>>>
>>> The OpenSaml2 version 2.4.1.wso2v1 is deprecated due to several security
>>> vulnerabilities that were discovered. Therefore, please remove this bundle
>>> [1]. If you need to use opensaml2, then you should import this feature. [2]
>>>
>>> Note that the new opensaml2 bundle does not export velocity packages
>>> since that is wrong. If you need to directly use velocity, then you will
>>> need to use a Velocity orbit.
>>>
>>> [1]
>>> https://github.com/wso2/carbon-apimgt/commit/62cbfd6a9e42689b0624ea3a432daa412542ed3d
>>>
>>> [2]
>>> https://github.com/wso2-extensions/identity-inbound-auth-saml/blob/master/features/org.wso2.carbon.identity.sso.saml.server.feature/pom.xml
>>>
>>> Thanks,
>>> KasunG
>>>
>>> --
>>>
>>> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
>>> email: kasung AT spamfree wso2.com
>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>> blog: http://kasunbg.org
>>>
>>>
>>>
>>
>>
>>
>> --
>> *Bhathiya Jayasekara*
>> *Senior Software Engineer,*
>> *WSO2 inc., http://wso2.com *
>>
>> *Phone: +94715478185 <%2B94715478185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> *
>> *Twitter: https://twitter.com/bhathiyax *
>> *Blog: http://movingaheadblog.blogspot.com
>> *
>>
>
>
>
> --
> *Bhathiya Jayasekara*
> *Senior Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting error JsonUtil #writeAsJson. Payload could not be written as JSON with ESB 5.0.0 - BETA

2016-06-07 Thread Malaka Silva
Please share the synapse configs you are using?

On Tue, Jun 7, 2016 at 12:33 PM, Kesavan Yogarajah 
wrote:

> Hi All,
>
> I am checking Zuora connector with ESB 5.0.0 - BETA.I am getting error [1]
> when the API response with 403 comes with no body.But this works fine with
> ESB -4.9.0 [2]. Is this an expected behavior?
>
> [1]
>
> [2016-06-07 11:43:43,212] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "DELETE /rest/v1/payment-methods/ HTTP/1.1[\r][\n]"
> [2016-06-07 11:43:43,213] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Authorization: Basic aXXX==[\r][\n]"
> [2016-06-07 11:43:43,213] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Origin: chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop[\r][\n]"
> [2016-06-07 11:43:43,214] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Action: urn:deletePayments[\r][\n]"
> [2016-06-07 11:43:43,214] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Accept: */*[\r][\n]"
> [2016-06-07 11:43:43,214] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Cache-Control: no-cache[\r][\n]"
> [2016-06-07 11:43:43,215] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Postman-Token: b618abc9-99ca-9540-3332-b6302bb01e10[\r][\n]"
> [2016-06-07 11:43:43,215] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Accept-Encoding: gzip, deflate[\r][\n]"
> [2016-06-07 11:43:43,215] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Accept-Language: en-US,en;q=0.8[\r][\n]"
> [2016-06-07 11:43:43,215] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Content-Type: application/json[\r][\n]"
> [2016-06-07 11:43:43,215] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Host: apisandbox-api.zuora.com[\r][\n]"
> [2016-06-07 11:43:43,216] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Connection: Keep-Alive[\r][\n]"
> [2016-06-07 11:43:43,216] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
> [2016-06-07 11:43:43,216] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "[\r][\n]"
> [2016-06-07 11:43:43,639] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
> "HTTP/1.1 403 Forbidden[\r][\n]"
> [2016-06-07 11:43:43,640] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
> "Server: Zuora App[\r][\n]"
> [2016-06-07 11:43:43,640] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
> "Access-Control-Allow-Credentials: true[\r][\n]"
> [2016-06-07 11:43:43,641] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
> "Access-Control-Allow-Origin:
> chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop[\r][\n]"
> [2016-06-07 11:43:43,641] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
> "Content-Length: 0[\r][\n]"
> [2016-06-07 11:43:43,641] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
> "Expires: Tue, 07 Jun 2016 06:13:43 GMT[\r][\n]"
> [2016-06-07 11:43:43,641] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
> "Cache-Control: max-age=0, no-cache, no-store[\r][\n]"
> [2016-06-07 11:43:43,642] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
> "Pragma: no-cache[\r][\n]"
> [2016-06-07 11:43:43,642] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
> "Date: Tue, 07 Jun 2016 06:13:43 GMT[\r][\n]"
> [2016-06-07 11:43:43,642] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
> "Connection: keep-alive[\r][\n]"
> [2016-06-07 11:43:43,643] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
> "[\r][\n]"
> [2016-06-07 11:43:43,663] ERROR - JsonUtil #writeAsJson. Payload could
> not be written as JSON. MessageID:
> urn:uuid:7cf1bb4f-1227-428f-ad6d-1899babf0b15
> [2016-06-07 11:43:43,666] ERROR - PassThroughHttpSender Failed to submit
> the response
> org.apache.axis2.AxisFault: Payload could not be written as JSON.
> at org.apache.synapse.commons.json.JsonUtil.writeAsJson(JsonUtil.java:260)
> at
> org.apache.synapse.commons.json.JsonStreamFormatter.writeTo(JsonStreamFormatter.java:61)
> at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:555)
> at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:264)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
> at
> org.apache.synapse.mediators.builtin.RespondMediator.mediate(RespondMediator.java:35)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:87)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:292)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:774)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:282)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:546)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:179)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.synapse.transport.passthru.ClientWorker.run(ClientW

Re: [Dev] Getting error JsonUtil #writeAsJson. Payload could not be written as JSON with ESB 5.0.0 - BETA

2016-06-07 Thread Kesavan Yogarajah
Please find the template [1] , proxy [2] configurations and sample request
[3].

[1] -



http://ws.apache.org/ns/synapse";>












[2] -


http://ws.apache.org/ns/synapse";
   name="z"
   transports="http,https"
   statistics="disable"
   trace="disable"
   startOnLoad="true">
   
  
 
 
 
 
 
 
{$ctx:apiUrl}
{$ctx:apiVersion}
{$ctx:apiAccessKeyId}

{$ctx:apiSecretAccessKey}
 
 
{$ctx:paymentMethodId}
 
 
  
   
   


[3] -
{
  "apiUrl": "https://apisandbox-api.zuora.com/rest";,
  "apiVersion": "v1",
  "apiAccessKeyId": "a...@sample.com",
  "apiSecretAccessKey": "zuorapwd"
}

Thanks

Kesavan Yogarajah
Software Engineer
Mobile :+94 (0) 779 758021
kesav...@wso2.com
WSO2, Inc.
lean . enterprise . middleware

On Tue, Jun 7, 2016 at 1:16 PM, Malaka Silva  wrote:

> Please share the synapse configs you are using?
>
> On Tue, Jun 7, 2016 at 12:33 PM, Kesavan Yogarajah 
> wrote:
>
>> Hi All,
>>
>> I am checking Zuora connector with ESB 5.0.0 - BETA.I am getting error
>> [1] when the API response with 403 comes with no body.But this works fine
>> with ESB -4.9.0 [2]. Is this an expected behavior?
>>
>> [1]
>>
>> [2016-06-07 11:43:43,212] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
>> "DELETE /rest/v1/payment-methods/ HTTP/1.1[\r][\n]"
>> [2016-06-07 11:43:43,213] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
>> "Authorization: Basic aXXX==[\r][\n]"
>> [2016-06-07 11:43:43,213] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
>> "Origin: chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop[\r][\n]"
>> [2016-06-07 11:43:43,214] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
>> "Action: urn:deletePayments[\r][\n]"
>> [2016-06-07 11:43:43,214] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
>> "Accept: */*[\r][\n]"
>> [2016-06-07 11:43:43,214] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
>> "Cache-Control: no-cache[\r][\n]"
>> [2016-06-07 11:43:43,215] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
>> "Postman-Token: b618abc9-99ca-9540-3332-b6302bb01e10[\r][\n]"
>> [2016-06-07 11:43:43,215] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
>> "Accept-Encoding: gzip, deflate[\r][\n]"
>> [2016-06-07 11:43:43,215] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
>> "Accept-Language: en-US,en;q=0.8[\r][\n]"
>> [2016-06-07 11:43:43,215] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
>> "Content-Type: application/json[\r][\n]"
>> [2016-06-07 11:43:43,215] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
>> "Host: apisandbox-api.zuora.com[\r][\n]"
>> [2016-06-07 11:43:43,216] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
>> "Connection: Keep-Alive[\r][\n]"
>> [2016-06-07 11:43:43,216] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
>> "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
>> [2016-06-07 11:43:43,216] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
>> "[\r][\n]"
>> [2016-06-07 11:43:43,639] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
>> "HTTP/1.1 403 Forbidden[\r][\n]"
>> [2016-06-07 11:43:43,640] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
>> "Server: Zuora App[\r][\n]"
>> [2016-06-07 11:43:43,640] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
>> "Access-Control-Allow-Credentials: true[\r][\n]"
>> [2016-06-07 11:43:43,641] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
>> "Access-Control-Allow-Origin:
>> chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop[\r][\n]"
>> [2016-06-07 11:43:43,641] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
>> "Content-Length: 0[\r][\n]"
>> [2016-06-07 11:43:43,641] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
>> "Expires: Tue, 07 Jun 2016 06:13:43 GMT[\r][\n]"
>> [2016-06-07 11:43:43,641] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
>> "Cache-Control: max-age=0, no-cache, no-store[\r][\n]"
>> [2016-06-07 11:43:43,642] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
>> "Pragma: no-cache[\r][\n]"
>> [2016-06-07 11:43:43,642] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
>> "Date: Tue, 07 Jun 2016 06:13:43 GMT[\r][\n]"
>> [2016-06-07 11:43:43,642] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
>> "Connection: keep-alive[\r][\n]"
>> [2016-06-07 11:43:43,643] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
>> "[\r][\n]"
>> [2016-06-07 11:43:43,663] ERROR - JsonUtil #writeAsJson. Payload could
>> not be written as JSON. MessageID:
>> urn:uuid:7cf1bb4f-1227-428f-ad6d-1899babf0b15
>> [2016-06-07 11:43:43,666] ERROR - PassThroughHttpSender Failed to submit
>> the response
>> org.apache.axis2.AxisFault: Payload could not be written as JSON.
>> at org.apache.synapse.commons.json.JsonUtil.writeAsJson(JsonUtil.java:260)
>> at
>> org.apache.synapse.commons.json.JsonStreamFormatter.writeTo(JsonStreamFormatter.java:61)
>> at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:555)
>> at
>> org.apache.synapse.transp

Re: [Dev] Remove old opensaml bundle from carbon-apimgt

2016-06-07 Thread Bhathiya Jayasekara
Great. Thanks Rajith.

Regards,
Bhathiya


On Tue, Jun 7, 2016 at 1:15 PM, Rajith Vitharana  wrote:

> Hi Bhathiya,
>
> [1] seems to be already a osgi bundle which is in maven central [2]
>
> [1] - 
>   org.apache.velocity
>   velocity
>   1.7
> 
> [2] - http://mvnrepository.com/artifact/org.apache.velocity/velocity/1.7
>
> Thanks,
>
> On Tue, Jun 7, 2016 at 12:57 PM, Bhathiya Jayasekara 
> wrote:
>
>> Hi Kasun,
>>
>> Do we already have a velocity orbit already? I can't find in
>> https://github.com/wso2/orbit
>>
>> Thanks,
>> Bhathiya
>>
>> On Tue, Jun 7, 2016 at 12:54 PM, Bhathiya Jayasekara 
>> wrote:
>>
>>> Thanks Kasun. Will do the change.
>>>
>>> Regards,
>>> Bhathiya
>>>
>>> On Tue, Jun 7, 2016 at 12:36 PM, KasunG Gajasinghe 
>>> wrote:
>>>
 Hi APIM team,

 The OpenSaml2 version 2.4.1.wso2v1 is deprecated due to several
 security vulnerabilities that were discovered. Therefore, please remove
 this bundle [1]. If you need to use opensaml2, then you should import this
 feature. [2]

 Note that the new opensaml2 bundle does not export velocity packages
 since that is wrong. If you need to directly use velocity, then you will
 need to use a Velocity orbit.

 [1]
 https://github.com/wso2/carbon-apimgt/commit/62cbfd6a9e42689b0624ea3a432daa412542ed3d

 [2]
 https://github.com/wso2-extensions/identity-inbound-auth-saml/blob/master/features/org.wso2.carbon.identity.sso.saml.server.feature/pom.xml

 Thanks,
 KasunG

 --

 *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org



>>>
>>>
>>>
>>> --
>>> *Bhathiya Jayasekara*
>>> *Senior Software Engineer,*
>>> *WSO2 inc., http://wso2.com *
>>>
>>> *Phone: +94715478185 <%2B94715478185>*
>>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>>> *
>>> *Twitter: https://twitter.com/bhathiyax *
>>> *Blog: http://movingaheadblog.blogspot.com
>>> *
>>>
>>
>>
>>
>> --
>> *Bhathiya Jayasekara*
>> *Senior Software Engineer,*
>> *WSO2 inc., http://wso2.com *
>>
>> *Phone: +94715478185 <%2B94715478185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> *
>> *Twitter: https://twitter.com/bhathiyax *
>> *Blog: http://movingaheadblog.blogspot.com
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rajith Vitharana
>
> Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
>



-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Requesting icons to represent nullables - data mapper editor

2016-06-07 Thread Sohani Weerasinghe
Hi Dakshika,

There is a requirement to allow null values for arrays, objects, elements,
attributes etc in json schema, and currently we are using the attached
images to represent the those. (non nullables)

Could we please get a new set of icons to represent *nullables* where those
icons should have an additional symbol added to the attached images.
(Please refer the below image)

The symbol should be something which represents that the element is
nullable.


​
Thanks,
Sohani

Sohani Weerasinghe
Senior Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.6 RC2

2016-06-07 Thread Kasun Bandara
Hi all,

We are having L1 reported in [1] and will be a blocker for IS. Please hold
off the vote proceedings until we find out the root cause of the issue.
Most probably this issue must be originated from user core.


Thanks,
Kasun.

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



On Tue, Jun 7, 2016 at 11:45 AM, KasunG Gajasinghe  wrote:

> Hi Viraj,
>
>
>
> On Tue, Jun 7, 2016 at 10:12 AM, Viraj Senevirathne 
> wrote:
>
>> Hi Kalpa,
>>
>> I tried to build product-esb with kernel RC2 but it failed as package
>> org.apache.velocity 0.0.0 dependency could not be found.
>>
>> *Installation failed.*
>> *Cannot complete the install because one or more required items could not
>> be found.*
>> * Software being installed: WSO2 Carbon - Mediators Feature
>> 4.6.1.SNAPSHOT (org.wso2.carbon.mediators.feature.group 4.6.1.SNAPSHOT)*
>> * Missing requirement: bsf-all 3.0.0.wso2v5 (bsf-all 3.0.0.wso2v5)
>> requires 'package org.apache.velocity 0.0.0' but it could not be found*
>> * Cannot satisfy dependency:*
>> *  From: WSO2 Carbon - Mediators Feature 4.6.1.SNAPSHOT
>> (org.wso2.carbon.mediators.feature.group 4.6.1.SNAPSHOT)*
>> *  To: org.wso2.carbon.mediators.server.feature.group [4.6.1.SNAPSHOT]*
>> * Cannot satisfy dependency:*
>> *  From: WSO2 Carbon - All Mediators Server Feature 4.6.1.SNAPSHOT
>> (org.wso2.carbon.mediators.server.feature.group 4.6.1.SNAPSHOT)*
>> *  To: bsf-all [3.0.0.wso2v5,3.1.0)*
>> *Application failed, log file location:
>> /home/virajrs/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1465274241567.log*
>>
>> How can we overcome this?
>>
>
> To fix security vulnerabilities, we have upgraded the opensaml orbit
> bundle to the latest. In that process, IS folks have fixed issues in the
> old opensaml orbit to conform to the new orbit guidelines. In that process,
> the org.apache.velocity packages were removed from opensaml. If you need
> opensaml, then you should include this feature [1].
>
> You shouldn't be using velocity packages directly that is coming from
> opensaml. If you only need velocity, then your feature need to include
> velocity orbit.
>
> [1]
> https://github.com/wso2-extensions/identity-inbound-auth-saml/blob/master/features/org.wso2.carbon.identity.sso.saml.server.feature/pom.xml
>
>
>
>>
>> Thank You,
>>
>> On Tue, Jun 7, 2016 at 8:32 AM, Kalpa Welivitigoda 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> This is the 2nd release candidate of WSO2 Carbon Kernel 4.4.6.
>>>
>>> This release fixes the following issues:
>>> https://wso2.org/jira/issues/?filter=13090
>>>
>>> Please download and test your products with kernel 4.4.6 RC1 and vote.
>>> Vote will be open for 72 hours or as longer as needed.
>>>
>>> ​Source and binary distribution files:​
>>>
>>> http://svn.wso2.org/repos/wso2/people/kalpaw/wso2carbon-4.4.6/wso2carbon-4.4.6-rc2.zip
>>>
>>> ​Maven staging repository:​
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1023/
>>>
>>> ​The tag to be voted upon:​
>>> https://github.com/wso2/carbon-kernel/tree/v4.4.6-rc2
>>>
>>>
>>> [ ] Broken - do not release (explain why)
>>> [ ] Stable - go ahead and release
>>>
>>> Thank you
>>> Carbon Team​
>>>
>>> --
>>> Best Regards,
>>>
>>> Kalpa Welivitigoda
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> Email: kal...@wso2.com
>>> Mobile: +94776509215
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
>
> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kasun Bandara
*Software Engineer*
Mobile : +94 (0) 718 338 360
<%2B94%20%280%29%20773%20451194>
kas...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.6 RC2

2016-06-07 Thread Niranjan Karunanandham
Hi KasunB,

Please create an equivalent JIRA in Kernel in-order to track this.

Regards,
Nira

On Tue, Jun 7, 2016 at 2:11 PM, Kasun Bandara  wrote:

> Hi all,
>
> We are having L1 reported in [1] and will be a blocker for IS. Please
> hold off the vote proceedings until we find out the root cause of the
> issue. Most probably this issue must be originated from user core.
>
>
> Thanks,
> Kasun.
>
> [1] https://wso2.org/jira/browse/IDENTITY-4656
>
>
>
> On Tue, Jun 7, 2016 at 11:45 AM, KasunG Gajasinghe 
> wrote:
>
>> Hi Viraj,
>>
>>
>>
>> On Tue, Jun 7, 2016 at 10:12 AM, Viraj Senevirathne 
>> wrote:
>>
>>> Hi Kalpa,
>>>
>>> I tried to build product-esb with kernel RC2 but it failed as package
>>> org.apache.velocity 0.0.0 dependency could not be found.
>>>
>>> *Installation failed.*
>>> *Cannot complete the install because one or more required items could
>>> not be found.*
>>> * Software being installed: WSO2 Carbon - Mediators Feature
>>> 4.6.1.SNAPSHOT (org.wso2.carbon.mediators.feature.group 4.6.1.SNAPSHOT)*
>>> * Missing requirement: bsf-all 3.0.0.wso2v5 (bsf-all 3.0.0.wso2v5)
>>> requires 'package org.apache.velocity 0.0.0' but it could not be found*
>>> * Cannot satisfy dependency:*
>>> *  From: WSO2 Carbon - Mediators Feature 4.6.1.SNAPSHOT
>>> (org.wso2.carbon.mediators.feature.group 4.6.1.SNAPSHOT)*
>>> *  To: org.wso2.carbon.mediators.server.feature.group [4.6.1.SNAPSHOT]*
>>> * Cannot satisfy dependency:*
>>> *  From: WSO2 Carbon - All Mediators Server Feature 4.6.1.SNAPSHOT
>>> (org.wso2.carbon.mediators.server.feature.group 4.6.1.SNAPSHOT)*
>>> *  To: bsf-all [3.0.0.wso2v5,3.1.0)*
>>> *Application failed, log file location:
>>> /home/virajrs/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1465274241567.log*
>>>
>>> How can we overcome this?
>>>
>>
>> To fix security vulnerabilities, we have upgraded the opensaml orbit
>> bundle to the latest. In that process, IS folks have fixed issues in the
>> old opensaml orbit to conform to the new orbit guidelines. In that process,
>> the org.apache.velocity packages were removed from opensaml. If you need
>> opensaml, then you should include this feature [1].
>>
>> You shouldn't be using velocity packages directly that is coming from
>> opensaml. If you only need velocity, then your feature need to include
>> velocity orbit.
>>
>> [1]
>> https://github.com/wso2-extensions/identity-inbound-auth-saml/blob/master/features/org.wso2.carbon.identity.sso.saml.server.feature/pom.xml
>>
>>
>>
>>>
>>> Thank You,
>>>
>>> On Tue, Jun 7, 2016 at 8:32 AM, Kalpa Welivitigoda 
>>> wrote:
>>>
 Hi Devs,

 This is the 2nd release candidate of WSO2 Carbon Kernel 4.4.6.

 This release fixes the following issues:
 https://wso2.org/jira/issues/?filter=13090

 Please download and test your products with kernel 4.4.6 RC1 and vote.
 Vote will be open for 72 hours or as longer as needed.

 ​Source and binary distribution files:​

 http://svn.wso2.org/repos/wso2/people/kalpaw/wso2carbon-4.4.6/wso2carbon-4.4.6-rc2.zip

 ​Maven staging repository:​
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1023/

 ​The tag to be voted upon:​
 https://github.com/wso2/carbon-kernel/tree/v4.4.6-rc2


 [ ] Broken - do not release (explain why)
 [ ] Stable - go ahead and release

 Thank you
 Carbon Team​

 --
 Best Regards,

 Kalpa Welivitigoda
 Software Engineer, WSO2 Inc. http://wso2.com
 Email: kal...@wso2.com
 Mobile: +94776509215

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


>>>
>>>
>>> --
>>> 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
>>>
>>>
>>
>>
>> --
>>
>> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Kasun Bandara
> *Software Engineer*
> Mobile : +94 (0) 718 338 360
> <%2B94%20%280%29%20773%20451194>
> kas...@wso2.com 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 


*Niranjan Karunanandham*
Associate Technical Lead - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Siddhi] Several concurrency issues in StreamPreStateProcessor class

2016-06-07 Thread Nirmal Fernando
Hi All,

Noticed below set of exceptions when load-testing API-M analytics setup.
Please attend to them asap.

Jira: https://wso2.org/jira/browse/CEP-1506

[1]

[2016-06-07 12:13:56,860] ERROR
{org.wso2.carbon.event.stream.core.internal.EventJunction} -  Error while
dispatching events: null
java.util.ConcurrentModificationException
at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:953)
at java.util.LinkedList$ListItr.remove(LinkedList.java:919)
at
org.wso2.siddhi.core.query.input.stream.state.StreamPreStateProcessor.processAndReturn(StreamPreStateProcessor.java:295)
at
org.wso2.siddhi.core.query.input.StateMultiProcessStreamReceiver.processAndClear(StateMultiProcessStreamReceiver.java:51)
at
org.wso2.siddhi.core.query.input.MultiProcessStreamReceiver.process(MultiProcessStreamReceiver.java:71)
at
org.wso2.siddhi.core.query.input.MultiProcessStreamReceiver.receive(MultiProcessStreamReceiver.java:85)
at
org.wso2.siddhi.core.query.input.stream.state.receiver.PatternMultiProcessStreamReceiver.receive(PatternMultiProcessStreamReceiver.java:53)
at
org.wso2.siddhi.core.stream.StreamJunction.sendEvent(StreamJunction.java:127)
at
org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:329)
at
org.wso2.siddhi.core.query.output.callback.InsertIntoStreamCallback.send(InsertIntoStreamCallback.java:38)
at
org.wso2.siddhi.core.query.output.ratelimit.OutputRateLimiter.sendToCallBacks(OutputRateLimiter.java:73)
at
org.wso2.siddhi.core.query.output.ratelimit.PassThroughOutputRateLimiter.process(PassThroughOutputRateLimiter.java:41)
at
org.wso2.siddhi.core.query.selector.QuerySelector.processNoGroupBy(QuerySelector.java:123)
at
org.wso2.siddhi.core.query.selector.QuerySelector.process(QuerySelector.java:86)
at
org.wso2.siddhi.core.query.input.ProcessStreamReceiver.processAndClear(ProcessStreamReceiver.java:141)
at
org.wso2.siddhi.core.query.input.ProcessStreamReceiver.process(ProcessStreamReceiver.java:72)
at
org.wso2.siddhi.core.query.input.ProcessStreamReceiver.receive(ProcessStreamReceiver.java:137)
at
org.wso2.siddhi.core.stream.StreamJunction.sendData(StreamJunction.java:215)
at
org.wso2.siddhi.core.stream.StreamJunction.access$200(StreamJunction.java:47)
at
org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:349)
at
org.wso2.siddhi.core.stream.input.InputDistributor.send(InputDistributor.java:49)
at
org.wso2.siddhi.core.stream.input.InputEntryValve.send(InputEntryValve.java:59)
at org.wso2.siddhi.core.stream.input.InputHandler.send(InputHandler.java:51)
at
org.wso2.carbon.event.processor.core.internal.listener.SiddhiInputEventDispatcher.sendEvent(SiddhiInputEventDispatcher.java:39)
at
org.wso2.carbon.event.processor.core.internal.listener.AbstractSiddhiInputEventDispatcher.consumeEvent(AbstractSiddhiInputEventDispatcher.java:104)
at
org.wso2.carbon.event.stream.core.internal.EventJunction.sendEvent(EventJunction.java:146)
at
org.wso2.carbon.event.receiver.core.internal.management.InputEventDispatcher.onEvent(InputEventDispatcher.java:27)
at
org.wso2.carbon.event.receiver.core.internal.EventReceiver.sendEvent(EventReceiver.java:280)
at
org.wso2.carbon.event.receiver.core.internal.EventReceiver.processTypedEvent(EventReceiver.java:260)
at
org.wso2.carbon.event.receiver.core.internal.EventReceiver$TypedEventSubscription.onEvent(EventReceiver.java:344)
at
org.wso2.carbon.event.input.adapter.core.internal.InputAdapterRuntime.onEvent(InputAdapterRuntime.java:110)
at
org.wso2.carbon.event.input.adapter.wso2event.internal.ds.WSO2EventAdapterServiceDS$1.receive(WSO2EventAdapterServiceDS.java:92)
at
org.wso2.carbon.databridge.core.internal.queue.QueueWorker.run(QueueWorker.java:81)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)


[2]

[2016-06-07 12:13:48,638] ERROR
{org.wso2.carbon.event.stream.core.internal.EventJunction} -  Error while
dispatching events: Index: 1, Size: 0
java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
at java.util.LinkedList.checkPositionIndex(LinkedList.java:558)
at java.util.LinkedList.addAll(LinkedList.java:404)
at java.util.LinkedList.addAll(LinkedList.java:385)
at
org.wso2.siddhi.core.query.input.stream.state.StreamPreStateProcessor.updateState(StreamPreStateProcessor.java:250)
at
org.wso2.siddhi.core.query.input.stream.state.receiver.PatternMultiProcessStreamReceiver.stabilizeStates(PatternMultiProcessStreamReceiver.java:46)
at
org.wso2.siddhi.core.query.input.MultiProcessStreamReceiver.receive(MultiProcessStreamReceiver.java:79)
at
org.wso2.siddhi.core.query.input.stream.state.receiver.PatternMultiProcessStreamReceiver.receive(PatternMultiProcessStreamReceiver.java:53)
at
org.wso2.siddhi.core.stream.StreamJunction.sendEvent(StreamJuncti

[Dev] [BPS][C5] Introducing bpmn.yml instead of activiti.xml

2016-06-07 Thread Hasitha Aravinda
Hi Devs,

​I
 have
​completed the​
 $Subject for BPS 4.0.0. In
​
the
​
previous version of the BPS server, we used activiti.xml which is spring
based configuration
​
[1].
​
New yaml based configuration
​
can be found from here
​ ​
[2].
​ This will support all the configuration parameters defined in [3] [4].

​[1] -
https://github.com/wso2/carbon-business-process/blob/master/features/bpmn/org.wso2.carbon.bpmn.server.feature/resources/conf/activiti.xml

[2]
​- ​
https://github.com/wso2/carbon-business-process/blob/5.0.x/components/bpmn/org.wso2.carbon.bpmn/src/main/resources/bpmn.yml

​[3] -
https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/engine/ProcessEngineConfiguration.java
​

​[4] -
https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/engine/impl/cfg/ProcessEngineConfigurationImpl.java
​

​T​hanks,
Hasitha.

--
--
Hasitha Aravinda,
Associate Technical Lead,
WSO2 Inc.
Email: hasi...@wso2.com
Mobile : +94 718 210 200
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.6 RC2

2016-06-07 Thread Kasun Bandara
Hi Niranjan,

Created [1] to track the equivalent Carbon JIRA.

[1] https://wso2.org/jira/browse/CARBON-15938

Thanks,
Kasun.

On Tue, Jun 7, 2016 at 2:23 PM, Niranjan Karunanandham 
wrote:

> Hi KasunB,
>
> Please create an equivalent JIRA in Kernel in-order to track this.
>
> Regards,
> Nira
>
> On Tue, Jun 7, 2016 at 2:11 PM, Kasun Bandara  wrote:
>
>> Hi all,
>>
>> We are having L1 reported in [1] and will be a blocker for IS. Please
>> hold off the vote proceedings until we find out the root cause of the
>> issue. Most probably this issue must be originated from user core.
>>
>>
>> Thanks,
>> Kasun.
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-4656
>>
>>
>>
>> On Tue, Jun 7, 2016 at 11:45 AM, KasunG Gajasinghe 
>> wrote:
>>
>>> Hi Viraj,
>>>
>>>
>>>
>>> On Tue, Jun 7, 2016 at 10:12 AM, Viraj Senevirathne 
>>> wrote:
>>>
 Hi Kalpa,

 I tried to build product-esb with kernel RC2 but it failed as package
 org.apache.velocity 0.0.0 dependency could not be found.

 *Installation failed.*
 *Cannot complete the install because one or more required items could
 not be found.*
 * Software being installed: WSO2 Carbon - Mediators Feature
 4.6.1.SNAPSHOT (org.wso2.carbon.mediators.feature.group 4.6.1.SNAPSHOT)*
 * Missing requirement: bsf-all 3.0.0.wso2v5 (bsf-all 3.0.0.wso2v5)
 requires 'package org.apache.velocity 0.0.0' but it could not be found*
 * Cannot satisfy dependency:*
 *  From: WSO2 Carbon - Mediators Feature 4.6.1.SNAPSHOT
 (org.wso2.carbon.mediators.feature.group 4.6.1.SNAPSHOT)*
 *  To: org.wso2.carbon.mediators.server.feature.group [4.6.1.SNAPSHOT]*
 * Cannot satisfy dependency:*
 *  From: WSO2 Carbon - All Mediators Server Feature 4.6.1.SNAPSHOT
 (org.wso2.carbon.mediators.server.feature.group 4.6.1.SNAPSHOT)*
 *  To: bsf-all [3.0.0.wso2v5,3.1.0)*
 *Application failed, log file location:
 /home/virajrs/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1465274241567.log*

 How can we overcome this?

>>>
>>> To fix security vulnerabilities, we have upgraded the opensaml orbit
>>> bundle to the latest. In that process, IS folks have fixed issues in the
>>> old opensaml orbit to conform to the new orbit guidelines. In that process,
>>> the org.apache.velocity packages were removed from opensaml. If you need
>>> opensaml, then you should include this feature [1].
>>>
>>> You shouldn't be using velocity packages directly that is coming from
>>> opensaml. If you only need velocity, then your feature need to include
>>> velocity orbit.
>>>
>>> [1]
>>> https://github.com/wso2-extensions/identity-inbound-auth-saml/blob/master/features/org.wso2.carbon.identity.sso.saml.server.feature/pom.xml
>>>
>>>
>>>

 Thank You,

 On Tue, Jun 7, 2016 at 8:32 AM, Kalpa Welivitigoda 
 wrote:

> Hi Devs,
>
> This is the 2nd release candidate of WSO2 Carbon Kernel 4.4.6.
>
> This release fixes the following issues:
> https://wso2.org/jira/issues/?filter=13090
>
> Please download and test your products with kernel 4.4.6 RC1 and vote.
> Vote will be open for 72 hours or as longer as needed.
>
> ​Source and binary distribution files:​
>
> http://svn.wso2.org/repos/wso2/people/kalpaw/wso2carbon-4.4.6/wso2carbon-4.4.6-rc2.zip
>
> ​Maven staging repository:​
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1023/
>
> ​The tag to be voted upon:​
> https://github.com/wso2/carbon-kernel/tree/v4.4.6-rc2
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Thank you
> Carbon Team​
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


>>>
>>>
>>> --
>>>
>>> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
>>> email: kasung AT spamfree wso2.com
>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>> blog: http://kasunbg.org
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Kasun Bandara
>> *Software Engineer*
>> Mobile : +94 (0) 718 338 360
>> <%2B94%20%280%29%20773%20451194>
>> kas...@wso2.com 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>

Re: [Dev] [Siddhi] Several concurrency issues in StreamPreStateProcessor class

2016-06-07 Thread Sriskandarajah Suhothayan
@Nirmal can you also attach the query used while this exception was
occurring

On Tue, Jun 7, 2016 at 2:26 PM, Nirmal Fernando  wrote:

> Hi All,
>
> Noticed below set of exceptions when load-testing API-M analytics setup.
> Please attend to them asap.
>
> Jira: https://wso2.org/jira/browse/CEP-1506
>
> [1]
>
> [2016-06-07 12:13:56,860] ERROR
> {org.wso2.carbon.event.stream.core.internal.EventJunction} -  Error while
> dispatching events: null
> java.util.ConcurrentModificationException
> at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:953)
> at java.util.LinkedList$ListItr.remove(LinkedList.java:919)
> at
> org.wso2.siddhi.core.query.input.stream.state.StreamPreStateProcessor.processAndReturn(StreamPreStateProcessor.java:295)
> at
> org.wso2.siddhi.core.query.input.StateMultiProcessStreamReceiver.processAndClear(StateMultiProcessStreamReceiver.java:51)
> at
> org.wso2.siddhi.core.query.input.MultiProcessStreamReceiver.process(MultiProcessStreamReceiver.java:71)
> at
> org.wso2.siddhi.core.query.input.MultiProcessStreamReceiver.receive(MultiProcessStreamReceiver.java:85)
> at
> org.wso2.siddhi.core.query.input.stream.state.receiver.PatternMultiProcessStreamReceiver.receive(PatternMultiProcessStreamReceiver.java:53)
> at
> org.wso2.siddhi.core.stream.StreamJunction.sendEvent(StreamJunction.java:127)
> at
> org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:329)
> at
> org.wso2.siddhi.core.query.output.callback.InsertIntoStreamCallback.send(InsertIntoStreamCallback.java:38)
> at
> org.wso2.siddhi.core.query.output.ratelimit.OutputRateLimiter.sendToCallBacks(OutputRateLimiter.java:73)
> at
> org.wso2.siddhi.core.query.output.ratelimit.PassThroughOutputRateLimiter.process(PassThroughOutputRateLimiter.java:41)
> at
> org.wso2.siddhi.core.query.selector.QuerySelector.processNoGroupBy(QuerySelector.java:123)
> at
> org.wso2.siddhi.core.query.selector.QuerySelector.process(QuerySelector.java:86)
> at
> org.wso2.siddhi.core.query.input.ProcessStreamReceiver.processAndClear(ProcessStreamReceiver.java:141)
> at
> org.wso2.siddhi.core.query.input.ProcessStreamReceiver.process(ProcessStreamReceiver.java:72)
> at
> org.wso2.siddhi.core.query.input.ProcessStreamReceiver.receive(ProcessStreamReceiver.java:137)
> at
> org.wso2.siddhi.core.stream.StreamJunction.sendData(StreamJunction.java:215)
> at
> org.wso2.siddhi.core.stream.StreamJunction.access$200(StreamJunction.java:47)
> at
> org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:349)
> at
> org.wso2.siddhi.core.stream.input.InputDistributor.send(InputDistributor.java:49)
> at
> org.wso2.siddhi.core.stream.input.InputEntryValve.send(InputEntryValve.java:59)
> at
> org.wso2.siddhi.core.stream.input.InputHandler.send(InputHandler.java:51)
> at
> org.wso2.carbon.event.processor.core.internal.listener.SiddhiInputEventDispatcher.sendEvent(SiddhiInputEventDispatcher.java:39)
> at
> org.wso2.carbon.event.processor.core.internal.listener.AbstractSiddhiInputEventDispatcher.consumeEvent(AbstractSiddhiInputEventDispatcher.java:104)
> at
> org.wso2.carbon.event.stream.core.internal.EventJunction.sendEvent(EventJunction.java:146)
> at
> org.wso2.carbon.event.receiver.core.internal.management.InputEventDispatcher.onEvent(InputEventDispatcher.java:27)
> at
> org.wso2.carbon.event.receiver.core.internal.EventReceiver.sendEvent(EventReceiver.java:280)
> at
> org.wso2.carbon.event.receiver.core.internal.EventReceiver.processTypedEvent(EventReceiver.java:260)
> at
> org.wso2.carbon.event.receiver.core.internal.EventReceiver$TypedEventSubscription.onEvent(EventReceiver.java:344)
> at
> org.wso2.carbon.event.input.adapter.core.internal.InputAdapterRuntime.onEvent(InputAdapterRuntime.java:110)
> at
> org.wso2.carbon.event.input.adapter.wso2event.internal.ds.WSO2EventAdapterServiceDS$1.receive(WSO2EventAdapterServiceDS.java:92)
> at
> org.wso2.carbon.databridge.core.internal.queue.QueueWorker.run(QueueWorker.java:81)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
>
>
> [2]
>
> [2016-06-07 12:13:48,638] ERROR
> {org.wso2.carbon.event.stream.core.internal.EventJunction} -  Error while
> dispatching events: Index: 1, Size: 0
> java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
> at java.util.LinkedList.checkPositionIndex(LinkedList.java:558)
> at java.util.LinkedList.addAll(LinkedList.java:404)
> at java.util.LinkedList.addAll(LinkedList.java:385)
> at
> org.wso2.siddhi.core.query.input.stream.state.StreamPreStateProcessor.updateState(StreamPreStateProcessor.java:250)
> at
> org.wso2.siddhi.core.query.input.stream.state.receiver.PatternMultiProcessStreamReceiver.stabilizeStates(PatternMultiProcessStreamReceiver.

Re: [Dev] [Siddhi] Several concurrency issues in StreamPreStateProcessor class

2016-06-07 Thread Nirmal Fernando
Hi Suho,

We're using following execution plans in API-M analytics and not sure which
one triggered this;

https://github.com/wso2/analytics-apim/tree/master/features/org.wso2.analytics.apim.feature/src/main/resources/execution-manager/executionplans

On Tue, Jun 7, 2016 at 2:45 PM, Sriskandarajah Suhothayan 
wrote:

> @Nirmal can you also attach the query used while this exception was
> occurring
>
> On Tue, Jun 7, 2016 at 2:26 PM, Nirmal Fernando  wrote:
>
>> Hi All,
>>
>> Noticed below set of exceptions when load-testing API-M analytics setup.
>> Please attend to them asap.
>>
>> Jira: https://wso2.org/jira/browse/CEP-1506
>>
>> [1]
>>
>> [2016-06-07 12:13:56,860] ERROR
>> {org.wso2.carbon.event.stream.core.internal.EventJunction} -  Error while
>> dispatching events: null
>> java.util.ConcurrentModificationException
>> at
>> java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:953)
>> at java.util.LinkedList$ListItr.remove(LinkedList.java:919)
>> at
>> org.wso2.siddhi.core.query.input.stream.state.StreamPreStateProcessor.processAndReturn(StreamPreStateProcessor.java:295)
>> at
>> org.wso2.siddhi.core.query.input.StateMultiProcessStreamReceiver.processAndClear(StateMultiProcessStreamReceiver.java:51)
>> at
>> org.wso2.siddhi.core.query.input.MultiProcessStreamReceiver.process(MultiProcessStreamReceiver.java:71)
>> at
>> org.wso2.siddhi.core.query.input.MultiProcessStreamReceiver.receive(MultiProcessStreamReceiver.java:85)
>> at
>> org.wso2.siddhi.core.query.input.stream.state.receiver.PatternMultiProcessStreamReceiver.receive(PatternMultiProcessStreamReceiver.java:53)
>> at
>> org.wso2.siddhi.core.stream.StreamJunction.sendEvent(StreamJunction.java:127)
>> at
>> org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:329)
>> at
>> org.wso2.siddhi.core.query.output.callback.InsertIntoStreamCallback.send(InsertIntoStreamCallback.java:38)
>> at
>> org.wso2.siddhi.core.query.output.ratelimit.OutputRateLimiter.sendToCallBacks(OutputRateLimiter.java:73)
>> at
>> org.wso2.siddhi.core.query.output.ratelimit.PassThroughOutputRateLimiter.process(PassThroughOutputRateLimiter.java:41)
>> at
>> org.wso2.siddhi.core.query.selector.QuerySelector.processNoGroupBy(QuerySelector.java:123)
>> at
>> org.wso2.siddhi.core.query.selector.QuerySelector.process(QuerySelector.java:86)
>> at
>> org.wso2.siddhi.core.query.input.ProcessStreamReceiver.processAndClear(ProcessStreamReceiver.java:141)
>> at
>> org.wso2.siddhi.core.query.input.ProcessStreamReceiver.process(ProcessStreamReceiver.java:72)
>> at
>> org.wso2.siddhi.core.query.input.ProcessStreamReceiver.receive(ProcessStreamReceiver.java:137)
>> at
>> org.wso2.siddhi.core.stream.StreamJunction.sendData(StreamJunction.java:215)
>> at
>> org.wso2.siddhi.core.stream.StreamJunction.access$200(StreamJunction.java:47)
>> at
>> org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:349)
>> at
>> org.wso2.siddhi.core.stream.input.InputDistributor.send(InputDistributor.java:49)
>> at
>> org.wso2.siddhi.core.stream.input.InputEntryValve.send(InputEntryValve.java:59)
>> at
>> org.wso2.siddhi.core.stream.input.InputHandler.send(InputHandler.java:51)
>> at
>> org.wso2.carbon.event.processor.core.internal.listener.SiddhiInputEventDispatcher.sendEvent(SiddhiInputEventDispatcher.java:39)
>> at
>> org.wso2.carbon.event.processor.core.internal.listener.AbstractSiddhiInputEventDispatcher.consumeEvent(AbstractSiddhiInputEventDispatcher.java:104)
>> at
>> org.wso2.carbon.event.stream.core.internal.EventJunction.sendEvent(EventJunction.java:146)
>> at
>> org.wso2.carbon.event.receiver.core.internal.management.InputEventDispatcher.onEvent(InputEventDispatcher.java:27)
>> at
>> org.wso2.carbon.event.receiver.core.internal.EventReceiver.sendEvent(EventReceiver.java:280)
>> at
>> org.wso2.carbon.event.receiver.core.internal.EventReceiver.processTypedEvent(EventReceiver.java:260)
>> at
>> org.wso2.carbon.event.receiver.core.internal.EventReceiver$TypedEventSubscription.onEvent(EventReceiver.java:344)
>> at
>> org.wso2.carbon.event.input.adapter.core.internal.InputAdapterRuntime.onEvent(InputAdapterRuntime.java:110)
>> at
>> org.wso2.carbon.event.input.adapter.wso2event.internal.ds.WSO2EventAdapterServiceDS$1.receive(WSO2EventAdapterServiceDS.java:92)
>> at
>> org.wso2.carbon.databridge.core.internal.queue.QueueWorker.run(QueueWorker.java:81)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>>
>>
>> [2]
>>
>> [2016-06-07 12:13:48,638] ERROR
>> {org.wso2.carbon.event.stream.core.internal.EventJunction} -  Error while
>> dispatching events: Index: 1, Size: 0
>> java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
>> at java.util.Linke

Re: [Dev] GSoC2016-Contact Development Team Feature

2016-06-07 Thread Jasintha Dasanayake
HI Nathiesha

I couldn't see any commit[1] during the last couple of week, it's good
practices to do commit stuff daily basis, because it's easy for us to
review and provide regular feedbacks.

Shall we have a progress review during the next week ?.

Thanks and Regards
/Jasintha

[1]-
https://github.com/nathiesha/org.wso2.developerstudio.eclipse.errorreporter.git

On Sat, May 14, 2016 at 6:12 PM, Nathiesha Maddage <
nathieshamadd...@gmail.com> wrote:

> Hi all,
>
> I formatted and cleaned the code and added the licence header.
> Regarding the naming of the project, I named the project
> as org.wso2.developerstudio.eclipse.errorreporter for now. And about the
> packages, I referred to the developer studio plugins projects you have sent
> me. However as I am still not familiar with the naming conventions for
> developer studio plugins I temporarily created a couple of packages to
> group the Java classes. I hope I can do the proper renaming and packaging
> later with your support.
>
> I created the ErrorInfoCollector class and there all the system
> information and error related information is fetched. However I couldn't
> find a method to get the plugin version and I am still working on it. And
> the error report that I have sent you previously had an attribute called
> fingerprint and it also contained a set of bundle information. Those two
> parts I could not understand. So I left them for now.
> As you suggested, this class can be improved later to
> collect further information regarding the error.
>
> I started with preferences page as well. I created a draft preference page
> and currently working on improving it.
>
> This is the new GitHub link of the project repository. Please refer to
> this afterwards.
>
> Link-
> https://github.com/nathiesha/org.wso2.developerstudio.eclipse.errorreporter.git
>
> Thanks and Regards
>
> Nathiesha
>
>
>
> On Fri, May 13, 2016 at 12:26 PM, Kavith Lokuhewage 
> wrote:
>
>> Hi Nathiesha,
>>
>> Please find my inline comments.
>>
>> On Wed, May 11, 2016 at 12:10 PM, Nathiesha Maddage <
>> nathieshamadd...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> Regarding the preference settings, as I have read, the plugins that are
>>> started early are listed in preferences-general-startup and shutdown page.
>>> So the user can deselect the plugin from that list and then it will not be
>>> started once Eclipse starts. Is this what is expected?
>>>
>>
>> No. This is not the expectation.
>>
>> Or I can add an option for the user to configure the start up settings of
>>> the error reporting plugin, in a separate preference page, that I am going
>>> to develop for the Error Reporting plugin settings.
>>>
>>
>> Yes. This is the expectation.
>>
>>
>>> And regarding the multi status of IStatus, I will look into that and I
>>> will try to fetch all the previously failed operation information. Here I
>>> have attached a error report that Eclipse error reporting tool produces.
>>> Please have a look at the information listed in that report regarding the
>>> error. As you have mentioned earlier, I will add the previously failed
>>> operation details if available. Other than previously failed operations and
>>> the information listed in the attached report , what else need to be added
>>> to the error report? Or is that information sufficient for the development
>>> team?
>>>
>>
>> For now, we will keep our focus on this information and give priority to
>> them. However, there's always chance for improvements. Later, if time
>> permits, we may focus on the aspects such as attaching the artifacts which
>> could have caused the issue (with the permission of user), information
>> about project hierarchy, active editor, perspective etc. (we should analyse
>> the needs for these further), etc.
>>
>>
>>>
>>> And thank you for the tips about getting the run time details. That
>>> saved my time. I will try those. And as you have suggested, it is good to
>>> use the proper coding standards from the beginning. I will get an idea from
>>> the example project you have sent me, and I will refactor the code
>>> accordingly.
>>>
>>>
>>
>>> Thanks and regards
>>>
>>> Nathiesha
>>>
>>>
>>>
>>> On Wed, May 11, 2016 at 10:08 AM, Kavith Lokuhewage 
>>> wrote:
>>>
 Hi Nathiesha,

 Great start! Just some heads up for your next steps.

 An IStatus instance sometimes could be a multi status instance where
 you can get other IStatus instances associated with it using the
 getChildren() method[1]. This simply means that a series of operations
 failed and information about previously failed operations are also valuable
 when making the report.

 There are multiple ways to read java run-time version, the easiest
 would be to read the system property called "java.runtime.version".

 Furthermore, org.eclipse.core.runtime.Platform class [2] provides
 multiple methods to fetch run-time environment information such as OS name,
 architecture and windowing library etc. 

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.6 RC2

2016-06-07 Thread KasunG Gajasinghe
Others, please continue to testing the pack and report all the issues so we
can check and fix.

On Tue, Jun 7, 2016 at 2:31 PM, Kasun Bandara  wrote:

> Hi Niranjan,
>
> Created [1] to track the equivalent Carbon JIRA.
>
> [1] https://wso2.org/jira/browse/CARBON-15938
>
> Thanks,
> Kasun.
>
> On Tue, Jun 7, 2016 at 2:23 PM, Niranjan Karunanandham 
> wrote:
>
>> Hi KasunB,
>>
>> Please create an equivalent JIRA in Kernel in-order to track this.
>>
>> Regards,
>> Nira
>>
>> On Tue, Jun 7, 2016 at 2:11 PM, Kasun Bandara  wrote:
>>
>>> Hi all,
>>>
>>> We are having L1 reported in [1] and will be a blocker for IS. Please
>>> hold off the vote proceedings until we find out the root cause of the
>>> issue. Most probably this issue must be originated from user core.
>>>
>>>
>>> Thanks,
>>> Kasun.
>>>
>>> [1] https://wso2.org/jira/browse/IDENTITY-4656
>>>
>>>
>>>
>>> On Tue, Jun 7, 2016 at 11:45 AM, KasunG Gajasinghe 
>>> wrote:
>>>
 Hi Viraj,



 On Tue, Jun 7, 2016 at 10:12 AM, Viraj Senevirathne 
 wrote:

> Hi Kalpa,
>
> I tried to build product-esb with kernel RC2 but it failed as package
> org.apache.velocity 0.0.0 dependency could not be found.
>
> *Installation failed.*
> *Cannot complete the install because one or more required items could
> not be found.*
> * Software being installed: WSO2 Carbon - Mediators Feature
> 4.6.1.SNAPSHOT (org.wso2.carbon.mediators.feature.group 4.6.1.SNAPSHOT)*
> * Missing requirement: bsf-all 3.0.0.wso2v5 (bsf-all 3.0.0.wso2v5)
> requires 'package org.apache.velocity 0.0.0' but it could not be found*
> * Cannot satisfy dependency:*
> *  From: WSO2 Carbon - Mediators Feature 4.6.1.SNAPSHOT
> (org.wso2.carbon.mediators.feature.group 4.6.1.SNAPSHOT)*
> *  To: org.wso2.carbon.mediators.server.feature.group [4.6.1.SNAPSHOT]*
> * Cannot satisfy dependency:*
> *  From: WSO2 Carbon - All Mediators Server Feature 4.6.1.SNAPSHOT
> (org.wso2.carbon.mediators.server.feature.group 4.6.1.SNAPSHOT)*
> *  To: bsf-all [3.0.0.wso2v5,3.1.0)*
> *Application failed, log file location:
> /home/virajrs/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1465274241567.log*
>
> How can we overcome this?
>

 To fix security vulnerabilities, we have upgraded the opensaml orbit
 bundle to the latest. In that process, IS folks have fixed issues in the
 old opensaml orbit to conform to the new orbit guidelines. In that process,
 the org.apache.velocity packages were removed from opensaml. If you need
 opensaml, then you should include this feature [1].

 You shouldn't be using velocity packages directly that is coming from
 opensaml. If you only need velocity, then your feature need to include
 velocity orbit.

 [1]
 https://github.com/wso2-extensions/identity-inbound-auth-saml/blob/master/features/org.wso2.carbon.identity.sso.saml.server.feature/pom.xml



>
> Thank You,
>
> On Tue, Jun 7, 2016 at 8:32 AM, Kalpa Welivitigoda 
> wrote:
>
>> Hi Devs,
>>
>> This is the 2nd release candidate of WSO2 Carbon Kernel 4.4.6.
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/issues/?filter=13090
>>
>> Please download and test your products with kernel 4.4.6 RC1 and
>> vote. Vote will be open for 72 hours or as longer as needed.
>>
>> ​Source and binary distribution files:​
>>
>> http://svn.wso2.org/repos/wso2/people/kalpaw/wso2carbon-4.4.6/wso2carbon-4.4.6-rc2.zip
>>
>> ​Maven staging repository:​
>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1023/
>>
>> ​The tag to be voted upon:​
>> https://github.com/wso2/carbon-kernel/tree/v4.4.6-rc2
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>> Thank you
>> Carbon Team​
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: kal...@wso2.com
>> Mobile: +94776509215
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 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
>
>


 --

 *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.

Re: [Dev] [BPS][Tooling] UI Modifications for Human Task Editor

2016-06-07 Thread Awanthika Senarath
Hello Heshitha,

This looks good.


Few things I noticed,

in hteditor2 image, it is better if we can have the table topic centered in
the box you have put, right now it is top-aligned and the button on the
other corner is bottom aligned. Can we get both of them in the same
horizontal line? then we can reduce the height of the box you have
introduced to display that topic and the button.

Also we can introduce an icon to the addinput button, a plus sign may be?
the two blue colors in the page heading and the button are different, the
ApproveLeave tab blue color is not very pleasing. Can we change that also
to the button color?

The tables with radio button elements consume too much space don't you
think? we can display those items in a table line half that height. we can
remove the lines in that box. Is it possible to introduce styling similar
to something like this in that table?

[image: Inline image 1]

Regards
Awanthika

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Tue, Jun 7, 2016 at 5:06 PM, Heshitha Hettihewa 
wrote:

> Hi all,
>
> As discussed in the last review I have added some bootstrap styles to the
> Human Task Editor GUI. Further I've replaced some existing UI elements with
> bootstrap input types. Please find the Screen shots of the modified GUI
> editor attached herewith.  Is there any further modifications to be done?
> or can we continue with this GUI?.
>
> Appreciate your input.
>
> Thanks.
> --
> Heshitha Hettihewa
> *Software Engineer*
> Mobile : +94716866386
> <%2B94%20%280%29%20773%20451194>
> heshit...@wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS][Tooling] UI Modifications for Human Task Editor

2016-06-07 Thread Heshitha Hettihewa
Hi Awanthika,

Thanks a lot for the suggestions, I will add the mentioned changes. And for
the last section, you mean adding a table similar to the image in every
box? or remove the boxes and keep a single table which contain all the
people assignments?.

Thanks.

On Tue, Jun 7, 2016 at 5:16 PM, Awanthika Senarath 
wrote:

> Hello Heshitha,
>
> This looks good.
>
>
> Few things I noticed,
>
> in hteditor2 image, it is better if we can have the table topic centered
> in the box you have put, right now it is top-aligned and the button on the
> other corner is bottom aligned. Can we get both of them in the same
> horizontal line? then we can reduce the height of the box you have
> introduced to display that topic and the button.
>
> Also we can introduce an icon to the addinput button, a plus sign may be?
> the two blue colors in the page heading and the button are different, the
> ApproveLeave tab blue color is not very pleasing. Can we change that also
> to the button color?
>
> The tables with radio button elements consume too much space don't you
> think? we can display those items in a table line half that height. we can
> remove the lines in that box. Is it possible to introduce styling similar
> to something like this in that table?
>
> [image: Inline image 1]
>
> Regards
> Awanthika
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Tue, Jun 7, 2016 at 5:06 PM, Heshitha Hettihewa 
> wrote:
>
>> Hi all,
>>
>> As discussed in the last review I have added some bootstrap styles to the
>> Human Task Editor GUI. Further I've replaced some existing UI elements with
>> bootstrap input types. Please find the Screen shots of the modified GUI
>> editor attached herewith.  Is there any further modifications to be done?
>> or can we continue with this GUI?.
>>
>> Appreciate your input.
>>
>> Thanks.
>> --
>> Heshitha Hettihewa
>> *Software Engineer*
>> Mobile : +94716866386
>> <%2B94%20%280%29%20773%20451194>
>> heshit...@wso2.com
>>
>
>


-- 
Heshitha Hettihewa
*Software Engineer*
Mobile : +94716866386
<%2B94%20%280%29%20773%20451194>
heshit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS][Tooling] UI Modifications for Human Task Editor

2016-06-07 Thread Awanthika Senarath
@Heshitha : not to remove boxes, yes same style in each box, the boxes are
too big to get just a few information IMO.

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Tue, Jun 7, 2016 at 5:45 PM, Heshitha Hettihewa 
wrote:

> Hi Awanthika,
>
> Thanks a lot for the suggestions, I will add the mentioned changes. And
> for the last section, you mean adding a table similar to the image in every
> box? or remove the boxes and keep a single table which contain all the
> people assignments?.
>
> Thanks.
>
> On Tue, Jun 7, 2016 at 5:16 PM, Awanthika Senarath 
> wrote:
>
>> Hello Heshitha,
>>
>> This looks good.
>>
>>
>> Few things I noticed,
>>
>> in hteditor2 image, it is better if we can have the table topic centered
>> in the box you have put, right now it is top-aligned and the button on the
>> other corner is bottom aligned. Can we get both of them in the same
>> horizontal line? then we can reduce the height of the box you have
>> introduced to display that topic and the button.
>>
>> Also we can introduce an icon to the addinput button, a plus sign may be?
>> the two blue colors in the page heading and the button are different, the
>> ApproveLeave tab blue color is not very pleasing. Can we change that also
>> to the button color?
>>
>> The tables with radio button elements consume too much space don't you
>> think? we can display those items in a table line half that height. we can
>> remove the lines in that box. Is it possible to introduce styling similar
>> to something like this in that table?
>>
>> [image: Inline image 1]
>>
>> Regards
>> Awanthika
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> On Tue, Jun 7, 2016 at 5:06 PM, Heshitha Hettihewa 
>> wrote:
>>
>>> Hi all,
>>>
>>> As discussed in the last review I have added some bootstrap styles to
>>> the Human Task Editor GUI. Further I've replaced some existing UI elements
>>> with bootstrap input types. Please find the Screen shots of the modified
>>> GUI editor attached herewith.  Is there any further modifications to be
>>> done? or can we continue with this GUI?.
>>>
>>> Appreciate your input.
>>>
>>> Thanks.
>>> --
>>> Heshitha Hettihewa
>>> *Software Engineer*
>>> Mobile : +94716866386
>>> <%2B94%20%280%29%20773%20451194>
>>> heshit...@wso2.com
>>>
>>
>>
>
>
> --
> Heshitha Hettihewa
> *Software Engineer*
> Mobile : +94716866386
> <%2B94%20%280%29%20773%20451194>
> heshit...@wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.6 RC2

2016-06-07 Thread Anupama Pathirage
Hi,

We got the following issues when testing WSO2 DSS with the Kernel RC2
Release.

*1) *Any action on management console gives the following error. It seems
to be related with the tomcat upgrade and appreciate your input on this.

[2016-06-07 17:21:16,905] ERROR
{org.apache.coyote.AbstractProtocol$AbstractConnectionHandler} -  Error
reading request, ignored
java.lang.NoSuchMethodError: org.apache.coyote.Request.getBytesRead()I
at org.apache.coyote.RequestInfo.updateCounters(RequestInfo.java:143)
at org.apache.coyote.Request.updateCounters(Request.java:533)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1140)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1749)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1708)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

*2) *DBS file uploads gives the following error which returns Error 403 -
Forbidden

[2016-06-07 17:21:16,904]  WARN {org.owasp.csrfguard.log.JavaLogger} -
potential cross-site request forgery (CSRF) attack thwarted
(user:, ip:10.100.7.118, method:POST,
uri:/carbon/admin/jsp/WSRequestXSSproxy_ajaxprocessor.jsp, error:required
token is missing from the request)

Regards,

On Tue, Jun 7, 2016 at 4:46 PM, KasunG Gajasinghe  wrote:

>
> Others, please continue to testing the pack and report all the issues so
> we can check and fix.
>
> On Tue, Jun 7, 2016 at 2:31 PM, Kasun Bandara  wrote:
>
>> Hi Niranjan,
>>
>> Created [1] to track the equivalent Carbon JIRA.
>>
>> [1] https://wso2.org/jira/browse/CARBON-15938
>>
>> Thanks,
>> Kasun.
>>
>> On Tue, Jun 7, 2016 at 2:23 PM, Niranjan Karunanandham > > wrote:
>>
>>> Hi KasunB,
>>>
>>> Please create an equivalent JIRA in Kernel in-order to track this.
>>>
>>> Regards,
>>> Nira
>>>
>>> On Tue, Jun 7, 2016 at 2:11 PM, Kasun Bandara  wrote:
>>>
 Hi all,

 We are having L1 reported in [1] and will be a blocker for IS. Please
 hold off the vote proceedings until we find out the root cause of the
 issue. Most probably this issue must be originated from user core.


 Thanks,
 Kasun.

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



 On Tue, Jun 7, 2016 at 11:45 AM, KasunG Gajasinghe 
 wrote:

> Hi Viraj,
>
>
>
> On Tue, Jun 7, 2016 at 10:12 AM, Viraj Senevirathne 
> wrote:
>
>> Hi Kalpa,
>>
>> I tried to build product-esb with kernel RC2 but it failed as package
>> org.apache.velocity 0.0.0 dependency could not be found.
>>
>> *Installation failed.*
>> *Cannot complete the install because one or more required items could
>> not be found.*
>> * Software being installed: WSO2 Carbon - Mediators Feature
>> 4.6.1.SNAPSHOT (org.wso2.carbon.mediators.feature.group 4.6.1.SNAPSHOT)*
>> * Missing requirement: bsf-all 3.0.0.wso2v5 (bsf-all 3.0.0.wso2v5)
>> requires 'package org.apache.velocity 0.0.0' but it could not be found*
>> * Cannot satisfy dependency:*
>> *  From: WSO2 Carbon - Mediators Feature 4.6.1.SNAPSHOT
>> (org.wso2.carbon.mediators.feature.group 4.6.1.SNAPSHOT)*
>> *  To: org.wso2.carbon.mediators.server.feature.group
>> [4.6.1.SNAPSHOT]*
>> * Cannot satisfy dependency:*
>> *  From: WSO2 Carbon - All Mediators Server Feature 4.6.1.SNAPSHOT
>> (org.wso2.carbon.mediators.server.feature.group 4.6.1.SNAPSHOT)*
>> *  To: bsf-all [3.0.0.wso2v5,3.1.0)*
>> *Application failed, log file location:
>> /home/virajrs/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1465274241567.log*
>>
>> How can we overcome this?
>>
>
> To fix security vulnerabilities, we have upgraded the opensaml orbit
> bundle to the latest. In that process, IS folks have fixed issues in the
> old opensaml orbit to conform to the new orbit guidelines. In that 
> process,
> the org.apache.velocity packages were removed from opensaml. If you need
> opensaml, then you should include this feature [1].
>
> You shouldn't be using velocity packages directly that is coming from
> opensaml. If you only need velocity, then your feature need to include
> velocity orbit.
>
> [1]
> https://github.com/wso2-extensions/identity-inbound-auth-saml/blob/master/features/org.wso2.carbon.identity.sso.saml.server.feature/pom.xml
>
>
>
>>
>> Thank You,
>>
>> On Tue, Jun 7, 2016 at 8:32 AM, Kalpa Welivitigoda 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> This is the 2nd rel

Re: [Dev] Fwd: GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-06-07 Thread Mahesh Dananjaya
Hi Maheshkya,
I have changed the siddhi query for our StreamingKMeansClustering by adding
Alpha into the picture which we can use to make data horizon (how quickly a
most recent data point becomes a part of the model) and data obsolescence
(how long does it take a past data point to become irrelevant to the
model)in the streaming clustering algorithms.i have added new changes to
repo [1] introducing StreamingKMeansClusteringModel and
StreamingKMeansCLustering classes to project.new siddhi query is as follows.

from Stream8Input#streaming:streamingkm(0, 2,2,20,1,0.95 salary, rbi,
walks, strikeouts, errors)

select *
insert into regResults;

regrads,
Mahesh.

[1] https://github.com/dananjayamahesh/GSOC2016/tree/master/gsoc

On Mon, Jun 6, 2016 at 6:31 PM, Mahesh Dananjaya 
wrote:

> Hi Maheshakya,
> As we have discussed the architecture of the project i have already
> developed a couple of essential components for our project. During last
> week i completed the writing cep siddhi extension for our streaming
> algorithms which are developed to learn incrementally with past
> experiences. I have written the siddhi extensions with StreamProcessor
> extension for StreamingLinearRegerssion and StreamingKMeansClustering with
> the relevant parameters to call it as siddhi query. On the other hand i did
> some research on developing Mini Batch KMeans clustering for our
> StreamingKMeansClustering. And also i added the moving window addition to
> usual batch processing. And currently i am working on the time based
> incremental  re-trainign method for siddhi streams. On the
> StreamingClustering side i have already part of th
> StreamingKMeansClustering with the mini batch KMeans clustering. All the
> work i did were pushed to my repo in github [1]. you can find the
> development on gsoc/ directory.
>  And also as the ml team and supun was asked, i have did some timing and
> performance analysis for our SGD (Stochastic Gradient Descent) algorithms
> for LinearRegression. Those results also add to my repo in [2]. Now i am
> developing the rest for our purpose and trying to looked into other
> researches on predictive analysis for online big data. Ans also doing some
> work related to mini batch KMEans Clustering. And also i have been working
> on the performance analysis, accuracy and basic comparison between mini
> batch algorithms and moving window algorithms for streaming and periodic
> re-training of ML model. thank you.
> BR,
> Mahesh.
> [1] https://github.com/dananjayamahesh/GSOC2016
> [2]
> https://github.com/dananjayamahesh/GSOC2016/blob/master/spark-examples/first-example/output/lr_timing_1.jpg
>
>
> On Sat, Jun 4, 2016 at 8:50 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi Maheshkya,
>> If you want to run it please use following queries.
>> 1. StreamingLInearRegression
>>
>> from Stream4InputStream#streaming:streaminglr(0, 2, 0.95, salary, rbi,
>> walks, strikeouts, errors)
>>
>> select *
>>
>> insert into regResults;
>>
>> from Stream8Input#streaming:streamingkm(0, 2, 0.95,2,20, salary, rbi,
>> walks, strikeouts, errors)
>>
>> select *
>> insert into regResults;
>>
>> in both case the first parameter let you to decide which learning methos
>> you want, moving window, batch processing or time based model learning.
>> BR,
>> Mahesh.
>>
>> On Sat, Jun 4, 2016 at 8:45 PM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>> Hi Maheshkaya,
>>> I have added the moving window method and update the previos
>>> StreamingLinearRegression [1] which only performed batch processing with
>>> streaming data. and also i added the StreamingKMeansClustering [1] for our
>>> purposes and debugged them.thank you.
>>> regards,
>>> Mahesh.
>>> [1]
>>> https://github.com/dananjayamahesh/GSOC2016/tree/master/gsoc/siddhi/extension/streaming/src/main/java/org/gsoc/siddhi/extension/streaming
>>>
>>> On Sat, Jun 4, 2016 at 5:58 PM, Supun Sethunga  wrote:
>>>
 Thanks Mahesh! The graphs look promising! :)

 So by looking at graph, LR with SGD can train  a model within 60 secs
 (6*10^10 nano sec), using about 900,000 data points . Means, this online
 training can handle events/data points coming at rate of 15,000 per second
 (or more) , if the batch size is set to 900,000 (or less) or window size is
 set to 60 secs (or less). This is great IMO!

 On Sat, Jun 4, 2016 at 10:51 AM, Mahesh Dananjaya <
 dananjayamah...@gmail.com> wrote:

> Hi Maheshakya,
> As you requested i can change other parameters as well such as feature
> size(p). Initially i did it with p=3;sure thing. Anyway you can see and 
> run
> the code if you want. source is at [1]. the test timing is called with
> random data as you requested if you set args[0] to 1. And you can find the
> extension and streaming algorithms in gsoc/ directiry[2]. thank you.
> BR,
> Mahesh.
> [1]
> https://github.com/dananjayamahesh/GSOC2016/blob/master/spark-examples/first-ex

Re: [Dev] [BPS][Tooling] UI Modifications for Human Task Editor

2016-06-07 Thread Heshitha Hettihewa
Hi Awanthika,

Yeah. That can be done. I will add that change too.

Thanks.

On Tue, Jun 7, 2016 at 5:50 PM, Awanthika Senarath 
wrote:

> @Heshitha : not to remove boxes, yes same style in each box, the boxes are
> too big to get just a few information IMO.
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Tue, Jun 7, 2016 at 5:45 PM, Heshitha Hettihewa 
> wrote:
>
>> Hi Awanthika,
>>
>> Thanks a lot for the suggestions, I will add the mentioned changes. And
>> for the last section, you mean adding a table similar to the image in every
>> box? or remove the boxes and keep a single table which contain all the
>> people assignments?.
>>
>> Thanks.
>>
>> On Tue, Jun 7, 2016 at 5:16 PM, Awanthika Senarath 
>> wrote:
>>
>>> Hello Heshitha,
>>>
>>> This looks good.
>>>
>>>
>>> Few things I noticed,
>>>
>>> in hteditor2 image, it is better if we can have the table topic centered
>>> in the box you have put, right now it is top-aligned and the button on the
>>> other corner is bottom aligned. Can we get both of them in the same
>>> horizontal line? then we can reduce the height of the box you have
>>> introduced to display that topic and the button.
>>>
>>> Also we can introduce an icon to the addinput button, a plus sign may
>>> be? the two blue colors in the page heading and the button are different,
>>> the ApproveLeave tab blue color is not very pleasing. Can we change that
>>> also to the button color?
>>>
>>> The tables with radio button elements consume too much space don't you
>>> think? we can display those items in a table line half that height. we can
>>> remove the lines in that box. Is it possible to introduce styling similar
>>> to something like this in that table?
>>>
>>> [image: Inline image 1]
>>>
>>> Regards
>>> Awanthika
>>>
>>> Awanthika Senarath
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94717681791
>>>
>>>
>>>
>>> On Tue, Jun 7, 2016 at 5:06 PM, Heshitha Hettihewa 
>>> wrote:
>>>
 Hi all,

 As discussed in the last review I have added some bootstrap styles to
 the Human Task Editor GUI. Further I've replaced some existing UI elements
 with bootstrap input types. Please find the Screen shots of the modified
 GUI editor attached herewith.  Is there any further modifications to be
 done? or can we continue with this GUI?.

 Appreciate your input.

 Thanks.
 --
 Heshitha Hettihewa
 *Software Engineer*
 Mobile : +94716866386
 <%2B94%20%280%29%20773%20451194>
 heshit...@wso2.com

>>>
>>>
>>
>>
>> --
>> Heshitha Hettihewa
>> *Software Engineer*
>> Mobile : +94716866386
>> <%2B94%20%280%29%20773%20451194>
>> heshit...@wso2.com
>>
>
>


-- 
Heshitha Hettihewa
*Software Engineer*
Mobile : +94716866386
<%2B94%20%280%29%20773%20451194>
heshit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.6 RC2

2016-06-07 Thread Kalpa Welivitigoda
Hi Anupama,

On Tue, Jun 7, 2016 at 5:50 PM, Anupama Pathirage  wrote:

> Hi,
>
> We got the following issues when testing WSO2 DSS with the Kernel RC2
> Release.
>
> *1) *Any action on management console gives the following error. It seems
> to be related with the tomcat upgrade and appreciate your input on this.
>
> [2016-06-07 17:21:16,905] ERROR
> {org.apache.coyote.AbstractProtocol$AbstractConnectionHandler} -  Error
> reading request, ignored
> java.lang.NoSuchMethodError: org.apache.coyote.Request.getBytesRead()I
> at org.apache.coyote.RequestInfo.updateCounters(RequestInfo.java:143)
> at org.apache.coyote.Request.updateCounters(Request.java:533)
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1140)
> at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1749)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1708)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:745)
>

Yes, it is due to the tomcat upgrade in kernel, relevant fixes for
carbon-deployment are already there in 4.6.2-SNAPSHOT. We have to do a
deployment release once we release 4.4.6-SNAPSHOT. For the moment, for
testing purpose, is it possible you try with 4.6.2-SNAPSHOT?


>
> *2) *DBS file uploads gives the following error which returns Error 403 -
> Forbidden
>
> [2016-06-07 17:21:16,904]  WARN {org.owasp.csrfguard.log.JavaLogger} -
> potential cross-site request forgery (CSRF) attack thwarted
> (user:, ip:10.100.7.118, method:POST,
> uri:/carbon/admin/jsp/WSRequestXSSproxy_ajaxprocessor.jsp, error:required
> token is missing from the request)
>
>
For this would you please try with adding the following line to
repository/conf/security/Owasp.CsrfGuard.Carbon.properties,

org.owasp.csrfguard.unprotected.FileUpload=%servletContext%/fileupload/*



> Regards,
>
> On Tue, Jun 7, 2016 at 4:46 PM, KasunG Gajasinghe  wrote:
>
>>
>> Others, please continue to testing the pack and report all the issues so
>> we can check and fix.
>>
>> On Tue, Jun 7, 2016 at 2:31 PM, Kasun Bandara  wrote:
>>
>>> Hi Niranjan,
>>>
>>> Created [1] to track the equivalent Carbon JIRA.
>>>
>>> [1] https://wso2.org/jira/browse/CARBON-15938
>>>
>>> Thanks,
>>> Kasun.
>>>
>>> On Tue, Jun 7, 2016 at 2:23 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi KasunB,

 Please create an equivalent JIRA in Kernel in-order to track this.

 Regards,
 Nira

 On Tue, Jun 7, 2016 at 2:11 PM, Kasun Bandara  wrote:

> Hi all,
>
> We are having L1 reported in [1] and will be a blocker for IS. Please
> hold off the vote proceedings until we find out the root cause of the
> issue. Most probably this issue must be originated from user core.
>
>
> Thanks,
> Kasun.
>
> [1] https://wso2.org/jira/browse/IDENTITY-4656
>
>
>
> On Tue, Jun 7, 2016 at 11:45 AM, KasunG Gajasinghe 
> wrote:
>
>> Hi Viraj,
>>
>>
>>
>> On Tue, Jun 7, 2016 at 10:12 AM, Viraj Senevirathne 
>> wrote:
>>
>>> Hi Kalpa,
>>>
>>> I tried to build product-esb with kernel RC2 but it failed as
>>> package org.apache.velocity 0.0.0 dependency could not be found.
>>>
>>> *Installation failed.*
>>> *Cannot complete the install because one or more required items
>>> could not be found.*
>>> * Software being installed: WSO2 Carbon - Mediators Feature
>>> 4.6.1.SNAPSHOT (org.wso2.carbon.mediators.feature.group 4.6.1.SNAPSHOT)*
>>> * Missing requirement: bsf-all 3.0.0.wso2v5 (bsf-all 3.0.0.wso2v5)
>>> requires 'package org.apache.velocity 0.0.0' but it could not be found*
>>> * Cannot satisfy dependency:*
>>> *  From: WSO2 Carbon - Mediators Feature 4.6.1.SNAPSHOT
>>> (org.wso2.carbon.mediators.feature.group 4.6.1.SNAPSHOT)*
>>> *  To: org.wso2.carbon.mediators.server.feature.group
>>> [4.6.1.SNAPSHOT]*
>>> * Cannot satisfy dependency:*
>>> *  From: WSO2 Carbon - All Mediators Server Feature 4.6.1.SNAPSHOT
>>> (org.wso2.carbon.mediators.server.feature.group 4.6.1.SNAPSHOT)*
>>> *  To: bsf-all [3.0.0.wso2v5,3.1.0)*
>>> *Application failed, log file location:
>>> /home/virajrs/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1465274241567.log*
>>>
>>> How can we overcome this?
>>>
>>
>> To fix security vulnerabilities, we have upgraded the opensaml orbit
>> bundle to the latest. In that process, IS folks have fixed issues in the
>> old opensaml orb

Re: [Dev] "org.wso2.carbon.core.server.feature" packs "poi-ooxml"

2016-06-07 Thread Prabath Abeysekera
Hi Kalpa,

Thanks for the update. So, I believe, there wouldn't be any possibility to
get rid of this anytime soon?

Cheers,
Prabath

On Mon, Jun 6, 2016 at 12:24 PM, Kalpa Welivitigoda  wrote:

> Hi Prabath,
>
> We removed the poi dependencies from kernel 4.4.6 and later realized that
> it causes backward incompatibilities. user management feature seems to use
> poi that's coming from the kernel. Due to this, we will ship poi with
> kernel 4.4.6 but with a version upgrade to 3.14.
>
> On Tue, May 10, 2016 at 11:06 PM, Prabath Abeysekera 
> wrote:
>
>> Great, Thanks Manoj!
>>
>> On Tue, May 10, 2016 at 10:53 PM, Manoj Kumara  wrote:
>>
>>> Hi Prabath,
>>>
>>> We are in the process of removing these dependencies form along with
>>> version upgrading required libraries to address some security
>>> vulnerabilities. Plan is to remove them from 4.4.6 and currently Kalpa is
>>> working on it.
>>>
>>> Regards,
>>> Manoj
>>>
>>> *Manoj Kumara*
>>> WSO2 Inc. *| **lean. enterprise. middleware.*
>>> *Mobile:* +94 713 448188
>>>
>>> On Tue, May 10, 2016 at 10:33 PM, Prabath Abeysekera 
>>> wrote:
>>>
 Folks, have you guys been able to do something about this?

 Cheers,
 Prabath

 On Fri, Apr 8, 2016 at 9:00 PM, Kishanthan Thangarajah <
 kishant...@wso2.com> wrote:

> Not for 4.4.6 as its now ready for release. We will have to verify
> this and remove this, if this is not needed for any kernel dependents. 
> Will
> track this and fix for next release -
> https://wso2.org/jira/browse/CARBON-15852
>
> On Fri, Apr 8, 2016 at 11:55 AM, Aruna Karunarathna 
> wrote:
>
>>
>>
>> On Fri, Apr 8, 2016 at 11:38 AM, Prabath Abeysekera <
>> praba...@wso2.com> wrote:
>>
>>> Hi Kicha,
>>>
>>> Looks like "org.wso2.carbon.core.server.feature" packs "poi-ooxml",
>>> even though it is not currently used in the underlying implementation,
>>> which claims for 7.6M. IOW, there's no sign of any usage of the above
>>> except for a couple of stale imports.
>>>
>>> Considering the above, is there any possibility to remove this?
>>>
>>
>> Adding Jayanga, Can we remove this in 4.4.6 release?
>> BTW not sure, if this is already used since this comes from the
>> kernel, If so there will be problems in product level.
>>
>>>
>>> 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
>>>
>>>
>>
>>
>> --
>>
>> *Aruna Sujith Karunarathna *
>> 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
>>
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com
> *
> Twitter - *http://twitter.com/kishanthan
> *
>



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


>>>
>>
>>
>> --
>> Prabath Abeysekara
>> Technical Lead
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>
>
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>



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


Re: [Dev] Analytics IS - Handling null or empty Strings to show on respective gadgets

2016-06-07 Thread Hasintha Indrajee
Hi Damith,

For the time being we can follow this approach. But this seems like a
standard problem we may face in other products as well. Any standard way of
handling this ? Any ideas for handling this issue in future ?

On Tue, Jun 7, 2016 at 12:32 PM, Damith Wickramasinghe 
wrote:

> Hi Johann and all,
>
> Our decided approach was to send a empty string for all the cases from IS
> side and from DAS after retrieving data, provide a default string with some
> style to show that its a special empty case. But in lucene we cannot have
> empty attributes since they cannot be indexed and search will not work for
> them. Our next option is to provide a standard naming for a default value
> and also provide some configuration in IS to change it if needed. WDYT ?
>
> Regards,
> Damith.
>
> On Mon, Jun 6, 2016 at 7:19 PM, Damith Wickramasinghe 
> wrote:
>
>> Hi,
>>
>> When it comes to authentication scenarios in some cases we cannot specify
>> roles etc to publishing events eg:- non existing user tried to login with
>> username and password. Then for the said events roles attribute will be
>> empty/null  .
>>
>> Also as discussed with Pulasthi there can be other attributes as well
>> which can be empty or null. For all those scenarios we need to show a
>> authentication failure count for all the dimensions of User, Role,
>> IdentityProvider etc.For that we need a constant String which can be used
>> to show the respective fail counts.  Having a constant value like
>> "NOT-AVAILABLE" can be sent from IS side or populated from DAS side but any
>> user can create an username of any sort . eg:NOT-AVAILABLE .So there can be
>> issues in calculating authentication failure counts.
>>
>> Any insights on handling such scenarios ?
>>
>> Regards,
>> Damith.
>>
>> --
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> 
>> lean.enterprise.middleware
>>
>> mobile: *+94728671315 <%2B94728671315>*
>>
>>
>
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>


-- 
Hasintha Indrajee
Software Engineer
WSO2, Inc.
Mobile:+94 771892453
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC2016-Contact Development Team Feature

2016-06-07 Thread Susinda Perera
Hi All

How about configuring wso2-DAS at the wso2 side to collect and analyse
error/logs. It is not only reporting to wso2 JIRA, it may be some other
system so 'reporting to' should be an configurable and pluggable feature.
If we are publishing to DAS, we have to come up with format for stream
definition, which may need some literature survey on how other log
analysers work etc.

Thanks
Susinda

On Tue, Jun 7, 2016 at 3:48 PM, Jasintha Dasanayake 
wrote:

> HI Nathiesha
>
> I couldn't see any commit[1] during the last couple of week, it's good
> practices to do commit stuff daily basis, because it's easy for us to
> review and provide regular feedbacks.
>
> Shall we have a progress review during the next week ?.
>
> Thanks and Regards
> /Jasintha
>
> [1]-
> https://github.com/nathiesha/org.wso2.developerstudio.eclipse.errorreporter.git
>
> On Sat, May 14, 2016 at 6:12 PM, Nathiesha Maddage <
> nathieshamadd...@gmail.com> wrote:
>
>> Hi all,
>>
>> I formatted and cleaned the code and added the licence header.
>> Regarding the naming of the project, I named the project
>> as org.wso2.developerstudio.eclipse.errorreporter for now. And about the
>> packages, I referred to the developer studio plugins projects you have sent
>> me. However as I am still not familiar with the naming conventions for
>> developer studio plugins I temporarily created a couple of packages to
>> group the Java classes. I hope I can do the proper renaming and packaging
>> later with your support.
>>
>> I created the ErrorInfoCollector class and there all the system
>> information and error related information is fetched. However I couldn't
>> find a method to get the plugin version and I am still working on it. And
>> the error report that I have sent you previously had an attribute called
>> fingerprint and it also contained a set of bundle information. Those two
>> parts I could not understand. So I left them for now.
>> As you suggested, this class can be improved later to
>> collect further information regarding the error.
>>
>> I started with preferences page as well. I created a draft preference
>> page and currently working on improving it.
>>
>> This is the new GitHub link of the project repository. Please refer to
>> this afterwards.
>>
>> Link-
>> https://github.com/nathiesha/org.wso2.developerstudio.eclipse.errorreporter.git
>>
>> Thanks and Regards
>>
>> Nathiesha
>>
>>
>>
>> On Fri, May 13, 2016 at 12:26 PM, Kavith Lokuhewage 
>> wrote:
>>
>>> Hi Nathiesha,
>>>
>>> Please find my inline comments.
>>>
>>> On Wed, May 11, 2016 at 12:10 PM, Nathiesha Maddage <
>>> nathieshamadd...@gmail.com> wrote:
>>>
 Hi all,

 Regarding the preference settings, as I have read, the plugins that are
 started early are listed in preferences-general-startup and shutdown page.
 So the user can deselect the plugin from that list and then it will not be
 started once Eclipse starts. Is this what is expected?

>>>
>>> No. This is not the expectation.
>>>
>>> Or I can add an option for the user to configure the start up settings
 of the error reporting plugin, in a separate preference page, that I am
 going to develop for the Error Reporting plugin settings.

>>>
>>> Yes. This is the expectation.
>>>
>>>
 And regarding the multi status of IStatus, I will look into that and I
 will try to fetch all the previously failed operation information. Here I
 have attached a error report that Eclipse error reporting tool produces.
 Please have a look at the information listed in that report regarding the
 error. As you have mentioned earlier, I will add the previously failed
 operation details if available. Other than previously failed operations and
 the information listed in the attached report , what else need to be added
 to the error report? Or is that information sufficient for the development
 team?

>>>
>>> For now, we will keep our focus on this information and give priority to
>>> them. However, there's always chance for improvements. Later, if time
>>> permits, we may focus on the aspects such as attaching the artifacts which
>>> could have caused the issue (with the permission of user), information
>>> about project hierarchy, active editor, perspective etc. (we should analyse
>>> the needs for these further), etc.
>>>
>>>

 And thank you for the tips about getting the run time details. That
 saved my time. I will try those. And as you have suggested, it is good to
 use the proper coding standards from the beginning. I will get an idea from
 the example project you have sent me, and I will refactor the code
 accordingly.


>>>
 Thanks and regards

 Nathiesha



 On Wed, May 11, 2016 at 10:08 AM, Kavith Lokuhewage 
 wrote:

> Hi Nathiesha,
>
> Great start! Just some heads up for your next steps.
>
> An IStatus instance sometimes could be a multi status instance where
> you can 

[Dev] [APIM2.0] Issue with selecting scopes for token generation

2016-06-07 Thread Kavitha Subramaniyam
Hi team,

I could observe that scope drop down option is missing in the store [1]
when generate access token for the first time but it is available for
regenerate token. I have defined a scope with Internal/everyone role and
added to relevant method[2].

Seems in previous version scope selection was there at token generation.
Will this be a new change or UI bug?

[1] see attachment scope.jpeg
[2] see attachment api_add_scope.jpeg

Thanks,

-- 
Kavitha.S
*Software Engineer -QA*
Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
kavi...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Removing only a jar file inside a patch directory will not reflected on patch applying process

2016-06-07 Thread Nuwan Wimalasekara
Hi,

Seems this is a bug. reported a JIRA[1] to track the issue further.

[1] https://wso2.org/jira/browse/CARBON-15939

Thanks,
Nuwanw

On Wed, Jun 1, 2016 at 12:21 PM, Nuwan Wimalasekara  wrote:

> Hi Manoj,
>
> Yes. Even if the jar is removed, plugin directory has the same md5 value
> of removed jar. means It is not reverted.
>
> To revert the jar, we have to remove the patch directory and restart the
> server.
>
> Thanks,
> Nuwanw
>
> On Wed, Jun 1, 2016 at 12:03 PM, Manoj Kumara  wrote:
>
>> During patch application it validate the md5sum's of the jars as well.
>> Can you please verify the removed jar has a different md5 value from what's
>> there in the server ?
>>
>> *Manoj Kumara*
>> WSO2 Inc. *| **lean. enterprise. middleware.*
>> *Mobile:* +94 713 448188
>>
>> On Wed, Jun 1, 2016 at 11:53 AM, Nuwan Wimalasekara 
>> wrote:
>>
>>> Hi Carbon Team,
>>>
>>> I have observed $subject when I try to remove a jar file from patch
>>> directory. I know removing a jar file from patch directory is not a good
>>> practise when applying patches. But it may happen and then the behaviour is
>>> confusing. However if we update the a jar file inside a patch , it will
>>> reflect and update the plugins directory and works as expected.
>>>
>>> To reproduce the issue, we can apply a patch having two jar file and
>>> restart the server. Then it will apply the patch. after that, remove one of
>>> jar file in the patch directory and restart the server. The it will not
>>> detect as a patch change and will not revert the removed jar from patch.
>>>
>>> Is this a limitation in patch applying process or bug?
>>>
>>> Thanks,
>>> Nuwanw
>>>
>>> --
>>> Nuwan Wimalasekara
>>> Senior Software Engineer - Test Automation
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> phone: +94 71 668 4620
>>>
>>>
>>>
>>>
>>
>
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>


-- 
Nuwan Wimalasekara
Associate Technical Lead
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] WSO2 IS Analytics v1.0.0-ALPHA Released

2016-06-07 Thread Seshika Fernando
Hi guys,

If we did any changes to the architecture of Authentication analytics, can
we update the documentation in [1].

Damith/Mohan: Can one of you take ownership of this?

Thanks,
Seshi

1.
https://docs.google.com/a/wso2.com/document/d/1h47OLzBiHYy-kk12VkmRnoetbG37Dx4LcHa3CnTzDTE/edit?usp=sharing

On Fri, Jun 3, 2016 at 1:07 PM, Damith Wickramasinghe 
wrote:

> *WSO2 IS Analytics v1.0.0-ALPHA Released*
>
> We are pleased to announce the alpha release of WSO2 IS Analytics v1.0.0 [
> 1
> ]
> which is powered by WSO2 Data Analytics Server. IS Analytics can be used
> to monitor authentication related analytics for residence and federated
> authentication scenarios.[2
> ] Please use the
> nightly build IS pack [3
> ]
> which includes necessary instruments to publish data to analytics IS.Your
> feedback is highly appreciated, any bugs or issues can be reported here [4
> ].
>
> This release contains the following capabilities:-
>
>1. View Authentication analytics for Federated Identity scenarios
>which includes viewing overall success and failure login attempts and
>authentication attempts views for multiple dimensions of Service Provider,
>Identity Providers,Users and also first time login of service Providers.
>2. View Authentication analytics for Federated scenarios which
>includes viewing
>overall success and failure login attempts and authentication attempts
>views for multiple dimensions of service provider, roles , user and
>user-stores
>
> [1]
> https://github.com/wso2/analytics-is/releases/download/v1.0.0-alpha/wso2analytics-is-1.0.0-alpha.zip
> [2] https://docs.wso2.com/display/IS520/WSO2+IS+Analytics
> [3] *https://svn.wso2.org/repos/wso2/people/mohan/is-5.2.0-with-analytics
> *
> [4] *https://wso2.org/jira/browse/ANLYIS
> *
>
>
> Analytics IS Team
>
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ESB Dynamic Store support

2016-06-07 Thread Godwin Shrimal
Hi All,

Do we have a way to do $Subject such as below.




*Note. Above config is not working and  it takes {$ctx:message_store} as
the store name*


Thanks
Godwin

-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Dynamic Store support

2016-06-07 Thread Senduran Balasubramaniyam
Hi Godwin,

It is not possible pass the name dynamically. As a solution you can use
switch mediator and select the needed message store.

Regards
Senduran

On Tue, Jun 7, 2016 at 8:01 PM, Godwin Shrimal  wrote:

> Hi All,
>
> Do we have a way to do $Subject such as below.
>
> 
> 
>
> *Note. Above config is not working and  it takes {$ctx:message_store} as
> the store name*
>
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>



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


Re: [Dev] ESB Dynamic Store support

2016-06-07 Thread Godwin Shrimal
Thanks for the response Senduran.

On Tue, Jun 7, 2016 at 10:10 AM, Senduran Balasubramaniyam <
sendu...@wso2.com> wrote:

> Hi Godwin,
>
> It is not possible pass the name dynamically. As a solution you can use
> switch mediator and select the needed message store.
>
> Regards
> Senduran
>
> On Tue, Jun 7, 2016 at 8:01 PM, Godwin Shrimal  wrote:
>
>> Hi All,
>>
>> Do we have a way to do $Subject such as below.
>>
>> 
>> 
>>
>> *Note. Above config is not working and  it takes {$ctx:message_store} as
>> the store name*
>>
>>
>> Thanks
>> Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>
>
>
> --
> *Senduran *
> Software Engineer,
> WSO2, Inc.;  http://wso2.com/ 
> Mobile: +94 77 952 6548
>



-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.6 RC2

2016-06-07 Thread Anupama Pathirage
Hi Kalpa,

Checked the suggested approaches and those two issues were resolved after
applying both changes. We will further test the service with the Carbon RC2.

On Tue, Jun 7, 2016 at 6:15 PM, Kalpa Welivitigoda  wrote:

> Hi Anupama,
>
> On Tue, Jun 7, 2016 at 5:50 PM, Anupama Pathirage 
> wrote:
>
>> Hi,
>>
>> We got the following issues when testing WSO2 DSS with the Kernel RC2
>> Release.
>>
>> *1) *Any action on management console gives the following error. It
>> seems to be related with the tomcat upgrade and appreciate your input on
>> this.
>>
>> [2016-06-07 17:21:16,905] ERROR
>> {org.apache.coyote.AbstractProtocol$AbstractConnectionHandler} -  Error
>> reading request, ignored
>> java.lang.NoSuchMethodError: org.apache.coyote.Request.getBytesRead()I
>> at org.apache.coyote.RequestInfo.updateCounters(RequestInfo.java:143)
>> at org.apache.coyote.Request.updateCounters(Request.java:533)
>> at
>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1140)
>> at
>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
>> at
>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1749)
>> at
>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1708)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at
>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>> at java.lang.Thread.run(Thread.java:745)
>>
>
> Yes, it is due to the tomcat upgrade in kernel, relevant fixes for
> carbon-deployment are already there in 4.6.2-SNAPSHOT. We have to do a
> deployment release once we release 4.4.6-SNAPSHOT. For the moment, for
> testing purpose, is it possible you try with 4.6.2-SNAPSHOT?
>

Could you please do the needful to release the carbon-deployment 4.6.2 as
DSS 3.5.1 release will be on hold until it is done.


>
>
>>
>> *2) *DBS file uploads gives the following error which returns Error 403
>> - Forbidden
>>
>> [2016-06-07 17:21:16,904]  WARN {org.owasp.csrfguard.log.JavaLogger} -
>> potential cross-site request forgery (CSRF) attack thwarted
>> (user:, ip:10.100.7.118, method:POST,
>> uri:/carbon/admin/jsp/WSRequestXSSproxy_ajaxprocessor.jsp, error:required
>> token is missing from the request)
>>
>>
> For this would you please try with adding the following line to
> repository/conf/security/Owasp.CsrfGuard.Carbon.properties,
>
> org.owasp.csrfguard.unprotected.FileUpload=%servletContext%/fileupload/*
>

Is excluding these patterns from CSRF protection recommended ?

Regards,
Anupama

>
>
>
>> Regards,
>>
>> On Tue, Jun 7, 2016 at 4:46 PM, KasunG Gajasinghe 
>> wrote:
>>
>>>
>>> Others, please continue to testing the pack and report all the issues so
>>> we can check and fix.
>>>
>>> On Tue, Jun 7, 2016 at 2:31 PM, Kasun Bandara  wrote:
>>>
 Hi Niranjan,

 Created [1] to track the equivalent Carbon JIRA.

 [1] https://wso2.org/jira/browse/CARBON-15938

 Thanks,
 Kasun.

 On Tue, Jun 7, 2016 at 2:23 PM, Niranjan Karunanandham <
 niran...@wso2.com> wrote:

> Hi KasunB,
>
> Please create an equivalent JIRA in Kernel in-order to track this.
>
> Regards,
> Nira
>
> On Tue, Jun 7, 2016 at 2:11 PM, Kasun Bandara  wrote:
>
>> Hi all,
>>
>> We are having L1 reported in [1] and will be a blocker for IS.
>> Please hold off the vote proceedings until we find out the root cause of
>> the issue. Most probably this issue must be originated from user core.
>>
>>
>> Thanks,
>> Kasun.
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-4656
>>
>>
>>
>> On Tue, Jun 7, 2016 at 11:45 AM, KasunG Gajasinghe 
>> wrote:
>>
>>> Hi Viraj,
>>>
>>>
>>>
>>> On Tue, Jun 7, 2016 at 10:12 AM, Viraj Senevirathne >> > wrote:
>>>
 Hi Kalpa,

 I tried to build product-esb with kernel RC2 but it failed as
 package org.apache.velocity 0.0.0 dependency could not be found.

 *Installation failed.*
 *Cannot complete the install because one or more required items
 could not be found.*
 * Software being installed: WSO2 Carbon - Mediators Feature
 4.6.1.SNAPSHOT (org.wso2.carbon.mediators.feature.group 
 4.6.1.SNAPSHOT)*
 * Missing requirement: bsf-all 3.0.0.wso2v5 (bsf-all 3.0.0.wso2v5)
 requires 'package org.apache.velocity 0.0.0' but it could not be found*
 * Cannot satisfy dependency:*
 *  From: WSO2 Carbon - Mediators Feature 4.6.1.SNAPSHOT
 (org.wso2.carbon.mediators.feature.group 4.6.1.SNAPSHOT)*
 *  To: org.wso2.carbon.mediators.server.feature.group
 [4.6.1.SNAPSHOT]*
 * Cannot satisfy dependency:*

[Dev] [DAS] Error in activating analytics data service

2016-06-07 Thread Suresh Thivanka Rupasinghe
Hi,

I'm trying to connect DAS with Hbase. but i get the following error
message. here i attached the analytics-datasource.xml file for more details.

[image: Inline image 1]


Regards,
Suresh




org.wso2.carbon.datasource.reader.hadoop.HBaseDataSourceReader




		
		
		
			WSO2_ANALYTICS_RS_DB_HBASE
			The datasource used for analytics file system
			
jdbc/WSO2HBaseDB
			
			

	
		hbase.zookeeper.quorum
		localhost
	
	
		hbase.zookeeper.property.clientPort
		2181
	
	
		fs.hdfs.impl
		org.apache.hadoop.hdfs.DistributedFileSystem
	
	
		fs.file.impl
		org.apache.hadoop.fs.LocalFileSystem
	

			
		
		










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


Re: [Dev] Fwd: GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-06-07 Thread Maheshakya Wijewardena
Hi Mahesh,

Great work so far.

Regarding the queries:

streamingkm(0, 2,2,20,1,0.95 salary, rbi, walks, strikeouts, errors)


Can you give me the definitions of the first few entities in the order.
Also in previous supervised cases (linear regression), what is the response
variable, etc.
I'll go through the code and give you a feedback.

 After this, we need to me this implementation into carbon-ml siddhi
extension. Please also do a similar implementation for logistic regression
as well because we need to have a streaming version for classification as
well.

Best regards.



On Tue, Jun 7, 2016 at 5:50 PM, Mahesh Dananjaya 
wrote:

> Hi Maheshkya,
> I have changed the siddhi query for our StreamingKMeansClustering by
> adding Alpha into the picture which we can use to make data horizon (how
> quickly a most recent data point becomes a part of the model) and data
> obsolescence (how long does it take a past data point to become irrelevant
> to the model)in the streaming clustering algorithms.i have added new
> changes to repo [1] introducing StreamingKMeansClusteringModel and
> StreamingKMeansCLustering classes to project.new siddhi query is as follows.
>
> from Stream8Input#streaming:streamingkm(0, 2,2,20,1,0.95 salary, rbi,
> walks, strikeouts, errors)
>
> select *
> insert into regResults;
>
> regrads,
> Mahesh.
>
> [1] https://github.com/dananjayamahesh/GSOC2016/tree/master/gsoc
>
> On Mon, Jun 6, 2016 at 6:31 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi Maheshakya,
>> As we have discussed the architecture of the project i have already
>> developed a couple of essential components for our project. During last
>> week i completed the writing cep siddhi extension for our streaming
>> algorithms which are developed to learn incrementally with past
>> experiences. I have written the siddhi extensions with StreamProcessor
>> extension for StreamingLinearRegerssion and StreamingKMeansClustering with
>> the relevant parameters to call it as siddhi query. On the other hand i did
>> some research on developing Mini Batch KMeans clustering for our
>> StreamingKMeansClustering. And also i added the moving window addition to
>> usual batch processing. And currently i am working on the time based
>> incremental  re-trainign method for siddhi streams. On the
>> StreamingClustering side i have already part of th
>> StreamingKMeansClustering with the mini batch KMeans clustering. All the
>> work i did were pushed to my repo in github [1]. you can find the
>> development on gsoc/ directory.
>>  And also as the ml team and supun was asked, i have did some timing and
>> performance analysis for our SGD (Stochastic Gradient Descent) algorithms
>> for LinearRegression. Those results also add to my repo in [2]. Now i am
>> developing the rest for our purpose and trying to looked into other
>> researches on predictive analysis for online big data. Ans also doing some
>> work related to mini batch KMEans Clustering. And also i have been working
>> on the performance analysis, accuracy and basic comparison between mini
>> batch algorithms and moving window algorithms for streaming and periodic
>> re-training of ML model. thank you.
>> BR,
>> Mahesh.
>> [1] https://github.com/dananjayamahesh/GSOC2016
>> [2]
>> https://github.com/dananjayamahesh/GSOC2016/blob/master/spark-examples/first-example/output/lr_timing_1.jpg
>>
>>
>> On Sat, Jun 4, 2016 at 8:50 PM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>> Hi Maheshkya,
>>> If you want to run it please use following queries.
>>> 1. StreamingLInearRegression
>>>
>>> from Stream4InputStream#streaming:streaminglr(0, 2, 0.95, salary, rbi,
>>> walks, strikeouts, errors)
>>>
>>> select *
>>>
>>> insert into regResults;
>>>
>>> from Stream8Input#streaming:streamingkm(0, 2, 0.95,2,20, salary, rbi,
>>> walks, strikeouts, errors)
>>>
>>> select *
>>> insert into regResults;
>>>
>>> in both case the first parameter let you to decide which learning methos
>>> you want, moving window, batch processing or time based model learning.
>>> BR,
>>> Mahesh.
>>>
>>> On Sat, Jun 4, 2016 at 8:45 PM, Mahesh Dananjaya <
>>> dananjayamah...@gmail.com> wrote:
>>>
 Hi Maheshkaya,
 I have added the moving window method and update the previos
 StreamingLinearRegression [1] which only performed batch processing with
 streaming data. and also i added the StreamingKMeansClustering [1] for our
 purposes and debugged them.thank you.
 regards,
 Mahesh.
 [1]
 https://github.com/dananjayamahesh/GSOC2016/tree/master/gsoc/siddhi/extension/streaming/src/main/java/org/gsoc/siddhi/extension/streaming

 On Sat, Jun 4, 2016 at 5:58 PM, Supun Sethunga  wrote:

> Thanks Mahesh! The graphs look promising! :)
>
> So by looking at graph, LR with SGD can train  a model within 60 secs
> (6*10^10 nano sec), using about 900,000 data points . Means, this online
> training can handle events/data points coming at rate of 15,000 p

Re: [Dev] [APIM 2.0.0] [IS] SSO is broken for tenants

2016-06-07 Thread Bhathiya Jayasekara
Any response on this?

On Mon, Jun 6, 2016 at 2:22 PM, Bhathiya Jayasekara 
wrote:

> Hi all,
>
> Do we still need to do this step even with IS 5.2.0? I tested this with
> 10 and it worked fine.
>
> Reduce the priority of the SAML2SSOAuthenticator configuration in the
> /repository/conf/security/authenticators.xml file.
>
> You do this as a workaround for a known issue that will be fixed in a
> future release. The SAML2SSOAuthenticator handler does not process only
> SAML authentication requests at the moment. If you set its priority higher
> than that of the BasicAuthenticator handler, the  SAML2SSOAuthenticator tries
> to process the basic authentication requests as well. This causes login
> issues in the API Publisher/Store.
>
> 
>0
>
> 
>
> [1]
> https://docs.wso2.com/display/AM200/Configuring+Single+Sign-on+with+SAML2
>
> Thanks,
> Bhathiya
>
>
>
>
> On Mon, Jun 6, 2016 at 12:56 PM, Bhathiya Jayasekara 
> wrote:
>
>> Thanks harsha.
>>
>> @Tania: We need to update doc with this new config change.
>>
>> Thanks,
>> Bhathiya
>>
>> On Mon, Jun 6, 2016 at 12:47 PM, Harsha Thirimanna 
>> wrote:
>>
>>> Hi Bhathiya,
>>> Yes , this will work as expected when you enable this option in SAAS
>>> enables SP.
>>>
>>>
>>> *Harsha Thirimanna*
>>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>>> *twitter: **http://twitter.com/ *
>>> *harshathirimannlinked-in: **http:
>>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Mon, Jun 6, 2016 at 11:52 AM, Bhathiya Jayasekara 
>>> wrote:
>>>
 Hi Harsha,

 On Mon, Jun 6, 2016 at 11:37 AM, Harsha Thirimanna 
 wrote:

> ​Hi Bathiya,
>
> Yes, 5.2.0 on wards, we have disable it. You are correct.
>
> The reason was, if we enable it by default, then for the super tenant
> users, there will be carbon.super within the user name as a subject. That
> is very unexpected case and then we have to disable it manually. Your case
> coming with the multi tenant story.
> Most of the time, we are working in super tenant mode, so we decided
> to disable it by default. In multi-tenant mode, we have to enable it per
> tenant.
>

 So how am I supposed to configure when I have just 1 SP for all tenants
 with "SaaS App" enabled?

 Thanks,
 Bhathiya


>
> Problem is , we have to document this clearly.
>
>
>
> *Harsha Thirimanna*
> Associate Tech Lead; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Mon, Jun 6, 2016 at 11:09 AM, Bhathiya Jayasekara <
> bhath...@wso2.com> wrote:
>
>> Hi Harsha/Omindu,
>>
>> I'm using 5.2.0-SNAPSHOT. In it, that config is not ticked by
>> default.
>>
>> Thanks,
>> Bhathiya
>>
>>
>>
>> On Mon, Jun 6, 2016 at 9:24 AM, Harsha Thirimanna 
>> wrote:
>>
>>> Bhathiya,
>>> What is your IS version ? We are talking about last released
>>> version.
>>>
>>>
>>> *Harsha Thirimanna*
>>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>>> *twitter: **http://twitter.com/ *
>>> *harshathirimannlinked-in: **http:
>>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Mon, Jun 6, 2016 at 9:12 AM, Harsha Thirimanna 
>>> wrote:
>>>
 Hi Bathiya,
 This option is enabled by default in fresh pack. So unless if some
 one un-tick this option manually because of some reason, this would 
 work as
 expected for the customer who migrate to the APM 2.0.
 In your case, how this option was disable ? Did you disable it in
 UI ?


 *Harsha Thirimanna*
 Associate Tech Lead; WSO2, Inc.; http://wso2.com
 * *
 *email: **hars...@wso2.com* * cell: +94 71
 5186770 *
 *twitter: **http://twitter.com/ *
 *harshathirimannlinked-in: **http:
 **

Re: [Dev] [GSOC2016]Proposal 4: [ML] Ensemble Methods Support for WSO2 Machine Learner

2016-06-07 Thread Supun Sethunga
Hi,

I have restructured my code, see [1][2]. It is a naive implementation if my
> logic works.

Why there are two files/implementations? which is the correct one? Say, if
I want to try out your implementation, which one should I run?

When creating an instance of Stacking class, I need to pass an argument of
> type MLModelConfigurationContext. and getcontext() method doesn't work as I
> am in a static main method.
> Question: 1. What is the best way to get context argument?
> 2.  Is the design of Stacking class fine?


Why would you need to use MLModelConfigurationContext. and getcontext()
methods? Those are utility methods used at the ML server runtime to
temporary store configurations. Let's not worry about those, as they are
part of the integration phase. First, try to implement the stacking with
native spark-mllib libraries, and re-use methods/components in ML server *ONLY
IF * they are necessary or they are re-usable (i.e: if some method is
already available, which you need).

Regards,
Supun

On Tue, Jun 7, 2016 at 8:31 PM, Misgana Negassi  wrote:

>
> Hi Supun,
>
> My dependencies problems are solved, thanks!
>
> I have restructured my code, see [1][2]. It is a naive implementation if
> my logic works.
>
>
> When creating an instance of Stacking class, I need to pass an argument of
> type MLModelConfigurationContext. and getcontext() method doesn't work as I
> am in a static main method.
> Question: 1. What is the best way to get context argument?
> 2.  Is the design of Stacking class fine?
>
> I appreciate your feedback!
> Misgana
>
>
>
>
>
> [1]
> https://github.com/zemoel/ensemble-methods/blob/master/src/main/java/Stacking.java
> [2]
> https://github.com/zemoel/ensemble-methods/blob/master/src/main/java/ReadCSV.java#L188
>
>
> On 04.06.2016 06:18, Supun Sethunga wrote:
>
> Hi,
>
> Can you check whether you have defined the relevant repositories in the
> pom.xml? If haven't, please do so as in [1].
>
> If that didn't work out, can you try checking out the source code of [2],
> and build it locally, and then build your code?
>
> [1] https://github.com/wso2/carbon-ml/blob/master/pom.xml#L59
> [2]
> https://github.com/wso2/carbon-metrics/tree/v1.1.0/components/org.wso2.carbon.metrics.manager
>
> Regards,
>
> On Fri, Jun 3, 2016 at 7:06 PM, Misgana Negassi <
> negas...@tf.uni-freiburg.de> wrote:
>
>> Hi Supun,
>>
>> This  is [1] the predict() method invoked.
>>
>> I added the dependencies and run mvn clean install and am trying to debug
>> this error now:
>>
>>
>>
>> *Failed to execute goal on project ensemble-methods: Could not resolve
>> dependencies for project
>> org.wso2.carbon.ml:ensemble-methods:jar:1.0-SNAPSHOT: The following
>> artifacts could not be resolved:
>> org.wso2.carbon.metrics:org.wso2.carbon.metrics.manager:jar:1.1.0 *Best
>>
>>
>>
>>
>> [1]
>> https://github.com/wso2/carbon-ml/blob/master/components/ml/org.wso2.carbon.ml.core/src/main/java/org/wso2/carbon/ml/core/impl/Predictor.java#L80
>>
>> On 03.06.2016 14:11, Supun Sethunga wrote:
>>
>> Hi,
>>
>> Can you specify which predict() method, to be precise?
>>
>> Anyway, looking at the error trace, this seems to be a version mismatch
>> for the dependency "org.wso2.carbon.metrics ". Can you try adding v1.1.0?
>> i.e:  org.wso2.carbon.metrics
>> org.wso2.carbon.metrics.manager 
>> 1.1.0
>> 
>> Regards,
>>
>> On Fri, Jun 3, 2016 at 5:21 PM, Misgana Negassi <
>> negas...@tf.uni-freiburg.de> wrote:
>>
>>> Hi Supun,
>>> I get this error when calling predict() method.
>>>
>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>> org/wso2/carbon/metrics/manager/Level
>>> at
>>> org.wso2.carbon.ml.core.impl.Predictor.getTimer(Predictor.java:301)
>>> at org.wso2.carbon.ml.core.impl.Predictor.predict(Predictor.java:83)
>>> at testing.main(testing.java:27)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:497)
>>> at
>>> com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
>>> Caused by: java.lang.ClassNotFoundException:
>>> org.wso2.carbon.metrics.manager.Level
>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>>
>>>
>>> I added the module dependency "org.wso2.carbon.metrics " but still the
>>> error persists. Appreciate your help!
>>>
>>> Best,
>>> Misgana
>>>
>>>
>>> On 02.06.2016 10:49, Supun Sethunga wrote:
>>>
>>> Hi,
>>>
>>> A sample on how to invoke the predict() method can be found in the above
>>> links ([1], [2], [3] in order) I've shared..
>>>
>>> Regards,
>>> Supun
>>>
>>> On

[Dev] ESB Dynamic endpoint support

2016-06-07 Thread Godwin Shrimal
Hi All,

Do we have a way to do $Subject such as below, same way we are doing with
Sequence since my endpoint key is in a property.



   


Thanks
Godwin

-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Dynamic endpoint support

2016-06-07 Thread Lahiru Sandaruwan
Hi Godawin,

You can set to header, see [1]



Thanks.
[1]
https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/esb/docs/xdoc/faq.xml#mediation-change-ep-dynamic

On Tue, Jun 7, 2016 at 2:00 PM, Godwin Shrimal  wrote:

> Hi All,
>
> Do we have a way to do $Subject such as below, same way we are doing with
> Sequence since my endpoint key is in a property.
>
> 
> 
>
> 
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

phone: +94773325954
email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Analytics IS - Handling null or empty Strings to show on respective gadgets

2016-06-07 Thread Mohanadarshan Vivekanandalingam
On Tue, Jun 7, 2016 at 6:35 PM, Hasintha Indrajee  wrote:

> Hi Damith,
>
> For the time being we can follow this approach. But this seems like a
> standard problem we may face in other products as well. Any standard way of
> handling this ? Any ideas for handling this issue in future ?
>
>
Hmm, AFAIK above was not became an issue for other analytics
products/usecases ..

@Srinath and all, do you guys have any suggestions ? what should be the
best approach ?..

Thanks,
Mohan



> On Tue, Jun 7, 2016 at 12:32 PM, Damith Wickramasinghe 
> wrote:
>
>> Hi Johann and all,
>>
>> Our decided approach was to send a empty string for all the cases from IS
>> side and from DAS after retrieving data, provide a default string with some
>> style to show that its a special empty case. But in lucene we cannot have
>> empty attributes since they cannot be indexed and search will not work for
>> them. Our next option is to provide a standard naming for a default value
>> and also provide some configuration in IS to change it if needed. WDYT ?
>>
>> Regards,
>> Damith.
>>
>> On Mon, Jun 6, 2016 at 7:19 PM, Damith Wickramasinghe 
>> wrote:
>>
>>> Hi,
>>>
>>> When it comes to authentication scenarios in some cases we cannot
>>> specify roles etc to publishing events eg:- non existing user tried to
>>> login with username and password. Then for the said events roles attribute
>>> will be empty/null  .
>>>
>>> Also as discussed with Pulasthi there can be other attributes as well
>>> which can be empty or null. For all those scenarios we need to show a
>>> authentication failure count for all the dimensions of User, Role,
>>> IdentityProvider etc.For that we need a constant String which can be used
>>> to show the respective fail counts.  Having a constant value like
>>> "NOT-AVAILABLE" can be sent from IS side or populated from DAS side but any
>>> user can create an username of any sort . eg:NOT-AVAILABLE .So there can be
>>> issues in calculating authentication failure counts.
>>>
>>> Any insights on handling such scenarios ?
>>>
>>> Regards,
>>> Damith.
>>>
>>> --
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> 
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94728671315 <%2B94728671315>*
>>>
>>>
>>
>>
>> --
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> 
>> lean.enterprise.middleware
>>
>> mobile: *+94728671315 <%2B94728671315>*
>>
>>
>
>
> --
> Hasintha Indrajee
> Software Engineer
> WSO2, Inc.
> Mobile:+94 771892453
>
>


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

email: mo...@wso2.com
phone:(+94) 771117673
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Dynamic endpoint support

2016-06-07 Thread Lahiru Sandaruwan
Sorry, wrong solution. This is for, when you have the endpoint in a
property :)

Thanks.

On Tue, Jun 7, 2016 at 2:11 PM, Lahiru Sandaruwan  wrote:

> Hi Godawin,
>
> You can set to header, see [1]
>
> 
>
> Thanks.
> [1]
> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/esb/docs/xdoc/faq.xml#mediation-change-ep-dynamic
>
> On Tue, Jun 7, 2016 at 2:00 PM, Godwin Shrimal  wrote:
>
>> Hi All,
>>
>> Do we have a way to do $Subject such as below, same way we are doing with
>> Sequence since my endpoint key is in a property.
>>
>> 
>> 
>>
>> 
>>
>> Thanks
>> Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> phone: +94773325954
> email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


-- 
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

phone: +94773325954
email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Setting JMS Version gloably

2016-06-07 Thread Manuranga Perera
Hi Ravindra/Dilshani,
Can we set transport.jms.JMSSpecVersion globally (ie: via axis2.xml)?

-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Dynamic endpoint support

2016-06-07 Thread Harsha Thirimanna
Hi Godwin,
What do you mean by dynamic ? You meant , it is pass as a parameter from
the request or those are known endpoint and just pick that based on request
parameter ?


*Harsha Thirimanna*
Associate Tech Lead; WSO2, Inc.; http://wso2.com
* *
*email: **hars...@wso2.com* * cell: +94 71 5186770 *
*twitter: **http://twitter.com/ *
*harshathirimannlinked-in: **http:
**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
*

*Lean . Enterprise . Middleware*


On Wed, Jun 8, 2016 at 1:04 AM, Lahiru Sandaruwan  wrote:

> Sorry, wrong solution. This is for, when you have the endpoint in a
> property :)
>
> Thanks.
>
> On Tue, Jun 7, 2016 at 2:11 PM, Lahiru Sandaruwan 
> wrote:
>
>> Hi Godawin,
>>
>> You can set to header, see [1]
>>
>> 
>>
>> Thanks.
>> [1]
>> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/esb/docs/xdoc/faq.xml#mediation-change-ep-dynamic
>>
>> On Tue, Jun 7, 2016 at 2:00 PM, Godwin Shrimal  wrote:
>>
>>> Hi All,
>>>
>>> Do we have a way to do $Subject such as below, same way we are doing
>>> with Sequence since my endpoint key is in a property.
>>>
>>> 
>>> 
>>>
>>> 
>>>
>>> Thanks
>>> Godwin
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *http://lnkd.in/KUum6D *
>>> twitter: https://twitter.com/godwinamila
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Committer and PMC member, Apache Stratos,
>> Senior Software Engineer,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> phone: +94773325954
>> email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> phone: +94773325954
> email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>
> ___
> 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] ESB Dynamic endpoint support

2016-06-07 Thread Godwin Shrimal
Hi Harsha,

As I mentioned above endpoint key is in a property and we need to pick the
endpoint based on that property.


Thanks
Godwin


On Tue, Jun 7, 2016 at 2:54 PM, Harsha Thirimanna  wrote:

> Hi Godwin,
> What do you mean by dynamic ? You meant , it is pass as a parameter from
> the request or those are known endpoint and just pick that based on request
> parameter ?
>
>
> *Harsha Thirimanna*
> Associate Tech Lead; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Wed, Jun 8, 2016 at 1:04 AM, Lahiru Sandaruwan 
> wrote:
>
>> Sorry, wrong solution. This is for, when you have the endpoint in a
>> property :)
>>
>> Thanks.
>>
>> On Tue, Jun 7, 2016 at 2:11 PM, Lahiru Sandaruwan 
>> wrote:
>>
>>> Hi Godawin,
>>>
>>> You can set to header, see [1]
>>>
>>> 
>>>
>>> Thanks.
>>> [1]
>>> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/esb/docs/xdoc/faq.xml#mediation-change-ep-dynamic
>>>
>>> On Tue, Jun 7, 2016 at 2:00 PM, Godwin Shrimal  wrote:
>>>
 Hi All,

 Do we have a way to do $Subject such as below, same way we are doing
 with Sequence since my endpoint key is in a property.

 
 

 

 Thanks
 Godwin

 --
 *Godwin Amila Shrimal*
 Senior Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D *
 twitter: https://twitter.com/godwinamila

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


>>>
>>>
>>> --
>>> --
>>> Lahiru Sandaruwan
>>> Committer and PMC member, Apache Stratos,
>>> Senior Software Engineer,
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> phone: +94773325954
>>> email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>
>>>
>>
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Committer and PMC member, Apache Stratos,
>> Senior Software Engineer,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> phone: +94773325954
>> email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Dynamic endpoint support

2016-06-07 Thread Kasun Indrasiri
Is this what you want? [1]

[1] https://docs.wso2.com/display/ESB490/Indirect+and+Resolving+Endpoints

On Tue, Jun 7, 2016 at 9:11 PM, Godwin Shrimal  wrote:

> Hi Harsha,
>
> As I mentioned above endpoint key is in a property and we need to pick the
> endpoint based on that property.
>
>
> Thanks
> Godwin
>
>
> On Tue, Jun 7, 2016 at 2:54 PM, Harsha Thirimanna 
> wrote:
>
>> Hi Godwin,
>> What do you mean by dynamic ? You meant , it is pass as a parameter from
>> the request or those are known endpoint and just pick that based on request
>> parameter ?
>>
>>
>> *Harsha Thirimanna*
>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>> * *
>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>> *twitter: **http://twitter.com/ *
>> *harshathirimannlinked-in: **http:
>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Wed, Jun 8, 2016 at 1:04 AM, Lahiru Sandaruwan 
>> wrote:
>>
>>> Sorry, wrong solution. This is for, when you have the endpoint in a
>>> property :)
>>>
>>> Thanks.
>>>
>>> On Tue, Jun 7, 2016 at 2:11 PM, Lahiru Sandaruwan 
>>> wrote:
>>>
 Hi Godawin,

 You can set to header, see [1]

 

 Thanks.
 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/esb/docs/xdoc/faq.xml#mediation-change-ep-dynamic

 On Tue, Jun 7, 2016 at 2:00 PM, Godwin Shrimal  wrote:

> Hi All,
>
> Do we have a way to do $Subject such as below, same way we are doing
> with Sequence since my endpoint key is in a property.
>
> 
> 
>
> 
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 --
 Lahiru Sandaruwan
 Committer and PMC member, Apache Stratos,
 Senior Software Engineer,
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 phone: +94773325954
 email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
 linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146


>>>
>>>
>>> --
>>> --
>>> Lahiru Sandaruwan
>>> Committer and PMC member, Apache Stratos,
>>> Senior Software Engineer,
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> phone: +94773325954
>>> email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>
> ___
> 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/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Dynamic endpoint support

2016-06-07 Thread Godwin Shrimal
Hi Kasun,

Thanks for the response, this is exactly what I want (key-expression).

Thanks
Godwin


On Tue, Jun 7, 2016 at 3:38 PM, Kasun Indrasiri  wrote:

> Is this what you want? [1]
>
> [1] https://docs.wso2.com/display/ESB490/Indirect+and+Resolving+Endpoints
>
> On Tue, Jun 7, 2016 at 9:11 PM, Godwin Shrimal  wrote:
>
>> Hi Harsha,
>>
>> As I mentioned above endpoint key is in a property and we need to pick
>> the endpoint based on that property.
>>
>>
>> Thanks
>> Godwin
>>
>>
>> On Tue, Jun 7, 2016 at 2:54 PM, Harsha Thirimanna 
>> wrote:
>>
>>> Hi Godwin,
>>> What do you mean by dynamic ? You meant , it is pass as a parameter from
>>> the request or those are known endpoint and just pick that based on request
>>> parameter ?
>>>
>>>
>>> *Harsha Thirimanna*
>>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>>> *twitter: **http://twitter.com/ *
>>> *harshathirimannlinked-in: **http:
>>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Wed, Jun 8, 2016 at 1:04 AM, Lahiru Sandaruwan 
>>> wrote:
>>>
 Sorry, wrong solution. This is for, when you have the endpoint in a
 property :)

 Thanks.

 On Tue, Jun 7, 2016 at 2:11 PM, Lahiru Sandaruwan 
 wrote:

> Hi Godawin,
>
> You can set to header, see [1]
>
> 
>
> Thanks.
> [1]
> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/esb/docs/xdoc/faq.xml#mediation-change-ep-dynamic
>
> On Tue, Jun 7, 2016 at 2:00 PM, Godwin Shrimal 
> wrote:
>
>> Hi All,
>>
>> Do we have a way to do $Subject such as below, same way we are doing
>> with Sequence since my endpoint key is in a property.
>>
>> 
>> 
>>
>> 
>>
>> Thanks
>> Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> phone: +94773325954
> email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


 --
 --
 Lahiru Sandaruwan
 Committer and PMC member, Apache Stratos,
 Senior Software Engineer,
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 phone: +94773325954
 email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
 linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146


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


>>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>> ___
>> 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/
>



-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ESB Blocking call mediator

2016-06-07 Thread Godwin Shrimal
Hi All,

When I use call mediator in my sequence as below it gives error [1].






If I change the code as any of below, its works fine.













Do we have a problem in Call mediator with the combination of *blocking=true
*and *key-expression *in endpoint ?


[1] org.apache.synapse.SynapseException: Error while performing the call
operation
at
org.apache.synapse.mediators.builtin.CallMediator.handleFault(CallMediator.java:306)
at
org.apache.synapse.mediators.builtin.CallMediator.handleBlockingCall(CallMediator.java:119)
at
org.apache.synapse.mediators.builtin.CallMediator.mediate(CallMediator.java:85)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
at
org.apache.synapse.message.processor.impl.sampler.SamplingService$1.run(SamplingService.java:211)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at
org.apache.synapse.message.senders.blocking.BlockingMsgSender.send(BlockingMsgSender.java:114)
at
org.apache.synapse.mediators.builtin.CallMediator.handleBlockingCall(CallMediator.java:113)


Thanks
Godwin

-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Blocking call mediator

2016-06-07 Thread Isuru Udana
Hi Godwin,

I think key-expressions are not supported in blocking mode.
@Kathees,
Can you please confirm ?

Thanks.

On Wed, Jun 8, 2016 at 3:08 AM, Godwin Shrimal  wrote:

> Hi All,
>
> When I use call mediator in my sequence as below it gives error [1].
>
> 
>
> 
>
> 
> If I change the code as any of below, its works fine.
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> Do we have a problem in Call mediator with the combination of *blocking=true
> *and *key-expression *in endpoint ?
>
>
> [1] org.apache.synapse.SynapseException: Error while performing the call
> operation
> at
> org.apache.synapse.mediators.builtin.CallMediator.handleFault(CallMediator.java:306)
> at
> org.apache.synapse.mediators.builtin.CallMediator.handleBlockingCall(CallMediator.java:119)
> at
> org.apache.synapse.mediators.builtin.CallMediator.mediate(CallMediator.java:85)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
> at
> org.apache.synapse.message.processor.impl.sampler.SamplingService$1.run(SamplingService.java:211)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NullPointerException
> at
> org.apache.synapse.message.senders.blocking.BlockingMsgSender.send(BlockingMsgSender.java:114)
> at
> org.apache.synapse.mediators.builtin.CallMediator.handleBlockingCall(CallMediator.java:113)
>
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>



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


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.6 RC2

2016-06-07 Thread Kalpa Welivitigoda
Hi Anupama,

On Tue, Jun 7, 2016 at 8:45 PM, Anupama Pathirage  wrote:

> Hi Kalpa,
>
> Checked the suggested approaches and those two issues were resolved after
> applying both changes. We will further test the service with the Carbon RC2.
>
> On Tue, Jun 7, 2016 at 6:15 PM, Kalpa Welivitigoda 
> wrote:
>
>> Hi Anupama,
>>
>> On Tue, Jun 7, 2016 at 5:50 PM, Anupama Pathirage 
>> wrote:
>>
>>> Hi,
>>>
>>> We got the following issues when testing WSO2 DSS with the Kernel RC2
>>> Release.
>>>
>>> *1) *Any action on management console gives the following error. It
>>> seems to be related with the tomcat upgrade and appreciate your input on
>>> this.
>>>
>>> [2016-06-07 17:21:16,905] ERROR
>>> {org.apache.coyote.AbstractProtocol$AbstractConnectionHandler} -  Error
>>> reading request, ignored
>>> java.lang.NoSuchMethodError: org.apache.coyote.Request.getBytesRead()I
>>> at org.apache.coyote.RequestInfo.updateCounters(RequestInfo.java:143)
>>> at org.apache.coyote.Request.updateCounters(Request.java:533)
>>> at
>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1140)
>>> at
>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
>>> at
>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1749)
>>> at
>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1708)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>> at
>>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>> at java.lang.Thread.run(Thread.java:745)
>>>
>>
>> Yes, it is due to the tomcat upgrade in kernel, relevant fixes for
>> carbon-deployment are already there in 4.6.2-SNAPSHOT. We have to do a
>> deployment release once we release 4.4.6-SNAPSHOT. For the moment, for
>> testing purpose, is it possible you try with 4.6.2-SNAPSHOT?
>>
>
> Could you please do the needful to release the carbon-deployment 4.6.2 as
> DSS 3.5.1 release will be on hold until it is done.
>

Yes, we will be doing component released once we are done with kernel 4.4.6.


>
>
>>
>>
>>>
>>> *2) *DBS file uploads gives the following error which returns Error 403
>>> - Forbidden
>>>
>>> [2016-06-07 17:21:16,904]  WARN {org.owasp.csrfguard.log.JavaLogger} -
>>> potential cross-site request forgery (CSRF) attack thwarted
>>> (user:, ip:10.100.7.118, method:POST,
>>> uri:/carbon/admin/jsp/WSRequestXSSproxy_ajaxprocessor.jsp, error:required
>>> token is missing from the request)
>>>
>>>
>> For this would you please try with adding the following line to
>> repository/conf/security/Owasp.CsrfGuard.Carbon.properties,
>>
>> org.owasp.csrfguard.unprotected.FileUpload=%servletContext%/fileupload/*
>>
>
> Is excluding these patterns from CSRF protection recommended ?
>
>
That we need to discuss with security experts and decide, I just wanted to
verify that this is an option to solve the issue.


> Regards,
> Anupama
>
>>
>>
>>
>>> Regards,
>>>
>>> On Tue, Jun 7, 2016 at 4:46 PM, KasunG Gajasinghe 
>>> wrote:
>>>

 Others, please continue to testing the pack and report all the issues
 so we can check and fix.

 On Tue, Jun 7, 2016 at 2:31 PM, Kasun Bandara  wrote:

> Hi Niranjan,
>
> Created [1] to track the equivalent Carbon JIRA.
>
> [1] https://wso2.org/jira/browse/CARBON-15938
>
> Thanks,
> Kasun.
>
> On Tue, Jun 7, 2016 at 2:23 PM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi KasunB,
>>
>> Please create an equivalent JIRA in Kernel in-order to track this.
>>
>> Regards,
>> Nira
>>
>> On Tue, Jun 7, 2016 at 2:11 PM, Kasun Bandara 
>> wrote:
>>
>>> Hi all,
>>>
>>> We are having L1 reported in [1] and will be a blocker for IS.
>>> Please hold off the vote proceedings until we find out the root cause of
>>> the issue. Most probably this issue must be originated from user core.
>>>
>>>
>>> Thanks,
>>> Kasun.
>>>
>>> [1] https://wso2.org/jira/browse/IDENTITY-4656
>>>
>>>
>>>
>>> On Tue, Jun 7, 2016 at 11:45 AM, KasunG Gajasinghe 
>>> wrote:
>>>
 Hi Viraj,



 On Tue, Jun 7, 2016 at 10:12 AM, Viraj Senevirathne <
 vir...@wso2.com> wrote:

> Hi Kalpa,
>
> I tried to build product-esb with kernel RC2 but it failed as
> package org.apache.velocity 0.0.0 dependency could not be found.
>
> *Installation failed.*
> *Cannot complete the install because one or more required items
> could not be found.*
> * Software being installed: WSO2 Carbon - Mediators Feature
> 4.6.1.SNAPSHOT (org.wso2.carbon.mediators.feature.group 
> 4.6.1.

Re: [Dev] "org.wso2.carbon.core.server.feature" packs "poi-ooxml"

2016-06-07 Thread Kalpa Welivitigoda
Hi Prabath,

I am afraid it won't be possible in 4.4.x. The fact is that if we remove
poi from kernel, it makes the kernel backward incompatible, already
released features which assume that poi comes from kernel fails at the
installation.

On Tue, Jun 7, 2016 at 6:27 PM, Prabath Abeysekera 
wrote:

> Hi Kalpa,
>
> Thanks for the update. So, I believe, there wouldn't be any possibility to
> get rid of this anytime soon?
>
> Cheers,
> Prabath
>
> On Mon, Jun 6, 2016 at 12:24 PM, Kalpa Welivitigoda 
> wrote:
>
>> Hi Prabath,
>>
>> We removed the poi dependencies from kernel 4.4.6 and later realized that
>> it causes backward incompatibilities. user management feature seems to use
>> poi that's coming from the kernel. Due to this, we will ship poi with
>> kernel 4.4.6 but with a version upgrade to 3.14.
>>
>> On Tue, May 10, 2016 at 11:06 PM, Prabath Abeysekera 
>> wrote:
>>
>>> Great, Thanks Manoj!
>>>
>>> On Tue, May 10, 2016 at 10:53 PM, Manoj Kumara  wrote:
>>>
 Hi Prabath,

 We are in the process of removing these dependencies form along with
 version upgrading required libraries to address some security
 vulnerabilities. Plan is to remove them from 4.4.6 and currently Kalpa is
 working on it.

 Regards,
 Manoj

 *Manoj Kumara*
 WSO2 Inc. *| **lean. enterprise. middleware.*
 *Mobile:* +94 713 448188

 On Tue, May 10, 2016 at 10:33 PM, Prabath Abeysekera >>> > wrote:

> Folks, have you guys been able to do something about this?
>
> Cheers,
> Prabath
>
> On Fri, Apr 8, 2016 at 9:00 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Not for 4.4.6 as its now ready for release. We will have to verify
>> this and remove this, if this is not needed for any kernel dependents. 
>> Will
>> track this and fix for next release -
>> https://wso2.org/jira/browse/CARBON-15852
>>
>> On Fri, Apr 8, 2016 at 11:55 AM, Aruna Karunarathna 
>> wrote:
>>
>>>
>>>
>>> On Fri, Apr 8, 2016 at 11:38 AM, Prabath Abeysekera <
>>> praba...@wso2.com> wrote:
>>>
 Hi Kicha,

 Looks like "org.wso2.carbon.core.server.feature" packs "poi-ooxml",
 even though it is not currently used in the underlying implementation,
 which claims for 7.6M. IOW, there's no sign of any usage of the above
 except for a couple of stale imports.

 Considering the above, is there any possibility to remove this?

>>>
>>> Adding Jayanga, Can we remove this in 4.4.6 release?
>>> BTW not sure, if this is already used since this comes from the
>>> kernel, If so there will be problems in product level.
>>>

 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


>>>
>>>
>>> --
>>>
>>> *Aruna Sujith Karunarathna *
>>> 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
>>>
>>>
>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Associate Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> *
>> Twitter - *http://twitter.com/kishanthan
>> *
>>
>
>
>
> --
> 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
>
>

>>>
>>>
>>> --
>>> Prabath Abeysekara
>>> Technical Lead
>>> WSO2 Inc.
>>> Email: praba...@wso2.com
>>> Mobile: +94774171471
>>>
>>
>>
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: kal...@wso2.com
>> Mobile: +94776509215
>>
>
>
>
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>



-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.6 RC2

2016-06-07 Thread Kasun Bandara
Hi All,

We have done the fix for L1 reported in [1] yesterday.

Thanks,
Kasun.

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

On Wed, Jun 8, 2016 at 7:00 AM, Kalpa Welivitigoda  wrote:

> Hi Anupama,
>
> On Tue, Jun 7, 2016 at 8:45 PM, Anupama Pathirage 
> wrote:
>
>> Hi Kalpa,
>>
>> Checked the suggested approaches and those two issues were resolved after
>> applying both changes. We will further test the service with the Carbon RC2.
>>
>> On Tue, Jun 7, 2016 at 6:15 PM, Kalpa Welivitigoda 
>> wrote:
>>
>>> Hi Anupama,
>>>
>>> On Tue, Jun 7, 2016 at 5:50 PM, Anupama Pathirage 
>>> wrote:
>>>
 Hi,

 We got the following issues when testing WSO2 DSS with the Kernel RC2
 Release.

 *1) *Any action on management console gives the following error. It
 seems to be related with the tomcat upgrade and appreciate your input on
 this.

 [2016-06-07 17:21:16,905] ERROR
 {org.apache.coyote.AbstractProtocol$AbstractConnectionHandler} -  Error
 reading request, ignored
 java.lang.NoSuchMethodError: org.apache.coyote.Request.getBytesRead()I
 at
 org.apache.coyote.RequestInfo.updateCounters(RequestInfo.java:143)
 at org.apache.coyote.Request.updateCounters(Request.java:533)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1140)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1749)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1708)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at
 org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 at java.lang.Thread.run(Thread.java:745)

>>>
>>> Yes, it is due to the tomcat upgrade in kernel, relevant fixes for
>>> carbon-deployment are already there in 4.6.2-SNAPSHOT. We have to do a
>>> deployment release once we release 4.4.6-SNAPSHOT. For the moment, for
>>> testing purpose, is it possible you try with 4.6.2-SNAPSHOT?
>>>
>>
>> Could you please do the needful to release the carbon-deployment 4.6.2 as
>> DSS 3.5.1 release will be on hold until it is done.
>>
>
> Yes, we will be doing component released once we are done with kernel
> 4.4.6.
>
>
>>
>>
>>>
>>>

 *2) *DBS file uploads gives the following error which returns Error
 403 - Forbidden

 [2016-06-07 17:21:16,904]  WARN {org.owasp.csrfguard.log.JavaLogger} -
 potential cross-site request forgery (CSRF) attack thwarted
 (user:, ip:10.100.7.118, method:POST,
 uri:/carbon/admin/jsp/WSRequestXSSproxy_ajaxprocessor.jsp, error:required
 token is missing from the request)


>>> For this would you please try with adding the following line to
>>> repository/conf/security/Owasp.CsrfGuard.Carbon.properties,
>>>
>>> org.owasp.csrfguard.unprotected.FileUpload=%servletContext%/fileupload/*
>>>
>>
>> Is excluding these patterns from CSRF protection recommended ?
>>
>>
> That we need to discuss with security experts and decide, I just wanted to
> verify that this is an option to solve the issue.
>
>
>> Regards,
>> Anupama
>>
>>>
>>>
>>>
 Regards,

 On Tue, Jun 7, 2016 at 4:46 PM, KasunG Gajasinghe 
 wrote:

>
> Others, please continue to testing the pack and report all the issues
> so we can check and fix.
>
> On Tue, Jun 7, 2016 at 2:31 PM, Kasun Bandara  wrote:
>
>> Hi Niranjan,
>>
>> Created [1] to track the equivalent Carbon JIRA.
>>
>> [1] https://wso2.org/jira/browse/CARBON-15938
>>
>> Thanks,
>> Kasun.
>>
>> On Tue, Jun 7, 2016 at 2:23 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi KasunB,
>>>
>>> Please create an equivalent JIRA in Kernel in-order to track this.
>>>
>>> Regards,
>>> Nira
>>>
>>> On Tue, Jun 7, 2016 at 2:11 PM, Kasun Bandara 
>>> wrote:
>>>
 Hi all,

 We are having L1 reported in [1] and will be a blocker for IS.
 Please hold off the vote proceedings until we find out the root cause 
 of
 the issue. Most probably this issue must be originated from user core.


 Thanks,
 Kasun.

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



 On Tue, Jun 7, 2016 at 11:45 AM, KasunG Gajasinghe >>> > wrote:

> Hi Viraj,
>
>
>
> On Tue, Jun 7, 2016 at 10:12 AM, Viraj Senevirathne <
> vir...@wso2.com> wrote:
>
>> Hi Kalpa,
>>
>> I tried to build product-esb with kernel RC2 but it failed as
>>>

Re: [Dev] Setting JMS Version gloably

2016-06-07 Thread Dilshani Subasinghe
Hi Manuranga,

According to documentation, Yes we can set that. But I notice that, it
doesn't validate through the value given globally. For example, even I set
up JMS Version as 2.0 globally, it doesn't take that value.

Within the source (ServiceTaskManager.java) it seem to hard coded.


*/** Should this service use JMS 1.1 ? (when false, defaults to 1.0.2b)
*/private boolean jmsSpec11 = true;*

@Vijitha - Hope you may explain the actual scenario ?

Regards,
Dilshani


On Wed, Jun 8, 2016 at 1:25 AM, Manuranga Perera  wrote:

> Hi Ravindra/Dilshani,
> Can we set transport.jms.JMSSpecVersion globally (ie: via axis2.xml)?
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>



-- 
Best Regards,

Dilshani Subasinghe
Software Engineer - QA
WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware
Mobile: +94773375185
Blog: dilshanilive.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC2016]Proposal 4: [ML] Ensemble Methods Support for WSO2 Machine Learner

2016-06-07 Thread Supun Sethunga
Hi,

Also just a gentle reminder.., we have just under two weeks for the
mid-term evaluation. We need to have some end to end working scenario of
stacking by then. So lets put some extra effort and try to complete one
scenario.

Thanks,
Supun

On Tue, Jun 7, 2016 at 10:48 PM, Supun Sethunga  wrote:

> Hi,
>
> I have restructured my code, see [1][2]. It is a naive implementation if
>> my logic works.
>
> Why there are two files/implementations? which is the correct one? Say, if
> I want to try out your implementation, which one should I run?
>
> When creating an instance of Stacking class, I need to pass an argument of
>> type MLModelConfigurationContext. and getcontext() method doesn't work as I
>> am in a static main method.
>> Question: 1. What is the best way to get context argument?
>> 2.  Is the design of Stacking class fine?
>
>
> Why would you need to use MLModelConfigurationContext. and getcontext()
> methods? Those are utility methods used at the ML server runtime to
> temporary store configurations. Let's not worry about those, as they are
> part of the integration phase. First, try to implement the stacking with
> native spark-mllib libraries, and re-use methods/components in ML server *ONLY
> IF * they are necessary or they are re-usable (i.e: if some method is
> already available, which you need).
>
> Regards,
> Supun
>
> On Tue, Jun 7, 2016 at 8:31 PM, Misgana Negassi <
> negas...@tf.uni-freiburg.de> wrote:
>
>>
>> Hi Supun,
>>
>> My dependencies problems are solved, thanks!
>>
>> I have restructured my code, see [1][2]. It is a naive implementation if
>> my logic works.
>>
>>
>> When creating an instance of Stacking class, I need to pass an argument
>> of type MLModelConfigurationContext. and getcontext() method doesn't work
>> as I am in a static main method.
>> Question: 1. What is the best way to get context argument?
>> 2.  Is the design of Stacking class fine?
>>
>> I appreciate your feedback!
>> Misgana
>>
>>
>>
>>
>>
>> [1]
>> https://github.com/zemoel/ensemble-methods/blob/master/src/main/java/Stacking.java
>> [2]
>> https://github.com/zemoel/ensemble-methods/blob/master/src/main/java/ReadCSV.java#L188
>>
>>
>> On 04.06.2016 06:18, Supun Sethunga wrote:
>>
>> Hi,
>>
>> Can you check whether you have defined the relevant repositories in the
>> pom.xml? If haven't, please do so as in [1].
>>
>> If that didn't work out, can you try checking out the source code of [2],
>> and build it locally, and then build your code?
>>
>> [1] https://github.com/wso2/carbon-ml/blob/master/pom.xml#L59
>> [2]
>> https://github.com/wso2/carbon-metrics/tree/v1.1.0/components/org.wso2.carbon.metrics.manager
>>
>> Regards,
>>
>> On Fri, Jun 3, 2016 at 7:06 PM, Misgana Negassi <
>> negas...@tf.uni-freiburg.de> wrote:
>>
>>> Hi Supun,
>>>
>>> This  is [1] the predict() method invoked.
>>>
>>> I added the dependencies and run mvn clean install and am trying to
>>> debug this error now:
>>>
>>>
>>>
>>> *Failed to execute goal on project ensemble-methods: Could not resolve
>>> dependencies for project
>>> org.wso2.carbon.ml:ensemble-methods:jar:1.0-SNAPSHOT: The following
>>> artifacts could not be resolved:
>>> org.wso2.carbon.metrics:org.wso2.carbon.metrics.manager:jar:1.1.0 *Best
>>>
>>>
>>>
>>>
>>> [1]
>>> https://github.com/wso2/carbon-ml/blob/master/components/ml/org.wso2.carbon.ml.core/src/main/java/org/wso2/carbon/ml/core/impl/Predictor.java#L80
>>>
>>> On 03.06.2016 14:11, Supun Sethunga wrote:
>>>
>>> Hi,
>>>
>>> Can you specify which predict() method, to be precise?
>>>
>>> Anyway, looking at the error trace, this seems to be a version mismatch
>>> for the dependency "org.wso2.carbon.metrics ". Can you try adding v1.1.0
>>> ?
>>> i.e:  org.wso2.carbon.metrics
>>> org.wso2.carbon.metrics.manager 
>>> 1.1.0
>>> 
>>> Regards,
>>>
>>> On Fri, Jun 3, 2016 at 5:21 PM, Misgana Negassi <
>>> negas...@tf.uni-freiburg.de> wrote:
>>>
 Hi Supun,
 I get this error when calling predict() method.

 Exception in thread "main" java.lang.NoClassDefFoundError:
 org/wso2/carbon/metrics/manager/Level
 at
 org.wso2.carbon.ml.core.impl.Predictor.getTimer(Predictor.java:301)
 at org.wso2.carbon.ml.core.impl.Predictor.predict(Predictor.java:83)
 at testing.main(testing.java:27)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:497)
 at
 com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
 Caused by: java.lang.ClassNotFoundException:
 org.wso2.carbon.metrics.manager.Level
 at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
 at sun.misc.Launcher$AppCla

Re: [Dev] [GSoC 2016]Proposal 03: [ML]Visual(Deep) Neural Network Builder -Project Progress

2016-06-07 Thread Supun Sethunga
Hi Lakini,

Can you host your current code somewhere, may be in jsfiddle, with all
html+css+js stuff (as a working sample), so that we can have a look? It is
hard to suggest a solution without even seeing the issue :)

Btw, please keep an eye on the gsoc timeline as well. Mid-term evaluations
are less than two weeks away, so we need to have some basic version of the
UI in working state, as we discussed at the start. Also try to schedule the
demo before that, so that we can have a look at the implementation as well
as can sort out any issue prior to the evaluation.

Thanks,
Supun

On Tue, Jun 7, 2016 at 12:57 AM, Lakini Senanayaka <
lakinisenanayak...@gmail.com> wrote:

> Hi,
>
> This is my javascript file.I forgot to attach it with the last email.
>
> Thank you.
>
> On Mon, Jun 6, 2016 at 10:41 PM, Lakini Senanayaka <
> lakinisenanayak...@gmail.com> wrote:
>
>> Hi,
>>
>> I have started to build the front end web page and now I'm getting an
>> error.
>> *jquery UI draggable elements are no longer draggable after drop it in
>> the working space*.I have gone through stack over flow questions and
>> answers but still I can't drag the element after drop.
>>
>> I would greatly appreciate  if you kindly give me some solutions on this
>> problem.
>>
>> Thank you.
>>
>> On Sat, Jun 4, 2016 at 8:55 AM, Lakini Senanayaka <
>> lakinisenanayak...@gmail.com> wrote:
>>
>>> Hi mentors,
>>>
>>> I have a prototype presentation for my 4th year research project next
>>> week.So I didn't have time to look in to the builder.How ever  I have
>>> started to build the NN builder today.I'll submit the demo as soon as
>>> possible.
>>>
>>> Thank you.
>>>
>>> On Fri, Jun 3, 2016 at 4:40 PM, Lakini Senanayaka <
>>> lakinisenanayak...@gmail.com> wrote:
>>>
 Hi,

 Thank you very much Chathurike.It will be really helpful for my NN
 Builder.

 Thank you.

 On Fri, Jun 3, 2016 at 10:50 AM, CD Athuraliya 
 wrote:

> Hi Lakini,
>
> You can gain some insight for your NN builder from TensorFlow
> Playground [1]. It is also open source under Apache 2.0 licence [2].
>
> [1] http://playground.tensorflow.org
> [2] https://github.com/tensorflow/playground
>
> Regards,
> CD
>
> On Thu, Jun 2, 2016 at 8:00 AM, Upul Bandara  wrote:
>
>> Yes at the moment this looks OK.
>>
>> Please put some effort to create a basic version of the NN builder
>> and let's have a quick demo.
>>
>> Let me know if you have further questions or clarifications.
>>
>> Thanks,
>> Upul
>>
>> On Wed, Jun 1, 2016 at 11:29 PM, Lakini Senanayaka <
>> lakinisenanayak...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Thank you very much Upul. I will submit a demo soon.
>>>
>>> I have drawn a sketch of NN builder front end[1]. Basically it will
>>> be like this UI[2].(The content will be changed.)
>>>
>>> [1]Sketch of NN Builder
>>> 
>>> [2]https://www.draw.io/  
>>>
>>> In [1],under "layers" users can select the type of the
>>> layer-Input,Hidden or Output layer.
>>> Under "node" and "Connectors"-users can drag and drop nodes and
>>> connectors to the working area and they can build their NN as they wish.
>>>
>>> In the right hand side,there is a setting area.From that user can
>>> set Optimization algorithms,iterations,learning rates,seed etc. of the
>>> neural network.
>>>
>>> Could you please give me comments and your thoughts regrading this?
>>>
>>> Thank you.
>>>
>>>
>>>
>>> On Wed, Jun 1, 2016 at 2:19 PM, Upul Bandara  wrote:
>>>
 Hi,

 Good progress.

 The key parts of the project are designing the front-end of NN
 builder, communicating between the front-end and the Deeplearning4J
 back-end.
 So at this stage of the project, it is better to put your effort on
 above the components. Later, we can integrate what you have built with 
 WSO2
 Machine Learning server.

 Once you have completed a basic NN builder (ability to build a
 simple feedforward  is enough) we would like to have a quick demo.

 Let me know if you have further questions or clarifications.

 Thanks,
 Upul

 On Wed, Jun 1, 2016 at 10:42 AM, Lakini Senanayaka <
 lakinisenanayak...@gmail.com> wrote:

> Hi,
>
> I'm sorry for the late response.Thank you very much for the last
> email.I have gone through JQueryUI and I have implemented some samples
> using JQueryUI.I have gone through the  WSO2 machine learner and I 
> have
> identified the place to insert this jaggery page(replace the
> hyper-parameter page in the

Re: [Dev] [APIM2.0] Issue with selecting scopes for token generation

2016-06-07 Thread Harsha Kumara
Hi Jo,

I have checked the code. It seems we don't take the scopes when we issue
the first token generation request. I think we should allow to select
scopes when first token generation issued.

Thanks,
Harsha

On Tue, Jun 7, 2016 at 7:22 PM, Kavitha Subramaniyam 
wrote:

> Hi team,
>
> I could observe that scope drop down option is missing in the store [1]
> when generate access token for the first time but it is available for
> regenerate token. I have defined a scope with Internal/everyone role and
> added to relevant method[2].
>
> Seems in previous version scope selection was there at token generation.
> Will this be a new change or UI bug?
>
> [1] see attachment scope.jpeg
> [2] see attachment api_add_scope.jpeg
>
> Thanks,
>
> --
> Kavitha.S
> *Software Engineer -QA*
> Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
> kavi...@wso2.com 
>



-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS][Tooling] UI Modifications for Human Task Editor

2016-06-07 Thread Nandika Jayawardana
Hi Heshitha,

It looks much better after the theming.

Regards
Nandika

On Tue, Jun 7, 2016 at 5:52 PM, Heshitha Hettihewa 
wrote:

> Hi Awanthika,
>
> Yeah. That can be done. I will add that change too.
>
> Thanks.
>
> On Tue, Jun 7, 2016 at 5:50 PM, Awanthika Senarath 
> wrote:
>
>> @Heshitha : not to remove boxes, yes same style in each box, the boxes
>> are too big to get just a few information IMO.
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> On Tue, Jun 7, 2016 at 5:45 PM, Heshitha Hettihewa 
>> wrote:
>>
>>> Hi Awanthika,
>>>
>>> Thanks a lot for the suggestions, I will add the mentioned changes. And
>>> for the last section, you mean adding a table similar to the image in every
>>> box? or remove the boxes and keep a single table which contain all the
>>> people assignments?.
>>>
>>> Thanks.
>>>
>>> On Tue, Jun 7, 2016 at 5:16 PM, Awanthika Senarath 
>>> wrote:
>>>
 Hello Heshitha,

 This looks good.


 Few things I noticed,

 in hteditor2 image, it is better if we can have the table topic
 centered in the box you have put, right now it is top-aligned and the
 button on the other corner is bottom aligned. Can we get both of them in
 the same horizontal line? then we can reduce the height of the box you have
 introduced to display that topic and the button.

 Also we can introduce an icon to the addinput button, a plus sign may
 be? the two blue colors in the page heading and the button are different,
 the ApproveLeave tab blue color is not very pleasing. Can we change that
 also to the button color?

 The tables with radio button elements consume too much space don't you
 think? we can display those items in a table line half that height. we can
 remove the lines in that box. Is it possible to introduce styling similar
 to something like this in that table?

 [image: Inline image 1]

 Regards
 Awanthika

 Awanthika Senarath
 Software Engineer, WSO2 Inc.
 Mobile: +94717681791



 On Tue, Jun 7, 2016 at 5:06 PM, Heshitha Hettihewa 
 wrote:

> Hi all,
>
> As discussed in the last review I have added some bootstrap styles to
> the Human Task Editor GUI. Further I've replaced some existing UI elements
> with bootstrap input types. Please find the Screen shots of the modified
> GUI editor attached herewith.  Is there any further modifications to be
> done? or can we continue with this GUI?.
>
> Appreciate your input.
>
> Thanks.
> --
> Heshitha Hettihewa
> *Software Engineer*
> Mobile : +94716866386
> <%2B94%20%280%29%20773%20451194>
> heshit...@wso2.com
>


>>>
>>>
>>> --
>>> Heshitha Hettihewa
>>> *Software Engineer*
>>> Mobile : +94716866386
>>> <%2B94%20%280%29%20773%20451194>
>>> heshit...@wso2.com
>>>
>>
>>
>
>
> --
> Heshitha Hettihewa
> *Software Engineer*
> Mobile : +94716866386
> <%2B94%20%280%29%20773%20451194>
> heshit...@wso2.com
>



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


Re: [Dev] ESB Blocking call mediator

2016-06-07 Thread Kathees Rajendram
Hi Godwin,

Call mediator blocking mode supportes indirect URL with key as you
mensioned above. Can you define the key expression in the endpoint.





@Isuru
Yes, call mediator with the combination of blocking=true and key-expression
in endpoint is not supported directly. We can use above approach.

Thanks,
Kathees

On Wed, Jun 8, 2016 at 6:27 AM, Isuru Udana  wrote:

> Hi Godwin,
>
> I think key-expressions are not supported in blocking mode.
> @Kathees,
> Can you please confirm ?
>
> Thanks.
>
> On Wed, Jun 8, 2016 at 3:08 AM, Godwin Shrimal  wrote:
>
>> Hi All,
>>
>> When I use call mediator in my sequence as below it gives error [1].
>>
>> 
>>
>> 
>>
>> 
>> If I change the code as any of below, its works fine.
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> Do we have a problem in Call mediator with the combination of *blocking=true
>> *and *key-expression *in endpoint ?
>>
>>
>> [1] org.apache.synapse.SynapseException: Error while performing the call
>> operation
>> at
>> org.apache.synapse.mediators.builtin.CallMediator.handleFault(CallMediator.java:306)
>> at
>> org.apache.synapse.mediators.builtin.CallMediator.handleBlockingCall(CallMediator.java:119)
>> at
>> org.apache.synapse.mediators.builtin.CallMediator.mediate(CallMediator.java:85)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
>> at
>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
>> at
>> org.apache.synapse.message.processor.impl.sampler.SamplingService$1.run(SamplingService.java:211)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: java.lang.NullPointerException
>> at
>> org.apache.synapse.message.senders.blocking.BlockingMsgSender.send(BlockingMsgSender.java:114)
>> at
>> org.apache.synapse.mediators.builtin.CallMediator.handleBlockingCall(CallMediator.java:113)
>>
>>
>> Thanks
>> Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>
>
>
> --
> *Isuru Udana*
> Technical Lead
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
>



-- 
Kathees
Software Engineer,
email: kath...@wso2.com
mobile: +94772596173
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM 2.0]What is the exact functionality on API Advance resource level throttling invert condition?

2016-06-07 Thread Ushani Balasooriya
Hi All,

When you enable invert condition of a particular header condition, should
it look at the whole header name, or just the value?

To collaborate more on this scenario, pls have a look at the below example.

I have configured a tier (named *Tier1*), with default limit as 50 req/1min
and a header condition policy as Header:value -> myheader:*123* with
execution policy of 20req/1min and *invert condition* is switched *on*

*Scenario 1 *: So when I invoke a request with myheader:*123*, since the
inverter is switched on, it will throttle out at 50req/1min which is
expected.
*Scenario 2*: when I invoke a request with myheader:*1234*, since the
inverter is switched on, it will throttle out at 20req/1min which is
expected.
*Scenario 3* :But when I invoke a request *without* a header named
myheader, it does not throttle out at all, and can be invoked unlimited.

Shouldn't this behave same as Scenario 2? Because when a publisher assigns
a tier as Tier1, he can be in a mindset that it should consent to the
configured tier request count.

Please advice.

Thanks,
-
*Ushani Balasooriya*
Senior Software Engineer - QA;
WSO2 Inc; http://www.wso2.com/.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM 2.0]What is the exact functionality on API Advance resource level throttling invert condition?

2016-06-07 Thread Mohanadarshan Vivekanandalingam
On Tue, Jun 7, 2016 at 11:32 PM, Harsha Kumara  wrote:

> Hi Ushani,
>
> If you send a request without a header which is the 3rd scenario this will
> be happen.
>
>- Since specified tier has two condition group we are having two CEP
>execution plans, one for default and one for conditional group.
>- What we have done for the default policy is, we have taken the all
>the conditions available in the conditional groups and take a invert of it
>where non of the request matching the conditional  groups will fall into
>the default tier.
>- But in the absence of configured field, the leads not to match with
>any configured policy.
>- Ideally I think this should go for the default policy.
>
> We will need add filter for check whether the condition is null and apply
> the default policy. Let's create a JIRA to track down this.
>

yes, +1.. We have to consider that case as well..


>
> Thanks,
> Harsha
>
> On Tue, Jun 7, 2016 at 6:52 PM, Ushani Balasooriya 
> wrote:
>
>> Hi All,
>>
>> When you enable invert condition of a particular header condition, should
>> it look at the whole header name, or just the value?
>>
>> To collaborate more on this scenario, pls have a look at the below
>> example.
>>
>> I have configured a tier (named *Tier1*), with default limit as 50
>> req/1min and a header condition policy as Header:value -> myheader:*123*
>> with execution policy of 20req/1min and *invert condition* is switched
>> *on*
>>
>> *Scenario 1 *: So when I invoke a request with myheader:*123*, since the
>> inverter is switched on, it will throttle out at 50req/1min which is
>> expected.
>> *Scenario 2*: when I invoke a request with myheader:*1234*, since the
>> inverter is switched on, it will throttle out at 20req/1min which is
>> expected.
>> *Scenario 3* :But when I invoke a request *without* a header named
>> myheader, it does not throttle out at all, and can be invoked unlimited.
>>
>> Shouldn't this behave same as Scenario 2? Because when a publisher
>> assigns a tier as Tier1, he can be in a mindset that it should consent to
>> the configured tier request count.
>>
>> Please advice.
>>
>> Thanks,
>> -
>> *Ushani Balasooriya*
>> Senior Software Engineer - QA;
>> WSO2 Inc; http://www.wso2.com/.
>>
>>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>



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

email: mo...@wso2.com
phone:(+94) 771117673
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM 2.0]What is the exact functionality on API Advance resource level throttling invert condition?

2016-06-07 Thread Harsha Kumara
Hi Ushani,

If you send a request without a header which is the 3rd scenario this will
be happen.

   - Since specified tier has two condition group we are having two CEP
   execution plans, one for default and one for conditional group.
   - What we have done for the default policy is, we have taken the all the
   conditions available in the conditional groups and take a invert of it
   where non of the request matching the conditional  groups will fall into
   the default tier.
   - But in the absence of configured field, the leads not to match with
   any configured policy.
   - Ideally I think this should go for the default policy.

We will need add filter for check whether the condition is null and apply
the default policy. Let's create a JIRA to track down this.

Thanks,
Harsha

On Tue, Jun 7, 2016 at 6:52 PM, Ushani Balasooriya  wrote:

> Hi All,
>
> When you enable invert condition of a particular header condition, should
> it look at the whole header name, or just the value?
>
> To collaborate more on this scenario, pls have a look at the below example.
>
> I have configured a tier (named *Tier1*), with default limit as 50
> req/1min and a header condition policy as Header:value -> myheader:*123*
> with execution policy of 20req/1min and *invert condition* is switched
> *on*
>
> *Scenario 1 *: So when I invoke a request with myheader:*123*, since the
> inverter is switched on, it will throttle out at 50req/1min which is
> expected.
> *Scenario 2*: when I invoke a request with myheader:*1234*, since the
> inverter is switched on, it will throttle out at 20req/1min which is
> expected.
> *Scenario 3* :But when I invoke a request *without* a header named
> myheader, it does not throttle out at all, and can be invoked unlimited.
>
> Shouldn't this behave same as Scenario 2? Because when a publisher assigns
> a tier as Tier1, he can be in a mindset that it should consent to the
> configured tier request count.
>
> Please advice.
>
> Thanks,
> -
> *Ushani Balasooriya*
> Senior Software Engineer - QA;
> WSO2 Inc; http://www.wso2.com/.
>
>


-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS][Tooling] UI Modifications for Human Task Editor

2016-06-07 Thread Dakshika Jayathilaka
Hi Heshitha,

Can you try to add bootstrap collapse[1] view instead of jquery-ui
accordion view.

[1] http://wso2-dev-ux.github.io/theme-wso2/collapse_component.html

Regards,

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

On Wed, Jun 8, 2016 at 9:43 AM, Nandika Jayawardana 
wrote:

> Hi Heshitha,
>
> It looks much better after the theming.
>
> Regards
> Nandika
>
> On Tue, Jun 7, 2016 at 5:52 PM, Heshitha Hettihewa 
> wrote:
>
>> Hi Awanthika,
>>
>> Yeah. That can be done. I will add that change too.
>>
>> Thanks.
>>
>> On Tue, Jun 7, 2016 at 5:50 PM, Awanthika Senarath 
>> wrote:
>>
>>> @Heshitha : not to remove boxes, yes same style in each box, the boxes
>>> are too big to get just a few information IMO.
>>>
>>> Awanthika Senarath
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94717681791
>>>
>>>
>>>
>>> On Tue, Jun 7, 2016 at 5:45 PM, Heshitha Hettihewa 
>>> wrote:
>>>
 Hi Awanthika,

 Thanks a lot for the suggestions, I will add the mentioned changes. And
 for the last section, you mean adding a table similar to the image in every
 box? or remove the boxes and keep a single table which contain all the
 people assignments?.

 Thanks.

 On Tue, Jun 7, 2016 at 5:16 PM, Awanthika Senarath 
 wrote:

> Hello Heshitha,
>
> This looks good.
>
>
> Few things I noticed,
>
> in hteditor2 image, it is better if we can have the table topic
> centered in the box you have put, right now it is top-aligned and the
> button on the other corner is bottom aligned. Can we get both of them in
> the same horizontal line? then we can reduce the height of the box you 
> have
> introduced to display that topic and the button.
>
> Also we can introduce an icon to the addinput button, a plus sign may
> be? the two blue colors in the page heading and the button are different,
> the ApproveLeave tab blue color is not very pleasing. Can we change that
> also to the button color?
>
> The tables with radio button elements consume too much space don't you
> think? we can display those items in a table line half that height. we can
> remove the lines in that box. Is it possible to introduce styling similar
> to something like this in that table?
>
> [image: Inline image 1]
>
> Regards
> Awanthika
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Tue, Jun 7, 2016 at 5:06 PM, Heshitha Hettihewa  > wrote:
>
>> Hi all,
>>
>> As discussed in the last review I have added some bootstrap styles to
>> the Human Task Editor GUI. Further I've replaced some existing UI 
>> elements
>> with bootstrap input types. Please find the Screen shots of the modified
>> GUI editor attached herewith.  Is there any further modifications to be
>> done? or can we continue with this GUI?.
>>
>> Appreciate your input.
>>
>> Thanks.
>> --
>> Heshitha Hettihewa
>> *Software Engineer*
>> Mobile : +94716866386
>> <%2B94%20%280%29%20773%20451194>
>> heshit...@wso2.com
>>
>
>


 --
 Heshitha Hettihewa
 *Software Engineer*
 Mobile : +94716866386
 <%2B94%20%280%29%20773%20451194>
 heshit...@wso2.com

>>>
>>>
>>
>>
>> --
>> Heshitha Hettihewa
>> *Software Engineer*
>> Mobile : +94716866386
>> <%2B94%20%280%29%20773%20451194>
>> heshit...@wso2.com
>>
>
>
>
> --
> Nandika Jayawardana
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM2.0] Issue with selecting scopes for token generation

2016-06-07 Thread Kavitha Subramaniyam
Hi Harsha,

Thanks. I have been created a jira to track this issue[1].

[1] https://wso2.org/jira/browse/APIMANAGER-4985

Regards,
Kavitha

On Wed, Jun 8, 2016 at 9:28 AM, Harsha Kumara  wrote:

> Hi Jo,
>
> I have checked the code. It seems we don't take the scopes when we issue
> the first token generation request. I think we should allow to select
> scopes when first token generation issued.
>
> Thanks,
> Harsha
>
> On Tue, Jun 7, 2016 at 7:22 PM, Kavitha Subramaniyam 
> wrote:
>
>> Hi team,
>>
>> I could observe that scope drop down option is missing in the store [1]
>> when generate access token for the first time but it is available for
>> regenerate token. I have defined a scope with Internal/everyone role and
>> added to relevant method[2].
>>
>> Seems in previous version scope selection was there at token generation.
>> Will this be a new change or UI bug?
>>
>> [1] see attachment scope.jpeg
>> [2] see attachment api_add_scope.jpeg
>>
>> Thanks,
>>
>> --
>> Kavitha.S
>> *Software Engineer -QA*
>> Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
>> kavi...@wso2.com 
>>
>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>



-- 
Kavitha.S
*Software Engineer -QA*
Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
kavi...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS][Tooling] UI Modifications for Human Task Editor

2016-06-07 Thread Heshitha Hettihewa
Hi Dakshika,

Thanks for the suggestion. Sure, I will add that.

Thanks.

On Wed, Jun 8, 2016 at 10:11 AM, Dakshika Jayathilaka 
wrote:

> Hi Heshitha,
>
> Can you try to add bootstrap collapse[1] view instead of jquery-ui
> accordion view.
>
> [1] http://wso2-dev-ux.github.io/theme-wso2/collapse_component.html
>
> Regards,
>
> *Dakshika Jayathilaka*
> PMC Member & Committer of Apache Stratos
> Associate Technical Lead
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Wed, Jun 8, 2016 at 9:43 AM, Nandika Jayawardana 
> wrote:
>
>> Hi Heshitha,
>>
>> It looks much better after the theming.
>>
>> Regards
>> Nandika
>>
>> On Tue, Jun 7, 2016 at 5:52 PM, Heshitha Hettihewa 
>> wrote:
>>
>>> Hi Awanthika,
>>>
>>> Yeah. That can be done. I will add that change too.
>>>
>>> Thanks.
>>>
>>> On Tue, Jun 7, 2016 at 5:50 PM, Awanthika Senarath 
>>> wrote:
>>>
 @Heshitha : not to remove boxes, yes same style in each box, the boxes
 are too big to get just a few information IMO.

 Awanthika Senarath
 Software Engineer, WSO2 Inc.
 Mobile: +94717681791



 On Tue, Jun 7, 2016 at 5:45 PM, Heshitha Hettihewa 
 wrote:

> Hi Awanthika,
>
> Thanks a lot for the suggestions, I will add the mentioned changes.
> And for the last section, you mean adding a table similar to the image in
> every box? or remove the boxes and keep a single table which contain all
> the people assignments?.
>
> Thanks.
>
> On Tue, Jun 7, 2016 at 5:16 PM, Awanthika Senarath  > wrote:
>
>> Hello Heshitha,
>>
>> This looks good.
>>
>>
>> Few things I noticed,
>>
>> in hteditor2 image, it is better if we can have the table topic
>> centered in the box you have put, right now it is top-aligned and the
>> button on the other corner is bottom aligned. Can we get both of them in
>> the same horizontal line? then we can reduce the height of the box you 
>> have
>> introduced to display that topic and the button.
>>
>> Also we can introduce an icon to the addinput button, a plus sign may
>> be? the two blue colors in the page heading and the button are different,
>> the ApproveLeave tab blue color is not very pleasing. Can we change that
>> also to the button color?
>>
>> The tables with radio button elements consume too much space don't
>> you think? we can display those items in a table line half that height. 
>> we
>> can remove the lines in that box. Is it possible to introduce styling
>> similar to something like this in that table?
>>
>> [image: Inline image 1]
>>
>> Regards
>> Awanthika
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> On Tue, Jun 7, 2016 at 5:06 PM, Heshitha Hettihewa <
>> heshit...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> As discussed in the last review I have added some bootstrap styles
>>> to the Human Task Editor GUI. Further I've replaced some existing UI
>>> elements with bootstrap input types. Please find the Screen shots of the
>>> modified GUI editor attached herewith.  Is there any further 
>>> modifications
>>> to be done? or can we continue with this GUI?.
>>>
>>> Appreciate your input.
>>>
>>> Thanks.
>>> --
>>> Heshitha Hettihewa
>>> *Software Engineer*
>>> Mobile : +94716866386
>>> <%2B94%20%280%29%20773%20451194>
>>> heshit...@wso2.com
>>>
>>
>>
>
>
> --
> Heshitha Hettihewa
> *Software Engineer*
> Mobile : +94716866386
> <%2B94%20%280%29%20773%20451194>
> heshit...@wso2.com
>


>>>
>>>
>>> --
>>> Heshitha Hettihewa
>>> *Software Engineer*
>>> Mobile : +94716866386
>>> <%2B94%20%280%29%20773%20451194>
>>> heshit...@wso2.com
>>>
>>
>>
>>
>> --
>> Nandika Jayawardana
>> WSO2 Inc ; http://wso2.com
>> lean.enterprise.middleware
>>
>
>


-- 
Heshitha Hettihewa
*Software Engineer*
Mobile : +94716866386
<%2B94%20%280%29%20773%20451194>
heshit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Request for modified icons for Datamapper Tool

2016-06-07 Thread Awanthika Senarath
Hello,

Can we get $subject for the attached image?

We want the image in the same size colored RGB (71, 68, 68).



Thanks
Awanthika Senarath
Senior Software Engineer, WSO2 Inc.
Mobile: +94717681791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Request for modified icons for Datamapper Tool

2016-06-07 Thread Jerad Rutnam
Hi Awanthika,

Please find the attachment for your request.

Cheers!

On Wed, Jun 8, 2016 at 10:17 AM, Awanthika Senarath 
wrote:

> Hello,
>
> Can we get $subject for the attached image?
>
> We want the image in the same size colored RGB (71, 68, 68).
>
>
>
> Thanks
> Awanthika Senarath
> Senior Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


-- 
*Jerad Rutnam*
*Software Engineer*

WSO2 Inc.
lean | enterprise | middleware
M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Request for modified icons for Datamapper Tool

2016-06-07 Thread Awanthika Senarath
Thanks Jerad.

Regards
Awanthika

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Wed, Jun 8, 2016 at 10:22 AM, Jerad Rutnam  wrote:

> Hi Awanthika,
>
> Please find the attachment for your request.
>
> Cheers!
>
> On Wed, Jun 8, 2016 at 10:17 AM, Awanthika Senarath 
> wrote:
>
>> Hello,
>>
>> Can we get $subject for the attached image?
>>
>> We want the image in the same size colored RGB (71, 68, 68).
>>
>>
>>
>> Thanks
>> Awanthika Senarath
>> Senior Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>
>
> --
> *Jerad Rutnam*
> *Software Engineer*
>
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC2016-Contact Development Team Feature

2016-06-07 Thread Nathiesha Maddage
Hi Jasintha,

I will commit to gitHub more frequently as you suggested, so it is easy to
get the feedback on the code.

Since I had no prior experience in Jira and REST Client, I had a bit
trouble in creating and issue by a REST client. I tried to create a Client
using a couple of external libraries like Apache Http, Jersey and JRJC. But
as I got many dependency issues and troubles in attaching the libraries, I
finally created the method without using any external libraries.
So now the plugin is capable of creating an issue in WSo2 Jira, and I am
currently working on further improving it.

During the last meeting, Kavith mentioned about the P2 API. I could not
look into that during the last two weeks. If there is any reference
materials for that, please be kind enough to send me so that I will start
looking into that part as well.

Lets have a progress meeting during next week.

Thanks and regards

Nathiesha



On Tue, Jun 7, 2016 at 3:48 PM, Jasintha Dasanayake 
wrote:

> HI Nathiesha
>
> I couldn't see any commit[1] during the last couple of week, it's good
> practices to do commit stuff daily basis, because it's easy for us to
> review and provide regular feedbacks.
>
> Shall we have a progress review during the next week ?.
>
> Thanks and Regards
> /Jasintha
>
> [1]-
> https://github.com/nathiesha/org.wso2.developerstudio.eclipse.errorreporter.git
>
> On Sat, May 14, 2016 at 6:12 PM, Nathiesha Maddage <
> nathieshamadd...@gmail.com> wrote:
>
>> Hi all,
>>
>> I formatted and cleaned the code and added the licence header.
>> Regarding the naming of the project, I named the project
>> as org.wso2.developerstudio.eclipse.errorreporter for now. And about the
>> packages, I referred to the developer studio plugins projects you have sent
>> me. However as I am still not familiar with the naming conventions for
>> developer studio plugins I temporarily created a couple of packages to
>> group the Java classes. I hope I can do the proper renaming and packaging
>> later with your support.
>>
>> I created the ErrorInfoCollector class and there all the system
>> information and error related information is fetched. However I couldn't
>> find a method to get the plugin version and I am still working on it. And
>> the error report that I have sent you previously had an attribute called
>> fingerprint and it also contained a set of bundle information. Those two
>> parts I could not understand. So I left them for now.
>> As you suggested, this class can be improved later to
>> collect further information regarding the error.
>>
>> I started with preferences page as well. I created a draft preference
>> page and currently working on improving it.
>>
>> This is the new GitHub link of the project repository. Please refer to
>> this afterwards.
>>
>> Link-
>> https://github.com/nathiesha/org.wso2.developerstudio.eclipse.errorreporter.git
>>
>> Thanks and Regards
>>
>> Nathiesha
>>
>>
>>
>> On Fri, May 13, 2016 at 12:26 PM, Kavith Lokuhewage 
>> wrote:
>>
>>> Hi Nathiesha,
>>>
>>> Please find my inline comments.
>>>
>>> On Wed, May 11, 2016 at 12:10 PM, Nathiesha Maddage <
>>> nathieshamadd...@gmail.com> wrote:
>>>
 Hi all,

 Regarding the preference settings, as I have read, the plugins that are
 started early are listed in preferences-general-startup and shutdown page.
 So the user can deselect the plugin from that list and then it will not be
 started once Eclipse starts. Is this what is expected?

>>>
>>> No. This is not the expectation.
>>>
>>> Or I can add an option for the user to configure the start up settings
 of the error reporting plugin, in a separate preference page, that I am
 going to develop for the Error Reporting plugin settings.

>>>
>>> Yes. This is the expectation.
>>>
>>>
 And regarding the multi status of IStatus, I will look into that and I
 will try to fetch all the previously failed operation information. Here I
 have attached a error report that Eclipse error reporting tool produces.
 Please have a look at the information listed in that report regarding the
 error. As you have mentioned earlier, I will add the previously failed
 operation details if available. Other than previously failed operations and
 the information listed in the attached report , what else need to be added
 to the error report? Or is that information sufficient for the development
 team?

>>>
>>> For now, we will keep our focus on this information and give priority to
>>> them. However, there's always chance for improvements. Later, if time
>>> permits, we may focus on the aspects such as attaching the artifacts which
>>> could have caused the issue (with the permission of user), information
>>> about project hierarchy, active editor, perspective etc. (we should analyse
>>> the needs for these further), etc.
>>>
>>>

 And thank you for the tips about getting the run time details. That
 saved my time. I will try those. And as you have

Re: [Dev] GSoC2016-Contact Development Team Feature

2016-06-07 Thread Nathiesha Maddage
Hi all,

I think what you suggest is a good idea. I am quite familiar with WSO2
Online Support System now, but I am quite new to WSO2-DAS. I went through
the http://wso2.com/products/data-analytics-server/ website to get a basic
idea on what WSO2-DAS is about. I will refer more to get a clear picture on
how it works.


Thanks and regards

Nathiesha

On Tue, Jun 7, 2016 at 7:12 PM, Susinda Perera  wrote:

> Hi All
>
> How about configuring wso2-DAS at the wso2 side to collect and analyse
> error/logs. It is not only reporting to wso2 JIRA, it may be some other
> system so 'reporting to' should be an configurable and pluggable feature.
> If we are publishing to DAS, we have to come up with format for stream
> definition, which may need some literature survey on how other log
> analysers work etc.
>
> Thanks
> Susinda
>
> On Tue, Jun 7, 2016 at 3:48 PM, Jasintha Dasanayake 
> wrote:
>
>> HI Nathiesha
>>
>> I couldn't see any commit[1] during the last couple of week, it's good
>> practices to do commit stuff daily basis, because it's easy for us to
>> review and provide regular feedbacks.
>>
>> Shall we have a progress review during the next week ?.
>>
>> Thanks and Regards
>> /Jasintha
>>
>> [1]-
>> https://github.com/nathiesha/org.wso2.developerstudio.eclipse.errorreporter.git
>>
>> On Sat, May 14, 2016 at 6:12 PM, Nathiesha Maddage <
>> nathieshamadd...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I formatted and cleaned the code and added the licence header.
>>> Regarding the naming of the project, I named the project
>>> as org.wso2.developerstudio.eclipse.errorreporter for now. And about the
>>> packages, I referred to the developer studio plugins projects you have sent
>>> me. However as I am still not familiar with the naming conventions for
>>> developer studio plugins I temporarily created a couple of packages to
>>> group the Java classes. I hope I can do the proper renaming and packaging
>>> later with your support.
>>>
>>> I created the ErrorInfoCollector class and there all the system
>>> information and error related information is fetched. However I couldn't
>>> find a method to get the plugin version and I am still working on it. And
>>> the error report that I have sent you previously had an attribute called
>>> fingerprint and it also contained a set of bundle information. Those two
>>> parts I could not understand. So I left them for now.
>>> As you suggested, this class can be improved later to
>>> collect further information regarding the error.
>>>
>>> I started with preferences page as well. I created a draft preference
>>> page and currently working on improving it.
>>>
>>> This is the new GitHub link of the project repository. Please refer to
>>> this afterwards.
>>>
>>> Link-
>>> https://github.com/nathiesha/org.wso2.developerstudio.eclipse.errorreporter.git
>>>
>>> Thanks and Regards
>>>
>>> Nathiesha
>>>
>>>
>>>
>>> On Fri, May 13, 2016 at 12:26 PM, Kavith Lokuhewage 
>>> wrote:
>>>
 Hi Nathiesha,

 Please find my inline comments.

 On Wed, May 11, 2016 at 12:10 PM, Nathiesha Maddage <
 nathieshamadd...@gmail.com> wrote:

> Hi all,
>
> Regarding the preference settings, as I have read, the plugins that
> are started early are listed in preferences-general-startup and shutdown
> page. So the user can deselect the plugin from that list and then it will
> not be started once Eclipse starts. Is this what is expected?
>

 No. This is not the expectation.

 Or I can add an option for the user to configure the start up settings
> of the error reporting plugin, in a separate preference page, that I am
> going to develop for the Error Reporting plugin settings.
>

 Yes. This is the expectation.


> And regarding the multi status of IStatus, I will look into that and I
> will try to fetch all the previously failed operation information. Here I
> have attached a error report that Eclipse error reporting tool produces.
> Please have a look at the information listed in that report regarding the
> error. As you have mentioned earlier, I will add the previously failed
> operation details if available. Other than previously failed operations 
> and
> the information listed in the attached report , what else need to be added
> to the error report? Or is that information sufficient for the development
> team?
>

 For now, we will keep our focus on this information and give priority
 to them. However, there's always chance for improvements. Later, if time
 permits, we may focus on the aspects such as attaching the artifacts which
 could have caused the issue (with the permission of user), information
 about project hierarchy, active editor, perspective etc. (we should analyse
 the needs for these further), etc.


>
> And thank you for the tips about getting the run time details. That
> saved my time. I will try thos

Re: [Dev] Setting JMS Version gloably

2016-06-07 Thread Vijitha Ekanayake
Hi Manu/Dilshani,

According to the current implementation It seems, we haven't done any
changes in JMSTransportListener side. JMS 2.0 listener implementation is
supported as JMS inbound endpoint and sender implementation support on JMS
transport sender. You can refer mail thread[1] for more details.

[1]. [Architecture] [GSoC] JMS 2.0 support for WSO2 ESB JMS Inbound
Endpoint and JMS Transport

Thanks.

On Wed, Jun 8, 2016 at 8:58 AM, Dilshani Subasinghe 
wrote:

> Hi Manuranga,
>
> According to documentation, Yes we can set that. But I notice that, it
> doesn't validate through the value given globally. For example, even I set
> up JMS Version as 2.0 globally, it doesn't take that value.
>
> Within the source (ServiceTaskManager.java) it seem to hard coded.
>
>
> */** Should this service use JMS 1.1 ? (when false, defaults to 1.0.2b)
> */private boolean jmsSpec11 = true;*
>
> @Vijitha - Hope you may explain the actual scenario ?
>
> Regards,
> Dilshani
>
>
> On Wed, Jun 8, 2016 at 1:25 AM, Manuranga Perera  wrote:
>
>> Hi Ravindra/Dilshani,
>> Can we set transport.jms.JMSSpecVersion globally (ie: via axis2.xml)?
>>
>> --
>> With regards,
>> *Manu*ranga Perera.
>>
>> phone : 071 7 70 20 50
>> mail : m...@wso2.com
>>
>
>
>
> --
> Best Regards,
>
> Dilshani Subasinghe
> Software Engineer - QA
> WSO2, Inc.;http://wso2.com/
> 
> lean.enterprise.middleware
> Mobile: +94773375185
> Blog: dilshanilive.blogspot.com
>



-- 
Vijitha Ekanayake
Software Engineer*, *WSO2, Inc.; http://wso2.com/
Mobile : +94 777 24 73 39 | +94 718 74 44 08
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Setting JMS Version gloably

2016-06-07 Thread Ravindra Ranwala
Hi Manu,

Vijitha's comment is valid. As per the offline discussion I had with
ErandaR and PrabathAR, JMS 2.0 shared subscription feature is not
implemented for JMS Proxy services (in axis2 transport listener side) since
it will be deprecated in future. Therefore it is available for JMS Inbound
Endpoints only. If you have lots of JMS proxies we may need to migrate them
into JMS Inbound Endpoints.


Thanks & Regards,

On Wed, Jun 8, 2016 at 11:00 AM, Vijitha Ekanayake 
wrote:

> Hi Manu/Dilshani,
>
> According to the current implementation It seems, we haven't done any
> changes in JMSTransportListener side. JMS 2.0 listener implementation is
> supported as JMS inbound endpoint and sender implementation support on JMS
> transport sender. You can refer mail thread[1] for more details.
>
> [1]. [Architecture] [GSoC] JMS 2.0 support for WSO2 ESB JMS Inbound
> Endpoint and JMS Transport
>
> Thanks.
>
> On Wed, Jun 8, 2016 at 8:58 AM, Dilshani Subasinghe 
> wrote:
>
>> Hi Manuranga,
>>
>> According to documentation, Yes we can set that. But I notice that, it
>> doesn't validate through the value given globally. For example, even I set
>> up JMS Version as 2.0 globally, it doesn't take that value.
>>
>> Within the source (ServiceTaskManager.java) it seem to hard coded.
>>
>>
>> */** Should this service use JMS 1.1 ? (when false, defaults to 1.0.2b)
>> */private boolean jmsSpec11 = true;*
>>
>> @Vijitha - Hope you may explain the actual scenario ?
>>
>> Regards,
>> Dilshani
>>
>>
>> On Wed, Jun 8, 2016 at 1:25 AM, Manuranga Perera  wrote:
>>
>>> Hi Ravindra/Dilshani,
>>> Can we set transport.jms.JMSSpecVersion globally (ie: via axis2.xml)?
>>>
>>> --
>>> With regards,
>>> *Manu*ranga Perera.
>>>
>>> phone : 071 7 70 20 50
>>> mail : m...@wso2.com
>>>
>>
>>
>>
>> --
>> Best Regards,
>>
>> Dilshani Subasinghe
>> Software Engineer - QA
>> WSO2, Inc.;http://wso2.com/
>> 
>> lean.enterprise.middleware
>> Mobile: +94773375185
>> Blog: dilshanilive.blogspot.com
>>
>
>
>
> --
> Vijitha Ekanayake
> Software Engineer*, *WSO2, Inc.; http://wso2.com/
> Mobile : +94 777 24 73 39 | +94 718 74 44 08
> lean.enterprise.middleware
>



-- 
Ravindra Ranwala
Software Engineer
WSO2, Inc: http://wso2.com

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


Re: [Dev] Removing only a jar file inside a patch directory will not reflected on patch applying process

2016-06-07 Thread Niranjan Karunanandham
Hi Nuwan,

As per the logic in [1], when the jar is removed, the patches are not
updated. But as mentioned by you, as a solution we can revert the jar by
removing the patch directory and restarting the server.

[1] -
https://github.com/wso2/carbon-kernel/blob/v4.4.5/core/org.wso2.carbon.server/src/main/java/org/wso2/carbon/server/extensions/PatchInstaller.java

Regards,
Nira

On Tue, Jun 7, 2016 at 7:22 PM, Nuwan Wimalasekara  wrote:

> Hi,
>
> Seems this is a bug. reported a JIRA[1] to track the issue further.
>
> [1] https://wso2.org/jira/browse/CARBON-15939
>
> Thanks,
> Nuwanw
>
> On Wed, Jun 1, 2016 at 12:21 PM, Nuwan Wimalasekara 
> wrote:
>
>> Hi Manoj,
>>
>> Yes. Even if the jar is removed, plugin directory has the same md5 value
>> of removed jar. means It is not reverted.
>>
>> To revert the jar, we have to remove the patch directory and restart the
>> server.
>>
>> Thanks,
>> Nuwanw
>>
>> On Wed, Jun 1, 2016 at 12:03 PM, Manoj Kumara  wrote:
>>
>>> During patch application it validate the md5sum's of the jars as well.
>>> Can you please verify the removed jar has a different md5 value from what's
>>> there in the server ?
>>>
>>> *Manoj Kumara*
>>> WSO2 Inc. *| **lean. enterprise. middleware.*
>>> *Mobile:* +94 713 448188
>>>
>>> On Wed, Jun 1, 2016 at 11:53 AM, Nuwan Wimalasekara 
>>> wrote:
>>>
 Hi Carbon Team,

 I have observed $subject when I try to remove a jar file from patch
 directory. I know removing a jar file from patch directory is not a good
 practise when applying patches. But it may happen and then the behaviour is
 confusing. However if we update the a jar file inside a patch , it will
 reflect and update the plugins directory and works as expected.

 To reproduce the issue, we can apply a patch having two jar file and
 restart the server. Then it will apply the patch. after that, remove one of
 jar file in the patch directory and restart the server. The it will not
 detect as a patch change and will not revert the removed jar from 
 patch.

 Is this a limitation in patch applying process or bug?

 Thanks,
 Nuwanw

 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620




>>>
>>
>>
>> --
>> Nuwan Wimalasekara
>> Senior Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> phone: +94 71 668 4620
>>
>>
>>
>>
>
>
> --
> Nuwan Wimalasekara
> Associate Technical Lead
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 


*Niranjan Karunanandham*
Associate Technical Lead - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] RESTful Fine Grained Authorization-as-a-Service (AZaaS)

2016-06-07 Thread Pushpalanka Jayawardhana
On Tue, Jun 7, 2016 at 11:01 AM, Manujith Pallewatte 
wrote:

> Hi all,
>
> Code is almost all refracted (apart from the part where authenticators are
> hard coded) and it' is available at [1]
> I have attached a readme so everyone can help with testing it. But there's
> still an issue remaining to debug with the *entitled-attribs *service
> call, that came up in preliminary testing by Omindu.
>
> Thank You Omindu, I will use the formatting configs and format the code
> asap. For now i added a gitignore as in the sample you sent, but I left 
> *target
> *directory intact so that i can share the war file through the repo.
>
> Also for the PR, to which repo should I send the PR for? Or shall I wait
> for further testing of the code so that we can minimize any bugs?
>
If code refactoring, formatting, cleanup are done, you have run Findbug
plugin(This is a plugin that can integrate to IDE. If you already haven't
try it.) and fixed any issues reported against code and functionality is
working, we are OK to review the code. You can further test the code and
fix the bugs while integrating any review comments we put on the PR.

"Please share the code progress via Github, once you are satisfied with
refactoring.
Please fork [1] to your private repo, and at location [2], you may have a
new component named 'org.wso2.carbon.identity.entitlement.endpoint' where
the implementation can reside.

[1] - https://github.com/wso2/carbon-identity-framework
[2] -
https://github.com/wso2/carbon-identity-framework/tree/master/components/entitlement
"

>
> [1] https://github.com/ManZzup/identity-entitlement-endpoint
>
> Thank You,
> Best Regards
> Manujith
>
> On Tue, Jun 7, 2016 at 10:30 AM, Omindu Rathnaweera 
> wrote:
>
>> Adding a .gitignore to the repo will be the easiest way to keep the
>> unwanted files away from the repo. See [1].
>>
>> [1] -
>> https://github.com/wso2/carbon-identity-framework/blob/master/.gitignore
>>
>> Regards,
>> Omindu
>>
>> On Tue, Jun 7, 2016 at 10:26 AM, Pushpalanka Jayawardhana > > wrote:
>>
>>> Hi Manujith,
>>>
>>> The IDE specific files(.iml) or code can be removed from the repository.
>>> Once the code refactoring is done and code is cleaned please feel free
>>> to send the PR. Then we can easily comment on the code.
>>>
>>> Thanks,
>>> Pushpalanka
>>>
>>>
>>> On Tue, Jun 7, 2016 at 10:12 AM, Omindu Rathnaweera 
>>> wrote:
>>>
 Hi Manujith,

 Better if you can clean up the unnecessary code and do some code
 refactoring. We can do another round of testing once you fix the issues I
 have mention. You can use the attached Idea Code Formatting Template [1].

 To apply the template, follow the steps below.

 1. In IDEA settings, goto Editor -> Code Style.
 2. Click 'Manage' then 'Save As...' an existing scheme with the name
 'wso2-codestyle' and Close the IDE.
 3. Goto ~/.IntelliJIdea16/config/codestyles directory and replace the
 'wso2-codestyle.xml' file with the attached one.

 [1] -
 https://drive.google.com/file/d/0BzRDbfbIaYjCSzhGRUR1aGdlTXM/view?usp=sharing

 Regards,
 Omindu.


 On Mon, Jun 6, 2016 at 8:29 AM, Manujith Pallewatte <
 manujith...@gmail.com> wrote:

> Hi all,
>
> After a bit of refactoring I added the code to [1]. Please feel free
> to check the source and give your ideas to improve, specially on the
> service related code. All the service related code is available at [2]
>
> Also Omindu tested the initial war file and reported several issues
> with it, hoping to debug those within the week
>
>
> [1] https://github.com/ManZzup/identity-entitlement-endpoint
> [2]
> https://github.com/ManZzup/identity-entitlement-endpoint/blob/master/src/main/java/org/wso2/carbon/identity/entitlement/provider/resources/DecisionResource.java
>
> On Wed, Jun 1, 2016 at 10:21 AM, Pushpalanka Jayawardhana <
> la...@wso2.com> wrote:
>
>> Hi Manujith,
>>
>> Please share the code progress via Github, once you are satisfied
>> with refactoring.
>> Please fork [1] to your private repo, and at location [2], you may
>> have a new component named 
>> 'org.wso2.carbon.identity.entitlement.endpoint'
>> where the implementation can reside.
>>
>> [1] - https://github.com/wso2/carbon-identity-framework
>> [2] -
>> https://github.com/wso2/carbon-identity-framework/tree/master/components/entitlement
>>
>> Thanks,
>> Pushpalanka
>>
>> On Wed, Jun 1, 2016 at 10:00 AM, Manujith Pallewatte <
>> manujith...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> So I have roughly finished up the following 5 services in REST
>>> getDecision
>>> getDecisionByAttibutes
>>> getBooleanDecision
>>> getEntitledAttributes
>>> getAllEntitlements
>>>
>>> The service is packed to a war file deployable to IS 5.2.0
>>> It's still in primary testing, so once it's confir

[Dev] [PC] Adding greg Permission app extension as a feature to carbon store

2016-06-07 Thread Waruna Jayaweera
Hi,
We are working on adding process level permission support for process
center. Similar feature has been done as greg-permissions app extension in
product greg.
We can use same app extension but we had to copy both greg-permissions
and greg-publisher-defaults app extensions to product pc repo . Can we add
this as a feature to carbon store?

Thanks,
Waruna


-- 
Regards,

Waruna Lakshitha Jayaweera
Software Engineer
WSO2 Inc; http://wso2.com
phone: +94713255198
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Option to ship MQTT client lib with ESB

2016-06-07 Thread Pamod Sylvester
Hi All,

Could we consider the $Subject, (since the library is interoperable with
all standard MQTT brokers).

Currently it requires client lib to be separately downloaded when
integrating with a broker [1]

[1]
https://docs.wso2.com/display/ESB490/Sample+906%3A+Inbound+Endpoint+MQTT+Protocol+Sample

Thanks,
Pamod

-- 
*Pamod Sylvester *

*WSO2 Inc.; http://wso2.com *
cell: +94 77 7779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Messages on Dockerfiles build using default puppet provisioning

2016-06-07 Thread Abhishek Tiwari
Hi All,

I recently built wso2mb docker image using puppet provisioning (default).
The build was successful and I was able to launch the product, but I saw
the following messages [1], which seems to indicate that yaml files from
almost all the products were accessed.

I haven't gone through the implementation yet, but I am curious as to why
we are accessing yaml files from all the products while building a specific
product.

Thanks
Abhishek


[1].
172.17.0.2 - - [08/Jun/2016 11:41:08] "GET
/hieradata/dev/wso2/wso2dss/3.5.0/default/worker.yaml HTTP/1.1" 200 -
2016-06-08 06:11:08 URL:
http://172.17.0.1:8000/hieradata/dev/wso2/wso2dss/3.5.0/default/worker.yaml
[1466/1466] -> "hieradata/dev/wso2/wso2dss/3.5.0/default/worker.yaml" [2]
No data received.
172.17.0.2 - - [08/Jun/2016 11:41:09] "GET
/hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/default.yaml HTTP/1.1" 200 -
2016-06-08 06:11:09 URL:
http://172.17.0.1:8000/hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/default.yaml
[6804/6804] -> "hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/default.yaml"
[2]
No data received.
172.17.0.2 - - [08/Jun/2016 11:41:10] "GET
/hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/manager.yaml HTTP/1.1" 200 -
2016-06-08 06:11:10 URL:
http://172.17.0.1:8000/hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/manager.yaml
[1497/1497] -> "hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/manager.yaml"
[2]
No data received.
172.17.0.2 - - [08/Jun/2016 11:41:11] "GET
/hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/worker.yaml HTTP/1.1" 200 -
2016-06-08 06:11:11 URL:
http://172.17.0.1:8000/hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/worker.yaml
[1500/1500] -> "hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/worker.yaml" [2]
No data received.
172.17.0.2 - - [08/Jun/2016 11:41:12] "GET
/hieradata/dev/wso2/wso2es/2.0.0/default/default.yaml HTTP/1.1" 200 -
2016-06-08 06:11:12 URL:
http://172.17.0.1:8000/hieradata/dev/wso2/wso2es/2.0.0/default/default.yaml
[10013/10013] -> "hieradata/dev/wso2/wso2es/2.0.0/default/default.yaml" [2]
No data received.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Nullable Support for JSON schema - Visual Data Mapper Editor

2016-06-07 Thread Sohani Weerasinghe
Hi All,

As an improvement to nullable support, the representation has been
implemented for xsi:nil as well and if the payload contains xsi:nil as an
attribute then the generated schema will include nullable="true" as shown
below

*Input:*

http://www.w3.org/TR/html4/"; xmlns:xsi="
http://www.w3.org/TR/html4/";>
sample
011265565501
011265565501


*Schema*:

{
  "$schema" : "http://json-schema.org/draft-04/schema#";,
  "nullable" : "true",
  "attributes" : {
"xsi:nil" : {
  "nullable" : "false",
  "id" : "http://wso2jsonschema.org/xsi:nil";,
  "type" : "boolean"
}
  },
  "id" : "http://wso2jsonschema.org";,
  "title" : "h:person",
  "type" : "object",
  "properties" : {
"firstName" : {
  "nullable" : "true",
  "attributes" : {
"xsi:nil" : {
  "nullable" : "false",
  "id" : "http://wso2jsonschema.org/xsi:nil";,
  "type" : "boolean"
}
  },
  "id" : "http://wso2jsonschema.org/firstName";,
  "type" : "object",
  "value" : {
"type" : "string"
  },
  "properties" : { }
},
"phone" : {
  "nullable" : "true",
  "id" : "http://wso2jsonschema.org/phone";,
  "type" : "array",
  "items" : [ {
"attributes" : {
  "xsi:nil" : {
"nullable" : "false",
"id" : "http://wso2jsonschema.org/phone/0/xsi:nil";,
"type" : "boolean"
  },
  "primary" : {
"nullable" : "false",
"id" : "http://wso2jsonschema.org/phone/0/primary";,
"type" : "boolean"
  }
},
"id" : "http://wso2jsonschema.org/phone/0";,
"type" : "object",
"value" : {
  "type" : "number"
},
"properties" : {
  "ext" : {
"nullable" : "true",
"attributes" : {
  "xsi:nil" : {
"nullable" : "false",
"id" : "http://wso2jsonschema.org/phone/0/xsi:nil";,
"type" : "boolean"
  }
},
"id" : "http://wso2jsonschema.org/phone/0/ext";,
"type" : "object",
"value" : {
  "type" : "number"
},
"properties" : { }
  }
}
  } ]
}
  },
  "namespaces" : [ {
"prefix" : "xsi",
"url" : ""
  }, {
"prefix" : "h",
"url" : "http://www.w3.org/TR/html4/";
  } ]
}

Thanks,
Sohani


Sohani Weerasinghe
Senior Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Tue, Jun 7, 2016 at 11:30 AM, Sohani Weerasinghe  wrote:

>
>
> Sohani Weerasinghe
> Senior Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Tue, Jun 7, 2016 at 10:45 AM, Malaka Silva  wrote:
>
>> Hi Sohani,
>>
>> I guess we are dealing with optional input/output here. So in that case
>> are we showing those in a different color or anyway to distinguish?
>>
> @Malaka: Yes, we are going to use a different icon for those nodes.
> eg: If it's an element, then the icon will be something created based on
> the previous icon used for the element, so that it will be displayed as an
> element with nullable
>
>>
>> On execution side this needs to be handled from data mapper mediator.
>>
>> On Tue, Jun 7, 2016 at 9:21 AM, Sohani Weerasinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> We are in a process of implementing the $subject and please find the
>>> implementation details.
>>>
>>> *Input*:
>>>
>>> http://www.w3.org/TR/html4/";>
>>> sample
>>> 011265565501
>>> 011265565501
>>> 
>>>
>>> After loading the above payload, the generated schema will be as follows
>>>
>>> {
>>>   "$schema" : "http://json-schema.org/draft-04/schema#";,
>>>   *"nullable" : "false"*,
>>>   "id" : "http://wso2jsonschema.org";,
>>>   "title" : "h:person",
>>>   "type" : "object",
>>>   "properties" : {
>>> "firstName" : {
>>>   *"nullable" : "false",*
>>>   "id" : "http://wso2jsonschema.org/firstName";,
>>>   "type" : "string"
>>> },
>>> *"nullable" : "false"*,
>>> "phone" : {
>>>   "id" : "http://wso2jsonschema.org/phone";,
>>>   "type" : "array",
>>>   "items" : [ {
>>> "attributes" : {
>>>   "primary" : {
>>>* "nullable" : "false"*,
>>> "id" : "http://wso2jsonschema.org/phone/0/primary";,
>>> "type" : "boolean"
>>>   }
>>> },
>>> "id" : "http://wso2jsonschema.org/phone/0";,
>>> "type" : "object",
>>> "value" : {
>>>   "type" : "number"
>>> },
>>> "properties" : {
>>>   "ext" : {
>>>* "nullable" : "false",*
>>> "id" : "http://wso2jsonschema.org/phone/0/ext";,
>>> "type" : "number"
>>>   }
>>> }
>>>   } ]
>>> }
>>>   }

[Dev] Navigation buttons not visible in Custom Time picker in Log Analyzer

2016-06-07 Thread Sajith Perera
Hi All,

We have faced issue while embedding date range picker gadget in to the
API-M admin dashboard jira [1] and [2]. Since this is major concern from
the user's point of view we need to have fixes before API-M beta release.

Issue is  date range picker gadget used bootstrap-min.css and API-M admin
dashboard hasn't got this css and also its not compatible with admin
dashboard.

As a solution I would like to suggest to adding styling and fonts files
inside the loganalyzer template.
as in this PR [3] and it is not a proper fix, and need to be looked
properly later.

As per the offline chat I had with Jerad, the better fix is to use wso2
fonts rather than use external font icons.

[1] - https://wso2.org/jira/browse/ANLYAPIM-54
[2] - https://wso2.org/jira/browse/ANLYAPIM-53
[3] - https://github.com/wso2/carbon-apimgt/pull/2488

WDYT?

Thanks,
SajithD
-- 
Sajith Dimal
Software Engineer
Mobile : +94783101496
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Navigation buttons not visible in Custom Time picker in Log Analyzer

2016-06-07 Thread Sajith Perera
+Jerad and Dunith

On Wed, Jun 8, 2016 at 12:11 PM, Sajith Perera  wrote:

>
> Hi All,
>
> We have faced issue while embedding date range picker gadget in to the
> API-M admin dashboard jira [1] and [2]. Since this is major concern from
> the user's point of view we need to have fixes before API-M beta release.
>
> Issue is  date range picker gadget used bootstrap-min.css and API-M admin
> dashboard hasn't got this css and also its not compatible with admin
> dashboard.
>
> As a solution I would like to suggest to adding styling and fonts files
> inside the loganalyzer template.
> as in this PR [3] and it is not a proper fix, and need to be looked
> properly later.
>
> As per the offline chat I had with Jerad, the better fix is to use wso2
> fonts rather than use external font icons.
>
> [1] - https://wso2.org/jira/browse/ANLYAPIM-54
> [2] - https://wso2.org/jira/browse/ANLYAPIM-53
> [3] - https://github.com/wso2/carbon-apimgt/pull/2488
>
> WDYT?
>
> Thanks,
> SajithD
> --
> Sajith Dimal
> Software Engineer
> Mobile : +94783101496
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>



-- 
Sajith Dimal
Software Engineer
Mobile : +94783101496
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Navigation buttons not visible in Custom Time picker in Log Analyzer

2016-06-07 Thread Bhathiya Jayasekara
Is this a blocker? If not, I prefer to go with as it is, because we have
already built Beta candidate pack and completed most of the test scenarios.
If we have to do another build we have to do all the tests again, which
takes a lot of time.

Thanks,
Bhathiya

On Wed, Jun 8, 2016 at 12:12 PM, Sajith Perera  wrote:

> +Jerad and Dunith
>
> On Wed, Jun 8, 2016 at 12:11 PM, Sajith Perera  wrote:
>
>>
>> Hi All,
>>
>> We have faced issue while embedding date range picker gadget in to the
>> API-M admin dashboard jira [1] and [2]. Since this is major concern from
>> the user's point of view we need to have fixes before API-M beta release.
>>
>> Issue is  date range picker gadget used bootstrap-min.css and API-M admin
>> dashboard hasn't got this css and also its not compatible with admin
>> dashboard.
>>
>> As a solution I would like to suggest to adding styling and fonts files
>> inside the loganalyzer template.
>> as in this PR [3] and it is not a proper fix, and need to be looked
>> properly later.
>>
>> As per the offline chat I had with Jerad, the better fix is to use wso2
>> fonts rather than use external font icons.
>>
>> [1] - https://wso2.org/jira/browse/ANLYAPIM-54
>> [2] - https://wso2.org/jira/browse/ANLYAPIM-53
>> [3] - https://github.com/wso2/carbon-apimgt/pull/2488
>>
>> WDYT?
>>
>> Thanks,
>> SajithD
>> --
>> Sajith Dimal
>> Software Engineer
>> Mobile : +94783101496
>> WSO2 Inc. | http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> Sajith Dimal
> Software Engineer
> Mobile : +94783101496
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>



-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.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.6 RC2

2016-06-07 Thread Anupama Pathirage
Hi Kalpa,

Thanks for the update.  Please update us with the solution for CSRF
security issue. We get the same issue for  the DSS try it as well.

[2016-06-08 11:55:28,396]  WARN {org.owasp.csrfguard.log.JavaLogger} -
potential cross-site request forgery (CSRF) attack thwarted
(user:, ip:10.100.7.118, method:POST,
uri:/carbon/admin/jsp/WSRequestXSSproxy_ajaxprocessor.jsp, error:required
token is missing from the request)

Private proxy protocol will be attempted as cross-domain browser
restrictions might be enforced for this endpoint.

http://tryit.carbon.wso2.org";>
   Error connecting to the Tryit ajax proxy


Regards,

On Wed, Jun 8, 2016 at 8:45 AM, Kasun Bandara  wrote:

> Hi All,
>
> We have done the fix for L1 reported in [1] yesterday.
>
> Thanks,
> Kasun.
>
> [1] https://wso2.org/jira/browse/IDENTITY-4656
>
> On Wed, Jun 8, 2016 at 7:00 AM, Kalpa Welivitigoda 
> wrote:
>
>> Hi Anupama,
>>
>> On Tue, Jun 7, 2016 at 8:45 PM, Anupama Pathirage 
>> wrote:
>>
>>> Hi Kalpa,
>>>
>>> Checked the suggested approaches and those two issues were resolved
>>> after applying both changes. We will further test the service with the
>>> Carbon RC2.
>>>
>>> On Tue, Jun 7, 2016 at 6:15 PM, Kalpa Welivitigoda 
>>> wrote:
>>>
 Hi Anupama,

 On Tue, Jun 7, 2016 at 5:50 PM, Anupama Pathirage 
 wrote:

> Hi,
>
> We got the following issues when testing WSO2 DSS with the Kernel RC2
> Release.
>
> *1) *Any action on management console gives the following error. It
> seems to be related with the tomcat upgrade and appreciate your input on
> this.
>
> [2016-06-07 17:21:16,905] ERROR
> {org.apache.coyote.AbstractProtocol$AbstractConnectionHandler} -  Error
> reading request, ignored
> java.lang.NoSuchMethodError: org.apache.coyote.Request.getBytesRead()I
> at
> org.apache.coyote.RequestInfo.updateCounters(RequestInfo.java:143)
> at org.apache.coyote.Request.updateCounters(Request.java:533)
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1140)
> at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1749)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1708)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:745)
>

 Yes, it is due to the tomcat upgrade in kernel, relevant fixes for
 carbon-deployment are already there in 4.6.2-SNAPSHOT. We have to do a
 deployment release once we release 4.4.6-SNAPSHOT. For the moment, for
 testing purpose, is it possible you try with 4.6.2-SNAPSHOT?

>>>
>>> Could you please do the needful to release the carbon-deployment 4.6.2
>>> as DSS 3.5.1 release will be on hold until it is done.
>>>
>>
>> Yes, we will be doing component released once we are done with kernel
>> 4.4.6.
>>
>>
>>>
>>>


>
> *2) *DBS file uploads gives the following error which returns Error
> 403 - Forbidden
>
> [2016-06-07 17:21:16,904]  WARN {org.owasp.csrfguard.log.JavaLogger}
> -  potential cross-site request forgery (CSRF) attack thwarted
> (user:, ip:10.100.7.118, method:POST,
> uri:/carbon/admin/jsp/WSRequestXSSproxy_ajaxprocessor.jsp, error:required
> token is missing from the request)
>
>
 For this would you please try with adding the following line to
 repository/conf/security/Owasp.CsrfGuard.Carbon.properties,

 org.owasp.csrfguard.unprotected.FileUpload=%servletContext%/fileupload/*

>>>
>>> Is excluding these patterns from CSRF protection recommended ?
>>>
>>>
>> That we need to discuss with security experts and decide, I just wanted
>> to verify that this is an option to solve the issue.
>>
>>
>>> Regards,
>>> Anupama
>>>



> Regards,
>
> On Tue, Jun 7, 2016 at 4:46 PM, KasunG Gajasinghe 
> wrote:
>
>>
>> Others, please continue to testing the pack and report all the issues
>> so we can check and fix.
>>
>> On Tue, Jun 7, 2016 at 2:31 PM, Kasun Bandara 
>> wrote:
>>
>>> Hi Niranjan,
>>>
>>> Created [1] to track the equivalent Carbon JIRA.
>>>
>>> [1] https://wso2.org/jira/browse/CARBON-15938
>>>
>>> Thanks,
>>> Kasun.
>>>
>>> On Tue, Jun 7, 2016 at 2:23 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi KasunB,

 Please create an equivalent JIRA in Kernel in-order to track this.

 Regards,
 Nira

>>

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.6 RC2

2016-06-07 Thread Kalpa Welivitigoda
[+Ayoma, Dulanja]


On Wed, Jun 8, 2016 at 12:17 PM, Anupama Pathirage  wrote:

> Hi Kalpa,
>
> Thanks for the update.  Please update us with the solution for CSRF
> security issue. We get the same issue for  the DSS try it as well.
>
> [2016-06-08 11:55:28,396]  WARN {org.owasp.csrfguard.log.JavaLogger} -
> potential cross-site request forgery (CSRF) attack thwarted
> (user:, ip:10.100.7.118, method:POST,
> uri:/carbon/admin/jsp/WSRequestXSSproxy_ajaxprocessor.jsp, error:required
> token is missing from the request)
>
> Private proxy protocol will be attempted as cross-domain browser
> restrictions might be enforced for this endpoint.
>
> http://tryit.carbon.wso2.org";>
>Error connecting to the Tryit ajax proxy
> 
>
> Regards,
>
> On Wed, Jun 8, 2016 at 8:45 AM, Kasun Bandara  wrote:
>
>> Hi All,
>>
>> We have done the fix for L1 reported in [1] yesterday.
>>
>> Thanks,
>> Kasun.
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-4656
>>
>> On Wed, Jun 8, 2016 at 7:00 AM, Kalpa Welivitigoda 
>> wrote:
>>
>>> Hi Anupama,
>>>
>>> On Tue, Jun 7, 2016 at 8:45 PM, Anupama Pathirage 
>>> wrote:
>>>
 Hi Kalpa,

 Checked the suggested approaches and those two issues were resolved
 after applying both changes. We will further test the service with the
 Carbon RC2.

 On Tue, Jun 7, 2016 at 6:15 PM, Kalpa Welivitigoda 
 wrote:

> Hi Anupama,
>
> On Tue, Jun 7, 2016 at 5:50 PM, Anupama Pathirage 
> wrote:
>
>> Hi,
>>
>> We got the following issues when testing WSO2 DSS with the Kernel RC2
>> Release.
>>
>> *1) *Any action on management console gives the following error. It
>> seems to be related with the tomcat upgrade and appreciate your input on
>> this.
>>
>> [2016-06-07 17:21:16,905] ERROR
>> {org.apache.coyote.AbstractProtocol$AbstractConnectionHandler} -  Error
>> reading request, ignored
>> java.lang.NoSuchMethodError: org.apache.coyote.Request.getBytesRead()I
>> at
>> org.apache.coyote.RequestInfo.updateCounters(RequestInfo.java:143)
>> at org.apache.coyote.Request.updateCounters(Request.java:533)
>> at
>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1140)
>> at
>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
>> at
>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1749)
>> at
>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1708)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at
>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>> at java.lang.Thread.run(Thread.java:745)
>>
>
> Yes, it is due to the tomcat upgrade in kernel, relevant fixes for
> carbon-deployment are already there in 4.6.2-SNAPSHOT. We have to do a
> deployment release once we release 4.4.6-SNAPSHOT. For the moment, for
> testing purpose, is it possible you try with 4.6.2-SNAPSHOT?
>

 Could you please do the needful to release the carbon-deployment 4.6.2
 as DSS 3.5.1 release will be on hold until it is done.

>>>
>>> Yes, we will be doing component released once we are done with kernel
>>> 4.4.6.
>>>
>>>


>
>
>>
>> *2) *DBS file uploads gives the following error which returns Error
>> 403 - Forbidden
>>
>> [2016-06-07 17:21:16,904]  WARN {org.owasp.csrfguard.log.JavaLogger}
>> -  potential cross-site request forgery (CSRF) attack thwarted
>> (user:, ip:10.100.7.118, method:POST,
>> uri:/carbon/admin/jsp/WSRequestXSSproxy_ajaxprocessor.jsp, error:required
>> token is missing from the request)
>>
>>
> For this would you please try with adding the following line to
> repository/conf/security/Owasp.CsrfGuard.Carbon.properties,
>
>
> org.owasp.csrfguard.unprotected.FileUpload=%servletContext%/fileupload/*
>

 Is excluding these patterns from CSRF protection recommended ?


>>> That we need to discuss with security experts and decide, I just wanted
>>> to verify that this is an option to solve the issue.
>>>
>>>
 Regards,
 Anupama

>
>
>
>> Regards,
>>
>> On Tue, Jun 7, 2016 at 4:46 PM, KasunG Gajasinghe 
>> wrote:
>>
>>>
>>> Others, please continue to testing the pack and report all the
>>> issues so we can check and fix.
>>>
>>> On Tue, Jun 7, 2016 at 2:31 PM, Kasun Bandara 
>>> wrote:
>>>
 Hi Niranjan,

 Created [1] to track the equivalent Carbon JIRA.

 [1] https://wso2.org/jira/browse/CARBON-15938

 Thanks,
 Kasun.


Re: [Dev] Navigation buttons not visible in Custom Time picker in Log Analyzer

2016-06-07 Thread Sajith Perera
No, it's not a blocking issue . Please merge it if new release is planned.

Thanks,
SajithD

On Wed, Jun 8, 2016 at 12:17 PM, Bhathiya Jayasekara 
wrote:

> Is this a blocker? If not, I prefer to go with as it is, because we have
> already built Beta candidate pack and completed most of the test scenarios.
> If we have to do another build we have to do all the tests again, which
> takes a lot of time.
>
> Thanks,
> Bhathiya
>
> On Wed, Jun 8, 2016 at 12:12 PM, Sajith Perera  wrote:
>
>> +Jerad and Dunith
>>
>> On Wed, Jun 8, 2016 at 12:11 PM, Sajith Perera  wrote:
>>
>>>
>>> Hi All,
>>>
>>> We have faced issue while embedding date range picker gadget in to the
>>> API-M admin dashboard jira [1] and [2]. Since this is major concern from
>>> the user's point of view we need to have fixes before API-M beta release.
>>>
>>> Issue is  date range picker gadget used bootstrap-min.css and API-M
>>> admin dashboard hasn't got this css and also its not compatible with admin
>>> dashboard.
>>>
>>> As a solution I would like to suggest to adding styling and fonts files
>>> inside the loganalyzer template.
>>> as in this PR [3] and it is not a proper fix, and need to be looked
>>> properly later.
>>>
>>> As per the offline chat I had with Jerad, the better fix is to use wso2
>>> fonts rather than use external font icons.
>>>
>>> [1] - https://wso2.org/jira/browse/ANLYAPIM-54
>>> [2] - https://wso2.org/jira/browse/ANLYAPIM-53
>>> [3] - https://github.com/wso2/carbon-apimgt/pull/2488
>>>
>>> WDYT?
>>>
>>> Thanks,
>>> SajithD
>>> --
>>> Sajith Dimal
>>> Software Engineer
>>> Mobile : +94783101496
>>> WSO2 Inc. | http://wso2.com
>>> lean.enterprise.middleware
>>>
>>
>>
>>
>> --
>> Sajith Dimal
>> Software Engineer
>> Mobile : +94783101496
>> WSO2 Inc. | http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> *Bhathiya Jayasekara*
> *Senior Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>



-- 
Sajith Dimal
Software Engineer
Mobile : +94783101496
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Option to ship MQTT client lib with ESB

2016-06-07 Thread Ramith Jayasinghe
+1. that's a good idea. BTW, how are we going to handle version upgrades
(for client lib) ?

On Wed, Jun 8, 2016 at 7:19 AM, Pamod Sylvester  wrote:

> Hi All,
>
> Could we consider the $Subject, (since the library is interoperable with
> all standard MQTT brokers).
>
> Currently it requires client lib to be separately downloaded when
> integrating with a broker [1]
>
> [1]
> https://docs.wso2.com/display/ESB490/Sample+906%3A+Inbound+Endpoint+MQTT+Protocol+Sample
>
> Thanks,
> Pamod
>
> --
> *Pamod Sylvester *
>
> *WSO2 Inc.; http://wso2.com *
> cell: +94 77 7779495
>



-- 
Ramith Jayasinghe
Technical Lead
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

E: ram...@wso2.com
P: +94 772534930
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev