Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-25 Thread Manorama Perera
Hi Aditya,

In order to preserve the double quotations around the numbers, you can
configure the below property in
/repository/conf/synapse.properties

synapse.commons.json.output.autoPrimitive=false

Thanks,
Manorama

On Wed, Oct 25, 2017 at 11:31 AM, aditya shivankar <
shivankar.adit...@gmail.com> wrote:

> Below is the sample service I have created to Highlight the issues I am
> facing in my project(where the request and response are very big and these
> issues are repeating at many places).
>
> Request :
> {
> "id" : "3",
> "parts" : ["Screen"]
> }
>
> Actual Response :
> {
> "id": 3,
> "parts": "Screen",
> "make": "Tamsung"
> }
>
> Desired Response  :
>
> {
> "id": "3",
> "parts": ["Screen"],
> "make": "Tamsung"
> }
>
> 
> ---
> Issues :
>
> 1. "parts": "Screen",
>
>should have been like below
>
>"parts": ["Screen"],
>
>   i.e. it does not remain array anymore. I understand the array
> consist only one element. But the third party system to which the output of
> this service is sent as input(request) expects the element as array. So I
> need it to be as array.
>
> 2."id": 3,
>
> should have been like below
> "id": "3",
> i.e. the string should have been kept as string.
>
>
> 
> ---
> arrayTest.xml :
>
> 
> http://ws.apache.org/
> ns/synapse">
> 
> 
>
> 
> 
> Tamsung
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
>
>
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to catch an error from the REST Task in the BPMN

2017-09-27 Thread Manorama Perera
Hi Thomas,

When a failure occurs in a REST task, a BPMN error with error code
"RestInvokeError" will be thrown.
This error can be caught using an Error Boundary Event associated with the
REST service task.

You can find an example of using this in the article[1].

[1] http://wso2.com/library/articles/2016/04/article-how-
to-model-bpmn-business-processes-with-wso2-business-process-server/

Thanks,
Manorama.

On Wed, Sep 27, 2017 at 8:04 PM, Thomas LEGRAND <
thomas.legr...@versusmind.eu> wrote:

> Hello there,
>
> I would like to catch an error from the REST task in my process. Actually,
> my distant web service returns a 404 with an empty body if no result was
> found. If something was found, I map an element from the returned JSON into
> a variable and that works.
>
> In the case of my 404, I have a NPE and I would like to catch it to be
> able to continue the process but I don't know how to do because the
> ErrorBoundaryEvent I attached does not work at all.
>
> Can you help me, please?
>
> Regards,
>
> Thomas
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Dynamic routing key on rabbitmq endpoint

2017-09-18 Thread Manorama Perera
Hi Norberto,

You can find a sample configuration which uses Endpoint Template for a
similar issue at[1].

[1]
https://stackoverflow.com/questions/38465378/wso2-value-dynamically-injected-to-the-endpoint

Thanks,
Manorama

On Mon, Sep 18, 2017 at 1:41 PM, Sudharma Subasinghe 
wrote:

> Hi Norberto,
>
> You can try endpoint template[1] to define parameter values, and then
> refer those values in uri using '$' sign.
>
> [1] https://docs.wso2.com/display/ESB500/Endpoint+Template
>
> Thanks
> Sudharma
>
> On Mon, Sep 18, 2017 at 1:25 PM, Vinod Kavinda  wrote:
>
>> Hi,
>> Can you try using "get-property('sendToThisQueue')" other than using
>> the context. Found this blog post[1] by a wso2 developer that may useful.
>>
>> [1] - http://wso2tech.blogspot.com/2015/06/wso2-esb-dynamic-jms-
>> endpoint.html
>>
>> Regards,
>> Vinod
>>
>> On Mon, Sep 18, 2017 at 1:13 PM, Norberto Fernandes <
>> norbe...@memoryvox.com> wrote:
>>
>>> Hi Developers,
>>>
>>> Could you please let me know if it is possible to pass a variable into a
>>> rabbitmq endpoint?
>>>
>>> I would like to set the routing key dynamically. So I was trying to use
>>> a property from the context and define the routing key based on that
>>> property. But I could not make it work.
>>>
>>> I tried :
>>>
>>> >> key={ctx:key}&rabbitmq...”/>
>>>
>>> Where key is the context property where I have the desired value of the
>>> routing key.
>>>
>>> Thanks in advance.
>>>
>>> Regards,
>>> Norberto
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Vinod Kavinda
>> Senior Software Engineer
>> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
>> Mobile : +94 (0) 712 415544
>> Blog : http://soatechflicks.blogspot.com/
>> [image: http://wso2.com/signature]
>> <http://wso2.com/signature>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sudharma Subasinghe,
> Software Engineer,
> WSO2 Inc.
> Email: sudhar...@wso2.com 
> Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Enterprise Integrator 6.2.0-M4 Released!

2017-09-08 Thread Manorama Perera
The WSO2 Integration team is pleased to announce the release of Enterprise
Integrator 6.2.0 Milestone 4.
Source & binary distribution files of the WSO2 Enterprise Integrator 6.2.0-
M4 is available for download from the following location.

https://github.com/wso2/product-ei/releases/tag/v6.2.0-m4

*Tasks/Bug Fixes and Improvements*

WSO2 Jira - Fixed Issues <https://wso2.org/jira/issues/?filter=13952>
Product EI - Github fixed issues
<https://github.com/wso2/product-ei/issues?q=is%3Aclosed+milestone%3A%226.2.0+M4%22>
*List of Open Issues*

WSO2 Jira - Open Issues <https://wso2.org/jira/issues/?filter=13937>
WSO2 EI Github - Open Issues
<https://github.com/wso2/product-ei/issues?q=is%3Aopen+is%3Aissue>

*Mailing Lists*
Join our mailing list and correspond with the developers directly.
Developer List: dev@wso2.org | Subscribe | Mail Archive
User Forum: StackOverflow

*Reporting Issues*

We encourage you to report issues, improvements and feature requests
regarding WSO2 Integrator through WSO2 EI GIT Issues.

~ The WSO2 Integration Team ~

-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge

2017-09-07 Thread Manorama Perera
Thank you Madhawa.

On Thu, Sep 7, 2017 at 1:04 PM, Madhawa Gunasekara 
wrote:

> Merged.
>
> Regards,
> Madhawa
>
> On Thu, Sep 7, 2017 at 2:10 AM, Manorama Perera  wrote:
>
>> Hi,
>>
>> Please review and merge PR[1].
>>
>> [1] https://github.com/wso2/carbon-commons/pull/278
>>
>> Thanks,
>> Manorama
>>
>> --
>> Manorama Perera
>> Software Engineer
>> WSO2, Inc.;  http://wso2.com/
>>
>
>
>
> --
> *Madhawa Gunasekara*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002 <+94+719411002>
> blog: *http://madhawa-gunasekara.blogspot.com
> <http://madhawa-gunasekara.blogspot.com>*
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> <http://lk.linkedin.com/in/mgunasekara>*
>



-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge

2017-09-07 Thread Manorama Perera
Hi,

Please review and merge PR[1].

[1] https://github.com/wso2/carbon-commons/pull/278

Thanks,
Manorama

-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] UNSUBSCRIBE FROM DEV MAIL THREAD

2017-08-30 Thread Manorama Perera
Hi Mohamad,

To unsubscribe from WSO2 Dev, please send an email to *dev-requ...@wso2.org
* with the subject *unsubscribe*.

Thanks,
Manorama

On Wed, Aug 30, 2017 at 3:57 PM, Mohamad Naseer 
wrote:

> I WOULD LIKE TO UNSUBSCRIBE FROM THIS MAILING THREAD.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Multiple receiver urls not supported in EI-6.1.1 Event Sink configuration

2017-08-29 Thread Manorama Perera
Hi Nirodha,

This bug is already reported at [1], and fixed[2] in EI 6.2.0 M3.

[1] https://github.com/wso2/product-ei/issues/835
[2] https://github.com/wso2/carbon-mediation/pull/848

Thanks,
Manorama

On Wed, Aug 30, 2017 at 10:57 AM, Nirodha Gallage  wrote:

> Hi,
>
> When creating Event Sink config in ESB 4.9.0 and ESB 5.0.0 it supported
> giving comma separated multiple Receiver URLs within curly braces,
>
> Eg: {tcp://192.168.56.168:7611,tcp://192.168.56.159:7611}
>
> But this is not supported in EI 6.1.1, and does not allow to save the
> config with an error "Incomplete URL or Invalid protocol.."
>
> Isn't it a bug? And is there any workaround for this?
>
> Regards,
> Nirodha
>
> --
>
> *Nirodha Gallage*
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94716429078 <+94%2071%20642%209078>
>



-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Enriching the response array with corresponding elements in the request array . Facing issue, require guidance.

2017-07-21 Thread Manorama Perera
Hi Aditya,

You can enrich the AggregateMediator response using input request without
as below.

Inside the iterate mediator store the input payload in a property as below.


   
  
 
 

 
  
   


In the outSequence, before aggregate, you can enrich the backend response with
the above property value.



   
   

.
.

.


Thanks,
Manorama


On Wed, Jul 19, 2017 at 4:30 PM, aditya shivankar <
shivankar.adit...@gmail.com> wrote:

> Input request :
>
> [
> {
>"id" : "1",
> "make" : "TAHB"
> },
> {
> "id" : "2",
> "make" : "Tonda"
> },
> {
> "id" : "3",
> "make" : "Tamsung"
> }
> ]
>
>
> I am using iterate, to send each element of above array as request to a
> backend service( In myactual project this is not so simple service i.e. its
> reponse is very complex with lots of arrays and sub-arrays(child arrays)in
> it . for better understanding of issue I kept it like this ).
>
> The responses of the backend service are aggregated in one soap xml by
> AggregateMediator.
>
> Below is response from AggregateMediator
>
> 
> http://schemas.xmlsoap.org/soap/envelope/
> ">
> 
> 
> 
> 3
> Mobile
> S8
> 
> 
> 2
> Car
> Tmaze
> 
> 
> 1
> Home
> 5000sqft
> 
> 
> 
> 
>
> I want to enrich above response from AggregateMediator like below using
> input request.
> i.e. I want to merge input request and output of backend service.(id is
> common between them.)
>
>
> 
> http://schemas.xmlsoap.org/soap/envelope/
> ">
> 
> 
> 
> 3
> Mobile
> S8
> Tamsung
> 
> 
> 2
> Car
> Tmaze
> Tonda
> 
> 
> 1
> Home
> 5000sqft
> TAHB
> 
> 
> 
> 
>
>
> I kept input request array in a property before calling backend services
> and was able to access it in response flow.
> but the problem is both request and response are arrays. How could I run
> two foreach on two different arrays simultaneously and also match their id
> before updating each array element of response.
>
> Please find attachments.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Message Broker 3.2.0 RC2 Released !!

2017-04-21 Thread Manorama Perera
Hi All,

Tested ESB/MB integration.

-Integration using JMS Endpoints and JMS Proxy Services
-Integration using Message Stores and Processors


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

Thanks,
Manorama

On Fri, Apr 21, 2017 at 5:54 PM, Hasitha Amal De Silva 
wrote:

> Hi all,
>
> Tested 800 durable subscribers failing over across a 3 node cluster.
>
> No Issues found.
> [+1] Stable - go ahead and release.
>
> Thanks
>
> On Fri, Apr 21, 2017 at 4:31 PM, Akalanka Pagoda Arachchi <
> darsha...@wso2.com> wrote:
>
>> Hi All,
>>
>> Tested integration with EI 6.1.0.
>>
>> Tested basic publish, consume and failover with EI 6.1.0.
>>
>> No issues found.
>> [+] Stable - go ahead and release
>>
>> Thanks,
>> Akalanka.
>>
>> On Fri, Apr 21, 2017 at 4:30 PM, Pumudu Ruhunage  wrote:
>>
>>> Hi All,
>>> Tested MQTT standalone/clustered basic test scenarios and execute
>>> eclipse Interop test suite.
>>>
>>> No issues found.
>>> [+] Stable - go ahead and release
>>>
>>> Thanks,
>>>
>>> On Thu, Apr 20, 2017 at 6:47 PM, Pamod Sylvester  wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> This is the 2nd release candidate of WSO2 Message Broker 3.2.0.
>>>>
>>>> *This release fixes the following issues:*
>>>> *https://wso2.org/jira/browse/MB-1910?filter=13675
>>>> <https://wso2.org/jira/browse/MB-1910?filter=13675>*
>>>>
>>>> *Known Issues:*
>>>> *https://wso2.org/jira/browse/MB-1757?filter=13676
>>>> <https://wso2.org/jira/browse/MB-1757?filter=13676>*
>>>>
>>>> <https://wso2.org/jira/issues/?filter=12422>
>>>> Please download MB 3.2.0 RC2 and test the functionality and vote. The
>>>> vote will be open for 72 hours or as needed.
>>>>
>>>> *Source & binary distribution files:*
>>>> https://github.com/wso2/product-mb/releases/tag/v3.2.0-RC2
>>>>
>>>> *The tag to be voted upon:*
>>>> https://github.com/wso2/product-mb/tree/v3.2.0-RC2
>>>>
>>>>
>>>> [+] Stable - go ahead and release
>>>> [-]  Broken - do not release (explain why)
>>>>
>>>> Thanks and Regards,
>>>>
>>>> --
>>>> *Pamod Sylvester *
>>>>
>>>> *WSO2 Inc.; http://wso2.com <http://wso2.com>*
>>>> cell: +94 77 7779495 <077%20777%209495>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Pumudu Ruhunage
>>> Software Engineer | WSO2 Inc
>>> M: +94 779 664493  | http://wso2.com
>>> <https://wso2.com/signature>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Darshana Akalanka Pagoda Arachchi,*
>> *Senior Software Engineer, WSO2*
>> *+94777118016 <+94%2077%20711%208016>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Cheers,
>
> Hasitha Amal De Silva
> Senior Software Engineer
> Mobile : +94772037426 <+94%2077%20203%207426>
> Blog: http://devnutshell.tumblr.com/
> WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Message Broker 3.2.0-Beta Released!

2017-03-30 Thread Manorama Perera
Hi All,

WSO2 Message Broker team is pleased to announce the beta release of WSO2
Message Broker (MB) 3.2.0.

Source & binary distribution files of WSO2 Message Broker can be found in:
https://github.com/wso2/product-mb/releases/tag/v3.2.0-BETA

All the known issues identified are listed at
https://wso2.org/jira/browse/MB-1881?filter=13655

Regards,
~MB Team~

-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Machine Learner 1.2.0 RC2

2016-09-14 Thread Manorama Perera
Tested ML UI.
No blocking issues found.

[+] Stable - go ahead and release

On Wed, Sep 14, 2016 at 10:50 AM, Nirmal Fernando  wrote:

> Tested basic flows.
>
> [+] Stable - go ahead and release
>
>
> On Tue, Sep 13, 2016 at 5:39 PM, Supun Sethunga  wrote:
>
>> Tested the Samples.
>>
>> [+] Stable - go ahead and release
>>
>> Regards,
>> Supun
>>
>> On Fri, Sep 9, 2016 at 5:41 PM, Supun Sethunga  wrote:
>>
>>> Hi Devs,
>>>
>>> This is the 2nd Release Candidate of the WSO2 Machine Learner 1.2.0. This
>>> release includes the  following improvements and fixes:
>>>
>>>- ML-DAS integration
>>>- Spark upgrade to v1.6.2
>>>- Security fixes associated with the WSO2 Carbon 4.4.9 platform
>>>release
>>>
>>>
>>> Please download, test the product and vote. Vote will be open for 72
>>> hours or as needed.
>>> Refer to github readme for guides.
>>>
>>> The distribution is available to download at [1].
>>>
>>> Fixed Issue in [2]. Tag to be vote upon [3].
>>>
>>> [1] https://github.com/wso2/product-ml/releases/download/v1.
>>> 2.0-rc2/wso2ml-1.2.0-rc2.zip
>>> [2] https://wso2.org/jira/issues/?filter=13325
>>> [3] https://github.com/wso2/product-ml/releases/tag/v1.2.0-rc2
>>>
>>> Please vote as follows.
>>> [+] Stable - go ahead and release
>>> [-]  Broken - do not release (please explain why)
>>>
>>> Thanks,
>>> WSO2 ML Team
>>>
>>> --
>>> *Supun Sethunga*
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> http://wso2.com/
>>> lean | enterprise | middleware
>>> Mobile : +94 716546324
>>> Blog: http://supunsetunga.blogspot.com
>>>
>>
>>
>>
>> --
>> *Supun Sethunga*
>> Senior Software Engineer
>> WSO2, Inc.
>> http://wso2.com/
>> lean | enterprise | middleware
>> Mobile : +94 716546324
>> Blog: http://supunsetunga.blogspot.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] IS Analytics - Handling zero values in Login Attempts over Time chart

2016-07-24 Thread Manorama Perera
Thanks Tharik.

After updating Vizgrammar the chart now looks like below.

[image: Inline image 1]

@Inosh
I've already done the necessary changes for the line charts in session view.

Thanks

On Mon, Jul 25, 2016 at 12:11 PM, Inosh Goonewardena  wrote:

> +1 for figure [2]. We might need to use the same approach for session
> chart (new/terminates count lines) as well. @Manorama, could you please
> check on that too.
>
> On Mon, Jul 25, 2016 at 11:37 AM, Hasintha Indrajee 
> wrote:
>
>>
>>
>> On Mon, Jul 25, 2016 at 11:14 AM, Mohanadarshan Vivekanandalingam <
>> mo...@wso2.com> wrote:
>>
>>> I prefer the figure [2] which shows 0 values since it gives more
>>> meaningful information to the user..
>>>
>>> +1 for displaying as in figure [2] which is more meaningful.
>>>
>>>
>>> Thanks,
>>> Mohan
>>>
>>>
>>> On Mon, Jul 25, 2016 at 11:08 AM, Manorama Perera 
>>> wrote:
>>>
>>>> Hi all,
>>>>
>>>> In Authentication dashboard we show login attempts using an area chart.
>>>> The current implementation of this chart doesn't show zero values when
>>>> there are no login attempts corresponding to some points of time within the
>>>> selected period of time.
>>>>
>>>> For example, as described in [1], consider following scenario where we
>>>> have login events from 10.10 AM to 10.25 AM
>>>>
>>>> From 10.10 - 10.13 - There are some login attempts
>>>> From 10.14 - 10.17 - *Zero login attempts*
>>>> From 10.18 - 10.25 - Some login attempts
>>>>
>>>> Currently we are showing the above information in the chart as follows,
>>>>
>>>> [image: Inline image 1]
>>>>
>>>> In this chart we are not showing the information about the zero login
>>>> attempts.
>>>>
>>>> In order to show these information, we have changed the chart as below,
>>>>
>>>> [image: Inline image 2]
>>>>
>>>> Now it is showing the zero login attempts. But the chart now is divided
>>>> into two areas.
>>>>
>>>> What is the better way to draw chart when we have zero login attempts.
>>>> Appreciate any suggestions and opinions on this.
>>>>
>>>> [1] https://wso2.org/jira/browse/ANLYIS-64
>>>>
>>>> Thanks
>>>> --
>>>> Manorama Perera
>>>> Software Engineer
>>>> WSO2, Inc.;  http://wso2.com/
>>>> Mobile : +94716436216
>>>>
>>>
>>>
>>>
>>> --
>>> *V. Mohanadarshan*
>>> *Associate Tech Lead,*
>>> *Data Technologies Team,*
>>> *WSO2, Inc. http://wso2.com <http://wso2.com> *
>>> *lean.enterprise.middleware.*
>>>
>>> email: mo...@wso2.com
>>> phone:(+94) 771117673
>>>
>>
>>
>>
>> --
>> Hasintha Indrajee
>> WSO2, Inc.
>> Mobile:+94 771892453
>>
>>
>
>
> --
> Thanks & Regards,
>
> Inosh Goonewardena
> Associate Technical Lead- WSO2 Inc.
> Mobile: +94779966317
>



-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] IS Analytics - Handling zero values in Login Attempts over Time chart

2016-07-24 Thread Manorama Perera
Hi all,

In Authentication dashboard we show login attempts using an area chart. The
current implementation of this chart doesn't show zero values when there
are no login attempts corresponding to some points of time within the
selected period of time.

For example, as described in [1], consider following scenario where we have
login events from 10.10 AM to 10.25 AM

>From 10.10 - 10.13 - There are some login attempts
>From 10.14 - 10.17 - *Zero login attempts*
>From 10.18 - 10.25 - Some login attempts

Currently we are showing the above information in the chart as follows,

[image: Inline image 1]

In this chart we are not showing the information about the zero login
attempts.

In order to show these information, we have changed the chart as below,

[image: Inline image 2]

Now it is showing the zero login attempts. But the chart now is divided
into two areas.

What is the better way to draw chart when we have zero login attempts.
Appreciate any suggestions and opinions on this.

[1] https://wso2.org/jira/browse/ANLYIS-64

Thanks
-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 ML 1.0.0 RC2

2015-09-21 Thread Manorama Perera
I've tested the following and found no issues.

   - HDFS support + HDFS sample
   - CEP ML extension
   - ESB Predict mediator
   - Model usage Java sample

[x] Stable - go ahead and release

Thanks.

On Mon, Sep 21, 2015 at 4:08 PM, Nirmal Fernando  wrote:

