[Dev] GSOC 2016: Proposal 7

2016-08-22 Thread Dinanjana Gunaratne
Dear all,
This[1]

is
the blog post I made for final work product submission. Please have a look.
:)
[1]http://dinanjanagunaratne.blogspot.com/2016/08/during-
past-3-months-i-was-engaged-in.html
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC2016-Contact Development Team Feature

2016-08-22 Thread Kavith Lokuhewage
Hi Nathiesha,

Blog post looks good enough and it provides enough information about the
work you have done.

Please let us know if you find any issues related to submission. Since
tomorrow is the last day for your submission, we can have a meeting today
or tomorrow to clear out any issues.

Please let us know.

Thanks,

*Kavith Lokuhewage*
Senior Software Engineer
WSO2 Inc. - http://wso2.com
lean . enterprise . middleware
Mobile - +94779145123
Linkedin   Twitter


On Sun, Aug 21, 2016 at 11:53 AM, Nathiesha Maddage <
nathieshamadd...@gmail.com> wrote:

> Hi,
>
> This is the link to the blog post regarding my project [1].
> There I have added a brief introduction about the project, and how the
> plugin works. I also added the links to the GitHub repositories. Since it
> was advised to add the URLs of the commits, in the email I got from Google
> regarding the final evaluations, I added the links of my commits as well.
> Please have a look and let me know if the post is good enough for
> submission.
>
> I also created a blog post [2] on the use of the plugin, and added that
> link as well in the above mentioned post[1]. Please let me know whether it
> is good enough or any changes need to be done for that.
>
> [1]. http://nathiesha.blogspot.com/2016/08/contact-
> development-team-feature-in.html
> [2]. http://nathiesha.blogspot.com/2016/08/how-to-make-best-use-of-error-
> reporting.html
>
> Thanks and regards
>
> Nathiesha
>
>
> On Sat, Aug 20, 2016 at 10:13 AM, Nathiesha Maddage <
> nathieshamadd...@gmail.com> wrote:
>
>> Hi ,
>>
>> Thank you for the suggestion. I started writing a blog post with all the
>> repository links in it as you have suggested.
>> I will send the link of the blog post as soon as possible.
>>
>> Thanks and regards
>>
>> Nathiesha
>>
>> On Fri, Aug 19, 2016 at 8:31 AM, Kavith Lokuhewage 
>> wrote:
>>
>>> Hi Nathiesha,
>>>
>>> You already have two standalone github repos for the plugin and
>>> micro-service. Furthermore, you have a fork of devs-kernel repo with the
>>> code for the plugin is merged - the one you have prepared to send the pull
>>> request.
>>>
>>> Since there are multiple places and we cannot submit a single link for
>>> them - in my point of view - the best option is to write a blog post as
>>> they have suggested. You can include the links to individual repos and
>>> forked repo with a filter for your commits. Importantly, you can put the
>>> link for pull request too - once you sent it.
>>>
>>> This way, everyone will have a clear picture of your work and the best
>>> part - what is the final work that is going to be merged into WSO2
>>> repository.
>>>
>>> Thanks,
>>>
>>> *Kavith Lokuhewage*
>>> Senior Software Engineer
>>> WSO2 Inc. - http://wso2.com
>>> lean . enterprise . middleware
>>> Mobile - +94779145123
>>> Linkedin 
>>> Twitter 
>>>
>>> On Thu, Aug 18, 2016 at 11:55 AM, Nathiesha Maddage <
>>> nathieshamadd...@gmail.com> wrote:
>>>
 Hi,

 I have completed almost all of the coding part now, and working with
 fixing a few left errors and tidying the code.

 I plan to submit the plugin project, feature project and the
 documentation as the deliverable.
 For the final submission, I need to upload a URL that contains our
 project. For that Google has provided certain examples such as the link of
 Git Hub commits, a web page or a blog post, public folder in Google Drive
 etc. [1]

 What would be the best way of submission, for our project?

 [1]. https://developers.google.com/open-source/gsoc/help/work-product


 Thanks and regards

 Nathiesha

 On Thu, Aug 11, 2016 at 4:40 PM, Kavith Lokuhewage 
 wrote:

> Hi Nathiesha,
>
> Great! We can have the meeting at 3.00pm to 4.00pm tomorrow. I will
> send the invitation. Meanwhile, please push the latest changes to github
> before the meeting.
>
> Thanks,
>
> *Kavith Lokuhewage*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.com
> lean . enterprise . middleware
> Mobile - +94779145123
> Linkedin 
> Twitter 
>
> On Thu, Aug 11, 2016 at 4:35 PM, Nathiesha Maddage <
> nathieshamadd...@gmail.com> wrote:
>
>> Hi Kavith,
>>
>> I externalized the credentials in micro-service code and implemented
>> the extension point. I plan to start on OSGI services part once I 
>> finalize
>> the remaining small tasks in these sections.
>>
>> How about tomorrow evening for the next meeting? I have lectures in
>> the morning. So it would be easy if we can arrange the meeting after 2 
>> pm.
>>
>> Thanks and 

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

2016-08-22 Thread Osura Rathnayake
Hi Isuru,

I'm fixing issue #6 and  almost done. I will fix other issues soon after
finishing #6.

Thanks,

On Tue, Aug 23, 2016 at 7:50 AM, Isuru Haththotuwa  wrote:

> Hi Osura,
>
> Several issues reported against the membership scheme is still in open
> state [1]. Other than issue 6, all others are straightforward to fix.
> Please fix those asap.
>
> [1]. https://github.com/osuran/azure-membership-scheme/issues
>
> On Sun, Aug 21, 2016 at 1:49 AM, Osura Rathnayake 
> wrote:
>
>> Hi Mentors,
>>
>> current status: I'm trying to implement the deploy.sh by trying to invoke
>> puppet to install product configuration at the startup of a puppet
>> installed VM. But still couldn't come up with a presentable outcome.
>>
>> Thanks,
>>
>> On Thu, Aug 18, 2016 at 11:32 PM, Osura Rathnayake 
>> wrote:
>>
>>> Thank you
>>>
>>>
>>> On Thursday, August 18, 2016, Imesh Gunaratne  wrote:
>>>


 On Thu, Aug 18, 2016 at 7:56 PM, Osura Rathnayake 
 wrote:

> Hi Imesh,
>
> Yes now I understand that creating VM images for each product profile
> will not going to work out.
>
> Can you please give me a step by step guideline on what I should do to
> achieve this?
>

 ​Please refer [1] and [2].

 [1] https://github.com/wso2/puppet-modules
 [2] https://docs.wso2.com/display/PM210/WSO2+Puppet+Modules+Docu
 mentation​


 ​Thanks​

 .
>  Thank you,
>
> On Wed, Aug 17, 2016 at 10:41 PM, Imesh Gunaratne 
> wrote:
>
>>
>>
>> On Wed, Aug 17, 2016 at 10:19 PM, Imesh Gunaratne 
>> wrote:
>>>
>>>
>>> ​There are many spelling mistakes on this file [2], please review it
>>> again.
>>>
>>
>> ​Correction: s/on this file/in this file/g
>>
>> Thanks
>> ​
>>
>>
>>> Overall I see very less attention to detail in this repository and
>>> the membership scheme implementation.
>>>
>>>
 There I mentioned the things that should be kept in mind while
 configuring wso2 AS and did not go in to detail on hot to configure as 
 it
 can be found in the wso2 documentation. Would that be okay?

>>>
>>> ​I don't think this is helpful. Without having detailed steps users
>>> might not be able to do a complete deployment.
>>>
>>> Few questions:
>>>
>>>- How do you create a distributed deployment​
>>>
>>>​of AS ​or any other product (say for an example WSO2 API-M)
>>>with this approach? As I explained earlier creating a VM image per 
>>> product
>>>profile is an unnecessary overhead (time consumption, disk space 
>>> needed,
>>>maintenance, etc).
>>>
>>>- ​What would be the approach of applying​
>>> a patch or do
>>>​ing​
>>>a configuration change in a such deployment?
>>>
>>> ​IMO it is really important to understand the concepts well and
>>> solve problems with the most efficient manner. Otherwise the outcome of
>>> this project might not be usable.
>>>
>>> [2] https://github.com/osuran/azure-artifacts/issues/2
>>>
>>> Thanks
>>>
>>>
 user do not need to change anything in template.json, so should I
 explain the parameters in that too?

 in the paramters.json, except for the vm_image parameter, all of
 the parameters are just for the naming of the elements that you find 
 in a
 VM, for an example, the name of the network interface. Therefore I have
 given instructions on how to set the vm_image parameter.

 current progress: The script which was generated by Azure does not
 have the capability to add a custom VM image. I modified it so that 
 now it
 has that capability. Normally when you login to azure from CLI, it 
 needs
 web interaction to authenticate. I modified deploy.sh in a way that it
 authenticates the user without web interaction, this will be useful if 
 we
 run deploy.sh in a minimal version of linux.

 currently I'm working on adding deployment patterns to deploy.sh
 and undeploy.sh


 [1] https://github.com/osuran/azure-artifacts/tree/master/wso2as

 thank you,

 On Tue, Aug 16, 2016 at 10:10 AM, Isuru Haththotuwa <
 isu...@wso2.com> wrote:

> Hi Osura,
>
> Can you please send an update on the current status?
>
> On Mon, Aug 15, 2016 at 10:11 AM, Isuru Haththotuwa <
> isu...@wso2.com> wrote:
>
>> Hi Osura,
>>
>> Few comments regarding the README:
>>
>>1. Need to mention how to configure the VM with the product

Re: [Dev] [Mesos artifacts] Use Docker --dns and --dns-search for hostname DNS resolution

2016-08-22 Thread Udara Liyanage
Hi,

Container to contianer communication can be done by this as long as we run
a dns server.
However when users/browser wants to access a service running on a container
(say ESB maagement console) don't they have to come via marathon lb? Or
else do the they have to add our dns server to their resolve.conf ?

How about load balancing features such as sticky sessions and round robbing
load balancing. Round robbing load balancing can be done using DNS server
itself, but not sure about sticky session.


On Tue, Aug 23, 2016 at 10:07 AM, Akila Ravihansa Perera  wrote:

> Hi,
>
> Currently we are using Marathon-LB hostname and service ports in product
> configuration when deploying on DC/OS (Apache Mesos). We can set the
> --dns-search and --dns properties and set a DOMAIN and DNS server in
> /etc/resolve.conf to resolve hostnames which are not found in /etc/hosts
> [1].
>
> This is a much cleaner approach than using Marathon-LB hostname and
> service ports. WDYT?
>
>
> [1] https://docs.docker.com/v1.7/articles/networking/#dns
>
> 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
>
>


-- 

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

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


[Dev] [Mesos artifacts] Use Docker --dns and --dns-search for hostname DNS resolution

2016-08-22 Thread Akila Ravihansa Perera
Hi,

Currently we are using Marathon-LB hostname and service ports in product
configuration when deploying on DC/OS (Apache Mesos). We can set the
--dns-search and --dns properties and set a DOMAIN and DNS server in
/etc/resolve.conf to resolve hostnames which are not found in /etc/hosts
[1].

This is a much cleaner approach than using Marathon-LB hostname and service
ports. WDYT?


[1] https://docs.docker.com/v1.7/articles/networking/#dns

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


Re: [Dev] GSoC Project: HTTP Load Balancer on Top of WSO2 Gateway Discussion

2016-08-22 Thread Isuru Ranawaka
Hi Venkat,

As Kasun mentioned you have done great job and thanks for all the hard work
you did. We are looking forward to work with you in future as well.

Thanks


On Tue, Aug 23, 2016 at 2:05 AM, Kasun Indrasiri  wrote:

>
>
> On Thu, Aug 18, 2016 at 9:09 AM, Venkat Raman 
> wrote:
>
>> Hi All,
>>
>> This project has been added to WSO2 Incubator
>>  and I've been
>> given membership to the same :D
>>
>> Would like to thank you all for your kind support and guidance throughout
>> the course of this program.  I learned a lot and my programming and design
>> skills have improved greatly.  I've also started blogging and I am part of
>> VMware Open Source team !!
>>
>> All these were possible because of working in this wonderful project and
>> amazing team ! :)
>>
>> Kindly have a look at my blog posts.  Would love to hear your suggestions.
>>
>> 1) Architecture : https://venkat2811.blogspot.in
>> /2016/08/http-load-balancer-on-top-of-wso2.html
>> 2) Performance: https://venkat2811.blogspot.in
>> /2016/08/http-load-balancer-on-top-of-wso2_18.html
>>
>> I'll also be completing my final evaluations today.  @IsuruR and Kasun,
>> It would be great if both of you could share your feedback with me also :)
>>
>
> Great job Venkat. You showed great passion and commitment througout the
> project. It was a great pleassure to work with you and we would be more
> than happy to work with you in the future. Please keep in touch!
>
> Thanks,
> Kasun
>
>
>
>> Also have a look at this status updates and todo list
>> 
>> document which also available in README.md of the project.  As mentioned
>> earlier will be working with you to make this project production ready.
>>
>> Once again thank you very much for giving me this wonderful opportunity !!
>>
>>
>>
>> *Thanks,*
>> *Venkat.*
>>
>> On Wed, Aug 17, 2016 at 9:09 PM, Venkat Raman 
>> wrote:
>>
>>> Hi Isuru,
>>>
>>> I've written two blog posts:
>>>
>>> 1) One with Project repository and discussion on High level
>>> Architecture, Engine Architecture, message flow and current features.
>>> 2) Other on performance benchmarks.
>>>
>>> It would be great if you could create Incubation repo so that I can
>>> update the URL in the blog post.
>>>
>>>
>>>
>>>
>>> *Thanks,*
>>> *Venkat.*
>>>
>>> On Wed, Aug 17, 2016 at 8:15 PM, Venkat Raman 
>>> wrote:
>>>
 Hi Kasun,

 PFA benchmarks done with OneOutboundEndpoint.




 *Thanks,*
 *Venkat.*

 On Mon, Aug 15, 2016 at 4:41 PM, Venkat Raman 
 wrote:

> Hi Isuru,
>
> Please find 12th week's progress.
>
> 1) Did performance benchmarks based on suggestions from code review.
> 2) Did performance benchmarks on carbon gateway framework.
> 3) Did JFR on gateway framework and LB.
> 4) Found that more the no of Outbound Endpoints, lesser the
> performance.
> 5) Currently writing blog post.
> 6) Graphs added to repo.  Kindly find it here
> 
> and here .
>
>
>
>
> *Thanks,*
> *Venkat.*
>
> On Thu, Aug 11, 2016 at 11:13 PM, Venkat Raman 
> wrote:
>
>> Hi Isuru,
>>
>> In previous email, I've attached JFR for
>>
>> 1) LB (with healthcheck and timeout) with 5 OutboundEPs
>> 2) i-server with 1 OutboundEP
>>
>> In this mail, I'm attaching
>>
>> 1) A very simple light weight mediator written to do load-balancing
>> in round-robin fashion of 5 OutboundEPs
>>
>>
>>
>> *Thanks,*
>> *Venkat.*
>>
>> On Thu, Aug 11, 2016 at 10:21 PM, Venkat Raman 
>> wrote:
>>
>>> Hi Kasun,
>>>
>>> Yes. I looked into JFR. With one endpoint disruptor is the most used.
>>>
>>> With 5 endpoints, HashMap is the most used.
>>>
>>>
>>>
>>>
>>> *Thanks,*
>>> *Venkat.*
>>>
>>> On Thu, Aug 11, 2016 at 10:12 PM, Kasun Indrasiri 
>>> wrote:
>>>
 Venkat.. please check whether this is bounded by the contention in
 a map or something... may be that's why it slows down when we have 
 multiple
 endpoints.

 On Thu, Aug 11, 2016 at 2:43 AM, Venkat Raman  wrote:

> Hi Isuru,
>
> Please find the attached bench mark results that were done today.
> I've used only one OutboundEP for Nginx, LB and i-server.  LB with
> HealthCheck and Timeout features is performing close to i-server.  So 
> based
> on this.. Is number of connections 

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.9 RC1

2016-08-22 Thread Thusitha Thilina Dayaratne
Hi Devs,

We are calling off this vote due to a blocker identified with the h2
database[1]. We will do a rc2 as soon as possible with the fix.
[1] - https://wso2.org/jira/browse/CARBON-16034

Thank You


On Mon, Aug 22, 2016 at 5:57 PM, Madhawa Gunasekara 
wrote:

> Hi Thusitha,
>
> Please find the pull request for h2 database orbit bundle [1]. Pleas
> review and merge it.
>
> [1] https://github.com/wso2/orbit/pull/227
>
> Thanks,
> Madhawa
>
> On Mon, Aug 22, 2016 at 5:47 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Farasath,
>>
>> According to the product-is parent pom.xml[1], you have only added the
>> filter-mapping section. But since filter entry is been removed from the
>> default web.xml (which is packed with kernel) you are getting the "unknown
>> filter name *CRLFPreventionFilter"*
>> We didn't remove that class from the kernel, but the filter and
>> filter-mapping entries from the web.xml. Therefore you have to add the
>> filter entry in your web.xml
>> [1] - https://github.com/wso2/product-is/blob/master/modules/
>> distribution/pom.xml#L122
>>
>> Thanks
>> Thusitha
>>
>> On Mon, Aug 22, 2016 at 3:08 PM, Farasath Ahamed 
>> wrote:
>>
>>> Hi All,
>>>
>>> While starting an IS pack built on 4.4.9 we encountered the below error,
>>>
>>> [2016-08-22 13:27:23,225] ERROR {org.apache.catalina.core.ContainerBase}
>>> -  A child container failed during start
>>> java.util.concurrent.ExecutionException: 
>>> org.apache.catalina.LifecycleException:
>>> Failed to start component [StandardEngine[Catalina].Stan
>>> dardHost[localhost].StandardContext[/]]
>>> at java.util.concurrent.FutureTask.report(FutureTask.java:122)
>>> at java.util.concurrent.FutureTask.get(FutureTask.java:192)
>>> at org.apache.catalina.core.ContainerBase.startInternal(Contain
>>> erBase.java:1119)
>>> at org.apache.catalina.core.StandardHost.startInternal(Standard
>>> Host.java:819)
>>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
>>> at org.apache.catalina.core.ContainerBase$StartChild.call(Conta
>>> inerBase.java:1571)
>>> at org.apache.catalina.core.ContainerBase$StartChild.call(Conta
>>> inerBase.java:1561)
>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>>> Executor.java:1142)
>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>>> lExecutor.java:617)
>>> at java.lang.Thread.run(Thread.java:745)
>>> Caused by: org.apache.catalina.LifecycleException: Failed to start
>>> component [StandardEngine[Catalina].StandardHost[localhost].StandardCo
>>> ntext[/]]
>>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
>>> ... 6 more
>>> Caused by: java.lang.IllegalArgumentException: Filter mapping specifies
>>> an unknown filter name *CRLFPreventionFilter*
>>> at org.apache.catalina.core.StandardContext.validateFilterMap(S
>>> tandardContext.java:3205)
>>> at org.apache.catalina.core.StandardContext.addFilterMap(Standa
>>> rdContext.java:3170)
>>> at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1343)
>>> at org.apache.catalina.startup.ContextConfig.webConfig(ContextC
>>> onfig.java:1355)
>>> at org.apache.catalina.startup.ContextConfig.configureStart(Con
>>> textConfig.java:887)
>>> at org.apache.catalina.startup.ContextConfig.lifecycleEvent(Con
>>> textConfig.java:387)
>>> at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
>>> (LifecycleSupport.java:117)
>>> at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(Li
>>> fecycleBase.java:90)
>>> at org.apache.catalina.core.StandardContext.startInternal(Stand
>>> ardContext.java:5503)
>>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
>>>
>>>
>>> We found the root cause to be missing filter entries/mappings for
>>> CRLFPreventionFilter, CSRFPreventionFilter which have been removed from
>>> web.xml packed from the kernel 4.4.9[1]. These entries were available in
>>> kernel 4.4.7[2].
>>>
>>> We can fix this at IS level by modifying the pom.xml of the
>>> distribution. But isn't this an API change that should not be done in a
>>> minor release?
>>> Was this communicated to the product teams?
>>>
>>>
>>> [1] https://github.com/wso2/carbon-kernel/blob/v4.4.9-rc1/di
>>> stribution/kernel/carbon-home/repository/conf/tomcat/carbon/
>>> WEB-INF/web.xml
>>> [2] https://github.com/wso2/carbon-kernel/blob/v4.4.7/distri
>>> bution/kernel/carbon-home/repository/conf/tomcat/carbon/WEB-
>>> INF/web.xml#L73
>>>
>>>
>>> Thanks,
>>>
>>> Farasath Ahamed
>>> Software Engineer, WSO2 Inc.; http://wso2.com
>>> Mobile: +94777603866
>>> Blog: blog.farazath.com
>>> Twitter: @farazath619 
>>> 
>>>
>>>
>>>
>>> On Mon, Aug 22, 2016 at 1:17 PM, Madhawa Gunasekara 
>>> wrote:
>>>
 Hi All,

 I couldn't able to build product DSS with kernel 4.4.9 RC1 due to some
 

Re: [Dev] How to configure Analytics cluster with MB 3.2.0 cluster?

2016-08-22 Thread Sashika Wijesinghe
@ Isuru and Mohan - Thanks for the detailed information.

@ Mohan, In the event receivers in DAS nodes, "event duplicated in cluster"
property is set to "false". Therefore as you suggested I will
configure load balancing or fail over cluster for analytics.

Regards,
Sashika

On Tue, Aug 23, 2016 at 1:13 AM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

>
>
> On Tue, Aug 23, 2016 at 12:56 AM, Isuru Perera  wrote:
>
>> Hi,
>>
>> Do you need to publish data to multiple receiver nodes? You should be
>> able to use multiple Receiver URLs. Metrics uses the Data Publisher API.
>> Please check [1].
>>
>> I think it's better to ask from DAS team.
>>
>> [1] https://docs.wso2.com/display/CEP420/Setting+up+Multi+Receiv
>> er+and+Load+Balancing+Data+Agent
>>
>
> +1..
>
> @Sashika, how did you configured the event receiver in DAS side ? what is
> the value for "events duplicated in cluster" property ? Based on that
> property you have to configure DAS urls.. If this property is true then you
> have to use option [1]
> 
> .. If this property is false then you can use load balancing or fail over
> options which send events only to one node at a time..
>
> Thanks,
> Mohan
>
>
>>
>>
>> On Mon, Aug 22, 2016 at 8:45 PM, Sashika Wijesinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> I have a requirement to connect Analytics cluster with the MB cluster
>>> (MB 3.2.0 M2).
>>>
>>> To connect a single analytics node with MB 3.2.0 pack, there is a
>>> configuration [1] in the metrics.xml file  to provide the data receiver URL
>>> of the analytics node.
>>> When Configuring analytics cluster, I have used the minimum HA
>>> deployment [2]. May I know how to configure the two analytics data receiver
>>> nodes with MB to publish stats?
>>>
>>> [1]
>>> 
>>> true
>>> 
>>> 
>>> 
>>> 60
>>> 
>>> thrift
>>> 
>>> tcp://localhost:7612
>>> 
>>> 
>>> admin
>>> admin
>>> 
>>> repository/conf/data-bridge/data-agent-
>>> config.xml
>>> 
>>>
>>> [2] https://docs.wso2.com/display/CLUSTER44x/Minimum+High+Av
>>> ailability+Deployment+-+DAS+3.0.1
>>>
>>> Thanks
>>>
>>> --
>>>
>>> *Sashika WijesingheSoftware Engineer - QA Team*
>>> Mobile : +94 (0) 774537487
>>> sash...@wso2.com
>>>
>>
>>
>>
>> --
>> Isuru Perera
>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>> Contact: +IsuruPereraWSO2 
>>
>
>
>
> --
> *V. Mohanadarshan*
> *Associate Tech Lead,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Calling Basic Auth Backend from ESB

2016-08-22 Thread Akalanka Pagoda Arachchi
Moving this to Support-Dev List ("Calling DSS Basic Auth Backend from
ESB"). This is working when calling secure Proxy Service but does not work
when calling Secure DSS services. Therefore, might be specific to the
scenario.

Thanks,
Akalanka.

On Sun, Aug 21, 2016 at 10:44 PM, Akalanka Pagoda Arachchi <
darsha...@wso2.com> wrote:

> Hi All,
>
> I am having trouble calling basic Auth backend from ESB 4.9.0. I have a
> DSS service secured by basic Auth using the attached WS Policy file
> (WSPolicy-UsernameToken.xml).
>
> I can call this service successfully from SOAP UI by adding
> 'Authorization' header.
>
> To call this service from ESB I went through few examples on the web as
> [1] which explain to add a property with the 'Authorization' details. When
> I use the Call Mediator and invoke the secure DSS service using this
> method, I am getting HTTP 500 with below soap fault. There are no
> errors/logs on DSS server.
>
> http://www.w3.org/2003/05/soap-envelope;>
>
>
>   http://docs.oasis-open.org/wss/2004/01/oasis-200
> 401-wss-wssecurity-secext-1.0.xsd">
>  http://docs.oasis-open.org/wss/2004/01/oasis-2004
> 01-wss-wssecurity-utility-1.0.xsd">
> 2016-08-22T03:27:59.437Z
> 2016-08-22T03:32:59.437Z
>  
>   
>
>
>   
>  
> soapenv:Receiver
>  
>  
> InvalidSecurity
>  
>  
>   
>
> 
>
> I enabled the wire logs from ESB and 'Authorization' header is available
> in the outgoing message.
> I logged the 'Authorization' header from DSS and it is properly received
> from the DSS as well.
>
> Looks to me like I'm doing this wrong but cannot figure out what. Any help
> is much appreciated.
>
>
> [1] - http://xacmlinfo.org/2014/08/20/how-to-esb-invoking-
> basic-auth-secured-backend-service/
> ​
>  WSPolicy-UsernameToken.xml
> 
> ​
>
> Thanks,
> Akalanka.
>
> --
> *Darshana Akalanka Pagoda Arachchi,*
> *Software Engineer, WSO2*
> *+94777118016 <%2B94777118016>*
>



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


Re: [Dev] My GSoC experience - GSoC students please read!

2016-08-22 Thread Imesh Gunaratne
Hi Abhishek,

Thanks for your feedback! We are really sorry to hear what you experienced.

We at WSO2, participated in GSoC for many years now with the intention of
giving students opportunities to contribute to open source projects for the
benefit of the entire community. This allows students to learn how open
source communities work, new technologies related to their academic
pursuits, give exposure to real world software development processes, etc.
In the open source world, there is no labour concept, no one is paid for
doing open source work. If someone is willing to contribute, they are most
welcome to share their ideas and send contributions. GSoC program is trying
to give opportunities for students to experience this and be a part of it
[3]. If you do not like that idea, you should have opted out of this
project at the very early stages.

The GSoC Student Guide [4] has explained clearly how students should work
with mentors and what to expect from them. Mentors are voluntarily
contributing their time to GSoC projects with the intention of adding value
to open source projects. They do this while working on many other things.
Therefore delays in meetings and such occurrences may happen due to
unavoidable circumstances. Please accept our apologies for any
inconveniences caused in that regard. Please feel free to refer [5], [6],
[7], [8], [9], [10] on how WSO2 community and your mentors have appreciated
your contributions then and there.

Changing requirements is part and parcel of software projects and software
world. However we believe that we did our very best to keep the high level
requirements of the project fixed. On high level, the main goal of this
project was to implement a test framework to invoke bash scripts provided
in WSO2 Dockerfiles and K8S Artifacts repositories for verifying WSO2
container images. As we believe that is a straightforward goal and nothing
much need to be changed at the middle of the project except for refinements.

[3]
http://write.flossmanuals.net/gsocstudentguide/what-is-google-summer-of-code/
[4] http://write.flossmanuals.net/gsocstudentguide/working-with-your-mentor/

[5] [DEV] [GSoC Dockerfiles] Project update - Migration to Golang,
http://mail.wso2.org/mailarchive/dev/2016-July/065571.html
[6] [Dev] [GSoC Dockerfiles] Added ability to run smoke tests from test
framework, http://mail.wso2.org/mailarchive/dev/2016-August/066879.html
[7] [Dev] GSoC Dockerfiles weekly status meeting minutes,
http://mail.wso2.org/mailarchive/dev/2016-May/063294.html
[8] [Dev] [GSoC Dockerfiles] Status update,
http://mail.wso2.org/mailarchive/dev/2016-June/065107.html
[9] [Dev] [DEV] [GSoC] Meeting minutes from Dockerfiles test framework
demo, http://mail.wso2.org/mailarchive/dev/2016-June/065162.html
[10] [GSoC Dockerfiles] Meeting minutes,
http://mail.wso2.org/mailarchive/dev/2016-July/066247.html

Thanks

On Mon, Aug 22, 2016 at 2:06 AM, Abhishek Tiwari <
abhishek.tiwari0...@gmail.com> wrote:

> Hello Everyone,
>
> There are some organizations that looks at GSoC as getting free labour and
> use it to get as much done as they can within 3 months time, WSO2 is one of
> them. I was working 60 hours a week and never received any appreciation
> from mentors. It was very disappointing but I always kept a positive
> attitude and tried to meet all the deadlines. Mentors were very
> unprofessional, they would agree on a meeting time and then never show up,
> or they would keep delaying the meeting saying there is another meeting (I
> have chat and emails to prove that). They never even cared to send an email
> about it, there were so many such incidents, where I ended up waiting
> hours. New requirements kept coming as they wanted to get as much work as
> possible. There was no feedback on code so I did not learn anything from
> code perspective, then just before 2 days mentor provided comments which
> changed everything and I had rewrite most of it. The expectations from WSO2
> were completely unrealistic from a student point of view. I sincerely hope
> that Google looks into it.
>
> Yesterday I was having a hangout call (over a weekend) to discuss the
> newly created issues and I was trying to convince that I should work on the
> high priority issue rather than changing the whole codebase and
> architecture because there is an extra JSON parameter [2]. My mentor
> shouted at me and threatened to fail me in the evaluation. This is very
> disheartening as I have worked so hard on this project. My college is
> already started and I am taking  leaves to work on the project. If anyone
> else has experienced similar situations in WSO2, I would recommend reaching
> out to GSoC officials as I have done already.
>
> I am a 19 year old, first year engineering student (Freshman). All these
> skills I learnt by myself. In the span of GSoC project, I had to learn
> Docker, Dockerfiles, Puppet, Kubernetes, Bash scripting, Go language, WSO2
> codebase and many other things. It is evident from the code 

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

2016-08-22 Thread Isuru Haththotuwa
Hi Osura,

Several issues reported against the membership scheme is still in open
state [1]. Other than issue 6, all others are straightforward to fix.
Please fix those asap.

[1]. https://github.com/osuran/azure-membership-scheme/issues

On Sun, Aug 21, 2016 at 1:49 AM, Osura Rathnayake 
wrote:

> Hi Mentors,
>
> current status: I'm trying to implement the deploy.sh by trying to invoke
> puppet to install product configuration at the startup of a puppet
> installed VM. But still couldn't come up with a presentable outcome.
>
> Thanks,
>
> On Thu, Aug 18, 2016 at 11:32 PM, Osura Rathnayake 
> wrote:
>
>> Thank you
>>
>>
>> On Thursday, August 18, 2016, Imesh Gunaratne  wrote:
>>
>>>
>>>
>>> On Thu, Aug 18, 2016 at 7:56 PM, Osura Rathnayake 
>>> wrote:
>>>
 Hi Imesh,

 Yes now I understand that creating VM images for each product profile
 will not going to work out.

 Can you please give me a step by step guideline on what I should do to
 achieve this?

>>>
>>> ​Please refer [1] and [2].
>>>
>>> [1] https://github.com/wso2/puppet-modules
>>> [2] https://docs.wso2.com/display/PM210/WSO2+Puppet+Modules+Docu
>>> mentation​
>>>
>>>
>>> ​Thanks​
>>>
>>> .
  Thank you,

 On Wed, Aug 17, 2016 at 10:41 PM, Imesh Gunaratne 
 wrote:

>
>
> On Wed, Aug 17, 2016 at 10:19 PM, Imesh Gunaratne 
> wrote:
>>
>>
>> ​There are many spelling mistakes on this file [2], please review it
>> again.
>>
>
> ​Correction: s/on this file/in this file/g
>
> Thanks
> ​
>
>
>> Overall I see very less attention to detail in this repository and
>> the membership scheme implementation.
>>
>>
>>> There I mentioned the things that should be kept in mind while
>>> configuring wso2 AS and did not go in to detail on hot to configure as 
>>> it
>>> can be found in the wso2 documentation. Would that be okay?
>>>
>>
>> ​I don't think this is helpful. Without having detailed steps users
>> might not be able to do a complete deployment.
>>
>> Few questions:
>>
>>- How do you create a distributed deployment​
>>
>>​of AS ​or any other product (say for an example WSO2 API-M) with
>>this approach? As I explained earlier creating a VM image per product
>>profile is an unnecessary overhead (time consumption, disk space 
>> needed,
>>maintenance, etc).
>>
>>- ​What would be the approach of applying​
>> a patch or do
>>​ing​
>>a configuration change in a such deployment?
>>
>> ​IMO it is really important to understand the concepts well and solve
>> problems with the most efficient manner. Otherwise the outcome of this
>> project might not be usable.
>>
>> [2] https://github.com/osuran/azure-artifacts/issues/2
>>
>> Thanks
>>
>>
>>> user do not need to change anything in template.json, so should I
>>> explain the parameters in that too?
>>>
>>> in the paramters.json, except for the vm_image parameter, all of the
>>> parameters are just for the naming of the elements that you find in a 
>>> VM,
>>> for an example, the name of the network interface. Therefore I have 
>>> given
>>> instructions on how to set the vm_image parameter.
>>>
>>> current progress: The script which was generated by Azure does not
>>> have the capability to add a custom VM image. I modified it so that now 
>>> it
>>> has that capability. Normally when you login to azure from CLI, it needs
>>> web interaction to authenticate. I modified deploy.sh in a way that it
>>> authenticates the user without web interaction, this will be useful if 
>>> we
>>> run deploy.sh in a minimal version of linux.
>>>
>>> currently I'm working on adding deployment patterns to deploy.sh and
>>> undeploy.sh
>>>
>>>
>>> [1] https://github.com/osuran/azure-artifacts/tree/master/wso2as
>>>
>>> thank you,
>>>
>>> On Tue, Aug 16, 2016 at 10:10 AM, Isuru Haththotuwa >> > wrote:
>>>
 Hi Osura,

 Can you please send an update on the current status?

 On Mon, Aug 15, 2016 at 10:11 AM, Isuru Haththotuwa <
 isu...@wso2.com> wrote:

> Hi Osura,
>
> Few comments regarding the README:
>
>1. Need to mention how to configure the VM with the product
>pack and JDK for Azure
>2. There are lot of parameters in the template and parameters
>json files; please explain what a user needs to change there.
>3. The deploy script should be able to handle both standalone
>and distributed deployment pattern for the product. Refer to K8s 
> 

Re: [Dev] [DEV] [Mepin Authenticator] Problem while sending URL parameters using POST method

2016-08-22 Thread Malaka Silva
Hi Biruntha,

Good investigation on this matter. However we are not sure the impact of
this change. Can you create a jira [1] and add the PR so that IS team can
verify this in coming releases?

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

On Mon, Aug 22, 2016 at 6:04 PM, Biruntha Gnaneswaran 
wrote:

> Hi All,
>
> While posting a form from Mepin Authenticator to Authentication endpoint,
> [1] will be executed. So it goes to [2]. From that method, it only support
> for url redirecting not support for form posting. So, I replace the logic
> [3] by [4]. Now it is working fine .So, To support post request in
> authentication endpoint, we need to modify sso-saml module.
>
> [1] - https://github.com/wso2/carbon-identity/blob/master/
> components/sso-saml/org.wso2.carbon.identity.sso.saml/src/
> main/java/org/wso2/carbon/identity/sso/saml/servlet/
> SAMLSSOProviderServlet.java#L157-#L161
>
> [2] - https://github.com/wso2/carbon-identity/blob/master/
> components/sso-saml/org.wso2.carbon.identity.sso.saml/src/
> main/java/org/wso2/carbon/identity/sso/saml/servlet/
> SAMLSSOProviderServlet.java#L980
>
> [3] - https://github.com/wso2/carbon-identity/blob/master/
> components/sso-saml/org.wso2.carbon.identity.sso.saml/src/
> main/java/org/wso2/carbon/identity/sso/saml/servlet/
> SAMLSSOProviderServlet.java#L992
>
> [4] - https://github.com/wso2/carbon-identity/blob/master/
> components/sso-saml/org.wso2.carbon.identity.sso.saml/src/
> main/java/org/wso2/carbon/identity/sso/saml/servlet/
> SAMLSSOProviderServlet.java#L1031-#L1035
>
>
> Thanks,
>
> Biruntha
>
> Associate Software Engineer
> WSO2
> Email : birun...@wso2.com
> Linkedin : https://lk.linkedin.com/in/biruntha
> Mobile : +94773718986
>
> On Fri, Aug 12, 2016 at 10:18 PM, Biruntha Gnaneswaran 
> wrote:
>
>> Hi All,
>>
>>
>> To solve the issue in $subject, i tried to post a html form from
>> Authenticator to mepin.jsp using [1]. But still i couldn't solve that
>> issue. It's again redirected to [2].
>> Can anyone help me to solve this issue?
>>
>> [1]
>>
>> response.setContentType(*"text/html"*);java.io.PrintWriter out = 
>> response.getWriter();
>> out.println(*""*);out.println(*""*);out.println(*">  name=**\"**loginform**\"* *method=**\"**post**\"* 
>> *action=**\"**/mepinauthenticationendpoint/mepin.jsp**\"**>"*);out.println(*">  type=**\"**hidden**\"* *id=**\"**param1**\"* *name=**\"**param1**\"* 
>> *value=**\"**"*+param1+*"**\"**/>"*);out.println(*"> type=**\"**hidden**\"* *id=**\"**param2**\"* *name=**\"**param2**\"* 
>> *value=**\"**"*+param2+*"**\"**/>"*);out.println(*""*);
>>
>> [2] https://localhost:9443/samlsso
>>
>> Thanks,
>>
>> Biruntha
>>
>> Associate Software Engineer
>> WSO2
>> Email : birun...@wso2.com
>> Linkedin : https://lk.linkedin.com/in/biruntha
>> Mobile : +94773718986
>>
>> On Fri, Jul 29, 2016 at 11:46 PM, Biruntha Gnaneswaran > > wrote:
>>
>>> Hi Devs,
>>>
>>> In Mepin authenticator, some URL parameters are send to Mepin UI page
>>> using GET method [1]. When I try to send these parameters via POST method
>>> using HttpURLConnection class [2], it redirects to [3] not to the
>>> actual Mepin UI page. While I try, I got the following Log .
>>>
>>> [2016-07-29 23:30:00,903] DEBUG {org.wso2.carbon.identity.appl
>>> ication.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
>>> - In authentication flow
>>>
>>> [2016-07-29 23:30:00,903] DEBUG {org.wso2.carbon.identity.appl
>>> ication.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>>> - Executing the Step Based Authentication...
>>>
>>> [2016-07-29 23:30:00,903] DEBUG {org.wso2.carbon.identity.appl
>>> ication.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>>> - Starting Step: 1
>>>
>>> [2016-07-29 23:30:00,903] DEBUG {org.wso2.carbon.identity.appl
>>> ication.authentication.framework.util.FrameworkUtils} - Finding already
>>> authenticated IdPs of the Step
>>>
>>> [2016-07-29 23:30:00,903] DEBUG {org.wso2.carbon.identity.appl
>>> ication.authentication.framework.handler.step.impl.DefaultStepHandler}
>>> - Receive a response from the external party
>>>
>>> [2016-07-29 23:30:00,903] DEBUG {org.wso2.carbon.identity.appl
>>> ication.authentication.framework.handler.step.impl.DefaultStepHandler}
>>> - BasicAuthenticator can handle the request.
>>>
>>> [2016-07-29 23:30:00,929] DEBUG {org.wso2.carbon.identity.appl
>>> ication.authentication.framework.handler.step.impl.DefaultStepHandler}
>>> - BasicAuthenticator returned: SUCCESS_COMPLETED
>>>
>>> [2016-07-29 23:30:00,930] DEBUG {org.wso2.carbon.identity.appl
>>> ication.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>>> - Step 1 is completed. Going to get the next one.
>>>
>>> [2016-07-29 23:30:00,930] DEBUG {org.wso2.carbon.identity.appl
>>> ication.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>>> - Starting Step: 2
>>>

Re: [Dev] GSoC Project: HTTP Load Balancer on Top of WSO2 Gateway Discussion

2016-08-22 Thread Kasun Indrasiri
On Thu, Aug 18, 2016 at 9:09 AM, Venkat Raman  wrote:

> Hi All,
>
> This project has been added to WSO2 Incubator
>  and I've been
> given membership to the same :D
>
> Would like to thank you all for your kind support and guidance throughout
> the course of this program.  I learned a lot and my programming and design
> skills have improved greatly.  I've also started blogging and I am part of
> VMware Open Source team !!
>
> All these were possible because of working in this wonderful project and
> amazing team ! :)
>
> Kindly have a look at my blog posts.  Would love to hear your suggestions.
>
> 1) Architecture : https://venkat2811.blogspot.
> in/2016/08/http-load-balancer-on-top-of-wso2.html
> 2) Performance: https://venkat2811.blogspot.in/2016/08/http-load-balancer-
> on-top-of-wso2_18.html
>
> I'll also be completing my final evaluations today.  @IsuruR and Kasun,
> It would be great if both of you could share your feedback with me also :)
>

Great job Venkat. You showed great passion and commitment througout the
project. It was a great pleassure to work with you and we would be more
than happy to work with you in the future. Please keep in touch!

Thanks,
Kasun



> Also have a look at this status updates and todo list
> 
> document which also available in README.md of the project.  As mentioned
> earlier will be working with you to make this project production ready.
>
> Once again thank you very much for giving me this wonderful opportunity !!
>
>
>
> *Thanks,*
> *Venkat.*
>
> On Wed, Aug 17, 2016 at 9:09 PM, Venkat Raman 
> wrote:
>
>> Hi Isuru,
>>
>> I've written two blog posts:
>>
>> 1) One with Project repository and discussion on High level Architecture,
>> Engine Architecture, message flow and current features.
>> 2) Other on performance benchmarks.
>>
>> It would be great if you could create Incubation repo so that I can
>> update the URL in the blog post.
>>
>>
>>
>>
>> *Thanks,*
>> *Venkat.*
>>
>> On Wed, Aug 17, 2016 at 8:15 PM, Venkat Raman 
>> wrote:
>>
>>> Hi Kasun,
>>>
>>> PFA benchmarks done with OneOutboundEndpoint.
>>>
>>>
>>>
>>>
>>> *Thanks,*
>>> *Venkat.*
>>>
>>> On Mon, Aug 15, 2016 at 4:41 PM, Venkat Raman 
>>> wrote:
>>>
 Hi Isuru,

 Please find 12th week's progress.

 1) Did performance benchmarks based on suggestions from code review.
 2) Did performance benchmarks on carbon gateway framework.
 3) Did JFR on gateway framework and LB.
 4) Found that more the no of Outbound Endpoints, lesser the performance.
 5) Currently writing blog post.
 6) Graphs added to repo.  Kindly find it here
 
 and here .




 *Thanks,*
 *Venkat.*

 On Thu, Aug 11, 2016 at 11:13 PM, Venkat Raman 
 wrote:

> Hi Isuru,
>
> In previous email, I've attached JFR for
>
> 1) LB (with healthcheck and timeout) with 5 OutboundEPs
> 2) i-server with 1 OutboundEP
>
> In this mail, I'm attaching
>
> 1) A very simple light weight mediator written to do load-balancing in
> round-robin fashion of 5 OutboundEPs
>
>
>
> *Thanks,*
> *Venkat.*
>
> On Thu, Aug 11, 2016 at 10:21 PM, Venkat Raman 
> wrote:
>
>> Hi Kasun,
>>
>> Yes. I looked into JFR. With one endpoint disruptor is the most used.
>>
>> With 5 endpoints, HashMap is the most used.
>>
>>
>>
>>
>> *Thanks,*
>> *Venkat.*
>>
>> On Thu, Aug 11, 2016 at 10:12 PM, Kasun Indrasiri 
>> wrote:
>>
>>> Venkat.. please check whether this is bounded by the contention in a
>>> map or something... may be that's why it slows down when we have 
>>> multiple
>>> endpoints.
>>>
>>> On Thu, Aug 11, 2016 at 2:43 AM, Venkat Raman 
>>> wrote:
>>>
 Hi Isuru,

 Please find the attached bench mark results that were done today.
 I've used only one OutboundEP for Nginx, LB and i-server.  LB with
 HealthCheck and Timeout features is performing close to i-server.  So 
 based
 on this.. Is number of connections causing overhead ?

 In previous tests also, only one OutboundEP was used for
 benchmarking i-server against 5 OutboundEPs for Nginx and GW-LB.

 Even JFR results of  i-server and LB are similar.  Contentions and
 Latency occurring in LB are occurring in LB also.

 Also please find the attached JFR files.




 

Re: [Dev] How to configure Analytics cluster with MB 3.2.0 cluster?

2016-08-22 Thread Mohanadarshan Vivekanandalingam
On Tue, Aug 23, 2016 at 12:56 AM, Isuru Perera  wrote:

> Hi,
>
> Do you need to publish data to multiple receiver nodes? You should be able
> to use multiple Receiver URLs. Metrics uses the Data Publisher API. Please
> check [1].
>
> I think it's better to ask from DAS team.
>
> [1] https://docs.wso2.com/display/CEP420/Setting+up+Multi+
> Receiver+and+Load+Balancing+Data+Agent
>

+1..

@Sashika, how did you configured the event receiver in DAS side ? what is
the value for "events duplicated in cluster" property ? Based on that
property you have to configure DAS urls.. If this property is true then you
have to use option [1]

.. If this property is false then you can use load balancing or fail over
options which send events only to one node at a time..

Thanks,
Mohan


>
>
> On Mon, Aug 22, 2016 at 8:45 PM, Sashika Wijesinghe 
> wrote:
>
>> Hi All,
>>
>> I have a requirement to connect Analytics cluster with the MB cluster (MB
>> 3.2.0 M2).
>>
>> To connect a single analytics node with MB 3.2.0 pack, there is a
>> configuration [1] in the metrics.xml file  to provide the data receiver URL
>> of the analytics node.
>> When Configuring analytics cluster, I have used the minimum HA deployment
>> [2]. May I know how to configure the two analytics data receiver nodes with
>> MB to publish stats?
>>
>> [1]
>> 
>> true
>> 
>> 
>> 
>> 60
>> 
>> thrift
>> 
>> tcp://localhost:7612
>> 
>> 
>> admin
>> admin
>> 
>> repository/conf/data-bridge/data-agent-
>> config.xml
>> 
>>
>> [2] https://docs.wso2.com/display/CLUSTER44x/Minimum+High+
>> Availability+Deployment+-+DAS+3.0.1
>>
>> Thanks
>>
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>
>
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 
>



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

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


Re: [Dev] How to configure Analytics cluster with MB 3.2.0 cluster?

2016-08-22 Thread Isuru Perera
Hi,

Do you need to publish data to multiple receiver nodes? You should be able
to use multiple Receiver URLs. Metrics uses the Data Publisher API. Please
check [1].

I think it's better to ask from DAS team.

[1]
https://docs.wso2.com/display/CEP420/Setting+up+Multi+Receiver+and+Load+Balancing+Data+Agent

On Mon, Aug 22, 2016 at 8:45 PM, Sashika Wijesinghe 
wrote:

> Hi All,
>
> I have a requirement to connect Analytics cluster with the MB cluster (MB
> 3.2.0 M2).
>
> To connect a single analytics node with MB 3.2.0 pack, there is a
> configuration [1] in the metrics.xml file  to provide the data receiver URL
> of the analytics node.
> When Configuring analytics cluster, I have used the minimum HA deployment
> [2]. May I know how to configure the two analytics data receiver nodes with
> MB to publish stats?
>
> [1]
> 
> true
> 
> 
> 
> 60
> 
> thrift
> 
> tcp://localhost:7612
> 
> 
> admin
> admin
> 
> repository/conf/data-bridge/
> data-agent-config.xml
> 
>
> [2] https://docs.wso2.com/display/CLUSTER44x/Minimum+
> High+Availability+Deployment+-+DAS+3.0.1
>
> Thanks
>
> --
>
> *Sashika WijesingheSoftware Engineer - QA Team*
> Mobile : +94 (0) 774537487
> sash...@wso2.com
>



-- 
Isuru Perera
Associate Technical Lead | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
Contact: +IsuruPereraWSO2 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC Final Evaluation] Proposal 21: [IS] Document Based NoSQL Support for WSO2 Identity Server Database

2016-08-22 Thread Asantha Thilina
Hi all,

I have prepared my final report in GSoC[1] and there i have added all my
repositories,PR,blog posts,documents and mail threads and i have prepared a
final blog post here[2] mentioning all my experience in GSoC 2016

[1] https://asanthamax.github.io/mongodbuserstore/
[2] http://asanthamax.blogspot.com/2016/08/my-gsoc-final-summary.html

Thanks,
Asantha


On Sat, Aug 20, 2016 at 1:23 AM, Asantha Thilina 
wrote:

> Hi Chamila,
>
> I have added new pull requests to orbit[1] for new org.json version
>
> [1]https://github.com/wso2/orbit/pull/225
>
> thanks,
> Asantha
>
> On Fri, Aug 19, 2016 at 9:58 PM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Asantha,
>>
>> For creating new orbit, you will have to send 1 PR to wso2/orbit
>> repository[1] as well. There inside json folder, you'll have to define a
>> new json orbit with new version (eg: 3.0.0wso2v2) and there you will have
>> to refer the new json version you are depending on.
>>
>> In your PR, you are referring to 3.0.0wso2v1 which is depending on the
>> older version we are talking about. So this will still cause the issue you
>> are talking.
>>
>> Thank You!
>>
>> On Sat, Aug 20, 2016 at 12:47 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Johann,
>>>
>>> first of all ,sorry for the late reply earlier i wasn't added org.json
>>> to bundleDef now i have fixed the issue and i have added new orbit as
>>> chamila mentioned for org.json as defined in here[1] i have added version
>>> 20160212 because version 20140107  which is already in IS causing some
>>> problems for my userstore methods even it successfully deployed ,after
>>> adding version 20160212 solved the issue now my userstore is deploy
>>> org.json  20160212  also to the IS during packaging and i have updated
>>> the PR[2] with the latest modifications
>>>
>>> [1]https://github.com/wso2/orbit/blob/master/json/3.0.0.wso2v1/pom.xml
>>> [2]https://github.com/wso2-extensions/identity-userstore-mongodb/pull/1
>>>
>>> thanks,
>>> Asantha
>>>
>>> On Fri, Aug 19, 2016 at 5:45 AM, Johann Nallathamby 
>>> wrote:
>>>
 Hi Asantha,

 As Chamila mentioned you need to bundle the required library in your
 feature as well, so that it is self contained, and can be installed
 independently in any carbon server.

 Have you added that in your PR? I couldn't see a bundleDef for org.json.

 Regards,
 Johann.

 On Fri, Aug 19, 2016 at 3:04 PM, Asantha Thilina <
 asanthathil...@gmail.com> wrote:

> Hi all,
>
> First of all let me apologize for the late reply ,I have changed the
> org.json version as chamila said and now it's working no need to add json
> lib manually and version changed will not affected to any of my code i 
> have
> updated the PR[1] with latest modifications now it's need
> mongodb-java-driver only to run the module no other extra library required
>
> [1]https://github.com/wso2-extensions/identity-userstore-mon
> godb/pull/1
>
> Thanks,
> Asantha
>
> On Fri, Aug 19, 2016 at 1:26 AM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Asantha,
>>
>> If you have used any new features of org.json which is not available
>> in that old version, I think you will have to create an orbit with new
>> org.json version.
>>
>> And I think it (either new or old version) need to be packed in your
>> feature, so it can be installed into any carbon based product.
>>
>> Thanks!
>>
>> On Fri, Aug 19, 2016 at 3:17 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Chamila,
>>>
>>> ok thanks for the comment then i will change the version of my
>>> dependency and test it
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Fri, Aug 19, 2016 at 1:13 AM, Chamila Wijayarathna <
>>> cdwijayarat...@gmail.com> wrote:
>>>
 Hi Asantha, Tharindu,

 I think IS already packs json, but the version is 20140107 which
 comes from wso2 orbit bundle [1]. You are receiving the error due to
 version mismatch, because you are using  version 20160212.

 Can you try using existing dependency and check if your features
 work okay with that version?\\

 Thank You!

 [1]. https://github.com/wso2/orbit/blob/master/json/3.0.0.wso2v1

 On Fri, Aug 19, 2016 at 3:03 PM, Tharindu Edirisinghe <
 tharin...@wso2.com> wrote:

> I meant shipping with the product... by packing with the product.
>
> Yes, it should be packed by the feature.
>
> I'll look more into Charon's dependency as well.
>
> On Fri, Aug 19, 2016 at 10:26 AM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Harsha,
>>
>> The 

[Dev] How to configure Analytics cluster with MB 3.2.0 cluster?

2016-08-22 Thread Sashika Wijesinghe
Hi All,

I have a requirement to connect Analytics cluster with the MB cluster (MB
3.2.0 M2).

To connect a single analytics node with MB 3.2.0 pack, there is a
configuration [1] in the metrics.xml file  to provide the data receiver URL
of the analytics node.
When Configuring analytics cluster, I have used the minimum HA deployment
[2]. May I know how to configure the two analytics data receiver nodes with
MB to publish stats?

[1]

true



60

thrift

tcp://localhost:7612


admin
admin


repository/conf/data-bridge/data-agent-config.xml


[2]
https://docs.wso2.com/display/CLUSTER44x/Minimum+High+Availability+Deployment+-+DAS+3.0.1

Thanks

-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [Mepin Authenticator] Problem while sending URL parameters using POST method

2016-08-22 Thread Biruntha Gnaneswaran
Hi All,

While posting a form from Mepin Authenticator to Authentication endpoint,
[1] will be executed. So it goes to [2]. From that method, it only support
for url redirecting not support for form posting. So, I replace the logic
[3] by [4]. Now it is working fine .So, To support post request in
authentication endpoint, we need to modify sso-saml module.

[1] -
https://github.com/wso2/carbon-identity/blob/master/components/sso-saml/org.wso2.carbon.identity.sso.saml/src/main/java/org/wso2/carbon/identity/sso/saml/servlet/SAMLSSOProviderServlet.java#L157-#L161

[2] -
https://github.com/wso2/carbon-identity/blob/master/components/sso-saml/org.wso2.carbon.identity.sso.saml/src/main/java/org/wso2/carbon/identity/sso/saml/servlet/SAMLSSOProviderServlet.java#L980

[3] -
https://github.com/wso2/carbon-identity/blob/master/components/sso-saml/org.wso2.carbon.identity.sso.saml/src/main/java/org/wso2/carbon/identity/sso/saml/servlet/SAMLSSOProviderServlet.java#L992

[4] -
https://github.com/wso2/carbon-identity/blob/master/components/sso-saml/org.wso2.carbon.identity.sso.saml/src/main/java/org/wso2/carbon/identity/sso/saml/servlet/SAMLSSOProviderServlet.java#L1031-#L1035


Thanks,

Biruntha

Associate Software Engineer
WSO2
Email : birun...@wso2.com
Linkedin : https://lk.linkedin.com/in/biruntha
Mobile : +94773718986

On Fri, Aug 12, 2016 at 10:18 PM, Biruntha Gnaneswaran 
wrote:

> Hi All,
>
>
> To solve the issue in $subject, i tried to post a html form from
> Authenticator to mepin.jsp using [1]. But still i couldn't solve that
> issue. It's again redirected to [2].
> Can anyone help me to solve this issue?
>
> [1]
>
> response.setContentType(*"text/html"*);java.io.PrintWriter out = 
> response.getWriter();
> out.println(*""*);out.println(*""*);out.println(*"  name=**\"**loginform**\"* *method=**\"**post**\"* 
> *action=**\"**/mepinauthenticationendpoint/mepin.jsp**\"**>"*);out.println(*"  type=**\"**hidden**\"* *id=**\"**param1**\"* *name=**\"**param1**\"* 
> *value=**\"**"*+param1+*"**\"**/>"*);out.println(*" type=**\"**hidden**\"* *id=**\"**param2**\"* *name=**\"**param2**\"* 
> *value=**\"**"*+param2+*"**\"**/>"*);out.println(*""*);
>
> [2] https://localhost:9443/samlsso
>
> Thanks,
>
> Biruntha
>
> Associate Software Engineer
> WSO2
> Email : birun...@wso2.com
> Linkedin : https://lk.linkedin.com/in/biruntha
> Mobile : +94773718986
>
> On Fri, Jul 29, 2016 at 11:46 PM, Biruntha Gnaneswaran 
> wrote:
>
>> Hi Devs,
>>
>> In Mepin authenticator, some URL parameters are send to Mepin UI page
>> using GET method [1]. When I try to send these parameters via POST method
>> using HttpURLConnection class [2], it redirects to [3] not to the actual
>> Mepin UI page. While I try, I got the following Log .
>>
>> [2016-07-29 23:30:00,903] DEBUG {org.wso2.carbon.identity.appl
>> ication.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
>> - In authentication flow
>>
>> [2016-07-29 23:30:00,903] DEBUG {org.wso2.carbon.identity.appl
>> ication.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>> - Executing the Step Based Authentication...
>>
>> [2016-07-29 23:30:00,903] DEBUG {org.wso2.carbon.identity.appl
>> ication.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>> - Starting Step: 1
>>
>> [2016-07-29 23:30:00,903] DEBUG {org.wso2.carbon.identity.appl
>> ication.authentication.framework.util.FrameworkUtils} - Finding already
>> authenticated IdPs of the Step
>>
>> [2016-07-29 23:30:00,903] DEBUG {org.wso2.carbon.identity.appl
>> ication.authentication.framework.handler.step.impl.DefaultStepHandler} -
>> Receive a response from the external party
>>
>> [2016-07-29 23:30:00,903] DEBUG {org.wso2.carbon.identity.appl
>> ication.authentication.framework.handler.step.impl.DefaultStepHandler} -
>> BasicAuthenticator can handle the request.
>>
>> [2016-07-29 23:30:00,929] DEBUG {org.wso2.carbon.identity.appl
>> ication.authentication.framework.handler.step.impl.DefaultStepHandler} -
>> BasicAuthenticator returned: SUCCESS_COMPLETED
>>
>> [2016-07-29 23:30:00,930] DEBUG {org.wso2.carbon.identity.appl
>> ication.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>> - Step 1 is completed. Going to get the next one.
>>
>> [2016-07-29 23:30:00,930] DEBUG {org.wso2.carbon.identity.appl
>> ication.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>> - Starting Step: 2
>>
>> [2016-07-29 23:30:00,930] DEBUG {org.wso2.carbon.identity.appl
>> ication.authentication.framework.util.FrameworkUtils} - Finding already
>> authenticated IdPs of the Step
>>
>> [2016-07-29 23:30:00,930] DEBUG {org.wso2.carbon.identity.appl
>> ication.authentication.framework.handler.step.impl.DefaultStepHandler} -
>> Step contains only a single IdP. Going to call it directly
>>
>> [2016-07-29 23:30:00,930] DEBUG {org.wso2.carbon.identity.appl
>> 

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.9 RC1

2016-08-22 Thread Madhawa Gunasekara
Hi Thusitha,

Please find the pull request for h2 database orbit bundle [1]. Pleas review
and merge it.

[1] https://github.com/wso2/orbit/pull/227

Thanks,
Madhawa

On Mon, Aug 22, 2016 at 5:47 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Farasath,
>
> According to the product-is parent pom.xml[1], you have only added the
> filter-mapping section. But since filter entry is been removed from the
> default web.xml (which is packed with kernel) you are getting the "unknown
> filter name *CRLFPreventionFilter"*
> We didn't remove that class from the kernel, but the filter and
> filter-mapping entries from the web.xml. Therefore you have to add the
> filter entry in your web.xml
> [1] - https://github.com/wso2/product-is/blob/master/
> modules/distribution/pom.xml#L122
>
> Thanks
> Thusitha
>
> On Mon, Aug 22, 2016 at 3:08 PM, Farasath Ahamed 
> wrote:
>
>> Hi All,
>>
>> While starting an IS pack built on 4.4.9 we encountered the below error,
>>
>> [2016-08-22 13:27:23,225] ERROR {org.apache.catalina.core.ContainerBase}
>> -  A child container failed during start
>> java.util.concurrent.ExecutionException: 
>> org.apache.catalina.LifecycleException:
>> Failed to start component [StandardEngine[Catalina].Stan
>> dardHost[localhost].StandardContext[/]]
>> at java.util.concurrent.FutureTask.report(FutureTask.java:122)
>> at java.util.concurrent.FutureTask.get(FutureTask.java:192)
>> at org.apache.catalina.core.ContainerBase.startInternal(Contain
>> erBase.java:1119)
>> at org.apache.catalina.core.StandardHost.startInternal(Standard
>> Host.java:819)
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
>> at org.apache.catalina.core.ContainerBase$StartChild.call(Conta
>> inerBase.java:1571)
>> at org.apache.catalina.core.ContainerBase$StartChild.call(Conta
>> inerBase.java:1561)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>> Executor.java:1142)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>> lExecutor.java:617)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: org.apache.catalina.LifecycleException: Failed to start
>> component [StandardEngine[Catalina].StandardHost[localhost].StandardCo
>> ntext[/]]
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
>> ... 6 more
>> Caused by: java.lang.IllegalArgumentException: Filter mapping specifies
>> an unknown filter name *CRLFPreventionFilter*
>> at org.apache.catalina.core.StandardContext.validateFilterMap(S
>> tandardContext.java:3205)
>> at org.apache.catalina.core.StandardContext.addFilterMap(Standa
>> rdContext.java:3170)
>> at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1343)
>> at org.apache.catalina.startup.ContextConfig.webConfig(ContextC
>> onfig.java:1355)
>> at org.apache.catalina.startup.ContextConfig.configureStart(Con
>> textConfig.java:887)
>> at org.apache.catalina.startup.ContextConfig.lifecycleEvent(Con
>> textConfig.java:387)
>> at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
>> (LifecycleSupport.java:117)
>> at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(Li
>> fecycleBase.java:90)
>> at org.apache.catalina.core.StandardContext.startInternal(Stand
>> ardContext.java:5503)
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
>>
>>
>> We found the root cause to be missing filter entries/mappings for
>> CRLFPreventionFilter, CSRFPreventionFilter which have been removed from
>> web.xml packed from the kernel 4.4.9[1]. These entries were available in
>> kernel 4.4.7[2].
>>
>> We can fix this at IS level by modifying the pom.xml of the distribution.
>> But isn't this an API change that should not be done in a minor release?
>> Was this communicated to the product teams?
>>
>>
>> [1] https://github.com/wso2/carbon-kernel/blob/v4.4.9-rc1/di
>> stribution/kernel/carbon-home/repository/conf/tomcat/carbon/
>> WEB-INF/web.xml
>> [2] https://github.com/wso2/carbon-kernel/blob/v4.4.7/distri
>> bution/kernel/carbon-home/repository/conf/tomcat/carbon/
>> WEB-INF/web.xml#L73
>>
>>
>> Thanks,
>>
>> Farasath Ahamed
>> Software Engineer, WSO2 Inc.; http://wso2.com
>> Mobile: +94777603866
>> Blog: blog.farazath.com
>> Twitter: @farazath619 
>> 
>>
>>
>>
>> On Mon, Aug 22, 2016 at 1:17 PM, Madhawa Gunasekara 
>> wrote:
>>
>>> Hi All,
>>>
>>> I couldn't able to build product DSS with kernel 4.4.9 RC1 due to some
>>> issues in h2 OSGi bundle's export packages.
>>>
>>>
>>> *Missing requirement: WSO2 Carbon - DB Console UI 4.3.6.SNAPSHOT
>>> (org.wso2.carbon.dbconsole.ui 4.3.6.SNAPSHOT) requires 'package
>>> org.h2.server.web [1.4.191,1.5.0)' but it could not be found*
>>> We need to register h2 Web Servlet in our carbon environment to access
>>> the db console. but in current h2 osgi bundle, it doesn't export [1].
>>> therefore 

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.9 RC1

2016-08-22 Thread Thusitha Thilina Dayaratne
Hi Farasath,

According to the product-is parent pom.xml[1], you have only added the
filter-mapping section. But since filter entry is been removed from the
default web.xml (which is packed with kernel) you are getting the "unknown
filter name *CRLFPreventionFilter"*
We didn't remove that class from the kernel, but the filter and
filter-mapping entries from the web.xml. Therefore you have to add the
filter entry in your web.xml
[1] -
https://github.com/wso2/product-is/blob/master/modules/distribution/pom.xml#L122

Thanks
Thusitha

On Mon, Aug 22, 2016 at 3:08 PM, Farasath Ahamed  wrote:

> Hi All,
>
> While starting an IS pack built on 4.4.9 we encountered the below error,
>
> [2016-08-22 13:27:23,225] ERROR {org.apache.catalina.core.ContainerBase}
> -  A child container failed during start
> java.util.concurrent.ExecutionException: 
> org.apache.catalina.LifecycleException:
> Failed to start component [StandardEngine[Catalina].Stan
> dardHost[localhost].StandardContext[/]]
> at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> at java.util.concurrent.FutureTask.get(FutureTask.java:192)
> at org.apache.catalina.core.ContainerBase.startInternal(Contain
> erBase.java:1119)
> at org.apache.catalina.core.StandardHost.startInternal(Standard
> Host.java:819)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
> at org.apache.catalina.core.ContainerBase$StartChild.call(Conta
> inerBase.java:1571)
> at org.apache.catalina.core.ContainerBase$StartChild.call(Conta
> inerBase.java:1561)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
> Executor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
> lExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.catalina.LifecycleException: Failed to start
> component [StandardEngine[Catalina].StandardHost[localhost].StandardCo
> ntext[/]]
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
> ... 6 more
> Caused by: java.lang.IllegalArgumentException: Filter mapping specifies
> an unknown filter name *CRLFPreventionFilter*
> at org.apache.catalina.core.StandardContext.validateFilterMap(S
> tandardContext.java:3205)
> at org.apache.catalina.core.StandardContext.addFilterMap(Standa
> rdContext.java:3170)
> at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1343)
> at org.apache.catalina.startup.ContextConfig.webConfig(ContextC
> onfig.java:1355)
> at org.apache.catalina.startup.ContextConfig.configureStart(Con
> textConfig.java:887)
> at org.apache.catalina.startup.ContextConfig.lifecycleEvent(Con
> textConfig.java:387)
> at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
> (LifecycleSupport.java:117)
> at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(Li
> fecycleBase.java:90)
> at org.apache.catalina.core.StandardContext.startInternal(Stand
> ardContext.java:5503)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
>
>
> We found the root cause to be missing filter entries/mappings for
> CRLFPreventionFilter, CSRFPreventionFilter which have been removed from
> web.xml packed from the kernel 4.4.9[1]. These entries were available in
> kernel 4.4.7[2].
>
> We can fix this at IS level by modifying the pom.xml of the distribution.
> But isn't this an API change that should not be done in a minor release?
> Was this communicated to the product teams?
>
>
> [1] https://github.com/wso2/carbon-kernel/blob/v4.4.9-rc1/
> distribution/kernel/carbon-home/repository/conf/tomcat/
> carbon/WEB-INF/web.xml
> [2] https://github.com/wso2/carbon-kernel/blob/v4.4.7/
> distribution/kernel/carbon-home/repository/conf/tomcat/
> carbon/WEB-INF/web.xml#L73
>
>
> Thanks,
>
> Farasath Ahamed
> Software Engineer, WSO2 Inc.; http://wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
> 
>
>
>
> On Mon, Aug 22, 2016 at 1:17 PM, Madhawa Gunasekara 
> wrote:
>
>> Hi All,
>>
>> I couldn't able to build product DSS with kernel 4.4.9 RC1 due to some
>> issues in h2 OSGi bundle's export packages.
>>
>>
>> *Missing requirement: WSO2 Carbon - DB Console UI 4.3.6.SNAPSHOT
>> (org.wso2.carbon.dbconsole.ui 4.3.6.SNAPSHOT) requires 'package
>> org.h2.server.web [1.4.191,1.5.0)' but it could not be found*
>> We need to register h2 Web Servlet in our carbon environment to access
>> the db console. but in current h2 osgi bundle, it doesn't export [1].
>> therefore can we create an osgi orbit bundle for h2 database to mitigate
>> this issue ?
>>
>> [1] https://github.com/h2database/h2database/blob/master/h2/src/
>> main/META-INF/MANIFEST.MF
>> [2] https://github.com/madhawa-gunasekara/carbon-data/blob/maste
>> r/components/dbconsole/org.wso2.carbon.dbconsole.ui/src/
>> main/java/org/wso2/carbon/dbconsole/ui/internal/DBConsoleCom
>> 

Re: [Dev] APIM 2.0 as a worker node in default profile doesn't not start

2016-08-22 Thread Janaka Ranabahu
Hi Supun,

API Manager has multiple components and there are different profiles to
start each component separately. When it comes to a distributed deployment,
only the gateway nodes will be configured in a worker-manager cluster and
we have profiles for those. For other nodes, there is no concept of a
worker profile.

Hence, the doc that IsuruH has shared has all the profiles that are needed
to do a fully distributed(HA) setup.

Thanks,
Janaka

On Mon, Aug 22, 2016 at 4:52 PM, Supun Malinga  wrote:

> Hi,
>
> $subject.
> $ ./bin/wso2server.sh
> JAVA_HOME environment variable is set to /opt/java
> CARBON_HOME environment variable is set to /home/supun/Builds/git-wso2-
> support/deployment-patterns/wso2am/temp/pattern6/wso2am-2.0.0
> Using Java memory options: -Xms256m -Xmx1024m
> [2016-08-22 16:44:31,725] FATAL {org.wso2.carbon.server.Main} -  OSGi
> runtime worker profile not found
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63)
> at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45)
> Caused by: java.lang.RuntimeException: worker profile not found
> at org.wso2.carbon.server.Main.main(Main.java:84)
> ... 6 more
>
> thanks,
> --
> Supun Malinga
>



-- 
*Janaka Ranabahu*
Associate Technical Lead, WSO2 Inc.
http://wso2.com


*E-mail: jan...@wso2.com **M: **+94 718370861*

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


Re: [Dev] How to get the page title of a dashboard page

2016-08-22 Thread Lasantha Samarakoon
Hi Kalpa,

As  it seems, the best way to proceed with your requirement is introducing
a meta data API. It is not a good practice access parent window within a
gadget as it may cause cross domain issues.

WRT to pages with multiple words page titles, did you try fetching the page
title from the parents respective DOM element, instead of the URL? If we
can get that from the DOM, spaces won't be an issue anymore.


Regards,

*Lasantha Samarakoon* | Software Engineer
WSO2, Inc.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 (71) 214 1576
Email:  lasant...@wso2.com
Web:www.wso2.com

lean . enterprise . middleware

On Mon, Aug 22, 2016 at 12:42 PM, Kalpa Welivitigoda 
wrote:

> Hi Lasantha,
>
> I have a breadcrumb (this is a separate gadget) in the dashboard in which
> I display the navigation and the webapp filtering. Please refer the screen
> capture attached herewith. There, 'browser' is the page and 'examples' is
> the webapp name. When a user clickes 'browser', the page (other gadgets)
> updates to fetch and show statistics related to all webapps.
>
> How 'browser' is fetched at the moment is via the dashboard URL, we do a
> parent.window.location.href and get the page URL. This is also not good
> since we are using parent inside a gadget. May be we can consider adding
> page URL as well for the meta data in the API.
>
> The breadcrumb in the screen capture looks nice since it only has one word
> for the page title/URL. When we have pages like 'HTTP Status Code' with
> multiple words, it looks ugly since we cannot have spaces in the URL.
>
> On Mon, Aug 22, 2016 at 12:22 PM, Lasantha Samarakoon 
> wrote:
>
>> @Kalpa, Can you please explain the use case of having the page title in a
>> gadget?
>>
>>
>> Regards,
>>
>> *Lasantha Samarakoon* | Software Engineer
>> WSO2, Inc.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 (71) 214 1576
>> Email:  lasant...@wso2.com
>> Web:www.wso2.com
>>
>> lean . enterprise . middleware
>>
>> On Mon, Aug 22, 2016 at 12:07 PM, Nisala Nanayakkara 
>> wrote:
>>
>>> Hi Kalpa,
>>>
>>> I have created jira for this issue [1]. We will implement an api to get
>>> dashboard-meta data information in the next release. So you can get
>>> relevant meta data information of the dashboard using the api.
>>>
>>> [1] - https://wso2.org/jira/browse/UES-1036
>>>
>>> Thanks,
>>> Nisala
>>>
>>> On Mon, Aug 22, 2016 at 12:03 PM, Nipuna Chandradasa 
>>> wrote:
>>>
 Hi Kalpa,

 We currently have a API to send dashboard name and id. But we don't
 have a api to get the page details. But we will create a jira for this and
 add this as an improvement on next release.

 Thank you,

 On Mon, Aug 22, 2016 at 11:29 AM, Kalpa Welivitigoda 
 wrote:

> Hi devs,
>
> I have a dashboard with multiple pages. From a gadget in a page, I
> need to get the current page title. What would be the recommended approach
> to do this?
>
>
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Senior Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>
> [image: http://wso2.com/signature] 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


>>>
>>>
>>> --
>>> *Nisala Niroshana Nanayakkara,*
>>> Software Engineer
>>> Mobile:(+94)717600022
>>> WSO2 Inc., http://wso2.com/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Senior Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>
> [image: http://wso2.com/signature] 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM 2.0 as a worker node in default profile doesn't not start

2016-08-22 Thread Isuru Haththotuwa
On Mon, Aug 22, 2016 at 5:02 PM, Supun Malinga  wrote:

> Just to be clear I'm starting the server with -DworkerNode=true
>
AFAIU it should work then.

@APIM team: any comments on this?

>
> On Mon, Aug 22, 2016 at 5:00 PM, Supun Malinga  wrote:
>
>> So we cannot start as a worker node in default profile.. ?
>>
>> On Mon, Aug 22, 2016 at 4:56 PM, Isuru Haththotuwa 
>> wrote:
>>
>>> HI Supun,
>>>
>>> These are the supported profiles for APIM 2.0.0 [1].
>>>
>>> [1]. https://docs.wso2.com/display/AM200/Product+Profiles
>>>
>>> On Mon, Aug 22, 2016 at 4:52 PM, Supun Malinga  wrote:
>>>
 Hi,

 $subject.
 $ ./bin/wso2server.sh
 JAVA_HOME environment variable is set to /opt/java
 CARBON_HOME environment variable is set to
 /home/supun/Builds/git-wso2-support/deployment-patterns/wso2
 am/temp/pattern6/wso2am-2.0.0
 Using Java memory options: -Xms256m -Xmx1024m
 [2016-08-22 16:44:31,725] FATAL {org.wso2.carbon.server.Main} -  OSGi
 runtime worker profile not found
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
 ssorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
 thodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63)
 at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45)
 Caused by: java.lang.RuntimeException: worker profile not found
 at org.wso2.carbon.server.Main.main(Main.java:84)
 ... 6 more

 thanks,
 --
 Supun Malinga

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


>>>
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048* *
>>>
>>>
>>>
>>
>>
>> --
>> Supun Malinga
>>
>
>
>
> --
> Supun Malinga
>



-- 
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] APIM 2.0 as a worker node in default profile doesn't not start

2016-08-22 Thread Supun Malinga
Just to be clear I'm starting the server with -DworkerNode=true

On Mon, Aug 22, 2016 at 5:00 PM, Supun Malinga  wrote:

> So we cannot start as a worker node in default profile.. ?
>
> On Mon, Aug 22, 2016 at 4:56 PM, Isuru Haththotuwa 
> wrote:
>
>> HI Supun,
>>
>> These are the supported profiles for APIM 2.0.0 [1].
>>
>> [1]. https://docs.wso2.com/display/AM200/Product+Profiles
>>
>> On Mon, Aug 22, 2016 at 4:52 PM, Supun Malinga  wrote:
>>
>>> Hi,
>>>
>>> $subject.
>>> $ ./bin/wso2server.sh
>>> JAVA_HOME environment variable is set to /opt/java
>>> CARBON_HOME environment variable is set to /home/supun/Builds/git-wso2-su
>>> pport/deployment-patterns/wso2am/temp/pattern6/wso2am-2.0.0
>>> Using Java memory options: -Xms256m -Xmx1024m
>>> [2016-08-22 16:44:31,725] FATAL {org.wso2.carbon.server.Main} -  OSGi
>>> runtime worker profile not found
>>> java.lang.reflect.InvocationTargetException
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>> ssorImpl.java:62)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63)
>>> at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45)
>>> Caused by: java.lang.RuntimeException: worker profile not found
>>> at org.wso2.carbon.server.Main.main(Main.java:84)
>>> ... 6 more
>>>
>>> thanks,
>>> --
>>> Supun Malinga
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* *
>>
>>
>>
>
>
> --
> Supun Malinga
>



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


Re: [Dev] APIM 2.0 as a worker node in default profile doesn't not start

2016-08-22 Thread Supun Malinga
So we cannot start as a worker node in default profile.. ?

On Mon, Aug 22, 2016 at 4:56 PM, Isuru Haththotuwa  wrote:

> HI Supun,
>
> These are the supported profiles for APIM 2.0.0 [1].
>
> [1]. https://docs.wso2.com/display/AM200/Product+Profiles
>
> On Mon, Aug 22, 2016 at 4:52 PM, Supun Malinga  wrote:
>
>> Hi,
>>
>> $subject.
>> $ ./bin/wso2server.sh
>> JAVA_HOME environment variable is set to /opt/java
>> CARBON_HOME environment variable is set to /home/supun/Builds/git-wso2-su
>> pport/deployment-patterns/wso2am/temp/pattern6/wso2am-2.0.0
>> Using Java memory options: -Xms256m -Xmx1024m
>> [2016-08-22 16:44:31,725] FATAL {org.wso2.carbon.server.Main} -  OSGi
>> runtime worker profile not found
>> java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63)
>> at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45)
>> Caused by: java.lang.RuntimeException: worker profile not found
>> at org.wso2.carbon.server.Main.main(Main.java:84)
>> ... 6 more
>>
>> thanks,
>> --
>> Supun Malinga
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>


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


Re: [Dev] APIM 2.0 as a worker node in default profile doesn't not start

2016-08-22 Thread Isuru Haththotuwa
HI Supun,

These are the supported profiles for APIM 2.0.0 [1].

[1]. https://docs.wso2.com/display/AM200/Product+Profiles

On Mon, Aug 22, 2016 at 4:52 PM, Supun Malinga  wrote:

> Hi,
>
> $subject.
> $ ./bin/wso2server.sh
> JAVA_HOME environment variable is set to /opt/java
> CARBON_HOME environment variable is set to /home/supun/Builds/git-wso2-
> support/deployment-patterns/wso2am/temp/pattern6/wso2am-2.0.0
> Using Java memory options: -Xms256m -Xmx1024m
> [2016-08-22 16:44:31,725] FATAL {org.wso2.carbon.server.Main} -  OSGi
> runtime worker profile not found
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63)
> at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45)
> Caused by: java.lang.RuntimeException: worker profile not found
> at org.wso2.carbon.server.Main.main(Main.java:84)
> ... 6 more
>
> thanks,
> --
> Supun Malinga
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks and Regards,

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


[Dev] APIM 2.0 as a worker node in default profile doesn't not start

2016-08-22 Thread Supun Malinga
Hi,

$subject.
$ ./bin/wso2server.sh
JAVA_HOME environment variable is set to /opt/java
CARBON_HOME environment variable is set to
/home/supun/Builds/git-wso2-support/deployment-patterns/wso2am/temp/pattern6/wso2am-2.0.0
Using Java memory options: -Xms256m -Xmx1024m
[2016-08-22 16:44:31,725] FATAL {org.wso2.carbon.server.Main} -  OSGi
runtime worker profile not found
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63)
at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45)
Caused by: java.lang.RuntimeException: worker profile not found
at org.wso2.carbon.server.Main.main(Main.java:84)
... 6 more

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


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.9 RC1

2016-08-22 Thread Farasath Ahamed
Hi All,

While starting an IS pack built on 4.4.9 we encountered the below error,

[2016-08-22 13:27:23,225] ERROR {org.apache.catalina.core.ContainerBase} -
 A child container failed during start
java.util.concurrent.ExecutionException:
org.apache.catalina.LifecycleException:
Failed to start component [StandardEngine[Catalina].StandardHost[localhost].
StandardContext[/]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.core.ContainerBase.startInternal(
ContainerBase.java:1119)
at org.apache.catalina.core.StandardHost.startInternal(
StandardHost.java:819)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase$StartChild.call(
ContainerBase.java:1571)
at org.apache.catalina.core.ContainerBase$StartChild.call(
ContainerBase.java:1561)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(
ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(
ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start
component [StandardEngine[Catalina].StandardHost[localhost].
StandardContext[/]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
... 6 more
Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an
unknown filter name *CRLFPreventionFilter*
at org.apache.catalina.core.StandardContext.validateFilterMap(
StandardContext.java:3205)
at org.apache.catalina.core.StandardContext.addFilterMap(
StandardContext.java:3170)
at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1343)
at org.apache.catalina.startup.ContextConfig.webConfig(
ContextConfig.java:1355)
at org.apache.catalina.startup.ContextConfig.configureStart(
ContextConfig.java:887)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(
ContextConfig.java:387)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(
LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(
StandardContext.java:5503)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)


We found the root cause to be missing filter entries/mappings for
CRLFPreventionFilter, CSRFPreventionFilter which have been removed from
web.xml packed from the kernel 4.4.9[1]. These entries were available in
kernel 4.4.7[2].

We can fix this at IS level by modifying the pom.xml of the distribution.
But isn't this an API change that should not be done in a minor release?
Was this communicated to the product teams?


[1]
https://github.com/wso2/carbon-kernel/blob/v4.4.9-rc1/distribution/kernel/carbon-home/repository/conf/tomcat/carbon/WEB-INF/web.xml
[2]
https://github.com/wso2/carbon-kernel/blob/v4.4.7/distribution/kernel/carbon-home/repository/conf/tomcat/carbon/WEB-INF/web.xml#L73


Thanks,

Farasath Ahamed
Software Engineer, WSO2 Inc.; http://wso2.com
Mobile: +94777603866
Blog: blog.farazath.com
Twitter: @farazath619 




On Mon, Aug 22, 2016 at 1:17 PM, Madhawa Gunasekara 
wrote:

> Hi All,
>
> I couldn't able to build product DSS with kernel 4.4.9 RC1 due to some
> issues in h2 OSGi bundle's export packages.
>
>
> *Missing requirement: WSO2 Carbon - DB Console UI 4.3.6.SNAPSHOT
> (org.wso2.carbon.dbconsole.ui 4.3.6.SNAPSHOT) requires 'package
> org.h2.server.web [1.4.191,1.5.0)' but it could not be found*
> We need to register h2 Web Servlet in our carbon environment to access the
> db console. but in current h2 osgi bundle, it doesn't export [1]. therefore
> can we create an osgi orbit bundle for h2 database to mitigate this issue ?
>
> [1] https://github.com/h2database/h2database/blob/master/h2/src/
> main/META-INF/MANIFEST.MF
> [2] https://github.com/madhawa-gunasekara/carbon-data/blob/
> master/components/dbconsole/org.wso2.carbon.dbconsole.ui/
> src/main/java/org/wso2/carbon/dbconsole/ui/internal/
> DBConsoleComponent.java#L56
>
> Thanks,
> Madhawa
>
> On Mon, Aug 22, 2016 at 10:44 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi DSS/IS Team,
>>
>> Can IS and DSS teams test their products with the carbon kernel 4.4.9 and
>> vote?
>>
>> Thanks
>> Thusitha
>>
>> On Sat, Aug 20, 2016 at 12:22 AM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Devs,
>>>
>>> This is the 1st release candidate of WSO2 Carbon Kernel 4.4.9.
>>>
>>> This release fixes the following issues
>>> *https://wso2.org/jira/issues/?filter=13289
>>> *
>>>
>>> Please download, test your products with kernel 4.4.9 RC1 and vote.
>>> Vote will be open for 72 hours or as longer as needed.
>>>
>>> *Source and binary distribution files:*
>>> 

Re: [Dev] [Jaggerry][BPS] Check user permission using jaggery user.User not working for tenants

2016-08-22 Thread Darshana Gunawardana
Hi Milinda,

How this user.isAuthorized() method implemented? Is it invoking
getAllowedUIResourcesForUser() internally?

Thanks,

On Wed, Jul 27, 2016 at 11:55 AM, Milinda Perera  wrote:

> Hi,
>
> We are checking the user permission in jaggery in following way:
>
> function isUserAuthorized(username, permission, action, bpsUrl){
> var carbon = require('carbon'),
> process = require('process'),
> srv = new carbon.server.Server({url: bpsUrl}),
> tenantId = carbon.server.tenantId(),
> userManager = new carbon.user.UserManager(srv, tenantId),
> user = new carbon.user.User(userManager, username);
> return user.isAuthorized(permission, action);
> }
>
> it works perfectly fine for super tenant but get false for tenant users
> even they have relevant permission.
>
> Thanks,
> Milinda
>
> --
> Milinda Perera
> Software Engineer;
> WSO2 Inc. http://wso2.com ,
> Mobile: (+94) 714 115 032
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards,


*Darshana Gunawardana*Associate Technical Lead
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com *
*Mobile: +94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5]Class cast exception in MSF4j OAuth2 intercepter

2016-08-22 Thread Vinod Kavinda
Hi Thusitha,

Please Ignore above reply. I did not try this with Basic auth.

Regards,
Vinod

On Mon, Aug 22, 2016 at 1:33 PM, Vinod Kavinda  wrote:

> Yes. Getting the same error when running the sample with 2.0.1-SNAPSHOT
> and when using inside BPS with v2.0.0.
>
> Regards,
> Vinod
>
> On Mon, Aug 22, 2016 at 1:29 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Vinod,
>>
>> Are you getting this error when you run the basicauth sample?
>>
>> Thanks
>> Thusitha
>>
>> On Mon, Aug 22, 2016 at 12:40 PM, Vinod Kavinda  wrote:
>>
>>> Hi All,
>>> I'm trying to use the OAuth2 intercepter from msf4j. I have tried the
>>> OAuth2 sample from [1] and getting the following error. Problem seem to be
>>> the line [2] where string is expected while a boolean is returned from the
>>> response map.
>>>
>>> Is this a known bug? or am I missing something here?
>>>
>>> org.wso2.msf4j.internal.InterceptorException: Exception while executing
>>> preCalls at org.wso2.msf4j.internal.InterceptorExecutor.execPreCalls(Int
>>> erceptorExecutor.java:69) at org.wso2.msf4j.internal.MSF4JM
>>> essageProcessor.dispatchMethod(MSF4JMessageProcessor.java:113) at
>>> org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(MSF4JM
>>> essageProcessor.java:73) at org.wso2.carbon.transport.http
>>> .netty.listener.WorkerPoolDispatchingSourceHandler$1.run(Wor
>>> kerPoolDispatchingSourceHandler.java:127) at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>>> Executor.java:1142) at java.util.concurrent.ThreadPoo
>>> lExecutor$Worker.run(ThreadPoolExecutor.java:617) at
>>> java.lang.Thread.run(Thread.java:745)
>>>
>>> Caused by: java.lang.ClassCastException: java.lang.Boolean cannot be
>>> cast to java.lang.String at org.wso2.msf4j.security.oauth2
>>> .OAuth2SecurityInterceptor.validateToken(OAuth2SecurityInter
>>> ceptor.java:117) at org.wso2.msf4j.security.oauth2
>>> .OAuth2SecurityInterceptor.preCall(OAuth2SecurityInterceptor.java:80) at
>>> org.wso2.msf4j.internal.InterceptorExecutor.execPreCalls(Int
>>> erceptorExecutor.java:63)
>>>
>>> ... 6 more
>>> [2] - https://github.com/wso2/msf4j/tree/master/samples/oauth2-security
>>> [3] - https://github.com/wso2/msf4j/blob/master/core/src/main/ja
>>> va/org/wso2/msf4j/security/oauth2/OAuth2SecurityInterceptor.java#L117
>>>
>>> --
>>> Vinod Kavinda
>>> Software Engineer
>>> *WSO2 Inc. - lean . enterprise . middleware .*
>>> Mobile : +94 (0) 712 415544
>>> Blog : http://soatechflicks.blogspot.com/
>>> [image: http://wso2.com/signature]
>>> 
>>>
>>>
>>
>>
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> 
>>
>>
>
>
> --
> Vinod Kavinda
> Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
> [image: http://wso2.com/signature]
> 
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware .*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]

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


Re: [Dev] [C5]Class cast exception in MSF4j OAuth2 intercepter

2016-08-22 Thread Vinod Kavinda
Yes. Getting the same error when running the sample with 2.0.1-SNAPSHOT and
when using inside BPS with v2.0.0.

Regards,
Vinod

On Mon, Aug 22, 2016 at 1:29 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Vinod,
>
> Are you getting this error when you run the basicauth sample?
>
> Thanks
> Thusitha
>
> On Mon, Aug 22, 2016 at 12:40 PM, Vinod Kavinda  wrote:
>
>> Hi All,
>> I'm trying to use the OAuth2 intercepter from msf4j. I have tried the
>> OAuth2 sample from [1] and getting the following error. Problem seem to be
>> the line [2] where string is expected while a boolean is returned from the
>> response map.
>>
>> Is this a known bug? or am I missing something here?
>>
>> org.wso2.msf4j.internal.InterceptorException: Exception while executing
>> preCalls at org.wso2.msf4j.internal.InterceptorExecutor.execPreCalls(Int
>> erceptorExecutor.java:69) at org.wso2.msf4j.internal.MSF4JM
>> essageProcessor.dispatchMethod(MSF4JMessageProcessor.java:113) at
>> org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(MSF4JM
>> essageProcessor.java:73) at org.wso2.carbon.transport.http
>> .netty.listener.WorkerPoolDispatchingSourceHandler$1.run(Wor
>> kerPoolDispatchingSourceHandler.java:127) at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>> Executor.java:1142) at java.util.concurrent.ThreadPoo
>> lExecutor$Worker.run(ThreadPoolExecutor.java:617) at
>> java.lang.Thread.run(Thread.java:745)
>>
>> Caused by: java.lang.ClassCastException: java.lang.Boolean cannot be cast
>> to java.lang.String at org.wso2.msf4j.security.oauth2
>> .OAuth2SecurityInterceptor.validateToken(OAuth2SecurityInter
>> ceptor.java:117) at org.wso2.msf4j.security.oauth2
>> .OAuth2SecurityInterceptor.preCall(OAuth2SecurityInterceptor.java:80) at
>> org.wso2.msf4j.internal.InterceptorExecutor.execPreCalls(Int
>> erceptorExecutor.java:63)
>>
>> ... 6 more
>> [2] - https://github.com/wso2/msf4j/tree/master/samples/oauth2-security
>> [3] - https://github.com/wso2/msf4j/blob/master/core/src/main/
>> java/org/wso2/msf4j/security/oauth2/OAuth2SecurityInterceptor.java#L117
>>
>> --
>> Vinod Kavinda
>> Software Engineer
>> *WSO2 Inc. - lean . enterprise . middleware .*
>> Mobile : +94 (0) 712 415544
>> Blog : http://soatechflicks.blogspot.com/
>> [image: http://wso2.com/signature]
>> 
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
> 
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware .*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]

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


Re: [Dev] [C5]Class cast exception in MSF4j OAuth2 intercepter

2016-08-22 Thread Thusitha Thilina Dayaratne
Hi Vinod,

Are you getting this error when you run the basicauth sample?

Thanks
Thusitha

On Mon, Aug 22, 2016 at 12:40 PM, Vinod Kavinda  wrote:

> Hi All,
> I'm trying to use the OAuth2 intercepter from msf4j. I have tried the
> OAuth2 sample from [1] and getting the following error. Problem seem to be
> the line [2] where string is expected while a boolean is returned from the
> response map.
>
> Is this a known bug? or am I missing something here?
>
> org.wso2.msf4j.internal.InterceptorException: Exception while executing
> preCalls at org.wso2.msf4j.internal.InterceptorExecutor.execPreCalls(
> InterceptorExecutor.java:69) at org.wso2.msf4j.internal.
> MSF4JMessageProcessor.dispatchMethod(MSF4JMessageProcessor.java:113) at
> org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(
> MSF4JMessageProcessor.java:73) at org.wso2.carbon.transport.
> http.netty.listener.WorkerPoolDispatchingSourceHandler$1.run(
> WorkerPoolDispatchingSourceHandler.java:127) at java.util.concurrent.
> ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)
>
> Caused by: java.lang.ClassCastException: java.lang.Boolean cannot be cast
> to java.lang.String at org.wso2.msf4j.security.oauth2.
> OAuth2SecurityInterceptor.validateToken(OAuth2SecurityInterceptor.
> java:117) at org.wso2.msf4j.security.oauth2.OAuth2SecurityInterceptor.
> preCall(OAuth2SecurityInterceptor.java:80) at org.wso2.msf4j.internal.
> InterceptorExecutor.execPreCalls(InterceptorExecutor.java:63)
>
> ... 6 more
> [2] - https://github.com/wso2/msf4j/tree/master/samples/oauth2-security
> [3] - https://github.com/wso2/msf4j/blob/master/core/src/
> main/java/org/wso2/msf4j/security/oauth2/OAuth2SecurityInterceptor.
> java#L117
>
> --
> Vinod Kavinda
> Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
> [image: http://wso2.com/signature]
> 
>
>


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


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.9 RC1

2016-08-22 Thread Madhawa Gunasekara
Hi All,

I couldn't able to build product DSS with kernel 4.4.9 RC1 due to some
issues in h2 OSGi bundle's export packages.


*Missing requirement: WSO2 Carbon - DB Console UI 4.3.6.SNAPSHOT
(org.wso2.carbon.dbconsole.ui 4.3.6.SNAPSHOT) requires 'package
org.h2.server.web [1.4.191,1.5.0)' but it could not be found*
We need to register h2 Web Servlet in our carbon environment to access the
db console. but in current h2 osgi bundle, it doesn't export [1]. therefore
can we create an osgi orbit bundle for h2 database to mitigate this issue ?

[1]
https://github.com/h2database/h2database/blob/master/h2/src/main/META-INF/MANIFEST.MF
[2]
https://github.com/madhawa-gunasekara/carbon-data/blob/master/components/dbconsole/org.wso2.carbon.dbconsole.ui/src/main/java/org/wso2/carbon/dbconsole/ui/internal/DBConsoleComponent.java#L56

Thanks,
Madhawa

On Mon, Aug 22, 2016 at 10:44 AM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi DSS/IS Team,
>
> Can IS and DSS teams test their products with the carbon kernel 4.4.9 and
> vote?
>
> Thanks
> Thusitha
>
> On Sat, Aug 20, 2016 at 12:22 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Devs,
>>
>> This is the 1st release candidate of WSO2 Carbon Kernel 4.4.9.
>>
>> This release fixes the following issues
>> *https://wso2.org/jira/issues/?filter=13289
>> *
>>
>> Please download, test your products with kernel 4.4.9 RC1 and vote. Vote
>> will be open for 72 hours or as longer as needed.
>>
>> *Source and binary distribution files:*
>> *https://github.com/wso2/carbon-kernel/archive/v4.4.9-rc1.zip
>> *
>> http://svn.wso2.org/repos/wso2/people/thusithad/4.4.9/wso2ca
>> rbon-4.4.9-rc1.zip
>>
>> *Maven staging repository*
>> *https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1035
>> *
>>
>> *The tag to be voted upon : *
>> *https://github.com/wso2/carbon-kernel/releases/tag/v4.4.9-rc1
>> *
>>
>> [ ] Broken - Do not release (explain why)
>> [ ] Stable  - Go ahead and release
>>
>> Thank you
>> 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
>> 
>>
>>
>
>
> --
> 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
>
>


-- 
*Madhawa Gunasekara*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71941102 <+94+71941102>
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


Re: [Dev] Error in AM 2.0 gateway

2016-08-22 Thread Supun Malinga
Diagram :
​
 am-2.0-pattern-4.png

​

On Mon, Aug 22, 2016 at 12:47 PM, Supun Malinga  wrote:

> Hi,
>
> Getting the following exception in gateway worker. Any idea what could be
> causing this ?.
> This is in a distributed cluster with store and KM in same node.
> I can provide any configurations required..
>
> ​
>  am-2.0-pattern-4
> 
> ​
>
>
> gateway-worker | [2016-08-16 09:35:09,422]  INFO - API Destroying API:
> _WSO2AMTokenAPI_
> gateway-worker | [2016-08-16 09:35:09,426]  INFO - API Initializing
> API: _WSO2AMUserInfoAPI_
> gateway-worker | [2016-08-16 09:35:09,426]  INFO - DependencyTracker
> API : _WSO2AMUserInfoAPI_ was updated from the Synapse configuration
> successfully
> gateway-worker | [2016-08-16 09:35:09,426]  INFO - APIDeployer API:
> _WSO2AMUserInfoAPI_ has been updated from the file:
> /mnt/wso2am-2.0.0/repository/deployment/server/synapse-confi
> gs/default/api/_UserInfoAPI_.xml
> gateway-worker | [2016-08-16 09:35:11,427]  INFO - API Destroying API:
> _WSO2AMUserInfoAPI_
> gateway-worker | [2016-08-16 09:35:25,783] ERROR -
> KeyTemplateRetriever Exception when retrieving throttling data from remote
> endpoint
> gateway-worker | Unexpected character (<) at position 0.
> gateway-worker | at org.json.simple.parser.Yylex.yylex(Unknown Source)
> gateway-worker | at org.json.simple.parser.JSONParser.nextToken(Unknown
> Source)
> gateway-worker | at org.json.simple.parser.JSONParser.parse(Unknown
> Source)
> gateway-worker | at org.json.simple.parser.JSONParser.parse(Unknown
> Source)
> gateway-worker | at org.json.simple.parser.JSONParser.parse(Unknown
> Source)
> gateway-worker | at org.wso2.carbon.apimgt.gateway
> .throttling.util.KeyTemplateRetriever.retrieveKeyTemplateDat
> a(KeyTemplateRetriever.java:100)
> gateway-worker | at org.wso2.carbon.apimgt.gateway
> .throttling.util.KeyTemplateRetriever.loadKeyTemplatesFromWe
> bService(KeyTemplateRetriever.java:111)
> gateway-worker | at org.wso2.carbon.apimgt.gateway
> .throttling.util.KeyTemplateRetriever.run(KeyTemplateRetriever.java:54)
> gateway-worker | at java.util.TimerThread.mainLoop(Timer.java:555)
> gateway-worker | at java.util.TimerThread.run(Timer.java:505)
> gateway-worker | Exception in thread "Timer-6"
> java.lang.NullPointerException
> gateway-worker | at java.util.Arrays$ArrayList. it>(Arrays.java:2842)
> gateway-worker | at java.util.Arrays.asList(Arrays.java:2828)
> gateway-worker | at org.wso2.carbon.apimgt.gateway
> .throttling.util.KeyTemplateRetriever.loadKeyTemplatesFromWe
> bService(KeyTemplateRetriever.java:111)
> gateway-worker | at org.wso2.carbon.apimgt.gateway
> .throttling.util.KeyTemplateRetriever.run(KeyTemplateRetriever.java:54)
> gateway-worker | at java.util.TimerThread.mainLoop(Timer.java:555)
> gateway-worker | at java.util.TimerThread.run(Timer.java:505)
> gateway-worker | Exception in thread "Timer-5"
> com.google.gson.JsonSyntaxException: java.lang.IllegalStateException:
> Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
> gateway-worker | at com.google.gson.internal.bind.
> ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdap
> terFactory.java:221)
> gateway-worker | at com.google.gson.Gson.fromJson(Gson.java:861)
> gateway-worker | at com.google.gson.Gson.fromJson(Gson.java:826)
> gateway-worker | at com.google.gson.Gson.fromJson(Gson.java:775)
> gateway-worker | at com.google.gson.Gson.fromJson(Gson.java:747)
> gateway-worker | at org.wso2.carbon.apimgt.gateway
> .throttling.util.BlockingConditionRetriever.retrieveBlockCon
> ditionsData(BlockingConditionRetriever.java:96)
> gateway-worker | at org.wso2.carbon.apimgt.gateway
> .throttling.util.BlockingConditionRetriever.loadBlockingCond
> itionsFromWebService(BlockingConditionRetriever.java:105)
> gateway-worker | at org.wso2.carbon.apimgt.gateway
> .throttling.util.BlockingConditionRetriever.run(BlockingCond
> itionRetriever.java:51)
> gateway-worker | at java.util.TimerThread.mainLoop(Timer.java:555)
> gateway-worker | at java.util.TimerThread.run(Timer.java:505)
> gateway-worker | Caused by: java.lang.IllegalStateException: Expected
> BEGIN_OBJECT but was STRING at line 1 column 1 path $
> gateway-worker | at com.google.gson.stream.JsonRea
> der.beginObject(JsonReader.java:388)
> gateway-worker | at com.google.gson.internal.bind.
> ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdap
> terFactory.java:210)
> gateway-worker | ... 9 more
>
> thanks,
> --
> Supun Malinga
>



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


[Dev] Error in AM 2.0 gateway

2016-08-22 Thread Supun Malinga
Hi,

Getting the following exception in gateway worker. Any idea what could be
causing this ?.
This is in a distributed cluster with store and KM in same node.
I can provide any configurations required..

​
 am-2.0-pattern-4

​


gateway-worker | [2016-08-16 09:35:09,422]  INFO - API Destroying API:
_WSO2AMTokenAPI_
gateway-worker | [2016-08-16 09:35:09,426]  INFO - API Initializing
API: _WSO2AMUserInfoAPI_
gateway-worker | [2016-08-16 09:35:09,426]  INFO - DependencyTracker
API : _WSO2AMUserInfoAPI_ was updated from the Synapse configuration
successfully
gateway-worker | [2016-08-16 09:35:09,426]  INFO - APIDeployer API:
_WSO2AMUserInfoAPI_ has been updated from the file:
/mnt/wso2am-2.0.0/repository/deployment/server/synapse-configs/default/api/_
UserInfoAPI_.xml
gateway-worker | [2016-08-16 09:35:11,427]  INFO - API Destroying API:
_WSO2AMUserInfoAPI_
gateway-worker | [2016-08-16 09:35:25,783] ERROR - KeyTemplateRetriever
Exception when retrieving throttling data from remote endpoint
gateway-worker | Unexpected character (<) at position 0.
gateway-worker | at org.json.simple.parser.Yylex.yylex(Unknown Source)
gateway-worker | at org.json.simple.parser.JSONParser.nextToken(Unknown
Source)
gateway-worker | at org.json.simple.parser.JSONParser.parse(Unknown
Source)
gateway-worker | at org.json.simple.parser.JSONParser.parse(Unknown
Source)
gateway-worker | at org.json.simple.parser.JSONParser.parse(Unknown
Source)
gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util.
KeyTemplateRetriever.retrieveKeyTemplateData(KeyTemplateRetriever.java:100)
gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util.
KeyTemplateRetriever.loadKeyTemplatesFromWebService
(KeyTemplateRetriever.java:111)
gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util.
KeyTemplateRetriever.run(KeyTemplateRetriever.java:54)
gateway-worker | at java.util.TimerThread.mainLoop(Timer.java:555)
gateway-worker | at java.util.TimerThread.run(Timer.java:505)
gateway-worker | Exception in thread "Timer-6"
java.lang.NullPointerException
gateway-worker | at java.util.Arrays$ArrayList.(Arrays.java:2842)
gateway-worker | at java.util.Arrays.asList(Arrays.java:2828)
gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util.
KeyTemplateRetriever.loadKeyTemplatesFromWebService
(KeyTemplateRetriever.java:111)
gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util.
KeyTemplateRetriever.run(KeyTemplateRetriever.java:54)
gateway-worker | at java.util.TimerThread.mainLoop(Timer.java:555)
gateway-worker | at java.util.TimerThread.run(Timer.java:505)
gateway-worker | Exception in thread "Timer-5"
com.google.gson.JsonSyntaxException:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at
line 1 column 1 path $
gateway-worker | at com.google.gson.internal.bind.
ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.
java:221)
gateway-worker | at com.google.gson.Gson.fromJson(Gson.java:861)
gateway-worker | at com.google.gson.Gson.fromJson(Gson.java:826)
gateway-worker | at com.google.gson.Gson.fromJson(Gson.java:775)
gateway-worker | at com.google.gson.Gson.fromJson(Gson.java:747)
gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util.
BlockingConditionRetriever.retrieveBlockConditionsData(
BlockingConditionRetriever.java:96)
gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util.
BlockingConditionRetriever.loadBlockingConditionsFromWebService(
BlockingConditionRetriever.java:105)
gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util.
BlockingConditionRetriever.run(BlockingConditionRetriever.java:51)
gateway-worker | at java.util.TimerThread.mainLoop(Timer.java:555)
gateway-worker | at java.util.TimerThread.run(Timer.java:505)
gateway-worker | Caused by: java.lang.IllegalStateException: Expected
BEGIN_OBJECT but was STRING at line 1 column 1 path $
gateway-worker | at com.google.gson.stream.JsonReader.beginObject(
JsonReader.java:388)
gateway-worker | at com.google.gson.internal.bind.
ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.
java:210)
gateway-worker | ... 9 more

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


Re: [Dev] How to get the page title of a dashboard page

2016-08-22 Thread Kalpa Welivitigoda
Hi Lasantha,

I have a breadcrumb (this is a separate gadget) in the dashboard in which I
display the navigation and the webapp filtering. Please refer the screen
capture attached herewith. There, 'browser' is the page and 'examples' is
the webapp name. When a user clickes 'browser', the page (other gadgets)
updates to fetch and show statistics related to all webapps.

How 'browser' is fetched at the moment is via the dashboard URL, we do a
parent.window.location.href and get the page URL. This is also not good
since we are using parent inside a gadget. May be we can consider adding
page URL as well for the meta data in the API.

The breadcrumb in the screen capture looks nice since it only has one word
for the page title/URL. When we have pages like 'HTTP Status Code' with
multiple words, it looks ugly since we cannot have spaces in the URL.

On Mon, Aug 22, 2016 at 12:22 PM, Lasantha Samarakoon 
wrote:

> @Kalpa, Can you please explain the use case of having the page title in a
> gadget?
>
>
> Regards,
>
> *Lasantha Samarakoon* | Software Engineer
> WSO2, Inc.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 (71) 214 1576
> Email:  lasant...@wso2.com
> Web:www.wso2.com
>
> lean . enterprise . middleware
>
> On Mon, Aug 22, 2016 at 12:07 PM, Nisala Nanayakkara 
> wrote:
>
>> Hi Kalpa,
>>
>> I have created jira for this issue [1]. We will implement an api to get
>> dashboard-meta data information in the next release. So you can get
>> relevant meta data information of the dashboard using the api.
>>
>> [1] - https://wso2.org/jira/browse/UES-1036
>>
>> Thanks,
>> Nisala
>>
>> On Mon, Aug 22, 2016 at 12:03 PM, Nipuna Chandradasa 
>> wrote:
>>
>>> Hi Kalpa,
>>>
>>> We currently have a API to send dashboard name and id. But we don't have
>>> a api to get the page details. But we will create a jira for this and add
>>> this as an improvement on next release.
>>>
>>> Thank you,
>>>
>>> On Mon, Aug 22, 2016 at 11:29 AM, Kalpa Welivitigoda 
>>> wrote:
>>>
 Hi devs,

 I have a dashboard with multiple pages. From a gadget in a page, I need
 to get the current page title. What would be the recommended approach to do
 this?



 --
 Best Regards,

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

 [image: http://wso2.com/signature] 

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


>>>
>>>
>>> --
>>> 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
>>>
>>>
>>
>>
>> --
>> *Nisala Niroshana Nanayakkara,*
>> Software Engineer
>> Mobile:(+94)717600022
>> WSO2 Inc., http://wso2.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards,

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

[image: http://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [C5]Class cast exception in MSF4j OAuth2 intercepter

2016-08-22 Thread Vinod Kavinda
Hi All,
I'm trying to use the OAuth2 intercepter from msf4j. I have tried the
OAuth2 sample from [1] and getting the following error. Problem seem to be
the line [2] where string is expected while a boolean is returned from the
response map.

Is this a known bug? or am I missing something here?

org.wso2.msf4j.internal.InterceptorException: Exception while executing
preCalls at
org.wso2.msf4j.internal.InterceptorExecutor.execPreCalls(InterceptorExecutor.java:69)
at
org.wso2.msf4j.internal.MSF4JMessageProcessor.dispatchMethod(MSF4JMessageProcessor.java:113)
at
org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(MSF4JMessageProcessor.java:73)
at
org.wso2.carbon.transport.http.netty.listener.WorkerPoolDispatchingSourceHandler$1.run(WorkerPoolDispatchingSourceHandler.java:127)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at
java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.ClassCastException: java.lang.Boolean cannot be cast
to java.lang.String at
org.wso2.msf4j.security.oauth2.OAuth2SecurityInterceptor.validateToken(OAuth2SecurityInterceptor.java:117)
at
org.wso2.msf4j.security.oauth2.OAuth2SecurityInterceptor.preCall(OAuth2SecurityInterceptor.java:80)
at
org.wso2.msf4j.internal.InterceptorExecutor.execPreCalls(InterceptorExecutor.java:63)

... 6 more
[2] - https://github.com/wso2/msf4j/tree/master/samples/oauth2-security
[3] -
https://github.com/wso2/msf4j/blob/master/core/src/main/java/org/wso2/msf4j/security/oauth2/OAuth2SecurityInterceptor.java#L117

-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware .*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]

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


Re: [Dev] How to get the page title of a dashboard page

2016-08-22 Thread Lasantha Samarakoon
@Kalpa, Can you please explain the use case of having the page title in a
gadget?


Regards,

*Lasantha Samarakoon* | Software Engineer
WSO2, Inc.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 (71) 214 1576
Email:  lasant...@wso2.com
Web:www.wso2.com

lean . enterprise . middleware

On Mon, Aug 22, 2016 at 12:07 PM, Nisala Nanayakkara 
wrote:

> Hi Kalpa,
>
> I have created jira for this issue [1]. We will implement an api to get
> dashboard-meta data information in the next release. So you can get
> relevant meta data information of the dashboard using the api.
>
> [1] - https://wso2.org/jira/browse/UES-1036
>
> Thanks,
> Nisala
>
> On Mon, Aug 22, 2016 at 12:03 PM, Nipuna Chandradasa 
> wrote:
>
>> Hi Kalpa,
>>
>> We currently have a API to send dashboard name and id. But we don't have
>> a api to get the page details. But we will create a jira for this and add
>> this as an improvement on next release.
>>
>> Thank you,
>>
>> On Mon, Aug 22, 2016 at 11:29 AM, Kalpa Welivitigoda 
>> wrote:
>>
>>> Hi devs,
>>>
>>> I have a dashboard with multiple pages. From a gadget in a page, I need
>>> to get the current page title. What would be the recommended approach to do
>>> this?
>>>
>>>
>>>
>>> --
>>> Best Regards,
>>>
>>> Kalpa Welivitigoda
>>> Senior Software Engineer, WSO2 Inc. http://wso2.com
>>> Email: kal...@wso2.com
>>> Mobile: +94776509215
>>>
>>> [image: http://wso2.com/signature] 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
> *Nisala Niroshana Nanayakkara,*
> Software Engineer
> Mobile:(+94)717600022
> WSO2 Inc., http://wso2.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to get the page title of a dashboard page

2016-08-22 Thread Nisala Nanayakkara
Hi Kalpa,

I have created jira for this issue [1]. We will implement an api to get
dashboard-meta data information in the next release. So you can get
relevant meta data information of the dashboard using the api.

[1] - https://wso2.org/jira/browse/UES-1036

Thanks,
Nisala

On Mon, Aug 22, 2016 at 12:03 PM, Nipuna Chandradasa 
wrote:

> Hi Kalpa,
>
> We currently have a API to send dashboard name and id. But we don't have a
> api to get the page details. But we will create a jira for this and add
> this as an improvement on next release.
>
> Thank you,
>
> On Mon, Aug 22, 2016 at 11:29 AM, Kalpa Welivitigoda 
> wrote:
>
>> Hi devs,
>>
>> I have a dashboard with multiple pages. From a gadget in a page, I need
>> to get the current page title. What would be the recommended approach to do
>> this?
>>
>>
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Senior Software Engineer, WSO2 Inc. http://wso2.com
>> Email: kal...@wso2.com
>> Mobile: +94776509215
>>
>> [image: http://wso2.com/signature] 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 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
>
>


-- 
*Nisala Niroshana Nanayakkara,*
Software Engineer
Mobile:(+94)717600022
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to get the page title of a dashboard page

2016-08-22 Thread Nipuna Chandradasa
Hi Kalpa,

We currently have a API to send dashboard name and id. But we don't have a
api to get the page details. But we will create a jira for this and add
this as an improvement on next release.

Thank you,

On Mon, Aug 22, 2016 at 11:29 AM, Kalpa Welivitigoda 
wrote:

> Hi devs,
>
> I have a dashboard with multiple pages. From a gadget in a page, I need to
> get the current page title. What would be the recommended approach to do
> this?
>
>
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Senior Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>
> [image: http://wso2.com/signature] 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
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] SnakeYAML is already an OSGi bundle. Why do we have SnakeYAML in orbit?

2016-08-22 Thread Shan Mahanama
[Adding Jayanga]

On Mon, Aug 1, 2016 at 10:18 AM, Shan Mahanama  wrote:

> Hi Isuru,
>
> Sorry about the delay to reply. We are looking into this issue and will
> fix this in the next version (5.2.0).
>
> Thanks,
> Shan.
>
> On Wed, Jul 27, 2016 at 12:30 PM, Isuru Perera  wrote:
>
>> Hi Shan,
>>
>> Any updates on this?
>>
>> On Thu, Jun 30, 2016 at 9:58 AM, Shan Mahanama  wrote:
>>
>>> Hi Kishanthan,
>>>
>>> I will check it and update you as soon as possible.
>>>
>>> Thanks,
>>> Shan.
>>>
>>> On Wed, Jun 29, 2016 at 6:20 PM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
 Thanks Isuru.

 @Shan, let's check on this and try to fix it.

 On Wed, Jun 29, 2016 at 6:12 PM, Isuru Perera  wrote:

> Hi Kishanthan,
>
> I created a JIRA: https://wso2.org/jira/browse/CARBON-15972
>
> I just saw that stackoverflow question when searching for some other
> issue.
>
> Thanks!
>
> Best Regards,
> It would also be great if you can create a jira for this with the
> information so that we could add this for next kernel release.
>
> On Wed, Jun 29, 2016 at 4:51 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Thanks Isuru. We can try and add this option, which would remove the
>> need for Dynamic-Import.
>>
>> On Wed, Jun 29, 2016 at 3:42 PM, Isuru Perera 
>> wrote:
>>
>>> I just saw that SnakeYaml provides a "CustomClassLoaderConstructor".
>>> Could you please check on that.
>>>
>>> See: http://stackoverflow.com/questions/4940379/using-
>>> snakeyaml-under-osgi/4944346#4944346
>>>
>>>
>>> On Thu, May 19, 2016 at 1:31 PM, Isuru Perera 
>>> wrote:
>>>
 Thanks for info.

 Shall we ask the snakeyaml developers to add the Dynamic-Import
 header. May be we can create an issue [1]. Otherwise, that library is 
 not
 useful in an OSGi container, right?

 [1] https://bitbucket.org/asomov/snakeyaml/issues?status=new;
 status=open

 On Thu, May 5, 2016 at 7:25 AM, Kishanthan Thangarajah <
 kishant...@wso2.com> wrote:

> This is because we had to add Dynamic-Import header to this
> bundle, which is missing in the original bundle, as snakeyaml was 
> loading
> classes dynamically when trying to build and construct the bean 
> object for
> the configuration.
>
> On Wed, May 4, 2016 at 12:16 PM, Isuru Perera 
> wrote:
>
>> Hi,
>>
>> $subject [1]. See manifest entries in latest JARs [2]
>>
>> [1] https://github.com/wso2/orbit/tree/master/snakeyaml/1.16.0.
>> wso2v1
>> [2] http://search.maven.org/#search|gav|1|g%3A%22org.yaml%
>> 22%20AND%20a%3A%22snakeyaml%22
>> 
>>
>> --
>> Isuru Perera
>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>> Contact: +IsuruPereraWSO2
>> 
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com
> *
> Twitter - *http://twitter.com/kishanthan
> *
>



 --
 Isuru Perera
 Associate Technical Lead | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 about.me/chrishantha
 Contact: +IsuruPereraWSO2
 

>>>
>>>
>>>
>>> --
>>> Isuru Perera
>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> about.me/chrishantha
>>> Contact: +IsuruPereraWSO2
>>> 
>>>
>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> *
>> Twitter - *http://twitter.com/kishanthan
>> *
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Technical Lead,
> Platform Technologies Team,
> WSO2,