[Dev] [ESB] [Tooling] Issue when deploying a CAPP to a remote ESB server

2016-07-12 Thread Pubudu Priyashan
Hello Viraj and DevStudio team,

We have observed the issue logged at [1] while testing ESB tooling shipped
with wso2esb-5.0.0-PRE-BETA2-PACK1.zip pack. Issue persists for both p2
repo as well as the pre-packaged Eclipse.

Would it be possible for us to get this fix in with the next ESB pack
released for testing? Thanks!


[1] https://wso2.org/jira/browse/DEVTOOLESB-574

Cheers,
Pubudu D.P
Senior Software Engineer - QA Team | WSO2 inc.
Mobile : +94775464547

Linkedin: https://uk.linkedin.com/in/pubududp
Medium: https://medium.com/@pubududp
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [MySql5.7] Concern about MySql 5.7 scripts running with -Dsetup

2016-07-12 Thread Pubudu Priyashan
Hi all,

When we use MySql 5.7 as the DB and start the server with -Dsetup without
manually executing the scripts at DB level, we have observed the issue
logged at [1] while testing wso2esb-5.0.0-PRE-BETA2-PACK1.zip pack. The
reason behind this is, by default the pack is picking up mysql.sql script
located at [$HOME]/dbscripts directory when started with -Dsetup. A
solution was suggested in this comment [2] to rename the mysql5.7.sql
scripts as mysql.sql when using MySql 5.7 db and we have verified that this
suggestion fixed the issue. We have logged a doc JIRA to include that
information at [3] for now.

Our concern is since this is going to affect all the products when using
MySql5.7 do we have a better solution to automatically select the
mysql version without having to rename the script? Is it possible to add a
property to define the db version somewhere and then point to the relevant
script without renaming the script when starting with -Dsetup? Or any
better solution if possible. Appreciate your feedback on this. Thanks!


[1] https://wso2.org/jira/browse/ESBJAVA-4748
[2]
https://wso2.org/jira/browse/ESBJAVA-4748?focusedCommentId=123463=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-123463
[3] https://wso2.org/jira/browse/DOCUMENTATION-3604


Cheers,
Pubudu D.P
Senior Software Engineer - QA Team | WSO2 inc.
Mobile : +94775464547

Linkedin: https://uk.linkedin.com/in/pubududp
Medium: https://medium.com/@pubududp
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][DS] Irregular behavior in text boxes in dashboard server

2016-07-12 Thread Sinthuja Ragendran
Hi Chamila,

I appreciate if you create a public JIRA in this issue, hence we can make
sure these issues are actually fixed for DS 2.1.0 release. And did you try
on chrome, and still do you see the problem? Please do mention what are
versions of browsers, java version, and OS did you test it upon so ti would
be easier to reproduce.

Thanks,
Sinthuja.

On Wed, Jul 13, 2016 at 9:29 AM, Nipuna Chandradasa 
wrote:

> Hi Jerad ..
>
> i used 42 as i remember   This has to be a firefox related issue. ...
> i researched it a bit ... seems like it is. ASCII they have used same
> numbers for these keys   but chrome somehow handling it ...
> Yeah ... I'm in trace ... but i'll come around 1.00pm to PG.
>
> Thank you,
>
> On Wed, Jul 13, 2016 at 8:57 AM, Jerad Rutnam  wrote:
>
>> Hi Nipuna,
>>
>> What's the Firefox version you are using? Looks like the bug presents on
>> a particular version. Let's have a look.
>>
>> Cheers!
>> Jerad
>>
>> On Wed, Jul 13, 2016 at 8:53 AM, Jerad Rutnam  wrote:
>>
>>> Hi Chamila,
>>>
>>> I tested this on both Firefox Developer Edition (v44.0a2) And
>>> Chrome (v51.0.2704.103 m), But I could reproduce the issue you mentioned.
>>> Tried with Arrows, Home & End Keys, and worked as expected.
>>>
>>> [Tested using Analytic IS]
>>>
>>> Cheers!
>>> Jerad
>>>
>>> On Wed, Jul 13, 2016 at 3:08 AM, Chamila De Alwis 
>>> wrote:
>>>
 Hi,

 It seems in almost all of the text boxes in Dashboard Server, tasks
 such as arrow key navigation, "Home", "End" key navigation is not possible.
 The only exception I've observed are the search boxes which behave as
 expected. The browser I'm using is Firefox 47.0.

 This is a minor issue, but it's a really ubiquitous functionality for
 typing. Is this missing by design or an interesting bug?

 [image: Inline image 1]

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



>>>
>>>
>>> --
>>> *Jerad Rutnam*
>>> *Software Engineer*
>>>
>>> WSO2 Inc.
>>> lean | enterprise | middleware
>>> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>>>
>>
>>
>>
>> --
>> *Jerad Rutnam*
>> *Software Engineer*
>>
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>>
>
>
>
> --
> Nipuna Marcus
> *Software Engineer*
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
> Mobile : +94 (0) 713 667906
> nipu...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sinthuja Rajendran*
Technical Lead
WSO2, Inc.:http://wso2.com

Blog: http://sinthu-rajan.blogspot.com/
Mobile: +94774273955
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM 2.0.0-SNAPSHOT Nightly build - July/12/2016

2016-07-12 Thread Nuwan Dias
We didn't explicitly test with the last released IS pack but since both use
the same IS component versions it should work.

If you want to test an IS pack that's more closer to the release state you
could check if there's a newer release or if not you can build it from
source.

Thanks,
NuwanD.

On Wed, Jul 13, 2016 at 10:45 AM, Kavitha Subramaniyam 
wrote:

> +KasunB
>
> Hi Nuwan/ Abiraman,
>
> Could you please confirm this nightly build APIM pack compatibility with
> IS 5.2.0 latest build[1]?
>
> [1]
> http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/is/wso2is/5.2.0-SNAPSHOT/
>
>
> Thanks,
>
>
>
> On Wed, Jul 13, 2016 at 10:40 AM, Nuwan Dias  wrote:
>
>> Yes, its compatible.
>>
>> On Wed, Jul 13, 2016 at 10:38 AM, Maneesha Wijesekara 
>> wrote:
>>
>>> Hi Nirmal,
>>> Is this APIM pack (APIM 2.0.0-SNAPSHOT Nightly build - July/12/2016)
>>> compatible with the released APIM Analytics 2.0.0 Beta2 pack ?
>>> If not, appreciate if we can have a compatible pack for APIM analytics
>>> as well.
>>>
>>> Thanks
>>> Maneesha
>>>
>>> On Tue, Jul 12, 2016 at 8:45 PM, Abimaran Kugathasan 
>>> wrote:
>>>
 Hi All,


 Please find today's nightly build pack for API Manager 2.0.0-SNAPSHOT
 [1]


 [1] :
 https://svn.wso2.org/repos/wso2/scratch/2016/apim-2.0.0/wso2am-2.0.0-SNAPSHOT-12-07-2016.zip

 --
 Thanks
 Abimaran Kugathasan
 Senior Software Engineer

 Email : abima...@wso2.com
 Mobile : +94 773922820

 
 
   
 


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


>>>
>>>
>>> --
>>> Maneesha Wijesekara
>>> Software Engineer - QA Team
>>> WSO2 Inc.
>>>
>>> Email: manee...@wso2.com
>>> Linkedin: http://linkedin.com/in/maneeshawijesekara
>>> Mobile: +94712443119
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
> Kavitha.S
> *Software Engineer -QA*
> Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
> kavi...@wso2.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 2.0.0-SNAPSHOT Nightly build - July/12/2016

2016-07-12 Thread Kavitha Subramaniyam
+KasunB

Hi Nuwan/ Abiraman,

Could you please confirm this nightly build APIM pack compatibility with IS
5.2.0 latest build[1]?

[1]
http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/is/wso2is/5.2.0-SNAPSHOT/


Thanks,



On Wed, Jul 13, 2016 at 10:40 AM, Nuwan Dias  wrote:

> Yes, its compatible.
>
> On Wed, Jul 13, 2016 at 10:38 AM, Maneesha Wijesekara 
> wrote:
>
>> Hi Nirmal,
>> Is this APIM pack (APIM 2.0.0-SNAPSHOT Nightly build - July/12/2016)
>> compatible with the released APIM Analytics 2.0.0 Beta2 pack ?
>> If not, appreciate if we can have a compatible pack for APIM analytics as
>> well.
>>
>> Thanks
>> Maneesha
>>
>> On Tue, Jul 12, 2016 at 8:45 PM, Abimaran Kugathasan 
>> wrote:
>>
>>> Hi All,
>>>
>>>
>>> Please find today's nightly build pack for API Manager 2.0.0-SNAPSHOT [1]
>>>
>>>
>>> [1] :
>>> https://svn.wso2.org/repos/wso2/scratch/2016/apim-2.0.0/wso2am-2.0.0-SNAPSHOT-12-07-2016.zip
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>> Senior Software Engineer
>>>
>>> Email : abima...@wso2.com
>>> Mobile : +94 773922820
>>>
>>> 
>>> 
>>>   
>>> 
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Maneesha Wijesekara
>> Software Engineer - QA Team
>> WSO2 Inc.
>>
>> Email: manee...@wso2.com
>> Linkedin: http://linkedin.com/in/maneeshawijesekara
>> Mobile: +94712443119
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 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
>
>


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


Re: [Dev] APIM 2.0.0-SNAPSHOT Nightly build - July/12/2016

2016-07-12 Thread Nuwan Dias
Yes, its compatible.

On Wed, Jul 13, 2016 at 10:38 AM, Maneesha Wijesekara 
wrote:

> Hi Nirmal,
> Is this APIM pack (APIM 2.0.0-SNAPSHOT Nightly build - July/12/2016)
> compatible with the released APIM Analytics 2.0.0 Beta2 pack ?
> If not, appreciate if we can have a compatible pack for APIM analytics as
> well.
>
> Thanks
> Maneesha
>
> On Tue, Jul 12, 2016 at 8:45 PM, Abimaran Kugathasan 
> wrote:
>
>> Hi All,
>>
>>
>> Please find today's nightly build pack for API Manager 2.0.0-SNAPSHOT [1]
>>
>>
>> [1] :
>> https://svn.wso2.org/repos/wso2/scratch/2016/apim-2.0.0/wso2am-2.0.0-SNAPSHOT-12-07-2016.zip
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820
>>
>> 
>> 
>>   
>> 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Maneesha Wijesekara
> Software Engineer - QA Team
> WSO2 Inc.
>
> Email: manee...@wso2.com
> Linkedin: http://linkedin.com/in/maneeshawijesekara
> Mobile: +94712443119
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
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] [DEV] [DAS] Issues in Generate Gadget Page

2016-07-12 Thread Tanya Madurapperuma
Hi Chamila,

On Sat, Jul 2, 2016 at 12:07 AM, Chamila De Alwis  wrote:

> Hi,
>
> In DAS 3.1.0-SNAPSHOT, in the dashboard portal, there are few issues in
> the Generate Gadget wizard UI.
>
>
> *Wizard steps don't get updated*
> ==
>
>1. Select Batch Data Source provider. Click Next.
>2. Select a table (Table1). Click Next.
>3. Check columns available in X and Y axes.
>4.  Click Previous to go to Configure Provider step.
>5. Select a different table (Table2). Click Next.
>6. Check columns available in X and Y axes. They are still Table 1
>columns.
>
> We could reproduce this error. Gadget generation framework provides the
capability for the datasource provider to define the configuration fields
that is needed to connect to that particular provider. So these fields will
be dynamic and framework is not aware of these fields at the runtime. From
the wizard's side, we can catch the on change event for general fields like
textbox, drop down etc but cannot predict on advanced UI elements that
providers going to introduce. Hence we have to figure out a better
mechanism to catch the on-change event of all these fields.
Please create a jira for this and we will fix it in a coming DS release.

>
> *Cannot validate or preview data from a real time data source*
> =
>
>1. Create UI Publisher for a stream.
>2. Select Realtime Data Source (Should be Real-Time Data Source).
>Click Next.
>3. Select a Stream.
>4. Click Test Connection. "Error in database configuration".
>5. Click  Show Data. Another error appears, but is not helpful.
>
>
@ Dunith, Tharik : Please check this in the real time provider. This has to
be handled from the provider api.

Thanks,
Tanya

> [image: Inline image 1]
>
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Tanya Madurapperuma

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


Re: [Dev] Creating a new Profile for ESB

2016-07-12 Thread Eranda Rajapakshe
Hi Aruna,

Thanks for the prompt response. As for ur instructions I have checked for
unsatisfied components. And it seems like there are few.
I will resolve the dependencies and update.

Thanks,

On Wed, Jul 13, 2016 at 10:01 AM, Aruna Karunarathna  wrote:

>
>
> On Wed, Jul 13, 2016 at 9:56 AM, Eranda Rajapakshe 
> wrote:
>
>> hi,
>>
>> I am trying to create a new profile using minimum features for ESB.
>> Currently, I have included following features,
>>
>> 
>>> org.wso2.carbon.application.mgt.feature.group
>>> org.wso2.carbon.databridge.datapublisher.feature.group
>>> org.wso2.carbon.logging.mgt.feature.group
>>>
>>
>>
>>> 
>>> org.wso2.carbon.core.common.feature.group
>>> org.wso2.carbon.core.server.feature.group
>>> org.wso2.carbon.core.runtime.feature.group
>>> org.wso2.carbon.core.feature.group
>>>
>>
>>
>>> 
>>> org.wso2.carbon.mediation.initializer.feature.group
>>> org.wso2.carbon.mediators.feature.group
>>> org.apache.synapse.transport.nhttp.feature.group
>>> org.apache.synapse.wso2.feature.group
>>> org.wso2.carbon.application.deployer.synapse.feature.group
>>> org.wso2.carbon.application.mgt.synapse.feature.group
>>> org.wso2.carbon.mediation.configadmin.feature.group
>>> org.wso2.carbon.mediation.admin.feature.group
>>> org.wso2.carbon.application.deployer.synapse.feature.group
>>> org.wso2.carbon.mediation.initializer.feature.group
>>>
>>
>>
>>> 
>>> org.wso2.carbon.registry.core.feature.group
>>> org.wso2.carbon.registry.resource.properties.feature.group
>>> org.wso2.carbon.registry.ui.menu.feature.group
>>>
>>
>>
>>> 
>>> org.wso2.carbon.service.mgt.feature.group
>>>
>>
>>
>>> 
>>> org.wso2.carbon.sts.feature.group
>>>
>>
>>
>>> 
>>> org.wso2.carbon.tenant.common.feature.group
>>
>>
>>
>> After starting ESB in this new profile, I'm getting following WARN logs
>> continuously,
>>
>> [2016-07-13 09:27:15,660]  WARN - AppDeployerServiceComponent Waiting for
>>> required OSGi services:
>>> org.wso2.carbon.application.deployer.synapse.service.SynapseAppDeployerService,org.wso2.carbon.mediation.initializer.services.SynapseEnvironmentService,
>>> [2016-07-13 09:27:15,673]  WARN - StartupFinalizerServiceComponent
>>> Waiting for required OSGi services:
>>> org.wso2.carbon.application.deployer.service.CappDeploymentService,
>>
>>
>>
>> Then I checked for active OSGi bundles in the ESB runtime and found
>> out that, bundles referring by the above WARN log are in active state.
>>
>
> It's not the bundle state you should check. You have to check why the
> required services are not active.
>
>>
>> org.wso2.carbon.mediation.initializer_4.6.1.SNAPSHOT
>>> org.wso2.carbon.application.deployer_4.4.6
>>> org.wso2.carbon.application.deployer.synapse_4.6.1.SNAPSHOT
>>
>>
>>
>> Is there any must have features or bundles that I have missed when
>> creating the P2 profile?
>>
>> Thanks,
>> --
>> *Eranda Rajapakshe*
>> Software Engineer
>> WSO2 Inc.
>> Mobile : +94784822608
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Aruna Sujith Karunarathna *
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
*Eranda Rajapakshe*
Software Engineer
WSO2 Inc.
Mobile : +94784822608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Is it best practice to return null or an empty object from a method in DAO layer?

2016-07-12 Thread Sabra Ossen
Hi,

Thank you all for your prompt responses :)

So if it's an ArrayList/Map it's better to return an empty object rather
than null. Got it.

Regarding a POJO object IMO the usage of null, empty object or exception
depends on the scenario being considered.

Based on Rasikas' reply since the jaggery level code is using the DAO
method (via manager interface) basically if no user is found then the
exception thrown should be propagated and in the UI an appropriate message
is rendered. Also since anyone else could be using the back end, when an
exception is thrown they would not have to be aware of the internal
implementation (if null or an empty object is returned, specifically he
should be aware if an empty object is returned so that he should write his
front end code accordingly).

IMO returning an exception is clearer in terms of code but I guess the
discussion could continue further until a guideline is specified.

Regards.


On Wed, Jul 13, 2016 at 6:49 AM, Harsha Thirimanna  wrote:

> HI Sabra,
>
> If there is collection type as a return, then you MUST return empty
> collection object of instead of null. But if you expect POJO as a return,
> then it would be better to return null instead of empty object. Because if
> it returns empty object instead of null, then some one get misunderstand
> who is going to use that API and will try to consume that as expected
> output. Then there may be more problems. You may not be the only one who
> consume your backend api.
>
>
>
>
> *Harsha Thirimanna*
> Associate Tech Lead; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Wed, Jul 13, 2016 at 12:42 AM, Rasika Perera  wrote:
>
>> ​Hi Sabra
>> ​
>> ​,
>>
>> I think you need to handle this error at jaggery level.​
>>
>> Considering a method returning a user object the client code should not
>>> be able to proceed further if there is no user.
>>
>> ​In this case, -1 for returning NULL. When there is an error,
>> unless
>> ​ it is recoverable locally you ​
>> *should*
>> ​ convey ​it to the upper layers. In your case, If you cannot return a
>> user object it is more intuitive to return an exception such as
>> UserManagerException.
>>
>> By returning NULL, you cannot make it mandatory to handle exception. Your
>> client code will not be aware of NULL unless the developer reads your
>> implementation class OR the documentation. Try to avoid
>> NullPointerException
>> ​ as much as possible.​
>>
>> In your client code(Jaggery) you can catch this error with try{ }
>> catch(error){ }. Found this blogpost [1] which discusses on jaggery error
>> handling.
>> AFAIK Jaggery will wrap java exceptions with ScriptException object.
>>
>> Regards,
>> Rasika
>>
>> [1]
>> http://ruchirawageesha.blogspot.com/2013/04/error-handling-in-jaggery.html
>>
>> On Tue, Jul 12, 2016 at 2:17 PM, Abimaran Kugathasan 
>> wrote:
>>
>>> There are good enough discussion in Stackoverflow [1], [2] and [3]. You
>>> could return null, empty object or throw exception in the case of data not
>>> available.
>>>
>>> It's also depends on the type of the Object you are supposed to return,
>>> if it's a ArrayList/Map, then returning empty ArrayList/Map is better than
>>> returning null, but, in case of Model object, I think, returning null is
>>> better than retuning a mock object of that class.
>>>
>>>
>>> [1] :
>>> http://programmers.stackexchange.com/questions/120355/is-it-better-to-return-null-or-empty-values-from-functions-methods-where-the-ret
>>> [2] :
>>> http://stackoverflow.com/questions/1626597/should-functions-return-null-or-an-empty-object
>>> [3] :
>>> http://programmers.stackexchange.com/questions/228287/returning-null-or-a-empty-value-throw-exception
>>>
>>> On Tue, Jul 12, 2016 at 12:03 PM, Jayanga Kaushalya 
>>> wrote:
>>>
 Hi,

 In my opinion, returning an empty object is far better. It will reduce
 unnecessary null checks and will stop the code from going on different
 paths. And code quality wise also I think returning empty is cleaner.
 For example:

 *List list = getList();*

 *for (Item item : list) {// Do logic.*
 *// This will not execute if the list is empty.*
 *}*

 Is much cleaner than

 *List list = getList();*
 *if (list == null) {*
 *// Handle the logic.*
 *// Now this is a different code path.*
 *}*

 Thanks!

 *Jayanga Kaushalya*
 Software Engineer
 Mobile: +94777860160
 WSO2 Inc. | http://wso2.com
 lean.enterprise.middleware

 On Tue, Jul 12, 2016 at 10:05 

Re: [Dev] Creating a new Profile for ESB

2016-07-12 Thread Aruna Karunarathna
On Wed, Jul 13, 2016 at 9:56 AM, Eranda Rajapakshe  wrote:

> hi,
>
> I am trying to create a new profile using minimum features for ESB.
> Currently, I have included following features,
>
> 
>> org.wso2.carbon.application.mgt.feature.group
>> org.wso2.carbon.databridge.datapublisher.feature.group
>> org.wso2.carbon.logging.mgt.feature.group
>>
>
>
>> 
>> org.wso2.carbon.core.common.feature.group
>> org.wso2.carbon.core.server.feature.group
>> org.wso2.carbon.core.runtime.feature.group
>> org.wso2.carbon.core.feature.group
>>
>
>
>> 
>> org.wso2.carbon.mediation.initializer.feature.group
>> org.wso2.carbon.mediators.feature.group
>> org.apache.synapse.transport.nhttp.feature.group
>> org.apache.synapse.wso2.feature.group
>> org.wso2.carbon.application.deployer.synapse.feature.group
>> org.wso2.carbon.application.mgt.synapse.feature.group
>> org.wso2.carbon.mediation.configadmin.feature.group
>> org.wso2.carbon.mediation.admin.feature.group
>> org.wso2.carbon.application.deployer.synapse.feature.group
>> org.wso2.carbon.mediation.initializer.feature.group
>>
>
>
>> 
>> org.wso2.carbon.registry.core.feature.group
>> org.wso2.carbon.registry.resource.properties.feature.group
>> org.wso2.carbon.registry.ui.menu.feature.group
>>
>
>
>> 
>> org.wso2.carbon.service.mgt.feature.group
>>
>
>
>> 
>> org.wso2.carbon.sts.feature.group
>>
>
>
>> 
>> org.wso2.carbon.tenant.common.feature.group
>
>
>
> After starting ESB in this new profile, I'm getting following WARN logs
> continuously,
>
> [2016-07-13 09:27:15,660]  WARN - AppDeployerServiceComponent Waiting for
>> required OSGi services:
>> org.wso2.carbon.application.deployer.synapse.service.SynapseAppDeployerService,org.wso2.carbon.mediation.initializer.services.SynapseEnvironmentService,
>> [2016-07-13 09:27:15,673]  WARN - StartupFinalizerServiceComponent
>> Waiting for required OSGi services:
>> org.wso2.carbon.application.deployer.service.CappDeploymentService,
>
>
>
> Then I checked for active OSGi bundles in the ESB runtime and found
> out that, bundles referring by the above WARN log are in active state.
>

It's not the bundle state you should check. You have to check why the
required services are not active.

>
> org.wso2.carbon.mediation.initializer_4.6.1.SNAPSHOT
>> org.wso2.carbon.application.deployer_4.4.6
>> org.wso2.carbon.application.deployer.synapse_4.6.1.SNAPSHOT
>
>
>
> Is there any must have features or bundles that I have missed when
> creating the P2 profile?
>
> Thanks,
> --
> *Eranda Rajapakshe*
> Software Engineer
> WSO2 Inc.
> Mobile : +94784822608
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Aruna Sujith Karunarathna *
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Creating a new Profile for ESB

2016-07-12 Thread Eranda Rajapakshe
hi,

I am trying to create a new profile using minimum features for ESB.
Currently, I have included following features,


> org.wso2.carbon.application.mgt.feature.group
> org.wso2.carbon.databridge.datapublisher.feature.group
> org.wso2.carbon.logging.mgt.feature.group
>


> 
> org.wso2.carbon.core.common.feature.group
> org.wso2.carbon.core.server.feature.group
> org.wso2.carbon.core.runtime.feature.group
> org.wso2.carbon.core.feature.group
>


> 
> org.wso2.carbon.mediation.initializer.feature.group
> org.wso2.carbon.mediators.feature.group
> org.apache.synapse.transport.nhttp.feature.group
> org.apache.synapse.wso2.feature.group
> org.wso2.carbon.application.deployer.synapse.feature.group
> org.wso2.carbon.application.mgt.synapse.feature.group
> org.wso2.carbon.mediation.configadmin.feature.group
> org.wso2.carbon.mediation.admin.feature.group
> org.wso2.carbon.application.deployer.synapse.feature.group
> org.wso2.carbon.mediation.initializer.feature.group
>


> 
> org.wso2.carbon.registry.core.feature.group
> org.wso2.carbon.registry.resource.properties.feature.group
> org.wso2.carbon.registry.ui.menu.feature.group
>


> 
> org.wso2.carbon.service.mgt.feature.group
>


> 
> org.wso2.carbon.sts.feature.group
>


> 
> org.wso2.carbon.tenant.common.feature.group



After starting ESB in this new profile, I'm getting following WARN logs
continuously,

[2016-07-13 09:27:15,660]  WARN - AppDeployerServiceComponent Waiting for
> required OSGi services:
> org.wso2.carbon.application.deployer.synapse.service.SynapseAppDeployerService,org.wso2.carbon.mediation.initializer.services.SynapseEnvironmentService,
> [2016-07-13 09:27:15,673]  WARN - StartupFinalizerServiceComponent Waiting
> for required OSGi services:
> org.wso2.carbon.application.deployer.service.CappDeploymentService,



Then I checked for active OSGi bundles in the ESB runtime and found
out that, bundles referring by the above WARN log are in active state.

org.wso2.carbon.mediation.initializer_4.6.1.SNAPSHOT
> org.wso2.carbon.application.deployer_4.4.6
> org.wso2.carbon.application.deployer.synapse_4.6.1.SNAPSHOT



Is there any must have features or bundles that I have missed when creating
the P2 profile?

Thanks,
-- 
*Eranda Rajapakshe*
Software Engineer
WSO2 Inc.
Mobile : +94784822608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IoTS] Questions about how to authenticate user and request data from IoTS

2016-07-12 Thread 云展智创
Hi all,

I am writing a HTML5 mobile app to use with IoTS. I use an open source H5 
framework called MUI, which support ajax and xmlhttprequest. Could you tell me 
how to authenticate the user with IoTS and request data with the access token? 
I tried to use ajax call to https://:9443/dynamic-client-web/register/but failed. I don’t know if it is because 
of cross domain request. Could you give me some example?

Besides the device_mgt API in the following website[1], are there any API I can 
use to get data from IoTS devices and show in my app. 

Thanks.

[1] https://docs.wso2.com/display/iots100/apidocs/index.html#guide
--
Zhanwen Zhou (Jason), General Manager
+86 13922218435
zhanwen.z...@smartcloudex.com
Guangzhou Smart Cloudex Technology Co., Ltd.
Business: IOT, APIM___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [DAS] Issues in Generate Gadget Page

2016-07-12 Thread Nipuna Chandradasa
HI all,

We have to recheck the error message displaying method ... here just we are
showing row HTML ...

@Chamila did you double check datasources? Can you see any error on the
console when click show data?

Thank you,

On Wed, Jul 13, 2016 at 9:00 AM, Chamila De Alwis  wrote:

> Hi,
>
> Any updates on this? I'm still seeing the issue related to the Real Time
> Data Source in DAS 3.1.0 Beta.
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Fri, Jul 1, 2016 at 9:10 PM, Dunith Dhanushka  wrote:
>
>> +Tanya
>>
>> On Sat, Jul 2, 2016 at 12:07 AM, Chamila De Alwis 
>> wrote:
>>
>>> Hi,
>>>
>>> In DAS 3.1.0-SNAPSHOT, in the dashboard portal, there are few issues in
>>> the Generate Gadget wizard UI.
>>>
>>>
>>> *Wizard steps don't get updated*
>>> ==
>>>
>>>1. Select Batch Data Source provider. Click Next.
>>>2. Select a table (Table1). Click Next.
>>>3. Check columns available in X and Y axes.
>>>4.  Click Previous to go to Configure Provider step.
>>>5. Select a different table (Table2). Click Next.
>>>6. Check columns available in X and Y axes. They are still Table 1
>>>columns.
>>>
>>>
>>> *Cannot validate or preview data from a real time data source*
>>> =
>>>
>>>1. Create UI Publisher for a stream.
>>>2. Select Realtime Data Source (Should be Real-Time Data Source).
>>>Click Next.
>>>3. Select a Stream.
>>>4. Click Test Connection. "Error in database configuration".
>>>5. Click  Show Data. Another error appears, but is not helpful.
>>>
>>> [image: Inline image 1]
>>>
>>>
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Committer and PMC Member - Apache Stratos
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>>
>> Dunith Dhanushka,
>> Associate Technical Lead
>> WSO2 Inc,
>>
>> Mobile - +94 71 8615744
>> Blog - *https://medium.com/@dunithd *
>> Twitter - @dunithd 
>>
>
>


-- 
Nipuna Marcus
*Software Engineer*
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
Mobile : +94 (0) 713 667906
nipu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][DS] Irregular behavior in text boxes in dashboard server

2016-07-12 Thread Nipuna Chandradasa
Hi Jerad ..

i used 42 as i remember   This has to be a firefox related issue. ... i
researched it a bit ... seems like it is. ASCII they have used same numbers
for these keys   but chrome somehow handling it ...
Yeah ... I'm in trace ... but i'll come around 1.00pm to PG.

Thank you,

On Wed, Jul 13, 2016 at 8:57 AM, Jerad Rutnam  wrote:

> Hi Nipuna,
>
> What's the Firefox version you are using? Looks like the bug presents on a
> particular version. Let's have a look.
>
> Cheers!
> Jerad
>
> On Wed, Jul 13, 2016 at 8:53 AM, Jerad Rutnam  wrote:
>
>> Hi Chamila,
>>
>> I tested this on both Firefox Developer Edition (v44.0a2) And
>> Chrome (v51.0.2704.103 m), But I could reproduce the issue you mentioned.
>> Tried with Arrows, Home & End Keys, and worked as expected.
>>
>> [Tested using Analytic IS]
>>
>> Cheers!
>> Jerad
>>
>> On Wed, Jul 13, 2016 at 3:08 AM, Chamila De Alwis 
>> wrote:
>>
>>> Hi,
>>>
>>> It seems in almost all of the text boxes in Dashboard Server, tasks such
>>> as arrow key navigation, "Home", "End" key navigation is not possible. The
>>> only exception I've observed are the search boxes which behave as expected.
>>> The browser I'm using is Firefox 47.0.
>>>
>>> This is a minor issue, but it's a really ubiquitous functionality for
>>> typing. Is this missing by design or an interesting bug?
>>>
>>> [image: Inline image 1]
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Committer and PMC Member - Apache Stratos
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>
>>
>> --
>> *Jerad Rutnam*
>> *Software Engineer*
>>
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>>
>
>
>
> --
> *Jerad Rutnam*
> *Software Engineer*
>
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>



-- 
Nipuna Marcus
*Software Engineer*
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
Mobile : +94 (0) 713 667906
nipu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [DAS] Issues in Generate Gadget Page

2016-07-12 Thread Chamila De Alwis
Hi,

Any updates on this? I'm still seeing the issue related to the Real Time
Data Source in DAS 3.1.0 Beta.


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



On Fri, Jul 1, 2016 at 9:10 PM, Dunith Dhanushka  wrote:

> +Tanya
>
> On Sat, Jul 2, 2016 at 12:07 AM, Chamila De Alwis 
> wrote:
>
>> Hi,
>>
>> In DAS 3.1.0-SNAPSHOT, in the dashboard portal, there are few issues in
>> the Generate Gadget wizard UI.
>>
>>
>> *Wizard steps don't get updated*
>> ==
>>
>>1. Select Batch Data Source provider. Click Next.
>>2. Select a table (Table1). Click Next.
>>3. Check columns available in X and Y axes.
>>4.  Click Previous to go to Configure Provider step.
>>5. Select a different table (Table2). Click Next.
>>6. Check columns available in X and Y axes. They are still Table 1
>>columns.
>>
>>
>> *Cannot validate or preview data from a real time data source*
>> =
>>
>>1. Create UI Publisher for a stream.
>>2. Select Realtime Data Source (Should be Real-Time Data Source).
>>Click Next.
>>3. Select a Stream.
>>4. Click Test Connection. "Error in database configuration".
>>5. Click  Show Data. Another error appears, but is not helpful.
>>
>> [image: Inline image 1]
>>
>>
>>
>> Regards,
>> Chamila de Alwis
>> Committer and PMC Member - Apache Stratos
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>
>
> --
> Regards,
>
> Dunith Dhanushka,
> Associate Technical Lead
> WSO2 Inc,
>
> Mobile - +94 71 8615744
> Blog - *https://medium.com/@dunithd *
> Twitter - @dunithd 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][DS] Irregular behavior in text boxes in dashboard server

2016-07-12 Thread Jerad Rutnam
Hi Nipuna,

What's the Firefox version you are using? Looks like the bug presents on a
particular version. Let's have a look.

Cheers!
Jerad

On Wed, Jul 13, 2016 at 8:53 AM, Jerad Rutnam  wrote:

> Hi Chamila,
>
> I tested this on both Firefox Developer Edition (v44.0a2) And
> Chrome (v51.0.2704.103 m), But I could reproduce the issue you mentioned.
> Tried with Arrows, Home & End Keys, and worked as expected.
>
> [Tested using Analytic IS]
>
> Cheers!
> Jerad
>
> On Wed, Jul 13, 2016 at 3:08 AM, Chamila De Alwis 
> wrote:
>
>> Hi,
>>
>> It seems in almost all of the text boxes in Dashboard Server, tasks such
>> as arrow key navigation, "Home", "End" key navigation is not possible. The
>> only exception I've observed are the search boxes which behave as expected.
>> The browser I'm using is Firefox 47.0.
>>
>> This is a minor issue, but it's a really ubiquitous functionality for
>> typing. Is this missing by design or an interesting bug?
>>
>> [image: Inline image 1]
>>
>> Regards,
>> Chamila de Alwis
>> Committer and PMC Member - Apache Stratos
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>
>
> --
> *Jerad Rutnam*
> *Software Engineer*
>
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>



-- 
*Jerad Rutnam*
*Software Engineer*

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


Re: [Dev] [DEV][DS] Irregular behavior in text boxes in dashboard server

2016-07-12 Thread Jerad Rutnam
Hi Chamila,

I tested this on both Firefox Developer Edition (v44.0a2) And
Chrome (v51.0.2704.103 m), But I could reproduce the issue you mentioned.
Tried with Arrows, Home & End Keys, and worked as expected.

[Tested using Analytic IS]

Cheers!
Jerad

On Wed, Jul 13, 2016 at 3:08 AM, Chamila De Alwis  wrote:

> Hi,
>
> It seems in almost all of the text boxes in Dashboard Server, tasks such
> as arrow key navigation, "Home", "End" key navigation is not possible. The
> only exception I've observed are the search boxes which behave as expected.
> The browser I'm using is Firefox 47.0.
>
> This is a minor issue, but it's a really ubiquitous functionality for
> typing. Is this missing by design or an interesting bug?
>
> [image: Inline image 1]
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>


-- 
*Jerad Rutnam*
*Software Engineer*

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


Re: [Dev] [DEV][DS] Irregular behavior in text boxes in dashboard server

2016-07-12 Thread Nipuna Chandradasa
Adding sinthuja, nisala, tanya, megala

Hi Chamila,

This is happened due to the sanitation of input. If you check this on
chrome this is working fine. Some key number for special keys are same as
arrow keys numbers (ASCII values) in Firefox. It is a firefox related DS
bug. Will discuss this matter with DS team.

@Sinthuja - can we have a look at this matter? this was specific to Firefox.

Thank you,

On Wed, Jul 13, 2016 at 3:08 AM, Chamila De Alwis  wrote:

> Hi,
>
> It seems in almost all of the text boxes in Dashboard Server, tasks such
> as arrow key navigation, "Home", "End" key navigation is not possible. The
> only exception I've observed are the search boxes which behave as expected.
> The browser I'm using is Firefox 47.0.
>
> This is a minor issue, but it's a really ubiquitous functionality for
> typing. Is this missing by design or an interesting bug?
>
> [image: Inline image 1]
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>


-- 
Nipuna Marcus
*Software Engineer*
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
Mobile : +94 (0) 713 667906
nipu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What's "/p2-profie-gen/carbon.product"?

2016-07-12 Thread Prabath Abeysekera
Thanks Chanaka. Will refer the recommended materials for more info.

Cheers,
Prabath

On Mon, Jul 11, 2016 at 5:30 PM, Chanaka Cooray  wrote:

> Hi Prabath,
>
> carbon.product file has the initial configurations of the osgi-bundles to
> start and other required configurations necessary to generate the
> config.ini (the main configuration file for an eclipse product). It also
> defines the minimal equinox runtime-feature to be installed first into the
> default WSO2Carbon profile.
>
> This blog post[1] might help you.
>
> [1] http://dileepajayakody.blogspot.com/2013_03_01_archive.html
>
> Thanks,
> Chanaka.
>
> On Mon, Jul 11, 2016 at 12:35 PM, Prabath Abeysekera 
> wrote:
>
>> Hi Guys,
>>
>> Can someone please explain what "/p2-profie-gen/carbon.product" is and
>> what it is intended for?
>>
>> Cheers,
>> Prabath
>> --
>> Prabath Abeysekara
>> Technical Lead
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Chanaka Cooray
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: chana...@wso2.com
> Mobile: +94713149860
>
>


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


Re: [Dev] Fwd: [IS] Missing requirement in building product-is from source

2016-07-12 Thread Darshana Gunawardana
Created : https://wso2.org/jira/browse/IDENTITY-4803 to track this.

On Wed, Jul 13, 2016 at 8:14 AM, Prabath Siriwardana 
wrote:

> I too got the same error while building in Mac - with java 1.8.0. Was able
> to fix the issue by upgrading the plugin to 1.8.0. But as per Darshana this
> will still have an issue with osgi annotations..
>
> So - how do we proceed with this..? Do we face this issue only in IS..?
>
> Thanks & regards,
> -Prabath
>
> On Mon, May 9, 2016 at 2:55 AM, Malithi Edirisinghe 
> wrote:
>
>> Anybody know a way to get out of this error ???
>>
>> On Mon, May 9, 2016 at 1:59 PM, Malithi Edirisinghe 
>> wrote:
>>
>>> Hi,
>>>
>>> Is this being solved. I get the same error [1] when building on OS X
>>> Yosemite. Also seems the same was discussed in [2] as well.
>>>
>>> This was identified as a bug in felix plugin at [3]. Upgrading the
>>> maven-scr-plugin to version 1.8.0 successfully built the respective
>>> component. However, that does to build OSGI bundles properly.
>>>
>>> Any idea on how to solve this issue?
>>>
>>> [1] "[ERROR] Failed to execute goal 
>>> org.apache.felix:maven-scr-plugin:1.7.2:scr
>>> (generate-scr-scrdescriptor) on project org.wso2.carbon.identity.
>>> application.authentication.framework: Execution
>>> generate-scr-scrdescriptor of goal 
>>> org.apache.felix:maven-scr-plugin:1.7.2:scr
>>> failed: Comparison method violates its general contract! -> [Help 1]"
>>> [2]"[Dev] [Carbon] Build fail in cerbon4-kernel source code."
>>> [3] https://issues.apache.org/jira/browse/FELIX-3571
>>>
>>> Thanks,
>>> Malithi
>>>
>>> On Mon, May 2, 2016 at 11:29 AM, Manujith Pallewatte <
>>> manujith...@gmail.com> wrote:
>>>
 Hi all,

 Just to update in case anyone else is having the issue, product-is
 didn't build on Ubuntu 16.04 (for reasons still not known) but build
 successfully in Ubuntu 14.04. Still having the above mentioned issue in
 identity-framework build though.

 Thanks!

 On Thu, Apr 28, 2016 at 9:26 AM, Manujith Pallewatte <
 manujith...@gmail.com> wrote:

> Hi Chamila,
>
> I tried with maven 3.3 also with maven 3.0.5 as mentioned in the
> requirements
> I build product-is only before in a windows environment, with no
> issues, but it didn't work in the current (ubuntu 16.04) environment
> From the link above[1] i have all prerequisites other than svn, since
> I clone from git i believe svn is of no use
>
>
> [1]. https://docs.wso2.com/display/IS510/Installation+Prerequisites
>
>
> On Wed, Apr 27, 2016 at 9:06 PM, Chamila Wijayarathna <
> cham...@wso2.com> wrote:
>
>> [adding dev]
>>
>> identity-framework should build without any issues, what is the maven
>> version you are using? Can you check if you have all the requirement
>> mentioned at [1] for building the identity server from source code. Was
>> this building successfully previously?
>>
>> [1]. https://docs.wso2.com/display/IS510/Installation+Prerequisites
>>
>> -- Forwarded message --
>> From: Manujith Pallewatte 
>> Date: Wed, Apr 27, 2016 at 7:49 PM
>> Subject: Re: [IS] Missing requirement in building product-is from
>> source
>> To: Chamila Wijayarathna 
>>
>>
>> Hi Chamila,
>>
>> Apparently identity framework didnt have the latest commits, I forked
>> it today and pulled but It must have missed some commits
>> Anyway I updated the local repo to all changes, but now identity
>> framework gives an error in building
>>
>> "[ERROR] Failed to execute goal
>> org.apache.felix:maven-scr-plugin:1.7.2:scr (generate-scr-scrdescriptor) 
>> on
>> project org.wso2.carbon.identity.application.authentication.framework:
>> Execution generate-scr-scrdescriptor of goal
>> org.apache.felix:maven-scr-plugin:1.7.2:scr failed: Comparison method
>> violates its general contract! -> [Help 1]"
>>
>> I google and found that this is a known bug of apache felix, but it
>> didn't provide and solid way to solve other than to change jdk version
>> I tried changing version with no luck, any ideas?
>>
>> Also found similar error in dev list
>> http://mail.wso2.org/mailarchive/dev/2015-June/049912.html
>>
>> Thank You
>>
>> On Wed, Apr 27, 2016 at 4:46 PM, Chamila Wijayarathna <
>> cham...@wso2.com> wrote:
>>
>>> Hi Manujith,
>>>
>>> It seems like your identity-framework or product-is is not upto date.
>>>
>>> Can you check what are the latest commits in both repos using git
>>> log and check if commits merged within last few days are there in your
>>> local repo?
>>>
>>> Thank You!
>>>
>>> On Wed, Apr 27, 2016 at 3:56 PM, Manujith Pallewatte <
>>> manujith...@gmail.com> wrote:
>>>
 Hi 

Re: [Dev] Fwd: [IS] Missing requirement in building product-is from source

2016-07-12 Thread Prabath Siriwardana
I too got the same error while building in Mac - with java 1.8.0. Was able
to fix the issue by upgrading the plugin to 1.8.0. But as per Darshana this
will still have an issue with osgi annotations..

So - how do we proceed with this..? Do we face this issue only in IS..?

Thanks & regards,
-Prabath

On Mon, May 9, 2016 at 2:55 AM, Malithi Edirisinghe 
wrote:

> Anybody know a way to get out of this error ???
>
> On Mon, May 9, 2016 at 1:59 PM, Malithi Edirisinghe 
> wrote:
>
>> Hi,
>>
>> Is this being solved. I get the same error [1] when building on OS X
>> Yosemite. Also seems the same was discussed in [2] as well.
>>
>> This was identified as a bug in felix plugin at [3]. Upgrading the
>> maven-scr-plugin to version 1.8.0 successfully built the respective
>> component. However, that does to build OSGI bundles properly.
>>
>> Any idea on how to solve this issue?
>>
>> [1] "[ERROR] Failed to execute goal 
>> org.apache.felix:maven-scr-plugin:1.7.2:scr
>> (generate-scr-scrdescriptor) on project org.wso2.carbon.identity.
>> application.authentication.framework: Execution
>> generate-scr-scrdescriptor of goal 
>> org.apache.felix:maven-scr-plugin:1.7.2:scr
>> failed: Comparison method violates its general contract! -> [Help 1]"
>> [2]"[Dev] [Carbon] Build fail in cerbon4-kernel source code."
>> [3] https://issues.apache.org/jira/browse/FELIX-3571
>>
>> Thanks,
>> Malithi
>>
>> On Mon, May 2, 2016 at 11:29 AM, Manujith Pallewatte <
>> manujith...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> Just to update in case anyone else is having the issue, product-is
>>> didn't build on Ubuntu 16.04 (for reasons still not known) but build
>>> successfully in Ubuntu 14.04. Still having the above mentioned issue in
>>> identity-framework build though.
>>>
>>> Thanks!
>>>
>>> On Thu, Apr 28, 2016 at 9:26 AM, Manujith Pallewatte <
>>> manujith...@gmail.com> wrote:
>>>
 Hi Chamila,

 I tried with maven 3.3 also with maven 3.0.5 as mentioned in the
 requirements
 I build product-is only before in a windows environment, with no
 issues, but it didn't work in the current (ubuntu 16.04) environment
 From the link above[1] i have all prerequisites other than svn, since I
 clone from git i believe svn is of no use


 [1]. https://docs.wso2.com/display/IS510/Installation+Prerequisites


 On Wed, Apr 27, 2016 at 9:06 PM, Chamila Wijayarathna  wrote:

> [adding dev]
>
> identity-framework should build without any issues, what is the maven
> version you are using? Can you check if you have all the requirement
> mentioned at [1] for building the identity server from source code. Was
> this building successfully previously?
>
> [1]. https://docs.wso2.com/display/IS510/Installation+Prerequisites
>
> -- Forwarded message --
> From: Manujith Pallewatte 
> Date: Wed, Apr 27, 2016 at 7:49 PM
> Subject: Re: [IS] Missing requirement in building product-is from
> source
> To: Chamila Wijayarathna 
>
>
> Hi Chamila,
>
> Apparently identity framework didnt have the latest commits, I forked
> it today and pulled but It must have missed some commits
> Anyway I updated the local repo to all changes, but now identity
> framework gives an error in building
>
> "[ERROR] Failed to execute goal
> org.apache.felix:maven-scr-plugin:1.7.2:scr (generate-scr-scrdescriptor) 
> on
> project org.wso2.carbon.identity.application.authentication.framework:
> Execution generate-scr-scrdescriptor of goal
> org.apache.felix:maven-scr-plugin:1.7.2:scr failed: Comparison method
> violates its general contract! -> [Help 1]"
>
> I google and found that this is a known bug of apache felix, but it
> didn't provide and solid way to solve other than to change jdk version
> I tried changing version with no luck, any ideas?
>
> Also found similar error in dev list
> http://mail.wso2.org/mailarchive/dev/2015-June/049912.html
>
> Thank You
>
> On Wed, Apr 27, 2016 at 4:46 PM, Chamila Wijayarathna <
> cham...@wso2.com> wrote:
>
>> Hi Manujith,
>>
>> It seems like your identity-framework or product-is is not upto date.
>>
>> Can you check what are the latest commits in both repos using git log
>> and check if commits merged within last few days are there in your local
>> repo?
>>
>> Thank You!
>>
>> On Wed, Apr 27, 2016 at 3:56 PM, Manujith Pallewatte <
>> manujith...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I'm trying to setup the development environment to start working for
>>> GSOC on the identity server, and I already downloaded and build the
>>> carbon-identity-framework repo along with the extensions as mentioned 
>>> in [1]
>>>
>>> Now I'm trying 

Re: [Dev] Is it best practice to return null or an empty object from a method in DAO layer?

2016-07-12 Thread Harsha Thirimanna
HI Sabra,

If there is collection type as a return, then you MUST return empty
collection object of instead of null. But if you expect POJO as a return,
then it would be better to return null instead of empty object. Because if
it returns empty object instead of null, then some one get misunderstand
who is going to use that API and will try to consume that as expected
output. Then there may be more problems. You may not be the only one who
consume your backend api.




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

*Lean . Enterprise . Middleware*


On Wed, Jul 13, 2016 at 12:42 AM, Rasika Perera  wrote:

> ​Hi Sabra
> ​
> ​,
>
> I think you need to handle this error at jaggery level.​
>
> Considering a method returning a user object the client code should not be
>> able to proceed further if there is no user.
>
> ​In this case, -1 for returning NULL. When there is an error,
> unless
> ​ it is recoverable locally you ​
> *should*
> ​ convey ​it to the upper layers. In your case, If you cannot return a
> user object it is more intuitive to return an exception such as
> UserManagerException.
>
> By returning NULL, you cannot make it mandatory to handle exception. Your
> client code will not be aware of NULL unless the developer reads your
> implementation class OR the documentation. Try to avoid
> NullPointerException
> ​ as much as possible.​
>
> In your client code(Jaggery) you can catch this error with try{ }
> catch(error){ }. Found this blogpost [1] which discusses on jaggery error
> handling.
> AFAIK Jaggery will wrap java exceptions with ScriptException object.
>
> Regards,
> Rasika
>
> [1]
> http://ruchirawageesha.blogspot.com/2013/04/error-handling-in-jaggery.html
>
> On Tue, Jul 12, 2016 at 2:17 PM, Abimaran Kugathasan 
> wrote:
>
>> There are good enough discussion in Stackoverflow [1], [2] and [3]. You
>> could return null, empty object or throw exception in the case of data not
>> available.
>>
>> It's also depends on the type of the Object you are supposed to return,
>> if it's a ArrayList/Map, then returning empty ArrayList/Map is better than
>> returning null, but, in case of Model object, I think, returning null is
>> better than retuning a mock object of that class.
>>
>>
>> [1] :
>> http://programmers.stackexchange.com/questions/120355/is-it-better-to-return-null-or-empty-values-from-functions-methods-where-the-ret
>> [2] :
>> http://stackoverflow.com/questions/1626597/should-functions-return-null-or-an-empty-object
>> [3] :
>> http://programmers.stackexchange.com/questions/228287/returning-null-or-a-empty-value-throw-exception
>>
>> On Tue, Jul 12, 2016 at 12:03 PM, Jayanga Kaushalya 
>> wrote:
>>
>>> Hi,
>>>
>>> In my opinion, returning an empty object is far better. It will reduce
>>> unnecessary null checks and will stop the code from going on different
>>> paths. And code quality wise also I think returning empty is cleaner.
>>> For example:
>>>
>>> *List list = getList();*
>>>
>>> *for (Item item : list) {// Do logic.*
>>> *// This will not execute if the list is empty.*
>>> *}*
>>>
>>> Is much cleaner than
>>>
>>> *List list = getList();*
>>> *if (list == null) {*
>>> *// Handle the logic.*
>>> *// Now this is a different code path.*
>>> *}*
>>>
>>> Thanks!
>>>
>>> *Jayanga Kaushalya*
>>> Software Engineer
>>> Mobile: +94777860160
>>> WSO2 Inc. | http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> On Tue, Jul 12, 2016 at 10:05 AM, Sabra Ossen  wrote:
>>>
 Hi Chamila,

 I checked from findbugs and it didn't return an error. Is returning an
 empty object a practice followed in WSO2?

 On Tue, Jul 12, 2016 at 9:25 AM, Chamila Wijayarathna <
 cdwijayarat...@gmail.com> wrote:

> Hi Sabra,
>
> AFAIK when we return a null from a method, find bugs show it as an
> error (please check this) and to fix this we use empty objects. So I think
> the returning null is not something we should do.
>
> Thank You!
>



 --
 *Sabra Ossen*
 *Software Engineer*
 Email: sa...@wso2.com
 Mobile: +94 767 837356

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


>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820
>>
>> 

[Dev] [DEV][DS] Irregular behavior in text boxes in dashboard server

2016-07-12 Thread Chamila De Alwis
Hi,

It seems in almost all of the text boxes in Dashboard Server, tasks such as
arrow key navigation, "Home", "End" key navigation is not possible. The
only exception I've observed are the search boxes which behave as expected.
The browser I'm using is Firefox 47.0.

This is a minor issue, but it's a really ubiquitous functionality for
typing. Is this missing by design or an interesting bug?

[image: Inline image 1]

Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Is it best practice to return null or an empty object from a method in DAO layer?

2016-07-12 Thread Rasika Perera
​Hi Sabra
​
​,

I think you need to handle this error at jaggery level.​

Considering a method returning a user object the client code should not be
> able to proceed further if there is no user.

​In this case, -1 for returning NULL. When there is an error,
unless
​ it is recoverable locally you ​
*should*
​ convey ​it to the upper layers. In your case, If you cannot return a user
object it is more intuitive to return an exception such as
UserManagerException.

By returning NULL, you cannot make it mandatory to handle exception. Your
client code will not be aware of NULL unless the developer reads your
implementation class OR the documentation. Try to avoid
NullPointerException
​ as much as possible.​

In your client code(Jaggery) you can catch this error with try{ }
catch(error){ }. Found this blogpost [1] which discusses on jaggery error
handling.
AFAIK Jaggery will wrap java exceptions with ScriptException object.

Regards,
Rasika

[1]
http://ruchirawageesha.blogspot.com/2013/04/error-handling-in-jaggery.html

On Tue, Jul 12, 2016 at 2:17 PM, Abimaran Kugathasan 
wrote:

> There are good enough discussion in Stackoverflow [1], [2] and [3]. You
> could return null, empty object or throw exception in the case of data not
> available.
>
> It's also depends on the type of the Object you are supposed to return, if
> it's a ArrayList/Map, then returning empty ArrayList/Map is better than
> returning null, but, in case of Model object, I think, returning null is
> better than retuning a mock object of that class.
>
>
> [1] :
> http://programmers.stackexchange.com/questions/120355/is-it-better-to-return-null-or-empty-values-from-functions-methods-where-the-ret
> [2] :
> http://stackoverflow.com/questions/1626597/should-functions-return-null-or-an-empty-object
> [3] :
> http://programmers.stackexchange.com/questions/228287/returning-null-or-a-empty-value-throw-exception
>
> On Tue, Jul 12, 2016 at 12:03 PM, Jayanga Kaushalya 
> wrote:
>
>> Hi,
>>
>> In my opinion, returning an empty object is far better. It will reduce
>> unnecessary null checks and will stop the code from going on different
>> paths. And code quality wise also I think returning empty is cleaner.
>> For example:
>>
>> *List list = getList();*
>>
>> *for (Item item : list) {// Do logic.*
>> *// This will not execute if the list is empty.*
>> *}*
>>
>> Is much cleaner than
>>
>> *List list = getList();*
>> *if (list == null) {*
>> *// Handle the logic.*
>> *// Now this is a different code path.*
>> *}*
>>
>> Thanks!
>>
>> *Jayanga Kaushalya*
>> Software Engineer
>> Mobile: +94777860160
>> WSO2 Inc. | http://wso2.com
>> lean.enterprise.middleware
>>
>> On Tue, Jul 12, 2016 at 10:05 AM, Sabra Ossen  wrote:
>>
>>> Hi Chamila,
>>>
>>> I checked from findbugs and it didn't return an error. Is returning an
>>> empty object a practice followed in WSO2?
>>>
>>> On Tue, Jul 12, 2016 at 9:25 AM, Chamila Wijayarathna <
>>> cdwijayarat...@gmail.com> wrote:
>>>
 Hi Sabra,

 AFAIK when we return a null from a method, find bugs show it as an
 error (please check this) and to fix this we use empty objects. So I think
 the returning null is not something we should do.

 Thank You!

>>>
>>>
>>>
>>> --
>>> *Sabra Ossen*
>>> *Software Engineer*
>>> Email: sa...@wso2.com
>>> Mobile: +94 767 837356
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer
>
> Email : abima...@wso2.com
> Mobile : +94 773922820
>
> 
> 
>   
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
With Regards,

*Rasika Perera*
Software Engineer
M: +94 71 680 9060 E: rasi...@wso2.com
LinkedIn: http://lk.linkedin.com/in/rasika90

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


[Dev] HZ Support for Private and Public IPs for Members

2016-07-12 Thread Isuru Haththotuwa
http://docs.hazelcast.org/docs/3.6/manual/html-single/index.html#public-address

This is useful in NATed/containerized environments where its not possible
to communicate directly using the private local IP. This along with the
socket address is similar to the localMemberHost and localMemberBindHost
concepts that was there in earlier clustering framework based on Tribes.

-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] Why we are using 404 for "No Content" responses ?

2016-07-12 Thread Geeth Munasinghe
On Tue, Jul 12, 2016 at 7:11 AM, Madhawa Gunasekara 
wrote:

> Hi All,
>
> Why can't we simply use 204 as status code for the No Content responses?
> because according to the spec all the 2xx status codes are successful.
> AFAIU We should use 204 for No Content responses.
>

AFAIK we send a empty json array ( "[]" ) when no records are available. So
it is not a No Content response.

>
> Thanks,
> Madhawa
>
> On Wed, Jun 15, 2016 at 7:40 PM, Manuranga Perera  wrote:
>
>> Seems like the bigger issue here is that resource collection is not being
>>  a path parameter.
>>
>> /devices/type=android -> not ideal, there is no good way to distinguish
>> non-existing types
>> /devices/android -> seems to be more REST like
>>
>> On Wed, Jun 15, 2016 at 5:17 AM, Joseph Fonseka  wrote:
>>
>>> Hi All
>>>
>>> In AM what we practice is that collection resource will return 200 Ok
>>> with an empty body ( empty array in JSON  ) if the collection or query
>>> result is empty.
>>>
>>> IMO the key is 200 status denote the sent result is valid and you use
>>> the empty body to convey the collection / query result is empty.
>>>
>>> For resources like /devices/{Id} will return 404 if the resource is not
>>> found.
>>>
>>> Regards
>>> Jo
>>>
>>>
>>> On Wed, Jun 15, 2016 at 12:26 PM, Chathura Dilan 
>>> wrote:
>>>
 ​Yes

 Take an API like /devices and if there are no records in it, return an
 empty array. In this case the collection there is empty but it does exist.
 So we cannot return 404 and use 200 instead.
 If it is an single resource like devices/{deviceId} and if it is not
 found return 404, because it does not exist.


 On Wed, Jun 15, 2016 at 11:42 AM, Ruwan Yatawara 
 wrote:

> However, as per the implementation, since what is drawn from
> '/devices' is a list of resources.. and not an individual device. I 
> believe
> a 200 ok with an empty set is acceptable.
>
>
> Thanks and Regards,
>
> Ruwan Yatawara
>
> Associate Technical Lead,
> WSO2 Inc.
>
> email : ruw...@wso2.com
> mobile : +94 77 9110413
> blog : http://ruwansrants.blogspot.com/
>   https://500px.com/ruwan_ace
> www: :http://wso2.com
>
>
> On Wed, Jun 15, 2016 at 11:26 AM, Ruwan Yatawara 
> wrote:
>
>> In the devices example that's used, it is my opinion that the device
>> that you are trying to locate is the resource, "/devices" is merely the
>> context. Therefore if a resource cannot be located a 404 no content is
>> acceptable. However, when looking at things from a AJAX request
>> perspective, this kind of scenario become tricky to handle.
>>
>> Even when I started on working on the UI stabilisation effort, i
>> thought 204 was the way to go, however upon further reading and looking 
>> at
>> things from aforementioned perspective, IMHO 404 seems the right response
>> to return when a resource is not found.
>>
>> Thanks and Regards,
>>
>> Ruwan Yatawara
>>
>> Associate Technical Lead,
>> WSO2 Inc.
>>
>> email : ruw...@wso2.com
>> mobile : +94 77 9110413
>> blog : http://ruwansrants.blogspot.com/
>>   https://500px.com/ruwan_ace
>> www: :http://wso2.com
>>
>>
>> On Wed, Jun 15, 2016 at 11:15 AM, Rasika Perera 
>> wrote:
>>
>>> ​Hi All,
>>> ​
>>>
>>>
 I think that even though it is a single resource or a collection it
 should not be handled differently. if there is no resource behind the 
 URI
 then it should be 404.
>>>
>>> ​-1. "/devices" is your resource in this case. and it is a
>>> *collection*.​
>>> ​ Query components are for retrieval of non-hierarchical data
>>> .  You should not use the query string to identify a *single*
>>> resource. "?type={platform}" is not a part of your resources hierarchy.​
>>> Hence returning 404 may convey that "/devices" is non-existant and 
>>> client
>>> should not try "/devices" on proceeding requests.
>>>
>>> ​Thanks,
>>> Rasika​
>>>
>>>
>>>
>>> On Wed, Jun 15, 2016 at 10:51 AM, Geeth Munasinghe 
>>> wrote:
>>>


 On Wed, Jun 15, 2016 at 10:11 AM, Ayyoob Hamza 
 wrote:

> I think that even though it is a single resource or a collection
> it should not be handled differently. if there is no resource behind 
> the
> URI then it should be 404.
>
 -1,
 AFAIK, it is an actual endpoint (URL) refers to a resource. (In
 case of "/devices?{query_params}",  "/devices" is the resource) It 
 does not
 matter that resource returns an output or not. Because resource can 

Re: [Dev] [DEV][DAS] Cannot delete dashboard added through registry

2016-07-12 Thread Chamila De Alwis
Hi devs,

I found the root cause of this. It's in the name of the resource.

When I first exported the dashboard it was saved as *esb-490-analytics(2)*,
emphasis on the brackets. When this was uploaded to the registry, the
resulting resource name had the same name.
[image: Inline image 1]
[image: Inline image 2]

This dashboard cannot be deleted, and behaves the way described in the
first email. When I rename and remove the brackets from the resource name,
the delete function completes successfully.
[image: Inline image 4]





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



On Tue, Jul 12, 2016 at 10:45 AM, Chamila De Alwis 
wrote:

> Thanks for the suggestion Udara! However, I'm still working with
> admin:admin, and with no additional users.
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Tue, Jul 12, 2016 at 10:36 AM, Udara Rathnayake 
> wrote:
>
>> Can you add relevant permissions from dashboard settings page and retry
>> this?
>>
>> @Nisala, I think we allow only dashboard owner to delete the dashboard
>> right?
>>
>> On Tue, Jul 12, 2016 at 8:41 PM, Chamila De Alwis 
>> wrote:
>>
>>> I forgot to mention that this is seen in DAS 3.1.0 Beta.
>>>
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Committer and PMC Member - Apache Stratos
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>> On Tue, Jul 12, 2016 at 9:48 AM, Chamila De Alwis 
>>> wrote:
>>>
 Hi,

 If an already created dashboard is added through the registry, it
 cannot be deleted in the dashboard server. When clicked on the "Delete"
 button, there is no feedback, and there is no error in the logs to be seen.

 This issue is not there for dashboards created in the dashboard server.

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



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


Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-07-12 Thread Asantha Thilina
Hi Tharindu,
sure we will arrange a hangout on next week and sure i will refer the link
and do the necessary inspect in my code for any security vulnerabilities
and update you sooner

Thanks,
Asantha

On Tue, Jul 12, 2016 at 9:56 AM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> Thanks for the update. I'm out of the country this week and won't be
> available. Let's have a hangout next week and discuss the final steps of
> the project.
>
> Along with find bugs, if you haven't enabled findsecuritybugs plugin, you
> can refer [1] and check if any security weaknesses are there in the code.
>
> [1]
> http://tharindue.blogspot.in/2016/06/static-code-analysis-for-java-using.html
>
> Thanks,
> TharinduE
>
> On Tue, Jul 12, 2016 at 5:32 PM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>> I have clean up the code according to find bug plugin and also for
>> rollback purposes since it only concern when modifying or adding new user
>> or role to user store i have manually added rollback option where if error
>> occured all the changes done to db in code segment will be discard from db
>> i updated the my repository with recent changes[1] now i preparing the
>> documentation and test scripts.
>>
>> [1] https://github.com/asanthamax/mongodbuserstore
>>
>> Thanks,
>> Asantha
>>
>> On Mon, Jul 4, 2016 at 2:54 AM, Asantha Thilina > > wrote:
>>
>>> Hi Tharindu,
>>>
>>> thanks for the reply ,sure i will try out that and update the progress
>>> as soon as possible
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Mon, Jul 4, 2016 at 1:38 AM, Tharindu Edirisinghe >> > wrote:
>>>
 Hi Asantha,

 While you are adding the roll back transaction capability, also look
 into testing a high load and try to generate database level exceptions.
 Once thing you can try out is writing a client for performing userstore
 manager operations such as add user, add role, login, logout etc. and play
 it with a high concurrency using Jmeter. Then we should be able to get a
 better understanding of transaction management with respective to MongoDB.

 Regards,
 TharinduE

 On Mon, Jul 4, 2016 at 10:57 AM, Asantha Thilina <
 asanthathil...@gmail.com> wrote:

> Hi all,
>
> i will be trying for implement roll back transactions capability in
> MongoDB to add to MongoDB User Store[2] i found that MongoDB use a concept
> call two phase commit[1] i trying to implement that inside my code but it
> seems to be little complex and i think it may arise performance issue when
> adding high load of dataset at once is there any other better method i can
> achieve this task? any advices would be grateful
>
> [1]
> https://docs.mongodb.com/manual/tutorial/perform-two-phase-commits/
> [2] https://github.com/asanthamax/mongodbuserstore
>
> Thanks,
> Asantha
>
> On Wed, Jun 29, 2016 at 2:55 PM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Tharindu,
>>
>> I have finished and added delete functions also to users ,roles and
>> user claim deletions to my repo[1]
>>
>> [1] https://github.com/asanthamax/mongodbuserstore
>>
>> Thanks,
>> Asantha
>>
>> On Mon, Jun 27, 2016 at 4:18 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi aiya,
>>>
>>> i have small problem in my research, i will be developing
>>> convolution neural network using deeplearning4j to detect frauds i have
>>> discovered some fraud patterns which can use to train my network but the
>>> problem i having is,are there any possibility to add condition driven
>>> capability to dataset to train model
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Wed, Jun 22, 2016 at 9:35 PM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
 Good work Asantha... Meanwhile let's look at getting your research
 work published as well. I will provide feedback for the work so far in
 couple of days time. I have also completed the Mid Review based on your
 current work where you are already ahead of schedule.

 Regards,
 TharinduE

 On Wed, Jun 22, 2016 at 9:41 PM, Asantha Thilina <
 asanthathil...@gmail.com> wrote:

> Hi Tharindu,
>
> following is the summary of operations i have implemented up to
> now and yet to implement
>
> 1. Add new MongoDB User Store - done both case sensitive and
> intensensitive
> 2. Add new users to MongoDB user store - done both case sensitive
> and intensensitive
> 3. Add new roles to MongoDB user store - done both case sensitive
> and intensensitive
> 4. Search users and roles - done both case sensitive and
> intensensitive
> 5. Assign roles to mongodb 

Re: [Dev] [DEV][DAS] Cannot delete dashboard added through registry

2016-07-12 Thread Udara Rathnayake
Can you add relevant permissions from dashboard settings page and retry
this?

@Nisala, I think we allow only dashboard owner to delete the dashboard
right?

On Tue, Jul 12, 2016 at 8:41 PM, Chamila De Alwis  wrote:

> I forgot to mention that this is seen in DAS 3.1.0 Beta.
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Tue, Jul 12, 2016 at 9:48 AM, Chamila De Alwis 
> wrote:
>
>> Hi,
>>
>> If an already created dashboard is added through the registry, it cannot
>> be deleted in the dashboard server. When clicked on the "Delete" button,
>> there is no feedback, and there is no error in the logs to be seen.
>>
>> This issue is not there for dashboards created in the dashboard server.
>>
>> Regards,
>> Chamila de Alwis
>> Committer and PMC Member - Apache Stratos
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [DEV][DAS] Cannot delete dashboard added through registry

2016-07-12 Thread Chamila De Alwis
I forgot to mention that this is seen in DAS 3.1.0 Beta.


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



On Tue, Jul 12, 2016 at 9:48 AM, Chamila De Alwis  wrote:

> Hi,
>
> If an already created dashboard is added through the registry, it cannot
> be deleted in the dashboard server. When clicked on the "Delete" button,
> there is no feedback, and there is no error in the logs to be seen.
>
> This issue is not there for dashboards created in the dashboard server.
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] APIM 2.0.0-SNAPSHOT Nightly build - July/12/2016

2016-07-12 Thread Abimaran Kugathasan
Hi All,


Please find today's nightly build pack for API Manager 2.0.0-SNAPSHOT [1]


[1] :
https://svn.wso2.org/repos/wso2/scratch/2016/apim-2.0.0/wso2am-2.0.0-SNAPSHOT-12-07-2016.zip

-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer

Email : abima...@wso2.com
Mobile : +94 773922820


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


Re: [Dev] [EMM] Why we are using 404 for "No Content" responses ?

2016-07-12 Thread Manuranga Perera
204 is used if the file exist but it is an empty file. But in this case no
such type exists at all.


On Tue, Jul 12, 2016 at 10:11 AM, Madhawa Gunasekara 
wrote:

> Hi All,
>
> Why can't we simply use 204 as status code for the No Content responses?
> because according to the spec all the 2xx status codes are successful.
> AFAIU We should use 204 for No Content responses.
>
> Thanks,
> Madhawa
>
> On Wed, Jun 15, 2016 at 7:40 PM, Manuranga Perera  wrote:
>
>> Seems like the bigger issue here is that resource collection is not being
>>  a path parameter.
>>
>> /devices/type=android -> not ideal, there is no good way to distinguish
>> non-existing types
>> /devices/android -> seems to be more REST like
>>
>> On Wed, Jun 15, 2016 at 5:17 AM, Joseph Fonseka  wrote:
>>
>>> Hi All
>>>
>>> In AM what we practice is that collection resource will return 200 Ok
>>> with an empty body ( empty array in JSON  ) if the collection or query
>>> result is empty.
>>>
>>> IMO the key is 200 status denote the sent result is valid and you use
>>> the empty body to convey the collection / query result is empty.
>>>
>>> For resources like /devices/{Id} will return 404 if the resource is not
>>> found.
>>>
>>> Regards
>>> Jo
>>>
>>>
>>> On Wed, Jun 15, 2016 at 12:26 PM, Chathura Dilan 
>>> wrote:
>>>
 ​Yes

 Take an API like /devices and if there are no records in it, return an
 empty array. In this case the collection there is empty but it does exist.
 So we cannot return 404 and use 200 instead.
 If it is an single resource like devices/{deviceId} and if it is not
 found return 404, because it does not exist.


 On Wed, Jun 15, 2016 at 11:42 AM, Ruwan Yatawara 
 wrote:

> However, as per the implementation, since what is drawn from
> '/devices' is a list of resources.. and not an individual device. I 
> believe
> a 200 ok with an empty set is acceptable.
>
>
> Thanks and Regards,
>
> Ruwan Yatawara
>
> Associate Technical Lead,
> WSO2 Inc.
>
> email : ruw...@wso2.com
> mobile : +94 77 9110413
> blog : http://ruwansrants.blogspot.com/
>   https://500px.com/ruwan_ace
> www: :http://wso2.com
>
>
> On Wed, Jun 15, 2016 at 11:26 AM, Ruwan Yatawara 
> wrote:
>
>> In the devices example that's used, it is my opinion that the device
>> that you are trying to locate is the resource, "/devices" is merely the
>> context. Therefore if a resource cannot be located a 404 no content is
>> acceptable. However, when looking at things from a AJAX request
>> perspective, this kind of scenario become tricky to handle.
>>
>> Even when I started on working on the UI stabilisation effort, i
>> thought 204 was the way to go, however upon further reading and looking 
>> at
>> things from aforementioned perspective, IMHO 404 seems the right response
>> to return when a resource is not found.
>>
>> Thanks and Regards,
>>
>> Ruwan Yatawara
>>
>> Associate Technical Lead,
>> WSO2 Inc.
>>
>> email : ruw...@wso2.com
>> mobile : +94 77 9110413
>> blog : http://ruwansrants.blogspot.com/
>>   https://500px.com/ruwan_ace
>> www: :http://wso2.com
>>
>>
>> On Wed, Jun 15, 2016 at 11:15 AM, Rasika Perera 
>> wrote:
>>
>>> ​Hi All,
>>> ​
>>>
>>>
 I think that even though it is a single resource or a collection it
 should not be handled differently. if there is no resource behind the 
 URI
 then it should be 404.
>>>
>>> ​-1. "/devices" is your resource in this case. and it is a
>>> *collection*.​
>>> ​ Query components are for retrieval of non-hierarchical data
>>> .  You should not use the query string to identify a *single*
>>> resource. "?type={platform}" is not a part of your resources hierarchy.​
>>> Hence returning 404 may convey that "/devices" is non-existant and 
>>> client
>>> should not try "/devices" on proceeding requests.
>>>
>>> ​Thanks,
>>> Rasika​
>>>
>>>
>>>
>>> On Wed, Jun 15, 2016 at 10:51 AM, Geeth Munasinghe 
>>> wrote:
>>>


 On Wed, Jun 15, 2016 at 10:11 AM, Ayyoob Hamza 
 wrote:

> I think that even though it is a single resource or a collection
> it should not be handled differently. if there is no resource behind 
> the
> URI then it should be 404.
>
 -1,
 AFAIK, it is an actual endpoint (URL) refers to a resource. (In
 case of "/devices?{query_params}",  "/devices" is the resource) It 
 does not
 matter that resource returns an output or not. Because resource can 
 return

[Dev] [DEV][DAS] Cannot delete dashboard added through registry

2016-07-12 Thread Chamila De Alwis
Hi,

If an already created dashboard is added through the registry, it cannot be
deleted in the dashboard server. When clicked on the "Delete" button, there
is no feedback, and there is no error in the logs to be seen.

This issue is not there for dashboards created in the dashboard server.

Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] Why we are using 404 for "No Content" responses ?

2016-07-12 Thread Madhawa Gunasekara
Hi All,

Why can't we simply use 204 as status code for the No Content responses?
because according to the spec all the 2xx status codes are successful.
AFAIU We should use 204 for No Content responses.

Thanks,
Madhawa

On Wed, Jun 15, 2016 at 7:40 PM, Manuranga Perera  wrote:

> Seems like the bigger issue here is that resource collection is not being
>  a path parameter.
>
> /devices/type=android -> not ideal, there is no good way to distinguish
> non-existing types
> /devices/android -> seems to be more REST like
>
> On Wed, Jun 15, 2016 at 5:17 AM, Joseph Fonseka  wrote:
>
>> Hi All
>>
>> In AM what we practice is that collection resource will return 200 Ok
>> with an empty body ( empty array in JSON  ) if the collection or query
>> result is empty.
>>
>> IMO the key is 200 status denote the sent result is valid and you use the
>> empty body to convey the collection / query result is empty.
>>
>> For resources like /devices/{Id} will return 404 if the resource is not
>> found.
>>
>> Regards
>> Jo
>>
>>
>> On Wed, Jun 15, 2016 at 12:26 PM, Chathura Dilan 
>> wrote:
>>
>>> ​Yes
>>>
>>> Take an API like /devices and if there are no records in it, return an
>>> empty array. In this case the collection there is empty but it does exist.
>>> So we cannot return 404 and use 200 instead.
>>> If it is an single resource like devices/{deviceId} and if it is not
>>> found return 404, because it does not exist.
>>>
>>>
>>> On Wed, Jun 15, 2016 at 11:42 AM, Ruwan Yatawara 
>>> wrote:
>>>
 However, as per the implementation, since what is drawn from '/devices'
 is a list of resources.. and not an individual device. I believe a 200 ok
 with an empty set is acceptable.


 Thanks and Regards,

 Ruwan Yatawara

 Associate Technical Lead,
 WSO2 Inc.

 email : ruw...@wso2.com
 mobile : +94 77 9110413
 blog : http://ruwansrants.blogspot.com/
   https://500px.com/ruwan_ace
 www: :http://wso2.com


 On Wed, Jun 15, 2016 at 11:26 AM, Ruwan Yatawara 
 wrote:

> In the devices example that's used, it is my opinion that the device
> that you are trying to locate is the resource, "/devices" is merely the
> context. Therefore if a resource cannot be located a 404 no content is
> acceptable. However, when looking at things from a AJAX request
> perspective, this kind of scenario become tricky to handle.
>
> Even when I started on working on the UI stabilisation effort, i
> thought 204 was the way to go, however upon further reading and looking at
> things from aforementioned perspective, IMHO 404 seems the right response
> to return when a resource is not found.
>
> Thanks and Regards,
>
> Ruwan Yatawara
>
> Associate Technical Lead,
> WSO2 Inc.
>
> email : ruw...@wso2.com
> mobile : +94 77 9110413
> blog : http://ruwansrants.blogspot.com/
>   https://500px.com/ruwan_ace
> www: :http://wso2.com
>
>
> On Wed, Jun 15, 2016 at 11:15 AM, Rasika Perera 
> wrote:
>
>> ​Hi All,
>> ​
>>
>>
>>> I think that even though it is a single resource or a collection it
>>> should not be handled differently. if there is no resource behind the 
>>> URI
>>> then it should be 404.
>>
>> ​-1. "/devices" is your resource in this case. and it is a
>> *collection*.​
>> ​ Query components are for retrieval of non-hierarchical data
>> .  You should not use the query string to identify a *single*
>> resource. "?type={platform}" is not a part of your resources hierarchy.​
>> Hence returning 404 may convey that "/devices" is non-existant and client
>> should not try "/devices" on proceeding requests.
>>
>> ​Thanks,
>> Rasika​
>>
>>
>>
>> On Wed, Jun 15, 2016 at 10:51 AM, Geeth Munasinghe 
>> wrote:
>>
>>>
>>>
>>> On Wed, Jun 15, 2016 at 10:11 AM, Ayyoob Hamza 
>>> wrote:
>>>
 I think that even though it is a single resource or a collection it
 should not be handled differently. if there is no resource behind the 
 URI
 then it should be 404.

>>> -1,
>>> AFAIK, it is an actual endpoint (URL) refers to a resource. (In case
>>> of "/devices?{query_params}",  "/devices" is the resource) It does not
>>> matter that resource returns an output or not. Because resource can 
>>> return
>>> an empty body for a request which in my opinion a valid response.
>>> Furthermore returning a empty body does not mean that resource is not 
>>> found
>>> (404) (in case of /devices, it is there) or client has made an error 
>>> with
>>> the request. Empty body means that no records available in database
>>> matching the filtering 

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-07-12 Thread Tharindu Edirisinghe
Hi Asantha,

Thanks for the update. I'm out of the country this week and won't be
available. Let's have a hangout next week and discuss the final steps of
the project.

Along with find bugs, if you haven't enabled findsecuritybugs plugin, you
can refer [1] and check if any security weaknesses are there in the code.

[1]
http://tharindue.blogspot.in/2016/06/static-code-analysis-for-java-using.html

Thanks,
TharinduE

On Tue, Jul 12, 2016 at 5:32 PM, Asantha Thilina 
wrote:

> Hi Tharindu,
> I have clean up the code according to find bug plugin and also for
> rollback purposes since it only concern when modifying or adding new user
> or role to user store i have manually added rollback option where if error
> occured all the changes done to db in code segment will be discard from db
> i updated the my repository with recent changes[1] now i preparing the
> documentation and test scripts.
>
> [1] https://github.com/asanthamax/mongodbuserstore
>
> Thanks,
> Asantha
>
> On Mon, Jul 4, 2016 at 2:54 AM, Asantha Thilina 
> wrote:
>
>> Hi Tharindu,
>>
>> thanks for the reply ,sure i will try out that and update the progress as
>> soon as possible
>>
>> Thanks,
>> Asantha
>>
>> On Mon, Jul 4, 2016 at 1:38 AM, Tharindu Edirisinghe 
>> wrote:
>>
>>> Hi Asantha,
>>>
>>> While you are adding the roll back transaction capability, also look
>>> into testing a high load and try to generate database level exceptions.
>>> Once thing you can try out is writing a client for performing userstore
>>> manager operations such as add user, add role, login, logout etc. and play
>>> it with a high concurrency using Jmeter. Then we should be able to get a
>>> better understanding of transaction management with respective to MongoDB.
>>>
>>> Regards,
>>> TharinduE
>>>
>>> On Mon, Jul 4, 2016 at 10:57 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi all,

 i will be trying for implement roll back transactions capability in
 MongoDB to add to MongoDB User Store[2] i found that MongoDB use a concept
 call two phase commit[1] i trying to implement that inside my code but it
 seems to be little complex and i think it may arise performance issue when
 adding high load of dataset at once is there any other better method i can
 achieve this task? any advices would be grateful

 [1] https://docs.mongodb.com/manual/tutorial/perform-two-phase-commits/
 [2] https://github.com/asanthamax/mongodbuserstore

 Thanks,
 Asantha

 On Wed, Jun 29, 2016 at 2:55 PM, Asantha Thilina <
 asanthathil...@gmail.com> wrote:

> Hi Tharindu,
>
> I have finished and added delete functions also to users ,roles and
> user claim deletions to my repo[1]
>
> [1] https://github.com/asanthamax/mongodbuserstore
>
> Thanks,
> Asantha
>
> On Mon, Jun 27, 2016 at 4:18 AM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi aiya,
>>
>> i have small problem in my research, i will be developing convolution
>> neural network using deeplearning4j to detect frauds i have discovered 
>> some
>> fraud patterns which can use to train my network but the problem i having
>> is,are there any possibility to add condition driven capability to 
>> dataset
>> to train model
>>
>> Thanks,
>> Asantha
>>
>> On Wed, Jun 22, 2016 at 9:35 PM, Tharindu Edirisinghe <
>> tharin...@wso2.com> wrote:
>>
>>> Good work Asantha... Meanwhile let's look at getting your research
>>> work published as well. I will provide feedback for the work so far in
>>> couple of days time. I have also completed the Mid Review based on your
>>> current work where you are already ahead of schedule.
>>>
>>> Regards,
>>> TharinduE
>>>
>>> On Wed, Jun 22, 2016 at 9:41 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi Tharindu,

 following is the summary of operations i have implemented up to now
 and yet to implement

 1. Add new MongoDB User Store - done both case sensitive and
 intensensitive
 2. Add new users to MongoDB user store - done both case sensitive
 and intensensitive
 3. Add new roles to MongoDB user store - done both case sensitive
 and intensensitive
 4. Search users and roles - done both case sensitive and
 intensensitive
 5. Assign roles to mongodb user store users - done both case
 sensitive and intensensitive
 6. Assign users to mongodb user store roles - done both case
 sensitive and intensensitive
 7. Edit claim values of user profiles  - done both case sensitive
 and intensensitive
 for those implemented user operations i have added selenium scripts
 also to my repo[1] and also i have prepared user 

Re: [Dev] Misleading Aggregate Mediator Description

2016-07-12 Thread Praneesha Chandrasiri
hi Isuru,

Could you please review the above description given by Rajeevan, so that I
can work on [1] to add it to ESB docs.

[1] https://wso2.org/jira/browse/DOCUMENTATION-3539

On Wed, Jun 29, 2016 at 7:46 AM, Vimalanathan Rajeevan 
wrote:

> Thanks Isuru for your response.
>
> What about the description below?
>
> The *Aggregate mediator* implements the Aggregator enterprise integration
> pattern 
> and aggregates the *response messages* for messages that were split by
> the Clone  or Iterate
>  mediator.
>
> Does this explain the full functionality of Aggregate mediator?
> Appreciate your response on this.
>
> Thanks,
> Rajeevan
>
> On Tue, Jun 28, 2016 at 1:48 AM, Isuru Udana  wrote:
>
>> Hi Rajeevan,
>>
>> On Tue, Jun 28, 2016 at 10:11 AM, Vimalanathan Rajeevan <
>> rajeev...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> The description[1] is as below,
>>>
>>> The *Aggregate mediator* implements the Aggregator enterprise
>>> integration pattern
>>>  and
>>> aggregates the *response messages* for messages that were split by the
>>> Clone  or Iterate
>>>  mediator and
>>> sent using the Send 
>>> mediator.
>>>
>>> Doesn't above paragraph mean that Aggregate mediator will aggregate
>>> messages and send that using a Send mediator even if we don't explicitly
>>> call Send mediator?
>>> Also as I believe there are some places we don't even use a Send
>>> mediator when there is an Aggregate mediator.
>>> Appreciate your thoughts on this.
>>>
>> Thanks for pointing this, It seems above statement is confusing. And as
>> you mentioned there are situations where we are not using the send mediator.
>>
>> We need a better description which explains the behaviour.
>>
>>
>>> [1] https://docs.wso2.com/display/ESB490/Aggregate+Mediator
>>>
>>> Thanks,
>>> Rajeevan
>>> --
>>> Vimalanathan Rajeevan
>>> Software Engineer,
>>> WSO2, Inc. *http://wso2.com* 
>>> Lean.Enterprise.Middleware
>>>
>>> Mobile:
>>> *+94 773090875 <%2B94%20773090875>*
>>> LinkedIn:
>>> *https://www.linkedin.com/in/RajeevanVimalanathan
>>> *
>>>
>>
>>
>>
>> --
>> *Isuru Udana*
>> Technical Lead
>> WSO2 Inc.; http://wso2.com
>> email: isu...@wso2.com cell: +94 77 3791887
>> blog: http://mytecheye.blogspot.com/
>>
>
>
>
> --
> Vimalanathan Rajeevan
> Software Engineer,
> WSO2, Inc. *http://wso2.com* 
> Lean.Enterprise.Middleware
>
> Mobile:
> *+94 773090875 <%2B94%20773090875>*
> LinkedIn:
> *https://www.linkedin.com/in/RajeevanVimalanathan
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks & Best Regards,
*Praneesha Chandrasiri*
*Technical Writer*
*WSO2 Inc. *
*Mobile: +(94) 718156888*
*E-mail: pranee...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 MSF4J 2.0.0 RC1

2016-07-12 Thread Thusitha Thilina Dayaratne
Hi Devs,

We are cancelling this vote. We will do a rc2 and start a new vote again
soon.

Thanks
Thusitha

On Sat, Jul 9, 2016 at 8:13 AM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Devs,
>
> This is the 1st Release Candidate of WSO2 MSF4J(Microservices Framework
> for Java) 2.0.0.
>
> Please download, test the framework and vote. Vote will be open for 72
> hours or as needed.
> Refer to github readmes for guides.
>
> *​Source and binary distribution files:*
> https://github.com/wso2/msf4j/releases/tag/v2.0.0-rc1
>
> *Maven staging repository:*
> http://maven.wso2.org/nexus/content/repositories/orgwso2msf4j-1000/
>
> *The tag to be voted upon:*
> https://github.com/wso2/msf4j/tree/v2.0.0-rc1
>
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Thank you,
> AS/Carbon Team
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [C5] [UUF] Issue in throwing CarbonDeploymentException

2016-07-12 Thread Prabushi Samarakoon
Hi all,

We are trying to deploy an app using a zip artifact in carbon-uuf. We throw
a CarbonDeploymentException, when we find a faulty/corrupted artifact or
meet an error at zip file manipulation. When we tried to throw a
CarbonDeploymentException at deploy method, which is implemented from
org.wso2.carbon.deployment.engine.Deployer interface,
org.wso2.carbon.deployment.engine throws a NullPointerException as follows.

Exception in thread "Timer-0" java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
at
java.util.concurrent.ConcurrentHashMap.containsKey(ConcurrentHashMap.java:964)
at
org.wso2.carbon.deployment.engine.internal.DeploymentEngine.removeFromDeployedArtifacts(DeploymentEngine.java:401)
at
org.wso2.carbon.deployment.engine.internal.DeploymentEngine.addToFaultyArtifacts(DeploymentEngine.java:359)
at
org.wso2.carbon.deployment.engine.internal.DeploymentEngine.lambda$deployArtifacts$0(DeploymentEngine.java:281)
at java.util.ArrayList.forEach(ArrayList.java:1249)
at
org.wso2.carbon.deployment.engine.internal.DeploymentEngine.deployArtifacts(DeploymentEngine.java:257)
at
org.wso2.carbon.deployment.engine.internal.RepositoryScanner.sweep(RepositoryScanner.java:110)
at
org.wso2.carbon.deployment.engine.internal.RepositoryScanner.scan(RepositoryScanner.java:68)
at
org.wso2.carbon.deployment.engine.internal.DeploymentEngine.start(DeploymentEngine.java:106)
at
org.wso2.carbon.deployment.engine.internal.DeploymentEngineListenerComponent.onAllRequiredCapabilitiesAvailable(DeploymentEngineListenerComponent.java:182)
at
org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.lambda$notifySatisfiableComponents$27(StartupComponentManager.java:237)
at java.util.ArrayList.forEach(ArrayList.java:1249)
at
org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.notifySatisfiableComponents(StartupComponentManager.java:225)
at
org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver$1.run(StartupOrderResolver.java:186)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)


After
that org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver
keeps on waiting at the following warning.

[2016-07-12 15:55:46,338]  WARN
{org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver} -
Startup component carbon-transport-mgt from
bundle(org.wso2.carbon.core:5.1.0) is in the pending state until Capability
org.wso2.carbon.deployment.engine.DeploymentService from
bundle(org.wso2.carbon.deployment.engine:5.0.0) is available as an OSGi
service. Refer the Startup Order Resolver documentation for information.


It seems that, if there is a corrupted app in app deploying directory, the
server won't allow to deploy the other apps as well. Is there a way to
overcome this issue?

Thanks and Regards.
-- 
*Prabushi Samarakoon*
Software Engineer
Mobile: +94715434580
Email: prabus...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Web Context path issue

2016-07-12 Thread Chamin Dias
Thanks for the reply. We will update the JIRA with the relevant information.

On Tue, Jul 12, 2016 at 5:20 PM, Kishanthan Thangarajah  wrote:

> WebContextRoot is only applicable to carbon webapp. Other webapps (store
> and publisher in this case) will still be deployed under their respective
> context. The issue here is with the log messages printed on to the console
> which still has the web context root appended to those additional contexts
> urls. That is where the fix would be.
>
> On Tue, Jul 12, 2016 at 4:24 PM, Chamin Dias  wrote:
>
>> Please refer : https://wso2.org/jira/browse/CARBON-15987 to track the
>> fixes.
>>
>> Thanks
>>
>> On Tue, Jul 12, 2016 at 3:39 PM, Chamin Dias  wrote:
>>
>>> Hi,
>>>
>>> Scenario :
>>>
>>> 1) Change the  in carbon.xml as "/apim" (this is the
>>> only change)
>>>
>>> 2) Start the servers and urls can be visible as below.
>>> Management console url- https://localhost:9443/apim/carbon
>>> Publisher url- https://localhost:9443/apim/publisher
>>> Store url-https://localhost:9443/apim/store
>>>
>>> 3) When we tried to access the publisher and store urls, still it's
>>> redirected to the management console (i.e :
>>> https://localhost:9443/apim/carbon)
>>>
>>>
>>> We have tested the same scenario for the previous APIM versions
>>> (1.10,1.9.1,1.9.0,1.8.0,1.7.0,1.6.0 and 1.5.0) and noticed the same
>>> behaviour. Do we need some other configuration in addition to modifying
>>>  in carbon.xml? If not, we wonder if this is a known fact.
>>>
>>> Tested the scenario with App manager 1.1.0 as well. Observed the same
>>> behaviour.
>>>
>>> Thanks.
>>>
>>> On Tue, Jul 12, 2016 at 11:47 AM, Chamin Dias  wrote:
>>>
 Hi,

 We were working on APIMANAGER-5043
  issue (for upcoming
 APIM 2.0.0 release). The issue was reproduced. We did a background search
 and tried the workaround suggested in the Dev mail thread : *[Dev] How
 to deploy Jaggery application as web root context*

 Unfortunately we were not able to solve the issue by following the
 workaround. Any help will be appreciated since we are about the release
 APIM 2.0.0 soon.

 Thanks.

 --
 Chamin Dias
 *Software Engineer*
 Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
 Email : cham...@wso2.com
 Blog : https://chamindias.wordpress.com/

>>>
>>>
>>>
>>> --
>>> Chamin Dias
>>> *Software Engineer*
>>> Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
>>> Email : cham...@wso2.com
>>> Blog : https://chamindias.wordpress.com/
>>>
>>
>>
>>
>> --
>> Chamin Dias
>> *Software Engineer*
>> Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
>> Email : cham...@wso2.com
>> Blog : https://chamindias.wordpress.com/
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
Chamin Dias
*Software Engineer*
Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
Email : cham...@wso2.com
Blog : https://chamindias.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-07-12 Thread Asantha Thilina
Hi Tharindu,
I have clean up the code according to find bug plugin and also for rollback
purposes since it only concern when modifying or adding new user or role to
user store i have manually added rollback option where if error occured all
the changes done to db in code segment will be discard from db i updated
the my repository with recent changes[1] now i preparing the documentation
and test scripts.

[1] https://github.com/asanthamax/mongodbuserstore

Thanks,
Asantha

On Mon, Jul 4, 2016 at 2:54 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> thanks for the reply ,sure i will try out that and update the progress as
> soon as possible
>
> Thanks,
> Asantha
>
> On Mon, Jul 4, 2016 at 1:38 AM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Asantha,
>>
>> While you are adding the roll back transaction capability, also look into
>> testing a high load and try to generate database level exceptions. Once
>> thing you can try out is writing a client for performing userstore manager
>> operations such as add user, add role, login, logout etc. and play it with
>> a high concurrency using Jmeter. Then we should be able to get a better
>> understanding of transaction management with respective to MongoDB.
>>
>> Regards,
>> TharinduE
>>
>> On Mon, Jul 4, 2016 at 10:57 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> i will be trying for implement roll back transactions capability in
>>> MongoDB to add to MongoDB User Store[2] i found that MongoDB use a concept
>>> call two phase commit[1] i trying to implement that inside my code but it
>>> seems to be little complex and i think it may arise performance issue when
>>> adding high load of dataset at once is there any other better method i can
>>> achieve this task? any advices would be grateful
>>>
>>> [1] https://docs.mongodb.com/manual/tutorial/perform-two-phase-commits/
>>> [2] https://github.com/asanthamax/mongodbuserstore
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Wed, Jun 29, 2016 at 2:55 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi Tharindu,

 I have finished and added delete functions also to users ,roles and
 user claim deletions to my repo[1]

 [1] https://github.com/asanthamax/mongodbuserstore

 Thanks,
 Asantha

 On Mon, Jun 27, 2016 at 4:18 AM, Asantha Thilina <
 asanthathil...@gmail.com> wrote:

> Hi aiya,
>
> i have small problem in my research, i will be developing convolution
> neural network using deeplearning4j to detect frauds i have discovered 
> some
> fraud patterns which can use to train my network but the problem i having
> is,are there any possibility to add condition driven capability to dataset
> to train model
>
> Thanks,
> Asantha
>
> On Wed, Jun 22, 2016 at 9:35 PM, Tharindu Edirisinghe <
> tharin...@wso2.com> wrote:
>
>> Good work Asantha... Meanwhile let's look at getting your research
>> work published as well. I will provide feedback for the work so far in
>> couple of days time. I have also completed the Mid Review based on your
>> current work where you are already ahead of schedule.
>>
>> Regards,
>> TharinduE
>>
>> On Wed, Jun 22, 2016 at 9:41 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> following is the summary of operations i have implemented up to now
>>> and yet to implement
>>>
>>> 1. Add new MongoDB User Store - done both case sensitive and
>>> intensensitive
>>> 2. Add new users to MongoDB user store - done both case sensitive
>>> and intensensitive
>>> 3. Add new roles to MongoDB user store - done both case sensitive
>>> and intensensitive
>>> 4. Search users and roles - done both case sensitive and
>>> intensensitive
>>> 5. Assign roles to mongodb user store users - done both case
>>> sensitive and intensensitive
>>> 6. Assign users to mongodb user store roles - done both case
>>> sensitive and intensensitive
>>> 7. Edit claim values of user profiles  - done both case sensitive
>>> and intensensitive
>>> for those implemented user operations i have added selenium scripts
>>> also to my repo[1] and also i have prepared user guide[2] and 
>>> administrator
>>> guide[3] also and also i have updated my blog[4] with all my tasks what 
>>> i
>>> have done and following are the tasks yet to complete
>>>
>>> 1. implement delete operations
>>> 2. implement new profiles adding
>>> 3. check for injections possibilities and improve the security of
>>> all the functions
>>> 4. prepare full test scripts for all the functions
>>> 5. prepare developer guide and database architecture diagrams
>>>
>>> expect your feedback
>>>
>>> [1]  https://github.com/asanthamax/mongodbuserstore
>>> [2]
>>> 

Re: [Dev] Web Context path issue

2016-07-12 Thread Kishanthan Thangarajah
WebContextRoot is only applicable to carbon webapp. Other webapps (store
and publisher in this case) will still be deployed under their respective
context. The issue here is with the log messages printed on to the console
which still has the web context root appended to those additional contexts
urls. That is where the fix would be.

On Tue, Jul 12, 2016 at 4:24 PM, Chamin Dias  wrote:

> Please refer : https://wso2.org/jira/browse/CARBON-15987 to track the
> fixes.
>
> Thanks
>
> On Tue, Jul 12, 2016 at 3:39 PM, Chamin Dias  wrote:
>
>> Hi,
>>
>> Scenario :
>>
>> 1) Change the  in carbon.xml as "/apim" (this is the only
>> change)
>>
>> 2) Start the servers and urls can be visible as below.
>> Management console url- https://localhost:9443/apim/carbon
>> Publisher url- https://localhost:9443/apim/publisher
>> Store url-https://localhost:9443/apim/store
>>
>> 3) When we tried to access the publisher and store urls, still it's
>> redirected to the management console (i.e :
>> https://localhost:9443/apim/carbon)
>>
>>
>> We have tested the same scenario for the previous APIM versions
>> (1.10,1.9.1,1.9.0,1.8.0,1.7.0,1.6.0 and 1.5.0) and noticed the same
>> behaviour. Do we need some other configuration in addition to modifying
>>  in carbon.xml? If not, we wonder if this is a known fact.
>>
>> Tested the scenario with App manager 1.1.0 as well. Observed the same
>> behaviour.
>>
>> Thanks.
>>
>> On Tue, Jul 12, 2016 at 11:47 AM, Chamin Dias  wrote:
>>
>>> Hi,
>>>
>>> We were working on APIMANAGER-5043
>>>  issue (for upcoming APIM
>>> 2.0.0 release). The issue was reproduced. We did a background search and
>>> tried the workaround suggested in the Dev mail thread : *[Dev] How to
>>> deploy Jaggery application as web root context*
>>>
>>> Unfortunately we were not able to solve the issue by following the
>>> workaround. Any help will be appreciated since we are about the release
>>> APIM 2.0.0 soon.
>>>
>>> Thanks.
>>>
>>> --
>>> Chamin Dias
>>> *Software Engineer*
>>> Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
>>> Email : cham...@wso2.com
>>> Blog : https://chamindias.wordpress.com/
>>>
>>
>>
>>
>> --
>> Chamin Dias
>> *Software Engineer*
>> Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
>> Email : cham...@wso2.com
>> Blog : https://chamindias.wordpress.com/
>>
>
>
>
> --
> Chamin Dias
> *Software Engineer*
> Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
> Email : cham...@wso2.com
> Blog : https://chamindias.wordpress.com/
>



-- 
*Kishanthan Thangarajah*
Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] SDK Generation using Swagger Code Generator

2016-07-12 Thread Abimaran Kugathasan
Hi All,


We will be adding SDKs for each APIs subscribed through an OAuth
Application in the Application page.

On Tue, Jul 12, 2016 at 8:56 AM, Joseph Fonseka  wrote:

> IMO combining API definition can lead to many conflicts not just the
> resources eg. Definitions , Parameters. Thus +1 for suggested approach
> which is a better solution then combining definitions.
>
> Regards
> Jo
>
> On Tue, Jul 12, 2016 at 7:58 AM, Abimaran Kugathasan 
> wrote:
>
>> Hi All,
>>
>> In API Manager 2.0, we are supporting generating SDK of APIs through
>> Swagger. Currently, we are combining APIs a user has subscribed through an
>> OAuth application and generates one SDK for all his APIs.
>>
>> Problem with this approach is, we are combining subscribed APIs together
>> and generate the SDK, and the generated SDK has one Java class (in case of
>> JAVA SDK) to represent the subscribed APIs. And, for each resource we
>> defined in the APIs, Swagger generates corresponding method with that
>> resource name. If we have two resource with same name in two different
>> APIs, then there will be only one method and it's not consistent.
>>
>>
>> As I checked, we can provide one Swagger json file to Swagger Generator
>> for generating SDK. What will be the best approach to generate SDK for
>> subscribed APIs.
>>
>> Shall we generate SDK for each subscribed API rather than for each Oauth
>> Application? Because there are lesser chances for requirement to have one
>> SDK for all the subscribed APIs
>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820
>>
>> 
>> 
>>   
>> 
>>
>>
>
>
> --
>
> --
> *Joseph Fonseka*
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 772 512 430
> skype: jpfonseka
>
> * *
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer

Email : abima...@wso2.com
Mobile : +94 773922820


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


[Dev] [DEV] WSO2 Enterprise Store 2.1.0 ALPHA 2 Released!

2016-07-12 Thread Sameera Medagammaddegedara
Hi Everyone,

This is the alpha-2 of the WSO2 Enterprise Store version 2.1.0, which will
create a marketplace for your enterprise assets. You can download the alpha
at [1]. The alpha-2 specifically contains the following new
features,improvements and bug fixes.

New Feature

   - [STORE-1393 ] - [STORE]
   Taxonomy Feature

Improvement

   - [STORE-1291 ] - [PUBLISHER]
   Show a message after updating tags
   - [STORE-1351 ] -
   [STORE][Social Component] Give edit option to the user reviews
   - [STORE-1377 ] - Adding search
   option pop over to ES

Bug

   - [STORE-596 ] - Error when
   viewing a service created via custom extension.
   - [STORE-597 ] - Make the
   thumbnail and image storage compatible with oracle DB
   - [STORE-660 ] - Admin role is
   hard-coded in publisher and store
   - [STORE-700 ] - Additional
   duplicate item is shown when editing asset with 'option' field
   - [STORE-738 ] - Store
   Back-Office - UI(Margin) issue of Browse button used for Thumbnail and
   Banner fields
   - [STORE-873 ] - Search box
   should have place holders.
   - [STORE-967 ] - Store - Sorting
   Issue when filtered by tags
   - [STORE-978 ] - [Keystore]When
   a different keystore with IS as an external IDP not allowing to login to
   publisher/store
   - [STORE-1029 ] - Access
   deleted asset via a Bookmarked URL, get 500 error. From there if we click
   Go to Home, it directs to Store
   - [STORE-1043 ] - When there
   are lot of fields for an asset type, when searching get pagination exception
   - [STORE-1077 ] - Asset
   subscription process can not be customized globally
   - [STORE-1090 ] - The users who
   doesnt have publisher role can visit the Asset create page via a boomarked
   URL.
   - [STORE-1097 ] - Bookmarked
   assets are displayed as non bookmarked assets when they are searched from
   store basic search
   - [STORE-1151 ] - ES
   /apis/asset/{id}/{action} API returns exception when incorrect payload is
   sent
   - [STORE-1217 ] - Could not
   unpublish all assets from publisher
   - [STORE-1259 ] - Bookmarking
   does not work on Safari
   - [STORE-1261 ] -
   [STORE][PUBLISHER] Add a caret next to the name of the login/logout button
   - [STORE-1263 ] - Change the
   color on dropdown
   - [STORE-1267 ] - [STORE] Tag
   cloud visible in the top assets page
   - [STORE-1268 ] - [PUBLISHER]
   The delete and lifecycle view contains an unformatted date time value
   - [STORE-1269 ] - [PUBLISHER]
   Remove description field from the information blurb in the details page
   - [STORE-1270 ] - [PUBLISHER]
   Add a breadcrumb to the asset pages
   - [STORE-1272 ] - Cannot add
   multiple tags when creating assets
   - [STORE-1273 ] - [PUBLISHER]
   Make notifications consistent
   - [STORE-1275 ] - Bookmark
   related issues
   - [STORE-1276 ] - SSO sign in
   error styling missing
   - [STORE-1277 ] - Responsive
   issues in ES Store and Publisher
   - [STORE-1279 ] - Change
   default asset icon
   - [STORE-1280 ] - Fix sort icon
   (AZ) in both store and publisher
   - [STORE-1283 ] - ES footer
   needs more contrast between background and the letters
   - [STORE-1286 ] - Getting
   Unable to locate tenant configurations Error when calling http url
   - [STORE-1287 ] - Make SSO
   sign-in page stylings identical with basic-auth sign-in page
   - [STORE-1288 ] - Rectify the
   asset creation message
   - [STORE-1289 ] - Add required
   * mark to new user 

Re: [Dev] "Error 403 - Forbidden" when session expires in admin console

2016-07-12 Thread Madhawa Gunasekara
Hi Ayoma,

I found this same error after restarting the server. Please find the steps
to reproduce the issue.

1. Start the server,
2. Go to Management console and do loging and then logout.
3. Don't close the browser window.
4. Restart the server.
5. Open the management console login page in new browser window.
6. then try to login to the management console by using previous browser
window.


Thanks,
Madhawa



On Mon, Jul 11, 2016 at 2:38 PM, Rajith Roshan  wrote:

> Hi,
> The file upload works fine, this happens only when session expires. This
> is only two scenarios I have mentioned above. There can be other scenarios
> as well this might happen due to session timeout.
>
> Thanks!
> Rajith
>
> On Mon, Jul 11, 2016 at 1:14 PM, Ayoma Wijethunga  wrote:
>
>> Hi Rajith,
>>
>> "org.owasp.csrfguard.ValidateWhenNoSessionExists" is only relevant to
>> session timeout scenario Hasintha mentioned.
>>
>> Regarding "/fileupload/resource", please have a look at "Integration
>> Checklist", last item from [1].
>>
>> Let's have a look at "/carbon/generic" URL separately and see what is
>> wrong.
>>
>> [1]
>> https://docs.google.com/document/d/1LV23-hD7q1BjsruUdvM5dO4j7pIuUpzR_EYLmdfOo6k/edit#heading=h.xqvmgi6xtm6f
>>
>> Best Regards,
>> Ayoma.
>>
>> On Sat, Jul 9, 2016 at 3:05 PM, Rajith Roshan  wrote:
>>
>>> Hi Ayoma,
>>>
>>> We are facing this issue when uploading registry resource and uploading
>>> rxts when session gets expired. We have changed the "
>>> org.owasp.csrfguard.ValidateWhenNoSessionExists" property to false. But
>>> it still gives the following error messages [1],[2]. After reloading the
>>> page then issue does not happens.
>>>
>>> [1] - WARN {org.owasp.csrfguard.log.JavaLogger} -  potential cross-site
>>> request forgery (CSRF) attack thwarted (user:, ip:192.168.8.100,
>>> method:POST, uri:/carbon/generic/save_artifact_ajaxprocessor.jsp,
>>> error:request token does not match session token)
>>> [2] - WARN {org.owasp.csrfguard.log.JavaLogger} -  potential cross-site
>>> request forgery (CSRF) attack thwarted (user:, ip:192.168.8.100,
>>> method:POST, uri:/fileupload/resource, error:request token does not match
>>> session token)
>>>
>>>
>>> On Fri, Jul 8, 2016 at 8:03 PM, Ayoma Wijethunga  wrote:
>>>
 Hi Team,

 We identified that disabling "ValidateWhenNoSessionExists" property
 similar to following can resolve original session-timeout issue raised by
 Hasintha.

 org.owasp.csrfguard.ValidateWhenNoSessionExists = false


 Please add below lines in product "distribution" pom file to correct
 this behavior. This was further updated in [1] and [2] (Integration
 Checklist).

 
>
> > file="target/wso2carbon-core-${carbon.kernel.version}/repository/conf/security/Owasp.CsrfGuard.Carbon.properties"
>> token="org.owasp.csrfguard.ValidateWhenNoSessionExists = true"
>> value="org.owasp.csrfguard.ValidateWhenNoSessionExists = false"/>
>
>
 [1]
 https://docs.google.com/document/d/1LV23-hD7q1BjsruUdvM5dO4j7pIuUpzR_EYLmdfOo6k/edit
 [2]
 https://docs.google.com/document/d/1A1T-t6IjIaxunjlSyjsGuKSC-x9xl3kilNCTpZVy-EM/edit#

 Thank you,
 Ayoma.

 On Fri, Jul 8, 2016 at 6:35 PM, Dulanja Liyanage 
 wrote:

>
>
> On Thu, Jul 7, 2016 at 4:53 PM, Ayoma Wijethunga 
> wrote:
>
>> Hi All,
>>
>> Original issue reported by Hasintha is relevant to how we handle
>> session timeout conditions with CSRFGuard filter. We are working on this
>> and will update with a resolution.
>>
>
> The reason for this behavior is there's no session-existence check
> prior to the form POST. Before CSRFGuard this was not a problem, because,
> upon a failure due to session timeout one of the following would have
> happened:
>
>1. in the case of an ajaxprocessor - Request would be propagated
>to the respective admin service, and upon its session non-existence
>exception, will be redirected to the login page.
>2. in the case of a non-ajaxprocessor - CarbonSecuredHttpContext
>will redirect to the login page before hitting the actual jsp/servlet.
>
> Since CSRFGuard is a filter, it intercepts before either of the above
> happen and sends a 403 forbidden - because that's what it's supposed to 
> do.
>
> There's a platform level javascript function called
> sessionAwareFunction (in main.js) that can be used for this. Registry
> Browser uses that. We have to send the actual operation we want to do as a
> callback function to sessionAwareFunction. It will initially do a session
> validity check via /carbon/admin/jsp/session-validate.jsp and then execute
> what we want to do.
>
> We tried to come up with a centralized solution for this, but failed.
> Therefore, this need 

Re: [Dev] [WSO2 IS] Travelocity.com doesnt get deployed on Tomcat 8.0.x

2016-07-12 Thread Nadeesha Gamage
Thanks Lakshman, I think we should provide a note on this in the
documentation.

On Tue, Jul 12, 2016 at 4:28 PM, Lakshman Udayakantha 
wrote:

> I could reproduce your issue in windows environment. It seems like tomcat
> 8.0.x, needs to specify the root as slash when specifying file paths in
> java classes which is not done in [1]. After specifying path as /
> WEB-INF/classes/wso2carbon.jks and build the war and putting in tomcat
> 8.0.x in windows deployed without any issue.
>
> [1]
> https://github.com/wso2/product-is/blob/master/modules/samples/sso/sso-agent-sample/src/main/java/org/wso2/sample/is/sso/agent/SampleContextEventListener.java#L52
>
> Thanks
>
> On Tue, Jul 12, 2016 at 2:58 PM, Nadeesha Gamage 
> wrote:
>
>> Done
>>
>> On Tue, Jul 12, 2016 at 2:55 PM, Harsha Thirimanna 
>> wrote:
>>
>>> Please update these details to the above ticket for further reference.
>>>
>>>
>>> *Harsha Thirimanna*
>>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>>> *twitter: **http://twitter.com/ *
>>> *harshathirimannlinked-in: **http:
>>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Tue, Jul 12, 2016 at 2:45 PM, Nadeesha Gamage 
>>> wrote:
>>>
 As per the offline chat with Lakshman I have tested this on a fresh
 pack of Tomcat 8.0.9 and it still doesnt work, but it works on Tomcat 8.5.3

 On Tue, Jul 12, 2016 at 12:17 PM, Harsha Thirimanna 
 wrote:

> I also had tested this in modified one, sorry. I think Lakshman is
> correct. Please send your logs and web app as well.​
>
>
> *Harsha Thirimanna*
> Associate Tech Lead; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Tue, Jul 12, 2016 at 12:05 PM, Lakshman Udayakantha <
> lakshm...@wso2.com> wrote:
>
>> Anyway what are the issues? post the catalina.out and localhost*.log
>> files.
>>
>> On Tue, Jul 12, 2016 at 12:00 PM, Harsha Thirimanna > > wrote:
>>
>>> I think there are some issues. I could see that. We need to look in
>>> to that.
>>>
>>>
>>> *Harsha Thirimanna*
>>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>>> *twitter: **http://twitter.com/ *
>>> *harshathirimannlinked-in: **http:
>>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Tue, Jul 12, 2016 at 11:47 AM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
 Hi Nadeesha,

 I didn't get any SEVERE logs while deploying travelocity app on
 tomcat 8.0.x. Could you please post the errors in localhost*.log file 
 for
 more information.

 Thanks

 On Tue, Jul 12, 2016 at 11:17 AM, Omindu Rathnaweera <
 omi...@wso2.com> wrote:

> Hi Nadeesha,
>
> I don't think we have tested travelocity with tomcat 8. Created
> [1] to track this issue.
>
> [1] - https://wso2.org/jira/browse/IDENTITY-4800
>
> Regards,
> Omindu.
>
> On Tue, Jul 12, 2016 at 10:39 AM, Nadeesha Gamage <
> nadee...@wso2.com> wrote:
>
>> Hi Devs,
>> I have checked-out the travelocity.com sample from the following
>> link [1], build and deployed it on Tomcat 8.0.x and I get the 
>> following
>> error.
>>
>> 12-Jul-2016 10:32:26.557 INFO [localhost-startStop-3]
>> org.apache.catalina.startup.HostConfig.deployWAR Deploying web 
>> application
>> archive D:\Software
>> Installed\apache-tomcat-8.0.9\webapps\travelocity.com.war
>> 12-Jul-2016 10:32:28.666 INFO [localhost-startStop-3]
>> org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was 
>> scanned
>> for TLDs yet contained no TLDs. Enable debug logging for this logger 

Re: [Dev] [WSO2 IS] Travelocity.com doesnt get deployed on Tomcat 8.0.x

2016-07-12 Thread Lakshman Udayakantha
I could reproduce your issue in windows environment. It seems like tomcat
8.0.x, needs to specify the root as slash when specifying file paths in
java classes which is not done in [1]. After specifying path as /
WEB-INF/classes/wso2carbon.jks and build the war and putting in tomcat
8.0.x in windows deployed without any issue.

[1]
https://github.com/wso2/product-is/blob/master/modules/samples/sso/sso-agent-sample/src/main/java/org/wso2/sample/is/sso/agent/SampleContextEventListener.java#L52

Thanks

On Tue, Jul 12, 2016 at 2:58 PM, Nadeesha Gamage  wrote:

> Done
>
> On Tue, Jul 12, 2016 at 2:55 PM, Harsha Thirimanna 
> wrote:
>
>> Please update these details to the above ticket for further reference.
>>
>>
>> *Harsha Thirimanna*
>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>> * *
>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>> *twitter: **http://twitter.com/ *
>> *harshathirimannlinked-in: **http:
>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Tue, Jul 12, 2016 at 2:45 PM, Nadeesha Gamage 
>> wrote:
>>
>>> As per the offline chat with Lakshman I have tested this on a fresh pack
>>> of Tomcat 8.0.9 and it still doesnt work, but it works on Tomcat 8.5.3
>>>
>>> On Tue, Jul 12, 2016 at 12:17 PM, Harsha Thirimanna 
>>> wrote:
>>>
 I also had tested this in modified one, sorry. I think Lakshman is
 correct. Please send your logs and web app as well.​


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

 *Lean . Enterprise . Middleware*


 On Tue, Jul 12, 2016 at 12:05 PM, Lakshman Udayakantha <
 lakshm...@wso2.com> wrote:

> Anyway what are the issues? post the catalina.out and localhost*.log
> files.
>
> On Tue, Jul 12, 2016 at 12:00 PM, Harsha Thirimanna 
> wrote:
>
>> I think there are some issues. I could see that. We need to look in
>> to that.
>>
>>
>> *Harsha Thirimanna*
>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>> * *
>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>> *twitter: **http://twitter.com/ *
>> *harshathirimannlinked-in: **http:
>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Tue, Jul 12, 2016 at 11:47 AM, Lakshman Udayakantha <
>> lakshm...@wso2.com> wrote:
>>
>>> Hi Nadeesha,
>>>
>>> I didn't get any SEVERE logs while deploying travelocity app on
>>> tomcat 8.0.x. Could you please post the errors in localhost*.log file 
>>> for
>>> more information.
>>>
>>> Thanks
>>>
>>> On Tue, Jul 12, 2016 at 11:17 AM, Omindu Rathnaweera <
>>> omi...@wso2.com> wrote:
>>>
 Hi Nadeesha,

 I don't think we have tested travelocity with tomcat 8. Created [1]
 to track this issue.

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

 Regards,
 Omindu.

 On Tue, Jul 12, 2016 at 10:39 AM, Nadeesha Gamage <
 nadee...@wso2.com> wrote:

> Hi Devs,
> I have checked-out the travelocity.com sample from the following
> link [1], build and deployed it on Tomcat 8.0.x and I get the 
> following
> error.
>
> 12-Jul-2016 10:32:26.557 INFO [localhost-startStop-3]
> org.apache.catalina.startup.HostConfig.deployWAR Deploying web 
> application
> archive D:\Software
> Installed\apache-tomcat-8.0.9\webapps\travelocity.com.war
> 12-Jul-2016 10:32:28.666 INFO [localhost-startStop-3]
> org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was 
> scanned
> for TLDs yet contained no TLDs. Enable debug logging for this logger 
> for a
> complete list of JARs that were scanned but no TLDs were found in 
> them.
> Skipping unneeded JARs during scanning can improve startup time and 
> JSP
> compilation time.
> 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
> 

Re: [Dev] Web Context path issue

2016-07-12 Thread Chamin Dias
Please refer : https://wso2.org/jira/browse/CARBON-15987 to track the fixes.

Thanks

On Tue, Jul 12, 2016 at 3:39 PM, Chamin Dias  wrote:

> Hi,
>
> Scenario :
>
> 1) Change the  in carbon.xml as "/apim" (this is the only
> change)
>
> 2) Start the servers and urls can be visible as below.
> Management console url- https://localhost:9443/apim/carbon
> Publisher url- https://localhost:9443/apim/publisher
> Store url-https://localhost:9443/apim/store
>
> 3) When we tried to access the publisher and store urls, still it's
> redirected to the management console (i.e :
> https://localhost:9443/apim/carbon)
>
>
> We have tested the same scenario for the previous APIM versions
> (1.10,1.9.1,1.9.0,1.8.0,1.7.0,1.6.0 and 1.5.0) and noticed the same
> behaviour. Do we need some other configuration in addition to modifying
>  in carbon.xml? If not, we wonder if this is a known fact.
>
> Tested the scenario with App manager 1.1.0 as well. Observed the same
> behaviour.
>
> Thanks.
>
> On Tue, Jul 12, 2016 at 11:47 AM, Chamin Dias  wrote:
>
>> Hi,
>>
>> We were working on APIMANAGER-5043
>>  issue (for upcoming APIM
>> 2.0.0 release). The issue was reproduced. We did a background search and
>> tried the workaround suggested in the Dev mail thread : *[Dev] How to
>> deploy Jaggery application as web root context*
>>
>> Unfortunately we were not able to solve the issue by following the
>> workaround. Any help will be appreciated since we are about the release
>> APIM 2.0.0 soon.
>>
>> Thanks.
>>
>> --
>> Chamin Dias
>> *Software Engineer*
>> Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
>> Email : cham...@wso2.com
>> Blog : https://chamindias.wordpress.com/
>>
>
>
>
> --
> Chamin Dias
> *Software Engineer*
> Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
> Email : cham...@wso2.com
> Blog : https://chamindias.wordpress.com/
>



-- 
Chamin Dias
*Software Engineer*
Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
Email : cham...@wso2.com
Blog : https://chamindias.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Oauth Mediator Documentation

2016-07-12 Thread Praneesha Chandrasiri
Got to know from Buddhima and Asela that the example given in [1] is
applicable for OAuth 2.0 as well.

Therefore, I added a note in ESB 4.9.0 & above as for example in [1] and
resolved [2].

Thanks Buddhima & Asela!

[1] https://docs.wso2.com/display/ESB500/OAuth+Mediator
[2] https://wso2.org/jira/browse/DOCUMENTATION-3100

On Tue, Jul 12, 2016 at 1:37 PM, Praneesha Chandrasiri 
wrote:

> hi ESB Team,
>
> Could we please have an example based on OAuth 2.0 to be added to [1]?
>
> [1] https://docs.wso2.com/display/ESB500/OAuth+Mediator
>
>
>
> On Fri, Mar 11, 2016 at 10:42 PM, Praneesha Chandrasiri <
> pranee...@wso2.com> wrote:
>
>> Will check this.
>>
>> Thanks Erandi and Nisrin!
>>
>> On Thu, Mar 3, 2016 at 12:24 PM, Nisrin Sheriff  wrote:
>>
>>> Hi Chathurika,
>>>
>>> Thank you for the information.
>>>
>>> Created a JIRA [1] to get this done.
>>>
>>> [1] https://wso2.org/jira/browse/DOCUMENTATION-3100
>>>
>>> Best Regards,
>>> Nisrin
>>>
>>> Nisrin Sheriff
>>> Senior Technical Writer
>>>
>>> *WSO2, Inc.*lean.enterprise.middleware.
>>> mobile: +94 776 24 84 56
>>> http://wso2.com
>>>
>>> On Wed, Mar 2, 2016 at 5:03 PM, Chathurika De Silva <
>>> chathuri...@wso2.com> wrote:
>>>
 Hi

 As per the offline chat with Asela the documentation that is pointed by
 [1] is Oauth 1.0 [2] . There seems to be no sample for Oauth 2.0 related
 scenario. Can we get it included in the documentation?

 [1] https://docs.wso2.com/display/ESB500/OAuth+Mediator
 [2]
 https://docs.wso2.com/display/IS510/2-legged+OAuth+for+Securing+a+RESTful+Service

 Thank You
 Erandi

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

 *E-mail:* chathuri...@wso2.com
 *Mobile: *+94714 328 612
 *Blog*: chathurikaerandi.blogspot.com

>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "WSO2 Techcontent Group" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to techcontent-group+unsubscr...@wso2.com.
>>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>>
>>
>>
>>
>> --
>> Thanks & Best Regards,
>> *Praneesha Chandrasiri*
>> *Technical Writer*
>> *WSO2 Inc. *
>> *Mobile: +(94) 718156888 <%2B%2894%29%20718156888>*
>> *E-mail: pranee...@wso2.com *
>>
>>
>
>
> --
> Thanks & Best Regards,
> *Praneesha Chandrasiri*
> *Technical Writer*
> *WSO2 Inc. *
> *Mobile: +(94) 718156888 <%2B%2894%29%20718156888>*
> *E-mail: pranee...@wso2.com *
>
>


-- 
Thanks & Best Regards,
*Praneesha Chandrasiri*
*Technical Writer*
*WSO2 Inc. *
*Mobile: +(94) 718156888*
*E-mail: pranee...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Sticky Session with marathon load balancer

2016-07-12 Thread Anuruddha Liyanarachchi
Hi Imesh,

On Tue, Jul 12, 2016 at 3:13 PM, Imesh Gunaratne  wrote:

> On Tue, Jul 12, 2016 at 2:02 PM, Anuruddha Liyanarachchi <
> anurudd...@wso2.com> wrote:
>
>> Hi,
>>
>> I have configured cookie based sticky sessions with marathon-lb for wso2
>> servers using JSESSIONID. The following labels are required to generate the
>> correct ha-proxy config values and should be passed in the application
>> definition.
>>
>> "labels": {
>> "HAPROXY_1_GROUP": "marathon-lb",
>> "HAPROXY_2_GROUP": "marathon-lb",
>> "HAPROXY_2_BACKEND_SERVER_OPTIONS": "  server {serverName}
>> {host_ipv4}:{port}{cookieOptions} ssl verify none \n",
>>
>
> A production deployment would need SSL verification enabled. Therefore, we
> might need to clearly mentioned that it in the documentation/README.md
> files.​
>

Yes. This require building the marathon-lb docker image with pre-loaded
cert files [1].
+1 for documenting this in README.md.


>
>
>> "HAPROXY_2_BACKEND_STICKY_OPTIONS": "  cookie JSESSIONID prefix
>> nocache \n",
>> "HAPROXY_2_STICKY": "true",
>> "HAPROXY_2_SSL_CERT": "/etc/ssl/cert.pem",
>>
>> "HAPROXY_2_MODE": "http"
>>   },
>>
>>
> ​We would need to explain what n means in HAPROXY_{n}_ labels and how to
> apply this to a specific set of ports.
>
​
>
>> Shall we add these labels to our mesos artifacts to enable sticky session
>> with 9443 port ?
>>
>> ​Yes please, will add this to all the management console/UI transports in
> all Marathon applications.
>

The changes are added with commit [2].

[1]
https://mesosphere.com/blog/2015/12/13/service-discovery-and-load-balancing-with-dcos-and-marathon-lb-part-2/
[2]
https://github.com/wso2/mesos-artifacts/commit/c40f1ee74f1ac1c4b17eda9f0aff8311ec09e997

Thanks​
>
>
>>
>> [1] https://github.com/mesosphere/marathon-lb/blob/master/Longhelp.md
>>
>> --
>> *Thanks and Regards,*
>> Anuruddha Lanka Liyanarachchi
>> Software Engineer - WSO2
>> Mobile : +94 (0) 712762611
>> Tel  : +94 112 145 345
>> a nurudd...@wso2.com
>>
>
>
>
> --
> *Imesh Gunaratne*
> Software Architect
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: https://medium.com/@imesh TW: @imesh
>
>


-- 
*Thanks and Regards,*
Anuruddha Lanka Liyanarachchi
Software Engineer - WSO2
Mobile : +94 (0) 712762611
Tel  : +94 112 145 345
a nurudd...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Sticky Session with marathon load balancer

2016-07-12 Thread Udara Liyanage
On Tue, Jul 12, 2016 at 5:43 AM, Imesh Gunaratne  wrote:

> On Tue, Jul 12, 2016 at 2:02 PM, Anuruddha Liyanarachchi <
> anurudd...@wso2.com> wrote:
>
>> Hi,
>>
>> I have configured cookie based sticky sessions with marathon-lb for wso2
>> servers using JSESSIONID. The following labels are required to generate the
>> correct ha-proxy config values and should be passed in the application
>> definition.
>>
>> "labels": {
>> "HAPROXY_1_GROUP": "marathon-lb",
>> "HAPROXY_2_GROUP": "marathon-lb",
>> "HAPROXY_2_BACKEND_SERVER_OPTIONS": "  server {serverName}
>> {host_ipv4}:{port}{cookieOptions} ssl verify none \n",
>>
>
> A production deployment would need SSL verification enabled. Therefore, we
> might need to clearly mentioned that it in the documentation/README.md
> files.​
>
Current haproxy doc
 also does
not have ssl verification. Yes a production system would have ssl
verfication on. So it would be better to mention clearly.

>
>
>> "HAPROXY_2_BACKEND_STICKY_OPTIONS": "  cookie JSESSIONID prefix
>> nocache \n",
>> "HAPROXY_2_STICKY": "true",
>> "HAPROXY_2_SSL_CERT": "/etc/ssl/cert.pem",
>>
>> "HAPROXY_2_MODE": "http"
>>   },
>>
>>
> ​We would need to explain what n means in HAPROXY_{n}_ labels and how to
> apply this to a specific set of ports.
> ​
>
>> Shall we add these labels to our mesos artifacts to enable sticky session
>> with 9443 port ?
>>
>> ​Yes please, will add this to all the management console/UI transports in
> all Marathon applications.
>
> Thanks​
>
>
>>
>> [1] https://github.com/mesosphere/marathon-lb/blob/master/Longhelp.md
>>
>> --
>> *Thanks and Regards,*
>> Anuruddha Lanka Liyanarachchi
>> Software Engineer - WSO2
>> Mobile : +94 (0) 712762611
>> Tel  : +94 112 145 345
>> a nurudd...@wso2.com
>>
>
>
>
> --
> *Imesh Gunaratne*
> Software Architect
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: https://medium.com/@imesh TW: @imesh
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Web Context path issue

2016-07-12 Thread Chamin Dias
Hi,

Scenario :

1) Change the  in carbon.xml as "/apim" (this is the only
change)

2) Start the servers and urls can be visible as below.
Management console url- https://localhost:9443/apim/carbon
Publisher url- https://localhost:9443/apim/publisher
Store url-https://localhost:9443/apim/store

3) When we tried to access the publisher and store urls, still it's
redirected to the management console (i.e :
https://localhost:9443/apim/carbon)


We have tested the same scenario for the previous APIM versions
(1.10,1.9.1,1.9.0,1.8.0,1.7.0,1.6.0 and 1.5.0) and noticed the same
behaviour. Do we need some other configuration in addition to modifying
 in carbon.xml? If not, we wonder if this is a known fact.

Tested the scenario with App manager 1.1.0 as well. Observed the same
behaviour.

Thanks.

On Tue, Jul 12, 2016 at 11:47 AM, Chamin Dias  wrote:

> Hi,
>
> We were working on APIMANAGER-5043
>  issue (for upcoming APIM
> 2.0.0 release). The issue was reproduced. We did a background search and
> tried the workaround suggested in the Dev mail thread : *[Dev] How to
> deploy Jaggery application as web root context*
>
> Unfortunately we were not able to solve the issue by following the
> workaround. Any help will be appreciated since we are about the release
> APIM 2.0.0 soon.
>
> Thanks.
>
> --
> Chamin Dias
> *Software Engineer*
> Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
> Email : cham...@wso2.com
> Blog : https://chamindias.wordpress.com/
>



-- 
Chamin Dias
*Software Engineer*
Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
Email : cham...@wso2.com
Blog : https://chamindias.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Sticky Session with marathon load balancer

2016-07-12 Thread Imesh Gunaratne
On Tue, Jul 12, 2016 at 2:02 PM, Anuruddha Liyanarachchi <
anurudd...@wso2.com> wrote:

> Hi,
>
> I have configured cookie based sticky sessions with marathon-lb for wso2
> servers using JSESSIONID. The following labels are required to generate the
> correct ha-proxy config values and should be passed in the application
> definition.
>
> "labels": {
> "HAPROXY_1_GROUP": "marathon-lb",
> "HAPROXY_2_GROUP": "marathon-lb",
> "HAPROXY_2_BACKEND_SERVER_OPTIONS": "  server {serverName}
> {host_ipv4}:{port}{cookieOptions} ssl verify none \n",
>

A production deployment would need SSL verification enabled. Therefore, we
might need to clearly mentioned that it in the documentation/README.md
files.​


> "HAPROXY_2_BACKEND_STICKY_OPTIONS": "  cookie JSESSIONID prefix
> nocache \n",
> "HAPROXY_2_STICKY": "true",
> "HAPROXY_2_SSL_CERT": "/etc/ssl/cert.pem",
>
> "HAPROXY_2_MODE": "http"
>   },
>
>
​We would need to explain what n means in HAPROXY_{n}_ labels and how to
apply this to a specific set of ports.
​

> Shall we add these labels to our mesos artifacts to enable sticky session
> with 9443 port ?
>
> ​Yes please, will add this to all the management console/UI transports in
all Marathon applications.

Thanks​


>
> [1] https://github.com/mesosphere/marathon-lb/blob/master/Longhelp.md
>
> --
> *Thanks and Regards,*
> Anuruddha Lanka Liyanarachchi
> Software Engineer - WSO2
> Mobile : +94 (0) 712762611
> Tel  : +94 112 145 345
> a nurudd...@wso2.com
>



-- 
*Imesh Gunaratne*
Software Architect
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: https://medium.com/@imesh TW: @imesh
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WSO2 IS] Travelocity.com doesnt get deployed on Tomcat 8.0.x

2016-07-12 Thread Nadeesha Gamage
Done

On Tue, Jul 12, 2016 at 2:55 PM, Harsha Thirimanna  wrote:

> Please update these details to the above ticket for further reference.
>
>
> *Harsha Thirimanna*
> Associate Tech Lead; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Tue, Jul 12, 2016 at 2:45 PM, Nadeesha Gamage 
> wrote:
>
>> As per the offline chat with Lakshman I have tested this on a fresh pack
>> of Tomcat 8.0.9 and it still doesnt work, but it works on Tomcat 8.5.3
>>
>> On Tue, Jul 12, 2016 at 12:17 PM, Harsha Thirimanna 
>> wrote:
>>
>>> I also had tested this in modified one, sorry. I think Lakshman is
>>> correct. Please send your logs and web app as well.​
>>>
>>>
>>> *Harsha Thirimanna*
>>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>>> *twitter: **http://twitter.com/ *
>>> *harshathirimannlinked-in: **http:
>>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Tue, Jul 12, 2016 at 12:05 PM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
 Anyway what are the issues? post the catalina.out and localhost*.log
 files.

 On Tue, Jul 12, 2016 at 12:00 PM, Harsha Thirimanna 
 wrote:

> I think there are some issues. I could see that. We need to look in to
> that.
>
>
> *Harsha Thirimanna*
> Associate Tech Lead; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Tue, Jul 12, 2016 at 11:47 AM, Lakshman Udayakantha <
> lakshm...@wso2.com> wrote:
>
>> Hi Nadeesha,
>>
>> I didn't get any SEVERE logs while deploying travelocity app on
>> tomcat 8.0.x. Could you please post the errors in localhost*.log file for
>> more information.
>>
>> Thanks
>>
>> On Tue, Jul 12, 2016 at 11:17 AM, Omindu Rathnaweera > > wrote:
>>
>>> Hi Nadeesha,
>>>
>>> I don't think we have tested travelocity with tomcat 8. Created [1]
>>> to track this issue.
>>>
>>> [1] - https://wso2.org/jira/browse/IDENTITY-4800
>>>
>>> Regards,
>>> Omindu.
>>>
>>> On Tue, Jul 12, 2016 at 10:39 AM, Nadeesha Gamage >> > wrote:
>>>
 Hi Devs,
 I have checked-out the travelocity.com sample from the following
 link [1], build and deployed it on Tomcat 8.0.x and I get the following
 error.

 12-Jul-2016 10:32:26.557 INFO [localhost-startStop-3]
 org.apache.catalina.startup.HostConfig.deployWAR Deploying web 
 application
 archive D:\Software
 Installed\apache-tomcat-8.0.9\webapps\travelocity.com.war
 12-Jul-2016 10:32:28.666 INFO [localhost-startStop-3]
 org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was 
 scanned
 for TLDs yet contained no TLDs. Enable debug logging for this logger 
 for a
 complete list of JARs that were scanned but no TLDs were found in them.
 Skipping unneeded JARs during scanning can improve startup time and JSP
 compilation time.
 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
 org.apache.catalina.core.StandardContext.startInternal Error 
 listenerStart
 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
 org.apache.catalina.core.StandardContext.startInternal Context [/
 travelocity.com] startup failed due to previous errors


 [1] https://docs.wso2.com/display/IS510/Downloading+a+Sample


 Can someone please look into this.

 Thank you,
 --
 Nadeesha Gamage
 Associate Technical Lead - Solutions Engineering
 T : +94 77 394 5706
 B : https://nadeesha678.wordpress.com/

 ___
 Dev mailing list
 

Re: [Dev] [WSO2 IS] Travelocity.com doesnt get deployed on Tomcat 8.0.x

2016-07-12 Thread Harsha Thirimanna
Please update these details to the above ticket for further reference.


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

*Lean . Enterprise . Middleware*


On Tue, Jul 12, 2016 at 2:45 PM, Nadeesha Gamage  wrote:

> As per the offline chat with Lakshman I have tested this on a fresh pack
> of Tomcat 8.0.9 and it still doesnt work, but it works on Tomcat 8.5.3
>
> On Tue, Jul 12, 2016 at 12:17 PM, Harsha Thirimanna 
> wrote:
>
>> I also had tested this in modified one, sorry. I think Lakshman is
>> correct. Please send your logs and web app as well.​
>>
>>
>> *Harsha Thirimanna*
>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>> * *
>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>> *twitter: **http://twitter.com/ *
>> *harshathirimannlinked-in: **http:
>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Tue, Jul 12, 2016 at 12:05 PM, Lakshman Udayakantha <
>> lakshm...@wso2.com> wrote:
>>
>>> Anyway what are the issues? post the catalina.out and localhost*.log
>>> files.
>>>
>>> On Tue, Jul 12, 2016 at 12:00 PM, Harsha Thirimanna 
>>> wrote:
>>>
 I think there are some issues. I could see that. We need to look in to
 that.


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

 *Lean . Enterprise . Middleware*


 On Tue, Jul 12, 2016 at 11:47 AM, Lakshman Udayakantha <
 lakshm...@wso2.com> wrote:

> Hi Nadeesha,
>
> I didn't get any SEVERE logs while deploying travelocity app on tomcat
> 8.0.x. Could you please post the errors in localhost*.log file for more
> information.
>
> Thanks
>
> On Tue, Jul 12, 2016 at 11:17 AM, Omindu Rathnaweera 
> wrote:
>
>> Hi Nadeesha,
>>
>> I don't think we have tested travelocity with tomcat 8. Created [1]
>> to track this issue.
>>
>> [1] - https://wso2.org/jira/browse/IDENTITY-4800
>>
>> Regards,
>> Omindu.
>>
>> On Tue, Jul 12, 2016 at 10:39 AM, Nadeesha Gamage 
>> wrote:
>>
>>> Hi Devs,
>>> I have checked-out the travelocity.com sample from the following
>>> link [1], build and deployed it on Tomcat 8.0.x and I get the following
>>> error.
>>>
>>> 12-Jul-2016 10:32:26.557 INFO [localhost-startStop-3]
>>> org.apache.catalina.startup.HostConfig.deployWAR Deploying web 
>>> application
>>> archive D:\Software
>>> Installed\apache-tomcat-8.0.9\webapps\travelocity.com.war
>>> 12-Jul-2016 10:32:28.666 INFO [localhost-startStop-3]
>>> org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was 
>>> scanned
>>> for TLDs yet contained no TLDs. Enable debug logging for this logger 
>>> for a
>>> complete list of JARs that were scanned but no TLDs were found in them.
>>> Skipping unneeded JARs during scanning can improve startup time and JSP
>>> compilation time.
>>> 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
>>> org.apache.catalina.core.StandardContext.startInternal Error 
>>> listenerStart
>>> 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
>>> org.apache.catalina.core.StandardContext.startInternal Context [/
>>> travelocity.com] startup failed due to previous errors
>>>
>>>
>>> [1] https://docs.wso2.com/display/IS510/Downloading+a+Sample
>>>
>>>
>>> Can someone please look into this.
>>>
>>> Thank you,
>>> --
>>> Nadeesha Gamage
>>> Associate Technical Lead - Solutions Engineering
>>> T : +94 77 394 5706
>>> B : https://nadeesha678.wordpress.com/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Omindu Rathnaweera
>> Software Engineer, WSO2 Inc.
>> Mobile: +94 771 197 211
>>
>> 

Re: [Dev] [WSO2 IS] Travelocity.com doesnt get deployed on Tomcat 8.0.x

2016-07-12 Thread Nadeesha Gamage
As per the offline chat with Lakshman I have tested this on a fresh pack of
Tomcat 8.0.9 and it still doesnt work, but it works on Tomcat 8.5.3

On Tue, Jul 12, 2016 at 12:17 PM, Harsha Thirimanna 
wrote:

> I also had tested this in modified one, sorry. I think Lakshman is
> correct. Please send your logs and web app as well.​
>
>
> *Harsha Thirimanna*
> Associate Tech Lead; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Tue, Jul 12, 2016 at 12:05 PM, Lakshman Udayakantha  > wrote:
>
>> Anyway what are the issues? post the catalina.out and localhost*.log
>> files.
>>
>> On Tue, Jul 12, 2016 at 12:00 PM, Harsha Thirimanna 
>> wrote:
>>
>>> I think there are some issues. I could see that. We need to look in to
>>> that.
>>>
>>>
>>> *Harsha Thirimanna*
>>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>>> *twitter: **http://twitter.com/ *
>>> *harshathirimannlinked-in: **http:
>>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Tue, Jul 12, 2016 at 11:47 AM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
 Hi Nadeesha,

 I didn't get any SEVERE logs while deploying travelocity app on tomcat
 8.0.x. Could you please post the errors in localhost*.log file for more
 information.

 Thanks

 On Tue, Jul 12, 2016 at 11:17 AM, Omindu Rathnaweera 
 wrote:

> Hi Nadeesha,
>
> I don't think we have tested travelocity with tomcat 8. Created [1] to
> track this issue.
>
> [1] - https://wso2.org/jira/browse/IDENTITY-4800
>
> Regards,
> Omindu.
>
> On Tue, Jul 12, 2016 at 10:39 AM, Nadeesha Gamage 
> wrote:
>
>> Hi Devs,
>> I have checked-out the travelocity.com sample from the following
>> link [1], build and deployed it on Tomcat 8.0.x and I get the following
>> error.
>>
>> 12-Jul-2016 10:32:26.557 INFO [localhost-startStop-3]
>> org.apache.catalina.startup.HostConfig.deployWAR Deploying web 
>> application
>> archive D:\Software
>> Installed\apache-tomcat-8.0.9\webapps\travelocity.com.war
>> 12-Jul-2016 10:32:28.666 INFO [localhost-startStop-3]
>> org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was 
>> scanned
>> for TLDs yet contained no TLDs. Enable debug logging for this logger for 
>> a
>> complete list of JARs that were scanned but no TLDs were found in them.
>> Skipping unneeded JARs during scanning can improve startup time and JSP
>> compilation time.
>> 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
>> org.apache.catalina.core.StandardContext.startInternal Error 
>> listenerStart
>> 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
>> org.apache.catalina.core.StandardContext.startInternal Context [/
>> travelocity.com] startup failed due to previous errors
>>
>>
>> [1] https://docs.wso2.com/display/IS510/Downloading+a+Sample
>>
>>
>> Can someone please look into this.
>>
>> Thank you,
>> --
>> Nadeesha Gamage
>> Associate Technical Lead - Solutions Engineering
>> T : +94 77 394 5706
>> B : https://nadeesha678.wordpress.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Omindu Rathnaweera
> Software Engineer, WSO2 Inc.
> Mobile: +94 771 197 211
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Lakshman Udayakantha
 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware
 Mobile: *0714388124*


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


>>>
>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0714388124*
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nadeesha Gamage
Associate Technical Lead - 

Re: [Dev] Mesos DNS support for Mesos membership scheme

2016-07-12 Thread Udara Liyanage
On Jun 27, 2016 9:38 PM, "Akila Ravihansa Perera" 
wrote:
>
> Hi,
>
> Currently Mesos membership scheme relies on Marathon REST API to discover
the members in a cluster. There can be situations where access to Marathon
REST API could be restricted and access cannot be granted for Carbon
products due to security concerns.
>
> However, we can still discover members in the cluster by using Mesos DNS
REST API [1]. I've implemented this functionality in [2]. We can set the
DNS endpoint via MESOS_DNS_ENDPOINT parameter in axis2.xml.
> We can change the member discovery scheme by defining
the MESOS_MEMBER_DISCOVERY_SCHEME parameter in axis2.xml. The default will
be 'Marathon' (via Marathon REST API). It is important to understand that
Mesos DNS will periodically query the master node to get a list of members,
therefore it is possible that there will be a delay to reflect the latest
state. I've introduced a DNS update timeout (DNS_UPDATE_TIMEOUT which
defaults to 10s), period of time to keep retrying if the service is not
found.
>
> Note that if there are shared Marathon applications when creating a
single Hazelcast cluster you need to include them in MARATHON_APPLICATIONS
parameter as comma separated values. For eg: WSO2 ESB worker/manager setup
> wso2esb manager should not have any value for MARATHON_APPLICATIONS since
it should be started first, before the worker. Members in the same
application (wso2esb-manager in this case) will be added by default
How about using a predefined label, all apps that should be in same cluster
have same value for that label. My suggestion is something like VHOST-0 in
mararhonlb
In a gateway worker, manager,is as KM, Greg publisher store scenario we
have to mention multiple apps in MARATHON_APPLICATIONS feild.
>
> wso2esb worker should have "wso2esb-manager" as MARATHON_APPLICATIONS
since it will be started after the manager.
>
> [1] https://mesosphere.github.io/mesos-dns/docs/http.html
> [2]
https://github.com/wso2/mesos-artifacts/tree/master/common/mesos-membership-scheme
>
> Thanks.
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Governance Registry 5.3.0 Alpha Released

2016-07-12 Thread Rajith Roshan
WSO2 Governance Registry team is pleased to announce the Alpha release of
WSO2 Governance Registry 5.3.0.

Please download WSO2 Governance Registry 5.3.0 Alpha from this
location[1][2]. Kindly find the official documentation from here[5].This
release includes following features, improvements and bug fixes. To see the
full list please visit jira release note[3]
New Feature

   - [REGISTRY-3595 ] -
   Taxonomy Feature

Improvement

   - [REGISTRY-3502 ] - Need to
   improve Note feature
   - [REGISTRY-3580 ] - Remove
   Lifecycle notification options from content artifact types
   - [REGISTRY-3624 ] - Search
   customisation for unbounded table values
   - [REGISTRY-3669 ] - Tag
   cloud style is not matching with current theme
   - [REGISTRY-3670 ] -
   Taxonomy update button usability issues
   - [REGISTRY-3671 ] -
   Taxonomy indexing is case sensitive. make them to lowercase
   - [REGISTRY-3676 ] - Make
   taxonomy update button icon plus (+) mark
   - [REGISTRY-3678 ] - When
   doing both updating and adding taxonomy , add button and update button need
   to be displayed.
   - [REGISTRY-3681 ] - Add
   sample filters to getting started guide.
   - [REGISTRY-3685 ] - Store
   All icon need to be second in the list when its not selected.
   - [REGISTRY-3686 ] -
   Taxonomy UI improvements and Categorization left alignment improve
   - [REGISTRY-3696 ] -
   Addressing the performance issue in time in lifecycles feature
   - [REGISTRY-3697 ] -
   Enabling copy functionality for no Flash browsers - Adding clipboard.js to
   Store

Bug

   - [REGISTRY-2341 ] - The
   update operation for a exposed web service corresponding to a custom
   governance artifact is not working
   - [REGISTRY-2601 ] - DIff
   view is not working with some special characters
   - [REGISTRY-3267 ] - RXT hot
   deployment is not working for Teneant users
   - [REGISTRY-3276 ] - Soap
   service list is not displaying in windows Edge internet explorer
   - [REGISTRY-3306 ] - [Greg
   Store] User login redirection is not correct for newly registred users
   - [REGISTRY-3313 ] -
   [Permission/Bookmarks] Remove the 'bookmark' option from permission tree in
   Management Console
   - [REGISTRY-3369 ] -
   [Governance Center]Option arrow need to change directions at appropriate
   moments
   - [REGISTRY-3399 ] - [Store]
   [User Reviews] Malfunction on likes and dislikes counting
   - [REGISTRY-3436 ] - [SSO
   Mode] If we use wrong identityAlias in Publisher.json and store.json,
   Backend throws nullpoint exception
   - [REGISTRY-3443 ] -
   [Notification][Store]Icon is not getting changed for expand/collapse
   - [REGISTRY-3462 ] -
   [PUBLISHER] Error messages should appear in a consistent manner (errors in
   all red)
   - [REGISTRY-3469 ] - [STORE]
   User review filter criteria is not present after adding the first review
   - [REGISTRY-3544 ] - GC gets
   a unusual behaviour when user scrolled down.
   - [REGISTRY-3562 ] -
   [PUBLISHER][STORE] Rendering anomaly in the diff view for additions
   - [REGISTRY-3574 ] -
   [Publisher][Store] Clear All button in Notification pane is not properly
   cleared out notifications
   - [REGISTRY-3588 ] - In
   Store, asset detail page should indicate assigned tags
   - [REGISTRY-3598 ] -
   Publisher overview page taxonomy can be clickable.
   - [REGISTRY-3599 ] - Tenant
   Specific taxonomy is not loading correctly
   - [REGISTRY-3602 ] -
   Store/publisher Taxonomy default pagination is 5
   - [REGISTRY-3605 ] - Top
   asset 

Re: [Dev] Unable to assign dynamic values in Axis2.xml of APIM 2.0 beta 2

2016-07-12 Thread Jayanga Dissanayake
Hi Vanji,

This wasn't supported earlier.

Thanks,
Jayanga.

*Jayanga Dissanayake*
Associate Technical Lead
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
email: jaya...@wso2.com
mobile: +94772207259

On Tue, Jul 12, 2016 at 1:03 PM, Vanjikumaran Sivajothy 
wrote:

> How can it be a new imporement? Wasn't this supported previously? If yes,
> what is the need of breaking that functionality?
>
>
> On Monday, 11 July 2016, Jayanga Dissanayake  wrote:
>
>> Hi Nuwan,
>>
>> This is not a bug. As per the current implementation axis2.xml doesn't
>> support dynamic value injection for all configurations. (it supports
>> dynamic values for cluster related properties.)
>> As it is an improvement to the current implementation and potential
>> testing effort needed with dynamic value injection. It is still not been
>> merged.
>>
>> Thanks,
>> Jayanga.
>>
>> *Jayanga Dissanayake*
>> Associate Technical Lead
>> WSO2 Inc. - http://wso2.com/
>> lean . enterprise . middleware
>> email: jaya...@wso2.com
>> mobile: +94772207259
>>
>> On Tue, Jul 12, 2016 at 9:55 AM, Nuwan Dias  wrote:
>>
>>> Hi Kernel Team,
>>>
>>> This is a bug in the kernel, but the provided fix hasn't been merged.
>>> Any reason for leaving the issue open?
>>>
>>> We're very near to RC of API Manager 2.0.0 now and I don't think its
>>> feasible to get a new release of the kernel to fix this. Are there any
>>> workarounds to resolve this?
>>>
>>> Thanks,
>>> NuwanD.
>>>
>>> On Mon, Jul 11, 2016 at 11:55 PM, Vanjikumaran Sivajothy >> > wrote:
>>>
 Hi,

 While testing APIM 2.0 Beta 2, We noticed; It is not possible to assign
 the values to axis2.xml via the place holders and similar issue has been
 already reported in the public jira [1].
 Please consider this to fix this issue before release as this is a
 critical requirement needed for most of the deployments.

 https://wso2.org/jira/browse/CARBON-15927

 --
 Vanjikumaran Sivajothy
 *Associate Technical Lead*
 *WSO2 Inc. http://wso2.com *
  *+1-925-464-6816*
 [image: Facebook]  [image:
 Twitter]  [image: LinkedIn]
  [image:
 Blogger]  [image: SlideShare]
 

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

>>>
>>>
>>>
>>> --
>>> 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
>>>
>>>
>>
>
> --
> Sent from Gmail Mobile
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Is it best practice to return null or an empty object from a method in DAO layer?

2016-07-12 Thread Abimaran Kugathasan
There are good enough discussion in Stackoverflow [1], [2] and [3]. You
could return null, empty object or throw exception in the case of data not
available.

It's also depends on the type of the Object you are supposed to return, if
it's a ArrayList/Map, then returning empty ArrayList/Map is better than
returning null, but, in case of Model object, I think, returning null is
better than retuning a mock object of that class.


[1] :
http://programmers.stackexchange.com/questions/120355/is-it-better-to-return-null-or-empty-values-from-functions-methods-where-the-ret
[2] :
http://stackoverflow.com/questions/1626597/should-functions-return-null-or-an-empty-object
[3] :
http://programmers.stackexchange.com/questions/228287/returning-null-or-a-empty-value-throw-exception

On Tue, Jul 12, 2016 at 12:03 PM, Jayanga Kaushalya 
wrote:

> Hi,
>
> In my opinion, returning an empty object is far better. It will reduce
> unnecessary null checks and will stop the code from going on different
> paths. And code quality wise also I think returning empty is cleaner.
> For example:
>
> *List list = getList();*
>
> *for (Item item : list) {// Do logic.*
> *// This will not execute if the list is empty.*
> *}*
>
> Is much cleaner than
>
> *List list = getList();*
> *if (list == null) {*
> *// Handle the logic.*
> *// Now this is a different code path.*
> *}*
>
> Thanks!
>
> *Jayanga Kaushalya*
> Software Engineer
> Mobile: +94777860160
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>
> On Tue, Jul 12, 2016 at 10:05 AM, Sabra Ossen  wrote:
>
>> Hi Chamila,
>>
>> I checked from findbugs and it didn't return an error. Is returning an
>> empty object a practice followed in WSO2?
>>
>> On Tue, Jul 12, 2016 at 9:25 AM, Chamila Wijayarathna <
>> cdwijayarat...@gmail.com> wrote:
>>
>>> Hi Sabra,
>>>
>>> AFAIK when we return a null from a method, find bugs show it as an error
>>> (please check this) and to fix this we use empty objects. So I think the
>>> returning null is not something we should do.
>>>
>>> Thank You!
>>>
>>
>>
>>
>> --
>> *Sabra Ossen*
>> *Software Engineer*
>> Email: sa...@wso2.com
>> Mobile: +94 767 837356
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer

Email : abima...@wso2.com
Mobile : +94 773922820


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


Re: [Dev] [PC] VizGrammar svg transformation

2016-07-12 Thread Sameera Gunarathne
Hi Tharik,

I will try this one. Thanks.

Regards,

On Tue, Jul 12, 2016 at 12:29 PM, Tharik Kanaka  wrote:

> Hi Sameera,
>
> This cannot be adjusted dynamically without redrawing but you can
> configure the padding by increasing left and bottom by adding following
> attribute to the VizGrammar configuration.
>
> padding: {"top": 10, "left": 80, "bottom": 80, "right": 0}
>
> Regards,
>
> On Tue, Jul 12, 2016 at 10:30 AM, Sameera Gunarathne 
> wrote:
>
>> Hi,
>>
>> I am using VizGrammar visualization library for render analytics charts
>> in DS gadgets. There if the vertical axis data values are quite long and a
>> part of the data would not be displayed[1] . This must be due to the
>> default transformation of the svg and it is not enough to display all data
>> values. Is there a way to configure the transformation of svg in vizg?
>>
>> [1]
>>
>>
>> --
>> Sameera Gunarathne
>> Software Engineer, WSO2 Inc. http://wso2.com
>> 
>> Email: samee...@wso2.com
>> Mobile: +94714155561
>>
>
>
>
> --
>
> *Tharik Kanaka*
>
> WSO2, Inc | lean . enterprise . middleware
>
> Email: tha...@wso2.com | Web: www.wso2.com
>



-- 
Sameera Gunarathne
Software Engineer, WSO2 Inc. http://wso2.com

Email: samee...@wso2.com
Mobile: +94714155561
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] Getting JsonUtil #getNewJsonPayload error. Could not save JSON payload.

2016-07-12 Thread Keerthika Mahendralingam
Thanks Kesavan. As you mentioned this is working with the latest built.


On Mon, Jul 11, 2016 at 6:11 PM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi All,
>
> I am checking GoToTraining connector. I am getting the following error
> when the API response with "201 Created" with empty body.
>
> Only getting this error when the Content-Type of the response is "
> *application/json*" as in [1] or "*application/json;charset=UTF-8*". This
> is working fine if we get the empty response with "*application/json;
> charset=UTF-8*"
>
> Is there any reason for this?
>
> Please note that I tested with ESB 5.0.0-Beta and the latest build that I
> download from Jenkins build today.
>
> [1].
>
> HTTPS-Sender I/O dispatcher-1 << "POST
> /G2T/rest/organizers/8150166600242801157/trainings HTTP/1.1[\r][\n]"
>
> [2016-07-11 16:01:56,406]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,406] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Authorization: OAuth oauth_token=jkjFA5LtTutQWp90MrDTAUXVSFYQ[\r][\n]"
>
> [2016-07-11 16:01:56,407]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,407] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Action: urn:createTraining[\r][\n]"
>
> [2016-07-11 16:01:56,407]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,407] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Accept-Charset: UTF-8[\r][\n]"
>
> [2016-07-11 16:01:56,407]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,407] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Content-Type: application/json[\r][\n]"
>
> [2016-07-11 16:01:56,407]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,407] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Accept: application/json[\r][\n]"
>
> [2016-07-11 16:01:56,407]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,407] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Transfer-Encoding: chunked[\r][\n]"
>
> [2016-07-11 16:01:56,407]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,407] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Host: api.citrixonline.com[\r][\n]"
>
> [2016-07-11 16:01:56,407]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,407] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Connection: Keep-Alive[\r][\n]"
>
> [2016-07-11 16:01:56,408]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,408] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
>
> [2016-07-11 16:01:56,408]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,408] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "[\r][\n]"
>
> [2016-07-11 16:01:56,408]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,408] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "dd[\r][\n]"
>
> [2016-07-11 16:01:56,408]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,408] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "{"times":[{"startDate":"2016-07-13T09:00:00Z",
> "endDate":"2016-07-13T12:00:00Z"}], "description":"Learn Java Fundamentals
> from the Professionals.", "name":"Java Fundamentals 1.7", "timeZone":"",
> "registrationSettings":{}}[\r][\n]"
>
> [2016-07-11 16:01:56,408]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,408] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "0[\r][\n]"
>
> [2016-07-11 16:01:56,449]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,408] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "[\r][\n]"
>
> [2016-07-11 16:01:57,797]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:57,797] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
> "HTTP/1.1 201 Created[\r][\n]"
>
> [2016-07-11 16:01:57,797]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:57,797] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
> "Access-Control-Allow-Headers: origin, x-requested-with, authorization,
> accept, content-type[\r][\n]"
>
> [2016-07-11 16:01:57,797]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:57,797] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
> "Access-Control-Allow-Methods: GET, PUT, POST, DELETE[\r][\n]"
>
> [2016-07-11 16:01:57,797]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:57,797] DEBUG - wire HTTPS-Sender I/O 

Re: [Dev] [GSOC 16] Initial Project Progress

2016-07-12 Thread Osura Rathnayake
Hi Imesh,

About dynamically adding members to the load balancer, I will cross check
it with auto-scaling. I couldn't look into that from auto-scaling end since
I couldn't test it yet.

about monitoring, yes we can do a POC on that.

thanks,

On Tue, Jul 12, 2016 at 12:53 PM, Imesh Gunaratne  wrote:

> On Tue, Jul 12, 2016 at 12:09 PM, Osura Rathnayake 
> wrote:
>
>> Hi Imesh,
>>
>> About centralized logging, I'm trying to get logs to the Log Analytics
>> using few methods supported in azure. We can either parse logs in to
>> syslogs and send to the Log Analytics or create custom logs specifying the
>> logs location. As you said, logs shouldn't be in .txt extension, I got it
>> clarified from a azure blog. Will update you soon after I could resolve it.
>>
>> ​Right, thanks for the update!​
>
>
>> No you can't dynamically add VMs to the load balancer. Backend pool,
>> where all the VMs reside, should be predefined.
>>
>
> ​Technically that capability should be there. Otherwise we would not be
> able to autoscale a server cluster dynamically.
> ​
>
>
>> you can auto-scale using scale sets(I'm still researching about it),
>> that's the equivalent of AWS auto scaling group . also you can scale up or
>> down a VM if it exceeds a certain parameter like CPU usage, using
>> monitoring rules.
>>
>> *Monitoring *
>>
>>
>> Azure has a native monitoring tool which involves collecting and tracking
>> metrics, analyzing log files, defining custom metrics and logging generated
>> by specific applications or workloads running in Virtual Machines. Azure
>> represents monitored data in a graphical manner using charts. Monitoring
>> also facilitates triggering alarms when certain conditions are met and also
>> it can be configured to take actions on the met conditions. Monitoring is
>> done by the Diagnostic Extension and it has following capabilities.
>>
>> · Collects and uploads the system performance information from
>> the Linux VM to the user's storage table, including diagnostic and syslog
>> information.
>>
>> · Enables users to customize the data metrics that will be
>> collected and uploaded.
>>
>> · Enables users to upload specified log files to a designated
>> storage table.
>>
>> Note: Azure storage tables are a non-relational, key-value-pair, storage
>> system suitable for storing massive amounts of unstructured data.
>>
>>
>> We can add monitor rules so that when an alert triggers it notifies the
>> admins via email. Furthermore we can set to take automated actions. Azure
>> automate actions by running runbooks. A runbook is a set of tasks that
>> perform some automated process in Azure Automation. We can create our own
>> runbooks as well. Available runbooks include,
>>
>> · Restart VM
>>
>> · Stop VM
>>
>> · Remove VM
>>
>> · Scale up VM
>>
>> · Scale down VM
>>
>> When scaling up it sets the virtual machine to the next larger size
>> within the size group and when scaling down it sets the virtual machine to
>> the next smaller size within the size group.
>>
>> More about runbooks and automation [1]
>>
>
> ​Sounds good, will us be able to do a POC on this?​
>
>
>>
>> *Auto scaling *
>>
>>
>> Auto-scaling is the process of dynamically allocating the resources
>> required by an application to match performance requirements. Virtual
>> machine scale sets are an Azure Compute resource you can use to deploy and
>> manage a set of identical VMs. With all VMs configured the same, VM scale
>> sets are designed to support true auto-scale  no pre-provisioning of VMs is
>> required – and as such makes it easier to build large-scale services
>> targeting big compute, big data, and containerized workloads [2].
>>
>>
>> Note: I couldn’t practically do this as my azure free account lets me
>> have only 4 cores and I have used all of them on my current deployment. I’m
>> getting a new azure account from one of my friends in a day so hopefully I
>> will do this on it and update you.
>>
>
> ​Great! Thanks!​
>
>
>>
>> [1]
>> https://azure.microsoft.com/en-us/documentation/articles/automation-intro/
>>
>> [2]
>> https://azure.microsoft.com/en-us/documentation/articles/virtual-machine-scale-sets-overview/
>>
>>
>> thanks,
>>
>>
>> On Mon, Jul 11, 2016 at 9:54 AM, Imesh Gunaratne  wrote:
>>
>>> On Thu, Jul 7, 2016 at 7:11 PM, Osura Rathnayake 
>>> wrote:
>>>
 Hi Mentors,


 In addition to refining the membership scheme code, I looked into
 following features of Azure.
 ​

>>> ​Good findings Osura, please find few questions inline:​
>>>
>>>
 ​

 *Azure dynamic load balancing*


 Azure has a native load balancer which is very easy to configure. It’s
 a layer 4 (TCP, UDP) load balancer which helps to spread traffic among
 healthy virtual machines. Following are some key terms you need to know.
 ​

>>> ​Can members be dynamically 

[Dev] Sticky Session with marathon load balancer

2016-07-12 Thread Anuruddha Liyanarachchi
Hi,

I have configured cookie based sticky sessions with marathon-lb for wso2
servers using JSESSIONID. The following labels are required to generate the
correct ha-proxy config values and should be passed in the application
definition.

"labels": {
"HAPROXY_1_GROUP": "marathon-lb",
"HAPROXY_2_GROUP": "marathon-lb",
"HAPROXY_2_BACKEND_SERVER_OPTIONS": "  server {serverName}
{host_ipv4}:{port}{cookieOptions} ssl verify none \n",
"HAPROXY_2_BACKEND_STICKY_OPTIONS": "  cookie JSESSIONID prefix nocache
\n",
"HAPROXY_2_STICKY": "true",
"HAPROXY_2_SSL_CERT": "/etc/ssl/cert.pem",

"HAPROXY_2_MODE": "http"
  },

I have used the default marathon SSL cert and description about each
property can be found at [1].

Resulting haproxy configs are as below.

frontend wso2bps-manager_10033
>   bind *:10033 ssl crt /etc/ssl/cert.pem
>   mode http
>   use_backend wso2bps-manager_10033
>


> backend wso2bps-manager_10033
>   balance roundrobin
>   mode http
>   option forwardfor
>   http-request set-header X-Forwarded-Port %[dst_port]
>   http-request add-header X-Forwarded-Proto https if { ssl_fc }
>   cookie JSESSIONID prefix nocache
>   server 192_168_30_79_16804 192.168.30.79:16804 check cookie 704fdf85cd
> ssl verify none
>   server 192_168_30_80_31220 192.168.30.80:31220 check cookie ebd2a09eeb
> ssl verify none



Shall we add these labels to our mesos artifacts to enable sticky session
with 9443 port ?


[1] https://github.com/mesosphere/marathon-lb/blob/master/Longhelp.md

-- 
*Thanks and Regards,*
Anuruddha Lanka Liyanarachchi
Software Engineer - WSO2
Mobile : +94 (0) 712762611
Tel  : +94 112 145 345
a nurudd...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Mesos-Marathon] Issues in Creating Point to Point TCP Connections in Mesos-Marathon based Deployments

2016-07-12 Thread Udara Liyanage
On Tue, Jul 12, 2016 at 12:56 PM, Isuru Haththotuwa  wrote:

> Hi all,
>
> This is to discuss about $subject.
>
> By default Mesos-Marathon [1] does not have an overlay network. Therefore
> when deploying wso2 products in distributed/HA manner in mesos, the
> products are unable to create point to point TCP connections directly from
> container to container.
>
> In Carbon products, p2p connections are created by Hazelcast, within
> cluster members. Since this is just for communication purposes, its
> possible to do a workaround by querying the API for the IPs of the host
> machine. This is done in the Mesos membership scheme [2].
>
> There are few places where we need to create TCP Listeners, for an example
> in CEP HA/Distributed setup [3]. For this, we can't just bind to the host
> node IP since the public IP is not visible to the container; and can't use
> the local container IP since container to container communication is not
> possible (due to the lack of an overlay network).
>
> One possible option is such scenarios is to use the HOST networking mode
> of Docker [4]. Then the container will be using the host IP and ports
> directly. One issue with this approach is since we are mapping container
> ports to host ports directly without assigning random ports from the host
> side, only one container can run in one host node. But, in a way this
> defeats the purpose of containerization.
>
Using host mode would be a good alternative. I don't think limiting one
container per Mesos node (Mesos HOST=UNIQUE constrain) in this scenario
 since a HA Mesos deployment will have multiple Mesos nodes.
Another advantage of running in host mode is performance efficiency rather
than bridge mode. Network efficiency would be useful in thrift scenario
since it is assumed to be fast.

>
> Please share your thoughts on this.
>
> [1]. https://github.com/mesosphere/marathon
>
> [2].
> https://github.com/wso2/mesos-artifacts/tree/master/common/mesos-membership-scheme
>
> [3].
> https://docs.wso2.com/display/CLUSTER44x/Clustering+CEP+4.0.0#ClusteringCEP4.0.0-Highavailabilitydeployment
>
> [4]. http://www.dasblinkenlichten.com/docker-networking-101-host-mode/
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] carbon-multitenancy 4.6.0 released

2016-07-12 Thread Kalpa Welivitigoda
Hi all,

Please note $subject,

org.wso2.carbon.multitenancy
carbon-multitenancy
4.6.0

-- 
Best Regards,

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


Re: [Dev] [ESB] Oauth Mediator Documentation

2016-07-12 Thread Praneesha Chandrasiri
hi ESB Team,

Could we please have an example based on OAuth 2.0 to be added to [1]?

[1] https://docs.wso2.com/display/ESB500/OAuth+Mediator



On Fri, Mar 11, 2016 at 10:42 PM, Praneesha Chandrasiri 
wrote:

> Will check this.
>
> Thanks Erandi and Nisrin!
>
> On Thu, Mar 3, 2016 at 12:24 PM, Nisrin Sheriff  wrote:
>
>> Hi Chathurika,
>>
>> Thank you for the information.
>>
>> Created a JIRA [1] to get this done.
>>
>> [1] https://wso2.org/jira/browse/DOCUMENTATION-3100
>>
>> Best Regards,
>> Nisrin
>>
>> Nisrin Sheriff
>> Senior Technical Writer
>>
>> *WSO2, Inc.*lean.enterprise.middleware.
>> mobile: +94 776 24 84 56
>> http://wso2.com
>>
>> On Wed, Mar 2, 2016 at 5:03 PM, Chathurika De Silva > > wrote:
>>
>>> Hi
>>>
>>> As per the offline chat with Asela the documentation that is pointed by
>>> [1] is Oauth 1.0 [2] . There seems to be no sample for Oauth 2.0 related
>>> scenario. Can we get it included in the documentation?
>>>
>>> [1] https://docs.wso2.com/display/ESB500/OAuth+Mediator
>>> [2]
>>> https://docs.wso2.com/display/IS510/2-legged+OAuth+for+Securing+a+RESTful+Service
>>>
>>> Thank You
>>> Erandi
>>>
>>> --
>>> *Chathurika Erandi*
>>> Software Engineer,
>>> WSO2 Inc.
>>>
>>> *E-mail:* chathuri...@wso2.com
>>> *Mobile: *+94714 328 612
>>> *Blog*: chathurikaerandi.blogspot.com
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "WSO2 Techcontent Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to techcontent-group+unsubscr...@wso2.com.
>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>
>
>
>
> --
> Thanks & Best Regards,
> *Praneesha Chandrasiri*
> *Technical Writer*
> *WSO2 Inc. *
> *Mobile: +(94) 718156888 <%2B%2894%29%20718156888>*
> *E-mail: pranee...@wso2.com *
>
>


-- 
Thanks & Best Regards,
*Praneesha Chandrasiri*
*Technical Writer*
*WSO2 Inc. *
*Mobile: +(94) 718156888*
*E-mail: pranee...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unable to assign dynamic values in Axis2.xml of APIM 2.0 beta 2

2016-07-12 Thread Vanjikumaran Sivajothy
How can it be a new imporement? Wasn't this supported previously? If yes,
what is the need of breaking that functionality?

On Monday, 11 July 2016, Jayanga Dissanayake  wrote:

> Hi Nuwan,
>
> This is not a bug. As per the current implementation axis2.xml doesn't
> support dynamic value injection for all configurations. (it supports
> dynamic values for cluster related properties.)
> As it is an improvement to the current implementation and potential
> testing effort needed with dynamic value injection. It is still not been
> merged.
>
> Thanks,
> Jayanga.
>
> *Jayanga Dissanayake*
> Associate Technical Lead
> WSO2 Inc. - http://wso2.com/
> lean . enterprise . middleware
> email: jaya...@wso2.com 
> mobile: +94772207259
>
> On Tue, Jul 12, 2016 at 9:55 AM, Nuwan Dias  > wrote:
>
>> Hi Kernel Team,
>>
>> This is a bug in the kernel, but the provided fix hasn't been merged. Any
>> reason for leaving the issue open?
>>
>> We're very near to RC of API Manager 2.0.0 now and I don't think its
>> feasible to get a new release of the kernel to fix this. Are there any
>> workarounds to resolve this?
>>
>> Thanks,
>> NuwanD.
>>
>> On Mon, Jul 11, 2016 at 11:55 PM, Vanjikumaran Sivajothy > > wrote:
>>
>>> Hi,
>>>
>>> While testing APIM 2.0 Beta 2, We noticed; It is not possible to assign
>>> the values to axis2.xml via the place holders and similar issue has been
>>> already reported in the public jira [1].
>>> Please consider this to fix this issue before release as this is a
>>> critical requirement needed for most of the deployments.
>>>
>>> https://wso2.org/jira/browse/CARBON-15927
>>>
>>> --
>>> Vanjikumaran Sivajothy
>>> *Associate Technical Lead*
>>> *WSO2 Inc. http://wso2.com *
>>>  *+1-925-464-6816*
>>> [image: Facebook]  [image:
>>> Twitter]  [image: LinkedIn]
>>>  [image:
>>> Blogger]  [image: SlideShare]
>>> 
>>>
>>> This communication may contain privileged or other
>>> confidential information and is intended exclusively for the addressee/s.
>>> If you are not the intended recipient/s, or believe that you may
>>> have received this communication in error, please reply to the
>>> sender indicating that fact and delete the copy you received and in
>>> addition, you should not print, copy, re-transmit, disseminate, or
>>> otherwise use the information contained in this communication.
>>> Internet communications cannot be guaranteed to be timely, secure, error
>>> or virus-free. The sender does not accept liability for any errors
>>> or omissions
>>>
>>
>>
>>
>> --
>> 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
>>
>>
>

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


[Dev] [Mesos-Marathon] Issues in Creating Point to Point TCP Connections in Mesos-Marathon based Deployments

2016-07-12 Thread Isuru Haththotuwa
Hi all,

This is to discuss about $subject.

By default Mesos-Marathon [1] does not have an overlay network. Therefore
when deploying wso2 products in distributed/HA manner in mesos, the
products are unable to create point to point TCP connections directly from
container to container.

In Carbon products, p2p connections are created by Hazelcast, within
cluster members. Since this is just for communication purposes, its
possible to do a workaround by querying the API for the IPs of the host
machine. This is done in the Mesos membership scheme [2].

There are few places where we need to create TCP Listeners, for an example
in CEP HA/Distributed setup [3]. For this, we can't just bind to the host
node IP since the public IP is not visible to the container; and can't use
the local container IP since container to container communication is not
possible (due to the lack of an overlay network).

One possible option is such scenarios is to use the HOST networking mode of
Docker [4]. Then the container will be using the host IP and ports
directly. One issue with this approach is since we are mapping container
ports to host ports directly without assigning random ports from the host
side, only one container can run in one host node. But, in a way this
defeats the purpose of containerization.

Please share your thoughts on this.

[1]. https://github.com/mesosphere/marathon

[2].
https://github.com/wso2/mesos-artifacts/tree/master/common/mesos-membership-scheme

[3].
https://docs.wso2.com/display/CLUSTER44x/Clustering+CEP+4.0.0#ClusteringCEP4.0.0-Highavailabilitydeployment

[4]. http://www.dasblinkenlichten.com/docker-networking-101-host-mode/


-- 
Thanks and Regards,

Isuru H.
+94 716 358 048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC 16] Initial Project Progress

2016-07-12 Thread Imesh Gunaratne
On Tue, Jul 12, 2016 at 12:09 PM, Osura Rathnayake 
wrote:

> Hi Imesh,
>
> About centralized logging, I'm trying to get logs to the Log Analytics
> using few methods supported in azure. We can either parse logs in to
> syslogs and send to the Log Analytics or create custom logs specifying the
> logs location. As you said, logs shouldn't be in .txt extension, I got it
> clarified from a azure blog. Will update you soon after I could resolve it.
>
> ​Right, thanks for the update!​


> No you can't dynamically add VMs to the load balancer. Backend pool, where
> all the VMs reside, should be predefined.
>

​Technically that capability should be there. Otherwise we would not be
able to autoscale a server cluster dynamically.
​


> you can auto-scale using scale sets(I'm still researching about it),
> that's the equivalent of AWS auto scaling group . also you can scale up or
> down a VM if it exceeds a certain parameter like CPU usage, using
> monitoring rules.
>
> *Monitoring *
>
>
> Azure has a native monitoring tool which involves collecting and tracking
> metrics, analyzing log files, defining custom metrics and logging generated
> by specific applications or workloads running in Virtual Machines. Azure
> represents monitored data in a graphical manner using charts. Monitoring
> also facilitates triggering alarms when certain conditions are met and also
> it can be configured to take actions on the met conditions. Monitoring is
> done by the Diagnostic Extension and it has following capabilities.
>
> · Collects and uploads the system performance information from
> the Linux VM to the user's storage table, including diagnostic and syslog
> information.
>
> · Enables users to customize the data metrics that will be
> collected and uploaded.
>
> · Enables users to upload specified log files to a designated
> storage table.
>
> Note: Azure storage tables are a non-relational, key-value-pair, storage
> system suitable for storing massive amounts of unstructured data.
>
>
> We can add monitor rules so that when an alert triggers it notifies the
> admins via email. Furthermore we can set to take automated actions. Azure
> automate actions by running runbooks. A runbook is a set of tasks that
> perform some automated process in Azure Automation. We can create our own
> runbooks as well. Available runbooks include,
>
> · Restart VM
>
> · Stop VM
>
> · Remove VM
>
> · Scale up VM
>
> · Scale down VM
>
> When scaling up it sets the virtual machine to the next larger size within
> the size group and when scaling down it sets the virtual machine to the
> next smaller size within the size group.
>
> More about runbooks and automation [1]
>

​Sounds good, will us be able to do a POC on this?​


>
> *Auto scaling *
>
>
> Auto-scaling is the process of dynamically allocating the resources
> required by an application to match performance requirements. Virtual
> machine scale sets are an Azure Compute resource you can use to deploy and
> manage a set of identical VMs. With all VMs configured the same, VM scale
> sets are designed to support true auto-scale  no pre-provisioning of VMs is
> required – and as such makes it easier to build large-scale services
> targeting big compute, big data, and containerized workloads [2].
>
>
> Note: I couldn’t practically do this as my azure free account lets me have
> only 4 cores and I have used all of them on my current deployment. I’m
> getting a new azure account from one of my friends in a day so hopefully I
> will do this on it and update you.
>

​Great! Thanks!​


>
> [1]
> https://azure.microsoft.com/en-us/documentation/articles/automation-intro/
>
> [2]
> https://azure.microsoft.com/en-us/documentation/articles/virtual-machine-scale-sets-overview/
>
>
> thanks,
>
>
> On Mon, Jul 11, 2016 at 9:54 AM, Imesh Gunaratne  wrote:
>
>> On Thu, Jul 7, 2016 at 7:11 PM, Osura Rathnayake 
>> wrote:
>>
>>> Hi Mentors,
>>>
>>>
>>> In addition to refining the membership scheme code, I looked into
>>> following features of Azure.
>>> ​
>>>
>> ​Good findings Osura, please find few questions inline:​
>>
>>
>>> ​
>>>
>>> *Azure dynamic load balancing*
>>>
>>>
>>> Azure has a native load balancer which is very easy to configure. It’s a
>>> layer 4 (TCP, UDP) load balancer which helps to spread traffic among
>>> healthy virtual machines. Following are some key terms you need to know.
>>> ​
>>>
>> ​Can members be dynamically added and removed to/from a load balancer? To
>> check this we may need to explore how autoscaling works. On AWS this is
>> handled with autoscaling groups [3]
>>
>>>
>>> *Capturing Virtual Machine Images as templates*
>>>
>>>
>>> Azure provides the feature of generalizing and capturing virtual
>>> machines so that they can be used as templates. This is very useful and
>>> time saving when the production environment has many instances of the same
>>> kind of 

Re: [Dev] [PC] VizGrammar svg transformation

2016-07-12 Thread Tharik Kanaka
Hi Sameera,

This cannot be adjusted dynamically without redrawing but you can configure
the padding by increasing left and bottom by adding following attribute to
the VizGrammar configuration.

padding: {"top": 10, "left": 80, "bottom": 80, "right": 0}

Regards,

On Tue, Jul 12, 2016 at 10:30 AM, Sameera Gunarathne 
wrote:

> Hi,
>
> I am using VizGrammar visualization library for render analytics charts in
> DS gadgets. There if the vertical axis data values are quite long and a
> part of the data would not be displayed[1] . This must be due to the
> default transformation of the svg and it is not enough to display all data
> values. Is there a way to configure the transformation of svg in vizg?
>
> [1]
>
>
> --
> Sameera Gunarathne
> Software Engineer, WSO2 Inc. http://wso2.com
> 
> Email: samee...@wso2.com
> Mobile: +94714155561
>



-- 

*Tharik Kanaka*

WSO2, Inc | lean . enterprise . middleware

Email: tha...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Axis2] Response status code 202 for No content message body

2016-07-12 Thread Madhawa Perera
Hi Madhawa,

We also had a similar doubt as to what status code we should return in a
situation where there is no content. Concern we had was, in a call to
'getDevies', it returns 404 when no device is found (no resources found),
where we thought it should return 204 (no content) instead of 404 or 200.

But there were certain things that need to be considered when we are
deciding on those status codes. For an example, we have to decide whether
the endpoints is designed to return single resource or a collection, what
is the intended behavior and is this (no content) scenario is an acceptable
return from the endpoint etc.

Anyhow, if this situation matches yours, you can go through the email
thread [1] which would help you to get a better understanding on this.
Briefing the conclusion, we have agreed to return an empty set with a 200
status code in our case.

[1] [EMM] Why we are using 404 for "No Content" responses ?

Thank you
Best Regards,
Madhawa


On Tue, Jun 28, 2016 at 4:52 PM, Madhawa Gunasekara 
wrote:

> Hi All,
>
> We set 202 (Accepted) status code for the response when there isn't
> content message body. but AFAIU We have to set 204 (No Content) for
> successful responses where there isn't a content message body [1].
>
> This issue is reported in [2].
>
> Highly appreciated your thoughts on this.
>
> [1] https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
> [2] https://wso2.org/jira/browse/DS-886
>
> Thanks,
> Madhawa
>
> --
> *Madhawa Gunasekara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002 <+94+719411002>
> blog: *http://madhawa-gunasekara.blogspot.com
> *
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [WSO2 IS] Travelocity.com doesnt get deployed on Tomcat 8.0.x

2016-07-12 Thread Harsha Thirimanna
I also had tested this in modified one, sorry. I think Lakshman is correct.
Please send your logs and web app as well.​


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

*Lean . Enterprise . Middleware*


On Tue, Jul 12, 2016 at 12:05 PM, Lakshman Udayakantha 
wrote:

> Anyway what are the issues? post the catalina.out and localhost*.log files.
>
> On Tue, Jul 12, 2016 at 12:00 PM, Harsha Thirimanna 
> wrote:
>
>> I think there are some issues. I could see that. We need to look in to
>> that.
>>
>>
>> *Harsha Thirimanna*
>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>> * *
>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>> *twitter: **http://twitter.com/ *
>> *harshathirimannlinked-in: **http:
>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Tue, Jul 12, 2016 at 11:47 AM, Lakshman Udayakantha <
>> lakshm...@wso2.com> wrote:
>>
>>> Hi Nadeesha,
>>>
>>> I didn't get any SEVERE logs while deploying travelocity app on tomcat
>>> 8.0.x. Could you please post the errors in localhost*.log file for more
>>> information.
>>>
>>> Thanks
>>>
>>> On Tue, Jul 12, 2016 at 11:17 AM, Omindu Rathnaweera 
>>> wrote:
>>>
 Hi Nadeesha,

 I don't think we have tested travelocity with tomcat 8. Created [1] to
 track this issue.

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

 Regards,
 Omindu.

 On Tue, Jul 12, 2016 at 10:39 AM, Nadeesha Gamage 
 wrote:

> Hi Devs,
> I have checked-out the travelocity.com sample from the following link
> [1], build and deployed it on Tomcat 8.0.x and I get the following error.
>
> 12-Jul-2016 10:32:26.557 INFO [localhost-startStop-3]
> org.apache.catalina.startup.HostConfig.deployWAR Deploying web application
> archive D:\Software
> Installed\apache-tomcat-8.0.9\webapps\travelocity.com.war
> 12-Jul-2016 10:32:28.666 INFO [localhost-startStop-3]
> org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned
> for TLDs yet contained no TLDs. Enable debug logging for this logger for a
> complete list of JARs that were scanned but no TLDs were found in them.
> Skipping unneeded JARs during scanning can improve startup time and JSP
> compilation time.
> 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
> org.apache.catalina.core.StandardContext.startInternal Error listenerStart
> 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
> org.apache.catalina.core.StandardContext.startInternal Context [/
> travelocity.com] startup failed due to previous errors
>
>
> [1] https://docs.wso2.com/display/IS510/Downloading+a+Sample
>
>
> Can someone please look into this.
>
> Thank you,
> --
> Nadeesha Gamage
> Associate Technical Lead - Solutions Engineering
> T : +94 77 394 5706
> B : https://nadeesha678.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Omindu Rathnaweera
 Software Engineer, WSO2 Inc.
 Mobile: +94 771 197 211

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


>>>
>>>
>>> --
>>> Lakshman Udayakantha
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>> Mobile: *0714388124*
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0714388124*
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BPS 3.5.1 compatible mysql version

2016-07-12 Thread Gayan Gunarathne
Thanks. Shall we include those version details in the documentation?
Otherwise it will confuse the end user.

[1]
https://docs.wso2.com/display/CLUSTER44x/Clustering+Business+Process+Server+3.5.0+and+3.5.1#ClusteringBusinessProcessServer3.5.0and3.5.1-Settingupthedatabases
[2]https://docs.wso2.com/display/BPS351/Setting+up+MySQL

Thanks,
Gayan

On Tue, Jul 12, 2016 at 11:34 AM, Hasitha Aravinda  wrote:

> Please find my comments inline.
>
> On Tue, Jul 12, 2016 at 11:27 AM, Vinod Kavinda  wrote:
>
>> Hi Gayan,
>> There are separate scripts for mysql 5.5 for bpmn. Have you tried with
>> those scripts. You need to run following scripts located at
>> /dbscripts/bps/bpmn/create folder.
>>
>> activiti.mysql55.create.engine.sql
>>
>> activiti.mysql55.create.history.sql
>>
>> We have not tested for mysql 5.7 AFAIU.
>>
>>
>> Regards,
>>
>> Vinod
>>
>>
>>
>>
>> On Tue, Jul 12, 2016 at 11:19 AM, Gayan Gunarathne 
>> wrote:
>>
>>> Hi,
>>>
>>> Seems BPS 3.5.1 worked only with mysql 5.6. Got the following
>>> incompatibility issues with mysql 5.5 and mysql 5.7.
>>> But in the documentation we didn't mention anything about the mysql
>>> version[1]. If we are support only mysql 5.6, shall we update the
>>> documentation with the compatible mysql version?
>>>
>>> mysql 5.5 - Syntax incompatibility with BPMN_DB
>>>
>>> bps_rdbms  | /usr/local/bin/docker-entrypoint.sh: running
>>> /docker-entrypoint-initdb.d/bpsdb.sql
>>> bps_rdbms  | ERROR 1064 (42000) at line 2052: You have an error in your
>>> SQL syntax; check the manual that corresponds to your MySQL server version
>>> for the right syntax to use near '(3),
>>> bps_rdbms  | primary key (ID_)
>>> bps_rdbms  | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin' at
>>> line 6
>>> bps_rdbms exited with code 1
>>>
>>
> A
> ​s Vonod mentioned, Activiti has two scripts for MySQL 5.5 and MySQL 5.6. ​
>
>
>>>
>>> mysql 5.7 - Syntax incompatibility  with WSO2_USER_DB
>>>
>>> bps_rdbms  | /usr/local/bin/docker-entrypoint.sh: running
>>> /docker-entrypoint-initdb.d/bpsdb.sql
>>> bps_rdbms  | ERROR 1067 (42000) at line 55: Invalid
>>> ​​
>>> default value for 'REG_CREATED_TIME'
>>> bps_rdbms exited with code 1
>>>
>>
> ​AFAIK, this is a known issue in kernel db scripts. Kernel registry mysql
> script has default timestamp value as 0, which is not supported in MySQL
> 5.7. This is fixed in latest kernel release.
>
> Thanks,
> Hasitha.
> ​
>
>
>>
>>> [1]https://docs.wso2.com/display/BPS351/Setting+up+MySQL
>>>
>>> Thanks,
>>> Gayan
>>>
>>> --
>>>
>>> Gayan Gunarathne
>>> Technical Lead, WSO2 Inc. (http://wso2.com)
>>> Committer & PMC Member, Apache Stratos
>>> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
> --
> Hasitha Aravinda,
> Associate Technical Lead,
> WSO2 Inc.
> Email: hasi...@wso2.com
> Mobile : +94 718 210 200
>



-- 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC 16] Initial Project Progress

2016-07-12 Thread Osura Rathnayake
Hi Imesh,

About centralized logging, I'm trying to get logs to the Log Analytics
using few methods supported in azure. We can either parse logs in to
syslogs and send to the Log Analytics or create custom logs specifying the
logs location. As you said, logs shouldn't be in .txt extension, I got it
clarified from a azure blog. Will update you soon after I could resolve it.

No you can't dynamically add VMs to the load balancer. Backend pool, where
all the VMs reside, should be predefined. you can auto-scale using scale
sets(I'm still researching about it), that's the equivalent of AWS auto
scaling group . also you can scale up or down a VM if it exceeds a certain
parameter like CPU usage, using monitoring rules.

*Monitoring *


Azure has a native monitoring tool which involves collecting and tracking
metrics, analyzing log files, defining custom metrics and logging generated
by specific applications or workloads running in Virtual Machines. Azure
represents monitored data in a graphical manner using charts. Monitoring
also facilitates triggering alarms when certain conditions are met and also
it can be configured to take actions on the met conditions. Monitoring is
done by the Diagnostic Extension and it has following capabilities.

· Collects and uploads the system performance information from the
Linux VM to the user's storage table, including diagnostic and syslog
information.

· Enables users to customize the data metrics that will be
collected and uploaded.

· Enables users to upload specified log files to a designated
storage table.

Note: Azure storage tables are a non-relational, key-value-pair, storage
system suitable for storing massive amounts of unstructured data.


We can add monitor rules so that when an alert triggers it notifies the
admins via email. Furthermore we can set to take automated actions. Azure
automate actions by running runbooks. A runbook is a set of tasks that
perform some automated process in Azure Automation. We can create our own
runbooks as well. Available runbooks include,

· Restart VM

· Stop VM

· Remove VM

· Scale up VM

· Scale down VM

When scaling up it sets the virtual machine to the next larger size within
the size group and when scaling down it sets the virtual machine to the
next smaller size within the size group.

More about runbooks and automation [1]


*Auto scaling *


Auto-scaling is the process of dynamically allocating the resources
required by an application to match performance requirements. Virtual
machine scale sets are an Azure Compute resource you can use to deploy and
manage a set of identical VMs. With all VMs configured the same, VM scale
sets are designed to support true auto-scale  no pre-provisioning of VMs is
required – and as such makes it easier to build large-scale services
targeting big compute, big data, and containerized workloads [2].


Note: I couldn’t practically do this as my azure free account lets me have
only 4 cores and I have used all of them on my current deployment. I’m
getting a new azure account from one of my friends in a day so hopefully I
will do this on it and update you.


[1]
https://azure.microsoft.com/en-us/documentation/articles/automation-intro/

[2]
https://azure.microsoft.com/en-us/documentation/articles/virtual-machine-scale-sets-overview/


thanks,


On Mon, Jul 11, 2016 at 9:54 AM, Imesh Gunaratne  wrote:

> On Thu, Jul 7, 2016 at 7:11 PM, Osura Rathnayake 
> wrote:
>
>> Hi Mentors,
>>
>>
>> In addition to refining the membership scheme code, I looked into
>> following features of Azure.
>> ​
>>
> ​Good findings Osura, please find few questions inline:​
>
>
>> ​
>>
>> *Azure dynamic load balancing*
>>
>>
>> Azure has a native load balancer which is very easy to configure. It’s a
>> layer 4 (TCP, UDP) load balancer which helps to spread traffic among
>> healthy virtual machines. Following are some key terms you need to know.
>> ​
>>
> ​Can members be dynamically added and removed to/from a load balancer? To
> check this we may need to explore how autoscaling works. On AWS this is
> handled with autoscaling groups [3]
>
>>
>> *Capturing Virtual Machine Images as templates*
>>
>>
>> Azure provides the feature of generalizing and capturing virtual machines
>> so that they can be used as templates. This is very useful and time saving
>> when the production environment has many instances of the same kind of
>> virtual machine. When the virtual machine is being generalized all the data
>> in user directories are erased so better to have wso2 product directory not
>> in "/home/*". More about this can be found here [2].
>>
>> Once the virtual machine is captured, it is stored in the storage account
>> that is associated with the virtual machine. You can either download this
>> or use directly by referring to the URI when you want to make other virtual
>> machines with this template. What would be awesome is if we 

Re: [Dev] [WSO2 IS] Travelocity.com doesnt get deployed on Tomcat 8.0.x

2016-07-12 Thread Lakshman Udayakantha
Anyway what are the issues? post the catalina.out and localhost*.log files.

On Tue, Jul 12, 2016 at 12:00 PM, Harsha Thirimanna 
wrote:

> I think there are some issues. I could see that. We need to look in to
> that.
>
>
> *Harsha Thirimanna*
> Associate Tech Lead; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Tue, Jul 12, 2016 at 11:47 AM, Lakshman Udayakantha  > wrote:
>
>> Hi Nadeesha,
>>
>> I didn't get any SEVERE logs while deploying travelocity app on tomcat
>> 8.0.x. Could you please post the errors in localhost*.log file for more
>> information.
>>
>> Thanks
>>
>> On Tue, Jul 12, 2016 at 11:17 AM, Omindu Rathnaweera 
>> wrote:
>>
>>> Hi Nadeesha,
>>>
>>> I don't think we have tested travelocity with tomcat 8. Created [1] to
>>> track this issue.
>>>
>>> [1] - https://wso2.org/jira/browse/IDENTITY-4800
>>>
>>> Regards,
>>> Omindu.
>>>
>>> On Tue, Jul 12, 2016 at 10:39 AM, Nadeesha Gamage 
>>> wrote:
>>>
 Hi Devs,
 I have checked-out the travelocity.com sample from the following link
 [1], build and deployed it on Tomcat 8.0.x and I get the following error.

 12-Jul-2016 10:32:26.557 INFO [localhost-startStop-3]
 org.apache.catalina.startup.HostConfig.deployWAR Deploying web application
 archive D:\Software
 Installed\apache-tomcat-8.0.9\webapps\travelocity.com.war
 12-Jul-2016 10:32:28.666 INFO [localhost-startStop-3]
 org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned
 for TLDs yet contained no TLDs. Enable debug logging for this logger for a
 complete list of JARs that were scanned but no TLDs were found in them.
 Skipping unneeded JARs during scanning can improve startup time and JSP
 compilation time.
 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
 org.apache.catalina.core.StandardContext.startInternal Error listenerStart
 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
 org.apache.catalina.core.StandardContext.startInternal Context [/
 travelocity.com] startup failed due to previous errors


 [1] https://docs.wso2.com/display/IS510/Downloading+a+Sample


 Can someone please look into this.

 Thank you,
 --
 Nadeesha Gamage
 Associate Technical Lead - Solutions Engineering
 T : +94 77 394 5706
 B : https://nadeesha678.wordpress.com/

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


>>>
>>>
>>> --
>>> Omindu Rathnaweera
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94 771 197 211
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0714388124*
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0714388124*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Update on Puppet Modules 2.1.0 release

2016-07-12 Thread Lakmal Warusawithana
On Tue, Jul 12, 2016 at 12:01 PM, Imesh Gunaratne  wrote:

> On Tue, Jul 12, 2016 at 10:38 AM, Thanuja Uruththirakodeeswaran <
> thanu...@wso2.com> wrote:
>
>> Hi All,
>>
>> This is to give an update on the tasks carried out for WSO2 Puppet
>> Modules [1] 2.1.0 release.
>>
>> *Completed tasks:*
>>
>>- Created new modules for ESB 5.0.0, wso2greg_pubstore (GREG with
>>APIM store publisher) and wso2is_km (IS with APIM key manager).
>>
>>
>>- Removed following modules that were previously deprecated:
>>
>>
>>1. WSO2 API Manager  1.9.1
>>2. WSO2 Business Rules Server 2.1.0
>>3. WSO2 Governance Registry 4.6.0
>>4. WSO2 Identity Server 5.0.0
>>5. WSO2 Message Broker 3.0.0
>>
>> ​I do not think it's appropriate to remove support for above product
> versions in this release. If we do, users will not be able to utilize the
> features added in this release with previous versions of products.
>
> ​Shall we keep at least two versions of a product at a given time? WDYT?
>
>
+1


> Thanks​
>
>
>>- Introduced  new platform for Mesos and created Hiera structure and
>>configuration for deploying WSO2 products on Apache Mesos using WSO2 Mesos
>>Artifacts [2].
>>
>>
>>- Added support to configure SSO for WSO2 products via Puppet Modules.
>>
>>
>>- Improved secure vault configurations by updating templates with key
>>stores references in all the product modules and adding few more secure
>>vault configs to hiera data.
>>
>>
>>- Completed testing following puppet modules hiera configurations for
>>Mesos platform:
>>
>> 1. WSO2 API Manager 1.10.0
>> 2. WSO2 Application Server 5.3.0
>> 3. WSO2 Business Process Server 3.5.0 and 3.5.1
>> 4. WSO2 Business Rules Server 2.2.0
>> 5. WSO2 Complex Event Processor 4.0.0
>> 6. WSO2 Data Analytics Server 3.0.0 and 3.0.1
>> 7. WSO2 Data Services Server 3.5.0
>> 8. WSO2 Enterprise Store 2.0.0
>> 9. WSO2 Enterprise Service Bus 4.9.0
>> 10. WSO2 Governance Registry 5.1.0
>> 11. WSO2 Governance Registry 5.1.0 with APIM Publisher and Store
>> 12. WSO2 Identity Server 5.1.0
>> 13. WSO2 Identity Server 5.1.0 with APIM Key Manager
>>
>> *Pending Tasks:*
>>
>>- Update and verify WSO2 Message Broker 3.1.0 puppet module hiera
>>configurations in Mesos platform.
>>- Test ESB 5.0.0 puppet module.
>>
>> [1]. https://github.com/wso2/puppet-modules
>> [2]. https://github.com/wso2/mesos-artifacts
>>
>> Thanks.
>>
>> --
>> Thanuja Uruththirakodeeswaran
>> Software Engineer
>> WSO2 Inc.;http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 774363167
>>
>
>
>
> --
> *Imesh Gunaratne*
> Software Architect
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: https://medium.com/@imesh TW: @imesh
>
>


-- 
Lakmal Warusawithana
Director - Cloud Architecture; WSO2 Inc.
Mobile : +94714289692
Blog : http://lakmalsview.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Is it best practice to return null or an empty object from a method in DAO layer?

2016-07-12 Thread Jayanga Kaushalya
Hi,

In my opinion, returning an empty object is far better. It will reduce
unnecessary null checks and will stop the code from going on different
paths. And code quality wise also I think returning empty is cleaner.
For example:

*List list = getList();*

*for (Item item : list) {// Do logic.*
*// This will not execute if the list is empty.*
*}*

Is much cleaner than

*List list = getList();*
*if (list == null) {*
*// Handle the logic.*
*// Now this is a different code path.*
*}*

Thanks!

*Jayanga Kaushalya*
Software Engineer
Mobile: +94777860160
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware

On Tue, Jul 12, 2016 at 10:05 AM, Sabra Ossen  wrote:

> Hi Chamila,
>
> I checked from findbugs and it didn't return an error. Is returning an
> empty object a practice followed in WSO2?
>
> On Tue, Jul 12, 2016 at 9:25 AM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Sabra,
>>
>> AFAIK when we return a null from a method, find bugs show it as an error
>> (please check this) and to fix this we use empty objects. So I think the
>> returning null is not something we should do.
>>
>> Thank You!
>>
>
>
>
> --
> *Sabra Ossen*
> *Software Engineer*
> Email: sa...@wso2.com
> Mobile: +94 767 837356
>
> ___
> 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] Update on Puppet Modules 2.1.0 release

2016-07-12 Thread Imesh Gunaratne
On Tue, Jul 12, 2016 at 10:38 AM, Thanuja Uruththirakodeeswaran <
thanu...@wso2.com> wrote:

> Hi All,
>
> This is to give an update on the tasks carried out for WSO2 Puppet Modules
> [1] 2.1.0 release.
>
> *Completed tasks:*
>
>- Created new modules for ESB 5.0.0, wso2greg_pubstore (GREG with APIM
>store publisher) and wso2is_km (IS with APIM key manager).
>
>
>- Removed following modules that were previously deprecated:
>
>
>1. WSO2 API Manager  1.9.1
>2. WSO2 Business Rules Server 2.1.0
>3. WSO2 Governance Registry 4.6.0
>4. WSO2 Identity Server 5.0.0
>5. WSO2 Message Broker 3.0.0
>
> ​I do not think it's appropriate to remove support for above product
versions in this release. If we do, users will not be able to utilize the
features added in this release with previous versions of products.

​Shall we keep at least two versions of a product at a given time? WDYT?

Thanks​


>- Introduced  new platform for Mesos and created Hiera structure and
>configuration for deploying WSO2 products on Apache Mesos using WSO2 Mesos
>Artifacts [2].
>
>
>- Added support to configure SSO for WSO2 products via Puppet Modules.
>
>
>- Improved secure vault configurations by updating templates with key
>stores references in all the product modules and adding few more secure
>vault configs to hiera data.
>
>
>- Completed testing following puppet modules hiera configurations for
>Mesos platform:
>
> 1. WSO2 API Manager 1.10.0
> 2. WSO2 Application Server 5.3.0
> 3. WSO2 Business Process Server 3.5.0 and 3.5.1
> 4. WSO2 Business Rules Server 2.2.0
> 5. WSO2 Complex Event Processor 4.0.0
> 6. WSO2 Data Analytics Server 3.0.0 and 3.0.1
> 7. WSO2 Data Services Server 3.5.0
> 8. WSO2 Enterprise Store 2.0.0
> 9. WSO2 Enterprise Service Bus 4.9.0
> 10. WSO2 Governance Registry 5.1.0
> 11. WSO2 Governance Registry 5.1.0 with APIM Publisher and Store
> 12. WSO2 Identity Server 5.1.0
> 13. WSO2 Identity Server 5.1.0 with APIM Key Manager
>
> *Pending Tasks:*
>
>- Update and verify WSO2 Message Broker 3.1.0 puppet module hiera
>configurations in Mesos platform.
>- Test ESB 5.0.0 puppet module.
>
> [1]. https://github.com/wso2/puppet-modules
> [2]. https://github.com/wso2/mesos-artifacts
>
> Thanks.
>
> --
> Thanuja Uruththirakodeeswaran
> Software Engineer
> WSO2 Inc.;http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 774363167
>



-- 
*Imesh Gunaratne*
Software Architect
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: https://medium.com/@imesh TW: @imesh
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WSO2 IS] Travelocity.com doesnt get deployed on Tomcat 8.0.x

2016-07-12 Thread Harsha Thirimanna
I think there are some issues. I could see that. We need to look in to that.


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

*Lean . Enterprise . Middleware*


On Tue, Jul 12, 2016 at 11:47 AM, Lakshman Udayakantha 
wrote:

> Hi Nadeesha,
>
> I didn't get any SEVERE logs while deploying travelocity app on tomcat
> 8.0.x. Could you please post the errors in localhost*.log file for more
> information.
>
> Thanks
>
> On Tue, Jul 12, 2016 at 11:17 AM, Omindu Rathnaweera 
> wrote:
>
>> Hi Nadeesha,
>>
>> I don't think we have tested travelocity with tomcat 8. Created [1] to
>> track this issue.
>>
>> [1] - https://wso2.org/jira/browse/IDENTITY-4800
>>
>> Regards,
>> Omindu.
>>
>> On Tue, Jul 12, 2016 at 10:39 AM, Nadeesha Gamage 
>> wrote:
>>
>>> Hi Devs,
>>> I have checked-out the travelocity.com sample from the following link
>>> [1], build and deployed it on Tomcat 8.0.x and I get the following error.
>>>
>>> 12-Jul-2016 10:32:26.557 INFO [localhost-startStop-3]
>>> org.apache.catalina.startup.HostConfig.deployWAR Deploying web application
>>> archive D:\Software
>>> Installed\apache-tomcat-8.0.9\webapps\travelocity.com.war
>>> 12-Jul-2016 10:32:28.666 INFO [localhost-startStop-3]
>>> org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned
>>> for TLDs yet contained no TLDs. Enable debug logging for this logger for a
>>> complete list of JARs that were scanned but no TLDs were found in them.
>>> Skipping unneeded JARs during scanning can improve startup time and JSP
>>> compilation time.
>>> 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
>>> org.apache.catalina.core.StandardContext.startInternal Error listenerStart
>>> 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
>>> org.apache.catalina.core.StandardContext.startInternal Context [/
>>> travelocity.com] startup failed due to previous errors
>>>
>>>
>>> [1] https://docs.wso2.com/display/IS510/Downloading+a+Sample
>>>
>>>
>>> Can someone please look into this.
>>>
>>> Thank you,
>>> --
>>> Nadeesha Gamage
>>> Associate Technical Lead - Solutions Engineering
>>> T : +94 77 394 5706
>>> B : https://nadeesha678.wordpress.com/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Omindu Rathnaweera
>> Software Engineer, WSO2 Inc.
>> Mobile: +94 771 197 211
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0714388124*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Web Context path issue

2016-07-12 Thread Chamin Dias
Hi,

We were working on APIMANAGER-5043
 issue (for upcoming APIM
2.0.0 release). The issue was reproduced. We did a background search and
tried the workaround suggested in the Dev mail thread : *[Dev] How to
deploy Jaggery application as web root context*

Unfortunately we were not able to solve the issue by following the
workaround. Any help will be appreciated since we are about the release
APIM 2.0.0 soon.

Thanks.

-- 
Chamin Dias
*Software Engineer*
Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
Email : cham...@wso2.com
Blog : https://chamindias.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WSO2 IS] Travelocity.com doesnt get deployed on Tomcat 8.0.x

2016-07-12 Thread Lakshman Udayakantha
Hi Nadeesha,

I didn't get any SEVERE logs while deploying travelocity app on tomcat
8.0.x. Could you please post the errors in localhost*.log file for more
information.

Thanks

On Tue, Jul 12, 2016 at 11:17 AM, Omindu Rathnaweera 
wrote:

> Hi Nadeesha,
>
> I don't think we have tested travelocity with tomcat 8. Created [1] to
> track this issue.
>
> [1] - https://wso2.org/jira/browse/IDENTITY-4800
>
> Regards,
> Omindu.
>
> On Tue, Jul 12, 2016 at 10:39 AM, Nadeesha Gamage 
> wrote:
>
>> Hi Devs,
>> I have checked-out the travelocity.com sample from the following link
>> [1], build and deployed it on Tomcat 8.0.x and I get the following error.
>>
>> 12-Jul-2016 10:32:26.557 INFO [localhost-startStop-3]
>> org.apache.catalina.startup.HostConfig.deployWAR Deploying web application
>> archive D:\Software
>> Installed\apache-tomcat-8.0.9\webapps\travelocity.com.war
>> 12-Jul-2016 10:32:28.666 INFO [localhost-startStop-3]
>> org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned
>> for TLDs yet contained no TLDs. Enable debug logging for this logger for a
>> complete list of JARs that were scanned but no TLDs were found in them.
>> Skipping unneeded JARs during scanning can improve startup time and JSP
>> compilation time.
>> 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
>> org.apache.catalina.core.StandardContext.startInternal Error listenerStart
>> 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
>> org.apache.catalina.core.StandardContext.startInternal Context [/
>> travelocity.com] startup failed due to previous errors
>>
>>
>> [1] https://docs.wso2.com/display/IS510/Downloading+a+Sample
>>
>>
>> Can someone please look into this.
>>
>> Thank you,
>> --
>> Nadeesha Gamage
>> Associate Technical Lead - Solutions Engineering
>> T : +94 77 394 5706
>> B : https://nadeesha678.wordpress.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Omindu Rathnaweera
> Software Engineer, WSO2 Inc.
> Mobile: +94 771 197 211
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0714388124*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BPS 3.5.1 compatible mysql version

2016-07-12 Thread Hasitha Aravinda
Please find my comments inline.

On Tue, Jul 12, 2016 at 11:27 AM, Vinod Kavinda  wrote:

> Hi Gayan,
> There are separate scripts for mysql 5.5 for bpmn. Have you tried with
> those scripts. You need to run following scripts located at
> /dbscripts/bps/bpmn/create folder.
>
> activiti.mysql55.create.engine.sql
>
> activiti.mysql55.create.history.sql
>
> We have not tested for mysql 5.7 AFAIU.
>
>
> Regards,
>
> Vinod
>
>
>
>
> On Tue, Jul 12, 2016 at 11:19 AM, Gayan Gunarathne 
> wrote:
>
>> Hi,
>>
>> Seems BPS 3.5.1 worked only with mysql 5.6. Got the following
>> incompatibility issues with mysql 5.5 and mysql 5.7.
>> But in the documentation we didn't mention anything about the mysql
>> version[1]. If we are support only mysql 5.6, shall we update the
>> documentation with the compatible mysql version?
>>
>> mysql 5.5 - Syntax incompatibility with BPMN_DB
>>
>> bps_rdbms  | /usr/local/bin/docker-entrypoint.sh: running
>> /docker-entrypoint-initdb.d/bpsdb.sql
>> bps_rdbms  | ERROR 1064 (42000) at line 2052: You have an error in your
>> SQL syntax; check the manual that corresponds to your MySQL server version
>> for the right syntax to use near '(3),
>> bps_rdbms  | primary key (ID_)
>> bps_rdbms  | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin' at
>> line 6
>> bps_rdbms exited with code 1
>>
>
A
​s Vonod mentioned, Activiti has two scripts for MySQL 5.5 and MySQL 5.6. ​


>>
>> mysql 5.7 - Syntax incompatibility  with WSO2_USER_DB
>>
>> bps_rdbms  | /usr/local/bin/docker-entrypoint.sh: running
>> /docker-entrypoint-initdb.d/bpsdb.sql
>> bps_rdbms  | ERROR 1067 (42000) at line 55: Invalid
>> ​​
>> default value for 'REG_CREATED_TIME'
>> bps_rdbms exited with code 1
>>
>
​AFAIK, this is a known issue in kernel db scripts. Kernel registry mysql
script has default timestamp value as 0, which is not supported in MySQL
5.7. This is fixed in latest kernel release.

Thanks,
Hasitha.
​


>
>> [1]https://docs.wso2.com/display/BPS351/Setting+up+MySQL
>>
>> Thanks,
>> Gayan
>>
>> --
>>
>> Gayan Gunarathne
>> Technical Lead, WSO2 Inc. (http://wso2.com)
>> Committer & PMC Member, Apache Stratos
>> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 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
>
>


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