Re: [Dev] [DAS] Arbitrary data is not visible in data explorer

2016-04-04 Thread Pirinthapan Mahendran
Hi Kalpa,

Yes, earlier when we were testing MSF4J publisher also we faced this issue.
Then we tested this arbitrary data publishing part with DAS-3.0.2-SNAPSHOT.
According to the DAS team, the fix is bit complicated and back-porting is
difficult. So we are waiting for the release of DAS-3.0.2.

So if we have the necessary changes in AS and MSF4J, then we can directly
use DAS-3.0.2 once it released.

Thanks & Regards,
Mahendran Pirinthapan
Software Engineer | WSO2 Inc.
Mobile +94772378732.

On Tue, Apr 5, 2016 at 10:20 AM, Kalpa Welivitigoda  wrote:

> [+ Pirinthapan]
>
> Hi Lasantha,
>
> I wanted to test the arbitrary data publishing because App Cloud wants
> that functionality with AS 6.0.0 [1]. I verified with
> wso2das-3.0.2-SNAPSHOT from jenkins, I could see the arbitrary data being
> published.
>
> Pirinthapan, we may need this fix in App Cloud setup with DAS.
>
> [1] "[AppCloud] Publishing AppCloud specific data from MSF4J and AS HTTP
> Monitoring Data Publishers" in architecture@
>
> On Tue, Apr 5, 2016 at 5:32 AM, Lasantha Fernando 
> wrote:
>
>> Hi Kalpa,
>>
>> These fixes were merged around 19/Jan and got released with CEP 4.1.0
>> release [1]. So I think these fixes won't be available for DAS 3.0.1.
>>
>> You might be able to create a patch from the current master branch and
>> apply it to get it working for DAS 3.0.1.
>>
>> If you need it from the DAS product itself, am afraid you would have to
>> wait for the next release.
>>
>> [1] https://wso2.org/jira/browse/CEP-1450
>>
>> Thanks,
>> Lasantha
>>
>> On 3 April 2016 at 00:16, Kalpa Welivitigoda  wrote:
>>
>>> Hi all,
>>>
>>> I have added an arbitrary values Map  when constructing
>>> the Event to be published to DAS 3.0.1. But when I publish and search the
>>> table in Data Explorer in DAS, I don't see the arbitrary data in "Arbitrary
>>> Fields / Extended fields" section of any record.
>>>
>>> Would this be related to [1] or am I missing something here?
>>>
>>> [1] https://wso2.org/jira/browse/DAS-255
>>>
>>> --
>>> Best Regards,
>>>
>>> Kalpa Welivitigoda
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> Email: kal...@wso2.com
>>> Mobile: +94776509215
>>>
>>
>>
>>
>> --
>> *Lasantha Fernando*
>> Senior Software Engineer - Data Technologies Team
>> WSO2 Inc. http://wso2.com
>>
>> email: lasan...@wso2.com
>> mobile: (+94) 71 5247551
>>
>
>
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Is it possible to store a custom file in the P2 repo and read it via eclipse?

2016-04-04 Thread Awanthika Senarath
@ Susinda : +1

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



On Tue, Apr 5, 2016 at 10:25 AM, Susinda Perera  wrote:

> Hi Awanthika
> Shall we document this, if that doc ship is not already sailed :), what i
> meant by document he re is the guidelines for plugin developers or patch
> developers on what to do after patch/feature development.
>
> Thanks
> Susinda
>
>
> On Mon, Apr 4, 2016 at 7:17 PM, Awanthika Senarath 
> wrote:
>
>> Yes Kavith
>>
>> :) the ship has already sailed !  I stored the file in P2 repository
>> itself since otherwise we have to get another shared location to store the
>> file. The file is stored at the root level of the root/updates directory.
>>
>> I wanted to verify if P2 had any eclipse specific support to read such a
>> custom file stored in P2
>>
>> Regards
>> Awanthiks
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> On Mon, Apr 4, 2016 at 6:38 PM, Kavith Lokuhewage 
>> wrote:
>>
>>> Hi Awanthika,
>>>
>>> This should be possible with any Http client. I don't think P2 api
>>> offers a way to read individual files which are there in p2 repositories.
>>> Yet, you can put a custom file under p2 root download that file using any
>>> http client api.
>>>
>>> Thanks,
>>> Kavith Lokuhewage
>>> On 29 Mar 2016 00:17, "Awanthika Senarath"  wrote:
>>>
 Hi all,


 In order to modify the developer studio updater tool and prevent it
 from searching through the whole P2 repo for updates, we need to introduce
 a meta file to the p2 repo and get eclipse to read that file to identify
 possible updates to be installed.


 Is it possible to get the eclipse P2 reader to read a custom file from
 P2 repo? if not we have to download the custom meta deta file from the P2
 repo or any other storage location and read it prior to running the
 developer studio updater tool


 @ Kavith : Any thoughts on this?


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



>>
>
>
> --
> *Susinda Perera*
> Software Engineer
> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
> Mobile:(+94)716049075
> Blog: susinda.blogspot.com
> WSO2 Inc. http://wso2.com/
> Tel : 94 11 214 5345 Fax :94 11 2145300
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Is it possible to store a custom file in the P2 repo and read it via eclipse?

2016-04-04 Thread Susinda Perera
Hi Awanthika
Shall we document this, if that doc ship is not already sailed :), what i
meant by document he re is the guidelines for plugin developers or patch
developers on what to do after patch/feature development.

Thanks
Susinda


On Mon, Apr 4, 2016 at 7:17 PM, Awanthika Senarath 
wrote:

> Yes Kavith
>
> :) the ship has already sailed !  I stored the file in P2 repository
> itself since otherwise we have to get another shared location to store the
> file. The file is stored at the root level of the root/updates directory.
>
> I wanted to verify if P2 had any eclipse specific support to read such a
> custom file stored in P2
>
> Regards
> Awanthiks
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Mon, Apr 4, 2016 at 6:38 PM, Kavith Lokuhewage  wrote:
>
>> Hi Awanthika,
>>
>> This should be possible with any Http client. I don't think P2 api offers
>> a way to read individual files which are there in p2 repositories. Yet, you
>> can put a custom file under p2 root download that file using any http
>> client api.
>>
>> Thanks,
>> Kavith Lokuhewage
>> On 29 Mar 2016 00:17, "Awanthika Senarath"  wrote:
>>
>>> Hi all,
>>>
>>>
>>> In order to modify the developer studio updater tool and prevent it from
>>> searching through the whole P2 repo for updates, we need to introduce a
>>> meta file to the p2 repo and get eclipse to read that file to identify
>>> possible updates to be installed.
>>>
>>>
>>> Is it possible to get the eclipse P2 reader to read a custom file from
>>> P2 repo? if not we have to download the custom meta deta file from the P2
>>> repo or any other storage location and read it prior to running the
>>> developer studio updater tool
>>>
>>>
>>> @ Kavith : Any thoughts on this?
>>>
>>>
>>> Regards
>>> Awanthika Senarath
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94717681791
>>>
>>>
>>>
>


-- 
*Susinda Perera*
Software Engineer
B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
Mobile:(+94)716049075
Blog: susinda.blogspot.com
WSO2 Inc. http://wso2.com/
Tel : 94 11 214 5345 Fax :94 11 2145300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] Arbitrary data is not visible in data explorer

2016-04-04 Thread Kalpa Welivitigoda
[+ Pirinthapan]

Hi Lasantha,

I wanted to test the arbitrary data publishing because App Cloud wants that
functionality with AS 6.0.0 [1]. I verified with wso2das-3.0.2-SNAPSHOT
from jenkins, I could see the arbitrary data being published.

Pirinthapan, we may need this fix in App Cloud setup with DAS.

[1] "[AppCloud] Publishing AppCloud specific data from MSF4J and AS HTTP
Monitoring Data Publishers" in architecture@

On Tue, Apr 5, 2016 at 5:32 AM, Lasantha Fernando  wrote:

> Hi Kalpa,
>
> These fixes were merged around 19/Jan and got released with CEP 4.1.0
> release [1]. So I think these fixes won't be available for DAS 3.0.1.
>
> You might be able to create a patch from the current master branch and
> apply it to get it working for DAS 3.0.1.
>
> If you need it from the DAS product itself, am afraid you would have to
> wait for the next release.
>
> [1] https://wso2.org/jira/browse/CEP-1450
>
> Thanks,
> Lasantha
>
> On 3 April 2016 at 00:16, Kalpa Welivitigoda  wrote:
>
>> Hi all,
>>
>> I have added an arbitrary values Map  when constructing
>> the Event to be published to DAS 3.0.1. But when I publish and search the
>> table in Data Explorer in DAS, I don't see the arbitrary data in "Arbitrary
>> Fields / Extended fields" section of any record.
>>
>> Would this be related to [1] or am I missing something here?
>>
>> [1] https://wso2.org/jira/browse/DAS-255
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: kal...@wso2.com
>> Mobile: +94776509215
>>
>
>
>
> --
> *Lasantha Fernando*
> Senior Software Engineer - Data Technologies Team
> WSO2 Inc. http://wso2.com
>
> email: lasan...@wso2.com
> mobile: (+94) 71 5247551
>



-- 
Best Regards,

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


Re: [Dev] How to set dynamic width size When adding custom buttons/functions to gadget title in toolbar Dashboard Server

2016-04-04 Thread Jerad Rutnam
Hi Rajeenthini,

Yes, +1. We should have both options, passing an icon class or image icon.
May be we can handle it by giving an extra key-value.

e.g.

icon: 'image' || 'css',
image: 'url-path',
css: 'fw fw-icon'

Cheers!
Jerad


On Tue, Apr 5, 2016 at 9:30 AM, Rajeenthini Satkunam 
wrote:

> Hi Jerad,
>
> Thank you for your prompt reply.I also have this concern that "passing an
> icon image" as you mentioned above reply since we are maintaining set of
> default icons.But IMHO we need to handle the situation like if the gadget
> author need to add a totally new function/button which icon image is not
> exist already in default icon set.
>
> Your suggestion would be appreciated.
>
> On Tue, Apr 5, 2016 at 8:59 AM, Jerad Rutnam  wrote:
>
>> Hi Rajeenthini,
>>
>> IMO I think we should handle the width from css end. I will help you on
>> it. And have concern in passing an icon image, is this optional? And do we
>> have an option of passing an icon class instead?
>>
>> Regards,
>> Jerad
>>
>>
>> On Tue, Apr 5, 2016 at 7:33 AM, Rajeenthini Satkunam <
>> rajeenth...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> Currently I am working on a task that "*Flexibility to add/remove more
>>> functions/buttons in the gadget title bar*".Previously we have distinct
>>> set of 3 buttons/functions(configuration,maximize,remove) in gadget title
>>> bar.By the task I am working on can have more than above three
>>> buttons/functions those are custom buttons specific to each and every
>>> gadgets add by gadget author.
>>>
>>> These custom buttons are adding by gadget author through the
>>> configuration file of gadget(Gadget.json) as below.
>>>
>>> "toolbarButtons":{
>>>   "custom":[
>>> {
>>>   "action": "REFRESH",
>>>   "image": "icon://gadget/date-picker/images/stamp.png"
>>> },
>>> {
>>>   "action": "DOWNLOAD",
>>>   "image": "icon://gadget/date-picker/images/wifi.png"
>>> }
>>>   ],
>>>   "default":{
>>> "maximize": false,
>>> "configuration": true,
>>> "remove": true
>>>   }
>>> }
>>>
>>> *Faced Problem*
>>> **
>>>
>>> When adding more than 3 buttons/functions, the issue that I am facing is
>>> those set of buttons are not present at the title bar it is situated just
>>> below the title bar.You can find the image below.
>>>
>>>
>>> ​
>>>
>>> In UI/UX perspective my finding is gadget title width is calculated as
>>> below
>>>
>>> .gadget .gadget-heading > .gadget-title {
>>> width: calc(100% - 154px);
>>> }
>>>
>>>
>>> *The proposed solution==*
>>>
>>> We can have a extra property called width for each and every custom
>>> button and we can get the addition(sum) of widths' of all custom buttons
>>> and can subtract from 100% of width of title tool bar.
>>>
>>> "toolbarButtons":{
>>>   "custom":[
>>> {
>>>   "action": "REFRESH",
>>>   "image": "icon://gadget/date-picker/images/stamp.png",
>>>
>>>   "width": "7px"
>>>
>>> }
>>>   ],
>>>   "default":{
>>> "maximize": false,
>>> "configuration": true,
>>> "remove": true
>>>   }
>>> }
>>>
>>> .gadget .gadget-heading > .gadget-title {
>>> width: calc(100% - {Addition of widths});
>>> }
>>>
>>> *Limitations and problems of proposed solution above*
>>> **
>>>
>>> - For example in case of adding huge number of custom buttons(100
>>> buttons) what will happen to gadget title?
>>> - Adding different size of button width size will have not proper
>>> consistent gadget UI. It may different respect to gadget custom button
>>> widths'.
>>> - We cannot restrict gadget author to have distinct number of
>>> buttons/functions(default functions/buttons 5).
>>>
>>> Can anyone guide me on this and give me suggestions on "what would be a
>>> better solution"?
>>>
>>> Your suggestions highly appreciated.
>>>
>>> --
>>>
>>> *Thank You.*
>>>
>>> *Rajeenthini Satkunam*
>>>
>>> *Associate Software Engineer | WSO2*
>>>
>>>
>>> *E:rajeenth...@wso2.com *
>>>
>>> *M :+94770832823 <%2B94770832823>   *
>>>
>>>
>>
>>
>> --
>> *Jerad Rutnam*
>> *Software Engineer*
>>
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>>
>
>
>
> --
>
> *Thank You.*
>
> *Rajeenthini Satkunam*
>
> *Associate Software Engineer | WSO2*
>
>
> *E:rajeenth...@wso2.com *
>
> *M :+94770832823 <%2B94770832823>   *
>
>


-- 
*Jerad Rutnam*
*Software Engineer*

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


Re: [Dev] How to set dynamic width size When adding custom buttons/functions to gadget title in toolbar Dashboard Server

2016-04-04 Thread Rajeenthini Satkunam
Hi Jerad,

Thank you for your prompt reply.I also have this concern that "passing an
icon image" as you mentioned above reply since we are maintaining set of
default icons.But IMHO we need to handle the situation like if the gadget
author need to add a totally new function/button which icon image is not
exist already in default icon set.

Your suggestion would be appreciated.

On Tue, Apr 5, 2016 at 8:59 AM, Jerad Rutnam  wrote:

> Hi Rajeenthini,
>
> IMO I think we should handle the width from css end. I will help you on
> it. And have concern in passing an icon image, is this optional? And do we
> have an option of passing an icon class instead?
>
> Regards,
> Jerad
>
>
> On Tue, Apr 5, 2016 at 7:33 AM, Rajeenthini Satkunam  > wrote:
>
>> Hi All,
>>
>> Currently I am working on a task that "*Flexibility to add/remove more
>> functions/buttons in the gadget title bar*".Previously we have distinct
>> set of 3 buttons/functions(configuration,maximize,remove) in gadget title
>> bar.By the task I am working on can have more than above three
>> buttons/functions those are custom buttons specific to each and every
>> gadgets add by gadget author.
>>
>> These custom buttons are adding by gadget author through the
>> configuration file of gadget(Gadget.json) as below.
>>
>> "toolbarButtons":{
>>   "custom":[
>> {
>>   "action": "REFRESH",
>>   "image": "icon://gadget/date-picker/images/stamp.png"
>> },
>> {
>>   "action": "DOWNLOAD",
>>   "image": "icon://gadget/date-picker/images/wifi.png"
>> }
>>   ],
>>   "default":{
>> "maximize": false,
>> "configuration": true,
>> "remove": true
>>   }
>> }
>>
>> *Faced Problem*
>> **
>>
>> When adding more than 3 buttons/functions, the issue that I am facing is
>> those set of buttons are not present at the title bar it is situated just
>> below the title bar.You can find the image below.
>>
>>
>> ​
>>
>> In UI/UX perspective my finding is gadget title width is calculated as
>> below
>>
>> .gadget .gadget-heading > .gadget-title {
>> width: calc(100% - 154px);
>> }
>>
>>
>> *The proposed solution==*
>>
>> We can have a extra property called width for each and every custom
>> button and we can get the addition(sum) of widths' of all custom buttons
>> and can subtract from 100% of width of title tool bar.
>>
>> "toolbarButtons":{
>>   "custom":[
>> {
>>   "action": "REFRESH",
>>   "image": "icon://gadget/date-picker/images/stamp.png",
>>
>>   "width": "7px"
>>
>> }
>>   ],
>>   "default":{
>> "maximize": false,
>> "configuration": true,
>> "remove": true
>>   }
>> }
>>
>> .gadget .gadget-heading > .gadget-title {
>> width: calc(100% - {Addition of widths});
>> }
>>
>> *Limitations and problems of proposed solution above*
>> **
>>
>> - For example in case of adding huge number of custom buttons(100
>> buttons) what will happen to gadget title?
>> - Adding different size of button width size will have not proper
>> consistent gadget UI. It may different respect to gadget custom button
>> widths'.
>> - We cannot restrict gadget author to have distinct number of
>> buttons/functions(default functions/buttons 5).
>>
>> Can anyone guide me on this and give me suggestions on "what would be a
>> better solution"?
>>
>> Your suggestions highly appreciated.
>>
>> --
>>
>> *Thank You.*
>>
>> *Rajeenthini Satkunam*
>>
>> *Associate Software Engineer | WSO2*
>>
>>
>> *E:rajeenth...@wso2.com *
>>
>> *M :+94770832823 <%2B94770832823>   *
>>
>>
>
>
> --
> *Jerad Rutnam*
> *Software Engineer*
>
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>



-- 

*Thank You.*

*Rajeenthini Satkunam*

*Associate Software Engineer | WSO2*


*E:rajeenth...@wso2.com *

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


Re: [Dev] How to set dynamic width size When adding custom buttons/functions to gadget title in toolbar Dashboard Server

2016-04-04 Thread Jerad Rutnam
Hi Rajeenthini,

IMO I think we should handle the width from css end. I will help you on it.
And have concern in passing an icon image, is this optional? And do we have
an option of passing an icon class instead?

Regards,
Jerad


On Tue, Apr 5, 2016 at 7:33 AM, Rajeenthini Satkunam 
wrote:

> Hi All,
>
> Currently I am working on a task that "*Flexibility to add/remove more
> functions/buttons in the gadget title bar*".Previously we have distinct
> set of 3 buttons/functions(configuration,maximize,remove) in gadget title
> bar.By the task I am working on can have more than above three
> buttons/functions those are custom buttons specific to each and every
> gadgets add by gadget author.
>
> These custom buttons are adding by gadget author through the configuration
> file of gadget(Gadget.json) as below.
>
> "toolbarButtons":{
>   "custom":[
> {
>   "action": "REFRESH",
>   "image": "icon://gadget/date-picker/images/stamp.png"
> },
> {
>   "action": "DOWNLOAD",
>   "image": "icon://gadget/date-picker/images/wifi.png"
> }
>   ],
>   "default":{
> "maximize": false,
> "configuration": true,
> "remove": true
>   }
> }
>
> *Faced Problem*
> **
>
> When adding more than 3 buttons/functions, the issue that I am facing is
> those set of buttons are not present at the title bar it is situated just
> below the title bar.You can find the image below.
>
>
> ​
>
> In UI/UX perspective my finding is gadget title width is calculated as
> below
>
> .gadget .gadget-heading > .gadget-title {
> width: calc(100% - 154px);
> }
>
>
> *The proposed solution==*
>
> We can have a extra property called width for each and every custom button
> and we can get the addition(sum) of widths' of all custom buttons and can
> subtract from 100% of width of title tool bar.
>
> "toolbarButtons":{
>   "custom":[
> {
>   "action": "REFRESH",
>   "image": "icon://gadget/date-picker/images/stamp.png",
>
>   "width": "7px"
>
> }
>   ],
>   "default":{
> "maximize": false,
> "configuration": true,
> "remove": true
>   }
> }
>
> .gadget .gadget-heading > .gadget-title {
> width: calc(100% - {Addition of widths});
> }
>
> *Limitations and problems of proposed solution above*
> **
>
> - For example in case of adding huge number of custom buttons(100 buttons)
> what will happen to gadget title?
> - Adding different size of button width size will have not proper
> consistent gadget UI. It may different respect to gadget custom button
> widths'.
> - We cannot restrict gadget author to have distinct number of
> buttons/functions(default functions/buttons 5).
>
> Can anyone guide me on this and give me suggestions on "what would be a
> better solution"?
>
> Your suggestions highly appreciated.
>
> --
>
> *Thank You.*
>
> *Rajeenthini Satkunam*
>
> *Associate Software Engineer | WSO2*
>
>
> *E:rajeenth...@wso2.com *
>
> *M :+94770832823 <%2B94770832823>   *
>
>


-- 
*Jerad Rutnam*
*Software Engineer*

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


[Dev] How to set dynamic width size When adding custom buttons/functions to gadget title in toolbar Dashboard Server

2016-04-04 Thread Rajeenthini Satkunam
Hi All,

Currently I am working on a task that "*Flexibility to add/remove more
functions/buttons in the gadget title bar*".Previously we have distinct set
of 3 buttons/functions(configuration,maximize,remove) in gadget title
bar.By the task I am working on can have more than above three
buttons/functions those are custom buttons specific to each and every
gadgets add by gadget author.

These custom buttons are adding by gadget author through the configuration
file of gadget(Gadget.json) as below.

"toolbarButtons":{
  "custom":[
{
  "action": "REFRESH",
  "image": "icon://gadget/date-picker/images/stamp.png"
},
{
  "action": "DOWNLOAD",
  "image": "icon://gadget/date-picker/images/wifi.png"
}
  ],
  "default":{
"maximize": false,
"configuration": true,
"remove": true
  }
}

*Faced Problem*
**

When adding more than 3 buttons/functions, the issue that I am facing is
those set of buttons are not present at the title bar it is situated just
below the title bar.You can find the image below.


​

In UI/UX perspective my finding is gadget title width is calculated as below

.gadget .gadget-heading > .gadget-title {
width: calc(100% - 154px);
}


*The proposed solution==*

We can have a extra property called width for each and every custom button
and we can get the addition(sum) of widths' of all custom buttons and can
subtract from 100% of width of title tool bar.

"toolbarButtons":{
  "custom":[
{
  "action": "REFRESH",
  "image": "icon://gadget/date-picker/images/stamp.png",

  "width": "7px"

}
  ],
  "default":{
"maximize": false,
"configuration": true,
"remove": true
  }
}

.gadget .gadget-heading > .gadget-title {
width: calc(100% - {Addition of widths});
}

*Limitations and problems of proposed solution above*
**

- For example in case of adding huge number of custom buttons(100 buttons)
what will happen to gadget title?
- Adding different size of button width size will have not proper
consistent gadget UI. It may different respect to gadget custom button
widths'.
- We cannot restrict gadget author to have distinct number of
buttons/functions(default functions/buttons 5).

Can anyone guide me on this and give me suggestions on "what would be a
better solution"?

Your suggestions highly appreciated.

-- 

*Thank You.*

*Rajeenthini Satkunam*

*Associate Software Engineer | WSO2*


*E:rajeenth...@wso2.com *

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


Re: [Dev] Thrift test server independent from carbon dependencies

2016-04-04 Thread Lasantha Fernando
Hi Kalpa,

Sorry I couldn't reply earlier. Were you able to resolve this issue?

The current ThriftTestServer uses the already wrapped components on the
databridge receiver side, hence the heavy dependency to Carbon.

If you want your test server to be independent from Carbon, I think the
only option would be to generate the receiver side code yourself and add
some minimal wrapping. Since we are using Thrift, you would not need to do
much coding since you can generate the receiver service directly from the
thrift service definitions available at [1]. The generated files used in
databridge are available at [2] which you can use as a reference.

I think we also have recently upgraded to Thrift 0.9.2 in commit [3] by
Mohan. You can follow his commit to get an idea of what files will be
generated and what sort of coding you would have to do on top of the
generated files to write your own test server.

This is the approach that comes to my mind to write a test server
independent of carbon dependencies. Please suggest if there are possible
other alternatives that might be easier or better.

[1]
https://github.com/wso2/carbon-analytics-common/tree/master/components/data-bridge/org.wso2.carbon.databridge.commons.thrift/src/main/resources
[2]
https://github.com/wso2/carbon-analytics-common/tree/master/components/data-bridge/org.wso2.carbon.databridge.commons.thrift/src/main/java/org/wso2/carbon/databridge/commons/thrift
[3]
https://github.com/wso2/carbon-analytics-common/commit/bc54e4156fc63fa3889b8e51011dda3c9410a4e8

Thanks,
Lasantha

On 2 April 2016 at 13:10, Kalpa Welivitigoda  wrote:

> Hi devs,
>
> Do we have $subject? . I am writing a tests to test http statistics
> publishing in AS 6.0.0 which is almost independent from carbon dependencies
> (ATM we have data bridge dependencies for data publishing though)
>
> I tried the thrift test server at [1] (this was mentioned in [2]) but it
> seems it heavily depends on carbon dependencies. Since AS 6.0.0 is
> independent from carbon dependencies I am looking for a way to write the
> test also independent from carbon dependencies.
>
> [1]
> https://github.com/wso2/carbon-analytics-common/blob/master/components/data-bridge/org.wso2.carbon.databridge.agent/src/test/java/org/wso2/carbon/databridge/agent/test/thrift/ThriftTestServer.java
> [2] "[Dev] [Test Automation] Mocking Thrift server for an integration test"
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>



-- 
*Lasantha Fernando*
Senior Software Engineer - Data Technologies Team
WSO2 Inc. http://wso2.com

email: lasan...@wso2.com
mobile: (+94) 71 5247551
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] Arbitrary data is not visible in data explorer

2016-04-04 Thread Lasantha Fernando
Hi Kalpa,

These fixes were merged around 19/Jan and got released with CEP 4.1.0
release [1]. So I think these fixes won't be available for DAS 3.0.1.

You might be able to create a patch from the current master branch and
apply it to get it working for DAS 3.0.1.

If you need it from the DAS product itself, am afraid you would have to
wait for the next release.

[1] https://wso2.org/jira/browse/CEP-1450

Thanks,
Lasantha

On 3 April 2016 at 00:16, Kalpa Welivitigoda  wrote:

> Hi all,
>
> I have added an arbitrary values Map  when constructing
> the Event to be published to DAS 3.0.1. But when I publish and search the
> table in Data Explorer in DAS, I don't see the arbitrary data in "Arbitrary
> Fields / Extended fields" section of any record.
>
> Would this be related to [1] or am I missing something here?
>
> [1] https://wso2.org/jira/browse/DAS-255
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>



-- 
*Lasantha Fernando*
Senior Software Engineer - Data Technologies Team
WSO2 Inc. http://wso2.com

email: lasan...@wso2.com
mobile: (+94) 71 5247551
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How can I query a specific task (completed) which belongs to a process instance

2016-04-04 Thread Amal Gunatilake
Hi Amalka,

According to the offline chat we had, it was cleared out that the
requirement is to retrieve tasks other than user tasks for a particular
instance.

In this special case, BPMN names them as Activity.
The following approach[1] will help you to retrieve the information
required.

[1] http://www.activiti.org/userguide/#restHistoricActivityInstancesGet

Best regards,
Amal.

On Mon, Apr 4, 2016 at 10:23 PM, Amal Gunatilake  wrote:

> Hi Amalka,
>
> Try querying the process instances using *query/process-instances*
>
> The following reference[1] will guide you on how to query the instance
> according to your instance details.
>
> [1] http://www.activiti.org/userguide/#_query_process_instances
>
> Best regards,
> Amal.
>
> On Mon, Apr 4, 2016 at 8:58 PM, Amalka Subasinghe  wrote:
>
>>
>> I tried to get it querying historic-task-instances. it always gives user
>> tasks only.
>>
>> https://192.168.1.5:9453/bpmn/history/historic-task-instances?processInstanceId=22575
>>
>> is there a better way to do this?
>>
>> Result of the query:
>>
>> {
>>   "sort": "taskInstanceId",
>>   "order": "asc",
>>   "start": 0,
>>   "total": 2,
>>   "data": [
>> {
>>   "processDefinitionUrl": "
>> https://192.168.1.5:9453/bpmn/history/process-definitions/allocate_consultant_3:1:22542
>> ",
>>   "processInstanceUrl": "
>> https://192.168.1.5:9453/bpmn/history/historic-process-instances/22575;,
>>   "url": "
>> https://192.168.1.5:9453/bpmn/history/historic-task-instances/22586;,
>>   "tenantId": "-1234",
>>   "variables": [],
>>   "category": null,
>>   "processInstanceId": "22575",
>>   "formKey": null,
>>   "assignee": "admin",
>>   "dueDate": null,
>>   "executionId": "22583",
>>   "processDefinitionId": "allocate_consultant_3:1:22542",
>>   "taskDefinitionKey": "usertask2",
>>   "parentTaskId": null,
>>   "deleteReason": "completed",
>>   "durationInMillis": 651104,
>>   "workTimeInMillis": null,
>>   "claimTime": null,
>>   "endTime": 1459782351301,
>>   "startTime": 1459781700197,
>>   "description": null,
>>   "name": "Ready for Clearance",
>>   "id": "22586",
>>   "priority": 50,
>>   "owner": null
>> },
>> {
>>   "processDefinitionUrl": "
>> https://192.168.1.5:9453/bpmn/history/process-definitions/allocate_consultant_3:1:22542
>> ",
>>   "processInstanceUrl": "
>> https://192.168.1.5:9453/bpmn/history/historic-process-instances/22575;,
>>   "url": "
>> https://192.168.1.5:9453/bpmn/history/historic-task-instances/22594;,
>>   "tenantId": "-1234",
>>   "variables": [],
>>   "category": null,
>>   "processInstanceId": "22575",
>>   "formKey": null,
>>   "assignee": null,
>>   "dueDate": null,
>>   "executionId": "22591",
>>   "processDefinitionId": "allocate_consultant_3:1:22542",
>>   "taskDefinitionKey": "usertask9",
>>   "parentTaskId": null,
>>   "deleteReason": "deleted",
>>   "durationInMillis": 13,
>>   "workTimeInMillis": null,
>>   "claimTime": null,
>>   "endTime": 1459782356090,
>>   "startTime": 1459782356077,
>>   "description": null,
>>   "name": "Confirmed",
>>   "id": "22594",
>>   "priority": 50,
>>   "owner": null
>> }
>>   ],
>>   "message": null,
>>   "size": 2
>> }
>>
>> Thanks
>> Amalka
>>
>
>
>
> --
> *Amal Gunatilake*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>



-- 
*Amal Gunatilake*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How can I query a specific task (completed) which belongs to a process instance

2016-04-04 Thread Amal Gunatilake
Hi Amalka,

Try querying the process instances using *query/process-instances*

The following reference[1] will guide you on how to query the instance
according to your instance details.

[1] http://www.activiti.org/userguide/#_query_process_instances

Best regards,
Amal.

On Mon, Apr 4, 2016 at 8:58 PM, Amalka Subasinghe  wrote:

>
> I tried to get it querying historic-task-instances. it always gives user
> tasks only.
>
> https://192.168.1.5:9453/bpmn/history/historic-task-instances?processInstanceId=22575
>
> is there a better way to do this?
>
> Result of the query:
>
> {
>   "sort": "taskInstanceId",
>   "order": "asc",
>   "start": 0,
>   "total": 2,
>   "data": [
> {
>   "processDefinitionUrl": "
> https://192.168.1.5:9453/bpmn/history/process-definitions/allocate_consultant_3:1:22542
> ",
>   "processInstanceUrl": "
> https://192.168.1.5:9453/bpmn/history/historic-process-instances/22575;,
>   "url": "
> https://192.168.1.5:9453/bpmn/history/historic-task-instances/22586;,
>   "tenantId": "-1234",
>   "variables": [],
>   "category": null,
>   "processInstanceId": "22575",
>   "formKey": null,
>   "assignee": "admin",
>   "dueDate": null,
>   "executionId": "22583",
>   "processDefinitionId": "allocate_consultant_3:1:22542",
>   "taskDefinitionKey": "usertask2",
>   "parentTaskId": null,
>   "deleteReason": "completed",
>   "durationInMillis": 651104,
>   "workTimeInMillis": null,
>   "claimTime": null,
>   "endTime": 1459782351301,
>   "startTime": 1459781700197,
>   "description": null,
>   "name": "Ready for Clearance",
>   "id": "22586",
>   "priority": 50,
>   "owner": null
> },
> {
>   "processDefinitionUrl": "
> https://192.168.1.5:9453/bpmn/history/process-definitions/allocate_consultant_3:1:22542
> ",
>   "processInstanceUrl": "
> https://192.168.1.5:9453/bpmn/history/historic-process-instances/22575;,
>   "url": "
> https://192.168.1.5:9453/bpmn/history/historic-task-instances/22594;,
>   "tenantId": "-1234",
>   "variables": [],
>   "category": null,
>   "processInstanceId": "22575",
>   "formKey": null,
>   "assignee": null,
>   "dueDate": null,
>   "executionId": "22591",
>   "processDefinitionId": "allocate_consultant_3:1:22542",
>   "taskDefinitionKey": "usertask9",
>   "parentTaskId": null,
>   "deleteReason": "deleted",
>   "durationInMillis": 13,
>   "workTimeInMillis": null,
>   "claimTime": null,
>   "endTime": 1459782356090,
>   "startTime": 1459782356077,
>   "description": null,
>   "name": "Confirmed",
>   "id": "22594",
>   "priority": 50,
>   "owner": null
> }
>   ],
>   "message": null,
>   "size": 2
> }
>
> Thanks
> Amalka
>



-- 
*Amal Gunatilake*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How can I query a specific task (completed) which belongs to a process instance

2016-04-04 Thread Amalka Subasinghe
I tried to get it querying historic-task-instances. it always gives user
tasks only.
https://192.168.1.5:9453/bpmn/history/historic-task-instances?processInstanceId=22575

is there a better way to do this?

Result of the query:

{
  "sort": "taskInstanceId",
  "order": "asc",
  "start": 0,
  "total": 2,
  "data": [
{
  "processDefinitionUrl": "
https://192.168.1.5:9453/bpmn/history/process-definitions/allocate_consultant_3:1:22542
",
  "processInstanceUrl": "
https://192.168.1.5:9453/bpmn/history/historic-process-instances/22575;,
  "url": "
https://192.168.1.5:9453/bpmn/history/historic-task-instances/22586;,
  "tenantId": "-1234",
  "variables": [],
  "category": null,
  "processInstanceId": "22575",
  "formKey": null,
  "assignee": "admin",
  "dueDate": null,
  "executionId": "22583",
  "processDefinitionId": "allocate_consultant_3:1:22542",
  "taskDefinitionKey": "usertask2",
  "parentTaskId": null,
  "deleteReason": "completed",
  "durationInMillis": 651104,
  "workTimeInMillis": null,
  "claimTime": null,
  "endTime": 1459782351301,
  "startTime": 1459781700197,
  "description": null,
  "name": "Ready for Clearance",
  "id": "22586",
  "priority": 50,
  "owner": null
},
{
  "processDefinitionUrl": "
https://192.168.1.5:9453/bpmn/history/process-definitions/allocate_consultant_3:1:22542
",
  "processInstanceUrl": "
https://192.168.1.5:9453/bpmn/history/historic-process-instances/22575;,
  "url": "
https://192.168.1.5:9453/bpmn/history/historic-task-instances/22594;,
  "tenantId": "-1234",
  "variables": [],
  "category": null,
  "processInstanceId": "22575",
  "formKey": null,
  "assignee": null,
  "dueDate": null,
  "executionId": "22591",
  "processDefinitionId": "allocate_consultant_3:1:22542",
  "taskDefinitionKey": "usertask9",
  "parentTaskId": null,
  "deleteReason": "deleted",
  "durationInMillis": 13,
  "workTimeInMillis": null,
  "claimTime": null,
  "endTime": 1459782356090,
  "startTime": 1459782356077,
  "description": null,
  "name": "Confirmed",
  "id": "22594",
  "priority": 50,
  "owner": null
}
  ],
  "message": null,
  "size": 2
}

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


Re: [Dev] Is it possible to store a custom file in the P2 repo and read it via eclipse?

2016-04-04 Thread Awanthika Senarath
Yes Kavith

:) the ship has already sailed !  I stored the file in P2 repository itself
since otherwise we have to get another shared location to store the file.
The file is stored at the root level of the root/updates directory.

I wanted to verify if P2 had any eclipse specific support to read such a
custom file stored in P2

Regards
Awanthiks

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



On Mon, Apr 4, 2016 at 6:38 PM, Kavith Lokuhewage  wrote:

> Hi Awanthika,
>
> This should be possible with any Http client. I don't think P2 api offers
> a way to read individual files which are there in p2 repositories. Yet, you
> can put a custom file under p2 root download that file using any http
> client api.
>
> Thanks,
> Kavith Lokuhewage
> On 29 Mar 2016 00:17, "Awanthika Senarath"  wrote:
>
>> Hi all,
>>
>>
>> In order to modify the developer studio updater tool and prevent it from
>> searching through the whole P2 repo for updates, we need to introduce a
>> meta file to the p2 repo and get eclipse to read that file to identify
>> possible updates to be installed.
>>
>>
>> Is it possible to get the eclipse P2 reader to read a custom file from P2
>> repo? if not we have to download the custom meta deta file from the P2 repo
>> or any other storage location and read it prior to running the developer
>> studio updater tool
>>
>>
>> @ Kavith : Any thoughts on this?
>>
>>
>> Regards
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Is it possible to store a custom file in the P2 repo and read it via eclipse?

2016-04-04 Thread Kavith Lokuhewage
Hi Awanthika,

This should be possible with any Http client. I don't think P2 api offers a
way to read individual files which are there in p2 repositories. Yet, you
can put a custom file under p2 root download that file using any http
client api.

Thanks,
Kavith Lokuhewage
On 29 Mar 2016 00:17, "Awanthika Senarath"  wrote:

> Hi all,
>
>
> In order to modify the developer studio updater tool and prevent it from
> searching through the whole P2 repo for updates, we need to introduce a
> meta file to the p2 repo and get eclipse to read that file to identify
> possible updates to be installed.
>
>
> Is it possible to get the eclipse P2 reader to read a custom file from P2
> repo? if not we have to download the custom meta deta file from the P2 repo
> or any other storage location and read it prior to running the developer
> studio updater tool
>
>
> @ Kavith : Any thoughts on this?
>
>
> Regards
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Setting up MySQL database

2016-04-04 Thread Tharindu Edirisinghe
Hi Elimatha,

The error log has following.

*Caused by: java.lang.Exception: Error occurred while executing :   CREATE
INDEX REG_PATH_IND_BY_PATH_VALUE USING HASH ON REG_PATH(REG_PATH_VALUE,
REG_TENANT_ID)*

*Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
Specified key was too long; max key length is 767 bytes*


So the reason for this is the index *REG_PATH_IND_BY_PATH_VALUE *exceeds
the maximum key length.

The REG_PATH table creation db script is as following.

CREATE TABLE IF NOT EXISTS REG_PATH(
 REG_PATH_ID INTEGER NOT NULL AUTO_INCREMENT,
* REG_PATH_VALUE VARCHAR(750) *NOT NULL,
 REG_PATH_PARENT_ID INTEGER,
 *REG_TENANT_ID INTEGER *DEFAULT 0,
 CONSTRAINT PK_REG_PATH PRIMARY KEY(REG_PATH_ID, REG_TENANT_ID)
)ENGINE INNODB;

So the combination of REG_PATH_VALUE and REG_TENANT_ID columns should not
exceed this limit.

More information on [1] where this is reported previously, however the
ticket is still not resolved.

A temporary fix would be to reduce the character length of REG_PATH_VALUE,
but if this is a bug, then it has to be fixed.

[1] https://wso2.org/jira/browse/CARBON-5917

On Mon, Apr 4, 2016 at 5:32 PM, Elilmatha Sivanesan 
wrote:

> Hi Hemika,
>
> Yes I have created the corresponding databases.
>
> Thanks.
>
> On Mon, Apr 4, 2016 at 5:22 PM, Hemika Kodikara  wrote:
>
>> Hi Eilimatha,
>>
>> Did you try creating the database with the following command :
>>
>> create database  character set latin1;
>>
>>
>> Regards,
>> Hemika
>>
>> Hemika Kodikara
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middleware
>> http://wso2.com
>>
>> Mobile : +9477762
>>
>> On Mon, Apr 4, 2016 at 5:18 PM, Elilmatha Sivanesan 
>> wrote:
>>
>>> Hi All,
>>>
>>> I tried to $subject by following the documentation [1] . I have added
>>> the master-datasources.xml [2]. After doing the necessary config, I have
>>> installed mysql  version 5.6.20 and correspondind mysql connector
>>> (mysql-connector-java-5.1.38-bin.jar ) in repository/components/lib folder.
>>> I get the following error.
>>>
>>> What could be the reason for this.
>>>
>>> [2016-04-04 17:05:02,407] ERROR
>>> {org.wso2.carbon.user.core.internal.Activator} -  Cannot start User Manager
>>> Core bundle
>>>
>>> java.lang.Exception: Error in creating the database
>>>
>>> at
>>> org.wso2.carbon.user.core.common.DefaultRealmService.initializeDatabase(DefaultRealmService.java:306)
>>>
>>> at
>>> org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:85)
>>>
>>> at
>>> org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:109)
>>>
>>> at
>>> org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:68)
>>>
>>> at
>>> org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
>>>
>>> at java.security.AccessController.doPrivileged(Native Method)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
>>>
>>> at
>>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>>
>>> at
>>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
>>>
>>> Caused by: java.lang.Exception: Error occurred while executing :
>>> CREATE INDEX REG_PATH_IND_BY_PATH_VALUE USING HASH ON
>>> REG_PATH(REG_PATH_VALUE, REG_TENANT_ID)
>>>
>>> at
>>> org.wso2.carbon.utils.dbcreator.DatabaseCreator.executeSQL(DatabaseCreator.java:169)
>>>
>>> at
>>> org.wso2.carbon.utils.dbcreator.DatabaseCreator.executeSQLScript(DatabaseCreator.java:325)
>>>
>>> at
>>> 

Re: [Dev] Setting up MySQL database

2016-04-04 Thread Elilmatha Sivanesan
Hi Hemika,

Yes I have created the corresponding databases.

Thanks.

On Mon, Apr 4, 2016 at 5:22 PM, Hemika Kodikara  wrote:

> Hi Eilimatha,
>
> Did you try creating the database with the following command :
>
> create database  character set latin1;
>
>
> Regards,
> Hemika
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +9477762
>
> On Mon, Apr 4, 2016 at 5:18 PM, Elilmatha Sivanesan 
> wrote:
>
>> Hi All,
>>
>> I tried to $subject by following the documentation [1] . I have added the
>> master-datasources.xml [2]. After doing the necessary config, I have
>> installed mysql  version 5.6.20 and correspondind mysql connector
>> (mysql-connector-java-5.1.38-bin.jar ) in repository/components/lib folder.
>> I get the following error.
>>
>> What could be the reason for this.
>>
>> [2016-04-04 17:05:02,407] ERROR
>> {org.wso2.carbon.user.core.internal.Activator} -  Cannot start User Manager
>> Core bundle
>>
>> java.lang.Exception: Error in creating the database
>>
>> at
>> org.wso2.carbon.user.core.common.DefaultRealmService.initializeDatabase(DefaultRealmService.java:306)
>>
>> at
>> org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:85)
>>
>> at
>> org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:109)
>>
>> at
>> org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:68)
>>
>> at
>> org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
>>
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
>>
>> Caused by: java.lang.Exception: Error occurred while executing :   CREATE
>> INDEX REG_PATH_IND_BY_PATH_VALUE USING HASH ON REG_PATH(REG_PATH_VALUE,
>> REG_TENANT_ID)
>>
>> at
>> org.wso2.carbon.utils.dbcreator.DatabaseCreator.executeSQL(DatabaseCreator.java:169)
>>
>> at
>> org.wso2.carbon.utils.dbcreator.DatabaseCreator.executeSQLScript(DatabaseCreator.java:325)
>>
>> at
>> org.wso2.carbon.utils.dbcreator.DatabaseCreator.createRegistryDatabase(DatabaseCreator.java:61)
>>
>> at
>> org.wso2.carbon.user.core.common.DefaultRealmService.initializeDatabase(DefaultRealmService.java:296)
>>
>> ... 19 more
>>
>> Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
>> Specified key was too long; max key length is 767 bytes
>>
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>>
>> at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
>>
>> at com.mysql.jdbc.Util.getInstance(Util.java:387)
>>
>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:939)
>>
>> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3878)
>>
>> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3814)
>>
>> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2478)
>>
>> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2625)
>>
>> at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2547)
>>
>> at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2505)
>>
>> at com.mysql.jdbc.StatementImpl.executeInternal(StatementImpl.java:840)
>>
>> at 

Re: [Dev] Setting up MySQL database

2016-04-04 Thread Hemika Kodikara
Hi Eilimatha,

Did you try creating the database with the following command :

create database  character set latin1;


Regards,
Hemika

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

Mobile : +9477762

On Mon, Apr 4, 2016 at 5:18 PM, Elilmatha Sivanesan 
wrote:

> Hi All,
>
> I tried to $subject by following the documentation [1] . I have added the
> master-datasources.xml [2]. After doing the necessary config, I have
> installed mysql  version 5.6.20 and correspondind mysql connector
> (mysql-connector-java-5.1.38-bin.jar ) in repository/components/lib folder.
> I get the following error.
>
> What could be the reason for this.
>
> [2016-04-04 17:05:02,407] ERROR
> {org.wso2.carbon.user.core.internal.Activator} -  Cannot start User Manager
> Core bundle
>
> java.lang.Exception: Error in creating the database
>
> at
> org.wso2.carbon.user.core.common.DefaultRealmService.initializeDatabase(DefaultRealmService.java:306)
>
> at
> org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:85)
>
> at
> org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:109)
>
> at
> org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:68)
>
> at
> org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
>
> at
> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
>
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
>
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
>
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
>
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
>
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
>
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
>
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>
> at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
>
> Caused by: java.lang.Exception: Error occurred while executing :   CREATE
> INDEX REG_PATH_IND_BY_PATH_VALUE USING HASH ON REG_PATH(REG_PATH_VALUE,
> REG_TENANT_ID)
>
> at
> org.wso2.carbon.utils.dbcreator.DatabaseCreator.executeSQL(DatabaseCreator.java:169)
>
> at
> org.wso2.carbon.utils.dbcreator.DatabaseCreator.executeSQLScript(DatabaseCreator.java:325)
>
> at
> org.wso2.carbon.utils.dbcreator.DatabaseCreator.createRegistryDatabase(DatabaseCreator.java:61)
>
> at
> org.wso2.carbon.user.core.common.DefaultRealmService.initializeDatabase(DefaultRealmService.java:296)
>
> ... 19 more
>
> Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
> Specified key was too long; max key length is 767 bytes
>
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>
> at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
>
> at com.mysql.jdbc.Util.getInstance(Util.java:387)
>
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:939)
>
> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3878)
>
> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3814)
>
> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2478)
>
> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2625)
>
> at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2547)
>
> at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2505)
>
> at com.mysql.jdbc.StatementImpl.executeInternal(StatementImpl.java:840)
>
> at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:740)
>
> at
> org.wso2.carbon.utils.dbcreator.DatabaseCreator.executeSQL(DatabaseCreator.java:139)
>
> ... 22 more
>
>
> [1] https://docs.wso2.com/display/ES200/Setting+up+MySQL
> [2]
> --
> *S.Elilmatha*
> Associate  Software Engineer,
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> 

[Dev] Setting up MySQL database

2016-04-04 Thread Elilmatha Sivanesan
Hi All,

I tried to $subject by following the documentation [1] . I have added the
master-datasources.xml [2]. After doing the necessary config, I have
installed mysql  version 5.6.20 and correspondind mysql connector
(mysql-connector-java-5.1.38-bin.jar ) in repository/components/lib folder.
I get the following error.

What could be the reason for this.

[2016-04-04 17:05:02,407] ERROR
{org.wso2.carbon.user.core.internal.Activator} -  Cannot start User Manager
Core bundle

java.lang.Exception: Error in creating the database

at
org.wso2.carbon.user.core.common.DefaultRealmService.initializeDatabase(DefaultRealmService.java:306)

at
org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:85)

at
org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:109)

at
org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:68)

at
org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)

at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)

at java.security.AccessController.doPrivileged(Native Method)

at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)

at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)

at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)

at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)

at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)

at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)

at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)

at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)

at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)

at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)

at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)

at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

Caused by: java.lang.Exception: Error occurred while executing :   CREATE
INDEX REG_PATH_IND_BY_PATH_VALUE USING HASH ON REG_PATH(REG_PATH_VALUE,
REG_TENANT_ID)

at
org.wso2.carbon.utils.dbcreator.DatabaseCreator.executeSQL(DatabaseCreator.java:169)

at
org.wso2.carbon.utils.dbcreator.DatabaseCreator.executeSQLScript(DatabaseCreator.java:325)

at
org.wso2.carbon.utils.dbcreator.DatabaseCreator.createRegistryDatabase(DatabaseCreator.java:61)

at
org.wso2.carbon.user.core.common.DefaultRealmService.initializeDatabase(DefaultRealmService.java:296)

... 19 more

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
Specified key was too long; max key length is 767 bytes

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)

at com.mysql.jdbc.Util.getInstance(Util.java:387)

at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:939)

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3878)

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3814)

at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2478)

at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2625)

at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2547)

at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2505)

at com.mysql.jdbc.StatementImpl.executeInternal(StatementImpl.java:840)

at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:740)

at
org.wso2.carbon.utils.dbcreator.DatabaseCreator.executeSQL(DatabaseCreator.java:139)

... 22 more


[1] https://docs.wso2.com/display/ES200/Setting+up+MySQL
[2]
-- 
*S.Elilmatha*
Associate  Software Engineer,

WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

Mobile 0779842221.
http://org.wso2.securevault/configuration;>


org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader





WSO2_CARBON_DB
The datasource used for registry and user manager

jdbc/WSO2CarbonDB



jdbc:mysql://localhost:3306/WSO2_CARBON_DB_STORE
root
com.mysql.jdbc.Driver
50
6
true
SELECT 1
  

Re: [Dev] C5 Carbon-Security component - AbstractList.add UnsupportedOperationException

2016-04-04 Thread Akalanka Pagoda Arachchi
Hi Omidu,

I tried to deactivate and reactivate the security component from OSGI
console. That's when this exception occurred.

Thanks,
Akalanka.

On Mon, Apr 4, 2016 at 4:18 PM, Omindu Rathnaweera  wrote:

> Hi Akalanka,
>
> Are you trying to register a new CallbackHandlerFactory? If so, this issue
> could occur when registering a new CallbackHandlerFactory for an
> existing LoginModuleType. As you pointed out, this is because we are using
> Arrays.asList() to register handler factories.
>
> This needed to be fixed.
>
> Thanks,
> Omindu.
>
> On Mon, Apr 4, 2016 at 3:29 PM, Akalanka Pagoda Arachchi <
> darsha...@wso2.com> wrote:
>
>> Getting the following issue when trying to start the Carbon-Security
>> component [1] in C5 with C5 MB.
>>
>> osgi>
>> osgi> enable 22
>> Sent request for enabling component
>> org.wso2.carbon.security.internal.CarbonSecurityComponent
>> osgi> [2016-04-04 15:18:10,993] ERROR {org.eclipse.equinox.ds} - [SCR]
>> Exception while activating instance
>> org.wso2.carbon.security.internal.CarbonSecurityComponent@2586741b of
>> component org.wso2.carbon.security.internal.CarbonSecurityComponent
>>  java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:497)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:235)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
>> at
>> org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
>> at
>> org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
>> at
>> org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
>> at
>> org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
>> at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
>> at
>> org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
>> Caused by: java.lang.UnsupportedOperationException
>> at java.util.AbstractList.add(AbstractList.java:148)
>> at java.util.AbstractList.add(AbstractList.java:108)
>> at
>> org.wso2.carbon.security.internal.CarbonSecurityDataHolder.registerCallbackHandlerFactory(CarbonSecurityDataHolder.java:57)
>> at
>> org.wso2.carbon.security.internal.CarbonSecurityComponent.initAuthenticationConfigs(CarbonSecurityComponent.java:175)
>> at
>> org.wso2.carbon.security.internal.CarbonSecurityComponent.registerCarbonSecurityProvider(CarbonSecurityComponent.java:75)
>> ... 15 more
>>
>> According to StackOverFlow [2] this seems to be because trying to add an
>> object into a fixed sized list.
>>
>> Can we verify this?
>>
>>
>> [1] - https://github.com/wso2/carbon-security
>> [2] -
>> http://stackoverflow.com/questions/9320409/unsupportedoperationexception-at-java-util-abstractlist-add
>>
>> Thanks,
>> Akalanka.
>> --
>> *Darshana Akalanka Pagoda Arachchi,*
>> *Software Engineer, WSO2*
>> *+94777118016 <%2B94777118016>*
>>
>
>
>
> --
> Omindu Rathnaweera
> Software Engineer, WSO2 Inc.
> Mobile: +94 771 197 211
>



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


Re: [Dev] [GREG][PC] Reusing the feature of Viewing Dependencies of Artifacts in Store in to PC

2016-04-04 Thread Sagara Gunathunga
On Mon, Apr 4, 2016 at 3:33 PM, Samitha Chathuranga 
wrote:

> Hi Sameera,
>
> We have 3 options upto now.
>1- Directly using this app extension in GREG without any code
> modifications.
>2- Using the code and modify it as we prefer.
>3- Developing the feature from the scratch.
>
> But we hope if the 1st option is feasible, there is no mean in going for
> others.
>
> But the problem is that the current view is not exactly what we want. So
> need some customizations. In our scenario the tree/graph structure is based
> on parent/sub process relationships. (I guess this can be totally done with
> this GREG feature). But we want to show some more differentiation to
> display predecessor/successor processes relationships. (display which are
> the predecessor processes and successor processes of the center process).
> This is why we need the customization. We hope to show the latter
> relationship via,
>   a) different colored connectors between processes and/ or
>   b) different colored icons for such predecessor/successor processes
> of that center process.
>
> Is this possible via directly using this GREG app extension?
>

Why don't you guys work together and refactor current G-Reg feature into a
ES extension ? First go through current G-Reg feature and PC requirements,
then separate out what are the generic and specific parts. We should make
generic parts into a reusable ES component.

Thanks !

>
> Thanks.
>
> On Mon, Apr 4, 2016 at 2:29 PM, Sameera Kannangara 
> wrote:
>
>> Hi Samith,
>>
>> G-Reg dependency view displays only governance artifacts and the registry
>> associations between them as a graph.
>> This feature is developed as an app extension to the ES publisher
>> feature, therefore user session management is done via publisher app.
>>
>> If the processes and sub-processes described in your scenario are
>> represented as governance artifacts you can use G-Reg dependency graph
>> development code easily to create a solution for your scenario.
>> Even if those graph components are not stored as governance artifacts you
>> should be able to reuse dependency graph implementation code with a little
>> development effort.
>>
>> Thank you,
>> SameeraK.
>>
>>
>>
>> On Mon, Apr 4, 2016 at 2:12 PM, Samitha Chathuranga 
>> wrote:
>>
>>> Hi All,
>>>
>>> I am going to add a feature into the PC to view associations between
>>> processes in a graphical illustration. So all the predecessors, successors,
>>> subprocesses of a selected process should be displayed in this view. This
>>> would be something like a graph with certain modifications. And when
>>> clicking on each item, it should be redirected into that process's detailed
>>> viewer page.
>>>
>>> Anyway I have seen that the GREG has such a this feature that view
>>> dependencies of artifacts in store, as follows.
>>>
>>> [image: view dependencies of the selected asset]
>>>
>>> So my question is can we re use this feature into the PC for the task I
>>> have described above. Or will it be good to adapt it to our purpose, rather
>>> than developing from the scratch, using D3 or something else. Will it be
>>> effective and efficient to re use/ adapt the same feature for my task? Your
>>> comments are appreciated.
>>>
>>> Thanks
>>>
>>> --
>>> Samitha Chathuranga
>>> Software Engineer, WSO2 Inc.
>>> lean.enterprise.middleware
>>> Mobile: +94715123761
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Sameera Kannangara*
>> Software Engineer
>> Platform TG; WSO2 Inc. http://wso2.com
>> Contact:
>> phone: +94719541577
>> Lean . Enterprise . Middleware
>>
>
>
>
> --
> Samitha Chathuranga
> Software Engineer, WSO2 Inc.
> lean.enterprise.middleware
> Mobile: +94715123761
>



-- 
Sagara Gunathunga

Architect; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] C5 Carbon-Security component - AbstractList.add UnsupportedOperationException

2016-04-04 Thread Omindu Rathnaweera
Hi Akalanka,

Are you trying to register a new CallbackHandlerFactory? If so, this issue
could occur when registering a new CallbackHandlerFactory for an
existing LoginModuleType. As you pointed out, this is because we are using
Arrays.asList() to register handler factories.

This needed to be fixed.

Thanks,
Omindu.

On Mon, Apr 4, 2016 at 3:29 PM, Akalanka Pagoda Arachchi  wrote:

> Getting the following issue when trying to start the Carbon-Security
> component [1] in C5 with C5 MB.
>
> osgi>
> osgi> enable 22
> Sent request for enabling component
> org.wso2.carbon.security.internal.CarbonSecurityComponent
> osgi> [2016-04-04 15:18:10,993] ERROR {org.eclipse.equinox.ds} - [SCR]
> Exception while activating instance
> org.wso2.carbon.security.internal.CarbonSecurityComponent@2586741b of
> component org.wso2.carbon.security.internal.CarbonSecurityComponent
>  java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:235)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at
> org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
> at
> org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
> at
> org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
> at
> org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
> at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
> at
> org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
> Caused by: java.lang.UnsupportedOperationException
> at java.util.AbstractList.add(AbstractList.java:148)
> at java.util.AbstractList.add(AbstractList.java:108)
> at
> org.wso2.carbon.security.internal.CarbonSecurityDataHolder.registerCallbackHandlerFactory(CarbonSecurityDataHolder.java:57)
> at
> org.wso2.carbon.security.internal.CarbonSecurityComponent.initAuthenticationConfigs(CarbonSecurityComponent.java:175)
> at
> org.wso2.carbon.security.internal.CarbonSecurityComponent.registerCarbonSecurityProvider(CarbonSecurityComponent.java:75)
> ... 15 more
>
> According to StackOverFlow [2] this seems to be because trying to add an
> object into a fixed sized list.
>
> Can we verify this?
>
>
> [1] - https://github.com/wso2/carbon-security
> [2] -
> http://stackoverflow.com/questions/9320409/unsupportedoperationexception-at-java-util-abstractlist-add
>
> Thanks,
> Akalanka.
> --
> *Darshana Akalanka Pagoda Arachchi,*
> *Software Engineer, WSO2*
> *+94777118016 <%2B94777118016>*
>



-- 
Omindu Rathnaweera
Software Engineer, WSO2 Inc.
Mobile: +94 771 197 211
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] C5 Server startup hangs intermittently

2016-04-04 Thread Kishanthan Thangarajah
Can we enable debug logs for "org.wso2.carbon.kernel.
internal.startupresolver" package and check which component is causing the
issue? I can take a look at this and find the root cause, if needed.

On Mon, Apr 4, 2016 at 1:11 PM, Sumedha Rubasinghe  wrote:

> But it's intermittent. Manu also said he has faced this several times.
> AFAIU, fix to be applied @ C5 level?
>
>
>
>
> On Mon, Apr 4, 2016 at 1:08 PM, Sameera Jayasoma  wrote:
>
>> Hi Sumedha,
>>
>> This because of a failure in netty component. It has failed to register
>> transports.
>>
>> Thanks,
>> Sameera.
>>
>> On Mon, Apr 4, 2016 at 1:01 PM, Sumedha Rubasinghe 
>> wrote:
>>
>>> # Normal server bootup
>>> #
>>>
>>> Sumedha-2:wso2uuf-1.0.0-SNAPSHOT sumedha$ bin/carbon.sh
>>> JAVA_HOME environment variable is set to
>>> /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
>>> CARBON_HOME environment variable is set to
>>> /Volumes/data/projects/wso2/uuf/M3/wso2uuf-1.0.0-SNAPSHOT
>>> osgi> [2016-04-04 09:46:13,407]  INFO
>>> {org.wso2.msf4j.internal.MicroservicesServerSC} - All microservices are
>>> available
>>> [2016-04-04 09:46:13,422]  INFO
>>> {org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent}
>>> - All CarbonNettyServerInitializers are available
>>> [2016-04-04 09:46:13,423]  INFO
>>> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Starting
>>> Netty Http Transport Listener
>>> [2016-04-04 09:46:13,428]  INFO
>>> {org.wso2.msf4j.internal.MicroservicesRegistry} - Added microservice:
>>> org.wso2.carbon.uuf.UUFService@7f932479
>>> [2016-04-04 09:46:13,509]  INFO
>>> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Netty
>>> Listener starting on port 8080
>>> [2016-04-04 09:46:13,511]  INFO
>>> {org.wso2.carbon.kernel.internal.CarbonStartupHandler} - WSO2 Carbon
>>> started in 1.303 sec
>>>
>>>
>>>
>>> # Same Server, hanged during bootup
>>> #
>>> Sumedha-2:wso2uuf-1.0.0-SNAPSHOT sumedha$ bin/carbon.sh
>>> JAVA_HOME environment variable is set to
>>> /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
>>> CARBON_HOME environment variable is set to
>>> /Volumes/data/projects/wso2/uuf/M3/wso2uuf-1.0.0-SNAPSHOT
>>> osgi> [2016-04-04 09:45:12,668]  INFO
>>> {org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent}
>>> - All CarbonNettyServerInitializers are available
>>> [2016-04-04 09:45:12,672]  INFO
>>> {org.wso2.msf4j.internal.MicroservicesRegistry} - Added microservice:
>>> org.wso2.carbon.uuf.UUFService@51f5356e
>>> [2016-04-04 09:45:42,625]  WARN
>>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>>> - Waiting on pending capability registration. Capability:
>>> org.wso2.msf4j.Interceptor
>>> [2016-04-04 09:45:42,626]  WARN
>>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>>> - Waiting on pending capability registration. Capability:
>>> org.wso2.msf4j.Microservice
>>> [2016-04-04 09:45:42,626]  WARN
>>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>>> - Waiting on pending capability registration. Capability:
>>> org.wso2.msf4j.internal.MicroservicesServerSC
>>> [2016-04-04 09:45:42,626]  WARN
>>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>>> - Waiting on pending capability registration. Capability:
>>> org.wso2.carbon.kernel.transports.CarbonTransport
>>> [2016-04-04 09:45:42,626]  WARN
>>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>>> - Waiting on pending capability registration. Capability:
>>> org.wso2.carbon.kernel.deployment.DeploymentService
>>> [2016-04-04 09:45:42,626]  WARN
>>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>>> - Waiting on pending capability registration. Capability:
>>> org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent
>>>
>>>
>>>
>>>
>>>
>>> --
>>> /sumedha
>>> m: +94 773017743
>>> b :  bit.ly/sumedha
>>>
>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: same...@wso2.com
>> blog: http://blog.sameera.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> /sumedha
> m: +94 773017743
> b :  bit.ly/sumedha
>



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


Re: [Dev] Defining ​instructions.configure in p2.inf using carbon-feature-plugin

2016-04-04 Thread Hasitha Aravinda
Hi Krishanthan,

I have tested SNAPSHOT and it works as expected.

Thanks,
Hasitha.

On Mon, Apr 4, 2016 at 12:13 PM, Kishanthan Thangarajah  wrote:

> There is a known issue with this : https://wso2.org/jira/browse/CMVNPLG-1
>
> You should be able to use the same approach (defining your own p2.inf)
> with the current SNAPSHOT of carbon-feature plugin. We are working a new
> release targeting this week.
>
> On Mon, Apr 4, 2016 at 11:57 AM, Hasitha Aravinda 
> wrote:
>
>> Hi Kernel team,
>>
>> Is it possible to define instructions.configure sections as [1]
>> using carbon-feature-plugin ? carbon-feature-plugin takes configuration [2]
>> and generates p2.inf content [3].
>>
>> [1] - p2.inf
>>
>> ​​
>> instructions.configure = \
>> ​​
>>
>> org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../../features/org.wso2.carbon.bpmn.server_${feature.version}/conf/activiti.xml,target:${installFolder}/../../../conf/activiti.xml,overwrite:true);\
>>
>> org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../../features/org.wso2.carbon.bpmn.server_${feature.version}/conf/datasources/activiti-datasources.xml,target:${installFolder}/../../../conf/datasources/activiti-datasources.xml,overwrite:true);\
>>
>> [2]
>>
>> <
>> ​​
>> adviceFileContents>
>> 
>> org.wso2.carbon.p2.category.type
>> server
>> 
>> 
>> org.eclipse.equinox.p2.type.group
>> true
>> 
>> 
>>
>> ​[3]​ - p2.inf
>>
>> properties.0.name=org.wso2.carbon.p2.category.type
>> properties.0.value=server
>> properties.1.name=org.eclipse.equinox.p2.type.group
>> properties.1.value=true
>>
>>
>> Thanks,
>> Hasitha.
>>
>>
>> --
>> --
>> Hasitha Aravinda,
>> Senior Software Engineer,
>> WSO2 Inc.
>> Email: hasi...@wso2.com
>> Mobile : +94 718 210 200
>>
>
>
>
> --
> *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 *
>



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


Re: [Dev] [GREG][PC] Reusing the feature of Viewing Dependencies of Artifacts in Store in to PC

2016-04-04 Thread Samitha Chathuranga
Hi Sameera,

We have 3 options upto now.
   1- Directly using this app extension in GREG without any code
modifications.
   2- Using the code and modify it as we prefer.
   3- Developing the feature from the scratch.

But we hope if the 1st option is feasible, there is no mean in going for
others.

But the problem is that the current view is not exactly what we want. So
need some customizations. In our scenario the tree/graph structure is based
on parent/sub process relationships. (I guess this can be totally done with
this GREG feature). But we want to show some more differentiation to
display predecessor/successor processes relationships. (display which are
the predecessor processes and successor processes of the center process).
This is why we need the customization. We hope to show the latter
relationship via,
  a) different colored connectors between processes and/ or
  b) different colored icons for such predecessor/successor processes
of that center process.

Is this possible via directly using this GREG app extension?

Thanks.

On Mon, Apr 4, 2016 at 2:29 PM, Sameera Kannangara 
wrote:

> Hi Samith,
>
> G-Reg dependency view displays only governance artifacts and the registry
> associations between them as a graph.
> This feature is developed as an app extension to the ES publisher feature,
> therefore user session management is done via publisher app.
>
> If the processes and sub-processes described in your scenario are
> represented as governance artifacts you can use G-Reg dependency graph
> development code easily to create a solution for your scenario.
> Even if those graph components are not stored as governance artifacts you
> should be able to reuse dependency graph implementation code with a little
> development effort.
>
> Thank you,
> SameeraK.
>
>
>
> On Mon, Apr 4, 2016 at 2:12 PM, Samitha Chathuranga 
> wrote:
>
>> Hi All,
>>
>> I am going to add a feature into the PC to view associations between
>> processes in a graphical illustration. So all the predecessors, successors,
>> subprocesses of a selected process should be displayed in this view. This
>> would be something like a graph with certain modifications. And when
>> clicking on each item, it should be redirected into that process's detailed
>> viewer page.
>>
>> Anyway I have seen that the GREG has such a this feature that view
>> dependencies of artifacts in store, as follows.
>>
>> [image: view dependencies of the selected asset]
>>
>> So my question is can we re use this feature into the PC for the task I
>> have described above. Or will it be good to adapt it to our purpose, rather
>> than developing from the scratch, using D3 or something else. Will it be
>> effective and efficient to re use/ adapt the same feature for my task? Your
>> comments are appreciated.
>>
>> Thanks
>>
>> --
>> Samitha Chathuranga
>> Software Engineer, WSO2 Inc.
>> lean.enterprise.middleware
>> Mobile: +94715123761
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Sameera Kannangara*
> Software Engineer
> Platform TG; WSO2 Inc. http://wso2.com
> Contact:
> phone: +94719541577
> Lean . Enterprise . Middleware
>



-- 
Samitha Chathuranga
Software Engineer, WSO2 Inc.
lean.enterprise.middleware
Mobile: +94715123761
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] C5 Carbon-Security component - AbstractList.add UnsupportedOperationException

2016-04-04 Thread Akalanka Pagoda Arachchi
Getting the following issue when trying to start the Carbon-Security
component [1] in C5 with C5 MB.

osgi>
osgi> enable 22
Sent request for enabling component
org.wso2.carbon.security.internal.CarbonSecurityComponent
osgi> [2016-04-04 15:18:10,993] ERROR {org.eclipse.equinox.ds} - [SCR]
Exception while activating instance
org.wso2.carbon.security.internal.CarbonSecurityComponent@2586741b of
component org.wso2.carbon.security.internal.CarbonSecurityComponent
 java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:235)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at
org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
at
org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
at
org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
at
org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
at
org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
Caused by: java.lang.UnsupportedOperationException
at java.util.AbstractList.add(AbstractList.java:148)
at java.util.AbstractList.add(AbstractList.java:108)
at
org.wso2.carbon.security.internal.CarbonSecurityDataHolder.registerCallbackHandlerFactory(CarbonSecurityDataHolder.java:57)
at
org.wso2.carbon.security.internal.CarbonSecurityComponent.initAuthenticationConfigs(CarbonSecurityComponent.java:175)
at
org.wso2.carbon.security.internal.CarbonSecurityComponent.registerCarbonSecurityProvider(CarbonSecurityComponent.java:75)
... 15 more

According to StackOverFlow [2] this seems to be because trying to add an
object into a fixed sized list.

Can we verify this?


[1] - https://github.com/wso2/carbon-security
[2] -
http://stackoverflow.com/questions/9320409/unsupportedoperationexception-at-java-util-abstractlist-add

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


Re: [Dev] [GREG][PC] Reusing the feature of Viewing Dependencies of Artifacts in Store in to PC

2016-04-04 Thread Sameera Kannangara
Hi Samith,

G-Reg dependency view displays only governance artifacts and the registry
associations between them as a graph.
This feature is developed as an app extension to the ES publisher feature,
therefore user session management is done via publisher app.

If the processes and sub-processes described in your scenario are
represented as governance artifacts you can use G-Reg dependency graph
development code easily to create a solution for your scenario.
Even if those graph components are not stored as governance artifacts you
should be able to reuse dependency graph implementation code with a little
development effort.

Thank you,
SameeraK.



On Mon, Apr 4, 2016 at 2:12 PM, Samitha Chathuranga 
wrote:

> Hi All,
>
> I am going to add a feature into the PC to view associations between
> processes in a graphical illustration. So all the predecessors, successors,
> subprocesses of a selected process should be displayed in this view. This
> would be something like a graph with certain modifications. And when
> clicking on each item, it should be redirected into that process's detailed
> viewer page.
>
> Anyway I have seen that the GREG has such a this feature that view
> dependencies of artifacts in store, as follows.
>
> [image: view dependencies of the selected asset]
>
> So my question is can we re use this feature into the PC for the task I
> have described above. Or will it be good to adapt it to our purpose, rather
> than developing from the scratch, using D3 or something else. Will it be
> effective and efficient to re use/ adapt the same feature for my task? Your
> comments are appreciated.
>
> Thanks
>
> --
> Samitha Chathuranga
> Software Engineer, WSO2 Inc.
> lean.enterprise.middleware
> Mobile: +94715123761
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Kubernetes (and Openshift) modules

2016-04-04 Thread Ramon Gordillo
Hi, Chamila.

About your point 1, it is not just the same in both situations. If you
restart a container that auto-configures, it is just a restarting, you
don't have to do anything else. But if you have a configured image, you
have to change the configuration files somehow, rebuild the docker image,
push it to a docker registry, and then restart it. It is not the same
straightforward process.

Your second point, is the one chosen by well-known microservices
frameworks, like consul, spring cloud-config, zookeeper, etc, so IMO there
should be no blocking problems either.

The main problem I see is the namespace. If you plan to deploy just one
project (namespace) for all the kubernetes cluster, then it is not a big
deal, but if you plan that each team has its own project with its own
API/ESB/whatever, then there is a huge maintainability issue with the
static approach.

2016-04-04 4:05 GMT+02:00 Chamila De Alwis :

> Hi Ramon,
>
> One issue that can arise if a configuration step is introduced to Docker
> images is the propagation of configuration changes in a running cluster. If
> the configuration is done for a generic server at startup, the subsequent
> changes to the config has to go live following either of two ways.
>
> 1. Kill the existing containers and let the PaaS healing component (ex: RC
> in Kubernetes) to spawn new ones and let new config be applied to those
> containers. This approach is the same for an already configured image.
> 2. Have some kind of an agent on the containers to poll and pull new
> config to the existing containers. This approach is used in Apache Stratos,
> and it tends to introduce another set of problems, when it comes to
> containers.
>
> IMO, although the management of different, already configured, servers is
> bit cumbersome, it can ease the already PaaS recommended approaches to
> various problems at the cluster management layer. For example, Kubernetes
> has a rolling-update, which takes an image name as the new version of the
> server to gradually update the cluster. This encourages an immutable image
> with changes that get written in to versioned images.
>
> For the maintainability issue of the images, can a Puppet based image
> building pipeline be applied? This would have a single Puppet server
> (configuration automation layer) which would trigger (on demand or by a
> hook of some kind) an image build with a certain set of parameters, that
> would result in a (new version or an overwriting version for the) set of
> Docker images in the local Docker registry. Additionally this event can
> trigger another execution where the Kubernetes clusters are updated. This
> way the configuration is preserved and effectively separated from the
> images and image maintenance is simplified.
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Fri, Apr 1, 2016 at 4:58 PM, Imesh Gunaratne  wrote:
>
>> Hi Ramon,
>>
>> On Thu, Mar 31, 2016 at 9:42 PM, Ramon Gordillo > > wrote:
>>
>>> Hi.
>>>
>>> After doing some research and test on the puppet modules and dockerfiles
>>> with WSO2 API Management, I have some thoughts to share on this list.
>>>
>>> Great! It's really nice to hear you thoughts on $subject.
>>
>>>
>>> Some particular information, for example the DNS domain name for the
>>> cluster, the namespace, etc, is a runtime configuration. That is, if we
>>> want, for example, to deploy an instance of api management per project (aka
>>> namespace), with the current approach it will require to build a set of
>>> docker containers per project. Currently, we have 10 teams working in their
>>> own projects, so you can figure out the maintainability of 10 different
>>> sets.
>>>
>>> It's not a must create a container image with all the required
>> configuration. It's just a best practice. If the startup time of the server
>> is not a problem, running an orchestration tool at the startup should be
>> fine. We followed the same pattern few months back with Stratos + K8S.
>>
>> However I personally prefer fully configured container images approach as
>> they are less error prone and may not depend on any dynamic parameters. It
>> would be much similar to a product archive which includes all
>> configurations, the person who deploys the product just need to extract and
>> run. If there are any security concerns on the credentials and keys
>> packaged, we might need to use a tool like secure wallet.
>>
>>
>>> Apart from it, there are some configuration information that can be
>>> obtained from the kubernetes master instead of hardcoding it in the
>>> container. Even the kubernetes master information is injected in the
>>> containers in environment variables (
>>> http://kubernetes.io/docs/user-guide/environment-guide/, see
>>> KUBERNETES_SERVICE_HOST, KUBERNETES_SERVICE_PORT).
>>>
>>> With those considerations, I 

[Dev] Carbon kernel branch 4.2.0 build failure

2016-04-04 Thread Suhan Dharmasuriya

Hi,
We were building carbon kernel 4.2.0 branch[1]. We used a clean repo and we 
built orbit 4.2.0 prior building kernel 4.2.0. We observed the following build 
failure[4].
We also noted that the following repo[2] at people.apache.org is not available.
Please advice how to proceed.
[1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/ [2]
https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/dependencies/transports/1.1.0-wso2v9/modules/jms/pom.xml
apache-incubating Apache Maven 2 Incubating Repository http://people.apache.org/repo/m2-incubating-repository/ 
 never   interval:60   

[3] https://svn.wso2.org/repos/wso2/carbon/orbit/branches/4.2.0/ [4] [ERROR] 
Failed to execute goal on project axis2-transport-jms: Could not
resolve dependencies for project
org.apache.axis2:axis2-transport-jms:bundle:1.1.0-wso2v9: The following
artifacts could not be resolved:
org.apache.qpid:qpid-broker:jar:1.0-incubating-M2.1,
org.apache.qpid:qpid-client:jar:1.0-incubating-M2.1: Failure to find
org.apache.qpid:qpid-broker:jar:1.0-incubating-M2.1 in
http://people.apache.org/repo/m2-incubating-repository/ was cached in the local
repository, resolution will not be reattempted until the update interval of
apache-incubating has elapsed or updates are forced -> [Help 1]
[5] [INFO] 
 [INFO] 
Building Apache Axis2 - Transport - JMS 1.1.0-wso2v9 [INFO] 
 
[WARNING] The POM for org.apache.qpid:qpid-broker:jar:1.0-incubating-M2.1 is
missing, no dependency information available [WARNING] The POM for 
org.apache.qpid:qpid-client:jar:1.0-incubating-M2.1 is
missing, no dependency information available [INFO] 
 [INFO] 
Reactor Summary: [INFO] [INFO] Axiom Parent POM 
.. SUCCESS [2.144s] [INFO] Axiom Test Utilities 
.. SUCCESS [4.509s] [INFO] Axiom Jaxen Test Suite 
 SUCCESS [1.016s] [INFO] Axiom API 
. SUCCESS [1:02.274s] [INFO] Axiom 
Implementation Test Suite ... SUCCESS [0.811s] [INFO] Axiom 
Impl  SUCCESS [3.110s] [INFO] Axiom DOM 
. SUCCESS [2.334s] [INFO] Axiom C14N 
 SUCCESS [0.397s] [INFO] Axiom Test 
Suite .. SUCCESS [0.603s] [INFO] Axiom OSGI 
Test Suite Parent .. SUCCESS [0.016s] [INFO] Axiom OSGI 
Test Suite - Build . SUCCESS [8.110s] [INFO] Axiom OSGI 
Test Suite - Run ... SUCCESS [53.862s] [INFO] Axiom 
Integration Test Suite .. SUCCESS [25.241s] [INFO] Axiom 
. SUCCESS [1.083s] [INFO] 
axiom.wso2  SUCCESS [1.780s] [INFO] 
Apache Axis2 - Kernel . SUCCESS [16.154s] [INFO] 
Apache Axis2 - Transport - HTTP ... SUCCESS [1.469s] [INFO] 
Apache Axis2 - Transport - Local .. SUCCESS [0.468s] [INFO] 
Apache Axis2 - JSON ... SUCCESS [0.430s] [INFO] 
axis2.wso2  SUCCESS [3.789s] [INFO] 
Apache Axis2 - Transport - JMS  FAILURE [0.140s] [INFO] 
WSS4J . SKIPPED [INFO] wss4j.wso2 
 SKIPPED [INFO] httpcore.wso2 
. SKIPPED [INFO] spring.framework.wso2 
. SKIPPED [INFO] WSO2 Carbon - Utilities 
... SKIPPED [INFO] WSO2 Carbon - JSR 107 API 
. SKIPPED [INFO] WSO2 Carbon - User Manager Kernel 
. SKIPPED [INFO] WSO2 Carbon - Registry Kernel 
. SKIPPED [INFO] WSO2 Carbon - Application Deployer 
 SKIPPED [INFO] WSO2 Carbon - Kernel 
.. SKIPPED [INFO] WSO2 Carbon - Standalone Server 
... SKIPPED [INFO] WSO2 Carbon - Coordination Core 
... SKIPPED [INFO] WSO2 Carbon - Services 
 SKIPPED [INFO] WSO2 Carbon - Server Administration 
... SKIPPED [INFO] WSO2 Carbon - carbon tomcat bundle 
 SKIPPED [INFO] WSO2 Carbon - Carbon specific tomcat extensions 
... SKIPPED [INFO] WSO2 Carbon Kernel Kernel Patch 0001 .. SKIPPED 
[INFO] WSO2 Carbon Kernel Kernel Core Patch 0001 . SKIPPED [INFO] 
Distribution-Aggregate  SKIPPED [INFO] WSO2 Carbon 
- Kernel Patch0001 Feature  SKIPPED [INFO] 
 [INFO] 
BUILD FAILURE [INFO] 

[Dev] [GREG][PC] Reusing the feature of Viewing Dependencies of Artifacts in Store in to PC

2016-04-04 Thread Samitha Chathuranga
Hi All,

I am going to add a feature into the PC to view associations between
processes in a graphical illustration. So all the predecessors, successors,
subprocesses of a selected process should be displayed in this view. This
would be something like a graph with certain modifications. And when
clicking on each item, it should be redirected into that process's detailed
viewer page.

Anyway I have seen that the GREG has such a this feature that view
dependencies of artifacts in store, as follows.

[image: view dependencies of the selected asset]

So my question is can we re use this feature into the PC for the task I
have described above. Or will it be good to adapt it to our purpose, rather
than developing from the scratch, using D3 or something else. Will it be
effective and efficient to re use/ adapt the same feature for my task? Your
comments are appreciated.

Thanks

-- 
Samitha Chathuranga
Software Engineer, WSO2 Inc.
lean.enterprise.middleware
Mobile: +94715123761
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC3

2016-04-04 Thread Imesh Gunaratne
[x ] Stable - Go ahead and release

   - Verified API-M, AS, BPS, BRS, CEP, DAS, DSS, ES, ESB, G-Reg, IS and MB
   with the default provisioning method.
   - Verified ESB and AS using puppet provisioning.
   - Verified README.md files on product level, found a minor issue in the
   root README.md and reported an issue [1]. Will fix this in the next minor
   release.

[1] https://github.com/wso2/dockerfiles/issues/31

Thanks

On Fri, Apr 1, 2016 at 3:54 PM, Isuru Haththotuwa  wrote:

> This is the third release candidate (RC3) of WSO2 Dockerfiles 1.0.0
> release.
>
> *Tag to be voted upon:*
> https://github.com/wso2/dockerfiles/tree/v1.0.0-rc3
>
> *Source and distribution packages:*
> https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc3
>
> Please download, test, and vote. The README file under each product
> directory contains instructions on how to try it out locally.
>
> [ ] Broken - Do not release (explain why)
> [ ] Stable - Go ahead and release
>
> This vote will be open for 72 hours or as needed.
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [DEV][ES][PC] Adding a new API as an app extension to Process Center

2016-04-04 Thread Sathya Bandara
Hi Sameera,

I was able to resolve the issue by following your suggestions.

Thanks and regards,
Sathya


*Sathya Bandara*
Software Engineering Intern
Email: sat...@wso2.com
Mobile: +94 715 360 421

On Mon, Apr 4, 2016 at 12:29 PM, Sameera Medagammaddegedara <
samee...@wso2.com> wrote:

> Hi Sathya,
>
> The publisher-apis directory is already present in the
> publisher/extensions/app directory.Thus your new extension may not be
> loading.
>
> Please rename the extension and remove the following line from your app.js:
>
> app.dependencies=['publisher-common'];
>
> I have attached a sample app extension containing a "foo" API.Can you
> please try accessing this API by making a request to /apis/foo .
>
> Thank You,
> Sameera
>
> On Mon, Apr 4, 2016 at 11:59 AM, Sathya Bandara  wrote:
>
>> Hi,
>>
>> I'm in the process of creating an app extension to Process Center -
>> Publisher in order to add a new API. I have created publisher-apis
>> directory structure in extensions/app/ directory path. This is my app.js
>> file where search.jag is the controller to serve the new API.
>>
>> app.dependencies=['publisher-common'];
>>
>> app.server = function(ctx) {
>> return {
>> endpoints: {
>> apis: [{
>> url:'search',
>> path:'search.jag',
>> secured:true
>> }]
>> }
>> }
>> };
>>
>> app.apiHandlers = function(ctx) {
>> return {
>> onApiLoad: function() {
>> if ((ctx.isAnonContext) && (ctx.endpoint.secured)) {
>>
>> //ctx.res.status='401';//sendRedirect(ctx.appContext+'/login');
>> print('{ error:"Authentication error" }'); //TODO: Fix
>> this to return a proper status code
>> return false;
>> }
>> return true;
>> }
>> };
>> };
>>
>> And this is my JS function from where the new endpoint is called.
>>
>> if($("#content").val()){
>>
>> var search_url = caramel.tenantedUrl('/apis/search') ;
>> $.ajax({
>> url: search_url,
>> method: 'POST',
>> data: 'search-query:'+ $("#content").val(),
>> success:function(data){
>> if(data){
>> console.log("success");
>> }
>> },error:function(xhr, status, error){
>> console.log(error);
>> doPagination = false;
>> $('.loading-animation-big').remove();
>> }
>> });
>> }
>>
>> But it gives me the error: "Unable to locate a suitable endpoint for
>> search". Any help would be highly appreciated.
>>
>> Thanks,
>> Sathya
>>
>>
>> *Sathya Bandara*
>> Software Engineering Intern
>> Email: sat...@wso2.com
>> Mobile: +94 715 360 421
>>
>
>
>
> --
> Sameera Medagammaddegedara
> Software Engineer
>
> Contact:
> Email: samee...@wso2.com
> Mobile: + 94 077 255 3005
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC3

2016-04-04 Thread Kalpa Welivitigoda
[x] Stable - Go ahead and release

Verified wso2as-5.3.0 docker image, followed the README and was
successfully able to build the image and access the management console.

On Mon, Apr 4, 2016 at 12:23 PM, Sajith Kariyawasam  wrote:

> [x] Stable - go ahead and release.
>
> Verified,
>  License and READMEs
>  Structure of binaries after a maven build
>  Tested wso2as and wso2bps in default provisioning method
>
> On Mon, Apr 4, 2016 at 11:57 AM, Vishanth Balasubramaniam <
> vishan...@wso2.com> wrote:
>
>> *[x] Stable *- Go ahead and release
>>
>> Verified the following
>>
>>- Distribution and it's structure.
>>- License headers
>>- READMEs
>>- Smoke test on all the products
>>- Tested the versioning and organization name option tags when
>>building
>>- Tested the products using default provisioning method
>>- Tested wso2esb using puppet provisioning method
>>
>> Regards,
>> Vishanth
>>
>> On Mon, Apr 4, 2016 at 9:36 AM, Chamila De Alwis 
>> wrote:
>>
>>> *[x] Stable *- Go ahead and release
>>>
>>> Verified the following
>>>
>>>- Repository structure
>>>- Distribution
>>>- Helper Scripts (build, run, stop) for WSO2 MB and WSO2 AM, and
>>>smoke tests for basic product functionality
>>>- License headers
>>>- README content
>>>
>>>
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Committer and PMC Member - Apache Stratos
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>> On Fri, Apr 1, 2016 at 3:54 PM, Isuru Haththotuwa 
>>> wrote:
>>>
 This is the third release candidate (RC3) of WSO2 Dockerfiles 1.0.0
 release.

 *Tag to be voted upon:*
 https://github.com/wso2/dockerfiles/tree/v1.0.0-rc3

 *Source and distribution packages:*
 https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc3

 Please download, test, and vote. The README file under each product
 directory contains instructions on how to try it out locally.

 [ ] Broken - Do not release (explain why)
 [ ] Stable - Go ahead and release

 This vote will be open for 72 hours or as needed.

 --
 Thanks and Regards,

 Isuru H.
 +94 716 358 048* *



 ___
 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
>>>
>>>
>>
>>
>> --
>> *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
>>
>>
>
>
> --
> Sajith Kariyawasam
> *Committer and PMC member, Apache Stratos, *
> *WSO2 Inc.; http://wso2.com *
> *Mobile: 0772269575*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards,

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


Re: [Dev] [ES][PC] Prevent automatic redirection in form submission in Process Center

2016-04-04 Thread Dilini Mihindra
Hi Sameera,

I resolved the issue using jquery.form.js and ajaxForm method as you
suggested. Using the preventDefault() method, the issue in click event was
also fixed.

Thank you.

Dilini Mihindra Mampitiya Arachchi
Intern - Software Engineer
WSO2 Inc.
Mobile: +94 710 420 550
Email: dili...@wso2.com
     

On Mon, Apr 4, 2016 at 12:57 PM, Sameera Medagammaddegedara <
samee...@wso2.com> wrote:

> Hi Dilini,
>
> I am sorry I made a mistake in the previous mail. The suggested solution
> will only work for the click events, you will still experience the same
> behaviour when pressing enter within the form.
>
> Please use the JQuery Form plugin along with the ajaxForm method [1]
>
> *Reference*
> [1] http://malsup.com/jquery/form/#api
>
> On Mon, Apr 4, 2016 at 12:50 PM, Sameera Medagammaddegedara <
> samee...@wso2.com> wrote:
>
>> Hi Chathura,
>>
>> Some fields supported by this search feature are not included in RXT. For
>>> example, a process can have associated PDF files and the input provided for
>>> the "Document content" field should match content of such PDF files (using
>>> a Lucene based search). Therefore, I think the default advanced search
>>> feature provided by ES cannot be used here.
>>>
>> My apologies I was not aware of this use case.
>>
>> @Dilini
>> In the event callback which is registered for the search button click you
>> will need to invoke the preventDefault function to by pass the default
>> behavior of the submit button [1].
>>
>> *Example*
>>
>> $('#process-search-btn').on('click',function(e){
>>
>>e.preventDefault();
>>
>>   //Rest of the business logic
>>
>> });
>>
>> Since an action attribute has not been specified in the default behaviour
>> of the submit button is causing the request to be made to the create page
>> itself [2].
>>
>> *Reference*
>> [1] https://api.jquery.com/event.preventdefault/
>> [2]
>> http://stackoverflow.com/questions/1818249/form-with-no-action-and-where-enter-does-not-reload-page
>>
>>
>> Thank You,
>> Sameera
>>
>> On Mon, Apr 4, 2016 at 12:22 PM, Chathura Ekanayake 
>> wrote:
>>
>>> Hi Sameera,
>>>
>>> Some fields supported by this search feature are not included in RXT.
>>> For example, a process can have associated PDF files and the input provided
>>> for the "Document content" field should match content of such PDF files
>>> (using a Lucene based search). Therefore, I think the default advanced
>>> search feature provided by ES cannot be used here.
>>>
>>> Regards,
>>> Chathura
>>>
>>>
>>> On Mon, Apr 4, 2016 at 12:12 PM, Dilini Mihindra 
>>> wrote:
>>>
 Hi Sameera,

 I am performing the search from the "Add New Process" page (with the
 url https://localhost:9443/publisher/assets/process/create).

 For convenience, I included the code in a document that is attached
 herewith.

 Thank you.

 Dilini Mihindra Mampitiya Arachchi
 Intern - Software Engineer
 WSO2 Inc.
 Mobile: +94 710 420 550
 Email: dili...@wso2.com

 

 On Mon, Apr 4, 2016 at 11:01 AM, Sameera Medagammaddegedara <
 samee...@wso2.com> wrote:

> Hi Dilini,
>
> *https://localhost:9443/publisher/assets/process/create?process-name=abc==
>> *
>>
>> Is this something default provided by ES?
>>
> No
>
> Instead of searching a process by name only, when a user adds a
>> sub-process for a new process, I am implementing the functionality to do 
>> an
>> advance search using more filters (ex: name, version, owner, description
>> etc.)
>>
> This functionality is already present in the ES.The search query
> supports all attributes present in the RXT definition.
>
> If so, how can I prevent this to show the search results once the user
>> submits the form?
>>
> Can you please provide the following details:
>
>- From which page are you performing the search?
>- Can you please provide a link/source to the custom template
>files and the client side JavaScript used to implement the 
> functionality?
>
>
> Thank You,
> Sameera
>
> On Mon, Apr 4, 2016 at 10:26 AM, Dilini Mihindra 
> wrote:
>
>> Hi all,
>>
>> I am currently working on an advance search functionality in the
>> Process Center. Instead of searching a process by name only, when a user
>> adds a sub-process for a new process, I am implementing the functionality
>> to do an advance search using more filters (ex: name, version, owner,
>> description etc.)
>>
>> However, when I enter a value in one of the search fields and click
>> the search button or press enter, the response is redirected to 

Re: [Dev] C5 - mention the port in use as part of error message

2016-04-04 Thread Isuru Udana
Hi All,

+1. It should be handled at the transport level. We will see the
possibility of handling this.

Created a jira to track this.
https://wso2.org/jira/browse/CTRANSPORT-5

Thanks.

On Mon, Apr 4, 2016 at 1:09 PM, Sameera Jayasoma  wrote:

> +1 This should be handled at the Carbon-transport layer.
>
> On Mon, Apr 4, 2016 at 12:50 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Yes, the error message needs to be more descriptive. Looks like this is
>> coming all the way from NettyListener (carbon-transports) [1] and we do not
>> have a way to catch this error as the bind call is started using a thread
>> in netty and it is the one which logs this error too.
>>
>> @IsuruR and IsuruU, do we have way to fix this from calling netty api
>> level?
>>
>> [1]
>> https://github.com/wso2/carbon-transports/blob/master/http/netty/components/org.wso2.carbon.transport.http.netty/src/main/java/org/wso2/carbon/transport/http/netty/listener/NettyListener.java#L106
>>
>> On Mon, Apr 4, 2016 at 8:40 AM, Sumedha Rubasinghe 
>> wrote:
>>
>>> It's port 8080 that is being used here. But no way to find that through
>>> the exception through from
>>> Netty HTTP Transport listener.
>>>
>>>
>>> 
>>> [2016-04-04 08:37:03,872]  INFO
>>> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Starting
>>> Netty Http Transport Listener
>>> [2016-04-04 08:37:03,876]  INFO
>>> {org.wso2.msf4j.internal.MicroservicesRegistry} - Added microservice:
>>> org.wso2.carbon.uuf.UUFService@5f33122c
>>> Exception in thread "Timer-0" java.net.BindException: Address already in
>>> use
>>> at sun.nio.ch.Net.bind0(Native Method)
>>> at sun.nio.ch.Net.bind(Net.java:433)
>>> at sun.nio.ch.Net.bind(Net.java:425)
>>> at
>>> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
>>> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
>>> at
>>> io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125)
>>> at
>>> io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:485)
>>> at
>>> io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1089)
>>> at
>>> io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:430)
>>> at
>>> io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:415)
>>> at
>>> io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:903)
>>> at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:198)
>>> at
>>> io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:348)
>>> at
>>> io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:356)
>>> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
>>> at
>>> io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110)
>>> at
>>> io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
>>> at java.lang.Thread.run(Thread.java:745)
>>> >>>
>>>
>>>
>>> --
>>> /sumedha
>>>
>>>
>>
>>
>> --
>> *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 *
>>
>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


-- 
*Isuru Udana*
Associate Technical Lead
WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] C5 Server startup hangs intermittently

2016-04-04 Thread Sumedha Rubasinghe
But it's intermittent. Manu also said he has faced this several times.
AFAIU, fix to be applied @ C5 level?



On Mon, Apr 4, 2016 at 1:08 PM, Sameera Jayasoma  wrote:

> Hi Sumedha,
>
> This because of a failure in netty component. It has failed to register
> transports.
>
> Thanks,
> Sameera.
>
> On Mon, Apr 4, 2016 at 1:01 PM, Sumedha Rubasinghe 
> wrote:
>
>> # Normal server bootup
>> #
>>
>> Sumedha-2:wso2uuf-1.0.0-SNAPSHOT sumedha$ bin/carbon.sh
>> JAVA_HOME environment variable is set to
>> /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
>> CARBON_HOME environment variable is set to
>> /Volumes/data/projects/wso2/uuf/M3/wso2uuf-1.0.0-SNAPSHOT
>> osgi> [2016-04-04 09:46:13,407]  INFO
>> {org.wso2.msf4j.internal.MicroservicesServerSC} - All microservices are
>> available
>> [2016-04-04 09:46:13,422]  INFO
>> {org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent}
>> - All CarbonNettyServerInitializers are available
>> [2016-04-04 09:46:13,423]  INFO
>> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Starting
>> Netty Http Transport Listener
>> [2016-04-04 09:46:13,428]  INFO
>> {org.wso2.msf4j.internal.MicroservicesRegistry} - Added microservice:
>> org.wso2.carbon.uuf.UUFService@7f932479
>> [2016-04-04 09:46:13,509]  INFO
>> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Netty
>> Listener starting on port 8080
>> [2016-04-04 09:46:13,511]  INFO
>> {org.wso2.carbon.kernel.internal.CarbonStartupHandler} - WSO2 Carbon
>> started in 1.303 sec
>>
>>
>>
>> # Same Server, hanged during bootup #
>> Sumedha-2:wso2uuf-1.0.0-SNAPSHOT sumedha$ bin/carbon.sh
>> JAVA_HOME environment variable is set to
>> /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
>> CARBON_HOME environment variable is set to
>> /Volumes/data/projects/wso2/uuf/M3/wso2uuf-1.0.0-SNAPSHOT
>> osgi> [2016-04-04 09:45:12,668]  INFO
>> {org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent}
>> - All CarbonNettyServerInitializers are available
>> [2016-04-04 09:45:12,672]  INFO
>> {org.wso2.msf4j.internal.MicroservicesRegistry} - Added microservice:
>> org.wso2.carbon.uuf.UUFService@51f5356e
>> [2016-04-04 09:45:42,625]  WARN
>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>> - Waiting on pending capability registration. Capability:
>> org.wso2.msf4j.Interceptor
>> [2016-04-04 09:45:42,626]  WARN
>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>> - Waiting on pending capability registration. Capability:
>> org.wso2.msf4j.Microservice
>> [2016-04-04 09:45:42,626]  WARN
>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>> - Waiting on pending capability registration. Capability:
>> org.wso2.msf4j.internal.MicroservicesServerSC
>> [2016-04-04 09:45:42,626]  WARN
>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>> - Waiting on pending capability registration. Capability:
>> org.wso2.carbon.kernel.transports.CarbonTransport
>> [2016-04-04 09:45:42,626]  WARN
>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>> - Waiting on pending capability registration. Capability:
>> org.wso2.carbon.kernel.deployment.DeploymentService
>> [2016-04-04 09:45:42,626]  WARN
>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>> - Waiting on pending capability registration. Capability:
>> org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent
>>
>>
>>
>>
>>
>> --
>> /sumedha
>> m: +94 773017743
>> b :  bit.ly/sumedha
>>
>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


-- 
/sumedha
m: +94 773017743
b :  bit.ly/sumedha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] C5 - mention the port in use as part of error message

2016-04-04 Thread Sameera Jayasoma
+1 This should be handled at the Carbon-transport layer.

On Mon, Apr 4, 2016 at 12:50 PM, Kishanthan Thangarajah  wrote:

> Yes, the error message needs to be more descriptive. Looks like this is
> coming all the way from NettyListener (carbon-transports) [1] and we do not
> have a way to catch this error as the bind call is started using a thread
> in netty and it is the one which logs this error too.
>
> @IsuruR and IsuruU, do we have way to fix this from calling netty api
> level?
>
> [1]
> https://github.com/wso2/carbon-transports/blob/master/http/netty/components/org.wso2.carbon.transport.http.netty/src/main/java/org/wso2/carbon/transport/http/netty/listener/NettyListener.java#L106
>
> On Mon, Apr 4, 2016 at 8:40 AM, Sumedha Rubasinghe 
> wrote:
>
>> It's port 8080 that is being used here. But no way to find that through
>> the exception through from
>> Netty HTTP Transport listener.
>>
>>
>> 
>> [2016-04-04 08:37:03,872]  INFO
>> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Starting
>> Netty Http Transport Listener
>> [2016-04-04 08:37:03,876]  INFO
>> {org.wso2.msf4j.internal.MicroservicesRegistry} - Added microservice:
>> org.wso2.carbon.uuf.UUFService@5f33122c
>> Exception in thread "Timer-0" java.net.BindException: Address already in
>> use
>> at sun.nio.ch.Net.bind0(Native Method)
>> at sun.nio.ch.Net.bind(Net.java:433)
>> at sun.nio.ch.Net.bind(Net.java:425)
>> at
>> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
>> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
>> at
>> io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125)
>> at
>> io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:485)
>> at
>> io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1089)
>> at
>> io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:430)
>> at
>> io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:415)
>> at
>> io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:903)
>> at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:198)
>> at
>> io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:348)
>> at
>> io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:356)
>> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
>> at
>> io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110)
>> at
>> io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
>> at java.lang.Thread.run(Thread.java:745)
>> >>>
>>
>>
>> --
>> /sumedha
>>
>>
>
>
> --
> *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 *
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] C5 Server startup hangs intermittently

2016-04-04 Thread Sameera Jayasoma
Hi Sumedha,

This because of a failure in netty component. It has failed to register
transports.

Thanks,
Sameera.

On Mon, Apr 4, 2016 at 1:01 PM, Sumedha Rubasinghe  wrote:

> # Normal server bootup
> #
>
> Sumedha-2:wso2uuf-1.0.0-SNAPSHOT sumedha$ bin/carbon.sh
> JAVA_HOME environment variable is set to
> /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
> CARBON_HOME environment variable is set to
> /Volumes/data/projects/wso2/uuf/M3/wso2uuf-1.0.0-SNAPSHOT
> osgi> [2016-04-04 09:46:13,407]  INFO
> {org.wso2.msf4j.internal.MicroservicesServerSC} - All microservices are
> available
> [2016-04-04 09:46:13,422]  INFO
> {org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent}
> - All CarbonNettyServerInitializers are available
> [2016-04-04 09:46:13,423]  INFO
> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Starting
> Netty Http Transport Listener
> [2016-04-04 09:46:13,428]  INFO
> {org.wso2.msf4j.internal.MicroservicesRegistry} - Added microservice:
> org.wso2.carbon.uuf.UUFService@7f932479
> [2016-04-04 09:46:13,509]  INFO
> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Netty
> Listener starting on port 8080
> [2016-04-04 09:46:13,511]  INFO
> {org.wso2.carbon.kernel.internal.CarbonStartupHandler} - WSO2 Carbon
> started in 1.303 sec
>
>
>
> # Same Server, hanged during bootup #
> Sumedha-2:wso2uuf-1.0.0-SNAPSHOT sumedha$ bin/carbon.sh
> JAVA_HOME environment variable is set to
> /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
> CARBON_HOME environment variable is set to
> /Volumes/data/projects/wso2/uuf/M3/wso2uuf-1.0.0-SNAPSHOT
> osgi> [2016-04-04 09:45:12,668]  INFO
> {org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent}
> - All CarbonNettyServerInitializers are available
> [2016-04-04 09:45:12,672]  INFO
> {org.wso2.msf4j.internal.MicroservicesRegistry} - Added microservice:
> org.wso2.carbon.uuf.UUFService@51f5356e
> [2016-04-04 09:45:42,625]  WARN
> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
> - Waiting on pending capability registration. Capability:
> org.wso2.msf4j.Interceptor
> [2016-04-04 09:45:42,626]  WARN
> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
> - Waiting on pending capability registration. Capability:
> org.wso2.msf4j.Microservice
> [2016-04-04 09:45:42,626]  WARN
> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
> - Waiting on pending capability registration. Capability:
> org.wso2.msf4j.internal.MicroservicesServerSC
> [2016-04-04 09:45:42,626]  WARN
> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
> - Waiting on pending capability registration. Capability:
> org.wso2.carbon.kernel.transports.CarbonTransport
> [2016-04-04 09:45:42,626]  WARN
> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
> - Waiting on pending capability registration. Capability:
> org.wso2.carbon.kernel.deployment.DeploymentService
> [2016-04-04 09:45:42,626]  WARN
> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
> - Waiting on pending capability registration. Capability:
> org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent
>
>
>
>
>
> --
> /sumedha
> m: +94 773017743
> b :  bit.ly/sumedha
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


[Dev] C5 Server startup hangs intermittently

2016-04-04 Thread Sumedha Rubasinghe
# Normal server bootup #

Sumedha-2:wso2uuf-1.0.0-SNAPSHOT sumedha$ bin/carbon.sh
JAVA_HOME environment variable is set to
/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
CARBON_HOME environment variable is set to
/Volumes/data/projects/wso2/uuf/M3/wso2uuf-1.0.0-SNAPSHOT
osgi> [2016-04-04 09:46:13,407]  INFO
{org.wso2.msf4j.internal.MicroservicesServerSC} - All microservices are
available
[2016-04-04 09:46:13,422]  INFO
{org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent}
- All CarbonNettyServerInitializers are available
[2016-04-04 09:46:13,423]  INFO
{org.wso2.carbon.transport.http.netty.listener.NettyListener} - Starting
Netty Http Transport Listener
[2016-04-04 09:46:13,428]  INFO
{org.wso2.msf4j.internal.MicroservicesRegistry} - Added microservice:
org.wso2.carbon.uuf.UUFService@7f932479
[2016-04-04 09:46:13,509]  INFO
{org.wso2.carbon.transport.http.netty.listener.NettyListener} - Netty
Listener starting on port 8080
[2016-04-04 09:46:13,511]  INFO
{org.wso2.carbon.kernel.internal.CarbonStartupHandler} - WSO2 Carbon
started in 1.303 sec



# Same Server, hanged during bootup #
Sumedha-2:wso2uuf-1.0.0-SNAPSHOT sumedha$ bin/carbon.sh
JAVA_HOME environment variable is set to
/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
CARBON_HOME environment variable is set to
/Volumes/data/projects/wso2/uuf/M3/wso2uuf-1.0.0-SNAPSHOT
osgi> [2016-04-04 09:45:12,668]  INFO
{org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent}
- All CarbonNettyServerInitializers are available
[2016-04-04 09:45:12,672]  INFO
{org.wso2.msf4j.internal.MicroservicesRegistry} - Added microservice:
org.wso2.carbon.uuf.UUFService@51f5356e
[2016-04-04 09:45:42,625]  WARN
{org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
- Waiting on pending capability registration. Capability:
org.wso2.msf4j.Interceptor
[2016-04-04 09:45:42,626]  WARN
{org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
- Waiting on pending capability registration. Capability:
org.wso2.msf4j.Microservice
[2016-04-04 09:45:42,626]  WARN
{org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
- Waiting on pending capability registration. Capability:
org.wso2.msf4j.internal.MicroservicesServerSC
[2016-04-04 09:45:42,626]  WARN
{org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
- Waiting on pending capability registration. Capability:
org.wso2.carbon.kernel.transports.CarbonTransport
[2016-04-04 09:45:42,626]  WARN
{org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
- Waiting on pending capability registration. Capability:
org.wso2.carbon.kernel.deployment.DeploymentService
[2016-04-04 09:45:42,626]  WARN
{org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
- Waiting on pending capability registration. Capability:
org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent





-- 
/sumedha
m: +94 773017743
b :  bit.ly/sumedha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES][PC] Prevent automatic redirection in form submission in Process Center

2016-04-04 Thread Sameera Medagammaddegedara
Hi Dilini,

I am sorry I made a mistake in the previous mail. The suggested solution
will only work for the click events, you will still experience the same
behaviour when pressing enter within the form.

Please use the JQuery Form plugin along with the ajaxForm method [1]

*Reference*
[1] http://malsup.com/jquery/form/#api

On Mon, Apr 4, 2016 at 12:50 PM, Sameera Medagammaddegedara <
samee...@wso2.com> wrote:

> Hi Chathura,
>
> Some fields supported by this search feature are not included in RXT. For
>> example, a process can have associated PDF files and the input provided for
>> the "Document content" field should match content of such PDF files (using
>> a Lucene based search). Therefore, I think the default advanced search
>> feature provided by ES cannot be used here.
>>
> My apologies I was not aware of this use case.
>
> @Dilini
> In the event callback which is registered for the search button click you
> will need to invoke the preventDefault function to by pass the default
> behavior of the submit button [1].
>
> *Example*
>
> $('#process-search-btn').on('click',function(e){
>
>e.preventDefault();
>
>   //Rest of the business logic
>
> });
>
> Since an action attribute has not been specified in the default behaviour
> of the submit button is causing the request to be made to the create page
> itself [2].
>
> *Reference*
> [1] https://api.jquery.com/event.preventdefault/
> [2]
> http://stackoverflow.com/questions/1818249/form-with-no-action-and-where-enter-does-not-reload-page
>
>
> Thank You,
> Sameera
>
> On Mon, Apr 4, 2016 at 12:22 PM, Chathura Ekanayake 
> wrote:
>
>> Hi Sameera,
>>
>> Some fields supported by this search feature are not included in RXT. For
>> example, a process can have associated PDF files and the input provided for
>> the "Document content" field should match content of such PDF files (using
>> a Lucene based search). Therefore, I think the default advanced search
>> feature provided by ES cannot be used here.
>>
>> Regards,
>> Chathura
>>
>>
>> On Mon, Apr 4, 2016 at 12:12 PM, Dilini Mihindra 
>> wrote:
>>
>>> Hi Sameera,
>>>
>>> I am performing the search from the "Add New Process" page (with the url
>>> https://localhost:9443/publisher/assets/process/create).
>>>
>>> For convenience, I included the code in a document that is attached
>>> herewith.
>>>
>>> Thank you.
>>>
>>> Dilini Mihindra Mampitiya Arachchi
>>> Intern - Software Engineer
>>> WSO2 Inc.
>>> Mobile: +94 710 420 550
>>> Email: dili...@wso2.com
>>>
>>> 
>>>
>>> On Mon, Apr 4, 2016 at 11:01 AM, Sameera Medagammaddegedara <
>>> samee...@wso2.com> wrote:
>>>
 Hi Dilini,

 *https://localhost:9443/publisher/assets/process/create?process-name=abc==
> *
>
> Is this something default provided by ES?
>
 No

 Instead of searching a process by name only, when a user adds a
> sub-process for a new process, I am implementing the functionality to do 
> an
> advance search using more filters (ex: name, version, owner, description
> etc.)
>
 This functionality is already present in the ES.The search query
 supports all attributes present in the RXT definition.

 If so, how can I prevent this to show the search results once the user
> submits the form?
>
 Can you please provide the following details:

- From which page are you performing the search?
- Can you please provide a link/source to the custom template files
and the client side JavaScript used to implement the functionality?


 Thank You,
 Sameera

 On Mon, Apr 4, 2016 at 10:26 AM, Dilini Mihindra 
 wrote:

> Hi all,
>
> I am currently working on an advance search functionality in the
> Process Center. Instead of searching a process by name only, when a user
> adds a sub-process for a new process, I am implementing the functionality
> to do an advance search using more filters (ex: name, version, owner,
> description etc.)
>
> However, when I enter a value in one of the search fields and click
> the search button or press enter, the response is redirected to the
> following.
>
> *https://localhost:9443/publisher/assets/process/create?process-name=abc==
> *
>
> Is this something default provided by ES? If so, how can I prevent
> this to show the search results once the user submits the form? Any help
> would be highly appreciated.
>
> Thank you.
>
> Dilini Mihindra Mampitiya Arachchi
> Intern - Software Engineer
> WSO2 Inc.
> Mobile: +94 710 420 550
> Email: dili...@wso2.com
>

Re: [Dev] Streaming File transfer with File Inbound/File Connector

2016-04-04 Thread Yashothara Shanmugarajah
Yes Malaka

Best Regards,
Yashothara.S

Software Engineer
WSO2


On Mon, Apr 4, 2016 at 9:14 AM, Malaka Silva  wrote:

> Hi Yashothara,
>
> Can you start working on this please.
>
> On Mon, Mar 14, 2016 at 11:41 AM, Vivekananthan Sivanayagam <
> vivekanant...@wso2.com> wrote:
>
>> Hi Malaka,
>>
>> I have created Jira [1].
>>
>> [1] https://wso2.org/jira/browse/ESBCONNECT-86
>>
>>
>>
>>
>> *Thank youVivekananthan Sivanayagam*
>>
>> *Associate Software Engineer | WSO2*
>>
>> *E:vivekanant...@wso2.com *
>> *M:+94752786138 <%2B94752786138>*
>>
>> On Mon, Mar 14, 2016 at 10:59 AM, Malaka Silva  wrote:
>>
>>> Hi Vivekananthan,
>>>
>>> Can we create a Jira and follow up on this please?
>>>
>>> On Mon, Mar 14, 2016 at 10:40 AM, Kasun Indrasiri 
>>> wrote:
>>>


 On Mon, Mar 14, 2016 at 9:57 AM, Malaka Silva  wrote:

> Hi Kasun,
>
> I don't think we have the same functionality of VFS sender in file
> connector. We have only focused on use cases not covered with VFS 
> transport.
>

 Ok. I think we need to make sure things are consistent across the
 transport and the file connector. Can we please include this as an
 improvement for the next version of the connector.


>
 @Vivekananthan - Please confirm this?
>
> On Sat, Mar 12, 2016 at 4:39 PM, Kasun Indrasiri 
> wrote:
>
>> This is great. Thanks a lot Malaka.
>> Also, if we use the file connector as the outbound channel, will it
>> work in the same way?
>>
>> On Tue, Mar 1, 2016 at 12:36 PM, Malaka Silva 
>> wrote:
>>
>>> Hi All,
>>>
>>> Please ignore my previous comments. This can be done with current
>>> implementation.
>>>
>>> if (builder instanceof DataSourceMessageBuilder &&
>>> "true".equals(streaming)) {
>>> dataSource = ManagedDataSourceFactory.create(new
>>> FileObjectDataSource(file, contentType));
>>> in = null;
>>> } else {
>>> in = new
>>> AutoCloseInputStream(file.getContent().getInputStream());
>>> dataSource = null;
>>> }
>>> ..
>>> OMElement documentElement;
>>> if (in != null) {
>>> documentElement = builder.processDocument(in,
>>> contentType, axis2MsgCtx);
>>> } else {
>>> documentElement =
>>> ((DataSourceMessageBuilder)builder).processDocument(dataSource,
>>> contentType, axis2MsgCtx);
>>> }
>>> ...
>>> if(dataSource != null) {
>>> dataSource.destroy();
>>> }
>>>
>>> This is
>>> ​because ​
>>> message builder able to build messages from
>>> ​​
>>> DataSource objects.
>>> ​
>>> ​
>>> DataSource​
>>>  by definition the data from a DataSource can be read
>>> ​
>>> multiple times,
>>> ​builders that implement ​
>>> this interface
>>> ​can​
>>>  avoid storing the message content in memory.
>>> ​ ​
>>> If a message builder implements this interface and the
>>> ​file/vfs
>>>  is able to provide the message payload as a data source, then the
>>> method defined by this interface should be preferred over the method
>>> defined by Builder.
>>> ​ This
>>>  helps optimizing
>>> ​PT​
>>>  with
>>> ​vfs/file​.
>>> The builder will typically expose the data source directly or
>>> indirectly through the returned OMElement, e.g. by adding to the tree an
>>> OMText or OMDataSource node referencing the data source.
>>>
>>> ​I have checked this with inbound but there is a fix we need to do.
>>> I have done it in [1]. I have done several tests with and without 
>>> streaming
>>> from 5mb to 1gb files.
>>>
>>> Without streaming [2] and [3] will show the memory growth. With
>>> streaming [4]. Without streaming most of the time ESB went OOM​.
>>>
>>> Find the related configs and axis2 changes in [5] and [6].
>>>
>>> [1] https://wso2.org/jira/browse/ESBJAVA-4458
>>>
>>> [2]
>>>
>>> [image: Inline image 1]
>>>
>>> [3]
>>>
>>> [image: Inline image 2]
>>>
>>> [4]
>>>
>>> [image: Inline image 3]
>>>
>>> [5]
>>>
>>> http://ws.apache.org/ns/synapse;
>>>  name="load"  sequence="request"  onError="fault" protocol="file"
>>> suspend="false">
>>>
>>>   1
>>>   true
>>>   >> name="transport.vfs.ContentType">application/file
>>>   >> name="transport.vfs.LockReleaseSameNode">false
>>>   >> name="transport.vfs.AutoLockRelease">false
>>>   >> name="transport.vfs.ActionAfterFailure">DELETE

Re: [Dev] C5 - mention the port in use as part of error message

2016-04-04 Thread Kishanthan Thangarajah
Yes, the error message needs to be more descriptive. Looks like this is
coming all the way from NettyListener (carbon-transports) [1] and we do not
have a way to catch this error as the bind call is started using a thread
in netty and it is the one which logs this error too.

@IsuruR and IsuruU, do we have way to fix this from calling netty api level?

[1]
https://github.com/wso2/carbon-transports/blob/master/http/netty/components/org.wso2.carbon.transport.http.netty/src/main/java/org/wso2/carbon/transport/http/netty/listener/NettyListener.java#L106

On Mon, Apr 4, 2016 at 8:40 AM, Sumedha Rubasinghe  wrote:

> It's port 8080 that is being used here. But no way to find that through
> the exception through from
> Netty HTTP Transport listener.
>
>
> 
> [2016-04-04 08:37:03,872]  INFO
> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Starting
> Netty Http Transport Listener
> [2016-04-04 08:37:03,876]  INFO
> {org.wso2.msf4j.internal.MicroservicesRegistry} - Added microservice:
> org.wso2.carbon.uuf.UUFService@5f33122c
> Exception in thread "Timer-0" java.net.BindException: Address already in
> use
> at sun.nio.ch.Net.bind0(Native Method)
> at sun.nio.ch.Net.bind(Net.java:433)
> at sun.nio.ch.Net.bind(Net.java:425)
> at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
> at
> io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125)
> at
> io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:485)
> at
> io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1089)
> at
> io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:430)
> at
> io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:415)
> at
> io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:903)
> at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:198)
> at
> io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:348)
> at
> io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:356)
> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
> at
> io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110)
> at
> io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
> at java.lang.Thread.run(Thread.java:745)
> >>>
>
>
> --
> /sumedha
>
>


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


Re: [Dev] [ES][PC] Prevent automatic redirection in form submission in Process Center

2016-04-04 Thread Sameera Medagammaddegedara
Hi Chathura,

Some fields supported by this search feature are not included in RXT. For
> example, a process can have associated PDF files and the input provided for
> the "Document content" field should match content of such PDF files (using
> a Lucene based search). Therefore, I think the default advanced search
> feature provided by ES cannot be used here.
>
My apologies I was not aware of this use case.

@Dilini
In the event callback which is registered for the search button click you
will need to invoke the preventDefault function to by pass the default
behavior of the submit button [1].

*Example*

$('#process-search-btn').on('click',function(e){

   e.preventDefault();

  //Rest of the business logic

});

Since an action attribute has not been specified in the default behaviour
of the submit button is causing the request to be made to the create page
itself [2].

*Reference*
[1] https://api.jquery.com/event.preventdefault/
[2]
http://stackoverflow.com/questions/1818249/form-with-no-action-and-where-enter-does-not-reload-page


Thank You,
Sameera

On Mon, Apr 4, 2016 at 12:22 PM, Chathura Ekanayake 
wrote:

> Hi Sameera,
>
> Some fields supported by this search feature are not included in RXT. For
> example, a process can have associated PDF files and the input provided for
> the "Document content" field should match content of such PDF files (using
> a Lucene based search). Therefore, I think the default advanced search
> feature provided by ES cannot be used here.
>
> Regards,
> Chathura
>
>
> On Mon, Apr 4, 2016 at 12:12 PM, Dilini Mihindra  wrote:
>
>> Hi Sameera,
>>
>> I am performing the search from the "Add New Process" page (with the url
>> https://localhost:9443/publisher/assets/process/create).
>>
>> For convenience, I included the code in a document that is attached
>> herewith.
>>
>> Thank you.
>>
>> Dilini Mihindra Mampitiya Arachchi
>> Intern - Software Engineer
>> WSO2 Inc.
>> Mobile: +94 710 420 550
>> Email: dili...@wso2.com
>>
>> 
>>
>> On Mon, Apr 4, 2016 at 11:01 AM, Sameera Medagammaddegedara <
>> samee...@wso2.com> wrote:
>>
>>> Hi Dilini,
>>>
>>> *https://localhost:9443/publisher/assets/process/create?process-name=abc==
 *

 Is this something default provided by ES?

>>> No
>>>
>>> Instead of searching a process by name only, when a user adds a
 sub-process for a new process, I am implementing the functionality to do an
 advance search using more filters (ex: name, version, owner, description
 etc.)

>>> This functionality is already present in the ES.The search query
>>> supports all attributes present in the RXT definition.
>>>
>>> If so, how can I prevent this to show the search results once the user
 submits the form?

>>> Can you please provide the following details:
>>>
>>>- From which page are you performing the search?
>>>- Can you please provide a link/source to the custom template files
>>>and the client side JavaScript used to implement the functionality?
>>>
>>>
>>> Thank You,
>>> Sameera
>>>
>>> On Mon, Apr 4, 2016 at 10:26 AM, Dilini Mihindra 
>>> wrote:
>>>
 Hi all,

 I am currently working on an advance search functionality in the
 Process Center. Instead of searching a process by name only, when a user
 adds a sub-process for a new process, I am implementing the functionality
 to do an advance search using more filters (ex: name, version, owner,
 description etc.)

 However, when I enter a value in one of the search fields and click the
 search button or press enter, the response is redirected to the following.

 *https://localhost:9443/publisher/assets/process/create?process-name=abc==
 *

 Is this something default provided by ES? If so, how can I prevent this
 to show the search results once the user submits the form? Any help would
 be highly appreciated.

 Thank you.

 Dilini Mihindra Mampitiya Arachchi
 Intern - Software Engineer
 WSO2 Inc.
 Mobile: +94 710 420 550
 Email: dili...@wso2.com

 

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


-- 
Sameera Medagammaddegedara
Software Engineer

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


Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC3

2016-04-04 Thread Sajith Kariyawasam
[x] Stable - go ahead and release.

Verified,
 License and READMEs
 Structure of binaries after a maven build
 Tested wso2as and wso2bps in default provisioning method

On Mon, Apr 4, 2016 at 11:57 AM, Vishanth Balasubramaniam <
vishan...@wso2.com> wrote:

> *[x] Stable *- Go ahead and release
>
> Verified the following
>
>- Distribution and it's structure.
>- License headers
>- READMEs
>- Smoke test on all the products
>- Tested the versioning and organization name option tags when
>building
>- Tested the products using default provisioning method
>- Tested wso2esb using puppet provisioning method
>
> Regards,
> Vishanth
>
> On Mon, Apr 4, 2016 at 9:36 AM, Chamila De Alwis 
> wrote:
>
>> *[x] Stable *- Go ahead and release
>>
>> Verified the following
>>
>>- Repository structure
>>- Distribution
>>- Helper Scripts (build, run, stop) for WSO2 MB and WSO2 AM, and
>>smoke tests for basic product functionality
>>- License headers
>>- README content
>>
>>
>>
>> Regards,
>> Chamila de Alwis
>> Committer and PMC Member - Apache Stratos
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> On Fri, Apr 1, 2016 at 3:54 PM, Isuru Haththotuwa 
>> wrote:
>>
>>> This is the third release candidate (RC3) of WSO2 Dockerfiles 1.0.0
>>> release.
>>>
>>> *Tag to be voted upon:*
>>> https://github.com/wso2/dockerfiles/tree/v1.0.0-rc3
>>>
>>> *Source and distribution packages:*
>>> https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc3
>>>
>>> Please download, test, and vote. The README file under each product
>>> directory contains instructions on how to try it out locally.
>>>
>>> [ ] Broken - Do not release (explain why)
>>> [ ] Stable - Go ahead and release
>>>
>>> This vote will be open for 72 hours or as needed.
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048* *
>>>
>>>
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> *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
>
>


-- 
Sajith Kariyawasam
*Committer and PMC member, Apache Stratos, *
*WSO2 Inc.; http://wso2.com *
*Mobile: 0772269575*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES][PC] Prevent automatic redirection in form submission in Process Center

2016-04-04 Thread Chathura Ekanayake
Hi Sameera,

Some fields supported by this search feature are not included in RXT. For
example, a process can have associated PDF files and the input provided for
the "Document content" field should match content of such PDF files (using
a Lucene based search). Therefore, I think the default advanced search
feature provided by ES cannot be used here.

Regards,
Chathura


On Mon, Apr 4, 2016 at 12:12 PM, Dilini Mihindra  wrote:

> Hi Sameera,
>
> I am performing the search from the "Add New Process" page (with the url
> https://localhost:9443/publisher/assets/process/create).
>
> For convenience, I included the code in a document that is attached
> herewith.
>
> Thank you.
>
> Dilini Mihindra Mampitiya Arachchi
> Intern - Software Engineer
> WSO2 Inc.
> Mobile: +94 710 420 550
> Email: dili...@wso2.com
>
> 
>
> On Mon, Apr 4, 2016 at 11:01 AM, Sameera Medagammaddegedara <
> samee...@wso2.com> wrote:
>
>> Hi Dilini,
>>
>> *https://localhost:9443/publisher/assets/process/create?process-name=abc==
>>> *
>>>
>>> Is this something default provided by ES?
>>>
>> No
>>
>> Instead of searching a process by name only, when a user adds a
>>> sub-process for a new process, I am implementing the functionality to do an
>>> advance search using more filters (ex: name, version, owner, description
>>> etc.)
>>>
>> This functionality is already present in the ES.The search query supports
>> all attributes present in the RXT definition.
>>
>> If so, how can I prevent this to show the search results once the user
>>> submits the form?
>>>
>> Can you please provide the following details:
>>
>>- From which page are you performing the search?
>>- Can you please provide a link/source to the custom template files
>>and the client side JavaScript used to implement the functionality?
>>
>>
>> Thank You,
>> Sameera
>>
>> On Mon, Apr 4, 2016 at 10:26 AM, Dilini Mihindra 
>> wrote:
>>
>>> Hi all,
>>>
>>> I am currently working on an advance search functionality in the Process
>>> Center. Instead of searching a process by name only, when a user adds a
>>> sub-process for a new process, I am implementing the functionality to do an
>>> advance search using more filters (ex: name, version, owner, description
>>> etc.)
>>>
>>> However, when I enter a value in one of the search fields and click the
>>> search button or press enter, the response is redirected to the following.
>>>
>>> *https://localhost:9443/publisher/assets/process/create?process-name=abc==
>>> *
>>>
>>> Is this something default provided by ES? If so, how can I prevent this
>>> to show the search results once the user submits the form? Any help would
>>> be highly appreciated.
>>>
>>> Thank you.
>>>
>>> Dilini Mihindra Mampitiya Arachchi
>>> Intern - Software Engineer
>>> WSO2 Inc.
>>> Mobile: +94 710 420 550
>>> Email: dili...@wso2.com
>>>
>>> 
>>>
>>
>>
>>
>> --
>> Sameera Medagammaddegedara
>> Software Engineer
>>
>> Contact:
>> Email: samee...@wso2.com
>> Mobile: + 94 077 255 3005
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Defining ​instructions.configure in p2.inf using carbon-feature-plugin

2016-04-04 Thread Kishanthan Thangarajah
There is a known issue with this : https://wso2.org/jira/browse/CMVNPLG-1

You should be able to use the same approach (defining your own p2.inf) with
the current SNAPSHOT of carbon-feature plugin. We are working a new release
targeting this week.

On Mon, Apr 4, 2016 at 11:57 AM, Hasitha Aravinda  wrote:

> Hi Kernel team,
>
> Is it possible to define instructions.configure sections as [1]
> using carbon-feature-plugin ? carbon-feature-plugin takes configuration [2]
> and generates p2.inf content [3].
>
> [1] - p2.inf
>
> ​​
> instructions.configure = \
> ​​
>
> org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../../features/org.wso2.carbon.bpmn.server_${feature.version}/conf/activiti.xml,target:${installFolder}/../../../conf/activiti.xml,overwrite:true);\
>
> org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../../features/org.wso2.carbon.bpmn.server_${feature.version}/conf/datasources/activiti-datasources.xml,target:${installFolder}/../../../conf/datasources/activiti-datasources.xml,overwrite:true);\
>
> [2]
>
> <
> ​​
> adviceFileContents>
> 
> org.wso2.carbon.p2.category.type
> server
> 
> 
> org.eclipse.equinox.p2.type.group
> true
> 
> 
>
> ​[3]​ - p2.inf
>
> properties.0.name=org.wso2.carbon.p2.category.type
> properties.0.value=server
> properties.1.name=org.eclipse.equinox.p2.type.group
> properties.1.value=true
>
>
> Thanks,
> Hasitha.
>
>
> --
> --
> Hasitha Aravinda,
> Senior Software Engineer,
> WSO2 Inc.
> Email: hasi...@wso2.com
> Mobile : +94 718 210 200
>



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


[Dev] [DEV][ES][PC] Adding a new API as an app extension to Process Center

2016-04-04 Thread Sathya Bandara
Hi,

I'm in the process of creating an app extension to Process Center -
Publisher in order to add a new API. I have created publisher-apis
directory structure in extensions/app/ directory path. This is my app.js
file where search.jag is the controller to serve the new API.

app.dependencies=['publisher-common'];

app.server = function(ctx) {
return {
endpoints: {
apis: [{
url:'search',
path:'search.jag',
secured:true
}]
}
}
};

app.apiHandlers = function(ctx) {
return {
onApiLoad: function() {
if ((ctx.isAnonContext) && (ctx.endpoint.secured)) {

//ctx.res.status='401';//sendRedirect(ctx.appContext+'/login');
print('{ error:"Authentication error" }'); //TODO: Fix this
to return a proper status code
return false;
}
return true;
}
};
};

And this is my JS function from where the new endpoint is called.

if($("#content").val()){

var search_url = caramel.tenantedUrl('/apis/search') ;
$.ajax({
url: search_url,
method: 'POST',
data: 'search-query:'+ $("#content").val(),
success:function(data){
if(data){
console.log("success");
}
},error:function(xhr, status, error){
console.log(error);
doPagination = false;
$('.loading-animation-big').remove();
}
});
}

But it gives me the error: "Unable to locate a suitable endpoint for
search". Any help would be highly appreciated.

Thanks,
Sathya


*Sathya Bandara*
Software Engineering Intern
Email: sat...@wso2.com
Mobile: +94 715 360 421
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Defining ​instructions.configure in p2.inf using carbon-feature-plugin

2016-04-04 Thread Hasitha Aravinda
Hi Kernel team,

Is it possible to define instructions.configure sections as [1]
using carbon-feature-plugin ? carbon-feature-plugin takes configuration [2]
and generates p2.inf content [3].

[1] - p2.inf

​​
instructions.configure = \
​​
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../../features/org.wso2.carbon.bpmn.server_${feature.version}/conf/activiti.xml,target:${installFolder}/../../../conf/activiti.xml,overwrite:true);\
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../../features/org.wso2.carbon.bpmn.server_${feature.version}/conf/datasources/activiti-datasources.xml,target:${installFolder}/../../../conf/datasources/activiti-datasources.xml,overwrite:true);\

[2]

<
​​
adviceFileContents>

org.wso2.carbon.p2.category.type
server


org.eclipse.equinox.p2.type.group
true



​[3]​ - p2.inf

properties.0.name=org.wso2.carbon.p2.category.type
properties.0.value=server
properties.1.name=org.eclipse.equinox.p2.type.group
properties.1.value=true


Thanks,
Hasitha.


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


Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC3

2016-04-04 Thread Vishanth Balasubramaniam
*[x] Stable *- Go ahead and release

Verified the following

   - Distribution and it's structure.
   - License headers
   - READMEs
   - Smoke test on all the products
   - Tested the versioning and organization name option tags when building
   - Tested the products using default provisioning method
   - Tested wso2esb using puppet provisioning method

Regards,
Vishanth

On Mon, Apr 4, 2016 at 9:36 AM, Chamila De Alwis  wrote:

> *[x] Stable *- Go ahead and release
>
> Verified the following
>
>- Repository structure
>- Distribution
>- Helper Scripts (build, run, stop) for WSO2 MB and WSO2 AM, and smoke
>tests for basic product functionality
>- License headers
>- README content
>
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Fri, Apr 1, 2016 at 3:54 PM, Isuru Haththotuwa  wrote:
>
>> This is the third release candidate (RC3) of WSO2 Dockerfiles 1.0.0
>> release.
>>
>> *Tag to be voted upon:*
>> https://github.com/wso2/dockerfiles/tree/v1.0.0-rc3
>>
>> *Source and distribution packages:*
>> https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc3
>>
>> Please download, test, and vote. The README file under each product
>> directory contains instructions on how to try it out locally.
>>
>> [ ] Broken - Do not release (explain why)
>> [ ] Stable - Go ahead and release
>>
>> This vote will be open for 72 hours or as needed.
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* *
>>
>>
>>
>> ___
>> 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
>
>


-- 
*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] WSO2 Carbon Kernel 5.1.0-M3 Released

2016-04-04 Thread Niranjan Karunanandham
*WSO2 Carbon Kernel 5.1.0-M3 Released*

The Carbon team is pleased to announce the release of Carbon Kernel 5.1.0-M3.
It is now available to download from here
.

*Improvements and Bug fixes*
https://wso2.org/jira/issues/?filter=13010

*Known Issues*
https://wso2.org/jira/issues/?filter=13009

*How to Contribute*

   - WSO2 Carbon Kernel code is hosted in github.
   - The Git repository is https://github.com/wso2/carbon-kernel/
   - Carbon Kernel 5.1.0-M3 release tag is
   https://github.com/wso2/carbon-kernel/releases/tag/v5.1.0-m3
   - Please report issues at Carbon Jira,
   https://wso2.org/jira/browse/CARBON


*Contact Us *

​WSO2 Carbon developers​ can be contacted via following mailing lists:

   - WSO2 Developers List: dev@wso2.org
   - WSO2 Architecture List: architect...@wso2.org

​You can download the released distribution from the following location.
http://wso2.com/products/carbon/

​Thank you for your interest in WSO2 Carbon Kernel​.

Best Regards
Carbon Team​

-- 

*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] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC3

2016-04-04 Thread Thanuja Uruththirakodeeswaran
[x] - Go ahead and release.

Verified the following:

   1. License headers
   2. Distribution
   3. Build the following products docker images using both default and
   puppet provisioning methods and tested the basic functionalities using
   helper scripts:
  1. ESB
  2. GREG
  3. MB
  4. BPS
  5. CEP
  6. ES

Thanks.

On Mon, Apr 4, 2016 at 9:36 AM, Chamila De Alwis  wrote:

> *[x] Stable *- Go ahead and release
>
> Verified the following
>
>- Repository structure
>- Distribution
>- Helper Scripts (build, run, stop) for WSO2 MB and WSO2 AM, and smoke
>tests for basic product functionality
>- License headers
>- README content
>
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Fri, Apr 1, 2016 at 3:54 PM, Isuru Haththotuwa  wrote:
>
>> This is the third release candidate (RC3) of WSO2 Dockerfiles 1.0.0
>> release.
>>
>> *Tag to be voted upon:*
>> https://github.com/wso2/dockerfiles/tree/v1.0.0-rc3
>>
>> *Source and distribution packages:*
>> https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc3
>>
>> Please download, test, and vote. The README file under each product
>> directory contains instructions on how to try it out locally.
>>
>> [ ] Broken - Do not release (explain why)
>> [ ] Stable - Go ahead and release
>>
>> This vote will be open for 72 hours or as needed.
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* *
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanuja Uruththirakodeeswaran
Software Engineer
WSO2 Inc.;http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] [DAS] Arbitrary data is not visible in data explorer

2016-04-04 Thread Kalpa Welivitigoda
Thanks Gihan.

On Mon, Apr 4, 2016 at 11:37 AM, Gihan Anuruddha  wrote:

> Hi Kalpa,
>
> Yes. There is a bug in DAS 3.0.1 pack where arbitrary data not persisting.
> This bug already fixed after the release. So fixed will be available in the
> next DAS release.
>
> Regards,
> Gihan
>
> On Sun, Apr 3, 2016 at 9:46 AM, Kalpa Welivitigoda 
> wrote:
>
>> Hi all,
>>
>> I have added an arbitrary values Map  when constructing
>> the Event to be published to DAS 3.0.1. But when I publish and search the
>> table in Data Explorer in DAS, I don't see the arbitrary data in "Arbitrary
>> Fields / Extended fields" section of any record.
>>
>> Would this be related to [1] or am I missing something here?
>>
>> [1] https://wso2.org/jira/browse/DAS-255
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: kal...@wso2.com
>> Mobile: +94776509215
>>
>
>
>
> --
> W.G. Gihan Anuruddha
> Senior Software Engineer | WSO2, Inc.
> M: +94772272595
>



-- 
Best Regards,

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


Re: [Dev] [DAS] Arbitrary data is not visible in data explorer

2016-04-04 Thread Gihan Anuruddha
Hi Kalpa,

Yes. There is a bug in DAS 3.0.1 pack where arbitrary data not persisting.
This bug already fixed after the release. So fixed will be available in the
next DAS release.

Regards,
Gihan

On Sun, Apr 3, 2016 at 9:46 AM, Kalpa Welivitigoda  wrote:

> Hi all,
>
> I have added an arbitrary values Map  when constructing
> the Event to be published to DAS 3.0.1. But when I publish and search the
> table in Data Explorer in DAS, I don't see the arbitrary data in "Arbitrary
> Fields / Extended fields" section of any record.
>
> Would this be related to [1] or am I missing something here?
>
> [1] https://wso2.org/jira/browse/DAS-255
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>



-- 
W.G. Gihan Anuruddha
Senior Software Engineer | WSO2, Inc.
M: +94772272595
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev