Re: [Dev] [C5][BPS] Startup errors with new kernel SNAPSHOT

2016-05-16 Thread Niranjan Karunanandham
Hi all,

As per the offline discussion with Samiyuru, we need to modify the unit
test for HttpServerTest to read from the config files which has the new
default values.

@Samiyuru: In-order to support msf4j to run in standalone mode, don't we
need to make changes to the msf4j code to set default values if the config
file does not exist since carbon-transports expects these properties in the
config file.

Regards,
Nira

On Tue, May 17, 2016 at 10:39 AM, Samiyuru Senarathne 
wrote:

> Hi Niranjan,
>
> MSF4J core unit tests use 2 transport config files [1]. You can add the
> new config to these files.
>
> [1] https://github.com/wso2/msf4j/tree/master/core/src/test/resources
>
> Best Regards,
> Samiyuru
>
>
> On Tue, May 17, 2016 at 10:27 AM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi all,
>>
>> I looked into the unit tests that are failing in msf4j[1] after upgrading
>> carbon-transports to v 2.0.3-SNAPSHOT and noticed that this is happening
>> when initializing the MicroserviceRunner instance. As per the error [2],
>> this is coming from carbon-transports. As per the offline discussion I had
>> with Senduran, a new config has been added called "transportProperties"
>> which needs to be set. How do we set these values in the case of a unit
>> test.
>>
>> [1] -
>> https://github.com/wso2/msf4j/blob/master/core/src/test/java/org/wso2/msf4j/internal/router/HttpServerTest.java
>> [2] -
>> [org.wso2.msf4j.MicroservicesRunner] : Microservices server started in
>> 10113ms
>> [org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer] :
>> Calling CarbonNettyServerInitializer OSGi service
>> org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer@7fcb9c71
>> [org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer]
>> : Initializing source channel pipeline
>> [io.netty.util.ResourceLeakDetector] : -Dio.netty.leakDetectionLevel:
>> simple
>> [io.netty.channel.ChannelInitializer] : Failed to initialize a channel.
>> Closing: [id: 0x1e800c9b, localhost/127.0.0.1:56191 => /127.0.0.1:8081]
>> java.lang.ExceptionInInitializerError
>> at
>> org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer.initChannel(CarbonNettyServerInitializer.java:102)
>> at
>> org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer.initChannel(NettyServerInitializer.java:81)
>> at
>> org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer.initChannel(NettyServerInitializer.java:36)
>> at
>> io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:68)
>> at
>> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:133)
>> at
>> io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:119)
>> at
>> io.netty.channel.DefaultChannelPipeline.fireChannelRegistered(DefaultChannelPipeline.java:733)
>> at
>> io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:450)
>> at
>> io.netty.channel.AbstractChannel$AbstractUnsafe.access$100(AbstractChannel.java:378)
>> at
>> io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:424)
>> at
>> io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:356)
>> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
>> at
>> io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110)
>> at
>> io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: java.lang.NullPointerException
>> at
>> org.wso2.carbon.transport.http.netty.listener.RequestSizeValidationConfiguration.(RequestSizeValidationConfiguration.java:51)
>> at
>> org.wso2.carbon.transport.http.netty.listener.RequestSizeValidationConfiguration.(RequestSizeValidationConfiguration.java:31)
>> ... 15 more
>> [org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer] :
>> Calling CarbonNettyServerInitializer OSGi service
>> org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer@7fcb9c71
>> [org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer]
>> : Initializing source channel pipeline
>> [io.netty.channel.ChannelInitializer] : Failed to initialize a channel.
>> Closing: [id: 0x0a08449b, localhost/127.0.0.1:56192 => /127.0.0.1:8081]
>> java.lang.NoClassDefFoundError: Could not initialize class
>> org.wso2.carbon.transport.http.netty.listener.RequestSizeValidationConfiguration
>> at
>> org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer.initChannel(CarbonNettyServerInitializer.java:102)
>> at
>> org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer.initChannel(NettyServerInitializer.java:81)
>> at
>> 

Re: [Dev] G-Reg extension for integration with API-M

2016-05-16 Thread Shazni Nazir
Since this component is developed as an extension, it can be deployed as a
jar to the repository/components/lib as a library. And other artifacts like
rxts can be added to G-Reg in runtime. With this setup I can test with a
standalone G-Reg 5.2.0 with a standalone API-M 1.10.0 without any hassle.
Currently as I develop this implementation, I do testing as it goes.

Shazni Nazeer
Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com

On Tue, May 17, 2016 at 6:33 AM, Samisa Abeysinghe  wrote:

> Great!
>
> How are we planning to test this implementation?
>
> Thanks,
> Samisa...
>
>
> Samisa Abeysinghe
>
> Vice President Delivery
>
> WSO2 Inc.
> http://wso2.com
>
>
> On Mon, May 16, 2016 at 7:31 PM, Shazni Nazir  wrote:
>
>> Yes Samisa, so far so good.
>>
>> I'll also be having a review with NuwanB and G-Reg team by Thursday to
>> see if things are aligned.
>> On 16 May 2016 6:33 p.m., "Samisa Abeysinghe"  wrote:
>>
>> Are we on track in terms of the time schedule to deliver this?
>>
>> Thanks,
>> Samisa...
>>
>>
>> Samisa Abeysinghe
>>
>> Vice President Delivery
>>
>> WSO2 Inc.
>> http://wso2.com
>>
>>
>> On Mon, May 16, 2016 at 4:45 PM, Shazni Nazir  wrote:
>>
>>> Hi all,
>>>
>>> Following is the current update of the G-Reg extension for API-M
>>> integration.
>>>
>>>- API rxt - created, but additional fields needs to be added.
>>>
>>> Some fields like thumbnail, sequences for in, out, fault have few
>>> limitations on the rxt end. Pure rxt's doesn't support for file system
>>> browse. I'm also looking into publisher extension to see if this could be
>>> added in publisher app end.
>>>
>>> Further, the API-M REST API [1] does provide the thumbnailUrl and
>>> sequence. Need to verify if this supports file based urls.
>>>
>>>- Developed the skeleton handler code
>>>- Developed the code to get consumer key and secret using the API-M
>>>REST API
>>>- Developed the code to get the access and the refresh token using
>>>the API-M REST API
>>>- Developing the artifact attribute reading logic - in progress
>>>
>>> TODO's
>>>
>>>- Add missing fields to ext
>>>- Reading the api manager related configuration from a configuration
>>>file
>>>- Provide rxt fields to read API Definition and populate the payload
>>>according to that
>>>- Develop the request json payload creation for API creation - in
>>>progress
>>>- Develop the access token regeneration when token expires
>>>- Develop the life-cycle configuration for the API lifecycle
>>>- Develop the executor for the lifecycle state change
>>>
>>>
>>> [1]
>>> https://docs.wso2.com/display/AM1100/apidocs/publisher/#!/operations#APIsApi#apisPost
>>>
>>>  regards,
>>>
>>> Shazni Nazeer
>>> Mob : +94 37331
>>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>>> Blog : http://shazninazeer.blogspot.com
>>>
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5][BPS] Startup errors with new kernel SNAPSHOT

2016-05-16 Thread Samiyuru Senarathne
Hi Niranjan,

MSF4J core unit tests use 2 transport config files [1]. You can add the new
config to these files.

[1] https://github.com/wso2/msf4j/tree/master/core/src/test/resources

Best Regards,
Samiyuru


On Tue, May 17, 2016 at 10:27 AM, Niranjan Karunanandham 
wrote:

> Hi all,
>
> I looked into the unit tests that are failing in msf4j[1] after upgrading
> carbon-transports to v 2.0.3-SNAPSHOT and noticed that this is happening
> when initializing the MicroserviceRunner instance. As per the error [2],
> this is coming from carbon-transports. As per the offline discussion I had
> with Senduran, a new config has been added called "transportProperties"
> which needs to be set. How do we set these values in the case of a unit
> test.
>
> [1] -
> https://github.com/wso2/msf4j/blob/master/core/src/test/java/org/wso2/msf4j/internal/router/HttpServerTest.java
> [2] -
> [org.wso2.msf4j.MicroservicesRunner] : Microservices server started in
> 10113ms
> [org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer] :
> Calling CarbonNettyServerInitializer OSGi service
> org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer@7fcb9c71
> [org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer]
> : Initializing source channel pipeline
> [io.netty.util.ResourceLeakDetector] : -Dio.netty.leakDetectionLevel:
> simple
> [io.netty.channel.ChannelInitializer] : Failed to initialize a channel.
> Closing: [id: 0x1e800c9b, localhost/127.0.0.1:56191 => /127.0.0.1:8081]
> java.lang.ExceptionInInitializerError
> at
> org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer.initChannel(CarbonNettyServerInitializer.java:102)
> at
> org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer.initChannel(NettyServerInitializer.java:81)
> at
> org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer.initChannel(NettyServerInitializer.java:36)
> at
> io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:68)
> at
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:133)
> at
> io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:119)
> at
> io.netty.channel.DefaultChannelPipeline.fireChannelRegistered(DefaultChannelPipeline.java:733)
> at
> io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:450)
> at
> io.netty.channel.AbstractChannel$AbstractUnsafe.access$100(AbstractChannel.java:378)
> at
> io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:424)
> at
> io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:356)
> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
> at
> io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110)
> at
> io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NullPointerException
> at
> org.wso2.carbon.transport.http.netty.listener.RequestSizeValidationConfiguration.(RequestSizeValidationConfiguration.java:51)
> at
> org.wso2.carbon.transport.http.netty.listener.RequestSizeValidationConfiguration.(RequestSizeValidationConfiguration.java:31)
> ... 15 more
> [org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer] :
> Calling CarbonNettyServerInitializer OSGi service
> org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer@7fcb9c71
> [org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer]
> : Initializing source channel pipeline
> [io.netty.channel.ChannelInitializer] : Failed to initialize a channel.
> Closing: [id: 0x0a08449b, localhost/127.0.0.1:56192 => /127.0.0.1:8081]
> java.lang.NoClassDefFoundError: Could not initialize class
> org.wso2.carbon.transport.http.netty.listener.RequestSizeValidationConfiguration
> at
> org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer.initChannel(CarbonNettyServerInitializer.java:102)
> at
> org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer.initChannel(NettyServerInitializer.java:81)
> at
> org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer.initChannel(NettyServerInitializer.java:36)
> at
> io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:68)
> at
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:133)
> at
> io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:119)
> at
> io.netty.channel.DefaultChannelPipeline.fireChannelRegistered(DefaultChannelPipeline.java:733)
> at
> io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:450)
> at
> 

Re: [Dev] [C5][BPS] Startup errors with new kernel SNAPSHOT

2016-05-16 Thread Niranjan Karunanandham
Hi all,

I looked into the unit tests that are failing in msf4j[1] after upgrading
carbon-transports to v 2.0.3-SNAPSHOT and noticed that this is happening
when initializing the MicroserviceRunner instance. As per the error [2],
this is coming from carbon-transports. As per the offline discussion I had
with Senduran, a new config has been added called "transportProperties"
which needs to be set. How do we set these values in the case of a unit
test.

[1] -
https://github.com/wso2/msf4j/blob/master/core/src/test/java/org/wso2/msf4j/internal/router/HttpServerTest.java
[2] -
[org.wso2.msf4j.MicroservicesRunner] : Microservices server started in
10113ms
[org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer] :
Calling CarbonNettyServerInitializer OSGi service
org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer@7fcb9c71
[org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer]
: Initializing source channel pipeline
[io.netty.util.ResourceLeakDetector] : -Dio.netty.leakDetectionLevel: simple
[io.netty.channel.ChannelInitializer] : Failed to initialize a channel.
Closing: [id: 0x1e800c9b, localhost/127.0.0.1:56191 => /127.0.0.1:8081]
java.lang.ExceptionInInitializerError
at
org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer.initChannel(CarbonNettyServerInitializer.java:102)
at
org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer.initChannel(NettyServerInitializer.java:81)
at
org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer.initChannel(NettyServerInitializer.java:36)
at
io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:68)
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:133)
at
io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:119)
at
io.netty.channel.DefaultChannelPipeline.fireChannelRegistered(DefaultChannelPipeline.java:733)
at
io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:450)
at
io.netty.channel.AbstractChannel$AbstractUnsafe.access$100(AbstractChannel.java:378)
at
io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:424)
at
io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:356)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
at
io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110)
at
io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at
org.wso2.carbon.transport.http.netty.listener.RequestSizeValidationConfiguration.(RequestSizeValidationConfiguration.java:51)
at
org.wso2.carbon.transport.http.netty.listener.RequestSizeValidationConfiguration.(RequestSizeValidationConfiguration.java:31)
... 15 more
[org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer] :
Calling CarbonNettyServerInitializer OSGi service
org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer@7fcb9c71
[org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer]
: Initializing source channel pipeline
[io.netty.channel.ChannelInitializer] : Failed to initialize a channel.
Closing: [id: 0x0a08449b, localhost/127.0.0.1:56192 => /127.0.0.1:8081]
java.lang.NoClassDefFoundError: Could not initialize class
org.wso2.carbon.transport.http.netty.listener.RequestSizeValidationConfiguration
at
org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer.initChannel(CarbonNettyServerInitializer.java:102)
at
org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer.initChannel(NettyServerInitializer.java:81)
at
org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer.initChannel(NettyServerInitializer.java:36)
at
io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:68)
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:133)
at
io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:119)
at
io.netty.channel.DefaultChannelPipeline.fireChannelRegistered(DefaultChannelPipeline.java:733)
at
io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:450)
at
io.netty.channel.AbstractChannel$AbstractUnsafe.access$100(AbstractChannel.java:378)
at
io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:424)
at
io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:356)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
at
io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110)
at
io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)

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

2016-05-16 Thread Mahesh Dananjaya
Hi Maheshakya,
I have gone through the Java Docs and run some of the Spark examples on
spark shell which are paramount improtant for our work. Then i have been
writing my codes to check the Linear regression, K means for streaming.
please check my git repo [1]. I think now i have to ask on dev regarding
the capturing event streams for our work. I will update the recent things
on git. check the park-example directory for java. examples run on git
shell is not included there. In my case i think i have to build mini
batches from data streams that comes as individual samples. Now i am
working on some coding to collect mini batches from data streams.thank you.
regards,
Mahesh.
[1]https://github.com/dananjayamahesh/GSOC2016

On Tue, May 17, 2016 at 10:10 AM, Mahesh Dananjaya <
dananjayamah...@gmail.com> wrote:

> Hi Maheshakya,
> I have gone through the Java Docs and run some of the Spark examples on
> spark shell which are paramount improtant for our work. Then i have been
> writing my codes to check the Linear regression, K means for streaming.
> please check my git repo [1]. I think now i have to ask on dev regarding
> the capturing event streams for our work. I will update the recent things
> on git. check the park-example directory for java. examples run on git
> shell is not included there. In my case i think i have to build mini
> batches from data streams that comes as individual samples. Now i am
> working on some coding to collect mini batches from data streams.thank you.
> regards,
> Mahesh.
> [1]https://github.com/dananjayamahesh/GSOC2016
>
> On Mon, May 16, 2016 at 1:19 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi Maheshakya,
>> thank you. i will update the repo today.thank you.i changed the carbon ml
>> siddhi extention and see how the changes are effecting. i will update the
>> progress as soon as possible.thank you. i had some problem in spark mllib
>> dependency. i was fixing that.
>> regards,
>> Mahesh.
>> p.s: do i need to maintain a blog?
>>
>> On Mon, May 16, 2016 at 10:02 AM, Maheshakya Wijewardena <
>> mahesha...@wso2.com> wrote:
>>
>>> Hi Mahesh,
>>>
>>> Sorry for replying late.
>>>
>>> Thank you for the update. I believe you have done some implementations
>>> with with Spark MLLIb algorithms in streaming fashion as we have discussed.
>>> If so, can you please share your code in a Github repo.
>>>
>>> Now i want to implements some machine learning algorithms with importing
 mllib and want to run within your code base

>>>
>>> For the moment you can try out editing the same class
>>> PredictStreamProcessor in the siddhi extension in carbon-ml. Later we will
>>> add this separately. You should be able to add org.apache.spark.mllib.
>>> classes to there.
>>>
>>> And i want to see how event streams are coming from cep. As i think it
 is not in a RDD format since it is arriving as the individual samples. I
 will send a email to dev asking about how to get the streams.
>>>
>>>
>>> Please pay attention to length[1] and lengthbatch[1] inbuilt windows in
>>> siddhi. What you need to write are functions similar to a custom aggregate
>>> function[2].
>>> When you send the email to dev list, explain your requirement. You need
>>> to get a set of event with from a stream with a specified window size
>>> (number of events). Then build a model within that function. You also need
>>> to retain the data (learned weights, cluster centers, etc.) from the
>>> previous window to use in the current window. Ask what can be the most
>>> suitable option for this among the set of siddhi extensions given.
>>>
>>> Best regards.
>>>
>>> [1]
>>> https://docs.wso2.com/display/CEP400/Inbuilt+Windows#InbuiltWindows-lengthlength
>>> [2]
>>> https://docs.wso2.com/display/CEP400/Writing+a+Custom+Aggregate+Function
>>>
>>> On Wed, May 11, 2016 at 1:43 PM, Mahesh Dananjaya <
>>> dananjayamah...@gmail.com> wrote:
>>>

 -- Forwarded message --
 From: Mahesh Dananjaya 
 Date: Wed, May 11, 2016 at 1:43 PM
 Subject: Re: [Dev] GSOC2016: [ML][CEP] Predictive analytic with online
 data for WSO2 Machine Learner
 To: Maheshakya Wijewardena 


 Hi Maheshakya,
 sorry for not updating. I did what you wanted me to do. I checked the
 code base and train functions. I went through those java docs. I went
 through the carbon-ml current implementation of LG and K-Mean. And i had
 Apache Spark and i tried with several examples. Now i want to implements
 some machine learning algorithms with importing mllib and want to run
 within your code base. Can you help me with that.
 And i want to see how event streams are coming from cep. As i think it
 is not in a RDD format since it is arriving as the individual samples. I
 will send a email to dev asking about how to get the streams. I debugged
 many of those functions in the code base. So need further instructions to
 

[Dev] Unsubscribe

2016-05-16 Thread Senthuran Sangarapillai
Unsubscribe


Regards,
S.Senthuran
Email - senthu...@wso2telco.com
[1457599588027_image001.png]


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


Re: [Dev] [G-Reg] Added resource file not showing at the management console

2016-05-16 Thread Nalaka Perera
Hi Denuwanthi,

Thanks for the reply, I have correct the path definition and I have use
startTenantFlow. Now it's working perfectly.

Thanks,

On Mon, May 16, 2016 at 8:44 AM, Denuwanthi De Silva 
wrote:

> Hi Nalaka,
>
> Before creating the registry, could you please try loading the tenant
> registry using 'loadTenantRegistry(tenantId)' method of
> 'TenantRegistryLoader' class.
>
>
> Thanks,
>
>
>
> On Fri, May 13, 2016 at 6:45 PM, Nalaka Perera  wrote:
>
>> Hi all,
>>
>> I am adding Log analyzer alert configuration file (JSON file) to the
>> registry using TenantRegistryLoader. My code snippets as follows.
>>
>> public void saveAlertConfiguration (ScheduleAlertBean scheduleAlertBean, int 
>> tenantId) throws RegistryException {
>> try {
>> UserRegistry userRegistry = 
>> LAAlertServiceValueHolder.getInstance().getTenantConfigRegistry(tenantId);
>> createConfigurationCollection(userRegistry);
>> String configurationLocation = 
>> getConfigurationLocation(scheduleAlertBean.getAlertName());
>> if (!userRegistry.resourceExists(configurationLocation)) {
>>Resource resource = getResource(userRegistry, 
>> scheduleAlertBean);
>> if(!resource.equals(null)){
>> userRegistry.put(configurationLocation, resource);
>> userRegistry.commitTransaction();
>> }
>> }
>> } catch (RegistryException e) {
>> log.error("Unable to save Alert configurations " + 
>> e.getMessage(), e);
>> throw new RegistryException("Unable to save Alert Configuration 
>> " + e.getMessage(), e);
>> }
>> }
>>
>> private void createConfigurationCollection(UserRegistry userRegistry) {
>> try {
>> if 
>> (!userRegistry.resourceExists(LAAlertConstant.ALERT_CONFIGURATION_LOCATION)) 
>> {
>> Collection collection = userRegistry.newCollection();
>> userRegistry.put(LAAlertConstant.ALERT_CONFIGURATION_LOCATION, 
>> collection);
>> }
>> } catch (RegistryException e) {
>> log.error("Unable to create Configuration Collection in Registry " + 
>> e.getMessage(), e);
>> }
>> }
>>
>> When I am adding a file and load it's content to Log Analyzer UI(jaggery 
>> app), file content  are correctly showing at the LA UI. But file is not 
>> showing  at the management console, after restart the server file is showing 
>> at the  management console.
>>
>> I am also updating the content of that file and save, but changes of the 
>> content are not showing at the LA UI and management console. Then after 
>> restarting the server changes are showing correctly.
>>
>> Could anyone suggest a solution for this?
>>
>> Thanks
>> Nalaka
>>
>> --
>> *Nalaka Perera*
>>
>> *Intern - Software Engineering*
>> *WSO2*
>>
>> *Mobile: * *+94 71 9165748 <%2B94%2071%209165748>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Denuwanthi De Silva
> Software Engineer;
> WSO2 Inc.; http://wso2.com,
> Email: denuwan...@wso2.com
> Blog: https://denuwanthi.wordpress.com/
>



-- 
*Nalaka Perera*

*Intern - Software Engineering*
*WSO2*

*Mobile: * *+94 71 9165748*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM 2.0.0-SNAPSHOT Nightly build - 13/05/2016

2016-05-16 Thread Roshan Wijesena
Hi Shavantha,

Try after enabling  stats from api-manager.xml

Regards
Roshan

On Mon, May 16, 2016 at 6:03 PM, Shavantha Weerasinghe 
wrote:

> Hi Bhathiya
>
> The API Publisher for the nightly build on 13-05 does not have the Manage
> alert types option. Has that been removed
>
>
> regards,
>
> Shavantha Weerasinghe
> Senior Software Engineer QA
> WSO2, Inc.
> lean.enterprise.middleware.
> http://wso2.com
> http://wso2.org
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
>
> On Sat, May 14, 2016 at 1:24 AM, Bhathiya Jayasekara 
> wrote:
>
>> Hi all,
>>
>> Please find APIM 2.0.0 SNAPSHOT nightly build here[1].
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/scratch/2016/apim-2.0.0/wso2am-2.0.0-SNAPSHOT-13-05-2016.zip
>>
>> Thanks,
>>
>> --
>> *Bhathiya Jayasekara*
>> *Senior Software Engineer,*
>> *WSO2 inc., http://wso2.com *
>>
>> *Phone: +94715478185 <%2B94715478185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> *
>> *Twitter: https://twitter.com/bhathiyax *
>> *Blog: http://movingaheadblog.blogspot.com
>> *
>>
>
>


-- 
Roshan Wijesena.
Senior Software Engineer-WSO2 Inc.
Mobile: *+94719154640*
Email: ros...@wso2.com
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] G-Reg extension for integration with API-M

2016-05-16 Thread Samisa Abeysinghe
Great!

How are we planning to test this implementation?

Thanks,
Samisa...


Samisa Abeysinghe

Vice President Delivery

WSO2 Inc.
http://wso2.com


On Mon, May 16, 2016 at 7:31 PM, Shazni Nazir  wrote:

> Yes Samisa, so far so good.
>
> I'll also be having a review with NuwanB and G-Reg team by Thursday to see
> if things are aligned.
> On 16 May 2016 6:33 p.m., "Samisa Abeysinghe"  wrote:
>
> Are we on track in terms of the time schedule to deliver this?
>
> Thanks,
> Samisa...
>
>
> Samisa Abeysinghe
>
> Vice President Delivery
>
> WSO2 Inc.
> http://wso2.com
>
>
> On Mon, May 16, 2016 at 4:45 PM, Shazni Nazir  wrote:
>
>> Hi all,
>>
>> Following is the current update of the G-Reg extension for API-M
>> integration.
>>
>>- API rxt - created, but additional fields needs to be added.
>>
>> Some fields like thumbnail, sequences for in, out, fault have few
>> limitations on the rxt end. Pure rxt's doesn't support for file system
>> browse. I'm also looking into publisher extension to see if this could be
>> added in publisher app end.
>>
>> Further, the API-M REST API [1] does provide the thumbnailUrl and
>> sequence. Need to verify if this supports file based urls.
>>
>>- Developed the skeleton handler code
>>- Developed the code to get consumer key and secret using the API-M
>>REST API
>>- Developed the code to get the access and the refresh token using
>>the API-M REST API
>>- Developing the artifact attribute reading logic - in progress
>>
>> TODO's
>>
>>- Add missing fields to ext
>>- Reading the api manager related configuration from a configuration
>>file
>>- Provide rxt fields to read API Definition and populate the payload
>>according to that
>>- Develop the request json payload creation for API creation - in
>>progress
>>- Develop the access token regeneration when token expires
>>- Develop the life-cycle configuration for the API lifecycle
>>- Develop the executor for the lifecycle state change
>>
>>
>> [1]
>> https://docs.wso2.com/display/AM1100/apidocs/publisher/#!/operations#APIsApi#apisPost
>>
>>  regards,
>>
>> Shazni Nazeer
>> Mob : +94 37331
>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>> Blog : http://shazninazeer.blogspot.com
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How do we call "sendOAuthRequest" method of Jaggery's "OAuth" module with payload

2016-05-16 Thread Rajkumar Rajaratnam
Yes, it seems not supported. I have used Jaggery post() as an alternative.

Thanks,
Raj.

On Mon, May 16, 2016 at 8:16 PM, Geesara Prathap  wrote:

> Hi Rajkumar,
>
> Just looked into the implementation of "sendOAuthRequest"[1]. Seems to be
> it does support only for the GET requests only.
>
> So if you have an access token, please refer to this implementation[2]
> how to send a request to some APIs which is secured with OAuth.
>
>
> 1.
> https://github.com/wso2/jaggery-extensions/blob/master/oauth/resources/org.jaggeryjs.modules.oauth/src/main/java/org/jaggeryjs/modules/oauth/OAuthHostObject.java#L137
> 2.
> https://github.com/wso2/carbon-dashboards/blob/master/apps/portal/controllers/apis/RESTClientInvoker.jag#L105
>
> Thanks,
> Geesara
>
>
> On Tue, May 17, 2016 at 12:15 AM, Rajkumar Rajaratnam 
> wrote:
>
>> Hi Geesara,
>>
>> No, it doesn't help. I am asking how we can pass a payload and send a
>> POST request using "sendOAuthRequest" method. I don't think it is
>> documented in above link.
>>
>> Thanks,
>> Raj.
>>
>> On Mon, May 16, 2016 at 7:36 PM, Geesara Prathap 
>> wrote:
>>
>>> Hi Rajkumar,
>>>
>>>
>>> I hope this[1]  will
>>> help.
>>>
>>> 1. http://jaggeryjs.org/documentation.jag?api=oauth
>>>
>>> Thanks,
>>> Geesara
>>>
>>>
>>> On Mon, May 16, 2016 at 7:50 PM, Manuranga Perera  wrote:
>>>
 looping

 On Sat, May 14, 2016 at 2:45 PM, Rajkumar Rajaratnam <
 rajkum...@wso2.com> wrote:

> Hi,
>
> I am talking about [1].
>
> Couldn't find any documentation or samples on this. How do we call
> "sendOAuthRequest" method of Jaggery's "OAuth" module with POST payload?
>
> [1]
> https://github.com/wso2/jaggery-extensions/blob/master/oauth/resources/org.jaggeryjs.modules.oauth/src/main/java/org/jaggeryjs/modules/oauth/OAuthHostObject.java#L141-L192
>
> Thanks,
> Raj.
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Software Engineer, WSO2
>
> Mobile : +94777568639
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com

>>>
>>>
>>>
>>> --
>>> Geesara Prathap Kulathunga
>>> Software Engineer
>>> WSO2 Inc; http://wso2.com
>>> Mobile : +940772684174
>>>
>>>
>>
>>
>> --
>> Rajkumar Rajaratnam
>> Committer & PMC Member, Apache Stratos
>> Software Engineer, WSO2
>>
>> Mobile : +94777568639
>>
>
>
>
> --
> Geesara Prathap Kulathunga
> Software Engineer
> WSO2 Inc; http://wso2.com
> Mobile : +940772684174
>
>


-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2

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


Re: [Dev] How do we call "sendOAuthRequest" method of Jaggery's "OAuth" module with payload

2016-05-16 Thread Geesara Prathap
Hi Rajkumar,

Just looked into the implementation of "sendOAuthRequest"[1]. Seems to be
it does support only for the GET requests only.

So if you have an access token, please refer to this implementation[2] how
to send a request to some APIs which is secured with OAuth.


1.
https://github.com/wso2/jaggery-extensions/blob/master/oauth/resources/org.jaggeryjs.modules.oauth/src/main/java/org/jaggeryjs/modules/oauth/OAuthHostObject.java#L137
2.
https://github.com/wso2/carbon-dashboards/blob/master/apps/portal/controllers/apis/RESTClientInvoker.jag#L105

Thanks,
Geesara


On Tue, May 17, 2016 at 12:15 AM, Rajkumar Rajaratnam 
wrote:

> Hi Geesara,
>
> No, it doesn't help. I am asking how we can pass a payload and send a POST
> request using "sendOAuthRequest" method. I don't think it is documented in
> above link.
>
> Thanks,
> Raj.
>
> On Mon, May 16, 2016 at 7:36 PM, Geesara Prathap  wrote:
>
>> Hi Rajkumar,
>>
>>
>> I hope this[1]  will
>> help.
>>
>> 1. http://jaggeryjs.org/documentation.jag?api=oauth
>>
>> Thanks,
>> Geesara
>>
>>
>> On Mon, May 16, 2016 at 7:50 PM, Manuranga Perera  wrote:
>>
>>> looping
>>>
>>> On Sat, May 14, 2016 at 2:45 PM, Rajkumar Rajaratnam >> > wrote:
>>>
 Hi,

 I am talking about [1].

 Couldn't find any documentation or samples on this. How do we call
 "sendOAuthRequest" method of Jaggery's "OAuth" module with POST payload?

 [1]
 https://github.com/wso2/jaggery-extensions/blob/master/oauth/resources/org.jaggeryjs.modules.oauth/src/main/java/org/jaggeryjs/modules/oauth/OAuthHostObject.java#L141-L192

 Thanks,
 Raj.

 --
 Rajkumar Rajaratnam
 Committer & PMC Member, Apache Stratos
 Software Engineer, WSO2

 Mobile : +94777568639

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


>>>
>>>
>>> --
>>> With regards,
>>> *Manu*ranga Perera.
>>>
>>> phone : 071 7 70 20 50
>>> mail : m...@wso2.com
>>>
>>
>>
>>
>> --
>> Geesara Prathap Kulathunga
>> Software Engineer
>> WSO2 Inc; http://wso2.com
>> Mobile : +940772684174
>>
>>
>
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Software Engineer, WSO2
>
> Mobile : +94777568639
>



-- 
Geesara Prathap Kulathunga
Software Engineer
WSO2 Inc; http://wso2.com
Mobile : +940772684174
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [MB] Python clients for MB 3.1.0

2016-05-16 Thread Kasun De Silva
Do we have any samples on python clients for MB 3.1.0?

Thanks,
Kasun


*Kasun de Silva*
Software Engineer

WSO2 Inc *. *|* E*mail : kas...@wso2.com | Mobile: +94 77
794 4260
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How can we manually create a "Token" object and pass it to "sendOAuthRequest" method of Jaggery's "OAuth" module?

2016-05-16 Thread Geesara Prathap
Hi Rajkumar,

Yes, The way an *oauth2Token* object is created is wrong. Please follow this
sample implementation 
which explains how to construct an oauth2Token object.

1. http://jaggeryjs.org/documentation.jag?api=oauth

Thanks,
Geesara

On Sun, May 15, 2016 at 12:31 AM, Rajkumar Rajaratnam 
wrote:

> Hi,
>
> I am exchanging a SAML token with OAuth token using "getTokenResponse"
> method [1] of Jaggery's "OAuth" module. This method will return 
> "AccessTokenResponse"
> object. But "sendOAuthRequest" method expects a "Token" object. Hence, I am
> manually creating "Token" object and passing it to "sendOAuthRequest"
> method, as shown below. I am referring [2] to create a "Token" object
> manually.
>
>
>
>
>
>
> *var accessTokenResponse =
> oauthProvider.getTokenResponse(samlResp);accessToken =
> accessTokenResponse.getAccessToken();var oauth2Token = {};
> oauth2Token.token = accessToken;oauth2Token.secret =
> "PkxikDuusEi67VpuqK7gpsLJlYIa";var response = 
> **oauthProvider.sendOAuthRequest(oauth2Token,
> "GET", "https://xx.xx.xx.xx:8251/bpmn/1.0.0/repository/deployments
> ");*
>
> But I am getting the following exception when executing this block. I
> think this exception is thrown from here [3].
>
> JavaException: org.jaggeryjs.scriptengine.exceptions.ScriptException:
> Invalid Access Token
>
> I think something is wrong with constructing the "Token" object. Any
> pointers?
>
> [1]
> https://github.com/wso2/jaggery-extensions/blob/master/oauth/resources/org.jaggeryjs.modules.oauth/src/main/java/org/jaggeryjs/modules/oauth/OAuthHostObject.java#L211-L238
> [2]
> http://grepcode.com/file/repo1.maven.org/maven2/org.scribe/scribe/1.2.3/org/scribe/model/Token.java#Token.0token
> [3]
> https://github.com/wso2/jaggery-extensions/blob/master/oauth/resources/org.jaggeryjs.modules.oauth/src/main/java/org/jaggeryjs/modules/oauth/OAuthHostObject.java#L149
>
> Thanks,
> Raj.
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Software Engineer, WSO2
>
> Mobile : +94777568639
>



-- 
Geesara Prathap Kulathunga
Software Engineer
WSO2 Inc; http://wso2.com
Mobile : +940772684174
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How do we call "sendOAuthRequest" method of Jaggery's "OAuth" module with payload

2016-05-16 Thread Rajkumar Rajaratnam
Hi Geesara,

No, it doesn't help. I am asking how we can pass a payload and send a POST
request using "sendOAuthRequest" method. I don't think it is documented in
above link.

Thanks,
Raj.

On Mon, May 16, 2016 at 7:36 PM, Geesara Prathap  wrote:

> Hi Rajkumar,
>
>
> I hope this[1]  will
> help.
>
> 1. http://jaggeryjs.org/documentation.jag?api=oauth
>
> Thanks,
> Geesara
>
>
> On Mon, May 16, 2016 at 7:50 PM, Manuranga Perera  wrote:
>
>> looping
>>
>> On Sat, May 14, 2016 at 2:45 PM, Rajkumar Rajaratnam 
>> wrote:
>>
>>> Hi,
>>>
>>> I am talking about [1].
>>>
>>> Couldn't find any documentation or samples on this. How do we call
>>> "sendOAuthRequest" method of Jaggery's "OAuth" module with POST payload?
>>>
>>> [1]
>>> https://github.com/wso2/jaggery-extensions/blob/master/oauth/resources/org.jaggeryjs.modules.oauth/src/main/java/org/jaggeryjs/modules/oauth/OAuthHostObject.java#L141-L192
>>>
>>> Thanks,
>>> Raj.
>>>
>>> --
>>> Rajkumar Rajaratnam
>>> Committer & PMC Member, Apache Stratos
>>> Software Engineer, WSO2
>>>
>>> Mobile : +94777568639
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> With regards,
>> *Manu*ranga Perera.
>>
>> phone : 071 7 70 20 50
>> mail : m...@wso2.com
>>
>
>
>
> --
> Geesara Prathap Kulathunga
> Software Engineer
> WSO2 Inc; http://wso2.com
> Mobile : +940772684174
>
>


-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2

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


Re: [Dev] How do we call "sendOAuthRequest" method of Jaggery's "OAuth" module with payload

2016-05-16 Thread Geesara Prathap
Hi Rajkumar,


I hope this[1]  will help.

1. http://jaggeryjs.org/documentation.jag?api=oauth

Thanks,
Geesara


On Mon, May 16, 2016 at 7:50 PM, Manuranga Perera  wrote:

> looping
>
> On Sat, May 14, 2016 at 2:45 PM, Rajkumar Rajaratnam 
> wrote:
>
>> Hi,
>>
>> I am talking about [1].
>>
>> Couldn't find any documentation or samples on this. How do we call
>> "sendOAuthRequest" method of Jaggery's "OAuth" module with POST payload?
>>
>> [1]
>> https://github.com/wso2/jaggery-extensions/blob/master/oauth/resources/org.jaggeryjs.modules.oauth/src/main/java/org/jaggeryjs/modules/oauth/OAuthHostObject.java#L141-L192
>>
>> Thanks,
>> Raj.
>>
>> --
>> Rajkumar Rajaratnam
>> Committer & PMC Member, Apache Stratos
>> Software Engineer, WSO2
>>
>> Mobile : +94777568639
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>



-- 
Geesara Prathap Kulathunga
Software Engineer
WSO2 Inc; http://wso2.com
Mobile : +940772684174
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Cloud] Fronting microservice with HA Proxy

2016-05-16 Thread Manuranga Perera
[2]
https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#option%20prefer-last-server

On Mon, May 16, 2016 at 1:59 PM, Manuranga Perera  wrote:

> KAL has the lowest latency on both the client and the server and in case
>> of high request rate, it will be the fastest one. [1]
>
>
> So it seems we should aim for "keep alive" and fix the issues. Maybe you
> can try with [2] as it suggests.
>
> [1] https://www.haproxy.com/doc/aloha/7.0/haproxy/http_modes.html
> [2] https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#option
> prefer-last-server
>
> On Mon, May 16, 2016 at 11:41 AM, Danushka Fernando 
> wrote:
>
>> Currently with HA proxy fronting microservice we are facing a connection
>> reset exception [1]. Seems like this is a common issue with netty +
>> haproxy. According to HA proxy manual[2] there are 5 connection modes. With
>> connection mode "*httpclose*" I managed to get rid of the exception.
>>
>> From manual
>> "In HTTP mode, the processing applied to requests and responses flowing
>> over
>>
>> a connection depends in the combination of the frontend's HTTP options and
>> the backend's. HAProxy supports 5 connection modes :
>>
>>   - KAL : keep alive ("option http-keep-alive 
>> ")
>>  which is the default mode : all
>> requests and responses are processed, and connections remain open but 
>> idle
>> between responses and new requests.
>>
>>   - TUN: tunnel ("option http-tunnel 
>> ")
>>  : this was the default mode for versions
>> 1.0 to 1.5-dev21 : only the first request and response are processed, and
>> everything else is forwarded with no analysis at all. This mode should 
>> not
>> be used as it creates lots of trouble with logging and HTTP processing.
>> *  - PCL: passive close ("option httpclose 
>> ")
>>  : exactly the same as tunnel mode,
>> but with "Connection: close" appended in both directions to try to make
>> both ends close after the first request/response exchange.
>> *
>>   - SCL: server close ("option http-server-close 
>> ")
>>  : the server-facing
>> connection is closed after the end of the response is received, but the
>> client-facing connection remains open.
>>
>>   - FCL: forced close ("option forceclose 
>> ")
>>  : the connection is actively closed
>>
>> after the end of the response."
>>
>> But there are few questions in hand.
>>
>>
>>1. Is this the correct approach to solve the issue?
>>2. If its correct then can we use the same connection mode for other
>>app types like tomcat and php as well?
>>3. Are there any better approaches we can take?
>>
>>
>> Any input would be appriciated.
>>
>> [1] https://wso2.org/jira/browse/APPCLOUD-79
>> [2] https://cbonte.github.io/haproxy-dconv/configuration-1.5.html
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>



-- 
With regards,
*Manu*ranga Perera.

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


Re: [Dev] [App Cloud] Fronting microservice with HA Proxy

2016-05-16 Thread Manuranga Perera
>
> KAL has the lowest latency on both the client and the server and in case
> of high request rate, it will be the fastest one. [1]


So it seems we should aim for "keep alive" and fix the issues. Maybe you
can try with [2] as it suggests.

[1] https://www.haproxy.com/doc/aloha/7.0/haproxy/http_modes.html
[2] https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#option
prefer-last-server

On Mon, May 16, 2016 at 11:41 AM, Danushka Fernando 
wrote:

> Currently with HA proxy fronting microservice we are facing a connection
> reset exception [1]. Seems like this is a common issue with netty +
> haproxy. According to HA proxy manual[2] there are 5 connection modes. With
> connection mode "*httpclose*" I managed to get rid of the exception.
>
> From manual
> "In HTTP mode, the processing applied to requests and responses flowing
> over
>
> a connection depends in the combination of the frontend's HTTP options and
> the backend's. HAProxy supports 5 connection modes :
>
>   - KAL : keep alive ("option http-keep-alive 
> ")
>  which is the default mode : all
> requests and responses are processed, and connections remain open but idle
> between responses and new requests.
>
>   - TUN: tunnel ("option http-tunnel 
> ")
>  : this was the default mode for versions
> 1.0 to 1.5-dev21 : only the first request and response are processed, and
> everything else is forwarded with no analysis at all. This mode should not
> be used as it creates lots of trouble with logging and HTTP processing.
> *  - PCL: passive close ("option httpclose 
> ")
>  : exactly the same as tunnel mode,
> but with "Connection: close" appended in both directions to try to make
> both ends close after the first request/response exchange.
> *
>   - SCL: server close ("option http-server-close 
> ")
>  : the server-facing
> connection is closed after the end of the response is received, but the
> client-facing connection remains open.
>
>   - FCL: forced close ("option forceclose 
> ")
>  : the connection is actively closed
>
> after the end of the response."
>
> But there are few questions in hand.
>
>
>1. Is this the correct approach to solve the issue?
>2. If its correct then can we use the same connection mode for other
>app types like tomcat and php as well?
>3. Are there any better approaches we can take?
>
>
> Any input would be appriciated.
>
> [1] https://wso2.org/jira/browse/APPCLOUD-79
> [2] https://cbonte.github.io/haproxy-dconv/configuration-1.5.html
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
With regards,
*Manu*ranga Perera.

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


[Dev] [App Cloud] Fronting microservice with HA Proxy

2016-05-16 Thread Danushka Fernando
Currently with HA proxy fronting microservice we are facing a connection
reset exception [1]. Seems like this is a common issue with netty +
haproxy. According to HA proxy manual[2] there are 5 connection modes. With
connection mode "*httpclose*" I managed to get rid of the exception.

>From manual
"In HTTP mode, the processing applied to requests and responses flowing over

a connection depends in the combination of the frontend's HTTP options and
the backend's. HAProxy supports 5 connection modes :

  - KAL : keep alive ("option http-keep-alive
")
which is the default mode : all
requests and responses are processed, and connections remain open but idle
between responses and new requests.

  - TUN: tunnel ("option http-tunnel
")
: this was the default mode for versions
1.0 to 1.5-dev21 : only the first request and response are processed, and
everything else is forwarded with no analysis at all. This mode should not
be used as it creates lots of trouble with logging and HTTP processing.
*  - PCL: passive close ("option httpclose
")
: exactly the same as tunnel mode,
but with "Connection: close" appended in both directions to try to make
both ends close after the first request/response exchange.
*
  - SCL: server close ("option http-server-close
")
: the server-facing
connection is closed after the end of the response is received, but the
client-facing connection remains open.

  - FCL: forced close ("option forceclose
")
: the connection is actively closed

after the end of the response."

But there are few questions in hand.


   1. Is this the correct approach to solve the issue?
   2. If its correct then can we use the same connection mode for other app
   types like tomcat and php as well?
   3. Are there any better approaches we can take?


Any input would be appriciated.

[1] https://wso2.org/jira/browse/APPCLOUD-79
[2] https://cbonte.github.io/haproxy-dconv/configuration-1.5.html

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5][BPS] Startup errors with new kernel SNAPSHOT

2016-05-16 Thread Niranjan Karunanandham
Hi Senduran,

I tried to build msf4j with your changes but its tests are failing with NPE
and java.lang.NoClassDefFoundError. Has there been any major changes in
carbon-transports from 2.0.1 to 2.0.3-SNAPSHOT? We need to fixes these
issues.

@Hasitha: Till these issues are sorted will you be able to continue by
building the carbon-transports and msf4j PR locally (mentioned in the
previous thread), so that you are not blocked till the above mentioned
issues are solved? In this way, your progress will not be blocked.

Regards,
Nira

On Mon, May 16, 2016 at 3:27 PM, Niranjan Karunanandham 
wrote:

> Noted. The PR i sent for msf4j is to the master branch so it could be
> tested directly with the changes that has been applied to the
> carbon-transports.. Anyway I will test it and get back to you.
>
> Regards,
> Nira
>
> On Mon, May 16, 2016 at 11:55 AM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> Hi Niranjan / Hasitha
>>
>> We have upgraded carbon transport's kernel version to 5.1.0-alpha2 and
>> done the fixes for the new start up resolver (based on [1] ). The changes
>> are pushed to the master branch (2.0.3-snapshot)
>> Please test it and let us know whether it resolves the issues. so that we
>> can proceed with carbon-transport release (2.1.0)
>>
>> [1] https://github.com/Niranjan-K/carbon-transports/tree/fix-v2.0.1
>>
>> Regards
>> Senduran
>>
>> On Thu, May 12, 2016 at 2:42 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> I have modified carbon-datasources [1] and msf4j [2] with carbon-kernel
>>> 5.1.0-alpha2 (in staging). I verified msf4j modifying by changing
>>> carbon-transports v2.0.1 [3] with startup resolver changes.
>>>
>>> [1] - https://github.com/wso2/carbon-datasources/pull/14
>>> [2] - https://github.com/wso2/msf4j/pull/169
>>> [3] - https://github.com/Niranjan-K/carbon-transports/tree/fix-v2.0.1
>>>
>>> Regards,
>>> Nira
>>>
>>> On Mon, May 9, 2016 at 2:55 PM, Nandika Jayawardana 
>>> wrote:
>>>
 Can we have a quick resolution to this issue.

 Regards
 Nandika

 On Mon, May 9, 2016 at 11:09 AM, Niranjan Karunanandham <
 niran...@wso2.com> wrote:

> Hi Sameera,
>
> I have fixed this for carbon-datasources in PR [1].
>
> [1] - https://github.com/wso2/carbon-datasources/pull/14
>
> Regards,
> Nira
>
> On Mon, May 9, 2016 at 10:43 AM, Afkham Azeez  wrote:
>
>> Transport folks, please note. I think a release is planned but we
>> will need to hold it back until these changes are made.
>>
>> On Sun, May 8, 2016 at 12:39 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Hasitha,
>>>
>>> There were some improvements done to the startup resolver as
>>> mentioned in [1]. I faced a similar issue[2] when testing the Kernel
>>> 5.1.0-alpha2 (which is in staging) with carbon-datasources and I was 
>>> able
>>> to fix it by following the doc and updating the datasource.core pom.xml 
>>> [3]
>>> and DataSourceListenerComponent.java [4].
>>>
>>> [1] - https://medium.com/@sameera.jayasoma/497fe3287e67#.ravrmkjir
>>> [2] -
>>> [2016-05-08 11:31:16,371] ERROR {org.wso2.carbon.core} -
>>> FrameworkEvent ERROR - org.wso2.carbon.core
>>> org.wso2.carbon.kernel.internal.startupresolver.StartOrderResolverException:
>>> componentName value is missing in the services registered with the key
>>> org.wso2.carbon.kernel.startupresolver.RequiredCapabilityListener,
>>> implementation class name is
>>> org.wso2.carbon.datasource.core.internal.DataSourceListenerComponent
>>> at
>>> org.wso2.carbon.kernel.internal.startupresolver.OSGiServiceCapabilityTracker$CapabilityServiceTrackerCustomizer.addingService(OSGiServiceCapabilityTracker.java:142)
>>> at
>>> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
>>> at
>>> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
>>> at
>>> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
>>> at
>>> org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
>>> at
>>> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
>>> at
>>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:914)
>>> 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:862)

Re: [Dev] How do we call "sendOAuthRequest" method of Jaggery's "OAuth" module with payload

2016-05-16 Thread Manuranga Perera
looping

On Sat, May 14, 2016 at 2:45 PM, Rajkumar Rajaratnam 
wrote:

> Hi,
>
> I am talking about [1].
>
> Couldn't find any documentation or samples on this. How do we call
> "sendOAuthRequest" method of Jaggery's "OAuth" module with POST payload?
>
> [1]
> https://github.com/wso2/jaggery-extensions/blob/master/oauth/resources/org.jaggeryjs.modules.oauth/src/main/java/org/jaggeryjs/modules/oauth/OAuthHostObject.java#L141-L192
>
> Thanks,
> Raj.
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Software Engineer, WSO2
>
> Mobile : +94777568639
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
With regards,
*Manu*ranga Perera.

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


Re: [Dev] G-Reg extension for integration with API-M

2016-05-16 Thread Shazni Nazir
Yes Samisa, so far so good.

I'll also be having a review with NuwanB and G-Reg team by Thursday to see
if things are aligned.
On 16 May 2016 6:33 p.m., "Samisa Abeysinghe"  wrote:

Are we on track in terms of the time schedule to deliver this?

Thanks,
Samisa...


Samisa Abeysinghe

Vice President Delivery

WSO2 Inc.
http://wso2.com


On Mon, May 16, 2016 at 4:45 PM, Shazni Nazir  wrote:

> Hi all,
>
> Following is the current update of the G-Reg extension for API-M
> integration.
>
>- API rxt - created, but additional fields needs to be added.
>
> Some fields like thumbnail, sequences for in, out, fault have few
> limitations on the rxt end. Pure rxt's doesn't support for file system
> browse. I'm also looking into publisher extension to see if this could be
> added in publisher app end.
>
> Further, the API-M REST API [1] does provide the thumbnailUrl and
> sequence. Need to verify if this supports file based urls.
>
>- Developed the skeleton handler code
>- Developed the code to get consumer key and secret using the API-M
>REST API
>- Developed the code to get the access and the refresh token using the
>API-M REST API
>- Developing the artifact attribute reading logic - in progress
>
> TODO's
>
>- Add missing fields to ext
>- Reading the api manager related configuration from a configuration
>file
>- Provide rxt fields to read API Definition and populate the payload
>according to that
>- Develop the request json payload creation for API creation - in
>progress
>- Develop the access token regeneration when token expires
>- Develop the life-cycle configuration for the API lifecycle
>- Develop the executor for the lifecycle state change
>
>
> [1]
> https://docs.wso2.com/display/AM1100/apidocs/publisher/#!/operations#APIsApi#apisPost
>
>  regards,
>
> Shazni Nazeer
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Kubernetes Artifacts 1.0.0

2016-05-16 Thread Isuru Haththotuwa
Thank you for testing and voting.

This vote is now closed, and the vote passes with five +1s and zero -1s.
Hence will proceed with the WSO2 Kubernetes Artifacts 1.0.0 release.

On Fri, May 13, 2016 at 4:57 PM, Anuruddha Liyanarachchi <
anurudd...@wso2.com> wrote:

> *[X ] Stable* - go ahead and release
>
> verified the following.
>
>- README Files
>- License Headers
>
> Tested the default and distributed deployment for the following products
> with puppet provisioning for following products.
>
>- WSO2 BPS
>- WSO2 ESB
>- WSO2 AS
>
> Verified the load-images.sh script.
>
> On Fri, May 13, 2016 at 4:45 PM, Vishanth Balasubramaniam <
> vishan...@wso2.com> wrote:
>
>> *[X ] Stable* - go ahead and release
>>
>> I have verified the following.
>>
>>- READMEs
>>- License
>>- Packaging
>>
>> Tested the default and distributed deployment for the following products
>>
>>- WSO2 AS
>>- WSO2 BPS
>>- WSO2 BRS
>>- WSO2 ESB
>>- WSO2 GREG
>>- WSO2 IS
>>
>> Regards,
>> Vishanth
>>
>> On Fri, May 13, 2016 at 3:39 PM, Thanuja Uruththirakodeeswaran <
>> thanu...@wso2.com> wrote:
>>
>>> [x] - Go ahead and release
>>>
>>> Verified the following:
>>>
>>> 1. License headers
>>> 2. Tested distributed deployment in Kubernetes 1.2.0 with docker images
>>> built using puppet provisioning:
>>>
>>>- WSO2 AS 5.3.0
>>>- WSO2 DSS 3.5.0
>>>- WSO2 ES 2.0.0
>>>- WSO2 BPS 3.5.0
>>>- WSO2 ESB 4.9.0
>>>
>>> Thanks.
>>>
>>> On Fri, May 13, 2016 at 3:23 PM, Chamila De Alwis 
>>> wrote:
>>>
 *[X] Stable* - go ahead and release

 Verified the following.


1. README content
2. License headers
3. Packaging
4. Tested distributed deployment using Puppet provisioned Docker
images of the following products
   1. WSO2 MB
   2. WSO2 IS
   3. WSO2 GREG
   4. WSO2 BRS
   5. WSO2 ESB
   6. WSO2 DAS
   7. WSO2 DSS
   8. WSO2 AS




 Regards,
 Chamila de Alwis
 Committer and PMC Member - Apache Stratos
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Thu, May 12, 2016 at 6:17 PM, Imesh Gunaratne 
 wrote:

> +1 for the release, I verified following and did not see any problems:
>
>- README.md files
>- K8S membership scheme and clustering
>- Built product profile docker images using Puppet provisioning
>- Distributed deployments of following on K8S 1.2:
>   - Application Server 5.3.0
>   - API Manager 1.10.0
>   - Enterprise Service Bus 4.9.0
>   - Business Process Server 3.5.0
>   - Business Rules Server 2.2.0
>   - Data Services Server 3.5.0
>   - Enterprise Store 2.0.0
>   - Governance Registry 5.1.0
>   - Data Analytics Server 3.0.1
>   - Complex Event Processor 4.0.0
>
> Thanks
>
>
> On Wed, May 11, 2016 at 10:57 AM, Isuru Haththotuwa 
> wrote:
>
>> This is the first release candidate (RC1) of WSO2 Kubernetes
>> Artifacts 1.0.0.
>>
>> Please download, test and vote. Please refer the README files under
>> each product for details on testing the artifacts.
>>
>> Source & binary distribution files:
>> https://github.com/wso2/kubernetes-artifacts/releases/tag/v1.0.0
>>
>> Maven staging repo:
>>
>> https://maven.wso2.org/nexus/content/repositories/orgwso2carbonkubernetesartifacts-1001/
>>
>> The tag to be voted upon:
>> https://github.com/wso2/kubernetes-artifacts/tree/v1.0.0
>>
>>
>> [ ] Broken - do not release (explain why)
>>
>> [ ] Stable - go ahead and release
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* *
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.io TW: @imesh
> Lean . Enterprise . Middleware
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

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


>>>
>>>
>>> --
>>> Thanuja Uruththirakodeeswaran
>>> Software Engineer
>>> WSO2 Inc.;http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 774363167
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>

Re: [Dev] [ ESB] Mailto sender not working, Need to review my Proxy service

2016-05-16 Thread Rajjaz Mohammed
Hi Nifras,

This is common case to most of the samples. You need to make sure it points
to a valid configuration for any actual scenarios specially when work with
third party credentials[1] .

[1]
https://docs.wso2.com/display/ESB490/Sample+256%3A+Proxy+Services+with+the+MailTo+Transport

On Mon, May 16, 2016 at 2:31 PM, Nifras Ismail  wrote:

> Hi,
>
> Done. By changing the real credential of mine.
>
>  class="org.apache.axis2.transport.mail.MailTransportSender">
> smtp.gmail.com
> 587
> true
> true
> *testmail*
> *testmailPassword*
> 
> *testm...@gmail.com
> *
> 
>
> Thanks
>
>
> On Mon, May 16, 2016 at 2:08 PM, Nifras Ismail  wrote:
>
>> Hi All,
>>
>> I have trying to alter the sample 4 (Error handler) to sending the error
>> as mail.
>>
>> But unfortunately I could not receive the mail
>>
>> *I hope my mailto configuration on axis2.xml and my proxy services are
>> fine .*
>>
>> *My axis.xml I have un comment these following stuffs .*
>>
>> > class="org.apache.axis2.transport.mail.MailTransportListener">
>> 
>> 
>>
>>  > class="org.apache.axis2.transport.mail.MailTransportSender">
>> smtp.gmail.com
>> 587
>> true
>> true
>> synapse.demo.0
>> mailpassword
>> synapse.dem...@gmail.com
>> 
>> 
>>
>> *and re run my sample as *
>> ./wso2esb-samples.sh sn 4
>>
>> *Then I run the sample as with errors on MSFT *
>> ant stockquote -Daddurl=
>> http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=
>> http://localhost:8280/ -Dsymbol=*MSFT*
>>
>>
>> *This is my proxy service *
>> 
>> http://ws.apache.org/ns/synapse;>
>> 
>> > xmlns:m0="http://services.samples; xmlns:ns="
>> http://org.apache.synapse/xsd;>
>> 
>> 
>> 
>> http://localhost:9000/services/SimpleStockQuoteService"/>
>> 
>> 
>> 
>> 
>> **
>> **
>> **
>> **
>> **
>> **
>> **
>> *mailto:nif...@wso2.com
>> "/>*
>> **
>> **
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>>
>> I feel all configurations and settings are fine. But what the thing block
>> me to deliver the mail.
>>
>> Thank you
>>
>>
>> --
>> Nifras Ismail
>> Associate Software Engineer
>> WSO2
>> Email : nif...@wso2.com
>> Mobile : 0094 77 89 90 300
>>
>
>
>
> --
> Nifras Ismail
> Associate Software Engineer
> WSO2
> Email : nif...@wso2.com
> Mobile : 0094 77 89 90 300
>



-- 
Thank you
Best Regards

*Rajjaz HM*
Associate Software Engineer
Platform Extension Team
WSO2 Inc. 
lean | enterprise | middleware
Mobile | +94752833834|+94777226874
Email   | raj...@wso2.com
LinkedIn  | Blogger
 | WSO2 Profile

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


Re: [Dev] G-Reg extension for integration with API-M

2016-05-16 Thread Samisa Abeysinghe
Are we on track in terms of the time schedule to deliver this?

Thanks,
Samisa...


Samisa Abeysinghe

Vice President Delivery

WSO2 Inc.
http://wso2.com


On Mon, May 16, 2016 at 4:45 PM, Shazni Nazir  wrote:

> Hi all,
>
> Following is the current update of the G-Reg extension for API-M
> integration.
>
>- API rxt - created, but additional fields needs to be added.
>
> Some fields like thumbnail, sequences for in, out, fault have few
> limitations on the rxt end. Pure rxt's doesn't support for file system
> browse. I'm also looking into publisher extension to see if this could be
> added in publisher app end.
>
> Further, the API-M REST API [1] does provide the thumbnailUrl and
> sequence. Need to verify if this supports file based urls.
>
>- Developed the skeleton handler code
>- Developed the code to get consumer key and secret using the API-M
>REST API
>- Developed the code to get the access and the refresh token using the
>API-M REST API
>- Developing the artifact attribute reading logic - in progress
>
> TODO's
>
>- Add missing fields to ext
>- Reading the api manager related configuration from a configuration
>file
>- Provide rxt fields to read API Definition and populate the payload
>according to that
>- Develop the request json payload creation for API creation - in
>progress
>- Develop the access token regeneration when token expires
>- Develop the life-cycle configuration for the API lifecycle
>- Develop the executor for the lifecycle state change
>
>
> [1]
> https://docs.wso2.com/display/AM1100/apidocs/publisher/#!/operations#APIsApi#apisPost
>
>  regards,
>
> Shazni Nazeer
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-05-16 Thread Supun Sethunga
Can you try doing a "mvn clean"?

Do you get any compilation failures?

Regards,
Supun

On Thu, May 12, 2016 at 7:48 PM, Misgana Negassi <
negas...@tf.uni-freiburg.de> wrote:

> Hi Supun,
>
> Thank you for the supportive hangout session.
>
> I had one question I forgot to ask.
>
> When I was importing the carbon-ml as maven project to Eclipse I had this
> error message.
> *Multiple annotations found at this line:*
> *- Plugin execution not covered by lifecycle configuration:
> org.apache.felix:maven-scr-plugin:1.7.2:scr (execution:
> generate-scr-scrdescriptor, phase: process-*
> * classes)*
>
>
> *- maven-remote-resources-plugin (goal "process") is ignored by m2e. *How
> did you solve this problem if you have enountered it?
>
> Best,
> Misgana
>
>
> On 09.05.2016 06:12, Supun Sethunga wrote:
>
> Hi Misgana,
>
> I committed the code for reading a csv file. My next task will be sampling
>> and starting to implement an ensemble method(Stacking).
>
> I went through the code. Would like to suggest a small thing. Most of the
> Spark algorithms need JavaRDDs as the input for datasets. Hence reading
> your file as a JavaRDD is the better approach than reading it
> as a list of labelled points. Please refer [1] and [2] for an example.
>
> -  How to decide which models to use for an ensemble and which parameters?
>
> Type of Model/Algorithm has to be a user input. The parameters will
> depend on the algorithm user picks.
>
> - Should the ensemble methods be implemented as a wrapper around the
>> base-models?
>
> Yes.  You can use the existing algorithms in WSO2 Machine Learner, as the
> base-models. (I have shared that in my previous mail)
>
>
>> - Which library to use for matrix operations? Is Apache
>> commons.math.Linearalgebra ok?
>
> Yes  Apache commons.math.* would be fine. Infact you can use any library
> with open-source licence.
>
>
> What do you think about a hangout session to clarify stuff and get to know
>> each other.:)
>
> Of course! Please arrange some time slot (Hope it will be IST time zone:
> GMT+5.30 friendly :) ) and send me a calendar invite.
>
>
> [1]
> https://github.com/wso2/carbon-ml/blob/master/components/ml/org.wso2.carbon.ml.core/src/main/java/org/wso2/carbon/ml/core/utils/MLUtils.java#L58
> [2]
> https://github.com/wso2/carbon-ml/blob/master/components/ml/org.wso2.carbon.ml.core/src/main/java/org/wso2/carbon/ml/core/spark/algorithms/SupervisedSparkModelBuilder.java#L87
>
> Regards,
> Supun
>
> On Sat, May 7, 2016 at 8:46 PM, Misgana Negassi <
> negas...@tf.uni-freiburg.de> wrote:
>
>>
>> Hi Supun,
>> I committed the code for reading a csv file. My next task will be
>> sampling and starting to implement an ensemble method(Stacking).
>> I have some questions about:
>> -  How to decide which models to use for an ensemble and which
>> parameters?
>> - Should the ensemble methods be implemented as a wrapper around the
>> base-models?
>> - Which library to use for matrix operations? Is Apache
>> commons.math.Linearalgebra ok?
>>
>> What do you think about a hangout session to clarify stuff and get to
>> know each other.:)
>>
>> Have a nice weekend!
>> Misgana
>>
>>
>> On 05.05.2016 19:59, Misgana Negassi wrote:
>>
>> Hi Supun,
>> Thank you for the detailed explanation.
>>
>> I switched to intelliJ IDEA as an IDE with Ubuntu 14.04. The import
>> errors are resolved after the project was imported as maven project. This
>> took a while because of persistent pom.xml errors -- I am still in the
>> process of reading  about maven, Spark, REST and the carbon-Architecture.
>> I have created an independent maven-project[1] for the implementation of
>> the ensemble-methods. Currently I am writing code for reading a CSV file
>> using the Apache library and converting it into Java RDD. I will commit
>> once I am done with it.
>>
>>
>>
>> Regards,
>> Misgana
>>
>>
>> [1]https://github.com/zemoel/ensemble-methods
>>
>>
>> On 04.05.2016 06:33, Supun Sethunga wrote:
>>
>> Hi Misgana,
>>
>> Seems you have misunderstood the "carbon" architecture. Let me explain
>> it.  *carbon-ml* repo contains the source code of the osgi bundles (i.e:
>> jar libraries) which contain actual implementation/logic (such as, the
>> implementation of importing datasets, creating projects, building models,
>> and etc). Hence, these are similar to any other third-party library, which
>> you have to invoke using their APIs. (They don't have main classes, they
>> have APIs). This repo also contains a REST API, which exposes the
>> above-mentioned APIs as a RESTful service. It also includes the source code
>> for the UI, which invokes those REST APIs, behalf of the user. Please refer
>> [1] to get the overall idea.
>> Whereas, *product-ml* repo contains the source code, which collects the
>> necessary libraries (such as the libraries of carbon-ml, REST API, UI) and
>> bundles it all together, to create the final binary distribution.
>>
>> *carbon-ml* already contains the implementations of number of algorithms
>> [2]. 

[Dev] G-Reg extension for integration with API-M

2016-05-16 Thread Shazni Nazir
Hi all,

Following is the current update of the G-Reg extension for API-M
integration.

   - API rxt - created, but additional fields needs to be added.

Some fields like thumbnail, sequences for in, out, fault have few
limitations on the rxt end. Pure rxt's doesn't support for file system
browse. I'm also looking into publisher extension to see if this could be
added in publisher app end.

Further, the API-M REST API [1] does provide the thumbnailUrl and sequence.
Need to verify if this supports file based urls.

   - Developed the skeleton handler code
   - Developed the code to get consumer key and secret using the API-M REST
   API
   - Developed the code to get the access and the refresh token using the
   API-M REST API
   - Developing the artifact attribute reading logic - in progress

TODO's

   - Add missing fields to ext
   - Reading the api manager related configuration from a configuration file
   - Provide rxt fields to read API Definition and populate the payload
   according to that
   - Develop the request json payload creation for API creation - in
   progress
   - Develop the access token regeneration when token expires
   - Develop the life-cycle configuration for the API lifecycle
   - Develop the executor for the lifecycle state change


[1]
https://docs.wso2.com/display/AM1100/apidocs/publisher/#!/operations#APIsApi#apisPost

 regards,

Shazni Nazeer
Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] How can i read an array in WSO2 ESB using loops?

2016-05-16 Thread Malaka Silva
Hi,

You can use for each mediator. This is used for similar scenarios.

[1] https://docs.wso2.com/display/ESB490/ForEach+Mediator

On Mon, May 16, 2016 at 4:33 PM, Senthuran Sangarapillai <
senthu...@wso2telco.com> wrote:

> How can i read the array  using a loop in WSO2 ESB?
>
> below example shows how to read an array by giving the index.
>
> expression="fn:tokenize(syn:get-property('operation','myArray'),'\s')[1]"
>
>
> *steps I followed *
>
>   
> {
>"userIdentifier":
> ["tel:+00123456789","tel:+00123456789"]
>   }
>
> 
>  scope="default" type="STRING"/>
>
>  expression="//userIdentifier" sequential="true">
> 
> 
> 
> expression="fn:concat(get-property('operation','myArray'),//userIdentifier,'
> ')"
> name="myArray" scope="operation"
> type="STRING"/>
> 
> 
> 
> 
> expression="fn:tokenize(syn:get-property('operation','myArray'),'\s')[1]"
> name="messageid" scope="default" type="STRING"
> xmlns:fn="http://www.w3.org/2005/xpath-functions"/>
>
>
>
> Regards,
> S.Senthuran
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

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

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

https://store.wso2.com/store/

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


[Dev] [ESB] How can i read an array in WSO2 ESB using loops?

2016-05-16 Thread Senthuran Sangarapillai
How can i read the array  using a loop in WSO2 ESB?

below example shows how to read an array by giving the index.

expression="fn:tokenize(syn:get-property('operation','myArray'),'\s')[1]"


steps I followed

  
{
   "userIdentifier": 
["tel:+00123456789","tel:+00123456789"]
  }











http://www.w3.org/2005/xpath-functions"/>




Regards,
S.Senthuran



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


Re: [Dev] [C5][BPS] Startup errors with new kernel SNAPSHOT

2016-05-16 Thread Niranjan Karunanandham
Noted. The PR i sent for msf4j is to the master branch so it could be
tested directly with the changes that has been applied to the
carbon-transports.. Anyway I will test it and get back to you.

Regards,
Nira

On Mon, May 16, 2016 at 11:55 AM, Senduran Balasubramaniyam <
sendu...@wso2.com> wrote:

> Hi Niranjan / Hasitha
>
> We have upgraded carbon transport's kernel version to 5.1.0-alpha2 and
> done the fixes for the new start up resolver (based on [1] ). The changes
> are pushed to the master branch (2.0.3-snapshot)
> Please test it and let us know whether it resolves the issues. so that we
> can proceed with carbon-transport release (2.1.0)
>
> [1] https://github.com/Niranjan-K/carbon-transports/tree/fix-v2.0.1
>
> Regards
> Senduran
>
> On Thu, May 12, 2016 at 2:42 PM, Niranjan Karunanandham  > wrote:
>
>> Hi all,
>>
>> I have modified carbon-datasources [1] and msf4j [2] with carbon-kernel
>> 5.1.0-alpha2 (in staging). I verified msf4j modifying by changing
>> carbon-transports v2.0.1 [3] with startup resolver changes.
>>
>> [1] - https://github.com/wso2/carbon-datasources/pull/14
>> [2] - https://github.com/wso2/msf4j/pull/169
>> [3] - https://github.com/Niranjan-K/carbon-transports/tree/fix-v2.0.1
>>
>> Regards,
>> Nira
>>
>> On Mon, May 9, 2016 at 2:55 PM, Nandika Jayawardana 
>> wrote:
>>
>>> Can we have a quick resolution to this issue.
>>>
>>> Regards
>>> Nandika
>>>
>>> On Mon, May 9, 2016 at 11:09 AM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi Sameera,

 I have fixed this for carbon-datasources in PR [1].

 [1] - https://github.com/wso2/carbon-datasources/pull/14

 Regards,
 Nira

 On Mon, May 9, 2016 at 10:43 AM, Afkham Azeez  wrote:

> Transport folks, please note. I think a release is planned but we will
> need to hold it back until these changes are made.
>
> On Sun, May 8, 2016 at 12:39 PM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi Hasitha,
>>
>> There were some improvements done to the startup resolver as
>> mentioned in [1]. I faced a similar issue[2] when testing the Kernel
>> 5.1.0-alpha2 (which is in staging) with carbon-datasources and I was able
>> to fix it by following the doc and updating the datasource.core pom.xml 
>> [3]
>> and DataSourceListenerComponent.java [4].
>>
>> [1] - https://medium.com/@sameera.jayasoma/497fe3287e67#.ravrmkjir
>> [2] -
>> [2016-05-08 11:31:16,371] ERROR {org.wso2.carbon.core} -
>> FrameworkEvent ERROR - org.wso2.carbon.core
>> org.wso2.carbon.kernel.internal.startupresolver.StartOrderResolverException:
>> componentName value is missing in the services registered with the key
>> org.wso2.carbon.kernel.startupresolver.RequiredCapabilityListener,
>> implementation class name is
>> org.wso2.carbon.datasource.core.internal.DataSourceListenerComponent
>> at
>> org.wso2.carbon.kernel.internal.startupresolver.OSGiServiceCapabilityTracker$CapabilityServiceTrackerCustomizer.addingService(OSGiServiceCapabilityTracker.java:142)
>> at
>> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
>> at
>> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
>> at
>> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
>> at
>> org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
>> at
>> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
>> at
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:914)
>> 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:862)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225)
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.registerService(InstanceProcess.java:536)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:213)
>> at
>> 

[Dev] [DEV] [VOTE] WSO2 Developer Studio Kernel RC3

2016-05-16 Thread Awanthika Senarath
Hello Devs,


We are pleased to announce the vote for RC-3 of
*WSO2 Developer Studio Kernel 4.1.0.*

P2 repository of WSO2 developer Studio kernel 4.1.0 is available here
.
Source
and Tag Location to be voted upon is available here

.

Developer Studio 4.1.0 Kernel is released on Eclipse Mars (Eclipse 4.5)

Developer Studio Kernel contains a single feature which has the bundles
that are required to implement WSO2 specific product tooling on Eclipse.

   - This release contains Developer Studio migration to Eclipse mars
   - Improvements in the Developer Studio Updater tool for automatic updates



   1. [+] Stable - go ahead and release
   2. [-]  Broken - do not release (please explain why)



Regards,
Dev Studio Team

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


Re: [Dev] Do we have anyway to update Cache in WSO2 products?

2016-05-16 Thread Shazni Nazir
Hi Abimaran,

Handling caches is nothing different from normal map operations. You insert
entries to the map to add to the cache. And remove the items from the map
to remove items from the cache. See few example in the following class

[1]
https://github.com/wso2/carbon-kernel/blob/4.5.x/core/org.wso2.carbon.registry.core/src/main/java/org/wso2/carbon/registry/core/caching/CachingHandler.java#L93

Shazni Nazeer
Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com

On Mon, May 16, 2016 at 11:04 AM, Abimaran Kugathasan 
wrote:

> Hi Devs,
>
>
> How can we update a cache entry in WSO2 products. I'm aware that, we are
> using Hazelcast
>  based
> caching. Do we provide any APIs to update/remove entried from cache?
>
> --
> Thanks
> Abimaran Kugathasan
>
> Software Engineer | WSO2 Inc
> Data & APIs Technologies Team
> Mobile : +94 773922820
>
> 
> 
>   
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ ESB] Mailto sender not working, Need to review my Proxy service

2016-05-16 Thread Nifras Ismail
Hi,

Done. By changing the real credential of mine.


smtp.gmail.com
587
true
true
*testmail*
*testmailPassword*
*testm...@gmail.com
*


Thanks


On Mon, May 16, 2016 at 2:08 PM, Nifras Ismail  wrote:

> Hi All,
>
> I have trying to alter the sample 4 (Error handler) to sending the error
> as mail.
>
> But unfortunately I could not receive the mail
>
> *I hope my mailto configuration on axis2.xml and my proxy services are
> fine .*
>
> *My axis.xml I have un comment these following stuffs .*
>
>  class="org.apache.axis2.transport.mail.MailTransportListener">
> 
> 
>
>   class="org.apache.axis2.transport.mail.MailTransportSender">
> smtp.gmail.com
> 587
> true
> true
> synapse.demo.0
> mailpassword
> synapse.dem...@gmail.com
> 
> 
>
> *and re run my sample as *
> ./wso2esb-samples.sh sn 4
>
> *Then I run the sample as with errors on MSFT *
> ant stockquote -Daddurl=
> http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=
> http://localhost:8280/ -Dsymbol=*MSFT*
>
>
> *This is my proxy service *
> 
> http://ws.apache.org/ns/synapse;>
> 
>  xmlns:m0="http://services.samples; xmlns:ns="
> http://org.apache.synapse/xsd;>
> 
> 
> 
> http://localhost:9000/services/SimpleStockQuoteService"/>
> 
> 
> 
> 
> **
> **
> **
> **
> **
> **
> **
> *mailto:nif...@wso2.com
> "/>*
> **
> **
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>
> I feel all configurations and settings are fine. But what the thing block
> me to deliver the mail.
>
> Thank you
>
>
> --
> Nifras Ismail
> Associate Software Engineer
> WSO2
> Email : nif...@wso2.com
> Mobile : 0094 77 89 90 300
>



-- 
Nifras Ismail
Associate Software Engineer
WSO2
Email : nif...@wso2.com
Mobile : 0094 77 89 90 300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ ESB] Mailto sender not working, Need to review my Proxy service

2016-05-16 Thread Nifras Ismail
Hi All,

I have trying to alter the sample 4 (Error handler) to sending the error as
mail.

But unfortunately I could not receive the mail

*I hope my mailto configuration on axis2.xml and my proxy services are fine
.*

*My axis.xml I have un comment these following stuffs .*





 
smtp.gmail.com
587
true
true
synapse.demo.0
mailpassword
synapse.dem...@gmail.com



*and re run my sample as *
./wso2esb-samples.sh sn 4

*Then I run the sample as with errors on MSFT *
ant stockquote -Daddurl=
http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=
http://localhost:8280/ -Dsymbol=*MSFT*


*This is my proxy service *

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

http://services.samples; xmlns:ns="
http://org.apache.synapse/xsd;>



http://localhost:9000/services/SimpleStockQuoteService"/>




**
**
**
**
**
**
**
*mailto:nif...@wso2.com
"/>*
**
**













I feel all configurations and settings are fine. But what the thing block
me to deliver the mail.

Thank you


-- 
Nifras Ismail
Associate Software Engineer
WSO2
Email : nif...@wso2.com
Mobile : 0094 77 89 90 300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-05-16 Thread Mahesh Dananjaya
Hi Maheshakya,
thank you. i will update the repo today.thank you.i changed the carbon ml
siddhi extention and see how the changes are effecting. i will update the
progress as soon as possible.thank you. i had some problem in spark mllib
dependency. i was fixing that.
regards,
Mahesh.
p.s: do i need to maintain a blog?

On Mon, May 16, 2016 at 10:02 AM, Maheshakya Wijewardena <
mahesha...@wso2.com> wrote:

> Hi Mahesh,
>
> Sorry for replying late.
>
> Thank you for the update. I believe you have done some implementations
> with with Spark MLLIb algorithms in streaming fashion as we have discussed.
> If so, can you please share your code in a Github repo.
>
> Now i want to implements some machine learning algorithms with importing
>> mllib and want to run within your code base
>>
>
> For the moment you can try out editing the same class
> PredictStreamProcessor in the siddhi extension in carbon-ml. Later we will
> add this separately. You should be able to add org.apache.spark.mllib.
> classes to there.
>
> And i want to see how event streams are coming from cep. As i think it is
>> not in a RDD format since it is arriving as the individual samples. I will
>> send a email to dev asking about how to get the streams.
>
>
> Please pay attention to length[1] and lengthbatch[1] inbuilt windows in
> siddhi. What you need to write are functions similar to a custom aggregate
> function[2].
> When you send the email to dev list, explain your requirement. You need to
> get a set of event with from a stream with a specified window size (number
> of events). Then build a model within that function. You also need to
> retain the data (learned weights, cluster centers, etc.) from the previous
> window to use in the current window. Ask what can be the most suitable
> option for this among the set of siddhi extensions given.
>
> Best regards.
>
> [1]
> https://docs.wso2.com/display/CEP400/Inbuilt+Windows#InbuiltWindows-lengthlength
> [2]
> https://docs.wso2.com/display/CEP400/Writing+a+Custom+Aggregate+Function
>
> On Wed, May 11, 2016 at 1:43 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>>
>> -- Forwarded message --
>> From: Mahesh Dananjaya 
>> Date: Wed, May 11, 2016 at 1:43 PM
>> Subject: Re: [Dev] GSOC2016: [ML][CEP] Predictive analytic with online
>> data for WSO2 Machine Learner
>> To: Maheshakya Wijewardena 
>>
>>
>> Hi Maheshakya,
>> sorry for not updating. I did what you wanted me to do. I checked the
>> code base and train functions. I went through those java docs. I went
>> through the carbon-ml current implementation of LG and K-Mean. And i had
>> Apache Spark and i tried with several examples. Now i want to implements
>> some machine learning algorithms with importing mllib and want to run
>> within your code base. Can you help me with that.
>> And i want to see how event streams are coming from cep. As i think it is
>> not in a RDD format since it is arriving as the individual samples. I will
>> send a email to dev asking about how to get the streams. I debugged many of
>> those functions in the code base. So need further instructions to
>> proceed.thank you.
>> regards,
>> Mahesh.
>>
>> On Wed, May 11, 2016 at 10:32 AM, Maheshakya Wijewardena <
>> mahesha...@wso2.com> wrote:
>>
>>> Hi Mahesh,
>>>
>>> Any update on your progress?
>>>
>>> Best regards.
>>>
>>> On Wed, May 4, 2016 at 8:35 PM, Maheshakya Wijewardena <
>>> mahesha...@wso2.com> wrote:
>>>
 Hi Mahesh,

 is that "Put break points in train methods in Linear Regression class"
> means the spark/algorithms/ LinearRegrassion.java class in the
> org.wso2.carbon.ml.core? is that the correct file?


 Yes, this is the correct place.

 You can refer to spark programming guide[1][2] as well as our ML code
 base when you try those algorithms out. Please try to do rough
 implementations of the streaming versions of linear regression, logistic
 regression and k-means clustering as we have discussed in the proposal in
 plain Java. It's better if you can create a git repo and share your code
 once you have made some progress.

 Were you able debug and understand the flow of the ML siddhi extension?
 I hope you haven't encountered more errors after switching the released
 version of CEP.

 Is this Friday okay for you? Afternoon at 2:00 pm?

 Best regards.


 Best regards.

 [1] http://spark.apache.org/docs/latest/programming-guide.html
 [2] http://spark.apache.org/docs/latest/mllib-guide.html

 On Wed, May 4, 2016 at 1:07 PM, Mahesh Dananjaya <
 dananjayamah...@gmail.com> wrote:

> Hi Maheshakya,
> I have been looking into some algorithms related to stochastic
> gradient descent based algorithms.anything i should focus please let me
> know.Ans also i will be available for calling this week and next 
> week.thank
> you.
> BR,

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

2016-05-16 Thread Yasima Dewmini
Hi all,

I'm writing integration tests for Process Center. We can add role
permissions in automation.xml as following.



/permission/admin/configure
/permission/admin/login



I need to deny some role permissions like read, write for a specific
process.
How can I do this? Any help on this is appreciated.

Thanks
Yasima.

-- 
Yasima Dewmini
Software Engineer, WSO2, Inc.
Mobile: 0713117081
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5][BPS] Startup errors with new kernel SNAPSHOT

2016-05-16 Thread Senduran Balasubramaniyam
Hi Niranjan / Hasitha

We have upgraded carbon transport's kernel version to 5.1.0-alpha2 and done
the fixes for the new start up resolver (based on [1] ). The changes are
pushed to the master branch (2.0.3-snapshot)
Please test it and let us know whether it resolves the issues. so that we
can proceed with carbon-transport release (2.1.0)

[1] https://github.com/Niranjan-K/carbon-transports/tree/fix-v2.0.1

Regards
Senduran

On Thu, May 12, 2016 at 2:42 PM, Niranjan Karunanandham 
wrote:

> Hi all,
>
> I have modified carbon-datasources [1] and msf4j [2] with carbon-kernel
> 5.1.0-alpha2 (in staging). I verified msf4j modifying by changing
> carbon-transports v2.0.1 [3] with startup resolver changes.
>
> [1] - https://github.com/wso2/carbon-datasources/pull/14
> [2] - https://github.com/wso2/msf4j/pull/169
> [3] - https://github.com/Niranjan-K/carbon-transports/tree/fix-v2.0.1
>
> Regards,
> Nira
>
> On Mon, May 9, 2016 at 2:55 PM, Nandika Jayawardana 
> wrote:
>
>> Can we have a quick resolution to this issue.
>>
>> Regards
>> Nandika
>>
>> On Mon, May 9, 2016 at 11:09 AM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Sameera,
>>>
>>> I have fixed this for carbon-datasources in PR [1].
>>>
>>> [1] - https://github.com/wso2/carbon-datasources/pull/14
>>>
>>> Regards,
>>> Nira
>>>
>>> On Mon, May 9, 2016 at 10:43 AM, Afkham Azeez  wrote:
>>>
 Transport folks, please note. I think a release is planned but we will
 need to hold it back until these changes are made.

 On Sun, May 8, 2016 at 12:39 PM, Niranjan Karunanandham <
 niran...@wso2.com> wrote:

> Hi Hasitha,
>
> There were some improvements done to the startup resolver as mentioned
> in [1]. I faced a similar issue[2] when testing the Kernel 5.1.0-alpha2
> (which is in staging) with carbon-datasources and I was able to fix it by
> following the doc and updating the datasource.core pom.xml [3] and
> DataSourceListenerComponent.java [4].
>
> [1] - https://medium.com/@sameera.jayasoma/497fe3287e67#.ravrmkjir
> [2] -
> [2016-05-08 11:31:16,371] ERROR {org.wso2.carbon.core} -
> FrameworkEvent ERROR - org.wso2.carbon.core
> org.wso2.carbon.kernel.internal.startupresolver.StartOrderResolverException:
> componentName value is missing in the services registered with the key
> org.wso2.carbon.kernel.startupresolver.RequiredCapabilityListener,
> implementation class name is
> org.wso2.carbon.datasource.core.internal.DataSourceListenerComponent
> at
> org.wso2.carbon.kernel.internal.startupresolver.OSGiServiceCapabilityTracker$CapabilityServiceTrackerCustomizer.addingService(OSGiServiceCapabilityTracker.java:142)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
> at
> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
> at
> org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:914)
> 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:862)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.registerService(InstanceProcess.java:536)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:213)
> at
> org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
> at
> org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
> at
> org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
> at
> org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
> at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
> at
>