Re: [Dev] [AF] Using setTimeout in a jiggery page

2015-06-12 Thread Ruchira Wageesha
setTimeout can be used, but it will be executed in the background and you
don't have control over when it is done. Also, if you trigger that from a
specific request, then you can't get the results before that request ends.

Further, it will have probably hold cleaning up the scopes associated with
that specific request until setTimeout get executed. Hence, please take
those into consideration.

Depending on you requirement, you can also think of implementing a Java
class which do the caching and expose a util method, so Jaggery can fetch
from the cache. In this way, you can get more control over concurrency
control etc.

/Ruchira

On Fri, Jun 12, 2015 at 11:03 AM,  wrote:

>  Hi
> Currently in AF jaggery application we are using the block model. In the
> index page we were loading the permissions to cache. So I moved the caching
> to a separate thread using setTimeout fuction. Seems there is an
> performance improvement after that. My question is whether that's the
> correct thing to do. Is it ok to use setTimeout function there?
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
>


-- 

*Ruchira Wageesha**Technical Lead*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com *

*email: ruch...@wso2.com ,   blog:
ruchirawageesha.blogspot.com ,
mobile: +94 77 5493444*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PPaaS][Configurator] WSO2-IS template for Configurator

2015-06-12 Thread Pubudu Gunatilaka
Hi Imesh,

I added a README.md file and it includes the following details.
- Configurations it supports
- Configuration parameters and their usage
- Files used by the configuration parameters

I also modified the WSO2-IS 5.0.0 template to setup an external database.

PR can be found in [1]. Please review and merge.

[1] - https://github.com/wso2/product-private-paas/pull/89

Thank you!


On Wed, Jun 10, 2015 at 1:38 PM, Imesh Gunaratne  wrote:

> Great work Pubudu! I have now merged it to master branch.
> IMO it would be better if we can add a README.md file here [1] and explain
> the configurations it support.
>
> [1]
> https://github.com/wso2/product-private-paas/tree/master/cartridges/templates/wso2is-5.0.0
>
> Thanks
>
> On Wed, Jun 10, 2015 at 12:52 PM, Pubudu Gunatilaka 
> wrote:
>
>> Hi Imesh,
>>
>> I have added WSO2-IS template for the configurator module.
>> Please review and merge the PR in [1].
>>
>> [1] - https://github.com/wso2/product-private-paas/pull/87
>>
>> Thank you!
>> --
>>
>> *Pubudu Gunatilaka*
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean.enterprise.middleware
>> mobile:  +94 77 4078049
>>
>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 

*Pubudu Gunatilaka*
Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
mobile:  +94 77 4078049
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] carbon-store-2.1.0 released to staging

2015-06-12 Thread Sameera Medagammaddegedara
Hi Jayanga,

The carbon-store-2.1.0 component has been released to staging.Could you
please provide assistance in closing and releasing the said repo.

Thank You,
Sameera

-- 
Sameera Medagammaddegedara
Software Engineer

Contact:
Email: samee...@wso2.com
Mobile: + 94 077 255 3005
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM 1.9.0 nightly build pack - 12-06-2015

2015-06-12 Thread Sewmini Jayaweera
Hi,

Please note that new feature introduced in API Manager 1.9.0 (Pluggable
version context) is broken and cannot test it in the latest pack given (API
manager 1.9.0 nightly build pack 12-06-2015). Please refer to the Jira below

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

Thanks & Regards
sewmini

Sewmini Jayaweera
*Software Engineer - QA Team*
Mobile: +94 (0) 773 381 250
sewm...@wso2.com

On Fri, Jun 12, 2015 at 12:04 PM, Lakmali Baminiwatta 
wrote:

> Hi,
>
> Please find $subject from [1]
>
> [1]http://builder1.us1.wso2.org/~apim/12-06-2015/
>
> Thanks,
> Lakmali
>
> --
> Lakmali Baminiwatta
>  Senior Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> mobile:  +94 71 2335936
> blog : lakmali.com
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] Using setTimeout in a jiggery page

2015-06-12 Thread danushkaf
Hi Ruchira, 

Thanks for the detailed explanation. Few explanations about our implementation.

We use java caches and this caching is about caching stuff related to the user 
in the session. So it has to be in the jaggery level. 

Then it’s ok that this runs later and that what we want to happen too.

Since this is one time thing and not an really heavy operation keeping the 
scope is ok I guess. (Only when login)

@Dimuthu, Manjula any thoughts?








Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729





From: Ruchira Wageesha
Sent: ‎Friday‎, ‎June‎ ‎12‎, ‎2015 ‎12‎:‎53‎ ‎PM
To: Danushka Fernando
Cc: WSO2 Developers' List, Dimuthu Leelarathne, Manjula Rathnayake___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM 1.9.0 nightly build pack - 12-06-2015

2015-06-12 Thread Nuwan Dias
Sorry about that, wrong UI validation done to fix [1]. Will issue a fix to
continue testing.

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

Thanks,
NuwanD.

On Fri, Jun 12, 2015 at 2:12 PM, Sewmini Jayaweera  wrote:

> Hi,
>
> Please note that new feature introduced in API Manager 1.9.0 (Pluggable
> version context) is broken and cannot test it in the latest pack given (API
> manager 1.9.0 nightly build pack 12-06-2015). Please refer to the Jira below
>
> https://wso2.org/jira/browse/APIMANAGER-3866
>
> Thanks & Regards
> sewmini
>
> Sewmini Jayaweera
> *Software Engineer - QA Team*
> Mobile: +94 (0) 773 381 250
> sewm...@wso2.com
>
> On Fri, Jun 12, 2015 at 12:04 PM, Lakmali Baminiwatta 
> wrote:
>
>> Hi,
>>
>> Please find $subject from [1]
>>
>> [1]http://builder1.us1.wso2.org/~apim/12-06-2015/
>>
>> Thanks,
>> Lakmali
>>
>> --
>> Lakmali Baminiwatta
>>  Senior Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean.enterprise.middleware
>> mobile:  +94 71 2335936
>> blog : lakmali.com
>>
>>
>


-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM 1.9.0 nightly build pack - 12-06-2015

2015-06-12 Thread Sewmini Jayaweera
Hi,

Please note that API creation is blocked when mssql databases are used [1].

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

Thanks and regards,
Sewmini

Sewmini Jayaweera
*Software Engineer - QA Team*
Mobile: +94 (0) 773 381 250
sewm...@wso2.com

On Fri, Jun 12, 2015 at 2:16 PM, Nuwan Dias  wrote:

> Sorry about that, wrong UI validation done to fix [1]. Will issue a fix to
> continue testing.
>
> [1] - https://wso2.org/jira/browse/APIMANAGER-3720
>
> Thanks,
> NuwanD.
>
> On Fri, Jun 12, 2015 at 2:12 PM, Sewmini Jayaweera 
> wrote:
>
>> Hi,
>>
>> Please note that new feature introduced in API Manager 1.9.0 (Pluggable
>> version context) is broken and cannot test it in the latest pack given (API
>> manager 1.9.0 nightly build pack 12-06-2015). Please refer to the Jira below
>>
>> https://wso2.org/jira/browse/APIMANAGER-3866
>>
>> Thanks & Regards
>> sewmini
>>
>> Sewmini Jayaweera
>> *Software Engineer - QA Team*
>> Mobile: +94 (0) 773 381 250
>> sewm...@wso2.com
>>
>> On Fri, Jun 12, 2015 at 12:04 PM, Lakmali Baminiwatta 
>> wrote:
>>
>>> Hi,
>>>
>>> Please find $subject from [1]
>>>
>>> [1]http://builder1.us1.wso2.org/~apim/12-06-2015/
>>>
>>> Thanks,
>>> Lakmali
>>>
>>> --
>>> Lakmali Baminiwatta
>>>  Senior Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean.enterprise.middleware
>>> mobile:  +94 71 2335936
>>> blog : lakmali.com
>>>
>>>
>>
>
>
> --
> Nuwan Dias
>
> Technical Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF][Jaggery] Error while calling java method from jaggery

2015-06-12 Thread danushkaf
Hi Mahesh

When we register an osgi service to a bundle, Any component can retrieve it. 
Usually we do it in Service Component where we write the scr references. And we 
keep reference to an object of the service and we use only inside the given 
component. If we need it in another component we retrieve same from there too. 
That's how its done in java components. But when it comes to a web application 
(or jiggery application) since they are not running in osgi framework they 
cannot refer to the osgi services in the same manner. So we retrieve it from 
carbon context.

We have done this call every where in our application.


CarbonContext.getThreadlocalCarbonContext().getOSGIService(“”)


You have to retrieve the service in the above manner in your code.


Hope the explanation is clear to you.






Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729





From: Mahesh Chinthaka
Sent: ‎Friday‎, ‎June‎ ‎12‎, ‎2015 ‎10‎:‎36‎ ‎AM
To: WSO2 Developers' List





Hi ,



Im trying to call a java method from a jaggery module.

We have called same method from java side like follows

AppFactoryS4ListenersUtil.getTenantRegistryLoader().loadTenantRegistry(tenantId);





my jaggery code is like follows




var tenantId=getTenantId();



var s4util = 
Packages.org.wso2.carbon.appfactory.stratos.util.AppFactoryS4ListenersUtil;

s4util.getTenantRegistryLoader().loadTenantRegistry(tenantId);





And Im getting following error








TID: [0] [AF] [2015-06-12 10:22:05,387] ERROR 
{org.jaggeryjs.jaggery.core.manager.WebAppManager} -  
org.mozilla.javascript.EcmaError: TypeError: Cannot call property 
getTenantRegistryLoader in object [JavaPackage 
org.wso2.carbon.appfactory.stratos.util.AppFactoryS4ListenersUtil]. It is not a 
function, it is "object". (/appmgt/modules/manager/manager.jag#331) 
{org.jaggeryjs.jaggery.core.manager.WebAppManager}

org.jaggeryjs.scriptengine.exceptions.ScriptException: 
org.mozilla.javascript.EcmaError: TypeError: Cannot call property 
getTenantRegistryLoader in object [JavaPackage 
org.wso2.carbon.appfactory.stratos.util.AppFactoryS4ListenersUtil]. It is not a 
function, it is "object". (/appmgt/modules/manager/manager.jag#331)

at 
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)

at 
org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)

at 
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)

at 
org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)

at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)

at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)

at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)

at 
org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)

at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

at 
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)

at 
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)

at 
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)

at 
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)

at 
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)

at 
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)

at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)

at 
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)

at 
or

Re: [Dev] APIM 1.9.0 nightly build pack - 12-06-2015

2015-06-12 Thread Nuwan Dias
They've been fixed now. Please follow instructions on the JiRA to continue
testing.

Thanks,
NuwanD.

On Fri, Jun 12, 2015 at 2:35 PM, Sewmini Jayaweera  wrote:

> Hi,
>
> Please note that API creation is blocked when mssql databases are used
> [1].
>
> https://wso2.org/jira/browse/APIMANAGER-3867
>
> Thanks and regards,
> Sewmini
>
> Sewmini Jayaweera
> *Software Engineer - QA Team*
> Mobile: +94 (0) 773 381 250
> sewm...@wso2.com
>
> On Fri, Jun 12, 2015 at 2:16 PM, Nuwan Dias  wrote:
>
>> Sorry about that, wrong UI validation done to fix [1]. Will issue a fix
>> to continue testing.
>>
>> [1] - https://wso2.org/jira/browse/APIMANAGER-3720
>>
>> Thanks,
>> NuwanD.
>>
>> On Fri, Jun 12, 2015 at 2:12 PM, Sewmini Jayaweera 
>> wrote:
>>
>>> Hi,
>>>
>>> Please note that new feature introduced in API Manager 1.9.0 (Pluggable
>>> version context) is broken and cannot test it in the latest pack given (API
>>> manager 1.9.0 nightly build pack 12-06-2015). Please refer to the Jira below
>>>
>>> https://wso2.org/jira/browse/APIMANAGER-3866
>>>
>>> Thanks & Regards
>>> sewmini
>>>
>>> Sewmini Jayaweera
>>> *Software Engineer - QA Team*
>>> Mobile: +94 (0) 773 381 250
>>> sewm...@wso2.com
>>>
>>> On Fri, Jun 12, 2015 at 12:04 PM, Lakmali Baminiwatta 
>>> wrote:
>>>
 Hi,

 Please find $subject from [1]

 [1]http://builder1.us1.wso2.org/~apim/12-06-2015/

 Thanks,
 Lakmali

 --
 Lakmali Baminiwatta
  Senior Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 mobile:  +94 71 2335936
 blog : lakmali.com


>>>
>>
>>
>> --
>> Nuwan Dias
>>
>> Technical Lead - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>
>


-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [BPS] Please review and merge the pull request

2015-06-12 Thread Vinod Kavinda
Hi,
Please $subject [1] for [2].

[1] - https://github.com/wso2/carbon-business-process/pull/75
[2] - https://wso2.org/jira/browse/BPS-363

Regards,
Vinod

-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware .*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Developer Studio 3.8.0 M4 Released!

2015-06-12 Thread Sohani Weerasinghe
Hi All,

We have WSO2 Developer Studio 3.8.0 M4 ready to be downloaded at [1].

This release includes following features, tasks and bug fixes.
Features:

   - [TOOLS-2847 ] - DevS support
   for ForEach mediator
   - [TOOLS-2862 ] -
   APIM-Perspective to edit APIM sequence from registry

Tasks:

   - [TOOLS-2838 ] -
   Implementation for HTTP transport in Inbound Endpoint
   - [TOOLS-2839 ] -
   Implementation for JMS transport in Inbound Endpoint
   - [TOOLS-2840 ] -
   Implementation for Custom transport in Inbound Endpoint
   - [TOOLS-2841 ] -
   Implementation for HTTPS transport in Inbound Endpoint
   - [TOOLS-2842 ] -
   Implementation for File transport in Inbound Endpoint
   - [TOOLS-2843 ] -
   Implementation for HL7 transport in Inbound Endpoint
   - [TOOLS-2844 ] -
   Implementation for KAFKA transport in Inbound Endpoint
   - [TOOLS-2845 ] -
   Implementation for CXF_WS_RM transport in Inbound Endpoint
   - [TOOLS-2855 ] - Adding
   zooming functionality
   - [TOOLS-2857 ] - Support CApp
   deployment for Inbound Endpoints

Bugs:

   - [TOOLS-2824 ] - Cannot
   create/design complex endpoints
   - [TOOLS-2851 ] - Support
   Import option for Inbound Endpoint
   - [TOOLS-2859 ] - When opening
   sequence from APIM perspective , first mediator not showing in the diagram
   - [TOOLS-2860 ] - Registry
   Tree, Copy resource among the nodes not working

Your feedback is most welcome. Please report issues at [2] and specify the
affect version as 3.8.0 M4.

[1] *https://svn.wso2.org/repos/wso2/scratch/DevS/
*
[2] https://wso2.org/jira/browse/TOOLS

Thanks and Regards,
WSO2 Developer Studio Team
Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

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


Re: [Dev] carbon-store-2.1.0 released to staging

2015-06-12 Thread Sameera Medagammaddegedara
Hi GREG team,

Could you please verify the product-greg build with the following repo:
http://maven.wso2.org/nexus/content/repositories/orgwso2carbonstore-045/


Thank You,
Sameera

On Fri, Jun 12, 2015 at 2:08 PM, Sameera Medagammaddegedara <
samee...@wso2.com> wrote:

> Hi Jayanga,
>
> The carbon-store-2.1.0 component has been released to staging.Could you
> please provide assistance in closing and releasing the said repo.
>
> Thank You,
> Sameera
>
> --
> Sameera Medagammaddegedara
> Software Engineer
>
> Contact:
> Email: samee...@wso2.com
> Mobile: + 94 077 255 3005
>



-- 
Sameera Medagammaddegedara
Software Engineer

Contact:
Email: samee...@wso2.com
Mobile: + 94 077 255 3005
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC 2015] New SVG Layout for Visual Composer Siddhi Lang.

2015-06-12 Thread Srinath Perera
Input and output streams are the same thing. Sometimes, a stream can be
both inputs and outputs E.g. Stream 2.

[image: Inline image 1]

On Thu, Jun 11, 2015 at 1:53 PM, Mohamed Fawzan  wrote:

> Hi Srinath,
>
> Can you please help me to understand the streams? I mean the InputOutputNode
> in.
>
>
> InputOutputNode : {
>
> connectionName : 'StockQuoteStream',
>
> connectionType :'Stream',
>
> connectionTypeDetails : 'para1:string, para2:int'
>
> }
>
>
> In the layout[1]  I have considered 
> Input & Output streams as separate things. Is it correct ? or else are they 
> belong to same category?
>
>
> -Regards
>
>
> [1]-http://vc.mutexlk.com/dashboard.html
>
>
> On Thu, Jun 11, 2015 at 10:53 AM, Mohamed Fawzan 
> wrote:
>
>> Hi,
>>
>>
>>
>> On Thu, Jun 11, 2015 at 8:04 AM, Srinath Perera  wrote:
>>
>>> Need names inside canvas as well. ( need to handle large names).
>>>
>>> What are the children of streams? attributes?
>>>
>> I was planning to categorize streams there. Please see the updated names
>> here[1]. 
>>
>>
>>
>>
>>
>>> I would rather connect streams and operators, then click on operator and
>>> pick which attribute/ or attributes you use. If so I would not show
>>> children against streams.
>>>
>>> On Thu, Jun 11, 2015 at 6:52 AM, Mohamed Fawzan 
>>> wrote:
>>>

 Hi Srinath,

 I have just added the streams names inside the rectangles [1]
  . Please check and comment on
 it.

 -Regards

 [1] - http://vc.mutexlk.com/dashboard.html

 On Wed, Jun 10, 2015 at 5:55 PM, Mohamed Fawzan 
 wrote:

>
> On Wed, Jun 10, 2015 at 5:52 PM, Srinath Perera 
> wrote:
>
>> We can do it several ways
>>
>> 1. have small connectors showing against each node ( Stream/
>> Operator), which you can click and drag to connector in other node.
>>
>
> +1, I had the same idea on my mind. I will work on that, Feel free to
> suggest other options as well.
>
>
>
>> 2. Second option drop into other one as you mention.
>>
>> I think #2 run into a problem if you want to connect two streams to
>> same operator ( e.g. Join). So I prefer #1. But open for other options.
>>
>> --Srinath
>>
>> On Wed, Jun 10, 2015 at 5:46 PM, Mohamed Fawzan 
>> wrote:
>>
>>> Are we talking about connecting the streams & operators phase? If so
>>> what is your preferred method of doing it?
>>>
>>> does the connection made when we drop an operator on another
>>> operator OR drop an operator on a stream?
>>>
>>> Am I correct ?
>>>
>>>
>>>
>>> On Wed, Jun 10, 2015 at 5:42 PM, Srinath Perera 
>>> wrote:
>>>
 We need to connect stream to operators and operator to other
 operators by connectors?
 Need to click on a connector and drg it to another operator or
 stream. Would that clear?

 On Wed, Jun 10, 2015 at 5:36 PM, Mohamed Fawzan 
 wrote:

>
> On Wed, Jun 10, 2015 at 5:31 PM, Srinath Perera 
> wrote:
>
>
>
>> we need name of the stream in the box IMO.
>>
>
> +1, I will make the changes.
>
>
>
>> Also we need a way to draw from the stream to operators and
>> between operators next.
>>
>> I can't quite understand that, Can you please explain it a bit?
>
>
>
>
>
>> On Tue, Jun 9, 2015 at 7:24 PM, Mohamed Fawzan > > wrote:
>>
>>> Hi Srinath,
>>>
>>> I have added the streams[1]
>>>  as well. Please check
>>> and comment.
>>>
>>> -Regards
>>>
>>> [1] - http://vc.mutexlk.com/dashboard.html
>>>
>>> On Tue, Jun 9, 2015 at 9:43 AM, Srinath Perera >> > wrote:
>>>
 Look good. And overall layout is OK. ( We can do bit of styling
 with UI team later)

 --Srinath

 On Mon, Jun 8, 2015 at 6:06 PM, Mohamed Fawzan <
 fawz...@gmail.com> wrote:

> Hi Srinath,
>
> I have just added the right click delete option [1]
>  . Please check and
> comment on it.
>
> -Regards
>
> [1] - http://vc.mutexlk.com/dashboard.html
>
> On Mon, Jun 8, 2015 at 3:54 PM, Mohamed Fawzan <
> fawz...@gmail.com> wrote:
>
>> Yeah. Right now working on the stream, i will try the right
>> click -> delete. Btw what do you think of the complete svg 
>> layout? Is it ok?
>>

[Dev] Warning log printed when ML server start-up

2015-06-12 Thread Nirmal Fernando
We can see following highlighted warning logs at the server start-up. Any
thoughts on this?

JAVA_HOME environment variable is set to
/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home

CARBON_HOME environment variable is set to
/Volumes/wso2/git/product-ml/modules/distribution/target/wso2ml-1.0.0-SNAPSHOT

*[2015-06-12 15:01:57,087]  WARN
{org.apache.axiom.util.stax.dialect.StAXDialectDetector} -  Unable to
determine dialect of the StAX implementation at
bundleresource://16.fwk31199212/*

*[2015-06-12 15:01:57,080]  WARN
{org.apache.axiom.util.stax.dialect.StAXDialectDetector} -  Unable to
determine dialect of the StAX implementation at
bundleresource://16.fwk31199212/*

[2015-06-12 15:01:57,335]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2
Carbon...

[2015-06-12 15:01:57,336]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System :
Mac OS X 10.10.2, x86_64

[2015-06-12 15:01:57,336]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home:
/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/jre

[2015-06-12 15:01:57,336]

-- 

Thanks & regards,
Nirmal

Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC 2015] New SVG Layout for Visual Composer Siddhi Lang.

2015-06-12 Thread Mohamed Fawzan
Yes. It is a good time. I can take the 6.00AM Train from kandy. Can reach
colombo by 10.00 i guess. Is it o?

On Friday, June 12, 2015, Mohamed Fawzan  wrote:

> Understood. Thanks Srinath.
>
> On Friday, June 12, 2015, Srinath Perera  > wrote:
>
>> Input and output streams are the same thing. Sometimes, a stream can be
>> both inputs and outputs E.g. Stream 2.
>>
>> [image: Inline image 1]
>>
>> On Thu, Jun 11, 2015 at 1:53 PM, Mohamed Fawzan 
>> wrote:
>>
>>> Hi Srinath,
>>>
>>> Can you please help me to understand the streams? I mean the InputOutputNode
>>> in.
>>>
>>>
>>> InputOutputNode : {
>>>
>>> connectionName : 'StockQuoteStream',
>>>
>>> connectionType :'Stream',
>>>
>>> connectionTypeDetails : 'para1:string, para2:int'
>>>
>>> }
>>>
>>>
>>> In the layout[1]  I have considered 
>>> Input & Output streams as separate things. Is it correct ? or else are they 
>>> belong to same category?
>>>
>>>
>>> -Regards
>>>
>>>
>>> [1]-http://vc.mutexlk.com/dashboard.html
>>>
>>>
>>> On Thu, Jun 11, 2015 at 10:53 AM, Mohamed Fawzan 
>>> wrote:
>>>
 Hi,



 On Thu, Jun 11, 2015 at 8:04 AM, Srinath Perera 
 wrote:

> Need names inside canvas as well. ( need to handle large names).
>
> What are the children of streams? attributes?
>
 I was planning to categorize streams there. Please see the updated
 names here[1]. 





> I would rather connect streams and operators, then click on operator
> and pick which attribute/ or attributes you use. If so I would not show
> children against streams.
>
> On Thu, Jun 11, 2015 at 6:52 AM, Mohamed Fawzan 
> wrote:
>
>>
>> Hi Srinath,
>>
>> I have just added the streams names inside the rectangles [1]
>>  . Please check and comment on
>> it.
>>
>> -Regards
>>
>> [1] - http://vc.mutexlk.com/dashboard.html
>>
>> On Wed, Jun 10, 2015 at 5:55 PM, Mohamed Fawzan 
>> wrote:
>>
>>>
>>> On Wed, Jun 10, 2015 at 5:52 PM, Srinath Perera 
>>> wrote:
>>>
 We can do it several ways

 1. have small connectors showing against each node ( Stream/
 Operator), which you can click and drag to connector in other node.

>>>
>>> +1, I had the same idea on my mind. I will work on that, Feel free
>>> to suggest other options as well.
>>>
>>>
>>>
 2. Second option drop into other one as you mention.

 I think #2 run into a problem if you want to connect two streams to
 same operator ( e.g. Join). So I prefer #1. But open for other options.

 --Srinath

 On Wed, Jun 10, 2015 at 5:46 PM, Mohamed Fawzan 
 wrote:

> Are we talking about connecting the streams & operators phase? If
> so what is your preferred method of doing it?
>
> does the connection made when we drop an operator on another
> operator OR drop an operator on a stream?
>
> Am I correct ?
>
>
>
> On Wed, Jun 10, 2015 at 5:42 PM, Srinath Perera 
> wrote:
>
>> We need to connect stream to operators and operator to other
>> operators by connectors?
>> Need to click on a connector and drg it to another operator or
>> stream. Would that clear?
>>
>> On Wed, Jun 10, 2015 at 5:36 PM, Mohamed Fawzan <
>> fawz...@gmail.com> wrote:
>>
>>>
>>> On Wed, Jun 10, 2015 at 5:31 PM, Srinath Perera <
>>> srin...@wso2.com> wrote:
>>>
>>>
>>>
 we need name of the stream in the box IMO.

>>>
>>> +1, I will make the changes.
>>>
>>>
>>>
 Also we need a way to draw from the stream to operators and
 between operators next.

 I can't quite understand that, Can you please explain it a bit?
>>>
>>>
>>>
>>>
>>>
 On Tue, Jun 9, 2015 at 7:24 PM, Mohamed Fawzan <
 fawz...@gmail.com> wrote:

> Hi Srinath,
>
> I have added the streams[1]
>  as well. Please check
> and comment.
>
> -Regards
>
> [1] - http://vc.mutexlk.com/dashboard.html
>
> On Tue, Jun 9, 2015 at 9:43 AM, Srinath Perera <
> srin...@wso2.com> wrote:
>
>> Look good. And overall layout is OK. ( We can do bit of
>> styling with UI team later)
>>
>> --Srinath
>>
>> On Mon, Jun 8, 2015 at 6:06 PM, Mohamed Fawzan <
>> fawz...

Re: [Dev] [GSoC 2015] New SVG Layout for Visual Composer Siddhi Lang.

2015-06-12 Thread Srinath Perera
yes that is OK.

On Fri, Jun 12, 2015 at 4:25 PM, Mohamed Fawzan  wrote:

> Yes. It is a good time. I can take the 6.00AM Train from kandy. Can reach
> colombo by 10.00 i guess. Is it o?
>
>
> On Friday, June 12, 2015, Mohamed Fawzan  wrote:
>
>> Understood. Thanks Srinath.
>>
>> On Friday, June 12, 2015, Srinath Perera  wrote:
>>
>>> Input and output streams are the same thing. Sometimes, a stream can be
>>> both inputs and outputs E.g. Stream 2.
>>>
>>> [image: Inline image 1]
>>>
>>> On Thu, Jun 11, 2015 at 1:53 PM, Mohamed Fawzan 
>>> wrote:
>>>
 Hi Srinath,

 Can you please help me to understand the streams? I mean the 
 InputOutputNode
 in.


 InputOutputNode : {

 connectionName : 'StockQuoteStream',

 connectionType :'Stream',

 connectionTypeDetails : 'para1:string, para2:int'

 }


 In the layout[1]  I have considered 
 Input & Output streams as separate things. Is it correct ? or else are 
 they belong to same category?


 -Regards


 [1]-http://vc.mutexlk.com/dashboard.html


 On Thu, Jun 11, 2015 at 10:53 AM, Mohamed Fawzan 
 wrote:

> Hi,
>
>
>
> On Thu, Jun 11, 2015 at 8:04 AM, Srinath Perera 
> wrote:
>
>> Need names inside canvas as well. ( need to handle large names).
>>
>> What are the children of streams? attributes?
>>
> I was planning to categorize streams there. Please see the updated
> names here[1]. 
>
>
>
>
>
>> I would rather connect streams and operators, then click on operator
>> and pick which attribute/ or attributes you use. If so I would not show
>> children against streams.
>>
>> On Thu, Jun 11, 2015 at 6:52 AM, Mohamed Fawzan 
>> wrote:
>>
>>>
>>> Hi Srinath,
>>>
>>> I have just added the streams names inside the rectangles [1]
>>>  . Please check and comment
>>> on it.
>>>
>>> -Regards
>>>
>>> [1] - http://vc.mutexlk.com/dashboard.html
>>>
>>> On Wed, Jun 10, 2015 at 5:55 PM, Mohamed Fawzan 
>>> wrote:
>>>

 On Wed, Jun 10, 2015 at 5:52 PM, Srinath Perera 
 wrote:

> We can do it several ways
>
> 1. have small connectors showing against each node ( Stream/
> Operator), which you can click and drag to connector in other node.
>

 +1, I had the same idea on my mind. I will work on that, Feel free
 to suggest other options as well.



> 2. Second option drop into other one as you mention.
>
> I think #2 run into a problem if you want to connect two streams
> to same operator ( e.g. Join). So I prefer #1. But open for other 
> options.
>
> --Srinath
>
> On Wed, Jun 10, 2015 at 5:46 PM, Mohamed Fawzan  > wrote:
>
>> Are we talking about connecting the streams & operators phase? If
>> so what is your preferred method of doing it?
>>
>> does the connection made when we drop an operator on another
>> operator OR drop an operator on a stream?
>>
>> Am I correct ?
>>
>>
>>
>> On Wed, Jun 10, 2015 at 5:42 PM, Srinath Perera > > wrote:
>>
>>> We need to connect stream to operators and operator to other
>>> operators by connectors?
>>> Need to click on a connector and drg it to another operator or
>>> stream. Would that clear?
>>>
>>> On Wed, Jun 10, 2015 at 5:36 PM, Mohamed Fawzan <
>>> fawz...@gmail.com> wrote:
>>>

 On Wed, Jun 10, 2015 at 5:31 PM, Srinath Perera <
 srin...@wso2.com> wrote:



> we need name of the stream in the box IMO.
>

 +1, I will make the changes.



> Also we need a way to draw from the stream to operators and
> between operators next.
>
> I can't quite understand that, Can you please explain it a
 bit?





> On Tue, Jun 9, 2015 at 7:24 PM, Mohamed Fawzan <
> fawz...@gmail.com> wrote:
>
>> Hi Srinath,
>>
>> I have added the streams[1]
>>  as well. Please check
>> and comment.
>>
>> -Regards
>>
>> [1] - http://vc.mutexlk.com/dashboard.html
>>
>> On Tue, Jun 9, 2015 at 9:43 AM, Srinath Perera <
>> srin...@wso2.com>

[Dev] Review and merge for ESBJAVA-3766 and ESBJAVA-3733

2015-06-12 Thread Maheeka Jayasuriya
Hi,

$subject please.

[2] also contains serialization tests.

[1] https://github.com/wso2/carbon-mediation/pull/214
[2] https://github.com/wso2/wso2-synapse/pull/228

Thanks,

Maheeka Jayasuriya
Software Engineer
Mobile : +9450661
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PPaaS][Configurator] WSO2-IS template for Configurator

2015-06-12 Thread Imesh Gunaratne
Thanks Pubudu! I just merged the pull request to master branch.

On Fri, Jun 12, 2015 at 2:05 PM, Pubudu Gunatilaka  wrote:

> Hi Imesh,
>
> I added a README.md file and it includes the following details.
> - Configurations it supports
> - Configuration parameters and their usage
> - Files used by the configuration parameters
>
> I also modified the WSO2-IS 5.0.0 template to setup an external database.
>
> PR can be found in [1]. Please review and merge.
>
> [1] - https://github.com/wso2/product-private-paas/pull/89
>
> Thank you!
>
>
> On Wed, Jun 10, 2015 at 1:38 PM, Imesh Gunaratne  wrote:
>
>> Great work Pubudu! I have now merged it to master branch.
>> IMO it would be better if we can add a README.md file here [1] and
>> explain the configurations it support.
>>
>> [1]
>> https://github.com/wso2/product-private-paas/tree/master/cartridges/templates/wso2is-5.0.0
>>
>> Thanks
>>
>> On Wed, Jun 10, 2015 at 12:52 PM, Pubudu Gunatilaka 
>> wrote:
>>
>>> Hi Imesh,
>>>
>>> I have added WSO2-IS template for the configurator module.
>>> Please review and merge the PR in [1].
>>>
>>> [1] - https://github.com/wso2/product-private-paas/pull/87
>>>
>>> Thank you!
>>> --
>>>
>>> *Pubudu Gunatilaka*
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean.enterprise.middleware
>>> mobile:  +94 77 4078049
>>>
>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
>
> *Pubudu Gunatilaka*
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> mobile:  +94 77 4078049
>



-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] carbon-store-2.1.0 released to staging

2015-06-12 Thread Shazni Nazeer
Hi Sameera,

We performed the build with the above repo and build seems to be
successful.



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

On Fri, Jun 12, 2015 at 3:35 PM, Sameera Medagammaddegedara <
samee...@wso2.com> wrote:

> Hi GREG team,
>
> Could you please verify the product-greg build with the following repo:
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonstore-045/
> 
>
> Thank You,
> Sameera
>
> On Fri, Jun 12, 2015 at 2:08 PM, Sameera Medagammaddegedara <
> samee...@wso2.com> wrote:
>
>> Hi Jayanga,
>>
>> The carbon-store-2.1.0 component has been released to staging.Could you
>> please provide assistance in closing and releasing the said repo.
>>
>> Thank You,
>> Sameera
>>
>> --
>> Sameera Medagammaddegedara
>> Software Engineer
>>
>> Contact:
>> Email: samee...@wso2.com
>> Mobile: + 94 077 255 3005
>>
>
>
>
> --
> Sameera Medagammaddegedara
> Software Engineer
>
> Contact:
> Email: samee...@wso2.com
> Mobile: + 94 077 255 3005
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] AS build fails at tests-security-manager due to file permission

2015-06-12 Thread Niranjan Karunanandham
Hi,

When I tried to build AS pack from Github (master branch) [1], it failed
with error in [2], but this is *passing in Jenkins*. Had an offline
discussion with Nuwan and found out that in my machine "*sign-packs.sh*"
which is used to sign the jar files in the pack for testing is not executed
as it does *not have execute permission*. When I check the original
location of the file and it has the permission - 775, but when it is copied
the permission is lost.

After I changed the original file permission to 755  and ran the test case,
it failed when it tried to execute sign-packs.sh with a different error
(error: that a newline is present (^M)). This is happened because the
sign-packs.sh file has the Line Separator as *CRLF*. After changing it to
*LF*, I was able to run the tests-security-manager. Why is this happening?


[1] - https://github.com/wso2/product-as/
[2] -
INFO
 [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil]
- Port 9763 is closed and available for use
INFO
 [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil]
- Port 9443 is closed and available for use
INFO
 
[org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager]
- Starting carbon server.
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- JAVA_HOME environment variable is set to /usr/local/java/jdk1.7.0_51
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- CARBON_HOME environment variable is set to
/home/nira/git/Nira/product-as/modules/integration/tests-integration/tests-security-manager/target/carbontmp1434108379893/wso2as-6.0.0-SNAPSHOT
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- Property pattern javax.net.ssl.trustStore is restricted for tenant code.
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- Property pattern javax.net.ssl.trustStorePassword is restricted for
tenant code.
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- Property pattern denied.system.properties is restricted for tenant code.
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- java.security.AccessControlException
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
-  - klass: 'java/security/AccessControlException'
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- # A fatal error has been detected by the Java Runtime Environment:
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #  Internal Error (exceptions.cpp:424), pid=20621, tid=139773740406528
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #  fatal error: ExceptionMark destructor expects no pending exceptions
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- # JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build
1.7.0_51-b13)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode
linux-amd64 compressed oops)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- # Failed to write core dump. Core dumps have been disabled. To enable
core dumping, try "ulimit -c unlimited" before starting Java again
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- # An error report file with more information is saved as:
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #
/home/nira/git/Nira/product-as/modules/integration/tests-integration/tests-security-manager/target/carbontmp1434108379893/wso2as-6.0.0-SNAPSHOT/hs_err_pid20621.log
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- # If you would like to submit a bug report, please visit:
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #   http://bugreport.sun.com/bugreport/crash.jsp
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #
ERROR
[org.wso2.carbon.automation.extensions.servers.utils.InputStreamHandler] -
Aborted (core dumped)


Regards,
Nira

-- 

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


Re: [Dev] carbon-store-2.1.0 released to staging

2015-06-12 Thread Sameera Medagammaddegedara
Hi Jayanga,


Could you please release the components.



On Fri, Jun 12, 2015 at 5:16 PM, Shazni Nazeer  wrote:

> Hi Sameera,
>
> We performed the build with the above repo and build seems to be
> successful.
>
>
>
> Shazni Nazeer
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
> On Fri, Jun 12, 2015 at 3:35 PM, Sameera Medagammaddegedara <
> samee...@wso2.com> wrote:
>
>> Hi GREG team,
>>
>> Could you please verify the product-greg build with the following repo:
>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonstore-045/
>> 
>>
>> Thank You,
>> Sameera
>>
>> On Fri, Jun 12, 2015 at 2:08 PM, Sameera Medagammaddegedara <
>> samee...@wso2.com> wrote:
>>
>>> Hi Jayanga,
>>>
>>> The carbon-store-2.1.0 component has been released to staging.Could you
>>> please provide assistance in closing and releasing the said repo.
>>>
>>> Thank You,
>>> Sameera
>>>
>>> --
>>> Sameera Medagammaddegedara
>>> Software Engineer
>>>
>>> Contact:
>>> Email: samee...@wso2.com
>>> Mobile: + 94 077 255 3005
>>>
>>
>>
>>
>> --
>> Sameera Medagammaddegedara
>> Software Engineer
>>
>> Contact:
>> Email: samee...@wso2.com
>> Mobile: + 94 077 255 3005
>>
>
>


-- 
Sameera Medagammaddegedara
Software Engineer

Contact:
Email: samee...@wso2.com
Mobile: + 94 077 255 3005
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] carbon-store-2.1.0 released to staging

2015-06-12 Thread Jayanga Dissanayake
Hi Sameera,

Repo is released.

Thanks,
Jayanga.

*Jayanga Dissanayake*
Senior Software Engineer
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
email: jaya...@wso2.com
mobile: +94772207259

On Fri, Jun 12, 2015 at 5:18 PM, Sameera Medagammaddegedara <
samee...@wso2.com> wrote:

> Hi Jayanga,
>
>
> Could you please release the components.
>
>
>
> On Fri, Jun 12, 2015 at 5:16 PM, Shazni Nazeer  wrote:
>
>> Hi Sameera,
>>
>> We performed the build with the above repo and build seems to be
>> successful.
>>
>>
>>
>> Shazni Nazeer
>> Mob : +94 37331
>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>> Blog : http://shazninazeer.blogspot.com
>>
>> On Fri, Jun 12, 2015 at 3:35 PM, Sameera Medagammaddegedara <
>> samee...@wso2.com> wrote:
>>
>>> Hi GREG team,
>>>
>>> Could you please verify the product-greg build with the following repo:
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonstore-045/
>>> 
>>>
>>> Thank You,
>>> Sameera
>>>
>>> On Fri, Jun 12, 2015 at 2:08 PM, Sameera Medagammaddegedara <
>>> samee...@wso2.com> wrote:
>>>
 Hi Jayanga,

 The carbon-store-2.1.0 component has been released to staging.Could you
 please provide assistance in closing and releasing the said repo.

 Thank You,
 Sameera

 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005

>>>
>>>
>>>
>>> --
>>> Sameera Medagammaddegedara
>>> Software Engineer
>>>
>>> Contact:
>>> Email: samee...@wso2.com
>>> Mobile: + 94 077 255 3005
>>>
>>
>>
>
>
> --
> Sameera Medagammaddegedara
> Software Engineer
>
> Contact:
> Email: samee...@wso2.com
> Mobile: + 94 077 255 3005
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue with HTTP event publisher when using PoolingHttpClientConnectionManager

2015-06-12 Thread Ramindu De Silva
Hi all,

I resolved the issue.

Previously, it happened since i configured the connection manager only once
for all the receivers. For every creation of an adapter a connection
manager should be configured.

Thanks,
Best Regards

On Thu, Jun 11, 2015 at 10:32 PM, Ramindu De Silva 
wrote:

> Hi all,
>
> I am experiencing $subject when using multiple event publishers. Earlier
> implementation of CEP used only one http client per http adapter which used
> SystemDefaultHttpClient. But it couldn't handle high frequency of data. So
> i managed to implement PoolingHttpClientConnectionManager and use the
> CloaseableHttpClient. It works perfectly when theres only one http adapter.
> But when I add another http adapter, it does not publish the requests using
> the adapter i added secondly.
>
> Im using Apache HttpClient 4.3.3
>
> Any suggestions for the reason or any alternative ways to overcome this
> issue?
>
> The following link[1] is my implementation. I referred to this post[2] as
> well.
>
> 1.
> https://github.com/ramindu90/carbon-analytics-common/blob/http-performance-testing/components/event-publisher/event-output-adapters/org.wso2.carbon.event.output.adapter.http/src/main/java/org/wso2/carbon/event/output/adapter/http/HTTPEventAdapter.java
>
> 2. http://www.baeldung.com/httpclient-connection-management
>
> --
> *Ramindu De Silva*
> Software Engineer
> WSO2 Inc.: http://wso2.com
> lean.enterprise.middleware
>
> email: ramin...@wso2.com 
> mob: +94 772339350
> mob: +94 782731766
>



-- 
*Ramindu De Silva*
Software Engineer
WSO2 Inc.: http://wso2.com
lean.enterprise.middleware

email: ramin...@wso2.com 
mob: +94 772339350
mob: +94 782731766
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Review and merge for ESBJAVA-3766 and ESBJAVA-3733

2015-06-12 Thread Maheeka Jayasuriya
Correction : ESBJAVA-3766 and ESBJAVA-3773

Maheeka Jayasuriya
Software Engineer
Mobile : +9450661

On Fri, Jun 12, 2015 at 4:51 PM, Maheeka Jayasuriya 
wrote:

> Hi,
>
> $subject please.
>
> [2] also contains serialization tests.
>
> [1] https://github.com/wso2/carbon-mediation/pull/214
> [2] https://github.com/wso2/wso2-synapse/pull/228
>
> Thanks,
>
> Maheeka Jayasuriya
> Software Engineer
> Mobile : +9450661
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] carbon-store-2.1.0 released to staging

2015-06-12 Thread Sameera Medagammaddegedara
Thank You Jayanga

On Fri, Jun 12, 2015 at 5:21 PM, Jayanga Dissanayake 
wrote:

> Hi Sameera,
>
> Repo is released.
>
> Thanks,
> Jayanga.
>
> *Jayanga Dissanayake*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.com/
> lean . enterprise . middleware
> email: jaya...@wso2.com
> mobile: +94772207259
>
> On Fri, Jun 12, 2015 at 5:18 PM, Sameera Medagammaddegedara <
> samee...@wso2.com> wrote:
>
>> Hi Jayanga,
>>
>>
>> Could you please release the components.
>>
>>
>>
>> On Fri, Jun 12, 2015 at 5:16 PM, Shazni Nazeer  wrote:
>>
>>> Hi Sameera,
>>>
>>> We performed the build with the above repo and build seems to be
>>> successful.
>>>
>>>
>>>
>>> Shazni Nazeer
>>> Mob : +94 37331
>>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>>> Blog : http://shazninazeer.blogspot.com
>>>
>>> On Fri, Jun 12, 2015 at 3:35 PM, Sameera Medagammaddegedara <
>>> samee...@wso2.com> wrote:
>>>
 Hi GREG team,

 Could you please verify the product-greg build with the following repo:
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbonstore-045/
 

 Thank You,
 Sameera

 On Fri, Jun 12, 2015 at 2:08 PM, Sameera Medagammaddegedara <
 samee...@wso2.com> wrote:

> Hi Jayanga,
>
> The carbon-store-2.1.0 component has been released to staging.Could
> you please provide assistance in closing and releasing the said repo.
>
> Thank You,
> Sameera
>
> --
> Sameera Medagammaddegedara
> Software Engineer
>
> Contact:
> Email: samee...@wso2.com
> Mobile: + 94 077 255 3005
>



 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005

>>>
>>>
>>
>>
>> --
>> Sameera Medagammaddegedara
>> Software Engineer
>>
>> Contact:
>> Email: samee...@wso2.com
>> Mobile: + 94 077 255 3005
>>
>
>


-- 
Sameera Medagammaddegedara
Software Engineer

Contact:
Email: samee...@wso2.com
Mobile: + 94 077 255 3005
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF][Jaggery] Error while calling java method from jaggery

2015-06-12 Thread Mahesh Chinthaka
Hi danushka,

Thanks for the info.
I did a normal java call, not a osgi service call.

This has happened because jar was not it the server repository location.
bundle was not copied to repository/components/dropins folder. Once I
copied it, it worked.

On Fri, Jun 12, 2015 at 2:29 PM,  wrote:

>  Hi Mahesh
> When we register an osgi service to a bundle, Any component can retrieve
> it. Usually we do it in Service Component where we write the scr
> references. And we keep reference to an object of the service and we use
> only inside the given component. If we need it in another component we
> retrieve same from there too. That's how its done in java components. But
> when it comes to a web application (or jiggery application) since they are
> not running in osgi framework they cannot refer to the osgi services in the
> same manner. So we retrieve it from carbon context.
> We have done this call every where in our application.
>
> CarbonContext.getThreadlocalCarbonContext().getOSGIService(“ name>”)
>
> You have to retrieve the service in the above manner in your code.
>
> Hope the explanation is clear to you.
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> *From:* Mahesh Chinthaka 
> *Sent:* ‎Friday‎, ‎June‎ ‎12‎, ‎2015 ‎10‎:‎36‎ ‎AM
> *To:* WSO2 Developers' List 
>
> Hi ,
>
> Im trying to call a java method from a jaggery module.
> We have called same method from java side like follows
>
> AppFactoryS4ListenersUtil.getTenantRegistryLoader().loadTenantRegistry(tenantId);
>
> my jaggery code is like follows
>
> var tenantId=getTenantId();
> var s4util =
> Packages.org.wso2.carbon.appfactory.stratos.util.AppFactoryS4ListenersUtil;
> s4util.getTenantRegistryLoader().loadTenantRegistry(tenantId);
>
> And Im getting following error
>
>
> TID: [0] [AF] [2015-06-12 10:22:05,387] ERROR
> {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
>  org.mozilla.javascript.EcmaError: TypeError: Cannot call property
> getTenantRegistryLoader in object [JavaPackage
> org.wso2.carbon.appfactory.stratos.util.AppFactoryS4ListenersUtil]. It is
> not a function, it is "object". (/appmgt/modules/manager/manager.jag#331)
> {org.jaggeryjs.jaggery.core.manager.WebAppManager}
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.EcmaError: TypeError: Cannot call property
> getTenantRegistryLoader in object [JavaPackage
> org.wso2.carbon.appfactory.stratos.util.AppFactoryS4ListenersUtil]. It is
> not a function, it is "object". (/appmgt/modules/manager/manager.jag#331)
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
> at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)
> at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
> at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
> at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
> at
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
> at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
> at
> org.apache.catalina.valves

Re: [Dev] Puppet setup script showing Error: Could not request certificate

2015-06-12 Thread Chamila De Alwis
Hi Rajeevan,

While you're rechecking the configs, please check the autosign.conf in the
Puppet master[1], remove old SSL certificate if this is an old Puppet agent
[2]. Furthermore, this [3] seems to be on the same error flow as yours, so
check if the time is synced between the Master and the Agent. I've
experienced some issues in the past related to the out of sync time between
the Master and the Agent.

[1] -
https://docs.puppetlabs.com/puppet/latest/reference/config_file_autosign.html
[2] - https://docs.puppetlabs.com/pe/latest/agent_cert_regen.html
[3] -
http://serverfault.com/questions/655090/new-server-unable-to-fetch-configuration-from-puppetmaster-due-to-some-ssl-error



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



On Fri, Jun 12, 2015 at 2:01 AM, Aiyadurai Rajeevan 
wrote:

> Hi Sajith/Pubudu,
>
> Thanks for your inputs, Will check this two and keep you posted.
>
> Thanks & Regards,
> S.A.Rajeevan
> Software Engineer WSO2 Inc
> E-Mail: rajeev...@wso2.com | Mobile : +94776411636
>
> On Thu, Jun 11, 2015 at 7:14 PM, Pubudu Gunatilaka 
> wrote:
>
>> Hi Aiyadurai,
>>
>> Check whether puppet master and agent have configurations according to
>> [1].
>>
>> [1] - http://sajithblogs.blogspot.com/2014/12/puppet-configs.html
>>
>> Thank you!
>>
>> On Thu, Jun 11, 2015 at 6:31 PM, Sajith Abeywardhana 
>> wrote:
>>
>>> Hi Rajeewan,
>>>
>>> Did you inspect tcp dump? It seems like SSL handshake fail when
>>> requesting a certificate.
>>>
>>> *Sajith Abeywardhana* | Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka.
>>> Mobile: +94772260485
>>> Email: saji...@wso2.com  | Web: www.wso2.com
>>>
>>> On Thu, Jun 11, 2015 at 3:35 PM, Aiyadurai Rajeevan 
>>> wrote:
>>>
 Hi All,

 I have been working on integrating Appfactory developer setup puppet
 script for Mac, When I run the the setup script i got below exception. Your
 expertise would be much appreciated to resolve this issue.

 ###
 ### Starting AppFactory Developer Setup ###
 ###

 Removing previous agent certificates...

 Setting username and password for puppet agent...
 Enter username (default username is "afpuppet" and press enter to
 continue with the default):
 Enter password (default password is "afpuppet" and press enter to
 continue with the default):
 Installing mkpasswd...
 sudo: apt-get: command not found
 # Starting mysql setup 
 /Library/Ruby/Site/puppet/defaults.rb:214: warning: Insecure world
 writable dir /usr/local/bin in PATH, mode 040777
 tee: setup-logs/puppet2015-06-11.15:26:32.log: No such file or directory
 /Library/Ruby/Site/puppet/defaults.rb:214: warning: Insecure world
 writable dir /usr/local/bin in PATH, mode 040777
 Warning: Setting templatedir is deprecated. See
 http://links.puppetlabs.com/env-settings-deprecations
(at /Library/Ruby/Site/puppet/settings.rb:1139:in
 `issue_deprecation_warning')
 Info: Creating a new SSL key for 7j4755-mysql
 Info: Caching certificate for ca
 Info: csr_attributes file loading from /etc/puppet/csr_attributes.yaml
 Info: Creating a new SSL certificate request for 7j4755-mysql
 Info: Certificate Request fingerprint (SHA256):
 A5:91:3E:BB:B1:39:4C:29:EE:99:39:E4:3D:83:57:1E:48:0D:C6:45:20:58:16:95:88:5E:70:D1:37:E3:30:B4
 Info: Caching certificate for 7j4755-mysql
 Error: Could not request certificate: SSL_connect returned=1 errno=0
 state=SSLv3 read server certificate B: certificate verify failed: [self
 signed certificate in certificate chain for /CN=Puppet CA generated on
 puppet.appfactory.private.wso2.com]

 Thanks & Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 ___
 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
>>>
>>>
>>
>>
>> --
>>
>> *Pubudu Gunatilaka*
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean.enterprise.middleware
>> mobile:  +94 77 4078049
>>
>
>
> ___
> 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] [DEV][ESB] Use of REST_URL_POSTFIX

2015-06-12 Thread Chamila De Alwis
Hi Malaka,

Thanks for response! Does this property only work for REST endpoints? I
know it's named REST_URL_POSTFIX, however if I want to append some params
to a SOAP endpoint do I have another option?


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



On Wed, Jun 10, 2015 at 9:58 PM, Malaka Silva  wrote:

> Can you try adding following to the endpoint and check
>
> format=rest
>
> eg:-
> 
>
>   http://localhost:9000/services/SimpleStockQuoteService"; format=rest> address>
>
> 
>
> On Thu, Jun 11, 2015 at 1:18 AM, Chamila De Alwis 
> wrote:
>
>> Ping! :)
>>
>>
>> Regards,
>> Chamila de Alwis
>> Committer and PMC Member - Apache Stratos
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> On Mon, Jun 8, 2015 at 4:14 PM, Chamila De Alwis 
>> wrote:
>>
>>> Update:
>>>
>>> I created a simple API and used the Call mediator to call the endpoint
>>> and appending was successful for both POST and GET. The issue is when this
>>> is used in a Proxy definition.
>>>
>>> API
>>> 
>>> http://ws.apache.org/ns/synapse"; name="Test01"
>>> context="/test">
>>>
>>>   
>>>  >> type="STRING">
>>>  
>>>  
>>> 
>>>http://localhost:9000/services/SimpleStockQuoteService";>
>>> 
>>>  
>>>   
>>>
>>> 
>>>
>>>
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Committer and PMC Member - Apache Stratos
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>> On Mon, Jun 8, 2015 at 2:19 PM, Chamila De Alwis 
>>> wrote:
>>>
 Hi,

 I'm trying to append a set of query parameters to an endpoint. For this
 I'm using the REST_URL_POSTFIX property and setting a value to it.  The
 value is successfully appended to the endpoint address when the HTTP method
 is GET, however, for POST this does not work. Have I missed any detail?

 (Using the ESB sample 1 Synapse config)

 Synapse Config
 =
 http://ws.apache.org/ns/synapse"; name="main">

   >>> type="STRING">
 *  >>> type="STRING">*
   http://org.apache.synapse/xsd";
 source="get-property('To')" regex=".*/StockQuote.*">
  
 

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

 
  
  
   


   

 


 Wirelog when HTTP method is *GET*
 =
 [2015-06-08 14:15:54,118] DEBUG - wire >> "POST /services/StockQuote
 HTTP/1.1[\r][\n]"
 [2015-06-08 14:15:54,119] DEBUG - wire >> "Content-Type: text/xml;
 charset=UTF-8[\r][\n]"
 [2015-06-08 14:15:54,119] DEBUG - wire >> "SOAPAction:
 "urn:getQuote"[\r][\n]"
 [2015-06-08 14:15:54,120] DEBUG - wire >> "User-Agent: Axis2[\r][\n]"
 [2015-06-08 14:15:54,120] DEBUG - wire >> "Host: localhost:8280[\r][\n]"
 [2015-06-08 14:15:54,120] DEBUG - wire >> "Transfer-Encoding:
 chunked[\r][\n]"
 [2015-06-08 14:15:54,120] DEBUG - wire >> "[\r][\n]"
 [2015-06-08 14:15:54,121] DEBUG - wire >> "1d6[\r][\n]"
 [2015-06-08 14:15:54,122] DEBUG - wire >> ">>> encoding="UTF-8"?>http://schemas.xmlsoap.org/soap/envelope/";>http://www.w3.org/2005/08/addressing";>urn:uuid:5060be98-5fbf-4985-a05b-1e1dd3727d91urn:getQuote>>> xmlns:m0="http://services.samples
 ">IBM[\r][\n]"
 [2015-06-08 14:15:54,122] DEBUG - wire >> "0[\r][\n]"
 [2015-06-08 14:15:54,122] DEBUG - wire >> "[\r][\n]"
 *[2015-06-08 14:15:54,129] DEBUG - wire << "GET
 /services/SimpleStockQuoteService/chamila HTTP/1.1[\r][\n]"*
 [2015-06-08 14:15:54,132] DEBUG - wire << "Content-Type: text/xml;
 charset=UTF-8[\r][\n]"
 [2015-06-08 14:15:54,132] DEBUG - wire << "SOAPAction:
 "urn:getQuote"[\r][\n]"
 [2015-06-08 14:15:54,132] DEBUG - wire << "Host: localhost:9000[\r][\n]"
 [2015-06-08 14:15:54,133] DEBUG - wire << "Connection:
 Keep-Alive[\r][\n]"
 [2015-06-08 14:15:54,133] DEBUG - wire << "User-Agent:
 Synapse-HttpComponents-NIO[\r][\n]"
 [2015-06-08 14:15:54,133] DEBUG - wire << "[\r][\n]"




 Wirelog when HTTP method is *POST*
 ==
 [2015-06-08 14:14:52,682] DEBUG - wire >> "POST /services/StockQuote
 HTTP/1.1[\r][\n]"
 [2015-06-08 14:14:52,683] DEBUG - wire >> "Content-Type: text/xml;
 charset=UTF-8[\r][\n]"
 [2015-06-08 14:14:52,683] DEBUG - wire >> "SOAPAction:
 "urn:getQuote"[\r][\n]"
 [2015-06-08 14:14:52,683] DEBUG - wire >> "User-Agent: Axis2[\r][\n]"
 [2015-06-08 14:14:52,683] DEBUG - wire >> "Host: localhost:8280[\r][\n]"
 [2015-06-08 14:14:52,683] DEBUG - wire >> "Transfer-Encoding:
 chun

Re: [Dev] [MDM] Error occurred while issuing the access token

2015-06-12 Thread Prasad Tissera
We recreated issu with carbon-identity 4.4.0. Will update you with the
progress. Thanks.

Sent from my mobile
On Jun 11, 2015 2:14 PM, "Prabath Abeysekera"  wrote:

> Guys,
>
> I appreciate if we can get some help on this.
>
> Cheers,
> Prabath
>
> On Wed, Jun 10, 2015 at 3:02 PM, Dulitha Wijewantha 
> wrote:
>
>> ​Hi Dulanja/Johann,
>> I am getting the same error as milan when trying refresh an access token
>> with refresh token. Below I have included the stacktrace of the error.
>>
>> Cheers~​
>>
>>
>> 14:58:36,538 org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO  -  Error
>> while getting an Identity Persistence Store instance.
>> org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception: Error when
>> storing the access token for consumer key : j9vLqqCBHwHYBJhoI4RK7uhzhwwa
>> at
>> org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.storeAccessToken(TokenMgtDAO.java:201)
>> at
>> org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.invalidateAndCreateNewToken(TokenMgtDAO.java:870)
>> at
>> org.wso2.carbon.identity.oauth2.token.handlers.grant.RefreshGrantHandler.issue(RefreshGrantHandler.java:210)
>> at
>> org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issue(AccessTokenIssuer.java:187)
>> at
>> org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:176)
>> at
>> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.getAccessToken(OAuth2TokenEndpoint.java:234)
>> at
>> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:108)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
>> at
>> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)
>> at
>> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
>> at
>> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)
>> at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
>> at
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>> at
>> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
>> at
>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
>> at
>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
>> at
>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
>> at
>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
>> at
>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
>> at
>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
>> at
>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>> at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>> at
>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
>> at
>> org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticatorFrameworkValve.invoke(WebappAuthenticatorFrameworkValve.java:39)
>> at
>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CompositeValv

[Dev] WSO2 ML 1.0.0 Beta-1 Released

2015-06-12 Thread CD Athuraliya
WSO2 ML 1.0.0 Beta-1 Released!

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

Bug

   - [ML-8 ] - [UI] Make dataset
   versions non-clickable
   - [ML-9 ] - [UI] Step 1 of an
   Analysis generates graphs only for first 10 features
   - [ML-21 ] - Create analysis fails
   immediately after deletion of same name
   - [ML-22 ] - Model building fails
   when column headers of CSV are Quoted
   - [ML-28 ] - Make Title in Scatter
   Plot (Exploration) Prominant
   - [ML-31 ] - Exploration UI needs
   improvements
   - [ML-44 ] - [UI] Changing feature
   type doesn't change the graph type
   - [ML-53 ] - [PredictedVsActual
   Graph] Mix up features of different projects
   - [ML-54 ] - Project name should be
   validated for global uniqueness within a tenant
   - [ML-55 ] - Remove all unused JAG
   files etc. from ML Jaggery App
   - [ML-62 ] - [Server Startup]
   logging of the ML app url dependency is confusing
   - [ML-63 ] - Dataset explore page
   show error when column headers of CSV quoted
   - [ML-64 ] - Number format exception
   when trying to build model
   - [ML-65 ] - [UI] Errors in input
   validation for model prediction
   - [ML-66 ] - Model building fails
   when one or more categorial features are not included
   - [ML-67 ] - Summary stats charts
   are not updated with type selection
   - [ML-70 ] - [Windows] Dataset
   upload failed

Improvement

   - [ML-24 ] - Implement automated
   back-end tests
   - [ML-40 ] - Suggest an appropriate
   value for the number of classes in a Decision tree etc. algorithms
   - [ML-47 ] - Pagination support to
   ML model listing page
   - [ML-56 ] - Support logistic
   regression with L-BFGS
   - [ML-57 ] - Moving common
   javascript code to one place
   - [ML-68 ] - [Spark Logs] Move spark
   logs to spark.log file and skip wso2carbon.log
   - [ML-69 ] - [UI] Delete
   confirmations
   - [ML-71 ] - [UI] Improvements in
   Model Comparison UI
   - [ML-72 ] - Upload data points for
   prediction using a file
   - [ML-73 ] - [UI] Disable Model
   Summary page for clustering algorithms
   - [ML-74 ] - Downloaded model should
   have the same name as model name

Task

   - [ML-59 ] - Fix critical issues
   reported by Sonar
   - [ML-60 ] - Integrate carbon
   metrics to ML
   - [ML-61 ] - Remove unused bam
   server url element from machine-learner.xml



The documentation for ML 1.0.0 Beta-1 can be found at [2]. Please report
any issues you may find in our JIRA [3].

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

- WSO2 ML Team -

-- 
*CD Athuraliya*
Software Engineer
WSO2, Inc.
lean . enterprise . middleware
Mobile: +94 716288847 <94716288847>
LinkedIn  | Twitter
 | Blog 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] Revamping MB Test Framework to cut down time.

2015-06-12 Thread Akalanka Pagoda Arachchi
Hi Hemika,

Also I think we can use a subset of all the available test cases in the
in-memory mode rather than running them all again in the in-memory mode.
Since in-memory mode does not guarantee the delivery and was suggested to
be used as a developer testing mode rather than a production deployment
mode, this would be fine.

WDYT Ramith?

Thanks,
Akalanka.

On Tue, Jun 9, 2015 at 7:24 AM, Dharshana Warusavitharana <
dharsha...@wso2.com> wrote:

> Hi Ramith,
>
> Yes TestNg provides the facility of running tests in parallel. Considering
> carbon servers the only possible level is in methods level
> you can achieve this by defining parallel property in testNg.xml as follows
>
> 
>
> Since we are performing configuration level changes such as server startup
> and user deployment in listener level , parallel level test execution on
> Test and Suite level will not be possible.
>
> But you may be able to execute test methods parallel. But we have to test
> what will happen is depend on and priorities are used in method level.
>
> As per our experience your test suite must be matured and  100% confident
> before peeping out to this. When it come to test failure it is really hard
> to debug. So what i recommend at the moment is make the tests stable and
> confident before moving in to this.
>
> Thank you,
> Dharshana.
>
>
>
>
>
>
> On Tue, Jun 9, 2015 at 3:19 PM, Waruna Perera  wrote:
>
>> Adding Krishantha
>>
>> On Tue, Jun 9, 2015 at 1:41 PM, Ramith Jayasinghe 
>> wrote:
>>
>>> generally very nice to do this.
>>> @Krishantha,
>>> Can we run integration tests in parallel against a carbon server?
>>>
>>> On Tue, Jun 9, 2015 at 1:34 PM, Hemika Kodikara  wrote:
>>>
 Hi All,

 When executing the MB integration tests, we noticed that it takes a
 long time to get executed. I have several suggestions that could help us to
 cut down time.

 1. Running tests classes in parallel [1]. Here we have to state how
 many classes to run in parallel.

 2. Disable message receiving loggings in test cases. This can either be
 disabled or be turned into debug logs. If we are changing it to debug logs,
 we would need a way to enable debug logs(Have to look into this).

 3. Reduce the number of messages published in each test case.

 What are your thoughts on the above suggestions ?

 [1] -
 http://howtodoinjava.com/2014/12/02/testng-executing-parallel-tests/

 Regards,
 Hemika

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762

>>>
>>>
>>>
>>> --
>>> Ramith Jayasinghe
>>> Technical Lead
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> E: ram...@wso2.com
>>> P: +94 777542851
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Dharshana Warusavitharana
> Senior Software Engineer , Test Automation
> WSO2 Inc. http://wso2.com
> email : dharsha...@wso2.com 
> Tel  : +94 11 214 5345
> Fax :+94 11 2145300
> cell : +94770342233
> blog : http://dharshanaw.blogspot.com
>
> lean . enterprise . middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Darshana Akalanka Pagoda Arachchi,*
*Software Engineer*
*078-4721791*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] APIM 1.9.0 nightly build pack - 13-06-2015

2015-06-12 Thread Roshan Wijesena
Hi,

Please find $subject from [1]

[1]http://builder1.us1.wso2.org/~apim/13-06-2015/

Thanks,
Roshan

-- 
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] [MB] Revamping MB Test Framework to cut down time.

2015-06-12 Thread Ramith Jayasinghe
+1

On Sat, Jun 13, 2015 at 1:59 AM, Akalanka Pagoda Arachchi <
darsha...@wso2.com> wrote:

> Hi Hemika,
>
> Also I think we can use a subset of all the available test cases in the
> in-memory mode rather than running them all again in the in-memory mode.
> Since in-memory mode does not guarantee the delivery and was suggested to
> be used as a developer testing mode rather than a production deployment
> mode, this would be fine.
>
> WDYT Ramith?
>
> Thanks,
> Akalanka.
>
> On Tue, Jun 9, 2015 at 7:24 AM, Dharshana Warusavitharana <
> dharsha...@wso2.com> wrote:
>
>> Hi Ramith,
>>
>> Yes TestNg provides the facility of running tests in parallel.
>> Considering carbon servers the only possible level is in methods level
>> you can achieve this by defining parallel property in testNg.xml as
>> follows
>>
>> 
>>
>> Since we are performing configuration level changes such as server
>> startup and user deployment in listener level , parallel level test
>> execution on Test and Suite level will not be possible.
>>
>> But you may be able to execute test methods parallel. But we have to test
>> what will happen is depend on and priorities are used in method level.
>>
>> As per our experience your test suite must be matured and  100% confident
>> before peeping out to this. When it come to test failure it is really hard
>> to debug. So what i recommend at the moment is make the tests stable and
>> confident before moving in to this.
>>
>> Thank you,
>> Dharshana.
>>
>>
>>
>>
>>
>>
>> On Tue, Jun 9, 2015 at 3:19 PM, Waruna Perera  wrote:
>>
>>> Adding Krishantha
>>>
>>> On Tue, Jun 9, 2015 at 1:41 PM, Ramith Jayasinghe 
>>> wrote:
>>>
 generally very nice to do this.
 @Krishantha,
 Can we run integration tests in parallel against a carbon server?

 On Tue, Jun 9, 2015 at 1:34 PM, Hemika Kodikara 
 wrote:

> Hi All,
>
> When executing the MB integration tests, we noticed that it takes a
> long time to get executed. I have several suggestions that could help us 
> to
> cut down time.
>
> 1. Running tests classes in parallel [1]. Here we have to state how
> many classes to run in parallel.
>
> 2. Disable message receiving loggings in test cases. This can either
> be disabled or be turned into debug logs. If we are changing it to debug
> logs, we would need a way to enable debug logs(Have to look into this).
>
> 3. Reduce the number of messages published in each test case.
>
> What are your thoughts on the above suggestions ?
>
> [1] -
> http://howtodoinjava.com/2014/12/02/testng-executing-parallel-tests/
>
> Regards,
> Hemika
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +9477762
>



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

 E: ram...@wso2.com
 P: +94 777542851


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


>>>
>>>
>>> --
>>> Waruna Perera
>>> Senior Software Engineer - Test Automation
>>> Mobile: +94 77 3867037
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Dharshana Warusavitharana
>> Senior Software Engineer , Test Automation
>> WSO2 Inc. http://wso2.com
>> email : dharsha...@wso2.com 
>> Tel  : +94 11 214 5345
>> Fax :+94 11 2145300
>> cell : +94770342233
>> blog : http://dharshanaw.blogspot.com
>>
>> lean . enterprise . middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Darshana Akalanka Pagoda Arachchi,*
> *Software Engineer*
> *078-4721791 <078-4721791>*
>



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

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