> [x] Stable
>
> On Mon, Sep 21, 2015 at 12:11 PM, CD Athuraliya 
> wrote:
>
>> Hi Devs,
>>
>> This is the second release candidate of WSO2 ML 1.0.0.
>>
>> This release fixes the following issues:
>>
>> ML-1.0.0-FixedIssues <https://wso2.org/jira/issues/?filter=12390>
>>
>> Please download, test and vote. Vote will be open for 72 hours or as
>> needed.
>>
>> *Binary distribution files:*
>> Product:
>> *https://github.com/wso2/product-ml/releases/download/v1.0.0-rc2/wso2ml-1.0.0.zip
>> <https://github.com/wso2/product-ml/releases/download/v1.0.0-rc2/wso2ml-1.0.0.zip>*
>>
>> P2 repository:
>> *https://github.com/wso2/product-ml/releases/download/v1.0.0-rc2/p2-repo.zip
>> <https://github.com/wso2/product-ml/releases/download/v1.0.0-rc2/p2-repo.zip>*
>>
>> *Maven staging repo:*
>> *http://maven.wso2.org/nexus/content/repositories/orgwso2ml-133/
>> <http://maven.wso2.org/nexus/content/repositories/orgwso2ml-133/>*
>>
>> *The tag to be voted upon:*
>> *https://github.com/wso2/product-ml/tree/v1.0.0-rc2
>> <https://github.com/wso2/product-ml/tree/v1.0.0-rc2>*
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>> Thanks and Regards,
>> ~ WSO2 Machine Learner Team ~
>>
>>
>> --
>> *CD Athuraliya*
>> Software Engineer
>> WSO2, Inc.
>> lean . enterprise . middleware
>> Mobile: +94 716288847 <94716288847>
>> LinkedIn <http://lk.linkedin.com/in/cdathuraliya> | Twitter
>> <https://twitter.com/cdathuraliya> | Blog
>> <http://cdathuraliya.tumblr.com/>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [CEP] Integrating ML extension in CEP distributed mode setup

2015-09-17 Thread Manorama Perera
Hi Sashika,

The doc [1] is now updated with the steps to update the storm dependency
jar.

[1]
https://docs.wso2.com/display/CEP400/Predictive+Analytics+with+WSO2+Machine+Learner

Thanks.

On Thu, Sep 17, 2015 at 11:10 PM, Nirmal Fernando  wrote:

> Hi Suho,
>
> Mano started to work on a document on this.
>
> On Thu, Sep 17, 2015 at 11:06 PM, Sriskandarajah Suhothayan  > wrote:
>
>>
>>
>> On Thu, Sep 17, 2015 at 8:55 PM, Sashika Wijesinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> I want to test how ML extension can be integrated with CEP storm
>>> distributed cluster. So for that I have set up CEP with a manager node and
>>> a worker node. And installed ML features using p2-repository in manager
>>> node. Then deployed an event flow in CEP manager node and send events to
>>> the receiver in worker node. Then I observed " No extension exist for
>>> StreamFunctionExtension{namespace='ml'}  in execution plan
>>> "ExecutionPlanML" in worker node.
>>>
>>
>>> To overcome this issue, I have started worker node without
>>> "-DworkerNode=true" argument and installed ML features in worker node as
>>> well. Then restart the entire cluster (worker started with
>>> -DworkerNode=true) and send events to the worker node. But events are not
>>> logged in worker node (logger publisher is used).
>>>
>>> Further I have tested the same flow in standalone CEP pack according to
>>> the instructions given in [1]
>>> <https://docs.wso2.com/display/CEP400/Predictive+Analytics+with+WSO2+Machine+Learner>
>>> , and it works as expected.
>>> [1]
>>> https://docs.wso2.com/display/CEP400/Predictive+Analytics+with+WSO2+Machine+Learner
>>>
>>>
>>> Please help me to clarify below issues
>>>
>>> 1) When we setup a storm distributed cluster and installed a feature in
>>> manager node, isn't there any way of synchronizing that feature details
>>> with worker node rather than installing the same features in worker node?
>>>
>>> No this is not supported in WSO2 Servers, need to install in all nodes.
>>
>>
>>> 2) Even after I installed the feature in worker node I didn't get any
>>> events. What can be the possible reasons for that?
>>>
>>> Since there are no documentation on how to set up the ML extension in
>>> CEP storm distribute cluster , it would be better to update the documents
>>> with relevant details.
>>>
>>> We have to also update the storm dependency jar, @ML forks can you
>> update the docs with the storm story too?
>>
>> Regards
>> Suho
>>
>>
>>> Appreciate your help on this matter.
>>>
>>> Thanks
>>>
>>> --
>>>
>>> *Sashika WijesingheSoftware Engineer - QA Team*
>>> Mobile : +94 (0) 774537487
>>> sash...@wso2.com
>>>
>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>> *WSO2 Inc. *http://wso2.com
>> * <http://wso2.com/>*
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>> http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>twitter:
>> http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in:
>> http://lk.linkedin.com/in/suhothayan <http://lk.linkedin.com/in/suhothayan>*
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clarifications on CEP

2015-09-14 Thread Manorama Perera
on.event.processor.core.internal.ds.EventProcessorServiceDS.activate(EventProcessorServiceDS.java:87)
>>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>> at
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>> at
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Shavantha Weerasinghe
>>>>>>>>>> Senior Software Engineer QA
>>>>>>>>>> WSO2, Inc.
>>>>>>>>>> lean.enterprise.middleware.
>>>>>>>>>> http://wso2.com
>>>>>>>>>> http://wso2.org
>>>>>>>>>> Tel : 94 11 214 5345
>>>>>>>>>> Fax :94 11 2145300
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Tue, Sep 8, 2015 at 10:16 AM, Sriskandarajah Suhothayan <
>>>>>>>>>> s...@wso2.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> We are not supporting this for this release, we might support
>>>>>>>>>>> his in future using SSO, but not for this release.
>>>>>>>>>>>
>>>>>>>>>>> Suho
>>>>>>>>>>>
>>>>>>>>>>> On Tue, Sep 8, 2015 at 9:45 AM, Tharik Kanaka 
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi All,
>>>>>>>>>>>>
>>>>>>>>>>>> As Mohan mentioned gaining login session of management console
>>>>>>>>>>>> is not possible with current implementation of analytics 
>>>>>>>>>>>> dashboards.
>>>>>>>>>>>>
>>>>>>>>>>>> Regards,
>>>>>>>>>>>>
>>>>>>>>>>>> On Tue, Sep 8, 2015 at 9:28 AM, Mohanadarshan Vivekanandalingam
>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Mon, Sep 7, 2015 at 10:50 PM, Shavantha Weerasinghe <
>>>>>>>>>>>>> shavan...@wso2.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hi All
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Appreciate if I can get a clarification on the two below
>>>>>>>>>>>>>> points.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> 1.Is there a way we can configure for the cep admin to gain
>>>>>>>>>>>>>> access to the analytic dashboard without entering the login 
>>>>>>>>>>>>>> again if he has
>>>>>>>>>>>>>> logged into the management console.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Hmm, I don't think this is possible as per current
>>>>>>>>>>>>> implementation..
>>>>>>>>>>>>> @Damith or Tharik, please confirm..
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> 2. When we are accepting events from multiple sources (ex:
>>>>>>>>>>>>>> soap/http) into a single stream there may be a need to stop 
>>>>>>>>>>>>>> receiving
>>>>>>>>>>>>>> events into a specific events receiver. Is there away we can 
>>>>>>>>>>>>>> disable an
>>>>>>>>>>>>>> event receiver without deleting it. The same could apply to event
>>>>>>>>>>>>>> publishers as well
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> No, it is not possible in CEP 4.0.0 but it is in the roadmap.
>>>>>>>>>>>>> We already have jira [1] which is reported by you :)
>>>>>>>>>>>>>
>>>>>>>>>>>>> [1] https://wso2.org/jira/browse/CEP-506
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>> Mohan
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>> Shavantha Weerasinghe
>>>>>>>>>>>>>> Senior Software Engineer QA
>>>>>>>>>>>>>> WSO2, Inc.
>>>>>>>>>>>>>> lean.enterprise.middleware.
>>>>>>>>>>>>>> http://wso2.com
>>>>>>>>>>>>>> http://wso2.org
>>>>>>>>>>>>>> Tel : 94 11 214 5345
>>>>>>>>>>>>>> Fax :94 11 2145300
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ___
>>>>>>>>>>>>>> Dev mailing list
>>>>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> *V. Mohanadarshan*
>>>>>>>>>>>>> *Senior Software Engineer,*
>>>>>>>>>>>>> *Data Technologies Team,*
>>>>>>>>>>>>> *WSO2, Inc. http://wso2.com <http://wso2.com> *
>>>>>>>>>>>>> *lean.enterprise.middleware.*
>>>>>>>>>>>>>
>>>>>>>>>>>>> email: mo...@wso2.com
>>>>>>>>>>>>> phone:(+94) 771117673
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>>
>>>>>>>>>>>> *Tharik Kanaka*
>>>>>>>>>>>>
>>>>>>>>>>>> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>>>>>>>>>>>>
>>>>>>>>>>>> Email: tha...@wso2.com | Web: www.wso2.com
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>>
>>>>>>>>>>> *S. Suhothayan*
>>>>>>>>>>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>>>>>>>>>>> *WSO2 Inc. *http://wso2.com
>>>>>>>>>>> * <http://wso2.com/>*
>>>>>>>>>>> lean . enterprise . middleware
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>>>>>>>>>>> http://suhothayan.blogspot.com/ 
>>>>>>>>>>> <http://suhothayan.blogspot.com/>twitter:
>>>>>>>>>>> http://twitter.com/suhothayan <http://twitter.com/suhothayan> | 
>>>>>>>>>>> linked-in:
>>>>>>>>>>> http://lk.linkedin.com/in/suhothayan 
>>>>>>>>>>> <http://lk.linkedin.com/in/suhothayan>*
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>> *S. Suhothayan*
>>>>>>>>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>>>>>>>>> *WSO2 Inc. *http://wso2.com
>>>>>>>>> * <http://wso2.com/>*
>>>>>>>>> lean . enterprise . middleware
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>>>>>>>>> http://suhothayan.blogspot.com/ 
>>>>>>>>> <http://suhothayan.blogspot.com/>twitter:
>>>>>>>>> http://twitter.com/suhothayan <http://twitter.com/suhothayan> | 
>>>>>>>>> linked-in:
>>>>>>>>> http://lk.linkedin.com/in/suhothayan 
>>>>>>>>> <http://lk.linkedin.com/in/suhothayan>*
>>>>>>>>>
>>>>>>>>> ___
>>>>>>>>> Dev mailing list
>>>>>>>>> Dev@wso2.org
>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> *Sashika WijesingheSoftware Engineer - QA Team*
>>>>>>>> Mobile : +94 (0) 774537487
>>>>>>>> sash...@wso2.com
>>>>>>>>
>>>>>>>> ___
>>>>>>>> Dev mailing list
>>>>>>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Lasantha Fernando*
>>>>>>> Senior Software Engineer - Data Technologies Team
>>>>>>> WSO2 Inc. http://wso2.com
>>>>>>>
>>>>>>> email: lasan...@wso2.com
>>>>>>> mobile: (+94) 71 5247551
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> *Sashika WijesingheSoftware Engineer - QA Team*
>>>>>> Mobile : +94 (0) 774537487
>>>>>> sash...@wso2.com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> *Sashika WijesingheSoftware Engineer - QA Team*
>>>>> Mobile : +94 (0) 774537487
>>>>> sash...@wso2.com
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Team Lead - WSO2 Machine Learner
>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Sample Execution Summary -ML

2015-08-26 Thread Manorama Perera
Thanks Fazlan for reporting this issue. This issue is due to the
improvements done in feature type (categorical/numerical) identification
algorithm.

In the above mentioned samples, wine-quality dataset [1] has been used.
According to the new algorithm, the response variable quality, is
identified as a categorical feature. As all these are numerical prediction
algorithms, and require a numerical variable as the response variable, this
exception[2] is thrown.

I've fixed it in [3]

[1] https://archive.ics.uci.edu/ml/datasets/Wine+Quality
[2] org.wso2.carbon.ml.core.exceptions.MLModelBuilderException: An error
occurred while building supervised machine learning model: Categorical
attribute quality cannot be used as the response variable of the Numerical
Prediction algorithm:
[3] https://github.com/wso2/product-ml/pull/228

Thanks.

On Wed, Aug 26, 2015 at 8:26 PM, Nirmal Fernando  wrote:

> Thanks a lot Fazlan! @Mano please fix these issues on samples asap.
>
> On Wed, Aug 26, 2015 at 7:13 PM, Fazlan Nazeem  wrote:
>
>> Hi Nirmal,
>>
>> I have run the samples with the latest build and some of the samples
>> cannot be successfully executed. Error messages for each failed sample is
>> same in the first glance, but I have included(the links) the stack trace
>> just in case if they are different.
>>
>> *failed samples*
>>
>> ---default---
>>
>>- lasso-regression http://pastie.org/10376887
>>- linear-regression http://pastie.org/10376932
>>
>> --tuned--
>>
>>- linear-regression http://pastie.org/10376981
>>- lasso-regression http://pastie.org/10376987
>><http://pastie.org/10376987>
>>- ridge-regression http://pastie.org/10376992
>>
>>
>> I haven't tested the "*logistic-regression-with-hdfs" *sample yet (
>> because It needs a hadoop server running. Will do it)
>>
>>
>> --
>> Fazlan Nazeem
>>
>> *Software Engineer*
>>
>> *WSO2 Inc*
>> Mobile : +94772338839
>> <%2B94%20%280%29%20773%20451194>
>> fazl...@wso2.com
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Restructure tuned samples

2015-08-25 Thread Manorama Perera
Updated the samples.

Thanks.

On Tue, Aug 25, 2015 at 11:46 AM, Nirmal Fernando  wrote:

> Thanks Mano! Also, we need to make all scrips (*.sh files) executable (chmod
> +x model-generation.sh and commit). Also, in README, we need to mention
> that the samples only works in Unix environment.
>
> On Tue, Aug 25, 2015 at 11:27 AM, Manorama Perera 
> wrote:
>
>> Sure. I'll rename the folders.
>>
>> On Tue, Aug 25, 2015 at 11:19 AM, Nirmal Fernando 
>> wrote:
>>
>>> Mano,
>>>
>>> I feel 'tuned' part is redundant in the folders inside
>>>
>>> https://github.com/wso2/product-ml/tree/master/modules/samples/tuned
>>>
>>> Shall we refactor?
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Team Lead - WSO2 Machine Learner
>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>> Manorama Perera
>> Software Engineer
>> WSO2, Inc.;  http://wso2.com/
>> Mobile : +94716436216
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ML][CEP] Server startup error when installing ML features in CEP

2015-06-17 Thread Manorama Perera
Hi Nirmal,

As we discussed earlier, there wasn't any requirement to support
predictions via rest api call, after we switched to predictions without
using spark runtime.

(I'm referring to mail thread 'WSO2 ML Prediction without Spark Runtime')

Thanks.

On Wed, Jun 17, 2015 at 11:46 AM, Nirmal Fernando  wrote:

> Seems, this is not implemented yet. @Mano what was our conclusion?
>
> On Tue, Jun 16, 2015 at 4:53 PM, Nirmal Fernando  wrote:
>
>> I think in the Siddhi case, we were going to use the ML REST API. AFAIK
>> CEP extension supports both modes.
>>
>> On Tue, Jun 16, 2015 at 4:24 PM, Mohanadarshan Vivekanandalingam <
>> mo...@wso2.com> wrote:
>>
>>> Hi Suho & all,
>>>
>>> Have we decided on how we are going to run ML related operations in
>>> Storm.. If ML features are required for the ML extension, then what is the
>>> approach to run the ML extension in Siddhi..
>>>
>>> Thanks,
>>> Mohan
>>>
>>>
>>> On Tue, Jun 16, 2015 at 4:50 AM, Manorama Perera 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> Please find the PR[1] to fix the above issue.
>>>>
>>>> [1] https://github.com/wso2/product-cep/pull/110
>>>>
>>>> Thanks.
>>>>
>>>> On Tue, Jun 16, 2015 at 10:43 AM, Manorama Perera 
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> An exception[1] is thrown at the server startup when ML features are
>>>>> installed in CEP 4.0.0 Alpha.
>>>>>
>>>>> The issue here is, there are two *WSO2ML_DB* datasources are
>>>>> initialized at the server startup when ML features are installed.
>>>>>
>>>>> In [2], *WSO2ML_DB* datasource has been added to the 
>>>>> *master-datasources.xml
>>>>> in cep*.
>>>>> But when installing ML features, ml-datasoures.xml file is copied into
>>>>> the repository/conf/datasources. This file also contains WSO2ML_DB
>>>>> datasource.
>>>>>
>>>>> The exception is thrown when the second WSO2ML_DB datasource is
>>>>> initialized. I've commented the WSO2ML_DB from master-datasources.xml, 
>>>>> then
>>>>> the exception is not there.
>>>>>
>>>>> [1]
>>>>> [2015-06-16 10:00:24,855] ERROR {org.wso2.carbon.ndatasource.
>>>>> core.internal.DataSourceServiceComponent} -  Error in intializing
>>>>> system data sources: Error in initializing system data sources: Error in
>>>>> initializing system data sources at '/home/manorama/Products/CEP/
>>>>> wso2cep-4.0.0-alpha/repository/conf/datasources/ml-datasources.xml' -
>>>>> System datasource WSO2ML_DBcan not be updated.
>>>>> org.wso2.carbon.ndatasource.common.DataSourceException: Error in
>>>>> initializing system data sources: Error in initializing system data 
>>>>> sources
>>>>> at
>>>>> '/home/manorama/Products/CEP/wso2cep-4.0.0-alpha/repository/conf/datasources/ml-datasources.xml'
>>>>> - System datasource WSO2ML_DBcan not be updated.
>>>>> at
>>>>> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSources(DataSourceManager.java:168)
>>>>> at
>>>>> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSystemDataSources(DataSourceServiceComponent.java:192)
>>>>> at
>>>>> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.setSecretCallbackHandlerService(DataSourceServiceComponent.java:178)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> at java.lang.reflect.Method.invoke(Method.java:601)
>>>>> at
>>>>> org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
>>>>> at
>>>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:430)
>>>>> at
>>>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bind(ServiceComponentProp.java:218)
>>>>> at
>>>>> org.eclipse.equinox.internal.ds.model.ServiceC

Re: [Dev] [ML][CEP] Server startup error when installing ML features in CEP

2015-06-16 Thread Manorama Perera
Hi,

Please find the PR[1] to fix the above issue.

[1] https://github.com/wso2/product-cep/pull/110

Thanks.

On Tue, Jun 16, 2015 at 10:43 AM, Manorama Perera  wrote:

> Hi,
>
> An exception[1] is thrown at the server startup when ML features are
> installed in CEP 4.0.0 Alpha.
>
> The issue here is, there are two *WSO2ML_DB* datasources are initialized
> at the server startup when ML features are installed.
>
> In [2], *WSO2ML_DB* datasource has been added to the *master-datasources.xml
> in cep*.
> But when installing ML features, ml-datasoures.xml file is copied into the
> repository/conf/datasources. This file also contains WSO2ML_DB datasource.
>
> The exception is thrown when the second WSO2ML_DB datasource is
> initialized. I've commented the WSO2ML_DB from master-datasources.xml, then
> the exception is not there.
>
> [1]
> [2015-06-16 10:00:24,855] ERROR {org.wso2.carbon.ndatasource.
> core.internal.DataSourceServiceComponent} -  Error in intializing system
> data sources: Error in initializing system data sources: Error in
> initializing system data sources at '/home/manorama/Products/CEP/
> wso2cep-4.0.0-alpha/repository/conf/datasources/ml-datasources.xml' -
> System datasource WSO2ML_DBcan not be updated.
> org.wso2.carbon.ndatasource.common.DataSourceException: Error in
> initializing system data sources: Error in initializing system data sources
> at
> '/home/manorama/Products/CEP/wso2cep-4.0.0-alpha/repository/conf/datasources/ml-datasources.xml'
> - System datasource WSO2ML_DBcan not be updated.
> at
> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSources(DataSourceManager.java:168)
> at
> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSystemDataSources(DataSourceServiceComponent.java:192)
> at
> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.setSecretCallbackHandlerService(DataSourceServiceComponent.java:178)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at
> org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:430)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bind(ServiceComponentProp.java:218)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:343)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
> at
> org.wso2.carbon.securevault.internal.SecretManagerInitializerComponent.activate(SecretManagerInitializerComponent.java:48)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
> at
> org.eclipse.e

[Dev] [ML][CEP] Server startup error when installing ML features in CEP

2015-06-15 Thread Manorama Perera
patch(SCRManager.java:783)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.wso2.carbon.ndatasource.common.DataSourceException: Error in
initializing system data sources at
'/home/manorama/Products/CEP/wso2cep-4.0.0-alpha/repository/conf/datasources/ml-datasources.xml'
- System datasource WSO2ML_DBcan not be updated.
at
org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSource(DataSourceManager.java:188)
at
org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSources(DataSourceManager.java:164)
... 40 more
Caused by: org.wso2.carbon.ndatasource.common.DataSourceException: System
datasource WSO2ML_DBcan not be updated.
at
org.wso2.carbon.ndatasource.core.DataSourceRepository.registerDataSource(DataSourceRepository.java:344)
at
org.wso2.carbon.ndatasource.core.DataSourceRepository.addDataSource(DataSourceRepository.java:473)
at
org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSource(DataSourceManager.java:185)
... 41 more

[2]
https://github.com/wso2/product-cep/commit/355c60e860c2ff555a0b6ec82ef33714aecba932


Thanks.

-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ML] Please review and merge PR

2015-06-10 Thread Manorama Perera
Hi,

Please review and merge PR[1] - Disabling unnecessary tabs in explore view.

[1] https://github.com/wso2/product-ml/pull/171

Thanks

-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge PR

2015-06-09 Thread Manorama Perera
Hi,

Please review and merge PR [1] - UI improvements of model comparison UI [2]

[1] https://github.com/wso2/product-ml/pull/169
[2] https://wso2.org/jira/browse/ML-71

Thanks
-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ML] Please review and merge PR

2015-06-08 Thread Manorama Perera
Hi,

I've fixed the UI test failures in ML. (due to recent UI changes)
Please review and merge PR [1].

[1] https://github.com/wso2/product-ml/pull/166

Thanks

-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ML] Please review and merge PR

2015-06-04 Thread Manorama Perera
Hi,

Please review and merge [1] - fix for JIRA issue [2].

[1] https://github.com/wso2/product-ml/pull/161
[2] https://wso2.org/jira/browse/ML-65

Thanks

-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ML] Please review and merge PR

2015-06-03 Thread Manorama Perera
Hi,

Please review and merge PR [1] - Fix for JIRA [2]

[1] https://github.com/wso2/product-ml/pull/159
[2] https://wso2.org/jira/browse/ML-63

Thanks.

-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge PR

2015-06-01 Thread Manorama Perera
Hi Supun,

I've tested for quoted column headers using the linear regression sample,
by adding beginning and ending double quotes to the column headers of the
dataset.

"fixed acidity","volatile acidity","citric acid",., "quality"

Model building and prediction were successful.

As you've mentioned, the model building failure issue might have been fixed
with some earlier changes.

Thanks.

On Mon, Jun 1, 2015 at 2:42 PM, Supun Sethunga  wrote:

> Hi Manorama,
>
> Think this continues from there onwards as well. I mean, even if we
> continued from the UI, at the model building step, you will notice that the
> model building is failing.
>
> The issue was with the spark filter we used to remove the header. Reason
> behind this was, spark reads each row with quotes. But the header row we
> had stored from some earlier step ignores the quotes, and was stored as
> string. So when the header removal filter compares the header row we had
> stored, against each row read by spark, return is always false. Hence the
> actual header row does not get removed at any point. This eventually breaks
> the model building as there are multiple data types in a column (due to the
> header row).
> Not sure whether this was automatically fixed after the Dataset summary
> calculation was also done using Spark, rather than Apache commons CSV
> reader.
>
> Thanks for looking in to it.
>
>
> On Mon, Jun 1, 2015 at 2:35 PM, Nirmal Fernando  wrote:
>
>> Ok, thanks for the clarification.
>>
>> On Mon, Jun 1, 2015 at 2:32 PM, Manorama Perera 
>> wrote:
>>
>>> The issue noticed is, the analysis steps cannot be proceeded after the
>>> explore step. There's no exception trace shown.
>>>
>>> The ajax request sending fails when double quotes are included in the
>>> json payload.
>>>
>>> Thanks.
>>>
>>> On Mon, Jun 1, 2015 at 2:21 PM, Nirmal Fernando  wrote:
>>>
>>>> Merged. Thanks.
>>>>
>>>> Can you please add the exception stack trace to the Jira too?
>>>>
>>>> On Mon, Jun 1, 2015 at 2:14 PM, Manorama Perera 
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Please find the fix [1] for JIRA [2].
>>>>>
>>>>> [1] https://github.com/wso2/product-ml/pull/154
>>>>> [2] https://wso2.org/jira/browse/ML-22
>>>>>
>>>>> --
>>>>> Manorama Perera
>>>>> Software Engineer
>>>>> WSO2, Inc.;  http://wso2.com/
>>>>> Mobile : +94716436216
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Thanks & regards,
>>>> Nirmal
>>>>
>>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>>>> Mobile: +94715779733
>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Manorama Perera
>>> Software Engineer
>>> WSO2, Inc.;  http://wso2.com/
>>> Mobile : +94716436216
>>>
>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
>
> --
> *Supun Sethunga*
> Software Engineer
> WSO2, Inc.
> http://wso2.com/
> lean | enterprise | middleware
> Mobile : +94 716546324
>



-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge PR

2015-06-01 Thread Manorama Perera
The issue noticed is, the analysis steps cannot be proceeded after the
explore step. There's no exception trace shown.

The ajax request sending fails when double quotes are included in the json
payload.

Thanks.

On Mon, Jun 1, 2015 at 2:21 PM, Nirmal Fernando  wrote:

> Merged. Thanks.
>
> Can you please add the exception stack trace to the Jira too?
>
> On Mon, Jun 1, 2015 at 2:14 PM, Manorama Perera  wrote:
>
>> Hi,
>>
>> Please find the fix [1] for JIRA [2].
>>
>> [1] https://github.com/wso2/product-ml/pull/154
>> [2] https://wso2.org/jira/browse/ML-22
>>
>> --
>> Manorama Perera
>> Software Engineer
>> WSO2, Inc.;  http://wso2.com/
>> Mobile : +94716436216
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge PR

2015-06-01 Thread Manorama Perera
Hi,

Please find the fix [1] for JIRA [2].

[1] https://github.com/wso2/product-ml/pull/154
[2] https://wso2.org/jira/browse/ML-22

-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 ML 1.0.0 Alpha Released

2015-05-29 Thread Manorama Perera
WSO2 ML 1.0.0 Alpha Released!

WSO2 ML team is pleased to announce the Alpha release of WSO2 ML 1.0.0. The
distribution is available at [1]. This release includes following new
features, improvements and bug fixes.

Bug

   - [ML-37 <https://wso2.org/jira/browse/ML-37>] - Upload Larger datasets
   fail with Cannot read the file.
   - [ML-38 <https://wso2.org/jira/browse/ML-38>] - Give description
   against each Hyper Parameter
   - [ML-48 <https://wso2.org/jira/browse/ML-48>] - Missing value handling
   fails at the summary stats generation
   - [ML-50 <https://wso2.org/jira/browse/ML-50>] - [UI] If the model
   building fails, View/Download/Publish operations for that model should be
   disabled.

Improvement

   - [ML-24 <https://wso2.org/jira/browse/ML-24>] - Implement automated
   back-end tests
   - [ML-33 <https://wso2.org/jira/browse/ML-33>] - Need a way to download
   the Model
   - [ML-41 <https://wso2.org/jira/browse/ML-41>] - Publish the model to
   registry from UI
   - [ML-43 <https://wso2.org/jira/browse/ML-43>] - Support prediction for
   a set of data points in the prediction interface
   - [ML-49 <https://wso2.org/jira/browse/ML-49>] - Session/Cookie based
   Authentication for ML REST API
   - [ML-51 <https://wso2.org/jira/browse/ML-51>] - Implementing
   configuration API to retrieve machine learner configurations

New Feature

   - [ML-45 <https://wso2.org/jira/browse/ML-45>] - ML-DAS integration


The documentation for ML 1.0.0 Alpha can be found at [2]. Your feedback is
most welcome, and any issues can be reported to the project at [3].

[1] https://github.com/wso2/product-ml/releases/tag/1.0.0-alpha
[2] https://docs.wso2.com/display/ML100/WSO2+Machine+Learner+Documentation
[3] https://wso2.org/jira/browse/ML


- WSO2 ML Team -

-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge PR

2015-05-21 Thread Manorama Perera
Hi,

Please review and merge PR [1] - PMML extension.

[1] https://github.com/wso2-gpl/siddhi/pull/9

Thanks
-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge PR

2015-05-18 Thread Manorama Perera
Hi Suho,

I've fixed those issues.

Thanks.

On Mon, May 18, 2015 at 2:02 PM, Sriskandarajah Suhothayan 
wrote:

> added some comments fix them I'll merge
>
> Suho
>
> On Mon, May 18, 2015 at 12:32 PM, Supun Sethunga  wrote:
>
>> [Adding Suho]
>>
>> On Mon, May 18, 2015 at 12:29 PM, Manorama Perera 
>> wrote:
>>
>>> Hi,
>>>
>>> Please review and merge PR[1] - CEP Extension for ML Predictions.
>>>
>>> [1] https://github.com/wso2/siddhi/pull/50
>>>
>>> Thanks.
>>> --
>>> Manorama Perera
>>> Software Engineer
>>> WSO2, Inc.;  http://wso2.com/
>>> Mobile : +94716436216
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Supun Sethunga*
>> Software Engineer
>> WSO2, Inc.
>> http://wso2.com/
>> lean | enterprise | middleware
>> Mobile : +94 716546324
>>
>
>
>
> --
>
> *S. Suhothayan*
> Technical Lead & Team Lead of WSO2 Complex Event Processor
>  *WSO2 Inc. *http://wso2.com
> * <http://wso2.com/>*
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
> http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>twitter:
> http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in:
> http://lk.linkedin.com/in/suhothayan <http://lk.linkedin.com/in/suhothayan>*
>



-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge PR

2015-05-18 Thread Manorama Perera
Hi,

Please review and merge PR[1] - CEP Extension for ML Predictions.

[1] https://github.com/wso2/siddhi/pull/50

Thanks.
-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issues when installing ML features in CEP

2015-05-05 Thread Manorama Perera
Hi Lasantha, Tharik,

Thanks for the clarifications.
I'll update the adapter references in ML accordingly.

Thanks

On Tue, May 5, 2015 at 1:45 PM, Tharik Kanaka  wrote:

> Hi Lasantha,
>
> I just checked ML is using adapters of carbon-event-processing of 
> 2.0.4-SNAPSHOT
> version. Now those adapters have been migrated to carbon-analytics-commons,
> so thats why ui expecting 1.0.0 version of carbon-analytics-common. So
> Manaroma needs to update CEP adapter adapter references in ML .
>
> Regards,
>
> On Tue, May 5, 2015 at 1:39 PM, Lasantha Fernando 
> wrote:
>
>> Hi Manorama,
>>
>> Can you check whether the correct version of output.adapter.core is
>> installed in ML? It seems the output.adapter.ui is expecting a 1.0.0 to
>> 2.0.0 version of output.adapter.core.
>>
>> I think we recently did some changes in the version numbers of the output
>> adapter components. In that case, can you check whether the current
>> development version and the version imported by other output.adapter
>> components is output.adapter.core-2.0.4-SNAPSHOT version. If it is a
>> different version, pack that version to ML product instead of the
>> 2.0.4-SNAPSHOT version.
>>
>> Thanks,
>> Lasantha
>>
>> On 5 May 2015 at 13:30, Manorama Perera  wrote:
>>
>>> Hi Tharik,
>>>
>>> I've tried building product-cep as you mentioned. Issue still exists.
>>>
>>> Thanks.
>>>
>>> On Tue, May 5, 2015 at 11:44 AM, Tharik Kanaka  wrote:
>>>
>>>> Hi Manorama,
>>>>
>>>> Did you build the latest product-cep by building latest
>>>>  carbon-event-processing and latest carbon-analytics-commons?
>>>> Because all the CEP adapters has been moved to carbon-analytics-commons
>>>> (Including org.wso2.carbon.event.output.adapter.core,
>>>> org.wso2.carbon.event.output.adapter.ui and etc).
>>>>
>>>> Regards,
>>>>
>>>> On Tue, May 5, 2015 at 11:18 AM, Manorama Perera 
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I've installed ML features on CEP. Exceptions [1] are thrown while the
>>>>> CEP server is restarting.
>>>>>
>>>>> I've started CEP with -DosgiConsole and noticed some bundles are in
>>>>> INSTALLED state
>>>>>
>>>>> 211INSTALLED
>>>>> org.wso2.carbon.event.output.adapter.jms_1.0.0.SNAPSHOT
>>>>> 212INSTALLED
>>>>> org.wso2.carbon.event.output.adapter.kafka_1.0.0.SNAPSHOT
>>>>> 213ACTIVE
>>>>> org.wso2.carbon.event.output.adapter.logger_1.0.0.SNAPSHOT
>>>>> 214INSTALLED
>>>>> org.wso2.carbon.event.output.adapter.mqtt_1.0.0.SNAPSHOT
>>>>> 215ACTIVE
>>>>> org.wso2.carbon.event.output.adapter.rdbms_1.0.0.SNAPSHOT
>>>>> 216INSTALLED
>>>>> org.wso2.carbon.event.output.adapter.sms_1.0.0.SNAPSHOT
>>>>> 217ACTIVE
>>>>> org.wso2.carbon.event.output.adapter.soap_1.0.0.SNAPSHOT
>>>>> 218INSTALLED
>>>>> org.wso2.carbon.event.output.adapter.ui_1.0.0.SNAPSHOT
>>>>> 219INSTALLED
>>>>> org.wso2.carbon.event.output.adapter.websocket_1.0.0.SNAPSHOT
>>>>> 220INSTALLED
>>>>> org.wso2.carbon.event.output.adapter.websocket.local_1.0.0.SNAPSHOT
>>>>> 221INSTALLED
>>>>> org.wso2.carbon.event.output.adapter.wso2event_1.0.0.SNAPSHOT
>>>>>
>>>>> I tried *start 218* and got the following exception
>>>>>
>>>>> *BundleException: The bundle
>>>>> "org.wso2.carbon.event.output.adapter.ui_1.0.0.SNAPSHOT [218]" could not 
>>>>> be
>>>>> resolved. Reason: Missing Constraint: Import-Package:
>>>>> org.wso2.carbon.event.output.adapter.core.exception;
>>>>> version="[1.0.0,2.0.0)"osgi>*
>>>>>
>>>>> org.wso2.carbon.event.output.adapter.core_2.0.4.SNAPSHOT is installed
>>>>> with ML.
>>>>> Seems the exception is due to version conflicts of the installed
>>>>> features.
>>>>>
>>>>> How to solve this issue?
>>>>>
>>>>> Thanks
>>>>>
>>>>> [1]
>>>>>
>>>>> [2015-05-05 10:56:05,440]  INFO
>>>>> {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} -  Dep

Re: [Dev] Issues when installing ML features in CEP

2015-05-05 Thread Manorama Perera
Hi Tharik,

I've tried building product-cep as you mentioned. Issue still exists.

Thanks.

On Tue, May 5, 2015 at 11:44 AM, Tharik Kanaka  wrote:

> Hi Manorama,
>
> Did you build the latest product-cep by building latest
>  carbon-event-processing and latest carbon-analytics-commons?
> Because all the CEP adapters has been moved to carbon-analytics-commons
> (Including org.wso2.carbon.event.output.adapter.core,
> org.wso2.carbon.event.output.adapter.ui and etc).
>
> Regards,
>
> On Tue, May 5, 2015 at 11:18 AM, Manorama Perera 
> wrote:
>
>> Hi,
>>
>> I've installed ML features on CEP. Exceptions [1] are thrown while the
>> CEP server is restarting.
>>
>> I've started CEP with -DosgiConsole and noticed some bundles are in
>> INSTALLED state
>>
>> 211INSTALLED   org.wso2.carbon.event.output.adapter.jms_1.0.0.SNAPSHOT
>> 212INSTALLED
>> org.wso2.carbon.event.output.adapter.kafka_1.0.0.SNAPSHOT
>> 213ACTIVE
>> org.wso2.carbon.event.output.adapter.logger_1.0.0.SNAPSHOT
>> 214INSTALLED
>> org.wso2.carbon.event.output.adapter.mqtt_1.0.0.SNAPSHOT
>> 215ACTIVE
>> org.wso2.carbon.event.output.adapter.rdbms_1.0.0.SNAPSHOT
>> 216INSTALLED   org.wso2.carbon.event.output.adapter.sms_1.0.0.SNAPSHOT
>> 217ACTIVE
>> org.wso2.carbon.event.output.adapter.soap_1.0.0.SNAPSHOT
>> 218INSTALLED   org.wso2.carbon.event.output.adapter.ui_1.0.0.SNAPSHOT
>> 219INSTALLED
>> org.wso2.carbon.event.output.adapter.websocket_1.0.0.SNAPSHOT
>> 220INSTALLED
>> org.wso2.carbon.event.output.adapter.websocket.local_1.0.0.SNAPSHOT
>> 221INSTALLED
>> org.wso2.carbon.event.output.adapter.wso2event_1.0.0.SNAPSHOT
>>
>> I tried *start 218* and got the following exception
>>
>> *BundleException: The bundle
>> "org.wso2.carbon.event.output.adapter.ui_1.0.0.SNAPSHOT [218]" could not be
>> resolved. Reason: Missing Constraint: Import-Package:
>> org.wso2.carbon.event.output.adapter.core.exception;
>> version="[1.0.0,2.0.0)"osgi>*
>>
>> org.wso2.carbon.event.output.adapter.core_2.0.4.SNAPSHOT is installed
>> with ML.
>> Seems the exception is due to version conflicts of the installed features.
>>
>> How to solve this issue?
>>
>> Thanks
>>
>> [1]
>>
>> [2015-05-05 10:56:05,440]  INFO
>> {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} -  Deployed
>> webapp:
>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/inputwebsocket].File[/home/manorama/Products/CEP/wso2cep-4.0.0-SNAPSHOT/repository/deployment/server/webapps/inputwebsocket.war]
>> java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
>> at
>> org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet.createSingletonInstance(CXFNonSpringJaxrsServlet.java:316)
>> at
>> org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet.getResourceProviders(CXFNonSpringJaxrsServlet.java:291)
>> at
>> org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet.init(CXFNonSpringJaxrsServlet.java:107)
>> at
>> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1279)
>> at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1192)
>> at
>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
>> at
>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5210)
>> at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5493)
>> at
>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>> at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>> at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>> at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
>> at
>> org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:345)
>> at
>> org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:190)
>> at
>> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWebappDeployment(TomcatGenericWebappsDeplo

[Dev] Issues when installing ML features in CEP

2015-05-04 Thread Manorama Perera
erviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at
org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81)
at
org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38)
at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1279)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1192)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5210)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5493)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NoClassDefFoundError:
org/wso2/carbon/event/output/adapter/ui/UIOutputCallbackControllerService
at
org.wso2.carbon.servlet.TenantEventRetrievalEndpoint.(TenantEventRetrievalEndpoint.java:49)
... 108 more
Caused by: java.lang.ClassNotFoundException:
org.wso2.carbon.event.output.adapter.ui.UIOutputCallbackControllerService
at
org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:154)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
... 109 more

-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge PR

2015-04-29 Thread Manorama Perera
Hi,

I've include the modifications to the mediator as suggested in the reviews.
Please find the updated PR [1].

[1] https://github.com/wso2/carbon-mediation/pull/100

Thanks

On Wed, Apr 1, 2015 at 9:58 AM, Manorama Perera  wrote:

> Hi,
>
> Please review and merge PR[1] - Machine Learner Mediator
>
> [1] https://github.com/wso2/carbon-mediation/pull/100
>
> Thanks.
>
> --
> Manorama Perera
> Software Engineer
> WSO2, Inc.;  http://wso2.com/
> Mobile : +94716436216
>



-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ML] Error while creating dataset

2015-04-29 Thread Manorama Perera
 at
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
> at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
> at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1721)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1679)
> 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)
> Caused by: org.wso2.carbon.ml.core.exceptions.MLMalformedDatasetException:
> Failed to parse the given input stream. Cause:
> java.lang.ArrayIndexOutOfBoundsException
> at
> org.wso2.carbon.ml.core.utils.MLUtils.getSamplePoints(MLUtils.java:108)
> at
> org.wso2.carbon.ml.core.impl.MLDatasetProcessor.process(MLDatasetProcessor.java:243)
> ... 51 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException
>
>
>
>
> Is there any other configurations that I need to follow to run it?
>
>
> --
> *-Damith Senanayake-*
> +94712205272
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] ESB Mediator for WSO2 Machine Learner

2015-03-31 Thread Manorama Perera
Hi Chanaka,

Thanks for the review. I'll do the necessary changes accordingly.

I'll add the required unit tests as well.

Thanks.

On Wed, Apr 1, 2015 at 10:25 AM, Chanaka Fernando  wrote:

> Hi Manorama,
>
> I have added few comments to the PR. Please review them and do the
> necessary changes to the PR. Is it possible to write some unit tests for
> the mediator?
>
> Thanks,
> Chanaka
>
> On Wed, Apr 1, 2015 at 10:03 AM, Manorama Perera 
> wrote:
>
>> Hi Nirmal,
>>
>> I've sent the PR[1] to carbon-mediation repo
>>
>> [1] https://github.com/wso2/carbon-mediation/pull/100
>>
>> Thanks.
>>
>> On Wed, Apr 1, 2015 at 6:53 AM, Nirmal Fernando  wrote:
>>
>>> [Removing architecture@ and moving the discussion to dev@]
>>>
>>> Hi Manorama,
>>>
>>> Shall we work with the ESB team and get this mediator merged to the
>>> relevant repo please?
>>>
>>> On Wed, Mar 25, 2015 at 3:35 PM, Nirmal Fernando 
>>> wrote:
>>>
>>>> Thanks everyone.
>>>>
>>>> So, we decided to have following improvements;
>>>>
>>>> 1. /s/ml/machineLearner
>>>> 2. Instead of specifying storage-location, we should get the model-name
>>>> from the user.
>>>> 3. feature elements should be wrapped from a features element.
>>>> 4. prediction element currently replaces an existing element in the
>>>> incoming message, we can support the append as well.
>>>>
>>>> On Tue, Mar 24, 2015 at 11:56 PM, Chanaka Fernando 
>>>> wrote:
>>>>
>>>>> Hi Manorama,
>>>>>
>>>>> I guess that the names are not finalized yet. The name "ml" does not
>>>>> make much impression on the users. Please give a valid name like
>>>>> "MachineLearner" and that would make life easier for ESB developers. All
>>>>> our mediators has self explanatory names.
>>>>>
>>>>> Thanks,
>>>>> Chanaka
>>>>>
>>>>> On Tue, Mar 24, 2015 at 4:09 PM, Supun Sethunga 
>>>>> wrote:
>>>>>
>>>>>> Hi Maninda,
>>>>>>
>>>>>> With the initial release of ML, the model would not update on the
>>>>>> fly. If we need to update the model, it has to be done in ML by training 
>>>>>> a
>>>>>> model with the same configurations, but with the new data. In future
>>>>>> releases we will be looking at this for possible improvements.
>>>>>>
>>>>>> Here the term "domain" refers to the definition of the data which use
>>>>>> to train the model. In the case you mentioned, If the model was trained
>>>>>> using the data collected from all incoming requests; then domain is "all
>>>>>> sales". and can be used to handle all incoming requests. But if the model
>>>>>> was trained using the data collected from the incoming requests of, say
>>>>>> Seller_A, then it cannot be used to predict/handle incoming requests of 
>>>>>> all
>>>>>> sellers, which is a different domain.
>>>>>> When we say "domain", it also includes the Schema (set of
>>>>>> features/variables) of the dataset on which the prediction is going to be
>>>>>> done. Handling multiple schema is tricky. If the data from a different
>>>>>> domain doesn't contain some of the features (variables in the dataset) 
>>>>>> used
>>>>>> to train the model, then that model cannot be used to predict on that
>>>>>> particular data. So we have to work with this limitation, hence all the
>>>>>> data has to be on the same domain (i.e. should have the same schema).
>>>>>>
>>>>>> Regards,
>>>>>> Supun
>>>>>>
>>>>>> On Tue, Mar 24, 2015 at 3:10 PM, Maninda Edirisooriya <
>>>>>> mani...@wso2.com> wrote:
>>>>>>
>>>>>>> Does this update the model time to time or use the same modal
>>>>>>> throughout the ESB up time? It is better if we can update the model 
>>>>>>> while
>>>>>>> the ESB is up and running.
>>>>>>> There may be some use cases related to multiple domains right? So I
>>>>>>> think would be more g

Re: [Dev] [Architecture] ESB Mediator for WSO2 Machine Learner

2015-03-31 Thread Manorama Perera
Hi Nirmal,

I've sent the PR[1] to carbon-mediation repo

[1] https://github.com/wso2/carbon-mediation/pull/100

Thanks.

On Wed, Apr 1, 2015 at 6:53 AM, Nirmal Fernando  wrote:

> [Removing architecture@ and moving the discussion to dev@]
>
> Hi Manorama,
>
> Shall we work with the ESB team and get this mediator merged to the
> relevant repo please?
>
> On Wed, Mar 25, 2015 at 3:35 PM, Nirmal Fernando  wrote:
>
>> Thanks everyone.
>>
>> So, we decided to have following improvements;
>>
>> 1. /s/ml/machineLearner
>> 2. Instead of specifying storage-location, we should get the model-name
>> from the user.
>> 3. feature elements should be wrapped from a features element.
>> 4. prediction element currently replaces an existing element in the
>> incoming message, we can support the append as well.
>>
>> On Tue, Mar 24, 2015 at 11:56 PM, Chanaka Fernando 
>> wrote:
>>
>>> Hi Manorama,
>>>
>>> I guess that the names are not finalized yet. The name "ml" does not
>>> make much impression on the users. Please give a valid name like
>>> "MachineLearner" and that would make life easier for ESB developers. All
>>> our mediators has self explanatory names.
>>>
>>> Thanks,
>>> Chanaka
>>>
>>> On Tue, Mar 24, 2015 at 4:09 PM, Supun Sethunga  wrote:
>>>
>>>> Hi Maninda,
>>>>
>>>> With the initial release of ML, the model would not update on the fly.
>>>> If we need to update the model, it has to be done in ML by training a model
>>>> with the same configurations, but with the new data. In future releases we
>>>> will be looking at this for possible improvements.
>>>>
>>>> Here the term "domain" refers to the definition of the data which use
>>>> to train the model. In the case you mentioned, If the model was trained
>>>> using the data collected from all incoming requests; then domain is "all
>>>> sales". and can be used to handle all incoming requests. But if the model
>>>> was trained using the data collected from the incoming requests of, say
>>>> Seller_A, then it cannot be used to predict/handle incoming requests of all
>>>> sellers, which is a different domain.
>>>> When we say "domain", it also includes the Schema (set of
>>>> features/variables) of the dataset on which the prediction is going to be
>>>> done. Handling multiple schema is tricky. If the data from a different
>>>> domain doesn't contain some of the features (variables in the dataset) used
>>>> to train the model, then that model cannot be used to predict on that
>>>> particular data. So we have to work with this limitation, hence all the
>>>> data has to be on the same domain (i.e. should have the same schema).
>>>>
>>>> Regards,
>>>> Supun
>>>>
>>>> On Tue, Mar 24, 2015 at 3:10 PM, Maninda Edirisooriya >>> > wrote:
>>>>
>>>>> Does this update the model time to time or use the same modal
>>>>> throughout the ESB up time? It is better if we can update the model while
>>>>> the ESB is up and running.
>>>>> There may be some use cases related to multiple domains right? So I
>>>>> think would be more generic and useful if we can apply the mediator not
>>>>> based on the domain but with a custom argument expression. For example if
>>>>> the target service is SalesService and the operation is getTotalSalesCount
>>>>> we want to use the modal to analyze all incoming requests from all 
>>>>> domains.
>>>>> WDYT?
>>>>>
>>>>> Thanks.
>>>>>
>>>>>
>>>>> *Maninda Edirisooriya*
>>>>> Senior Software Engineer
>>>>>
>>>>> *WSO2, Inc.*lean.enterprise.middleware.
>>>>>
>>>>> *Blog* : http://maninda.blogspot.com/
>>>>> *E-mail* : mani...@wso2.com
>>>>> *Skype* : @manindae
>>>>> *Twitter* : @maninda
>>>>>
>>>>> On Tue, Mar 24, 2015 at 12:00 PM, Manorama Perera 
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> ESB mediator for WSO2 ML enables making use of the models generated
>>>>>> by WSO2 Machine Leaner, to predict values in message mediation in ESB.
>>>>>>
>>>>>>

[Dev] Please review and merge PR

2015-03-31 Thread Manorama Perera
Hi,

Please review and merge PR[1] - Machine Learner Mediator

[1] https://github.com/wso2/carbon-mediation/pull/100

Thanks.

-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue while trying to access installed features at the ESB mediator initialization

2015-03-27 Thread Manorama Perera
Hi Chanaka,

[1] contains the Machine Learner Mediator source code.
[2] This is the MachineLearnerMediatorFactory class which initializes the
MLModelHandler.

Here is the method call

machineLearnerMediator.initializeModel();

[1]
https://github.com/manoramahp/carbon-mediation/tree/master/components/mediators/machine-learner
[2]
https://github.com/manoramahp/carbon-mediation/blob/master/components/mediators/machine-learner/org.wso2.carbon.mediator.machinelearner/src/main/java/org/wso2/carbon/mediator/machinelearner/xml/MachineLearnerMediatorFactory.java

Thanks

On Fri, Mar 27, 2015 at 3:20 PM, Chanaka Fernando  wrote:

> Hi Manorama,
>
> If you could share the code you have written for this mediator may be we
> can help.
>
>
> Thanks,
> Chanaka
>
> On Fri, Mar 27, 2015 at 3:04 PM, Isuru Udana  wrote:
>
>> Hi Manorama,
>>
>> This could be due to a bundle/service activation order issue. Could be
>> ESB is starting up and deploying services, before activating your component
>> MLModelHandler.
>>
>> On Fri, Mar 27, 2015 at 8:38 AM, Manorama Perera 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm implementing the ESB mediator for WSO2 Machine Learner.
>>>
>>> To use this mediator, Machine Learner features need to be installed in
>>> the ESB.
>>>
>>> I have a requirement to create a new instance of
>>> org.wso2.carbon.ml.core.impl.MLModelHandler at the mediator initialization.
>>> (MLModelHandler class will be avaiable in the classpath once the Machine
>>> Learner feature is installed)
>>>
>>> At the initialization of the MLModelHandler, it needs to read some
>>> configuration files (in repository/conf).
>>>
>>> I tried the following steps and got the below mentioned exception,
>>> indicating that the proxy cannot be loaded.
>>>
>>>1. Add the machineLearner mediator in the inSequence of a proxy
>>>service. (Machine Learner feature is already installed in ESB)
>>>2. Restart the ESB server
>>>3. At the server startup, a null pointer exception is thrown as
>>>below, indicating that the configurations required at the initlializatoin
>>>of org.wso2.carbon.ml.core.impl.MLModelHandler are not loaded.
>>>
>>> WARN - SynapseXMLConfigurationFactory Proxy Service configuration:
>>> MLMediatorTestProxy cannot be built - Continue in fail-safe mode
>>> java.lang.NullPointerException
>>> at
>>> org.wso2.carbon.ml.core.utils.ThreadExecutor.(ThreadExecutor.java:32)
>>> at
>>> org.wso2.carbon.ml.core.impl.MLModelHandler.(MLModelHandler.java:68)
>>> at
>>> org.wso2.carbon.mediator.machinelearner.util.ModelHandler.(ModelHandler.java:65)
>>> at
>>> org.wso2.carbon.mediator.machinelearner.MachineLearnerMediator.(MachineLearnerMediator.java:45)
>>> at
>>> org.wso2.carbon.mediator.machinelearner.xml.MachineLearnerMediatorFactory.createSpecificMediator(MachineLearnerMediatorFactory.java:46)
>>>
>>> I noticed that, at the ESB server start-up, the mediator constructor is
>>> called twice per each proxy server configuration.
>>>
>>> However at the second time of mediator initialization, the
>>> configurations are available. So the proxy service is loaded successfully.
>>>
>>> It seems that the proxy is loaded before loading the configuration files
>>> required for the installed Machine Learner feature.
>>>
>>> How can I overcome this issue?
>>>
>>> Isn't it a good practice to access the installed features at the
>>> mediator initialization?
>>>
>>> As a solution, I can use the lazy loading approach. So that the new
>>> instance of org.wso2.carbon.ml.core.impl.MLModelHandler will be initialized
>>> only when the first message comes to the the mediator's mediate() method.
>>> Is this a suitable approach?
>>>
>>> Thanks.
>>>
>>> --
>>> Manorama Perera
>>> Software Engineer
>>> WSO2, Inc.;  http://wso2.com/
>>> Mobile : +94716436216
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Isuru Udana*
>> Senior
>> *Software Engineer*
>> WSO2 Inc.; http://wso2.com
>> email: isu...@wso2.com cell: +94 77 3791887
>> blog: http://mytecheye.blogspot.com/
>> twitter: http://twitter.com/isudana
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
> Chanaka Fernando
> Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
> Wordpress:http://chanakaudaya.wordpress.com
>
>
>
>


-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Issue while trying to access installed features at the ESB mediator initialization

2015-03-26 Thread Manorama Perera
Hi,

I'm implementing the ESB mediator for WSO2 Machine Learner.

To use this mediator, Machine Learner features need to be installed in the
ESB.

I have a requirement to create a new instance of
org.wso2.carbon.ml.core.impl.MLModelHandler at the mediator initialization.
(MLModelHandler class will be avaiable in the classpath once the Machine
Learner feature is installed)

At the initialization of the MLModelHandler, it needs to read some
configuration files (in repository/conf).

I tried the following steps and got the below mentioned exception,
indicating that the proxy cannot be loaded.

   1. Add the machineLearner mediator in the inSequence of a proxy service.
   (Machine Learner feature is already installed in ESB)
   2. Restart the ESB server
   3. At the server startup, a null pointer exception is thrown as below,
   indicating that the configurations required at the initlializatoin of
   org.wso2.carbon.ml.core.impl.MLModelHandler are not loaded.

WARN - SynapseXMLConfigurationFactory Proxy Service configuration:
MLMediatorTestProxy cannot be built - Continue in fail-safe mode
java.lang.NullPointerException
at
org.wso2.carbon.ml.core.utils.ThreadExecutor.(ThreadExecutor.java:32)
at
org.wso2.carbon.ml.core.impl.MLModelHandler.(MLModelHandler.java:68)
at
org.wso2.carbon.mediator.machinelearner.util.ModelHandler.(ModelHandler.java:65)
at
org.wso2.carbon.mediator.machinelearner.MachineLearnerMediator.(MachineLearnerMediator.java:45)
at
org.wso2.carbon.mediator.machinelearner.xml.MachineLearnerMediatorFactory.createSpecificMediator(MachineLearnerMediatorFactory.java:46)

I noticed that, at the ESB server start-up, the mediator constructor is
called twice per each proxy server configuration.

However at the second time of mediator initialization, the configurations
are available. So the proxy service is loaded successfully.

It seems that the proxy is loaded before loading the configuration files
required for the installed Machine Learner feature.

How can I overcome this issue?

Isn't it a good practice to access the installed features at the mediator
initialization?

As a solution, I can use the lazy loading approach. So that the new
instance of org.wso2.carbon.ml.core.impl.MLModelHandler will be initialized
only when the first message comes to the the mediator's mediate() method.
Is this a suitable approach?

Thanks.

-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge PR

2015-03-24 Thread Manorama Perera
Hi,

Please review and merge PR [1]. I have added the necessary configuration
files to install ML feature and some code fixes in data layer.

[1] https://github.com/wso2/product-ml/pull/67

Thanks

-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Destination validation for Authentication Request failed

2015-03-19 Thread Manorama Perera
Hi Thilini,

Try configuring the following in /repository/conf/identity.xml

*https://localhost:9443/samlsso
<https://localhost:9443/samlsso>*

Thanks.

On Thu, Mar 19, 2015 at 3:55 PM, Chamin Nalinda  wrote:

> Hi,
>
> I reckon the pash is "/webapps/travelocity.com/WEB-INF.
>
> On Thu, Mar 19, 2015 at 3:43 PM, Thilini Cooray  wrote:
>
>> Hi Chamin,
>>
>> Can you please tell me where exactly I can find that configuration?
>> The web.xml file of Travelocity app does not consist of IdpUrl parameter.
>>
>> Thanks.
>>
>> On Thu, Mar 19, 2015 at 3:30 PM, Chamin Nalinda  wrote:
>>
>>> Hi Thilini,
>>>
>>> Try changing the following in WEB-INF file in the Travelocity app inside
>>> Tomcat.
>>>
>>> 
>>> IdpUrl
>>> https://localhost:*9444*
>>> /samlsso
>>>  
>>>
>>> On Thu, Mar 19, 2015 at 3:16 PM, Thilini Cooray 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am following the Identity Server 5.0.0 Documentation sample [1].
>>>> I have changed the default port for IS and now my Identity Server runs
>>>> on port 9444.
>>>>
>>>> When I enter credentials to "login with SAML from Identity Server" for
>>>> travelocity.com app, I get following warning on the IS console
>>>>
>>>> *WARN
>>>> {org.wso2.carbon.identity.sso.saml.processors.SPInitSSOAuthnRequestProcessor}
>>>> -  Destination validation for Authentication Request failed. Received:
>>>> [https://localhost:9444/samlsso <https://localhost:9444/samlsso>].
>>>> Expected: [https://localhost:9443/samlsso 
>>>> <https://localhost:9443/samlsso>]*
>>>>
>>>> and my browser shows the following
>>>>
>>>>
>>>> ​I have already changed the port to 9444 in travelocity.properties file
>>>> which is deployed in Apache Tomcat.
>>>>
>>>> I would like to know which configurations needs to be changed in a
>>>> situation where port which Identity Server runs is not 9443 (default port).
>>>>
>>>> [1]
>>>> https://docs.wso2.com/display/IS500/Configuring+Single+Sign-On+with+SAML+2.0
>>>>
>>>> Thank you.
>>>>
>>>> --
>>>> Best Regards,
>>>>
>>>> *Thilini Cooray*
>>>> Software Engineer
>>>> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
>>>> E-mail : thili...@wso2.com
>>>>
>>>> WSO2 Inc. www.wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Chamin Nalinda
>>> Research Undergraduate
>>> University of Colombo School of Computing (UCSC).
>>> Student Member IEEE (92387118)
>>>
>>> LinkedIn: https://www.linkedin.com/in/chaminnalinda
>>> GitHub: https://github.com/CoolCK
>>> SlideShare: http://www.slideshare.net/ChaminNalindaLokuGam/
>>> Blog: http://techspiro.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>> Best Regards,
>>
>> *Thilini Cooray*
>> Software Engineer
>> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
>> E-mail : thili...@wso2.com
>>
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> Chamin Nalinda
> Research Undergraduate
> University of Colombo School of Computing (UCSC).
> Student Member IEEE (92387118)
>
> LinkedIn: https://www.linkedin.com/in/chaminnalinda
> GitHub: https://github.com/CoolCK
> SlideShare: http://www.slideshare.net/ChaminNalindaLokuGam/
> Blog: http://techspiro.blogspot.com/
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unable to see a manage menu with given permissions on management console.

2015-03-05 Thread Manorama Perera
Hi Hemika,

I think the reason for the menu not being displayed is that the name of the
xml file is incorrect.
It should be "component.xml", not "components.xml".

Thanks.

On Wed, Mar 4, 2015 at 3:41 PM, Hemika Kodikara  wrote:

> I believe I made a mistake here by adding "/
> permission/admin/login" permission to the parent
> node as it the menu items should be under "Manage" node.
>
> So I removed the specific permissions to it, yet I still cannot see the
> menu item with "queue_menu" as id. Any advice on this ?
>
> My purpose is to show the following menu items based on the permissions
> provided. In way that the parent menu item does not hide them.
>
>  
> queue_browse
> browse
>
> org.wso2.carbon.andes.ui.i18n.Resources
> queue_menu
> ../queues/queue_details.jsp
> region1
> 10
> manage
> ../queues/images/list.gif
>
> /permission/admin/manage/queue/browseQueue
> 
> 
> queues_add
> add
>
> org.wso2.carbon.andes.ui.i18n.Resources
> queue_menu
> ../queues/queue_add.jsp
> region1
> 45
> home
> ../queues/images/add.gif
>
> /permission/admin/manage/queue/addQueue
> 
>
> Hope I am clear on the description.
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +9477762
>
> On Wed, Mar 4, 2015 at 11:48 AM, Hemika Kodikara  wrote:
>
>> Hi All,
>>
>> I have set the following permissions on the components.xml file.
>>
>> 
>> queue_menu
>> queues
>>
>> org.wso2.carbon.andes.ui.i18n.Resources
>> manage_menu
>> #
>> region1
>> 25
>> home
>> ../queues/images/queues.gif
>>
>> /permission/admin/login
>> 
>> 
>> queue_browse
>> browse
>>
>> org.wso2.carbon.andes.ui.i18n.Resources
>> queue_menu
>> ../queues/queue_details.jsp
>> region1
>> 10
>> manage
>> ../queues/images/list.gif
>>
>> /permission/admin/manage/queue/browseQueue
>> 
>> 
>> queues_add
>> add
>>
>> org.wso2.carbon.andes.ui.i18n.Resources
>> queue_menu
>> ../queues/queue_add.jsp
>> region1
>> 45
>> home
>> ../queues/images/add.gif
>>
>> /permission/admin/manage/queue/addQueue
>> 
>>
>> And I have created a role with the following permissions and added a user.
>>
>>
>> ​
>>
>> But when logged in from that specific user of that role, the user cannot
>> see "queue_browse" and "queues_add" menus in the  manage menu of management
>> console.
>>
>>
>> ​
>>
>> Any idea why this is not being displayed ?
>>
>> Regards,
>> Hemika
>>
>> Hemika Kodikara
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middleware
>> http://wso2.com
>>
>> Mobile : +9477762
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Building from source Fails

2015-02-20 Thread Manorama Perera
mmand
> [ERROR]   mvn  -rf :org.wso2.esb.samples
>
> [1] http://svn.wso2.org/repos/wso2/carbon/orbit/trunk/
> [2] http://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/
> [3] http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/
>
> Please help me to fix the issue.
>
> Thanks and Regards,
>
> Hasanthi Dissanayake
>
> Software Engineer | WSO2
>
> E: hasan...@wso2.com 
> M :0718407133| http://wso2.com <http://wso2.com/>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Axis2 server bundled with the ESB cannot be started when AXIS2_HOME is set

2014-12-06 Thread Manorama Perera
Hi,

Thank you Prasanna and Udara!

'unset AXIS2_HOME' seems to be the easy way, without editing .bashrc file.
It worked fine.

Thanks

On Sun, Dec 7, 2014 at 11:53 AM, Udara Liyanage  wrote:

> Hi,
>
> Seems axis2 home is fetching from environment variable. Thus refers to
> existing setup. Please try by unsetting environment variable by
>
> unset AXIS2_HOME
>
> This unset only for current prompt.
>
>
>
>
>
> Touched, not typed. Erroneous words are a feature, not a typo.
>



-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Axis2 server bundled with the ESB cannot be started when AXIS2_HOME is set

2014-12-05 Thread Manorama Perera
I've tried to run the ESB sample according to the tutorial[1].

When I try to start the Axis2 server it displays the following message on
console.

ls: cannot access
/home/manorama/axis2-1.6.2/../../repository/components/plugins/*.jar: No
such file or directory
ls: cannot access
/home/manorama/axis2-1.6.2/../../repository/components/plugins/*.jar: No
such file or directory
 Using JAVA_HOME:   /usr/local/java/jdk1.7.0_03
 Using AXIS2 Repository :   /home/manorama/axis2-1.6.2/repository
 Using AXIS2 Configuration :
/home/manorama/axis2-1.6.2/repository/conf/axis2.xml
Error: Could not find or load main class samples.util.SampleAxis2Server

I've another standalone Axis2 server installed in
/home/manorama/axis2-1.6.2, and the AXIS2_HOME variable is set to that
installation directory.
According to the above message, AXIS2 Repository and AXIS2 Configuration
refers to the location given by AXIS2_HOME variable.

When I removed the AXIS2_HOME variable, server started as expected.

Is there any configuration need to be done in ESB to avoid referring to the
AXIS2_HOME varialble or just removing AXIS2_HOME from .bashrc is enough?

[1] https://docs.wso2.com/display/ESB481/Lesson+Two%3A+Mediating+Messages

-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev