Re: [Dev] [Gsoc2016] [PC] Web (Javascript / D3) based BPMN editor to support a subset of commonly used BPMN constructs

2016-05-19 Thread Heshan Jayasinghe
Hi Isuru,
I completed Start Event,End Event,Gateways and Task.Currently these
component can move in the canvas.As we discussed in our last meeting I am
working for packaging the current source code,drawing flows,component
re-sizing,creating property window and adding text areas to Task
component.After I applying packaging structure i will share my github
code.Hope I can send it soon.
Thank you,
Regards,
Heshan Jayasinghe

On Wed, May 18, 2016 at 10:04 AM, Isuru Wijesinghe  wrote:

> Hi Heshan,
>
> Any update on your progress? Could you please share with us your code
> through github. Then we can give some feedback.
>
> Thanks,
> Isuru
>
> On Thu, Mar 24, 2016 at 1:23 PM, Heshan Jayasinghe 
> wrote:
>
>> Hi,
>> I submit my final proposal through GSOC site.Could you please read my
>> proposal and add some comments.
>> Thank you!
>> regards,
>> Heshan Jayasinghe
>>
>> On Wed, Mar 23, 2016 at 8:38 AM, Isuru Wijesinghe 
>> wrote:
>>
>>> Hi Heshan,
>>>
>>> We have already added few comments. Could you please fix them and share
>>> the updated proposal ?
>>>
>>> Thanks and Best Regards,
>>>
>>> On Fri, Mar 18, 2016 at 9:48 PM, Isuru Wijesinghe 
>>> wrote:
>>>
 Hi Heshan,

 We appreciate your quick response. The main deliverable of this project
 is a javascript/D3 based BPMN editor which allows Process Center users to
 define business processes using a graphical notation from the *web UI*.
 (No server side involvement). Keep on progressing on the project and if you
 get stuck at any point, don't hesitate to contact us.

 Thanks and Best Regards,


 On Fri, Mar 18, 2016 at 11:35 AM, Heshan Jayasinghe >>> > wrote:

> HI,
> Could you please tell me how server side involve in this project? Web
> Editor can developed as a single page application and we can run it in 
> java
> server.hope this application haven't any server side development.Please 
> let
> me know if there server side development involve.if there any server side
> development i willing to complete that task too.
>
> I already complete my proposal and now I am doing final fine tuning of
> my proposal.I will send it tomorrow.from today onwards I start my
> development  for first iteration.
>
> Thank you!
> regards,
> Heshan Jayasinghe
>
>
>
> On Tue, Mar 15, 2016 at 9:37 AM, Isuru Wijesinghe 
> wrote:
>
>> Great. My contact number :
>>
>>
>> *0710933706*
>> Thanks and Best Regards,
>>
>> On Tue, Mar 15, 2016 at 9:30 AM, Heshan Jayasinghe <
>> shanu...@gmail.com> wrote:
>>
>>> Hi Isuru,
>>> My proposal 70% over now.I will send you copy soon.could you please
>>> send me your contact number to get more information.
>>> Thank you!
>>> regards,
>>> Heshan jayasinghe
>>>
>>>
>>
>>
>> --
>> Isuru Wijesinghe
>> *Software Engineer*
>> WSO2 inc : http://wso2.com
>> lean.enterprise.middleware
>> Mobile: 0710933706
>> isur...@wso2.com
>>
>
>


 --
 Isuru Wijesinghe
 *Software Engineer*
 WSO2 inc : http://wso2.com
 lean.enterprise.middleware
 Mobile: 0710933706
 isur...@wso2.com

>>>
>>>
>>>
>>> --
>>> Isuru Wijesinghe
>>> *Software Engineer*
>>> WSO2 inc : http://wso2.com
>>> lean.enterprise.middleware
>>> Mobile: 0710933706
>>> isur...@wso2.com
>>>
>>
>>
>
>
> --
> Isuru Wijesinghe
> *Software Engineer*
> WSO2 inc : http://wso2.com
> lean.enterprise.middleware
> Mobile: 0710933706
> isur...@wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Adding a user with '@' sign (username == test@user) without enable Email User

2016-05-19 Thread Nuwan Dias
IMO we should set  to 'true' in carbon.xml to be able
to create users in the form of u...@email.com. My opinion is that we should
prevent entering those type of usernames if that config is 'false'.

Thanks,
NuwanD.

On Thu, May 19, 2016 at 11:23 AM, Dhanuka Ranasinghe 
wrote:

> Hi All,
>
> Currently we can add user with user name with @ sign, say for example if
> the user name is "test@user" without enabling Email User, Carbon
> Management console allow to add this user. But when we are trying to do the
> same thing as user sign up with APIM manager it's getting failed with super
> tenant. We found the root cause is at [1] line. Reason is from following
> highlighted code line we are getting *tenantAwareUserName* as *test* by
> removing* @user* part. Also *tenantName* also getting as *user*, which
> are wrong, and due to that realm become *Null*.
>
> There are few things need to be consider here.
>
> 1.  Is it correct allowing to add username with *@* sign at Carbon
> Management Console without enable Email User?
> 2. Assume we have tenant domain called *wso2.com *, then
> create user as *abc* with password *admin* in that domain space and again
>  we create user as *a...@wso2.com * from super tenant space
> with password as *admin.*
>
> So when we try to login as* a...@wso2.com *, it login to 
> *wso2.com
> * tenant space. To login to super tenant user we need to
> login as *a...@wso2.com@carbon.super*. Will this be OK?
>
> [1] *org.wso2.carbon.identity.user.registration.UserRegistrationService.*
> *addUser(UserDTO)*
> *String tenantAwareUserName =
> MultitenantUtils.getTenantAwareUsername(user.getUserName());*
> *String tenantName = MultitenantUtils.getTenantDomain(user.getUserName());*
> *realm = IdentityTenantUtil.getRealm(tenantName, null);*
>
>
> Cheers,
> Dhanuka
>
> *Dhanuka Ranasinghe*
>
> Associate TechLead
> WSO2 Inc. ; http://wso2.com
> lean . enterprise . middleware
>
> phone : +94 715381915
>



-- 
Nuwan Dias

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


[Dev] Can we use Snakeyaml 1.17 in Carbon 5.1.0?

2016-05-19 Thread Isuru Perera
Hi Carbon Team,

I noticed that there is a new version for snakeyaml [1]. Do you usually
check your dependencies before releasing a new Carbon Kernel version?

[1] http://mvnrepository.com/artifact/org.yaml/snakeyaml

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

2016-05-19 Thread Isuru Perera
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 
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 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can we use Snakeyaml 1.17 in Carbon 5.1.0?

2016-05-19 Thread Niranjan Karunanandham
Hi Isuru,

+1 to upgrade the snakeyaml version. IMO it would be better to upgrade the
version, but before that we need to verify if there has been any API
changes (since it is a minor release).

Regards,
Nira

On Thu, May 19, 2016 at 1:27 PM, Isuru Perera  wrote:

> Hi Carbon Team,
>
> I noticed that there is a new version for snakeyaml [1]. Do you usually
> check your dependencies before releasing a new Carbon Kernel version?
>
> [1] http://mvnrepository.com/artifact/org.yaml/snakeyaml
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 
>



-- 

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


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

2016-05-19 Thread Awanthika Senarath
Hi Nuwan ,

Please find my inline comments,

Please note that all three bugs reported are not related to Kernel, but to
Developer Studio Tooling Platform, RC2 of Tooling Platform will be released
today for voting.

https://wso2.org/jira/browse/TOOLS-3413

This has already been fixed in the latest Platform RC released this
morning, with which version of platform did you test? Please install the
latest Platform Tooling versions from [1] and confirm if the issue exist. I
have tested with [1] and could not reproduce.
https://wso2.org/jira/browse/TOOLS-3412

This is a linux specific issue, and I will look into this.

https://wso2.org/jira/browse/TOOLS-3411

This has been changed and committed in the latest Platform Release RC


[1]
http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/platform-bundles/


Regards
Awanthika

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Thu, May 19, 2016 at 11:02 AM, Nuwan Pallewela  wrote:

> Hi All,
>
> I have tested and following issues were found.
>
> https://wso2.org/jira/browse/TOOLS-3413
> https://wso2.org/jira/browse/TOOLS-3412
> https://wso2.org/jira/browse/TOOLS-3411
>
> Thanks,
> Nuwan
>
> On Thu, May 19, 2016 at 9:48 AM, Awanthika Senarath 
> wrote:
>
>> Thanks all,
>>
>> We are closing this vote with 5 +1's and 0 -1's.
>>
>> The RC has passed the vote.
>>
>> Regards
>> Awanthika
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> On Wed, May 18, 2016 at 12:54 PM, Jasintha Dasanayake 
>> wrote:
>>
>>> Hi All
>>>
>>> I have tested the update tool , new feature installation and kernel
>>> patch process , no major issues found
>>>
>>> +1
>>>
>>> Thanks and Regards
>>> /Jasintha
>>>
>>> On Wed, May 18, 2016 at 11:23 AM, Heshitha Hettihewa >> > wrote:
>>>
 Hi all,

 I have tested BPS Tooling and no major issues found.

 +1

 Thanks.

 On Wed, May 18, 2016 at 9:10 AM, Isuru Udana  wrote:

> Hi,
>
> Tested with ESB tools and found no major issues.
>
> +1.
>
> On Wed, May 18, 2016 at 9:05 AM, Sohani Weerasinghe 
> wrote:
>
>> Hi All,
>>
>> I have tested the updater tool functionality including installing
>> features and also the updater tool preferences.
>>
>> +1
>>
>> Thanks,
>> Sohani
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Wed, May 18, 2016 at 8:32 AM, Awanthika Senarath <
>> awanth...@wso2.com> wrote:
>>
>>> I have tested,
>>>
>>> Installation of Developer Studio Platform, ESB and CEP tools on top
>>> of kernel
>>> Updater tool functionality, installation and job running
>>>
>>>
>>>
>>>  +1,
>>>
>>> Regards
>>> Awanthika
>>>
>>> Awanthika Senarath
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94717681791
>>>
>>>
>>>
>>> On Mon, May 16, 2016 at 3:10 PM, Awanthika Senarath <
>>> awanth...@wso2.com> wrote:
>>>
 Hello Devs,


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

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

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

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

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



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



 Regards,
 Dev Studio Team

 Awanthika Senarath
 Software Engineer, WSO2 Inc.
 Mobile: +94717681791



>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Isuru Udana*
> Associate Tec

Re: [Dev] [DevStudio] How to retrieve DevStudio kernel key store certificates?

2016-05-19 Thread Awanthika Senarath
Hi Thilini,

With the eclipse migration to Mars, we cannot use the system property JKS
parameters, Eclipse has removed this facility from Mars onwards.

The recommended approach is to set a Trust all manager for your connection,
Please refer commit at [1] at class CloudAdminServiceClient for an example
of the implementation required to fix the issue mentioned.


[1]
https://github.com/wso2/devstudio-tooling-platform/commit/3baa889449568d29f2fdc71b2bc34d2451f1c359

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Thu, May 19, 2016 at 11:43 AM, Thilini Cooray  wrote:

> Hi,
>
> I am trying to call a HTTPS REST service of WSO2 API Manager through a
> Developer Studio plugin.
>
> I am getting following error [1] as API Manager does not contain any valid
> certificate for this plugin on its client truststore.
>
> Appreciate your opinion on how to retrieve the Devstudio kernel keystore
> certificate to resolve above issue.
>
> Thanks.
>
> [1]
>
> java.lang.Exception: Connection error (is server running at
> https://localhost:9443/client-registration/v0.9/register ?):
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
>
> at ...at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:463)
>
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:371)
>
> at
> org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:500)
>
> at
> org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:284)
>
> at
> org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1204)
>
> at
> org.eclipse.ui.internal.progress.ProgressManager$RunnableWithStatus.run(ProgressManager.java:1394)
>
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
>
> at
> org.eclipse.ui.internal.progress.ProgressManager$5.run(ProgressManager.java:1228)
>
> at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:186)
>
> at
> org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:145)
>
> at org.eclipse.swt.widgets.Display.syncExec(Display.java:4781)
>
> at
> org.eclipse.ui.internal.progress.ProgressManager.runInUI(ProgressManager.java:1225)
>
> at ..
>
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4230)
>
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1491)
>
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1514)
>
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1499)
>
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1299)
>
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4072)
>
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3698)
>
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
>
> at org.eclipse.jface.window.Window.open(Window.java:803)
>
> at .
>
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4230)
>
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1491)
>
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1514)
>
> at org.eclipse.swt.widgets.Widget.sendSelectionEvent(Widget.java:1564)
>
> at
> org.eclipse.swt.widgets.Link.textView_clickOnLink_atIndex(Link.java:117)
>
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:6010)
>
> at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
>
> at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:227)
>
> at org.eclipse.swt.widgets.Widget.mouseDownSuper(Widget.java:1121)
>
> at org.eclipse.swt.widgets.Widget.mouseDown(Widget.java:1113)
>
> at org.eclipse.swt.widgets.Control.mouseDown(Control.java:2571)
>
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:5692)
>
> at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
>
> at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:227)
>
> at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2130)
>
> at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2337)
>
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:5756)
>
> at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
>
> at
> org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:5193)
>
> at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5342)
>
> at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(N

[Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-19 Thread Sudharma Subasinghe
Hi all,

I am working on developing BPMN explorer ui using Unified UI Framework.

The existing BPMN explorer ui is for BPS which has built on C4 and it is
used Jaggery. So, I am working on BPMN explorer ui for BPS which is to be
released on C5.

We need to implement business logics in backend. For example, I need to
send request to backend from browser, and from backend to BPS. Is there
functionality to achieve it in UUF?

Any idea on this is appreciated.

Thanks
Sudharma

-- 
Sudharma Subasinghe,
Software Engineer,
WSO2 Inc.
Email: sudhar...@wso2.com 
Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Adding a user with '@' sign (username == test@user) without enable Email User

2016-05-19 Thread Bhathiya Jayasekara
On Thu, May 19, 2016 at 12:59 PM, Nuwan Dias  wrote:

> IMO we should set  to 'true' in carbon.xml to be able
> to create users in the form of u...@email.com. My opinion is that we
> should prevent entering those type of usernames if that config is 'false'.
>

+1. IIRC current behavior was not there in Kernel 4.2.0 products.

@IS team: was there any special reason to introduce this? As Dhanuka
mentioned above, this leads to ambiguity between user *a...@x.com
* of *super tenant* and user* abc* from tenant* x.com
. *And the most critical issue here is if we have a user
*a...@x.com
* in super tenant, it will break all the places where it uses
*MultitenantUtils.getTenantAwareUsername. *So we need to come to a decision
about this soon.

Thanks,
Bhathiya


>
> Thanks,
> NuwanD.
>
> On Thu, May 19, 2016 at 11:23 AM, Dhanuka Ranasinghe 
> wrote:
>
>> Hi All,
>>
>> Currently we can add user with user name with @ sign, say for example if
>> the user name is "test@user" without enabling Email User, Carbon
>> Management console allow to add this user. But when we are trying to do the
>> same thing as user sign up with APIM manager it's getting failed with super
>> tenant. We found the root cause is at [1] line. Reason is from following
>> highlighted code line we are getting *tenantAwareUserName* as *test* by
>> removing* @user* part. Also *tenantName* also getting as *user*, which
>> are wrong, and due to that realm become *Null*.
>>
>> There are few things need to be consider here.
>>
>> 1.  Is it correct allowing to add username with *@* sign at Carbon
>> Management Console without enable Email User?
>> 2. Assume we have tenant domain called *wso2.com *,
>> then create user as *abc* with password *admin* in that domain space and
>> again  we create user as *a...@wso2.com * from super tenant
>> space with password as *admin.*
>>
>> So when we try to login as* a...@wso2.com *, it login to 
>> *wso2.com
>> * tenant space. To login to super tenant user we need
>> to login as *a...@wso2.com@carbon.super*. Will this be OK?
>>
>> [1] *org.wso2.carbon.identity.user.registration.UserRegistrationService.*
>> *addUser(UserDTO)*
>> *String tenantAwareUserName =
>> MultitenantUtils.getTenantAwareUsername(user.getUserName());*
>> *String tenantName =
>> MultitenantUtils.getTenantDomain(user.getUserName());*
>> *realm = IdentityTenantUtil.getRealm(tenantName, null);*
>>
>>
>> Cheers,
>> Dhanuka
>>
>> *Dhanuka Ranasinghe*
>>
>> Associate TechLead
>> WSO2 Inc. ; http://wso2.com
>> lean . enterprise . middleware
>>
>> phone : +94 715381915
>>
>
>
>
> --
> Nuwan Dias
>
> Technical Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC Dockerfiles weekly status meeting minutes

2016-05-19 Thread Vishanth Balasubramaniam
Hi,

That's great Abhishek.

You can build the docker images using puppet provisioning for Kubernetes
platform and try to deploy in Kubernetes,
you can follow the steps provided in the docs [1]. It is very easy to
follow.

[1] -
https://docs.wso2.com/display/KA100/Deploying+a+WSO2+Product+in+Kubernetes

Regards,
Vishanth

On Thu, May 19, 2016 at 9:49 AM, Abhishek Tiwari <
abhishek.tiwari0...@gmail.com> wrote:

> Hi All,
>
> Following are the meeting notes from our weekly status update meeting:
>
> *Tasks completed:*
> 1. Completed code walk-through of Dockerfiles project.
> 2. Understanding and build of clustered configuration for WSO2 ESB. This
> was a huge step in understanding various profiles for clustered environment.
> 3. Debugging and testing of docker-build and docker-run scripts.
> 4. Added ability to fail fast when docker daemon is not running in the
> host. Pull request [1].
>
> *Current tasks:*
> 1. Deploy docker products using puppet provisioning modules [2].
> 2. Use puppet provisioning to configure manager and worker profiles for
> ESB.
> 3. Investigate suitable programming languages and technologies for the
> proposed test framework.
>
> Thanks,
> Abhishek
>
> [1]. https://github.com/wso2/dockerfiles/pull/44
> [2]. https://github.com/wso2/puppet-modules
>
>


-- 
*Vishanth Balasubramaniam*
Committer & PMC Member, Apache Stratos,
Software Engineer, WSO2 Inc.; http://wso2.com

mobile: *+94 77 17 377 18*
about me: *http://about.me/vishanth *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Why there is a TestNG version 6.9.11 in WSO2 Maven Repo??

2016-05-19 Thread Isuru Perera
Hi,

I noticed that there is a TestNG version 6.9.11 in WSO2 Maven Repo.

The latest TestNG version is 6.9.10 [2, 3].

I usually use "mvn versions:display-dependency-updates" to update my
dependencies and I thought TestNG 6.9.11 is the latest version.

I had an issue with Pax Exam OSGi tests and the build was not failing if
there is an assertion error in TestNG 6.9.11.

However that issue is solved when using the TestNG 6.9.10.

I was checking on this issue for few days because of the this unknown
TestNG version in WSO2 Maven Repo! :(

[1]
http://maven.wso2.org/nexus/content/groups/wso2-public/org/testng/testng/6.9.11/
[2] http://search.maven.org/#search|ga|1|testng
[3] http://mvnrepository.com/artifact/org.testng/testng

-- 
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] [DevStudio] How to retrieve DevStudio kernel key store certificates?

2016-05-19 Thread Thilini Cooray
Thanks, Awanthika.
I was able to resolve the issue.

On Thu, May 19, 2016 at 1:52 PM, Awanthika Senarath 
wrote:

> Hi Thilini,
>
> With the eclipse migration to Mars, we cannot use the system property JKS
> parameters, Eclipse has removed this facility from Mars onwards.
>
> The recommended approach is to set a Trust all manager for your
> connection, Please refer commit at [1] at class CloudAdminServiceClient for
> an example of the implementation required to fix the issue mentioned.
>
>
> [1]
> https://github.com/wso2/devstudio-tooling-platform/commit/3baa889449568d29f2fdc71b2bc34d2451f1c359
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Thu, May 19, 2016 at 11:43 AM, Thilini Cooray 
> wrote:
>
>> Hi,
>>
>> I am trying to call a HTTPS REST service of WSO2 API Manager through a
>> Developer Studio plugin.
>>
>> I am getting following error [1] as API Manager does not contain any
>> valid certificate for this plugin on its client truststore.
>>
>> Appreciate your opinion on how to retrieve the Devstudio kernel keystore
>> certificate to resolve above issue.
>>
>> Thanks.
>>
>> [1]
>>
>> java.lang.Exception: Connection error (is server running at
>> https://localhost:9443/client-registration/v0.9/register ?):
>> sun.security.validator.ValidatorException: PKIX path building failed:
>> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
>> valid certification path to requested target
>>
>> at ...at
>> org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:463)
>>
>> at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:371)
>>
>> at
>> org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:500)
>>
>> at
>> org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:284)
>>
>> at
>> org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1204)
>>
>> at
>> org.eclipse.ui.internal.progress.ProgressManager$RunnableWithStatus.run(ProgressManager.java:1394)
>>
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
>>
>> at
>> org.eclipse.ui.internal.progress.ProgressManager$5.run(ProgressManager.java:1228)
>>
>> at
>> org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:186)
>>
>> at
>> org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:145)
>>
>> at org.eclipse.swt.widgets.Display.syncExec(Display.java:4781)
>>
>> at
>> org.eclipse.ui.internal.progress.ProgressManager.runInUI(ProgressManager.java:1225)
>>
>> at ..
>>
>> at
>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
>>
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>>
>> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4230)
>>
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1491)
>>
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1514)
>>
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1499)
>>
>> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1299)
>>
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4072)
>>
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3698)
>>
>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
>>
>> at org.eclipse.jface.window.Window.open(Window.java:803)
>>
>> at .
>>
>> at
>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
>>
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>>
>> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4230)
>>
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1491)
>>
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1514)
>>
>> at org.eclipse.swt.widgets.Widget.sendSelectionEvent(Widget.java:1564)
>>
>> at
>> org.eclipse.swt.widgets.Link.textView_clickOnLink_atIndex(Link.java:117)
>>
>> at org.eclipse.swt.widgets.Display.windowProc(Display.java:6010)
>>
>> at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
>>
>> at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:227)
>>
>> at org.eclipse.swt.widgets.Widget.mouseDownSuper(Widget.java:1121)
>>
>> at org.eclipse.swt.widgets.Widget.mouseDown(Widget.java:1113)
>>
>> at org.eclipse.swt.widgets.Control.mouseDown(Control.java:2571)
>>
>> at org.eclipse.swt.widgets.Display.windowProc(Display.java:5692)
>>
>> at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
>>
>> at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:227)
>>
>> at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2130)
>>
>> at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2337)
>>
>> at org.eclipse.swt.widgets.Display.windowProc(Display.java:5756)
>>
>> at org.eclipse.

[Dev] [DEV] [VOTE] WSO2 Developer Studio Tooling for Platform RC1

2016-05-19 Thread Awanthika Senarath
Hello Devs,


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

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

.

Developer Studio 4.1.0  Tooling for Platform is released on Developer
Studio kernel 4.1.0
Developer Studio Kernel contains a single feature which has the bundles
that are required to implement WSO2 specific product tooling on Eclipse.

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



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


The platform could to be tested on top of Developer Studio Kernel with
compatible tooling SNAPSHOT versions available at [1].


[1]
http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/

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


Re: [Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-19 Thread SajithAR Ariyarathna
Hi Sudharma,

In the browser (client-side), you can do AJAX calls to the necessary REST
APIs. However, doing HTTP requests from UI backend (which runs on the
server-side) to REST APIs (which also runs on the server-side) is not
recommended. Instead of that you should call OSGi services. Calling OSGI
services from server-side JS will be available in the next milestone of UUF.

Thanks.

On Thu, May 19, 2016 at 2:21 PM, Sudharma Subasinghe 
wrote:

> Hi all,
>
> I am working on developing BPMN explorer ui using Unified UI Framework.
>
> The existing BPMN explorer ui is for BPS which has built on C4 and it is
> used Jaggery. So, I am working on BPMN explorer ui for BPS which is to be
> released on C5.
>
> We need to implement business logics in backend. For example, I need to
> send request to backend from browser, and from backend to BPS. Is there
> functionality to achieve it in UUF?
>
> Any idea on this is appreciated.
>
> Thanks
> Sudharma
>
> --
> Sudharma Subasinghe,
> Software Engineer,
> WSO2 Inc.
> Email: sudhar...@wso2.com 
> Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
>



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


[Dev] [BPS][Tooling] Version numbers for product based Tooling releases

2016-05-19 Thread Heshitha Hettihewa
Hi all,

Currently I'm in the process of developing BPS Tooling for Developer
Studio.For the product based Tooling releases like these what is the most
appropriate version number?. As this is the first BPS tooling release
should it be 1.0.0 or should it be a version related to current dev studio
version (4.1.0) ?.

Thanks.
-- 
Heshitha Hettihewa
*Software Engineer*
Mobile : +94716866386
<%2B94%20%280%29%20773%20451194>
heshit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS][Tooling] Version numbers for product based Tooling releases

2016-05-19 Thread Awanthika Senarath
Hello Heshitha,


According to the discussion at [1] it was proposed for product tooling to
go with the particular product versions.

[1] Re: names for tooling/analytics releases for servers (was: Re: Where is
ESB tooling alpha ??)

Regards
Awanthika

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Thu, May 19, 2016 at 4:03 PM, Heshitha Hettihewa 
wrote:

> Hi all,
>
> Currently I'm in the process of developing BPS Tooling for Developer
> Studio.For the product based Tooling releases like these what is the most
> appropriate version number?. As this is the first BPS tooling release
> should it be 1.0.0 or should it be a version related to current dev studio
> version (4.1.0) ?.
>
> Thanks.
> --
> Heshitha Hettihewa
> *Software Engineer*
> Mobile : +94716866386
> <%2B94%20%280%29%20773%20451194>
> heshit...@wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS][Tooling] Version numbers for product based Tooling releases

2016-05-19 Thread Heshitha Hettihewa
Hi Awanthika,

Thanks a lot for the help. I will use the BPS product version for the
release.

Thanks.

On Thu, May 19, 2016 at 4:15 PM, Awanthika Senarath 
wrote:

> Hello Heshitha,
>
>
> According to the discussion at [1] it was proposed for product tooling to
> go with the particular product versions.
>
> [1] Re: names for tooling/analytics releases for servers (was: Re: Where
> is ESB tooling alpha ??)
>
> Regards
> Awanthika
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Thu, May 19, 2016 at 4:03 PM, Heshitha Hettihewa 
> wrote:
>
>> Hi all,
>>
>> Currently I'm in the process of developing BPS Tooling for Developer
>> Studio.For the product based Tooling releases like these what is the most
>> appropriate version number?. As this is the first BPS tooling release
>> should it be 1.0.0 or should it be a version related to current dev studio
>> version (4.1.0) ?.
>>
>> Thanks.
>> --
>> Heshitha Hettihewa
>> *Software Engineer*
>> Mobile : +94716866386
>> <%2B94%20%280%29%20773%20451194>
>> heshit...@wso2.com
>>
>
>


-- 
Heshitha Hettihewa
*Software Engineer*
Mobile : +94716866386
<%2B94%20%280%29%20773%20451194>
heshit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-05-19 Thread Isuru Haththotuwa
Hi Osura,

Sorry for the delayed response.

Shall we have a hangout at 11 AM on 20th May (Friday)?

On Tue, May 17, 2016 at 9:09 PM, Osura Rathnayake 
wrote:

> Hi Imesh,
>
> Shall we have a hangout on Thursday or so?
>
>
> On Thu, May 12, 2016 at 8:26 PM, Imesh Gunaratne  wrote:
>
>> Hi Osura,
>>
>> On Thu, May 12, 2016 at 8:09 PM, Osura Rathnayake 
>>  wrote:
>>
>>> Hi Mentors,
>>>
>>> I created a github repository so that all the work related to this
>>> project can be accumulated with ease.
>>> here is the link https://github.com/osuran/azure-membership-scheme.
>>>
>>
>> Great! Will you be able to arrange a Hangout and demonstrate what you did
>> so far?
>>
>> Thanks
>>
>> On Thu, May 12, 2016 at 8:09 PM, Osura Rathnayake 
>> wrote:
>>
>>> Hi Mentors,
>>>
>>> I created a github repository so that all the work related to this
>>> project can be accumulated with ease.
>>> here is the link https://github.com/osuran/azure-membership-scheme.
>>>
>>> On Wed, May 11, 2016 at 11:22 AM, Osura Rathnayake 
>>> wrote:
>>>
 Hi Mentors,

 I sorted out all the errors and the cluster is up and running. Now I
 can see the log messages of members joining and leaving.


 On Wed, May 11, 2016 at 11:04 AM, Isuru Haththotuwa 
 wrote:

> Hi Osura,
>
> Please refer [1] for configuring deployment synchronizer.
>
> Initially, its ok even if you disable the deployment synchronizer and
> test the clustering.
>
> [1].
> https://docs.wso2.com/display/CLUSTER44x/Configuring+SVN-Based+Deployment+Synchronizer
>
> On Wed, May 11, 2016 at 10:55 AM, Osura Rathnayake  > wrote:
>
>> Hi All,
>>
>> Thank you very much. I got it sorted out. I created a new user and
>> granted permission on it.
>> Can you please tell me the format of svn url and access protocol when
>> configuring  , my repository is
>> /home/as/svnrepo. I have attached the error I got as well.
>>
>> Thanks,
>>
>> On Wed, May 11, 2016 at 7:13 AM, Imesh Gunaratne 
>> wrote:
>>
>>>
>>>
>>> On Tue, May 10, 2016 at 11:12 PM, Osura Rathnayake <
>>> osura...@gmail.com> wrote:
>>>
 Hi Imesh,

 Now i'm getting this error. I can't connect to the DB from the
 client either.

>>>
>>> Credentials might be correct, I think the issue is with the
>>> permission. You might need to grant permission to the relevant 
>>> databases to
>>> your user for the given IP address. Please refer [1].
>>>
>>> [1] http://dev.mysql.com/doc/refman/5.5/en/grant.html
>>>

 Thanks

 On Tue, May 10, 2016 at 9:46 PM, Imesh Gunaratne 
 wrote:

>
>
> On Tue, May 10, 2016 at 9:43 PM, Osura Rathnayake <
> osura...@gmail.com> wrote:
>
>> Hi Mentors,
>>
>> when i was trying to up the manager node, i kept getting an error
>> and a screenshot of it is attached herewith. There is no problem with
>> network connectivity and dns resolution. Also a diagram of my setup 
>> is
>> attached. please have a look.
>>
>
> This looks like a database connectivity issue.
>
> Can you please try to install a mysql client in one of the hosts
> that AS is installed and check whether it can connect to the database
> server?
>
> Thanks
>
>>
>> thanks and regards,
>> Osura
>>
>> On Tue, May 10, 2016 at 6:40 AM, Isuru Haththotuwa <
>> isu...@wso2.com> wrote:
>>
>>> Hi Osura,
>>>
>>> On Mon, May 9, 2016 at 11:22 PM, Osura Rathnayake <
>>> osura...@gmail.com> wrote:
>>>
 Hi mentors,

 When setting up the DB according to [1], should shared
 REGISTRY_DB and shared WSO2_USER_DB be resided on a separate 
 server other
 than the manager/worker node? if so can I use the same server i 
 used for
 load balancer for this purpose?

>>> Yes, you can.
>>>


 [1]
 https://docs.wso2.com/display/CLUSTER44x/Setting+up+the+Database

 Thanks and Regards
 Osura

 On Sun, May 1, 2016 at 9:53 AM, Imesh Gunaratne >>> > wrote:

>
>
> On Sat, Apr 30, 2016 at 9:20 PM, Osura Rathnayake <
> osura...@gmail.com> wrote:
>
>> Hi Imesh,
>>
>> Thank you very much for the guidelines. I will do as you have
>> instructed and let you know the progress.
>>
>
> Great! Let us know if you find any problems.
>
> Thanks
>
>

[Dev] SAML 2.0 Single Logout Profile Response handling for AS 6.0.0

2016-05-19 Thread Chiranga Alwis
Hi,

I have been working on porting the past AS SAML 2.0 based single-sign-on
valve to the new AS version.

When refactoring and testing the already ported code, I came across the
following issue within the invoke() method of the SAML 2.0 SSO Tomcat Valve
[1].

In the group of if-then and if-then-else statements which handle the SAML
2.0 Web Browser SSO and Single-Logout Profiles, I find the following code
block which the program flow does not seem to enter within simple sign-in
and logout processes.

if (resolver.isSLORequest()) {

if (log.isDebugEnabled()) {
log.debug("Processing Single Log Out Request");
}
samlSSOManager = new SAML2SSOManager(ssoAgentConfig);
samlSSOManager.doSLO(request);

} else if (resolver.isSAML2SSOResponse()) {


During debugging of the past AS 5.3.0 implementation and my current
implementation, I have experienced that this block is never executed.

In addition, the implementation of the resolver.isSLORequest() method in
[2] has changed in latest versions and the carbon-identity version 4.5.6
(used in AS 5.3.0) possesses an older implementation [3]. I tried adopting
the new implementation which leads to an error during handling of
Single-Logout responses from the side of Identity Server.

Are there any scenarios which led to the introduction of the above
mentioned logic when performing SSO? Any suggestions or ideas are highly
appreciated.

[1] - SAMLSSOValve.java

[2] - SSOAgentRequestResolver.java

[3] - SSOAgentRequestResolver.java


-- 
Chiranga Alwis,
Software Engineering Intern,
+94 77 5930497
+94 77 6368208
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] Error while starting API manager nodes in Docker

2016-05-19 Thread Gayan Gunarathne
We are getting following when try to starting the store. publisher nodes in
Docker containers by using docker compose.  Also this is happened
intermittently.

store1 | [2016-05-19 12:37:06,845] ERROR - DatabaseUtil Database
Error - Duplicate entry 'http://wso2.org/oidc/claim--1234' for key
'UM_DIALECT_URI'
store1 |
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:
Duplicate entry 'http://wso2.org/oidc/claim--1234' for key 'UM_DIALECT_URI'
store1 | at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
store1 | at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
store1 | at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
store1 | at
java.lang.reflect.Constructor.newInstance(Constructor.java:526)
store1 | at com.mysql.jdbc.Util.handleNewInstance(Util.java:377)
store1 | at com.mysql.jdbc.Util.getInstance(Util.java:360)
store1 | at
com.mysql.jdbc.SQLError.createSQLException(SQLError.java:971)
store1 | at
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887)
store1 | at
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823)
store1 | at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435)
store1 | at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582)
store1 | at
com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2530)
store1 | at
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1907)
store1 | at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2141)
store1 | at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2077)
store1 | at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2062)
store1 | at
org.wso2.carbon.user.core.claim.dao.ClaimDAO.addDialect(ClaimDAO.java:442)
store1 | at
org.wso2.carbon.user.core.claim.dao.ClaimDAO.addClaimMapping(ClaimDAO.java:186)
store1 | at
org.wso2.carbon.user.core.claim.dao.ClaimDAO.addCliamMappings(ClaimDAO.java:140)
store1 | at
org.wso2.carbon.user.core.common.DefaultRealm.populateProfileAndClaimMaps(DefaultRealm.java:438)
store1 | at
org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:105)
store1 | at
org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:262)
store1 | at
org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:99)
store1 | at
org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:112)
store1 | at
org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:68)
store1 | at
org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
store1 | at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)

Any idea why is that happen? Is that happened as we starting the containers
at the same time?

Thanks,
Gayan
-- 

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


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

2016-05-19 Thread Osura Rathnayake
Hi Isuru,

It's no problem. Okay let's have a hangout at 11 o'clock tomorrow.

On Thursday, May 19, 2016, Isuru Haththotuwa  wrote:

> Hi Osura,
>
> Sorry for the delayed response.
>
> Shall we have a hangout at 11 AM on 20th May (Friday)?
>
> On Tue, May 17, 2016 at 9:09 PM, Osura Rathnayake  > wrote:
>
>> Hi Imesh,
>>
>> Shall we have a hangout on Thursday or so?
>>
>>
>> On Thu, May 12, 2016 at 8:26 PM, Imesh Gunaratne > > wrote:
>>
>>> Hi Osura,
>>>
>>> On Thu, May 12, 2016 at 8:09 PM, Osura Rathnayake >> > wrote:
>>>
 Hi Mentors,

 I created a github repository so that all the work related to this
 project can be accumulated with ease.
 here is the link https://github.com/osuran/azure-membership-scheme.

>>>
>>> Great! Will you be able to arrange a Hangout and demonstrate what you
>>> did so far?
>>>
>>> Thanks
>>>
>>> On Thu, May 12, 2016 at 8:09 PM, Osura Rathnayake >> > wrote:
>>>
 Hi Mentors,

 I created a github repository so that all the work related to this
 project can be accumulated with ease.
 here is the link https://github.com/osuran/azure-membership-scheme.

 On Wed, May 11, 2016 at 11:22 AM, Osura Rathnayake >>> > wrote:

> Hi Mentors,
>
> I sorted out all the errors and the cluster is up and running. Now I
> can see the log messages of members joining and leaving.
>
>
> On Wed, May 11, 2016 at 11:04 AM, Isuru Haththotuwa  > wrote:
>
>> Hi Osura,
>>
>> Please refer [1] for configuring deployment synchronizer.
>>
>> Initially, its ok even if you disable the deployment synchronizer and
>> test the clustering.
>>
>> [1].
>> https://docs.wso2.com/display/CLUSTER44x/Configuring+SVN-Based+Deployment+Synchronizer
>>
>> On Wed, May 11, 2016 at 10:55 AM, Osura Rathnayake <
>> osura...@gmail.com
>> > wrote:
>>
>>> Hi All,
>>>
>>> Thank you very much. I got it sorted out. I created a new user and
>>> granted permission on it.
>>> Can you please tell me the format of svn url and access protocol
>>> when configuring  , my repository is
>>> /home/as/svnrepo. I have attached the error I got as well.
>>>
>>> Thanks,
>>>
>>> On Wed, May 11, 2016 at 7:13 AM, Imesh Gunaratne >> > wrote:
>>>


 On Tue, May 10, 2016 at 11:12 PM, Osura Rathnayake <
 osura...@gmail.com
 > wrote:

> Hi Imesh,
>
> Now i'm getting this error. I can't connect to the DB from the
> client either.
>

 Credentials might be correct, I think the issue is with the
 permission. You might need to grant permission to the relevant 
 databases to
 your user for the given IP address. Please refer [1].

 [1] http://dev.mysql.com/doc/refman/5.5/en/grant.html

>
> Thanks
>
> On Tue, May 10, 2016 at 9:46 PM, Imesh Gunaratne  > wrote:
>
>>
>>
>> On Tue, May 10, 2016 at 9:43 PM, Osura Rathnayake <
>> osura...@gmail.com
>> > wrote:
>>
>>> Hi Mentors,
>>>
>>> when i was trying to up the manager node, i kept getting an
>>> error and a screenshot of it is attached herewith. There is no 
>>> problem with
>>> network connectivity and dns resolution. Also a diagram of my setup 
>>> is
>>> attached. please have a look.
>>>
>>
>> This looks like a database connectivity issue.
>>
>> Can you please try to install a mysql client in one of the hosts
>> that AS is installed and check whether it can connect to the database
>> server?
>>
>> Thanks
>>
>>>
>>> thanks and regards,
>>> Osura
>>>
>>> On Tue, May 10, 2016 at 6:40 AM, Isuru Haththotuwa <
>>> isu...@wso2.com
>>> > wrote:
>>>
 Hi Osura,

 On Mon, May 9, 2016 at 11:22 PM, Osura Rathnayake <
 osura...@gmail.com
 > wrote:

> Hi mentors,
>
> When setting up the DB according to [1], should shared
> REGISTRY_DB and shared WSO2_USER_DB be resided on a separate 
> server other
> than the manager/worker node? if so can I use the same server i 
> used for
> load balancer for this purpose?
>
 Yes, you can.

>
>
> [1]
> https://docs.wso2.com/display/CLUSTER44x/Setting+up+the+Database
>
> Thanks and Regards
> Osura
>
> On Sun, May 1, 2016 at 9:53 AM, Imesh Gunaratne <
> im...@wso2.com
> > wrote:
>
>>
>>

Re: [Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-19 Thread Hemika Kodikara
Hi All,

For clarification, does this mean we will be able to invoke a service side
function(through nashorn) upon client request ? As in when a user clicks a
button, we can call a server side function ?

Regards,
Hemika

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

Mobile : +9477762

On Thu, May 19, 2016 at 3:43 PM, SajithAR Ariyarathna 
wrote:

> Hi Sudharma,
>
> In the browser (client-side), you can do AJAX calls to the necessary REST
> APIs. However, doing HTTP requests from UI backend (which runs on the
> server-side) to REST APIs (which also runs on the server-side) is not
> recommended. Instead of that you should call OSGi services. Calling OSGI
> services from server-side JS will be available in the next milestone of UUF.
>
> Thanks.
>
> On Thu, May 19, 2016 at 2:21 PM, Sudharma Subasinghe 
> wrote:
>
>> Hi all,
>>
>> I am working on developing BPMN explorer ui using Unified UI Framework.
>>
>> The existing BPMN explorer ui is for BPS which has built on C4 and it is
>> used Jaggery. So, I am working on BPMN explorer ui for BPS which is to be
>> released on C5.
>>
>> We need to implement business logics in backend. For example, I need to
>> send request to backend from browser, and from backend to BPS. Is there
>> functionality to achieve it in UUF?
>>
>> Any idea on this is appreciated.
>>
>> Thanks
>> Sudharma
>>
>> --
>> Sudharma Subasinghe,
>> Software Engineer,
>> WSO2 Inc.
>> Email: sudhar...@wso2.com 
>> Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
>>
>
>
>
> --
> Sajith Janaprasad Ariyarathna
> Software Engineer; WSO2, Inc.;  http://wso2.com/
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-19 Thread Manuranga Perera
Yes, you will be able to call OSGi services.

On Thu, May 19, 2016 at 12:53 PM, Hemika Kodikara  wrote:

> Hi All,
>
> For clarification, does this mean we will be able to invoke a service side
> function(through nashorn) upon client request ? As in when a user clicks a
> button, we can call a server side function ?
>
> Regards,
> Hemika
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +9477762
>
> On Thu, May 19, 2016 at 3:43 PM, SajithAR Ariyarathna 
> wrote:
>
>> Hi Sudharma,
>>
>> In the browser (client-side), you can do AJAX calls to the necessary REST
>> APIs. However, doing HTTP requests from UI backend (which runs on the
>> server-side) to REST APIs (which also runs on the server-side) is not
>> recommended. Instead of that you should call OSGi services. Calling OSGI
>> services from server-side JS will be available in the next milestone of UUF.
>>
>> Thanks.
>>
>> On Thu, May 19, 2016 at 2:21 PM, Sudharma Subasinghe 
>> wrote:
>>
>>> Hi all,
>>>
>>> I am working on developing BPMN explorer ui using Unified UI Framework.
>>>
>>> The existing BPMN explorer ui is for BPS which has built on C4 and it is
>>> used Jaggery. So, I am working on BPMN explorer ui for BPS which is to be
>>> released on C5.
>>>
>>> We need to implement business logics in backend. For example, I need to
>>> send request to backend from browser, and from backend to BPS. Is there
>>> functionality to achieve it in UUF?
>>>
>>> Any idea on this is appreciated.
>>>
>>> Thanks
>>> Sudharma
>>>
>>> --
>>> Sudharma Subasinghe,
>>> Software Engineer,
>>> WSO2 Inc.
>>> Email: sudhar...@wso2.com 
>>> Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
>>>
>>
>>
>>
>> --
>> Sajith Janaprasad Ariyarathna
>> Software Engineer; WSO2, Inc.;  http://wso2.com/
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>


-- 
With regards,
*Manu*ranga Perera.

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


[Dev] Time series data summarization

2016-05-19 Thread Dulitha Wijewantha
Hi guys,
I have a bunch of data streams that have time stamps (like event logs) -
currently in DAS 3.0.1 - is there a way to efficiently query these?

Right now I am summarizing them based on string manipulation to the
timestamp. An example query I have is -

1) How many unique user events do we have in the last year.

Cheers~

-- 
Dulitha Wijewantha (Chan)
Software Engineer - Mobile Development
WSO2 Inc
Lean.Enterprise.Middleware
 * ~Email   duli...@wso2.com *
*  ~Mobile +94712112165*
*  ~Website   dulitha.me *
*  ~Twitter @dulitharw *
  *~Github @dulichan *
  *~SO @chan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] API MANAGER + IS + TOKEN

2016-05-19 Thread John Q
Hello,
Once I have a token delivered by the API Manager and validated by IS I need
to know whether the token is from production or sandbox environment.

I'm using OAuth2TokenValidationService to validate the token.

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


Re: [Dev] Time series data summarization

2016-05-19 Thread Srinath Perera
schedule a spark query that aggregate the data per year and write to new
table, and you can query from that table?

On Fri, May 20, 2016 at 12:06 AM, Dulitha Wijewantha 
wrote:

> Hi guys,
> I have a bunch of data streams that have time stamps (like event logs) -
> currently in DAS 3.0.1 - is there a way to efficiently query these?
>
> Right now I am summarizing them based on string manipulation to the
> timestamp. An example query I have is -
>
> 1) How many unique user events do we have in the last year.
>
> Cheers~
>
> --
> Dulitha Wijewantha (Chan)
> Software Engineer - Mobile Development
> WSO2 Inc
> Lean.Enterprise.Middleware
>  * ~Email   duli...@wso2.com *
> *  ~Mobile +94712112165 <%2B94712112165>*
> *  ~Website   dulitha.me *
> *  ~Twitter @dulitharw *
>   *~Github @dulichan *
>   *~SO @chan *
>



-- 

Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
Site: http://home.apache.org/~hemapani/
Photos: http://www.flickr.com/photos/hemapani/
Phone: 0772360902
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Time series data summarization

2016-05-19 Thread Sachith Withana
To add to what Srinath said.
If you enable indexing for that summary table, you'll be able to get the
data through the REST API as well using lucene queries,.

Regards,
Sachith

On Fri, May 20, 2016 at 7:30 AM, Srinath Perera  wrote:

> schedule a spark query that aggregate the data per year and write to new
> table, and you can query from that table?
>
> On Fri, May 20, 2016 at 12:06 AM, Dulitha Wijewantha 
> wrote:
>
>> Hi guys,
>> I have a bunch of data streams that have time stamps (like event logs) -
>> currently in DAS 3.0.1 - is there a way to efficiently query these?
>>
>> Right now I am summarizing them based on string manipulation to the
>> timestamp. An example query I have is -
>>
>> 1) How many unique user events do we have in the last year.
>>
>> Cheers~
>>
>> --
>> Dulitha Wijewantha (Chan)
>> Software Engineer - Mobile Development
>> WSO2 Inc
>> Lean.Enterprise.Middleware
>>  * ~Email   duli...@wso2.com *
>> *  ~Mobile +94712112165 <%2B94712112165>*
>> *  ~Website   dulitha.me *
>> *  ~Twitter @dulitharw *
>>   *~Github @dulichan *
>>   *~SO @chan *
>>
>
>
>
> --
> 
> Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
> Site: http://home.apache.org/~hemapani/
> Photos: http://www.flickr.com/photos/hemapani/
> Phone: 0772360902
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sachith Withana
Software Engineer; WSO2 Inc.; http://wso2.com
E-mail: sachith AT wso2.com
M: +94715518127
Linked-In: https://lk.linkedin.com/in/sachithwithana
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-05-19 Thread Asantha Thilina
Hi Tharindu,

sorry for the late reply ,as you advised i remove the scr reference and its
corresponding methods from user store now it's works fine but i having
another small issue if i wanted to run my mongodb user store as as my
primary user store how would i do that?
i added my user store configurations to user-mgt.xml file and comented the
ldap userstore properties and i added MongoDBUserStore to tenant-mgt.xml as
well but then i get error as datasource cannot be casted to MongoDB db
source while deploying thats mean its still referring to Default Activator
inside carbon core module how would i set it to my activator to reffer?
any suggestion or help would be grateful
Thanks,
Asantha

On Wed, May 18, 2016 at 10:29 PM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> Great progress so far !
>
> Since the reference is given to realm service in the bundle activator, you
> should be facing the issue. Can you remove the service reference from the
> bundle activator class. (You can delete the following from the class).
>
> * @scr.reference name="user.realmservice.default"
>  * interface="org.wso2.carbon.user.core.service.RealmService"
> cardinality="1..1"
>  * policy="dynamic" bind="setRealmService"
>  * unbind="unsetRealmService"
>
> Also delete the following methods where realm service is used.
>
> getRealmService()
> setRealmService(RealmService rlmService)
> unsetRealmService(RealmService rlmService)
>
> After that can you try if the userstore manager is working as expected. If
> you face any issues, please get back.
>
> Thank you,
> TharinduE
>
>
>
>
>
>
> On Sun, May 15, 2016 at 7:48 PM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> I found the issue after debugging into my code ,my service bundle is not
>> get activated because i referring into mongodb-driver which is not osgi
>> comaptible and i just found another library in here[1] and it is worked for
>> me ,fixed project i pushed into my github repository [2].
>> i found out that *DefaultRealmService* which is used in Bundle Activator
>> of JDBCUserstoreManager cannot be used for MongoDB since it used
>> *java.sql.DataSource*.
>> Is their having any DataSource class like that for MongoDB? or would i
>> have to create a different logic to implement that scenario in MongoDB?
>> waiting for your suggestion
>>
>> [1]. http://central.maven.org/maven2/org/mongodb/mongo-java-driver/3.2.2/
>> [2]. https://github.com/asanthamax/mongodbuserstore
>> Thanks,
>> Asantha
>>
>> On Sat, May 14, 2016 at 10:53 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> i faced following issue while i developing ,
>>> after adding my new json query support i didn't able to see My
>>> MongoDBUserStore in dropdown in create user store option.
>>> for json related activites i used an external json dependency from
>>> here[1] and i added it jar to lib folder in IS as well,i have enabled
>>> remote debugging and inspect my code and there i found in my 
>>> *MongoDBUserStoreDSComponent
>>> *class *activate *method triggered but execute 1st line of code only.
>>> it will not registered the service but in my osgi console window when i
>>> run *ss mongo* command i get monodb.userstore bundle and mongodb java
>>> driver bundle are activated successfully i attached my console output and
>>> identity server output for your consideration as well
>>> any suggestion would be grateful
>>>
>>> [1]. http://mvnrepository.com/artifact/org.json/json/20160212
>>> my github repository
>>>
>>> https://github.com/asanthamax/mongodbuserstore/tree/master/mongodb.userstoremanager
>>> Thanks,
>>> Asantha
>>>
>>>
>>> On Thu, May 12, 2016 at 2:01 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi Tharindu,

 since mongodb driver not having prepared statement support earlier i
 developed a logic to support prepared statement but i realized that it has
 a limitation such as parameters has to be pass as same order it exists in
 prepared statement then as you suggested to use key value relationship
 instead of order during our hangout conversation i created a new logic same
 to prepared statement in sql and it will work according to key value
 relationship and i created standard query format for mongodb with json to
 support prepared statements and i rewrite the JDBCRealmConstants class with
 those supporting json queries instead of sql queries

 All of my prepared statement methods contain in
 MongoDBPreparedStatement interface and its implementation in
 MongoDBPreparedStatementImpl class

 All the changes i have pushed to my repo in here[1]

 security of this prepared statements has to be improve

 I'll be grateful if you can provide me some suggestions to improve it
 and also another small issue i having is can i write a DataSource for
 MongoDB as in java.sql.DataSource ?

 [1]
 https://github.com/asanthamax/mongodbuserstore/tree/master/mongodb.userst

Re: [Dev] Shindig error on DS portal startup, due to connectivity errors to google

2016-05-19 Thread Megala Uthayakumar
Hi,

We have moved the fix for the google connectivity problem with the commit
[1].

[1]
https://github.com/wso2/carbon-dashboards/commit/9e74ed2a788256cc429ffe35b6543c139d4c2ddb

Thanks.

Regards,
Megala

On Wed, May 18, 2016 at 12:52 PM, Sinthuja Ragendran 
wrote:

> Hi Megala,
>
> Please check the shindig-server feature and try to remove the unwanted
> files from there it self, hence we can omit this behaviour.
>
> Thanks,
> Sinthuja.
>
> On Wed, May 18, 2016 at 12:13 PM, Ruwan Abeykoon  wrote:
>
>> >>Can't we fix this during the shinding-server feature generation?
>> +1
>> So that every product using shindig does not have to unzip and zip the
>> war file to fix it.
>>
>> Cheers,
>> Ruwan
>>
>> On Wed, May 18, 2016 at 12:01 PM, Sinthuja Ragendran 
>> wrote:
>>
>>> Hi Tanya,
>>>
>>> Can't we fix this during the shinding-server feature generation?
>>>
>>> Thanks,
>>> Sinthuja.
>>>
>>> On Wed, May 18, 2016 at 11:56 AM, Harsha Kumara 
>>> wrote:
>>>
 Adding Bhathiya.

 We got same exception yesterday in APIM as well. We will need to same
 thing for DS as well.

 Thanks,
 Harsha

 On Wed, May 18, 2016 at 11:38 AM, Ruwan Abeykoon 
 wrote:

> Thanks Tanya for the information. We will follow the same as in DS.
>
> On Wed, May 18, 2016 at 11:34 AM, Tanya Madurapperuma 
> wrote:
>
>> Hi Ruwan,
>>
>> Usually this error is thrown as shindig is trying to load some google
>> analytics apis. So when there is no internet connection this error can be
>> observed.
>> To get rid of this error we have to remove google related stuff from
>> shindig features.txt file
>>
>> *features-extras/analytics/feature.xml*
>> *features-extras/com.google.gadgets.analytics/feature.xml*
>>
>> But since we don't maintain a shindig fork, we can't do this from
>> carbon-dashboards level. So in the Dashboard Server level we are 
>> replacing
>> the features.txt file with a file which doesn't have above 2 entries [1].
>> We'll have to do the same for apim analytics as well.
>>
>> [1]
>> https://github.com/wso2/product-ds/commit/2d763ce1d9f5362d559e9d46eb0bcedf1446ee9e
>>
>> Thanks,
>> Tanya
>>
>> On Wed, May 18, 2016 at 11:16 AM, Ruwan Abeykoon 
>> wrote:
>>
>>> Hi DS team,
>>> I am getting the following error in APIM 2.0.0-SNAPSHOT which
>>> integrate DS features. Any Idea why? can we not print those errors due 
>>> to
>>> outside dependencies?
>>>
>>> ---
>>>
>>> achines/jdk1.8.0_31.jdk/Contents/Home/jre/lib/libinstrument.dylib.
>>> One of the two will be used. Which one is undefined.
>>>
>>> [2016-05-17 17:35:49,176]  INFO - FeatureRegistry Resources from
>>> res:features/features.txt are loading.
>>>
>>> [2016-05-17 17:35:49,186]  INFO - XmlUtil The XML processor being
>>> used does not support secure parsing.
>>>
>>> [2016-05-17 17:35:49,187]  INFO - XmlUtil Document builders are
>>> being reused.
>>>
>>> [2016-05-17 17:35:49,396]  INFO - FeatureRegistry Resources from
>>> res:features-extras/features.txt are loading.
>>>
>>> [2016-05-17 17:36:11,707]  INFO - CarbonEventManagementService
>>> Starting polling event receivers
>>>
>>> [2016-05-17 17:36:19,510]  INFO - BasicHttpFetcher The following
>>> exception occurred when fetching
>>> http://www.google-analytics.com/urchin.js: 30,103 ms elapsed.
>>>
>>> [2016-05-17 17:36:19,511]  INFO - BasicHttpFetcher
>>>
>>> org.apache.http.conn.ConnectTimeoutException: Connect to
>>> www.google-analytics.com:80 timed out
>>>
>>> at
>>> org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
>>>
>>> at
>>> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
>>>
>>> at
>>> org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:144)
>>>
>>> at
>>> org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:131)
>>>
>>> at
>>> org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
>>>
>>> at
>>> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
>>>
>>> at
>>> org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
>>>
>>> at
>>> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:115)
>>>
>>> at
>>> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
>>>
>>> at
>>> org.apache.shindig.gadgets.http.BasicHttpFetcher.fetch(BasicHttpFetcher.java:359)
>>>
>>> at
>>> org.apache.shindig.gadgets.features.FeatureResourceLoader$UriResource.getContent(FeatureResourceLoader.j

[Dev] [Jaggery] Web sockets api in jaggery

2016-05-19 Thread Danushka Fernando
Hi
I tried to follow [1] to use some web sockets. But server url has to be in
either ws or wss protocols. How we can expose a jaggery app in these
protocols?

[1] http://jaggeryjs.org/documentation.jag?api=webSocket

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


Re: [Dev] [Jaggery] Web sockets api in jaggery

2016-05-19 Thread Sinthuja Ragendran
Hi Dhanushka,

You don't need to do any special changes, just include the server side code
as shown in the sample [1] in a jag file, and mention that jag URL in the
client side to connect via web socket. As per the example, the jaggery app
for ws server side should be in below format.

- sample
   - ws
   - server.jag

Thanks,
Sinthuja.


On Fri, May 20, 2016 at 9:26 AM, Danushka Fernando 
wrote:

> Hi
> I tried to follow [1] to use some web sockets. But server url has to be in
> either ws or wss protocols. How we can expose a jaggery app in these
> protocols?
>
> [1] http://jaggeryjs.org/documentation.jag?api=webSocket
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


Re: [Dev] [Jaggery] Web sockets api in jaggery

2016-05-19 Thread Manjula Rathnayake
Hi all,

Does web sockets work through nginx, haproxy like load balancers?

thank you.

On Fri, May 20, 2016 at 9:37 AM, Sinthuja Ragendran 
wrote:

> Hi Dhanushka,
>
> You don't need to do any special changes, just include the server side
> code as shown in the sample [1] in a jag file, and mention that jag URL in
> the client side to connect via web socket. As per the example, the jaggery
> app for ws server side should be in below format.
>
> - sample
>- ws
>- server.jag
>
> Thanks,
> Sinthuja.
>
>
> On Fri, May 20, 2016 at 9:26 AM, Danushka Fernando 
> wrote:
>
>> Hi
>> I tried to follow [1] to use some web sockets. But server url has to be
>> in either ws or wss protocols. How we can expose a jaggery app in these
>> protocols?
>>
>> [1] http://jaggeryjs.org/documentation.jag?api=webSocket
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Sinthuja Rajendran*
> Associate Technical Lead
> WSO2, Inc.:http://wso2.com
>
> Blog: http://sinthu-rajan.blogspot.com/
> Mobile: +94774273955
>
>
>


-- 
Manjula Rathnayaka
Associate Technical Lead
WSO2, Inc.
Mobile:+94 77 743 1987
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Clarification on Availability of API

2016-05-19 Thread Shavantha Weerasinghe
Hi All

When APIs are invoked continuously, the availability of the same API is
shown as available and also  busy. Is this the expected behavior or should
the only 1 status be shown for an API at one time

admin--TestAPO:v1.0.0Available*admin--PizzaShackAPI:v1.0.0*AvailableTestAPO:v1.0.0Response
time is too high*PizzaShackAPI:v1.0.0*Response time is too
highCalculatorAPI:v1.0Available


regards,
Shavantha Weerasinghe
Senior Software Engineer QA
WSO2, Inc.
lean.enterprise.middle ware.
http://wso2.com
http://wso2.org
Tel : 94 11 214 5345
Fax :94 11 2145300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Automation Script to check if feature/update successfully copied to P2 repository

2016-05-19 Thread Awanthika Senarath
scenario;

I am writing an automated script for $subject using P2 director

For the P2 director we cannot give the feature with a version, we have to
give only the feature name,

When we give the feature with the releases repository URL it will also
check in the updates repository and will install the latest version of that
feature available in the whole repository.

Therefore we can give the releases URL and ask to install the feature we
give, so that it will isntall the latest available version of that feature
in updates/releases.

what we can do is to give the feature ID with the released repository URL.
But then again we cannot give the version and cannot verify whether the
feature we gave is installed or not.

I have checked the headless feature installation in eclipse via command
line, but that does not support installation of features with versions.

Any idea how to proceed?




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


Re: [Dev] Clarification on Availability of API

2016-05-19 Thread Fazlan Nazeem
Hi Shavantha,

Can you send a screenshot, so that we can look into what the problem is.

On Fri, May 20, 2016 at 10:10 AM, Shavantha Weerasinghe 
wrote:

> Hi All
>
> When APIs are invoked continuously, the availability of the same API is
> shown as available and also  busy. Is this the expected behavior or should
> the only 1 status be shown for an API at one time
>
> admin--TestAPO:v1.0.0Available*admin--PizzaShackAPI:v1.0.0*AvailableTestAPO:v1.0.0Response
> time is too high*PizzaShackAPI:v1.0.0*Response time is too
> highCalculatorAPI:v1.0Available
>
>
> regards,
> Shavantha Weerasinghe
> Senior Software Engineer QA
> WSO2, Inc.
> lean.enterprise.middle ware.
> http://wso2.com
> http://wso2.org
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks & Regards,

Fazlan Nazeem

*Software Engineer*

*WSO2 Inc*
Mobile : +94772338839
<%2B94%20%280%29%20773%20451194>
fazl...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Automation Script to check if feature/update successfully copied to P2 repository

2016-05-19 Thread Jasintha Dasanayake
On Fri, May 20, 2016 at 10:14 AM, Awanthika Senarath 
wrote:

> scenario;
>
> I am writing an automated script for $subject using P2 director
>
> For the P2 director we cannot give the feature with a version, we have to
> give only the feature name,
>
> When we give the feature with the releases repository URL it will also
> check in the updates repository and will install the latest version of that
> feature available in the whole repository.
>
> Therefore we can give the releases URL and ask to install the feature we
> give, so that it will isntall the latest available version of that feature
> in updates/releases.
>
> what we can do is to give the feature ID with the released repository URL.
> But then again we cannot give the version and cannot verify whether the
> feature we gave is installed or not.
>
> I have checked the headless feature installation in eclipse via command
> line, but that does not support installation of features with versions.
>
> Any idea how to proceed?
>

There are couple of phase in this test scenario , in the first phase,we can
verify that given release/update version of a feature is available in the
p2 repo then we can execute this test script to install latest version of
that feature, so we don't want to specify the version again, after this
phase , we need to have SWT_BOT based test case to validate the
functionality of that feature

Thanks and regards
/Jasintha



>
>
>
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


-- 

*Jasintha Dasanayake*

*Senior Software EngineerWSO2 Inc. | http://wso2.com lean
. enterprise . middleware*


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


Re: [Dev] Automation Script to check if feature/update successfully copied to P2 repository

2016-05-19 Thread Awanthika Senarath
Yes, but say we have updated kernel feature version 3, kernel feature 1 and
2 are already available viea releases and previous updates

this script will run and give success installing kernel feature 2 even if
kernel feature 3 that was copied is corrupted,

then the whole purpose of the script is not achieved right?

this will only guarantee that the given feature is available in the
repository with whatever version.


Regards
Awanthika

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Fri, May 20, 2016 at 10:31 AM, Jasintha Dasanayake 
wrote:

>
>
> On Fri, May 20, 2016 at 10:14 AM, Awanthika Senarath 
> wrote:
>
>> scenario;
>>
>> I am writing an automated script for $subject using P2 director
>>
>> For the P2 director we cannot give the feature with a version, we have to
>> give only the feature name,
>>
>> When we give the feature with the releases repository URL it will also
>> check in the updates repository and will install the latest version of that
>> feature available in the whole repository.
>>
>> Therefore we can give the releases URL and ask to install the feature we
>> give, so that it will isntall the latest available version of that feature
>> in updates/releases.
>>
>> what we can do is to give the feature ID with the released repository
>> URL. But then again we cannot give the version and cannot verify whether
>> the feature we gave is installed or not.
>>
>> I have checked the headless feature installation in eclipse via command
>> line, but that does not support installation of features with versions.
>>
>> Any idea how to proceed?
>>
>
> There are couple of phase in this test scenario , in the first phase,we
> can verify that given release/update version of a feature is available in
> the p2 repo then we can execute this test script to install latest version
> of that feature, so we don't want to specify the version again, after this
> phase , we need to have SWT_BOT based test case to validate the
> functionality of that feature
>
> Thanks and regards
> /Jasintha
>
>
>
>>
>>
>>
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>
>
> --
>
> *Jasintha Dasanayake*
>
> *Senior Software EngineerWSO2 Inc. | http://wso2.com
> lean . enterprise . middleware*
>
>
> *mobile :- 0711368118*
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-19 Thread Chathura Ekanayake
So there is not separation between UI back-end and the actual server (e.g.
BPS runtime)? i.e. both always run in the same jvm?

On Thu, May 19, 2016 at 11:47 PM, Manuranga Perera  wrote:

> Yes, you will be able to call OSGi services.
>
> On Thu, May 19, 2016 at 12:53 PM, Hemika Kodikara  wrote:
>
>> Hi All,
>>
>> For clarification, does this mean we will be able to invoke a service
>> side function(through nashorn) upon client request ? As in when a user
>> clicks a button, we can call a server side function ?
>>
>> Regards,
>> Hemika
>>
>> Hemika Kodikara
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middleware
>> http://wso2.com
>>
>> Mobile : +9477762
>>
>> On Thu, May 19, 2016 at 3:43 PM, SajithAR Ariyarathna 
>> wrote:
>>
>>> Hi Sudharma,
>>>
>>> In the browser (client-side), you can do AJAX calls to the necessary
>>> REST APIs. However, doing HTTP requests from UI backend (which runs on the
>>> server-side) to REST APIs (which also runs on the server-side) is not
>>> recommended. Instead of that you should call OSGi services. Calling OSGI
>>> services from server-side JS will be available in the next milestone of UUF.
>>>
>>> Thanks.
>>>
>>> On Thu, May 19, 2016 at 2:21 PM, Sudharma Subasinghe >> > wrote:
>>>
 Hi all,

 I am working on developing BPMN explorer ui using Unified UI Framework.

 The existing BPMN explorer ui is for BPS which has built on C4 and it
 is used Jaggery. So, I am working on BPMN explorer ui for BPS which is to
 be released on C5.

 We need to implement business logics in backend. For example, I need to
 send request to backend from browser, and from backend to BPS. Is there
 functionality to achieve it in UUF?

 Any idea on this is appreciated.

 Thanks
 Sudharma

 --
 Sudharma Subasinghe,
 Software Engineer,
 WSO2 Inc.
 Email: sudhar...@wso2.com 
 Mobile : +94 710 565 157 <%2B94%20718%20210%20200>

>>>
>>>
>>>
>>> --
>>> Sajith Janaprasad Ariyarathna
>>> Software Engineer; WSO2, Inc.;  http://wso2.com/
>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Automation Script to check if feature/update successfully copied to P2 repository

2016-05-19 Thread Kavith Lokuhewage
On Fri, May 20, 2016 at 10:35 AM, Awanthika Senarath 
wrote:

> Yes, but say we have updated kernel feature version 3, kernel feature 1
> and 2 are already available viea releases and previous updates
>
> this script will run and give success installing kernel feature 2 even if
> kernel feature 3 that was copied is corrupted,
>
>
Yes, there's possibility for this to happen since the p2 query for checking
the feature version in first phase is only reading the metadata repository.
Only at the install phase, artifact repository will be read.


then the whole purpose of the script is not achieved right?
>
> this will only guarantee that the given feature is available in the
> repository with whatever version.
>
>
> Regards
> Awanthika
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Fri, May 20, 2016 at 10:31 AM, Jasintha Dasanayake 
> wrote:
>
>>
>>
>> On Fri, May 20, 2016 at 10:14 AM, Awanthika Senarath 
>> wrote:
>>
>>> scenario;
>>>
>>> I am writing an automated script for $subject using P2 director
>>>
>>> For the P2 director we cannot give the feature with a version, we have
>>> to give only the feature name,
>>>
>>> When we give the feature with the releases repository URL it will also
>>> check in the updates repository and will install the latest version of that
>>> feature available in the whole repository.
>>>
>>> Therefore we can give the releases URL and ask to install the feature we
>>> give, so that it will isntall the latest available version of that feature
>>> in updates/releases.
>>>
>>> what we can do is to give the feature ID with the released repository
>>> URL. But then again we cannot give the version and cannot verify whether
>>> the feature we gave is installed or not.
>>>
>>> I have checked the headless feature installation in eclipse via command
>>> line, but that does not support installation of features with versions.
>>>
>>> Any idea how to proceed?
>>>
>>
>> There are couple of phase in this test scenario , in the first phase,we
>> can verify that given release/update version of a feature is available in
>> the p2 repo then we can execute this test script to install latest version
>> of that feature, so we don't want to specify the version again, after this
>> phase , we need to have SWT_BOT based test case to validate the
>> functionality of that feature
>>
>> Thanks and regards
>> /Jasintha
>>
>>
>>
>>>
>>>
>>>
>>>
>>> Awanthika Senarath
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94717681791
>>>
>>>
>>>
>>
>>
>> --
>>
>> *Jasintha Dasanayake*
>>
>> *Senior Software EngineerWSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware*
>>
>>
>> *mobile :- 0711368118*
>>
>
>


-- 
*Kavith Lokuhewage*
Software Engineer
WSO2 Inc. - http://wso2.com
lean . enterprise . middleware
Mobile - +9477-9-145-123 | +9471-455-6-401
Linkedin   Twitter

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


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

2016-05-19 Thread Isuru Haththotuwa
Hi Osura,

Are you joining the hangout now?

On Thu, May 19, 2016 at 7:37 PM, Osura Rathnayake 
wrote:

> Hi Isuru,
>
> It's no problem. Okay let's have a hangout at 11 o'clock tomorrow.
>
> On Thursday, May 19, 2016, Isuru Haththotuwa  wrote:
>
>> Hi Osura,
>>
>> Sorry for the delayed response.
>>
>> Shall we have a hangout at 11 AM on 20th May (Friday)?
>>
>> On Tue, May 17, 2016 at 9:09 PM, Osura Rathnayake 
>> wrote:
>>
>>> Hi Imesh,
>>>
>>> Shall we have a hangout on Thursday or so?
>>>
>>>
>>> On Thu, May 12, 2016 at 8:26 PM, Imesh Gunaratne  wrote:
>>>
 Hi Osura,

 On Thu, May 12, 2016 at 8:09 PM, Osura Rathnayake 
  wrote:

> Hi Mentors,
>
> I created a github repository so that all the work related to this
> project can be accumulated with ease.
> here is the link https://github.com/osuran/azure-membership-scheme.
>

 Great! Will you be able to arrange a Hangout and demonstrate what you
 did so far?

 Thanks

 On Thu, May 12, 2016 at 8:09 PM, Osura Rathnayake 
 wrote:

> Hi Mentors,
>
> I created a github repository so that all the work related to this
> project can be accumulated with ease.
> here is the link https://github.com/osuran/azure-membership-scheme.
>
> On Wed, May 11, 2016 at 11:22 AM, Osura Rathnayake  > wrote:
>
>> Hi Mentors,
>>
>> I sorted out all the errors and the cluster is up and running. Now I
>> can see the log messages of members joining and leaving.
>>
>>
>> On Wed, May 11, 2016 at 11:04 AM, Isuru Haththotuwa 
>> wrote:
>>
>>> Hi Osura,
>>>
>>> Please refer [1] for configuring deployment synchronizer.
>>>
>>> Initially, its ok even if you disable the deployment synchronizer
>>> and test the clustering.
>>>
>>> [1].
>>> https://docs.wso2.com/display/CLUSTER44x/Configuring+SVN-Based+Deployment+Synchronizer
>>>
>>> On Wed, May 11, 2016 at 10:55 AM, Osura Rathnayake <
>>> osura...@gmail.com> wrote:
>>>
 Hi All,

 Thank you very much. I got it sorted out. I created a new user and
 granted permission on it.
 Can you please tell me the format of svn url and access protocol
 when configuring  , my repository is
 /home/as/svnrepo. I have attached the error I got as well.

 Thanks,

 On Wed, May 11, 2016 at 7:13 AM, Imesh Gunaratne 
 wrote:

>
>
> On Tue, May 10, 2016 at 11:12 PM, Osura Rathnayake <
> osura...@gmail.com> wrote:
>
>> Hi Imesh,
>>
>> Now i'm getting this error. I can't connect to the DB from the
>> client either.
>>
>
> Credentials might be correct, I think the issue is with the
> permission. You might need to grant permission to the relevant 
> databases to
> your user for the given IP address. Please refer [1].
>
> [1] http://dev.mysql.com/doc/refman/5.5/en/grant.html
>
>>
>> Thanks
>>
>> On Tue, May 10, 2016 at 9:46 PM, Imesh Gunaratne 
>> wrote:
>>
>>>
>>>
>>> On Tue, May 10, 2016 at 9:43 PM, Osura Rathnayake <
>>> osura...@gmail.com> wrote:
>>>
 Hi Mentors,

 when i was trying to up the manager node, i kept getting an
 error and a screenshot of it is attached herewith. There is no 
 problem with
 network connectivity and dns resolution. Also a diagram of my 
 setup is
 attached. please have a look.

>>>
>>> This looks like a database connectivity issue.
>>>
>>> Can you please try to install a mysql client in one of the hosts
>>> that AS is installed and check whether it can connect to the 
>>> database
>>> server?
>>>
>>> Thanks
>>>

 thanks and regards,
 Osura

 On Tue, May 10, 2016 at 6:40 AM, Isuru Haththotuwa <
 isu...@wso2.com> wrote:

> Hi Osura,
>
> On Mon, May 9, 2016 at 11:22 PM, Osura Rathnayake <
> osura...@gmail.com> wrote:
>
>> Hi mentors,
>>
>> When setting up the DB according to [1], should shared
>> REGISTRY_DB and shared WSO2_USER_DB be resided on a separate 
>> server other
>> than the manager/worker node? if so can I use the same server i 
>> used for
>> load balancer for this purpose?
>>
> Yes, you can.
>
>>
>>
>> [1]
>> https://docs.wso2.com/display/CLUSTER44x/Setting+up+the+Database
>>
>

Re: [Dev] [Jaggery] Web sockets api in jaggery

2016-05-19 Thread Danushka Fernando
This is my server side looks like


<%
/*
 * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 *
 *   WSO2 Inc. licenses this file to you under the Apache License,
 *   Version 2.0 (the "License"); you may not use this file except
 *   in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing,
 *   software distributed under the License is distributed on an
 *   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 *   KIND, either express or implied.  See the License for the
 *   specific language governing permissions and limitations
 *   under the License.
 */

include("/jagg/jagg.jag");
include("/jagg/constants.jag");

var mod, obj,
log = new Log(),
action = request.getParameter("action"),
site = require("/site/conf/site.json");

var applicationKey = request.getParameter("applicationKey");
var selectedRevision = request.getParameter("selectedRevision");
var mod = jagg.module("runtimeLogs");
webSocket.onbinary = function (data) {
log.info('Client Sent : ' + data);
var ws = this;
var logMap = mod.getFormattedRuntimeLogs(applicationKey,
selectedRevision, "");
ws.send(logMap);
};
webSocket.ontext = function (data) {
log.info('Client Sent : ' + data);
var ws = this;
var logMap = mod.getFormattedRuntimeLogs(applicationKey,
selectedRevision, "");
ws.send(logMap);
};
%>

And this is my client side

ws = new 
WebSocket("wss://localhost:9443/appmgt/site/blocks/runtimeLogs/ws/runtimeLogs.jag?action=getSnapshotLogs&applicationKey="
+ applicationKey + "&selectedRevision=" + selectedRevision);

//event handler for the message event in the case of text frames
ws.onmessage = function(event) {
//some work
};

setTimeout(function() {ws.send(""); console.log("");}, 6);


I can see the console log for send but no logs in server side. Whats I am
doing wrong here?

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

On Fri, May 20, 2016 at 9:59 AM, Manjula Rathnayake 
wrote:

> Hi all,
>
> Does web sockets work through nginx, haproxy like load balancers?
>
> thank you.
>
> On Fri, May 20, 2016 at 9:37 AM, Sinthuja Ragendran 
> wrote:
>
>> Hi Dhanushka,
>>
>> You don't need to do any special changes, just include the server side
>> code as shown in the sample [1] in a jag file, and mention that jag URL in
>> the client side to connect via web socket. As per the example, the jaggery
>> app for ws server side should be in below format.
>>
>> - sample
>>- ws
>>- server.jag
>>
>> Thanks,
>> Sinthuja.
>>
>>
>> On Fri, May 20, 2016 at 9:26 AM, Danushka Fernando 
>> wrote:
>>
>>> Hi
>>> I tried to follow [1] to use some web sockets. But server url has to be
>>> in either ws or wss protocols. How we can expose a jaggery app in these
>>> protocols?
>>>
>>> [1] http://jaggeryjs.org/documentation.jag?api=webSocket
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Senior Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Sinthuja Rajendran*
>> Associate Technical Lead
>> WSO2, Inc.:http://wso2.com
>>
>> Blog: http://sinthu-rajan.blogspot.com/
>> Mobile: +94774273955
>>
>>
>>
>
>
> --
> Manjula Rathnayaka
> Associate Technical Lead
> WSO2, Inc.
> Mobile:+94 77 743 1987
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-19 Thread Rasika Perera
Hi,

We have came up with this best practise. There are basically two scenarios;

1. When the back-end is belongs to your product(eg. calling BPS runtime).

We assume that you have written your JAX-RS based on an OSGi service.
JAX-RS will *not* hold any business logic and act as API interface(Facade
Pattern). In this case making a network call(AJAX) from UI to your own VM
is discouraged. You should use callOsgiService() function on the server
side Js.

2. When the back-end is external(eg. calling Twitter API).

Here we don't provide any server side feature for handling HTTP calls
because this will again abuse and use to call own VM back-ends. You can
simply write AJAX calls from UI using $.ajax() in jquery or XMLHttpRequest
in client-side Js.

* In the edge cases that you really need to make HTTP calls from the server
side Js, you can initiate; apache commons 'HttpClient' or java.net
'URLConnection' through Nashorn.

* Also you might still need to write JAX-RS APIs for your OSGi services for
customers.

Thanks,
Rasika

On Fri, May 20, 2016 at 10:42 AM, Chathura Ekanayake 
wrote:

> So there is not separation between UI back-end and the actual server (e.g.
> BPS runtime)? i.e. both always run in the same jvm?
>
> On Thu, May 19, 2016 at 11:47 PM, Manuranga Perera  wrote:
>
>> Yes, you will be able to call OSGi services.
>>
>> On Thu, May 19, 2016 at 12:53 PM, Hemika Kodikara 
>> wrote:
>>
>>> Hi All,
>>>
>>> For clarification, does this mean we will be able to invoke a service
>>> side function(through nashorn) upon client request ? As in when a user
>>> clicks a button, we can call a server side function ?
>>>
>>> Regards,
>>> Hemika
>>>
>>> Hemika Kodikara
>>> Software Engineer
>>> WSO2 Inc.
>>> lean . enterprise . middleware
>>> http://wso2.com
>>>
>>> Mobile : +9477762
>>>
>>> On Thu, May 19, 2016 at 3:43 PM, SajithAR Ariyarathna >> > wrote:
>>>
 Hi Sudharma,

 In the browser (client-side), you can do AJAX calls to the necessary
 REST APIs. However, doing HTTP requests from UI backend (which runs on the
 server-side) to REST APIs (which also runs on the server-side) is not
 recommended. Instead of that you should call OSGi services. Calling OSGI
 services from server-side JS will be available in the next milestone of 
 UUF.

 Thanks.

 On Thu, May 19, 2016 at 2:21 PM, Sudharma Subasinghe <
 sudhar...@wso2.com> wrote:

> Hi all,
>
> I am working on developing BPMN explorer ui using Unified UI
> Framework.
>
> The existing BPMN explorer ui is for BPS which has built on C4 and it
> is used Jaggery. So, I am working on BPMN explorer ui for BPS which is to
> be released on C5.
>
> We need to implement business logics in backend. For example, I need
> to send request to backend from browser, and from backend to BPS. Is there
> functionality to achieve it in UUF?
>
> Any idea on this is appreciated.
>
> Thanks
> Sudharma
>
> --
> Sudharma Subasinghe,
> Software Engineer,
> WSO2 Inc.
> Email: sudhar...@wso2.com 
> Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
>



 --
 Sajith Janaprasad Ariyarathna
 Software Engineer; WSO2, Inc.;  http://wso2.com/

 ___
 Architecture mailing list
 architect...@wso2.org
 https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture


>>>
>>
>>
>> --
>> With regards,
>> *Manu*ranga Perera.
>>
>> phone : 071 7 70 20 50
>> mail : m...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
With Regards,

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

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


Re: [Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-19 Thread Nandika Jayawardana
In case of BPS, what we develop is similar to a web application which
should be independent of the BPS backend. Idea is that this component has
to be packaged into PC ( process center ) as well as BPS. Hence, native
OSGi call's is not sufficient for our requirement.

Regards
Nandika

On Fri, May 20, 2016 at 11:17 AM, Rasika Perera  wrote:

> Hi,
>
> We have came up with this best practise. There are basically two scenarios;
>
> 1. When the back-end is belongs to your product(eg. calling BPS runtime).
>
> We assume that you have written your JAX-RS based on an OSGi service.
> JAX-RS will *not* hold any business logic and act as API interface(Facade
> Pattern). In this case making a network call(AJAX) from UI to your own VM
> is discouraged. You should use callOsgiService() function on the server
> side Js.
>
> 2. When the back-end is external(eg. calling Twitter API).
>
> Here we don't provide any server side feature for handling HTTP calls
> because this will again abuse and use to call own VM back-ends. You can
> simply write AJAX calls from UI using $.ajax() in jquery or XMLHttpRequest
> in client-side Js.
>
> * In the edge cases that you really need to make HTTP calls from the
> server side Js, you can initiate; apache commons 'HttpClient' or java.net
> 'URLConnection' through Nashorn.
>
> * Also you might still need to write JAX-RS APIs for your OSGi services
> for customers.
>
> Thanks,
> Rasika
>
> On Fri, May 20, 2016 at 10:42 AM, Chathura Ekanayake 
> wrote:
>
>> So there is not separation between UI back-end and the actual server
>> (e.g. BPS runtime)? i.e. both always run in the same jvm?
>>
>> On Thu, May 19, 2016 at 11:47 PM, Manuranga Perera  wrote:
>>
>>> Yes, you will be able to call OSGi services.
>>>
>>> On Thu, May 19, 2016 at 12:53 PM, Hemika Kodikara 
>>> wrote:
>>>
 Hi All,

 For clarification, does this mean we will be able to invoke a service
 side function(through nashorn) upon client request ? As in when a user
 clicks a button, we can call a server side function ?

 Regards,
 Hemika

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

 Mobile : +9477762

 On Thu, May 19, 2016 at 3:43 PM, SajithAR Ariyarathna <
 sajit...@wso2.com> wrote:

> Hi Sudharma,
>
> In the browser (client-side), you can do AJAX calls to the necessary
> REST APIs. However, doing HTTP requests from UI backend (which runs on the
> server-side) to REST APIs (which also runs on the server-side) is not
> recommended. Instead of that you should call OSGi services. Calling OSGI
> services from server-side JS will be available in the next milestone of 
> UUF.
>
> Thanks.
>
> On Thu, May 19, 2016 at 2:21 PM, Sudharma Subasinghe <
> sudhar...@wso2.com> wrote:
>
>> Hi all,
>>
>> I am working on developing BPMN explorer ui using Unified UI
>> Framework.
>>
>> The existing BPMN explorer ui is for BPS which has built on C4 and it
>> is used Jaggery. So, I am working on BPMN explorer ui for BPS which is to
>> be released on C5.
>>
>> We need to implement business logics in backend. For example, I need
>> to send request to backend from browser, and from backend to BPS. Is 
>> there
>> functionality to achieve it in UUF?
>>
>> Any idea on this is appreciated.
>>
>> Thanks
>> Sudharma
>>
>> --
>> Sudharma Subasinghe,
>> Software Engineer,
>> WSO2 Inc.
>> Email: sudhar...@wso2.com 
>> Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
>>
>
>
>
> --
> Sajith Janaprasad Ariyarathna
> Software Engineer; WSO2, Inc.;  http://wso2.com/
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>

>>>
>>>
>>> --
>>> With regards,
>>> *Manu*ranga Perera.
>>>
>>> phone : 071 7 70 20 50
>>> mail : m...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> With Regards,
>
> *Rasika Perera*
> Software Engineer
> M: +94 71 680 9060 E: rasi...@wso2.com
> LinkedIn: http://lk.linkedin.com/in/rasika90
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] Clarification on Availability of API

2016-05-19 Thread Fazlan Nazeem
Hi Shavantha,

We are using both the request and response stream in order to check the
availability of an API. We identified a bug in API-M where the api_version
takes two different values as in the screenshot, for the request and the
response stream of the same API. Thanks for reporting this issue. I have
created a Jira[1] in API-M to track this.

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

On Fri, May 20, 2016 at 10:30 AM, Shavantha Weerasinghe 
wrote:

> Hi Fazlan
>
> The attached image has the PizzaShackAPI listed under 2 statuses
>
> regards,
> Shavantha Weerasinghe
> Senior Software Engineer QA
> WSO2, Inc.
> lean.enterprise.middleware.
> http://wso2.com
> http://wso2.org
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
>
> On Fri, May 20, 2016 at 10:21 AM, Fazlan Nazeem  wrote:
>
>> Hi Shavantha,
>>
>> Can you send a screenshot, so that we can look into what the problem is.
>>
>> On Fri, May 20, 2016 at 10:10 AM, Shavantha Weerasinghe <
>> shavan...@wso2.com> wrote:
>>
>>> Hi All
>>>
>>> When APIs are invoked continuously, the availability of the same API is
>>> shown as available and also  busy. Is this the expected behavior or should
>>> the only 1 status be shown for an API at one time
>>>
>>> admin--TestAPO:v1.0.0Available*admin--PizzaShackAPI:v1.0.0*AvailableTestAPO:v1.0.0Response
>>> time is too high*PizzaShackAPI:v1.0.0*Response time is too
>>> highCalculatorAPI:v1.0Available
>>>
>>>
>>> regards,
>>> Shavantha Weerasinghe
>>> Senior Software Engineer QA
>>> WSO2, Inc.
>>> lean.enterprise.middle ware.
>>> http://wso2.com
>>> http://wso2.org
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> Fazlan Nazeem
>>
>> *Software Engineer*
>>
>> *WSO2 Inc*
>> Mobile : +94772338839
>> <%2B94%20%280%29%20773%20451194>
>> fazl...@wso2.com
>>
>
>


-- 
Thanks & Regards,

Fazlan Nazeem

*Software Engineer*

*WSO2 Inc*
Mobile : +94772338839
<%2B94%20%280%29%20773%20451194>
fazl...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery] Web sockets api in jaggery

2016-05-19 Thread Danushka Fernando
My log file rolled and tail got expired thats why I saw no logs. Actually
problem is my jaggery call to modules. I am getting exception below.

var logMap = mod.getFormattedRuntimeLogs(applicationKey, selectedRevision, "");

Is there a way to ged rid of this?

TID: [0] [AS] [2016-05-20 11:42:09,784] ERROR
{org.apache.coyote.AbstractProtocol$AbstractConnectionHandler} -  Error
reading request, ignored {org.apache.co
yote.AbstractProtocol$AbstractConnectionHandler}
org.mozilla.javascript.WrappedException: Wrapped
java.util.NoSuchElementException (/appmgt/jagg/jagg.jag#377)
   at
org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
   at
org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
   at
org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
   at
org.jaggeryjs.rhino.appmgt.jagg.c0._c_anonymous_37(/appmgt/jagg/jagg.jag:377)

   at org.jaggeryjs.rhino.appmgt.jagg.c0.call(/appmgt/jagg/jagg.jag)
   at
org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
   at
org.jaggeryjs.rhino.appmgt.modules.runtimeLogs.c0._c_anonymous_2(/appmgt/modules/runtimeLogs/module.jag:26)

   at
org.jaggeryjs.rhino.appmgt.modules.runtimeLogs.c0.call(/appmgt/modules/runtimeLogs/module.jag)

   at
org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
   at
org.jaggeryjs.rhino.appmgt.site.blocks.runtimeLogs.ws.c0._c_anonymous_1(/appmgt/site/blocks/runtimeLogs/ws/runtimeLogs.jag:37)

   at
org.jaggeryjs.rhino.appmgt.site.blocks.runtimeLogs.ws.c0.call(/appmgt/site/blocks/runtimeLogs/ws/runtimeLogs.jag)

   at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
   at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
   at
org.jaggeryjs.rhino.appmgt.site.blocks.runtimeLogs.ws.c0.call(/appmgt/site/blocks/runtimeLogs/ws/runtimeLogs.jag)

   at
org.jaggeryjs.hostobjects.web.WebSocketHostObject.processText(WebSocketHostObject.java:139)

   at
org.jaggeryjs.jaggery.core.websocket.WSMessageInBound.onTextMessage(WSMessageInBound.java:36)

   at
org.apache.catalina.websocket.MessageInbound.onTextData(MessageInbound.java:74)

   at
org.apache.catalina.websocket.StreamInbound.doOnTextData(StreamInbound.java:186)

   at
org.apache.catalina.websocket.StreamInbound.onData(StreamInbound.java:134)
   at
org.apache.coyote.http11.upgrade.UpgradeProcessor.upgradeDispatch(UpgradeProcessor.java:83)

   at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:587)

   at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)

   at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

   at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

   at java.lang.Thread.run(Thread.java:744)
Caused by: java.util.NoSuchElementException
   at java.util.Vector.lastElement(Vector.java:499)
   at
org.jaggeryjs.jaggery.core.manager.WebAppManager.executeScript(WebAppManager.java:226)

   at
org.jaggeryjs.jaggery.core.manager.WebAppManager.require(WebAppManager.java:318)

   at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
   ... 24 more

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

On Fri, May 20, 2016 at 11:18 AM, Danushka Fernando 
wrote:

> This is my server side looks like
>
>
> <%
> /*
>  * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
>  *
>  *   WSO2 Inc. licenses this file to you under the Apache License,
>  *   Version 2.0 (the "License"); you may not use this file except
>  *   in compliance with the License.
>  *   You may obtain a copy of the License at
>  *
>  *  http://www.apache.org/licenses/LICENSE-2.0
>  *
>  *   Unless required by applicable law or agreed to in writing,
>  *   software distributed under the License is distributed on an
>  *   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
>  *   KIND, either express or implied.  See the License for the
>  *   specific language governing permissions and limitations
>  *   under the License.
>  */
>
> include("/jagg/jagg.jag");
> include("/jagg/constants.jag");
>
> var mod, obj,
> log = new Log(),
> action = request.getParameter("action"),
> site = require("/site/conf/site.json");
>
> var applicationKey = request.getParameter("applicationKey");
> var selectedRevision = request.getParameter("selectedRevision");
> var mod = jagg.module("runtimeLogs");
> webSocket.onbinary = function (data) {
> log.info('Client Sent : ' + data);
>   

Re: [Dev] Time series data summarization

2016-05-19 Thread Niranda Perera
Hi Chan,

Agree with the above comments. Additionally, you can refer to the log
analyzer scenarios as well, because I feel like their use case is somewhat
similar to yours.

Best

On Fri, May 20, 2016 at 9:02 AM, Sachith Withana  wrote:

> To add to what Srinath said.
> If you enable indexing for that summary table, you'll be able to get the
> data through the REST API as well using lucene queries,.
>
> Regards,
> Sachith
>
> On Fri, May 20, 2016 at 7:30 AM, Srinath Perera  wrote:
>
>> schedule a spark query that aggregate the data per year and write to new
>> table, and you can query from that table?
>>
>> On Fri, May 20, 2016 at 12:06 AM, Dulitha Wijewantha 
>> wrote:
>>
>>> Hi guys,
>>> I have a bunch of data streams that have time stamps (like event logs) -
>>> currently in DAS 3.0.1 - is there a way to efficiently query these?
>>>
>>> Right now I am summarizing them based on string manipulation to the
>>> timestamp. An example query I have is -
>>>
>>> 1) How many unique user events do we have in the last year.
>>>
>>> Cheers~
>>>
>>> --
>>> Dulitha Wijewantha (Chan)
>>> Software Engineer - Mobile Development
>>> WSO2 Inc
>>> Lean.Enterprise.Middleware
>>>  * ~Email   duli...@wso2.com *
>>> *  ~Mobile +94712112165 <%2B94712112165>*
>>> *  ~Website   dulitha.me *
>>> *  ~Twitter @dulitharw *
>>>   *~Github @dulichan *
>>>   *~SO @chan *
>>>
>>
>>
>>
>> --
>> 
>> Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
>> Site: http://home.apache.org/~hemapani/
>> Photos: http://www.flickr.com/photos/hemapani/
>> Phone: 0772360902
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sachith Withana
> Software Engineer; WSO2 Inc.; http://wso2.com
> E-mail: sachith AT wso2.com
> M: +94715518127
> Linked-In: 
> https://lk.linkedin.com/in/sachithwithana
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 
https://pythagoreanscript.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev