Re: [Dev] Tenant element to be included in the carbon.xml

2014-12-15 Thread Afkham Azeez
Modified config to use LDAP filter syntax





30


*,!foo.com,!bar.com




On Tue, Dec 16, 2014 at 12:27 PM, Afkham Azeez  wrote:
>
> 
> 
> 
> 
> 
> 30
> 
> 
> 
> *
> 
> 
> wso2.com
> ibm.com
> 
> 
> 
> 
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


Re: [Dev] [AF] [Urgent] Update copy jars for the undeployer changes

2014-12-15 Thread Mahesh Chinthaka
Hi all,
I found out that above repository.mgt.service bundle stops at INSTALLED
status without going to ACTIVE status because of following reason.

gogo: BundleException: The bundle
"org.wso2.carbon.appfactory.repository.mgt.service_2.1.0 [195]" could not
be resolved. Reason: Missing Constraint: Import-Package: com.gitblit;
version="[1.4.0,2.0.0)"

And in repository.mg pom file we have com.giltblit as a dependency and we
have dynamic import.

As a solution what I did was adding following llines to pom file.

 com.gitblit.*;resolution:=optional,

Then the bundle got activated successfully. Have I done the correct thing
or does it have some harmful effects ???

Or is there any other way to overcome this ??

On Tue, Dec 16, 2014 at 11:28 AM, Harsha Thirimanna 
wrote:
>
> To keep these appfactory jars as separate we can create new run-time for
> that and refer it from jenkins war. WDYT ?
>
>
> *Harsha Thirimanna*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770  ,
> +94 *
> *774617784twitter: **http://twitter.com/
> *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Tue, Dec 16, 2014 at 11:16 AM, Harsha Thirimanna 
> wrote:
>>
>> Hi Mahesh,
>>
>> Why you moved those bundle in to the dropings ? Because we are just
>> referring those bundle as jars only not as OSGi bundle. That is why we have
>> put those in to the jenkins runtime.
>>
>>
>> *Harsha Thirimanna*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>> * *
>> *email: **hars...@wso2.com* * cell: +94 71 5186770  ,
>> +94 *
>> *774617784twitter: **http://twitter.com/
>> *
>> *harshathirimannlinked-in: **http:
>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Tue, Dec 16, 2014 at 11:05 AM, Mahesh Chinthaka 
>> wrote:
>>
>>> Hi all,
>>> When I move jars from *lib/runtime/jenkins* to 
>>> *repository/components/dropins
>>> *I get following warn log in buildserver and it doesnt proceed beyond
>>> this point.
>>>
>>> [2014-12-16 11:01:33,036]  WARN
>>> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
>>> delayed due to the following unsatisfied items:
>>>
>>> [2014-12-16 11:01:33,036]  WARN
>>> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
>>> OSGiAxis2Service: org.wso2.carbon.appfactory.repository.mgt.service-2.1.0
>>>
>>>
>>> Any thoughts ???
>>>
>>> On Tue, Dec 16, 2014 at 10:20 AM, Manjula Rathnayake 
>>> wrote:

 Hi all,

 +1 for avoiding copying jars into jenkins.war.
 Please clean duplicated jars in jenkins runtime and dropins.

 thank you.

 On Mon, Dec 15, 2014 at 10:38 PM, Danushka Fernando >>> > wrote:
>
> You dont have to patch jenkins war. Just copy the jars to build server
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Mon, Dec 15, 2014 at 10:37 PM, Danushka Fernando <
> danush...@wso2.com> wrote:
>>
>> @Rajeevan: Please apply this for the setup in 16.2. Its updated by
>> the merged code. Do these manually, restart the buildserver and test
>>
>> Thanks & Regards
>> Danushka Fernando
>> Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Mon, Dec 15, 2014 at 8:37 PM, Mahesh Chinthaka 
>> wrote:
>>>
>>> Hi Danushka,
>>>
>>> This is how I used to patch while testing,
>>>
>>> 1). patch jenkins.war
>>>
>>> 2). copy following jars to location : buildserver/lib/runtime/jenkins
>>>
>>> org.wso2.carbon.appfactory.common-2.1.0.jar
>>>
>>> org.wso2.carbon.appfactory.core-2.1.0.jar
>>>
>>> org.wso2.carbon.appfactory.deployers-2.1.0.jar
>>>
>>> org.wso2.carbon.appfactory.repository.mgt.service-2.1.0.jar
>>>
>>>
>>> 3). copy following jars to location :
>>> buildserver/repository/components/dropins
>>>
>>> org.wso2.carbon.appfactory.common-2.1.0.jar
>>>
>>> org.wso2.carbon.appfactory.core-2.1.0.jar
>>>
>>>
>>> For the moment you can do above, and I'm working on avoiding copying
>>> jars to runtime/jenkins
>>>
>>>
>>> Thanks
>>>
>>> On Mon, Dec 15, 2014 at 8:30 PM, Danushka Fernando <
>>> danush...@wso2.com> wrote:

 Hi Mahesh
 Please consider doing $subject. Current setup is failing due to
 this.

 Thanks & Regards
 Danushka Fernando
 Software Engineer

[Dev] Tenant element to be included in the carbon.xml

2014-12-15 Thread Afkham Azeez





30



*


wso2.com
ibm.com






-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


Re: [Dev] [DEV][Synapse] Sending a JSON response to an API invocation

2014-12-15 Thread Uvindra Dias Jayasinha
Thanks Isuru, here is the final syanpse configuration with this change,

http://ws.apache.org/ns/synapse"; name="HealthCheck_API"
context="/check_health">







{ "status": "okay" }


 





This works with the default axis2.xml message formatter configurations
available in API Manager 1.4, so no changes are required at axis2.xml level.


On 16 December 2014 at 12:17, Isuru Udana  wrote:
>
> Hi Uvindra,
>
> It is not safe to change the message formatter in API manager 1.4 as it
> uses binary relay and the changes will affect globally.
>
> Instead of doing changes to axis2.xml message builder/formatters we can
> build the message using the builder mediator at the API.
>
>  formatterClass="org.apache.axis2.json.JSONMessageFormatter">
>
> Thanks.
>
> On Tue, Dec 16, 2014 at 11:39 AM, Uvindra Dias Jayasinha  > wrote:
>
>> Okay Shafreen helped diagnose this, the axis2.xml of API Manager 1.4 the
>> default JSON message formatter enabled is this,
>>
>>
>> >
>> class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
>>
>>
>> when the above is used the JSON formatting does not occur as expected,
>> but when this is commented and the below formatter is enabled instead,
>>
>>
>> >
>> class="org.apache.axis2.json.JSONMessageFormatter"/>
>>
>> it works. Thanks Shafreen.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On 16 December 2014 at 11:16, Uvindra Dias Jayasinha 
>> wrote:
>>>
>>> This is using API Manager 1.4 which uses synapse version 2.1.1.wso2v5
>>>
>>> On 16 December 2014 at 11:11, Uvindra Dias Jayasinha 
>>> wrote:

 Hi All,

 Im trying to send a simple JSON response when an API gets invoked, but
 I can only manage a SOAP envelope as the response, here is the synapse
 configuration,

 http://ws.apache.org/ns/synapse"; name="HealthCheck_API"
 context="/check_health">
 
 
 
 
 
 
 { "status": "okay" }
 
 >>> scope="axis2"/>
 >>> scope="axis2"/>
 
 
 
 


 This what Im getting now,

 http://www.w3.org/2003/05/soap-envelope
 ">okay


 This is what I want,

 { "status": "okay" }

 What am I missing? Thanks

 --
 Regards,
 Uvindra

 Mobile: 33962

>>>
>>>
>>> --
>>> Regards,
>>> Uvindra
>>>
>>> Mobile: 33962
>>>
>>
>>
>> --
>> Regards,
>> Uvindra
>>
>> Mobile: 33962
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> --
> *Isuru Udana*
> Senior
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
> twitter: http://twitter.com/isudana
>


-- 
Regards,
Uvindra

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


Re: [Dev] [DEV][Synapse] Sending a JSON response to an API invocation

2014-12-15 Thread Isuru Udana
Hi Uvindra,

It is not safe to change the message formatter in API manager 1.4 as it
uses binary relay and the changes will affect globally.

Instead of doing changes to axis2.xml message builder/formatters we can
build the message using the builder mediator at the API.



Thanks.

On Tue, Dec 16, 2014 at 11:39 AM, Uvindra Dias Jayasinha 
wrote:
>
> Okay Shafreen helped diagnose this, the axis2.xml of API Manager 1.4 the
> default JSON message formatter enabled is this,
>
>
> 
> class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
>
>
> when the above is used the JSON formatting does not occur as expected, but
> when this is commented and the below formatter is enabled instead,
>
>
> 
> class="org.apache.axis2.json.JSONMessageFormatter"/>
>
> it works. Thanks Shafreen.
>
>
>
>
>
>
>
>
>
>
> On 16 December 2014 at 11:16, Uvindra Dias Jayasinha 
> wrote:
>>
>> This is using API Manager 1.4 which uses synapse version 2.1.1.wso2v5
>>
>> On 16 December 2014 at 11:11, Uvindra Dias Jayasinha 
>> wrote:
>>>
>>> Hi All,
>>>
>>> Im trying to send a simple JSON response when an API gets invoked, but I
>>> can only manage a SOAP envelope as the response, here is the synapse
>>> configuration,
>>>
>>> http://ws.apache.org/ns/synapse"; name="HealthCheck_API"
>>> context="/check_health">
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> { "status": "okay" }
>>> 
>>> >> scope="axis2"/>
>>> >> scope="axis2"/>
>>> 
>>> 
>>> 
>>> 
>>>
>>>
>>> This what Im getting now,
>>>
>>> http://www.w3.org/2003/05/soap-envelope
>>> ">okay
>>>
>>>
>>> This is what I want,
>>>
>>> { "status": "okay" }
>>>
>>> What am I missing? Thanks
>>>
>>> --
>>> Regards,
>>> Uvindra
>>>
>>> Mobile: 33962
>>>
>>
>>
>> --
>> Regards,
>> Uvindra
>>
>> Mobile: 33962
>>
>
>
> --
> Regards,
> Uvindra
>
> Mobile: 33962
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

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


[Dev] Invitation: RDBMS Output Adapter Code Review @ Tue Dec 16, 2014 1pm - 1:30pm (Damith Wickramasinghe)

2014-12-15 Thread Damith Wickramasinghe
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20141216T073000Z
DTEND:20141216T08Z
DTSTAMP:20141216T064411Z
ORGANIZER;CN=Damith Wickramasinghe:mailto:dami...@wso2.com
UID:s4qkid4th6ll78lke7m8h09...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Tishan Dahanayakage;X-NUM-GUESTS=0:mailto:tis...@wso2.com
ATTENDEE;CUTYPE=RESOURCE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TR
 UE;CN=LK 6th Floor Meeting Room - Dijkstra;X-NUM-GUESTS=0:mailto:wso2.com_3
 7373634303139362d333...@resource.calendar.google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Lasantha Fernando;X-NUM-GUESTS=0:mailto:lasan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ramindu De Silva;X-NUM-GUESTS=0:mailto:ramin...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Damith Wickramasinghe;X-NUM-GUESTS=0:mailto:dami...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sriskandarajah Suhothayan;X-NUM-GUESTS=0:mailto:s...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sachini Jayasekara;X-NUM-GUESTS=0:mailto:sachi...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Rajeev Sampath;X-NUM-GUESTS=0:mailto:raje...@wso2.com
CREATED:20141216T064411Z
DESCRIPTION:View your event at https://www.google.com/calendar/event?action
 =VIEW&eid=czRxa2lkNHRoNmxsNzhsa2U3bThoMDk5MTggZGV2QHdzbzIub3Jn&tok=MTYjZGFt
 aXRobkB3c28yLmNvbWQ1OGQ5NDgzYmMyYjE1ODQ2ZDcyOTZhYTAzZjBlMTU4OWM4YzAxYmE&ctz
 =Asia/Colombo&hl=en.
LAST-MODIFIED:20141216T064411Z
LOCATION:LK 6th Floor Meeting Room - Dijkstra
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:RDBMS Output Adapter Code Review
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


[Dev] [CARBON-15109] Verify and Merge the Fix

2014-12-15 Thread Firzhan Naqash
Hi,

Please verify and merge the PR[1] for following JIRA [2].

[1] https://github.com/wso2/carbon4-kernel/pull/121
[2] https://wso2.org/jira/browse/CARBON-15109
Regards,
Firzhan
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Cannot Load Publisher

2014-12-15 Thread Shiva Balachandran
Hi Sameera,

What is the ES version you are using? Is it 2.0.0-M4 ?
Yes.

Did you do the changes to rxt via Management Console?
Yes.

Thank you.

Regards,

On Tue, Dec 16, 2014 at 11:53 AM, Sameera Jayaratna 
wrote:
>
> Hi Shiva,
>
> What is the ES version you are using? Is it 2.0.0-M4 ?
>
> Did you do the changes to rxt via Management Console?
>
> Thank you,
> Sameera
>
> On Tue, Dec 16, 2014 at 11:44 AM, Shiva Balachandran 
> wrote:
>
>> Hi All,
>>
>> I created a new asset, and added the configuration in the publisher.json
>> and store.json, initially configuration worked and the publisher and store
>> were accessible. I made a few changes to the rxt and restarted the server.
>> I have not been able to access the publisher and store, i reverted all the
>> changes and im still not able to access publisher or store.
>>
>> The following error is visible in the console.,
>>
>> Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read
>> property "shortName" from null
>> (/publisher/modules/deployment/deployment.manager.js#78)
>> at
>> org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
>> at
>> org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665)
>> at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3693)
>> at
>> org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3712)
>> at
>> org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3725)
>> at
>> org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1483)
>> at
>> org.jaggeryjs.rhino.publisher.modules.deployment.c0._c_anonymous_5(/publisher/modules/deployment/deployment.manager.js:78)
>> at
>> org.jaggeryjs.rhino.publisher.modules.deployment.c0.call(/publisher/modules/deployment/deployment.manager.js)
>> at
>> org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
>> at
>> org.jaggeryjs.rhino.publisher.modules.deployment.c0._c_anonymous_3(/publisher/modules/deployment/deployment.manager.js:55)
>> at
>> org.jaggeryjs.rhino.publisher.modules.deployment.c0.call(/publisher/modules/deployment/deployment.manager.js)
>> at
>> org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
>> at
>> org.jaggeryjs.rhino.publisher.modules.deployment.c0._c_DeploymentManager_2(/publisher/modules/deployment/deployment.manager.js:24)
>> at
>> org.jaggeryjs.rhino.publisher.modules.deployment.c0.call(/publisher/modules/deployment/deployment.manager.js)
>> at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:338)
>> at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)
>> at
>> org.jaggeryjs.rhino.publisher.modules.deployment.c0._c_cached_11(/publisher/modules/deployment/deployment.manager.js:181)
>> at
>> org.jaggeryjs.rhino.publisher.modules.deployment.c0.call(/publisher/modules/deployment/deployment.manager.js)
>> at
>> org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
>> at
>> org.jaggeryjs.rhino.publisher.themes.default.helpers.c0._c_script_0(/publisher/themes/default/helpers/left-nav.js:21)
>> at
>> org.jaggeryjs.rhino.publisher.themes.default.helpers.c0.call(/publisher/themes/default/helpers/left-nav.js)
>> at
>> org.jaggeryjs.rhino.publisher.themes.default.helpers.c0.exec(/publisher/themes/default/helpers/left-nav.js)
>> at
>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
>>
>>
>> Any clue as to why this error is produced.
>>
>> Thank you.
>>
>> Regards
>> --
>> Shiva Balachandran
>> Software Engineer
>> WSO2 Inc.
>>
>> Mobile - +94 774445788
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> --
>
>
>
> *Thanks & Regards,Sameera Jayaratna Software Engineer; **WSO2 Inc. *
>
> *lean . enterprise . middleware |  http://wso2.com  *
>


-- 
Shiva Balachandran
Software Engineer
WSO2 Inc.

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


Re: [Dev] [ES] Cannot Load Publisher

2014-12-15 Thread Sameera Jayaratna
Hi Shiva,

What is the ES version you are using? Is it 2.0.0-M4 ?

Did you do the changes to rxt via Management Console?

Thank you,
Sameera

On Tue, Dec 16, 2014 at 11:44 AM, Shiva Balachandran  wrote:
>
> Hi All,
>
> I created a new asset, and added the configuration in the publisher.json
> and store.json, initially configuration worked and the publisher and store
> were accessible. I made a few changes to the rxt and restarted the server.
> I have not been able to access the publisher and store, i reverted all the
> changes and im still not able to access publisher or store.
>
> The following error is visible in the console.,
>
> Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read
> property "shortName" from null
> (/publisher/modules/deployment/deployment.manager.js#78)
> at
> org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
> at
> org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665)
> at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3693)
> at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3712)
> at
> org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3725)
> at
> org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1483)
> at
> org.jaggeryjs.rhino.publisher.modules.deployment.c0._c_anonymous_5(/publisher/modules/deployment/deployment.manager.js:78)
> at
> org.jaggeryjs.rhino.publisher.modules.deployment.c0.call(/publisher/modules/deployment/deployment.manager.js)
> at
> org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
> at
> org.jaggeryjs.rhino.publisher.modules.deployment.c0._c_anonymous_3(/publisher/modules/deployment/deployment.manager.js:55)
> at
> org.jaggeryjs.rhino.publisher.modules.deployment.c0.call(/publisher/modules/deployment/deployment.manager.js)
> at
> org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
> at
> org.jaggeryjs.rhino.publisher.modules.deployment.c0._c_DeploymentManager_2(/publisher/modules/deployment/deployment.manager.js:24)
> at
> org.jaggeryjs.rhino.publisher.modules.deployment.c0.call(/publisher/modules/deployment/deployment.manager.js)
> at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:338)
> at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)
> at
> org.jaggeryjs.rhino.publisher.modules.deployment.c0._c_cached_11(/publisher/modules/deployment/deployment.manager.js:181)
> at
> org.jaggeryjs.rhino.publisher.modules.deployment.c0.call(/publisher/modules/deployment/deployment.manager.js)
> at
> org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
> at
> org.jaggeryjs.rhino.publisher.themes.default.helpers.c0._c_script_0(/publisher/themes/default/helpers/left-nav.js:21)
> at
> org.jaggeryjs.rhino.publisher.themes.default.helpers.c0.call(/publisher/themes/default/helpers/left-nav.js)
> at
> org.jaggeryjs.rhino.publisher.themes.default.helpers.c0.exec(/publisher/themes/default/helpers/left-nav.js)
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
>
>
> Any clue as to why this error is produced.
>
> Thank you.
>
> Regards
> --
> Shiva Balachandran
> Software Engineer
> WSO2 Inc.
>
> Mobile - +94 774445788
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

-- 



*Thanks & Regards,Sameera Jayaratna Software Engineer; **WSO2 Inc. *

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


[Dev] [ES] Cannot Load Publisher

2014-12-15 Thread Shiva Balachandran
Hi All,

I created a new asset, and added the configuration in the publisher.json
and store.json, initially configuration worked and the publisher and store
were accessible. I made a few changes to the rxt and restarted the server.
I have not been able to access the publisher and store, i reverted all the
changes and im still not able to access publisher or store.

The following error is visible in the console.,

Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read
property "shortName" from null
(/publisher/modules/deployment/deployment.manager.js#78)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3693)
at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3712)
at
org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3725)
at
org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1483)
at
org.jaggeryjs.rhino.publisher.modules.deployment.c0._c_anonymous_5(/publisher/modules/deployment/deployment.manager.js:78)
at
org.jaggeryjs.rhino.publisher.modules.deployment.c0.call(/publisher/modules/deployment/deployment.manager.js)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
at
org.jaggeryjs.rhino.publisher.modules.deployment.c0._c_anonymous_3(/publisher/modules/deployment/deployment.manager.js:55)
at
org.jaggeryjs.rhino.publisher.modules.deployment.c0.call(/publisher/modules/deployment/deployment.manager.js)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
at
org.jaggeryjs.rhino.publisher.modules.deployment.c0._c_DeploymentManager_2(/publisher/modules/deployment/deployment.manager.js:24)
at
org.jaggeryjs.rhino.publisher.modules.deployment.c0.call(/publisher/modules/deployment/deployment.manager.js)
at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:338)
at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)
at
org.jaggeryjs.rhino.publisher.modules.deployment.c0._c_cached_11(/publisher/modules/deployment/deployment.manager.js:181)
at
org.jaggeryjs.rhino.publisher.modules.deployment.c0.call(/publisher/modules/deployment/deployment.manager.js)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
at
org.jaggeryjs.rhino.publisher.themes.default.helpers.c0._c_script_0(/publisher/themes/default/helpers/left-nav.js:21)
at
org.jaggeryjs.rhino.publisher.themes.default.helpers.c0.call(/publisher/themes/default/helpers/left-nav.js)
at
org.jaggeryjs.rhino.publisher.themes.default.helpers.c0.exec(/publisher/themes/default/helpers/left-nav.js)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)


Any clue as to why this error is produced.

Thank you.

Regards
-- 
Shiva Balachandran
Software Engineer
WSO2 Inc.

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


Re: [Dev] [DEV][Synapse] Sending a JSON response to an API invocation

2014-12-15 Thread Uvindra Dias Jayasinha
Okay Shafreen helped diagnose this, the axis2.xml of API Manager 1.4 the
default JSON message formatter enabled is this,





when the above is used the JSON formatting does not occur as expected, but
when this is commented and the below formatter is enabled instead,




it works. Thanks Shafreen.










On 16 December 2014 at 11:16, Uvindra Dias Jayasinha 
wrote:
>
> This is using API Manager 1.4 which uses synapse version 2.1.1.wso2v5
>
> On 16 December 2014 at 11:11, Uvindra Dias Jayasinha 
> wrote:
>>
>> Hi All,
>>
>> Im trying to send a simple JSON response when an API gets invoked, but I
>> can only manage a SOAP envelope as the response, here is the synapse
>> configuration,
>>
>> http://ws.apache.org/ns/synapse"; name="HealthCheck_API"
>> context="/check_health">
>> 
>> 
>> 
>> 
>> 
>> 
>> { "status": "okay" }
>> 
>> > scope="axis2"/>
>> > scope="axis2"/>
>> 
>> 
>> 
>> 
>>
>>
>> This what Im getting now,
>>
>> http://www.w3.org/2003/05/soap-envelope
>> ">okay
>>
>>
>> This is what I want,
>>
>> { "status": "okay" }
>>
>> What am I missing? Thanks
>>
>> --
>> Regards,
>> Uvindra
>>
>> Mobile: 33962
>>
>
>
> --
> Regards,
> Uvindra
>
> Mobile: 33962
>


-- 
Regards,
Uvindra

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


Re: [Dev] [AF] [Urgent] Update copy jars for the undeployer changes

2014-12-15 Thread Harsha Thirimanna
To keep these appfactory jars as separate we can create new run-time for
that and refer it from jenkins war. WDYT ?


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

*Lean . Enterprise . Middleware*


On Tue, Dec 16, 2014 at 11:16 AM, Harsha Thirimanna 
wrote:
>
> Hi Mahesh,
>
> Why you moved those bundle in to the dropings ? Because we are just
> referring those bundle as jars only not as OSGi bundle. That is why we have
> put those in to the jenkins runtime.
>
>
> *Harsha Thirimanna*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770  ,
> +94 *
> *774617784twitter: **http://twitter.com/
> *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Tue, Dec 16, 2014 at 11:05 AM, Mahesh Chinthaka 
> wrote:
>
>> Hi all,
>> When I move jars from *lib/runtime/jenkins* to *repository/components/dropins
>> *I get following warn log in buildserver and it doesnt proceed beyond
>> this point.
>>
>> [2014-12-16 11:01:33,036]  WARN
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
>> delayed due to the following unsatisfied items:
>>
>> [2014-12-16 11:01:33,036]  WARN
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
>> OSGiAxis2Service: org.wso2.carbon.appfactory.repository.mgt.service-2.1.0
>>
>>
>> Any thoughts ???
>>
>> On Tue, Dec 16, 2014 at 10:20 AM, Manjula Rathnayake 
>> wrote:
>>>
>>> Hi all,
>>>
>>> +1 for avoiding copying jars into jenkins.war.
>>> Please clean duplicated jars in jenkins runtime and dropins.
>>>
>>> thank you.
>>>
>>> On Mon, Dec 15, 2014 at 10:38 PM, Danushka Fernando 
>>> wrote:

 You dont have to patch jenkins war. Just copy the jars to build server

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

 On Mon, Dec 15, 2014 at 10:37 PM, Danushka Fernando >>> > wrote:
>
> @Rajeevan: Please apply this for the setup in 16.2. Its updated by the
> merged code. Do these manually, restart the buildserver and test
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Mon, Dec 15, 2014 at 8:37 PM, Mahesh Chinthaka 
> wrote:
>>
>> Hi Danushka,
>>
>> This is how I used to patch while testing,
>>
>> 1). patch jenkins.war
>>
>> 2). copy following jars to location : buildserver/lib/runtime/jenkins
>>
>> org.wso2.carbon.appfactory.common-2.1.0.jar
>>
>> org.wso2.carbon.appfactory.core-2.1.0.jar
>>
>> org.wso2.carbon.appfactory.deployers-2.1.0.jar
>>
>> org.wso2.carbon.appfactory.repository.mgt.service-2.1.0.jar
>>
>>
>> 3). copy following jars to location :
>> buildserver/repository/components/dropins
>>
>> org.wso2.carbon.appfactory.common-2.1.0.jar
>>
>> org.wso2.carbon.appfactory.core-2.1.0.jar
>>
>>
>> For the moment you can do above, and I'm working on avoiding copying
>> jars to runtime/jenkins
>>
>>
>> Thanks
>>
>> On Mon, Dec 15, 2014 at 8:30 PM, Danushka Fernando <
>> danush...@wso2.com> wrote:
>>>
>>> Hi Mahesh
>>> Please consider doing $subject. Current setup is failing due to this.
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729
>>>
>>
>>
>> --
>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>> Email: mahe...@wso2.com | Web: www.wso2.com
>>
>
>>>
>>> --
>>> Manjula Rathnayaka
>>> Software Engineer
>>> WSO2, Inc.
>>> Mobile:+94 77 743 1987
>>>
>>
>>
>> --
>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>> Email: mahe...@wso2.com | Web: www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/

Re: [Dev] [AF] [Undeployer] Which bundle should include JenkinsStratosUndeployer

2014-12-15 Thread Harsha Thirimanna
+1 for keep this JenkinsStratosUndeployer class withing Jenkins plugin.


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

*Lean . Enterprise . Middleware*


On Tue, Dec 16, 2014 at 10:17 AM, Manjula Rathnayake 
wrote:
>
> Hi Danushka,
>
> +1 for separating out APIs and implementations into multiple bundles. But
> this org.wso2.carbon.appfactory.deployers contains other implementations
> such as StratosDeployer too. So we need to re-factor these classes too.
> Hence it is ok to keep JenkinsStratosUndeployer as it is, without
> introducing major re-factoring at this stage(completing the alpha features
> first and attend to these tasks later).
>
> thank you.
>
> On Mon, Dec 15, 2014 at 7:31 PM, Danushka Fernando 
> wrote:
>>
>> Hi AF devs,
>> IIRC deployers package contains all interfaces and abstract classes and
>> what ever connector we write to a deploy system we should write an
>> implementation. Correct me if I am wrong.
>> In that case IMO JenkinsStratosUndeployer should go in to the jenkins
>> plugins not in to the deployers package. WDYT?
>>
>>
>> Thanks & Regards
>> Danushka Fernando
>> Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>
>
> --
> Manjula Rathnayaka
> Software Engineer
> WSO2, Inc.
> Mobile:+94 77 743 1987
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DSS give a java.lang.OutOfMemoryError

2014-12-15 Thread Chamila De Alwis
Hi Shashika,

What are the message formatter and builder libraries that you've enabled
for application/json type?


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Tue, Dec 16, 2014 at 9:15 AM, Shashika Karunatilaka 
wrote:
>
> Hi Udara,
> No when sending from the try it tool it works fine
>
> Thank you
>
> On Tue, Dec 16, 2014 at 7:28 AM, Udara Liyanage  wrote:
>>
>> Hi,
>>
>> Do you get the same behavior when you so the same put method using tryit
>>
>>
>>
>> Touched, not typed. Erroneous words are a feature, not a typo.
>> On Dec 16, 2014 5:54 AM, "Danushka Fernando"  wrote:
>>
>>> I think best way to identify the root cause is to have a heap dump and
>>> analyze it.
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729
>>>
>>> On Mon, Dec 15, 2014 at 11:14 PM, Chamila De Alwis 
>>> wrote:

 Hi Shashika,

 Before the OutOfMemoryError, do you get any errors in the carbon log?
 Can you enable DEBUG level and find out?


 Regards,
 Chamila de Alwis
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Mon, Dec 15, 2014 at 10:29 PM, Shashika Karunatilaka <
 shashi...@wso2.com> wrote:

> HI,
> I was trying to send some JSON data to my data base through DSS. i
> tried this [1] curl command to send the data, but it doesnt update my
> database and gave a java.lang.OutOfMemoryError on DSS server after some
> time.
> Here with i have attached my .dbs file as well.
> I tried this on DSS 3.2.2 and the same command works fine in the DSS
> 3.2.1
>
> [1] curl -X PUT
> -d'{"_putaddbird":{"name":"","color":"green","weight":14}}' -H
> 'Content-Type:application/json'
> http://10.100.5.188:9763/services/uactivitydb/addbird
> 
>
> --
> Shashika Prabath Karunatilaka,
> Software Engineer,
> WSO2, Inc: http://wso2.com/
> mobile : +94 77 7487792
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>
> --
> Shashika Prabath Karunatilaka,
> Software Engineer,
> WSO2, Inc: http://wso2.com/
> mobile : +94 77 7487792
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][Synapse] Sending a JSON response to an API invocation

2014-12-15 Thread Uvindra Dias Jayasinha
This is using API Manager 1.4 which uses synapse version 2.1.1.wso2v5

On 16 December 2014 at 11:11, Uvindra Dias Jayasinha 
wrote:
>
> Hi All,
>
> Im trying to send a simple JSON response when an API gets invoked, but I
> can only manage a SOAP envelope as the response, here is the synapse
> configuration,
>
> http://ws.apache.org/ns/synapse"; name="HealthCheck_API"
> context="/check_health">
> 
> 
> 
> 
> 
> 
> { "status": "okay" }
> 
>  scope="axis2"/>
>  scope="axis2"/>
> 
> 
> 
> 
>
>
> This what Im getting now,
>
> http://www.w3.org/2003/05/soap-envelope
> ">okay
>
>
> This is what I want,
>
> { "status": "okay" }
>
> What am I missing? Thanks
>
> --
> Regards,
> Uvindra
>
> Mobile: 33962
>


-- 
Regards,
Uvindra

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


Re: [Dev] [AF] [Urgent] Update copy jars for the undeployer changes

2014-12-15 Thread Harsha Thirimanna
Hi Mahesh,

Why you moved those bundle in to the dropings ? Because we are just
referring those bundle as jars only not as OSGi bundle. That is why we have
put those in to the jenkins runtime.


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

*Lean . Enterprise . Middleware*


On Tue, Dec 16, 2014 at 11:05 AM, Mahesh Chinthaka  wrote:
>
> Hi all,
> When I move jars from *lib/runtime/jenkins* to *repository/components/dropins
> *I get following warn log in buildserver and it doesnt proceed beyond
> this point.
>
> [2014-12-16 11:01:33,036]  WARN
> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
> delayed due to the following unsatisfied items:
>
> [2014-12-16 11:01:33,036]  WARN
> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
> OSGiAxis2Service: org.wso2.carbon.appfactory.repository.mgt.service-2.1.0
>
>
> Any thoughts ???
>
> On Tue, Dec 16, 2014 at 10:20 AM, Manjula Rathnayake 
> wrote:
>>
>> Hi all,
>>
>> +1 for avoiding copying jars into jenkins.war.
>> Please clean duplicated jars in jenkins runtime and dropins.
>>
>> thank you.
>>
>> On Mon, Dec 15, 2014 at 10:38 PM, Danushka Fernando 
>> wrote:
>>>
>>> You dont have to patch jenkins war. Just copy the jars to build server
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729
>>>
>>> On Mon, Dec 15, 2014 at 10:37 PM, Danushka Fernando 
>>> wrote:

 @Rajeevan: Please apply this for the setup in 16.2. Its updated by the
 merged code. Do these manually, restart the buildserver and test

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

 On Mon, Dec 15, 2014 at 8:37 PM, Mahesh Chinthaka 
 wrote:
>
> Hi Danushka,
>
> This is how I used to patch while testing,
>
> 1). patch jenkins.war
>
> 2). copy following jars to location : buildserver/lib/runtime/jenkins
>
> org.wso2.carbon.appfactory.common-2.1.0.jar
>
> org.wso2.carbon.appfactory.core-2.1.0.jar
>
> org.wso2.carbon.appfactory.deployers-2.1.0.jar
>
> org.wso2.carbon.appfactory.repository.mgt.service-2.1.0.jar
>
>
> 3). copy following jars to location :
> buildserver/repository/components/dropins
>
> org.wso2.carbon.appfactory.common-2.1.0.jar
>
> org.wso2.carbon.appfactory.core-2.1.0.jar
>
>
> For the moment you can do above, and I'm working on avoiding copying
> jars to runtime/jenkins
>
>
> Thanks
>
> On Mon, Dec 15, 2014 at 8:30 PM, Danushka Fernando  > wrote:
>>
>> Hi Mahesh
>> Please consider doing $subject. Current setup is failing due to this.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: mahe...@wso2.com | Web: www.wso2.com
>

>>
>> --
>> Manjula Rathnayaka
>> Software Engineer
>> WSO2, Inc.
>> Mobile:+94 77 743 1987
>>
>
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: mahe...@wso2.com | Web: www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV][Synapse] Sending a JSON response to an API invocation

2014-12-15 Thread Uvindra Dias Jayasinha
Hi All,

Im trying to send a simple JSON response when an API gets invoked, but I
can only manage a SOAP envelope as the response, here is the synapse
configuration,

http://ws.apache.org/ns/synapse"; name="HealthCheck_API"
context="/check_health">






{ "status": "okay" }









This what Im getting now,

http://www.w3.org/2003/05/soap-envelope
">okay


This is what I want,

{ "status": "okay" }

What am I missing? Thanks

-- 
Regards,
Uvindra

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


Re: [Dev] [AF] [Urgent] Update copy jars for the undeployer changes

2014-12-15 Thread Mahesh Chinthaka
Hi all,
When I move jars from *lib/runtime/jenkins* to *repository/components/dropins
*I get following warn log in buildserver and it doesnt proceed beyond this
point.

[2014-12-16 11:01:33,036]  WARN
{org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
delayed due to the following unsatisfied items:

[2014-12-16 11:01:33,036]  WARN
{org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
OSGiAxis2Service: org.wso2.carbon.appfactory.repository.mgt.service-2.1.0


Any thoughts ???

On Tue, Dec 16, 2014 at 10:20 AM, Manjula Rathnayake 
wrote:
>
> Hi all,
>
> +1 for avoiding copying jars into jenkins.war.
> Please clean duplicated jars in jenkins runtime and dropins.
>
> thank you.
>
> On Mon, Dec 15, 2014 at 10:38 PM, Danushka Fernando 
> wrote:
>>
>> You dont have to patch jenkins war. Just copy the jars to build server
>>
>> Thanks & Regards
>> Danushka Fernando
>> Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Mon, Dec 15, 2014 at 10:37 PM, Danushka Fernando 
>> wrote:
>>>
>>> @Rajeevan: Please apply this for the setup in 16.2. Its updated by the
>>> merged code. Do these manually, restart the buildserver and test
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729
>>>
>>> On Mon, Dec 15, 2014 at 8:37 PM, Mahesh Chinthaka 
>>> wrote:

 Hi Danushka,

 This is how I used to patch while testing,

 1). patch jenkins.war

 2). copy following jars to location : buildserver/lib/runtime/jenkins

 org.wso2.carbon.appfactory.common-2.1.0.jar

 org.wso2.carbon.appfactory.core-2.1.0.jar

 org.wso2.carbon.appfactory.deployers-2.1.0.jar

 org.wso2.carbon.appfactory.repository.mgt.service-2.1.0.jar


 3). copy following jars to location :
 buildserver/repository/components/dropins

 org.wso2.carbon.appfactory.common-2.1.0.jar

 org.wso2.carbon.appfactory.core-2.1.0.jar


 For the moment you can do above, and I'm working on avoiding copying
 jars to runtime/jenkins


 Thanks

 On Mon, Dec 15, 2014 at 8:30 PM, Danushka Fernando 
 wrote:
>
> Hi Mahesh
> Please consider doing $subject. Current setup is failing due to this.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>


 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com

>>>
>
> --
> Manjula Rathnayaka
> Software Engineer
> WSO2, Inc.
> Mobile:+94 77 743 1987
>


-- 
*Mahesh Chinthaka Vidanagama* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 63 63 083 | Work: +94 112 145 345
Email: mahe...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] MB DLC Message Restore

2014-12-15 Thread Pamod Sylvester
HI Akalanka,

One possible option might be we cold keep track of the message id which was
generated when the message originated and define that as an attribute of
AndesMessageMetaData, so that when we retrieve or reroute the messages from
DLC we could generate a new message id for its meta information, when we
retrieve the message content we could refer to the reference we kept under
AndesMessageMetaData.

This is one option, however there could be performance constraints to it
since we we will have to do an additional look-up.

Thanks,
Pamod

On Tue, Dec 16, 2014 at 10:49 AM, Akalanka Pagoda Arachchi <
darsha...@wso2.com> wrote:
>
> Hi all,
>
> I am working on [1].
>
> When message broker 3.0.0 restores message from the dead letter channel,
> although messages are restored, they will never get redelivered since
> message delivery is handled by a slot based mechanism which will not
> process an already processed message.
>
> As I can see with the current implementation, the only possible way to
> re-route a dead message through MB is to consider it as a new message and
> forward it through message incoming logic. This requires retrieving old
> message content from the database and re-inserting as new message content
> while deleting the old content.
>
> This is heavy work. Any ideas on this?
>
> [1] - https://wso2.org/jira/browse/MB-871
>
> --
> *Darshana Akalanka Pagoda Arachchi,*
> *Software Engineer*
> *078-4721791 <078-4721791>*
>


-- 
*Pamod Sylvester *
 *Senior Software Engineer *
Integration Technologies Team, WSO2 Inc.; http://wso2.com
email: pa...@wso2.com cell: +94 77 7779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] MB DLC Message Restore

2014-12-15 Thread Akalanka Pagoda Arachchi
Hi all,

I am working on [1].

When message broker 3.0.0 restores message from the dead letter channel,
although messages are restored, they will never get redelivered since
message delivery is handled by a slot based mechanism which will not
process an already processed message.

As I can see with the current implementation, the only possible way to
re-route a dead message through MB is to consider it as a new message and
forward it through message incoming logic. This requires retrieving old
message content from the database and re-inserting as new message content
while deleting the old content.

This is heavy work. Any ideas on this?

[1] - https://wso2.org/jira/browse/MB-871

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


Re: [Dev] [AF] [Urgent] Update copy jars for the undeployer changes

2014-12-15 Thread Manjula Rathnayake
Hi all,

+1 for avoiding copying jars into jenkins.war.
Please clean duplicated jars in jenkins runtime and dropins.

thank you.

On Mon, Dec 15, 2014 at 10:38 PM, Danushka Fernando 
wrote:
>
> You dont have to patch jenkins war. Just copy the jars to build server
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Mon, Dec 15, 2014 at 10:37 PM, Danushka Fernando 
> wrote:
>>
>> @Rajeevan: Please apply this for the setup in 16.2. Its updated by the
>> merged code. Do these manually, restart the buildserver and test
>>
>> Thanks & Regards
>> Danushka Fernando
>> Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Mon, Dec 15, 2014 at 8:37 PM, Mahesh Chinthaka 
>> wrote:
>>>
>>> Hi Danushka,
>>>
>>> This is how I used to patch while testing,
>>>
>>> 1). patch jenkins.war
>>>
>>> 2). copy following jars to location : buildserver/lib/runtime/jenkins
>>>
>>> org.wso2.carbon.appfactory.common-2.1.0.jar
>>>
>>> org.wso2.carbon.appfactory.core-2.1.0.jar
>>>
>>> org.wso2.carbon.appfactory.deployers-2.1.0.jar
>>>
>>> org.wso2.carbon.appfactory.repository.mgt.service-2.1.0.jar
>>>
>>>
>>> 3). copy following jars to location :
>>> buildserver/repository/components/dropins
>>>
>>> org.wso2.carbon.appfactory.common-2.1.0.jar
>>>
>>> org.wso2.carbon.appfactory.core-2.1.0.jar
>>>
>>>
>>> For the moment you can do above, and I'm working on avoiding copying
>>> jars to runtime/jenkins
>>>
>>>
>>> Thanks
>>>
>>> On Mon, Dec 15, 2014 at 8:30 PM, Danushka Fernando 
>>> wrote:

 Hi Mahesh
 Please consider doing $subject. Current setup is failing due to this.

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

>>>
>>>
>>> --
>>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>>> Email: mahe...@wso2.com | Web: www.wso2.com
>>>
>>

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


Re: [Dev] [AF] [Undeployer] Which bundle should include JenkinsStratosUndeployer

2014-12-15 Thread Manjula Rathnayake
Hi Danushka,

+1 for separating out APIs and implementations into multiple bundles. But
this org.wso2.carbon.appfactory.deployers contains other implementations
such as StratosDeployer too. So we need to re-factor these classes too.
Hence it is ok to keep JenkinsStratosUndeployer as it is, without
introducing major re-factoring at this stage(completing the alpha features
first and attend to these tasks later).

thank you.

On Mon, Dec 15, 2014 at 7:31 PM, Danushka Fernando 
wrote:
>
> Hi AF devs,
> IIRC deployers package contains all interfaces and abstract classes and
> what ever connector we write to a deploy system we should write an
> implementation. Correct me if I am wrong.
> In that case IMO JenkinsStratosUndeployer should go in to the jenkins
> plugins not in to the deployers package. WDYT?
>
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>


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


Re: [Dev] [MB][MQTT] By passing the message store for QoS 0 flows when running in stand alone mode

2014-12-15 Thread Ramith Jayasinghe
This needs to be implemented for topic matching as well.

On Tue, Dec 16, 2014 at 9:58 AM, Pamod Sylvester  wrote:
>
> Sure, let's discuss and see how we could incorporate this algorithm, This
> could also be added into the Andes Kernal as well.
>
> Thanks,
> Pamod
>
> On Tue, Dec 16, 2014 at 7:54 AM, Asitha Nanayakkara 
> wrote:
>>
>> Hi Pamod,
>>
>> Inverted bitmap technique[1] looks good for the purpose. Algorithm is
>> O(n) where n is number of sections in the destination, not subscribers.
>>
>> Only concern is memory consumption and updating the maps when new
>> subscribers come while messages are flowing through the system at higher
>> rates (This will introduce some pauses to delivery). Since adding and
>> removing subscriptions doesn't happen frequently we can live with that I
>> think. Need to look at the memory consumption to make sure this is
>> feasible.
>>
>> [1] http://zeromq.org/whitepapers:message-matching
>>
>> On Mon, Dec 15, 2014 at 5:52 PM, Pamod Sylvester  wrote:
>>>
>>> Hi All,
>>>
>>> Since QoS 0 in MQTT is a performance oriented delivery mode, an
>>> in-memory based message store was implemented to bypass the message
>>> database when running MB in stand alone mode, however when running in
>>> cluster in-memory store will not be applicable, since in order to exchange
>>> messages across the cluster, it requires a mechanism to communicate between
>>> brokers (Which will be introduced in future MB versions)
>>>
>>> In Stand-Alone mode the current message flow would be similar to the
>>> following,
>>>
>>> Publisher ---> Message ---> Deliver from In-Memory Store ---> Deliver
>>> from Andes Kernal Store ---> Message ---> Subscription
>>>
>>> In the above flow, the subscriptions with QoS 0 would receive the
>>> messages through the in-memory store and the also currently the published
>>> message would be sent to the Andes kernal as well. Since for the same topic
>>> there could be subscriptions which are > QoS 0. Making a call to Andes
>>> Kernal strore would not make much sense if there're no subscriptions for a
>>> particular topic which is > QoS 0, also it will cause additional operation
>>> overhead. Therefore, we're in the process of implementing a solution which
>>> would be able to identify whether there are subscriptions > QoS 0 for a
>>> given topic to identify the necessity to perform a call to the store.
>>>
>>> If we maintain the state of topics which has subscriptions > QoS 0, for
>>> each message published it would require to iterate through all the
>>> subscriptions O(n), since there will be cases where the published topic
>>> will not 1:1 map with the subscribed topic, (i.e hierarchical topics with
>>> wildcards). In order to minimize the iteration cycles one option would be
>>> to partition subscriptions based on its attributes such as hierarchy,
>>> inclusive of wild card characters etc so that we could omit odds and
>>> iterate only through the possibilities.
>>>
>>> WDYT ? Please do advice on most optimized ways of filtering out matching
>>> subscriptions.
>>>
>>> Thanks,
>>> Pamod
>>>
>>> --
>>> *Pamod Sylvester *
>>>  *Senior Software Engineer *
>>> Integration Technologies Team, WSO2 Inc.; http://wso2.com
>>> email: pa...@wso2.com cell: +94 77 7779495
>>>
>>
>>
>> --
>> *Asitha Nanayakkara*
>> Software Engineer
>> WSO2, Inc. http://wso2.com/
>> Mob: + 94 77 85 30 682
>>
>>
>
> --
> *Pamod Sylvester *
>  *Senior Software Engineer *
> Integration Technologies Team, WSO2 Inc.; http://wso2.com
> email: pa...@wso2.com cell: +94 77 7779495
>


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

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


Re: [Dev] [MB][MQTT] By passing the message store for QoS 0 flows when running in stand alone mode

2014-12-15 Thread Pamod Sylvester
Sure, let's discuss and see how we could incorporate this algorithm, This
could also be added into the Andes Kernal as well.

Thanks,
Pamod

On Tue, Dec 16, 2014 at 7:54 AM, Asitha Nanayakkara  wrote:
>
> Hi Pamod,
>
> Inverted bitmap technique[1] looks good for the purpose. Algorithm is O(n)
> where n is number of sections in the destination, not subscribers.
>
> Only concern is memory consumption and updating the maps when new
> subscribers come while messages are flowing through the system at higher
> rates (This will introduce some pauses to delivery). Since adding and
> removing subscriptions doesn't happen frequently we can live with that I
> think. Need to look at the memory consumption to make sure this is
> feasible.
>
> [1] http://zeromq.org/whitepapers:message-matching
>
> On Mon, Dec 15, 2014 at 5:52 PM, Pamod Sylvester  wrote:
>>
>> Hi All,
>>
>> Since QoS 0 in MQTT is a performance oriented delivery mode, an in-memory
>> based message store was implemented to bypass the message database when
>> running MB in stand alone mode, however when running in cluster in-memory
>> store will not be applicable, since in order to exchange messages across
>> the cluster, it requires a mechanism to communicate between brokers (Which
>> will be introduced in future MB versions)
>>
>> In Stand-Alone mode the current message flow would be similar to the
>> following,
>>
>> Publisher ---> Message ---> Deliver from In-Memory Store ---> Deliver
>> from Andes Kernal Store ---> Message ---> Subscription
>>
>> In the above flow, the subscriptions with QoS 0 would receive the
>> messages through the in-memory store and the also currently the published
>> message would be sent to the Andes kernal as well. Since for the same topic
>> there could be subscriptions which are > QoS 0. Making a call to Andes
>> Kernal strore would not make much sense if there're no subscriptions for a
>> particular topic which is > QoS 0, also it will cause additional operation
>> overhead. Therefore, we're in the process of implementing a solution which
>> would be able to identify whether there are subscriptions > QoS 0 for a
>> given topic to identify the necessity to perform a call to the store.
>>
>> If we maintain the state of topics which has subscriptions > QoS 0, for
>> each message published it would require to iterate through all the
>> subscriptions O(n), since there will be cases where the published topic
>> will not 1:1 map with the subscribed topic, (i.e hierarchical topics with
>> wildcards). In order to minimize the iteration cycles one option would be
>> to partition subscriptions based on its attributes such as hierarchy,
>> inclusive of wild card characters etc so that we could omit odds and
>> iterate only through the possibilities.
>>
>> WDYT ? Please do advice on most optimized ways of filtering out matching
>> subscriptions.
>>
>> Thanks,
>> Pamod
>>
>> --
>> *Pamod Sylvester *
>>  *Senior Software Engineer *
>> Integration Technologies Team, WSO2 Inc.; http://wso2.com
>> email: pa...@wso2.com cell: +94 77 7779495
>>
>
>
> --
> *Asitha Nanayakkara*
> Software Engineer
> WSO2, Inc. http://wso2.com/
> Mob: + 94 77 85 30 682
>
>

-- 
*Pamod Sylvester *
 *Senior Software Engineer *
Integration Technologies Team, WSO2 Inc.; http://wso2.com
email: pa...@wso2.com cell: +94 77 7779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Cannot create an Asset Type

2014-12-15 Thread Shiva Balachandran
Hi Isuruwan,

The additional  tag has caused the issue.

Thank you.

Regards
Shiva Balachandran

On Mon, Dec 15, 2014 at 6:35 PM, Isuruwan Herath  wrote:
>
> Short name type should match pattern "([a-zA-Z0-9])+" if you haven't
> modified the default shortNameType in rxt.xsd . Also it seems you have an
> additional  tag below Createdtime. Try correcting them and check.
>
>
> On Mon, Dec 15, 2014 at 5:14 PM, Shiva Balachandran 
> wrote:
>>
>> Hi Himasha,
>>
>> Nope, does not fix the issue.
>>
>> Thank you.
>>
>> Regards,
>>
>>
>> On Mon, Dec 15, 2014 at 5:11 PM, Himasha Guruge 
>> wrote:
>>>
>>> Hi Shiva,
>>>
>>> I'm not sure if dashes are supported ( shortName="E-Process" ) , try
>>> without it and see.
>>>
>>> Thanks & Regards,
>>> Himasha
>>>
>>> On Mon, Dec 15, 2014 at 5:07 PM, Shiva Balachandran 
>>> wrote:
>>>
 Hi All,

 I am using ES 2.0.0, trying to create a new asset type and i encounter
 this error.

 ManageGenericArtifactServiceRegistryExceptionException

 You can find my RXT below, what could be causing this error,

 
 >>> shortName="E-Process" singularLabel="Executable Process"
 pluralLabel="Executable Processes"
   hasNamespace="false" iconSet="10">

 /eprocess/@{overview_provider}/@{overview_name}/@{overview_version}
 overview_name
 
 
 
 >>> href="@{storagePath}"/>
 
 
 >>> href="@{storagePath}"/>
 
 
 >>> href="@{storagePath}"/>
 
 
 
 
 
 
 Provider
 
 
 Name
 
 
 Version
 
 
 Createdtime
 
  
 
 Description
 
 
 
 
 Owner
 
 
 Deployment URL
 
 
 Webapp URL
 
 
 IT Support
 
 
 Developers
 
 
 Predecessors
 
 
 Sucessors
 
 
 Generalizations
 
 
 Specializations
 
 
 
 
 Thumbnail
 
 
 Banner
 
 
 Process Archive
 

 
 

 

 Thank you.

 Regards,

 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788

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


>>>
>>> --
>>> Himasha Guruge
>>> *Software Engineer*
>>> WS*O2* *Inc.*
>>> Mobile: +94 777459299
>>> himas...@wso2.com
>>>
>>
>>
>> --
>> Shiva Balachandran
>> Software Engineer
>> WSO2 Inc.
>>
>> Mobile - +94 774445788
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> --
> Isuruwan Herath
> Technical Lead
>
> Contact: +94 776 273 296
>


-- 
Shiva Balachandran
Software Engineer
WSO2 Inc.

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


Re: [Dev] SSLHandShake issue when invoking https endpoint from ESB

2014-12-15 Thread Ravindra Ranwala
Hi Vijitha,

You can export the server certificate via the browser. Then import it into
the client-truststore.jks as mentioned by Malaka. To configure SSL on
Tomcat you may use this [1]. Are you calling the HTTPS endpoint of the
proxy service. The issue seems to be between the client and the proxy
service. Could you please use '-k' insecure option with curl client to
invoke the HTTPS endpoint of the proxy service and try this out again.


[1]
http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Prepare_the_Certificate_Keystore


Thanks & Regards,

On Mon, Dec 15, 2014 at 9:48 PM, Vijitha Ekanayake 
wrote:
>
> Hi all,
>
> Thanks for the responses.
>
> @malaka: tried importing certificate using the mentioned command. but
> still getting the same results.
>
> @waruna : i have debugged the sslhandshake. as i understood when server
> asked for an RSA or DSS certificate signed by CA authorities, and the
> client replied by sending an empty certificate chain.  is that mean, my
> keystore doesn't have required certificates? is there a way overcome such
> issue? or please correct me if i got it wrong.
>
>  CertificateRequest*
>
> *Cert Types: RSA, DSS*
>
> *Cert Authorities:*
>
> **
>
> * O="VeriSign, Inc.", C=US>*
>
> **
>
> *etc ...*
>
>
> *handshake get failed from here*
>
> *HTTPS-Listener I/O dispatcher-2, READ: TLSv1 Handshake, length = 141*
>
>  Certificate chain*
>
> *
>
> *HTTPS-Listener I/O dispatcher-2, fatal error: 42: null cert chain*
>
> *javax.net.ssl.SSLHandshakeException: null cert chain*
>
> *HTTPS-Listener I/O dispatcher-2, SEND TLSv1 ALERT:  fatal, description =
> bad_certificate*
>
> *CONNECTION KEYGEN:*
>
> *Client Nonce:*
>
> *HTTPS-Listener I/O dispatcher-2, WRITE: TLSv1 Alert, length = 2*
>
> *: 54 8E A6 25 36 17 43 5B   94 05 AC E9 17 DC E5 DE  T..%6.C[*
>
> *0010: 7E C2 HTTPS-Listener I/O dispatcher-2, fatal: engine already
> closed.  Rethrowing javax.net.ssl.SSLHandshakeException: null cert chain*
>
> *7A 22 1F 51 39 BE   AC 9D 4C 90 DC 34 34 C2  ..z".Q9...L..44.*
>
> *Server Nonce:*
>
> *: 54 8E A6 25 EA 6F 85 0F   AE 7E 35 DC 7D E3 14 BA  T..%.o5.*
>
> *0010: A6 AE E6 9D 07 BC 51 5D   05 4C DB 2B 4E 51 61 93  ..Q].L.+NQa.*
>
> *Master Secret:*
>
> *: CD 52 6A A6 A1 88 E7 13   5E 3A 5C CF D2 4A 35 E7  .Rj.^:\..J5.*
>
> *0010: 7D A0 36 66 2E 91 06 79   B7 EC AE 8D 0C 7B AB 38  ..6f...y...8*
>
> *0020: E9 23 6C 6F 83 DF 94 FD   AF 62 25 B6 67 0A 29 9F  .#lo.b%.g.).*
>
> *Client MAC write Secret:*
>
> *: 94 B6 13 8C D1 D6 1B D9   C9 53 0C A6 D2 E4 C6 F4  .[2014-12-15
> 14:43:09,400] ERROR - SourceHandler I/O error: null cert chain*
>
> *javax.net.ssl.SSLHandshakeException: null cert chain*
>
> * at
> com.sun.net.ssl.internal.ssl.Handshaker.checkThrown(Handshaker.java:1015)*
>
> * at
> com.sun.net.ssl.internal.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:485)*
>
> * at
> com.sun.net.ssl.internal.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1108)*
>
> * at
> com.sun.net.ssl.internal.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1080)*
>
>
> Thanks.
>
> On Mon, Dec 15, 2014 at 6:43 PM, Malaka Silva  wrote:
>>
>> Hi Vijitha,
>>
>> Try importing the keystore into client truststore using the following
>> command.
>>
>> Similar is also done in [1]
>>
>>1.
>>
>> keytool -importcert -file  -keystore 
>> /repository/resources/security/client-truststore.jks -alias 
>> "TrustCertImport"
>>
>>2.
>>
>>Restart the server.
>>
>> [1]
>> https://github.com/wso2-dev/esb-connectors/blob/master/basecamp/basecamp-connector/basecamp-connector-1.0.0/README.txt
>>
>> On Mon, Dec 15, 2014 at 11:37 AM, Waruna Perera  wrote:
>>>
>>> Hi Vijitha,
>>>
>>> Pls try debug using *-Djavax.net.debug=all* and see the output.
>>>
>>> Thanks,
>>>
>>> On Mon, Dec 15, 2014 at 11:34 AM, Vijitha Ekanayake 
>>> wrote:
>>>
 Hi,

  i was trying to invoke a HTTPS endpoint using ESB proxy service. it
 gives following SSLHandShakeException. If i call the endpoint directly
 from advanced rest client tool provided by google chrome, I am able to get
 the successful response. i used [1] as a reference material.

 Steps i followed
 1. generated a custom certificate using keytool
 2. configured web server (tomcat) with created keystore.
 3. exported public certificate to .crt file
 4. added .crt to wso2carbon.jks and client-truststore.jks
 5. change axis2.xml parameter as >>> name="HostnameVerifier">AllowAll

 Can anyone help me to sort out this issue?

 following exception printed out in the terminal

 [2014-12-15 08:40:04,243] ERROR - SourceHandler I/O error: null cert
 chain

 javax.net.ssl.SSLHandshakeException: null cert chain

 at
 com.sun.net.ssl.internal.ssl.Handshaker.checkThrown(Handshaker.java:1015)

 at
 com.sun.net.ssl.internal.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:485)

 at
 com.sun.net.ssl.internal

Re: [Dev] DSS give a java.lang.OutOfMemoryError

2014-12-15 Thread Shashika Karunatilaka
Hi Udara,
No when sending from the try it tool it works fine

Thank you

On Tue, Dec 16, 2014 at 7:28 AM, Udara Liyanage  wrote:
>
> Hi,
>
> Do you get the same behavior when you so the same put method using tryit
>
>
>
> Touched, not typed. Erroneous words are a feature, not a typo.
> On Dec 16, 2014 5:54 AM, "Danushka Fernando"  wrote:
>
>> I think best way to identify the root cause is to have a heap dump and
>> analyze it.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Mon, Dec 15, 2014 at 11:14 PM, Chamila De Alwis 
>> wrote:
>>>
>>> Hi Shashika,
>>>
>>> Before the OutOfMemoryError, do you get any errors in the carbon log?
>>> Can you enable DEBUG level and find out?
>>>
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>> On Mon, Dec 15, 2014 at 10:29 PM, Shashika Karunatilaka <
>>> shashi...@wso2.com> wrote:
>>>
 HI,
 I was trying to send some JSON data to my data base through DSS. i
 tried this [1] curl command to send the data, but it doesnt update my
 database and gave a java.lang.OutOfMemoryError on DSS server after some
 time.
 Here with i have attached my .dbs file as well.
 I tried this on DSS 3.2.2 and the same command works fine in the DSS
 3.2.1

 [1] curl -X PUT
 -d'{"_putaddbird":{"name":"","color":"green","weight":14}}' -H
 'Content-Type:application/json'
 http://10.100.5.188:9763/services/uactivitydb/addbird
 

 --
 Shashika Prabath Karunatilaka,
 Software Engineer,
 WSO2, Inc: http://wso2.com/
 mobile : +94 77 7487792

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


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

-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB][MQTT] By passing the message store for QoS 0 flows when running in stand alone mode

2014-12-15 Thread Asitha Nanayakkara
Hi Pamod,

Inverted bitmap technique[1] looks good for the purpose. Algorithm is O(n)
where n is number of sections in the destination, not subscribers.

Only concern is memory consumption and updating the maps when new
subscribers come while messages are flowing through the system at higher
rates (This will introduce some pauses to delivery). Since adding and
removing subscriptions doesn't happen frequently we can live with that I
think. Need to look at the memory consumption to make sure this is
feasible.

[1] http://zeromq.org/whitepapers:message-matching

On Mon, Dec 15, 2014 at 5:52 PM, Pamod Sylvester  wrote:
>
> Hi All,
>
> Since QoS 0 in MQTT is a performance oriented delivery mode, an in-memory
> based message store was implemented to bypass the message database when
> running MB in stand alone mode, however when running in cluster in-memory
> store will not be applicable, since in order to exchange messages across
> the cluster, it requires a mechanism to communicate between brokers (Which
> will be introduced in future MB versions)
>
> In Stand-Alone mode the current message flow would be similar to the
> following,
>
> Publisher ---> Message ---> Deliver from In-Memory Store ---> Deliver from
> Andes Kernal Store ---> Message ---> Subscription
>
> In the above flow, the subscriptions with QoS 0 would receive the messages
> through the in-memory store and the also currently the published message
> would be sent to the Andes kernal as well. Since for the same topic there
> could be subscriptions which are > QoS 0. Making a call to Andes Kernal
> strore would not make much sense if there're no subscriptions for a
> particular topic which is > QoS 0, also it will cause additional operation
> overhead. Therefore, we're in the process of implementing a solution which
> would be able to identify whether there are subscriptions > QoS 0 for a
> given topic to identify the necessity to perform a call to the store.
>
> If we maintain the state of topics which has subscriptions > QoS 0, for
> each message published it would require to iterate through all the
> subscriptions O(n), since there will be cases where the published topic
> will not 1:1 map with the subscribed topic, (i.e hierarchical topics with
> wildcards). In order to minimize the iteration cycles one option would be
> to partition subscriptions based on its attributes such as hierarchy,
> inclusive of wild card characters etc so that we could omit odds and
> iterate only through the possibilities.
>
> WDYT ? Please do advice on most optimized ways of filtering out matching
> subscriptions.
>
> Thanks,
> Pamod
>
> --
> *Pamod Sylvester *
>  *Senior Software Engineer *
> Integration Technologies Team, WSO2 Inc.; http://wso2.com
> email: pa...@wso2.com cell: +94 77 7779495
>


-- 
*Asitha Nanayakkara*
Software Engineer
WSO2, Inc. http://wso2.com/
Mob: + 94 77 85 30 682
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Preventing Topic Subscriptions getting unwanted messages

2014-12-15 Thread Rukshani Weerasinha
Thank you.

On Tue, Dec 16, 2014 at 7:17 AM, Tania Mahanama  wrote:
>
> Thanks Hasitha and Ramith! Adding Rukshani and Sam from the docs team.
>
> Regards,
> Tania
>
> On Tue, Dec 16, 2014 at 12:03 AM, Ramith Jayasinghe 
> wrote:
>
>> Good stuff! lets create a L1 (for docs team) stating that we need to have
>> time synced in servers (in clustering guide).
>> Otherwise we will miss it!
>>
>> On Mon, Dec 15, 2014 at 11:46 PM, Hasitha Hiranya 
>> wrote:
>>>
>>> Hi,
>>>
>>> I did following change to topic subscriptions.
>>>
>>> 1. say sub 1 subscribed to topic x.
>>> 2. say sub 2 subscribed to topic x.
>>> 3. say 10,000 msgs published to topic x.
>>>
>>> Now when sub 1 is closed and resubscribe, it should get no messages.
>>> This is now done comparing time stamps of subscription and message
>>> arrival time.
>>>
>>> This brings the need that all MB nodes MUST BE TIME SYNCED.
>>>
>>> Standalone Test case also added.
>>>
>>> Note that when all topic subscribers vanished from node, underlying
>>> storage queue is purged.
>>>
>>> A test case is added for this as well.
>>>
>>> Also added abt 10 durble topic test cases.
>>>
>>> Verified that all these pass in current MB 3.0.0 SNAPSAHOT.
>>>
>>> Thanks
>>>
>>> --
>>> *Hasitha Abeykoon*
>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>> *cell:* *+94 719363063*
>>> *blog: **abeykoon.blogspot.com* 
>>>
>>>
>>
>> --
>> Ramith Jayasinghe
>> Technical Lead
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> E: ram...@wso2.com
>> P: +94 777542851
>>
>>
>
>
> --
> Tania Mahanama
> Senior Technical Writer
>
> Contact:
> Mob: +94 077 5129270
>


-- 
Rukshani Weerasinha

WSO2 Inc.
Web:http://wso2.com
Mobile: 0777 683 738
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WSO2 CEP] Asking about HA in CEP 3.1.0

2014-12-15 Thread Srinath Perera
Hi Kacper,

Adding Suho and team, someone will answer.

--Srinath

On Mon, Dec 15, 2014 at 3:19 PM, Kacper Pietrasik <
kpietra...@bluesoft.net.pl> wrote:
>
> Hi,
>
> I work with WSO2 CEP and I have a little problem with HA. I was looking
> for somebody who might help me with this component, and I noticed in your
> website that you have been working with CEP, so I decided write to you a
> message.
>
> In CEP documentation about HA, WSO2 members show how to set HA in one
> server/PC and recommend to set HA in two servers/PC. I want to to that in
> failover mode. My problem is that when I turn on CEP instances it works in
> active-active mode instead of failover. I noticed that sometimes one
> instance is Passive member and second is active. In documentation
> active-active and failover mode are set up in the same way.
>
> My question are. Is there any properties that I can change to have all the
> time failover mode (when I turn on 2 instance of CEP, one become Passive,
> second become active)? Is it necessary to set up distributed database when
> I have 2 CEP on 2 different servers/PC (I noticed that when I changed in
> second CEP database URL and when I don't change it, it works the same)?
> If you don't know how to help me, maybe you know someone in WSO2 how can
> help me with this problem?
>
> --
> Best regards,
> Kacper Pietrasik
>
>

-- 

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


Re: [Dev] DSS give a java.lang.OutOfMemoryError

2014-12-15 Thread Udara Liyanage
Hi,

Do you get the same behavior when you so the same put method using tryit



Touched, not typed. Erroneous words are a feature, not a typo.
On Dec 16, 2014 5:54 AM, "Danushka Fernando"  wrote:

> I think best way to identify the root cause is to have a heap dump and
> analyze it.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Mon, Dec 15, 2014 at 11:14 PM, Chamila De Alwis 
> wrote:
>>
>> Hi Shashika,
>>
>> Before the OutOfMemoryError, do you get any errors in the carbon log? Can
>> you enable DEBUG level and find out?
>>
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> On Mon, Dec 15, 2014 at 10:29 PM, Shashika Karunatilaka <
>> shashi...@wso2.com> wrote:
>>
>>> HI,
>>> I was trying to send some JSON data to my data base through DSS. i tried
>>> this [1] curl command to send the data, but it doesnt update my database
>>> and gave a java.lang.OutOfMemoryError on DSS server after some time.
>>> Here with i have attached my .dbs file as well.
>>> I tried this on DSS 3.2.2 and the same command works fine in the DSS
>>> 3.2.1
>>>
>>> [1] curl -X PUT
>>> -d'{"_putaddbird":{"name":"","color":"green","weight":14}}' -H
>>> 'Content-Type:application/json'
>>> http://10.100.5.188:9763/services/uactivitydb/addbird
>>> 
>>>
>>> --
>>> Shashika Prabath Karunatilaka,
>>> Software Engineer,
>>> WSO2, Inc: http://wso2.com/
>>> mobile : +94 77 7487792
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Preventing Topic Subscriptions getting unwanted messages

2014-12-15 Thread Tania Mahanama
Thanks Hasitha and Ramith! Adding Rukshani and Sam from the docs team.

Regards,
Tania

On Tue, Dec 16, 2014 at 12:03 AM, Ramith Jayasinghe  wrote:

> Good stuff! lets create a L1 (for docs team) stating that we need to have
> time synced in servers (in clustering guide).
> Otherwise we will miss it!
>
> On Mon, Dec 15, 2014 at 11:46 PM, Hasitha Hiranya 
> wrote:
>>
>> Hi,
>>
>> I did following change to topic subscriptions.
>>
>> 1. say sub 1 subscribed to topic x.
>> 2. say sub 2 subscribed to topic x.
>> 3. say 10,000 msgs published to topic x.
>>
>> Now when sub 1 is closed and resubscribe, it should get no messages.
>> This is now done comparing time stamps of subscription and message
>> arrival time.
>>
>> This brings the need that all MB nodes MUST BE TIME SYNCED.
>>
>> Standalone Test case also added.
>>
>> Note that when all topic subscribers vanished from node, underlying
>> storage queue is purged.
>>
>> A test case is added for this as well.
>>
>> Also added abt 10 durble topic test cases.
>>
>> Verified that all these pass in current MB 3.0.0 SNAPSAHOT.
>>
>> Thanks
>>
>> --
>> *Hasitha Abeykoon*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>> *cell:* *+94 719363063*
>> *blog: **abeykoon.blogspot.com* 
>>
>>
>
> --
> Ramith Jayasinghe
> Technical Lead
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> E: ram...@wso2.com
> P: +94 777542851
>
>


-- 
Tania Mahanama
Senior Technical Writer

Contact:
Mob: +94 077 5129270
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DSS give a java.lang.OutOfMemoryError

2014-12-15 Thread Danushka Fernando
I think best way to identify the root cause is to have a heap dump and
analyze it.

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

On Mon, Dec 15, 2014 at 11:14 PM, Chamila De Alwis 
wrote:
>
> Hi Shashika,
>
> Before the OutOfMemoryError, do you get any errors in the carbon log? Can
> you enable DEBUG level and find out?
>
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Mon, Dec 15, 2014 at 10:29 PM, Shashika Karunatilaka <
> shashi...@wso2.com> wrote:
>
>> HI,
>> I was trying to send some JSON data to my data base through DSS. i tried
>> this [1] curl command to send the data, but it doesnt update my database
>> and gave a java.lang.OutOfMemoryError on DSS server after some time.
>> Here with i have attached my .dbs file as well.
>> I tried this on DSS 3.2.2 and the same command works fine in the DSS 3.2.1
>>
>> [1] curl -X PUT
>> -d'{"_putaddbird":{"name":"","color":"green","weight":14}}' -H
>> 'Content-Type:application/json'
>> http://10.100.5.188:9763/services/uactivitydb/addbird
>> 
>>
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Preventing Topic Subscriptions getting unwanted messages

2014-12-15 Thread Ramith Jayasinghe
Good stuff! lets create a L1 (for docs team) stating that we need to have
time synced in servers (in clustering guide).
Otherwise we will miss it!

On Mon, Dec 15, 2014 at 11:46 PM, Hasitha Hiranya  wrote:
>
> Hi,
>
> I did following change to topic subscriptions.
>
> 1. say sub 1 subscribed to topic x.
> 2. say sub 2 subscribed to topic x.
> 3. say 10,000 msgs published to topic x.
>
> Now when sub 1 is closed and resubscribe, it should get no messages.
> This is now done comparing time stamps of subscription and message arrival
> time.
>
> This brings the need that all MB nodes MUST BE TIME SYNCED.
>
> Standalone Test case also added.
>
> Note that when all topic subscribers vanished from node, underlying
> storage queue is purged.
>
> A test case is added for this as well.
>
> Also added abt 10 durble topic test cases.
>
> Verified that all these pass in current MB 3.0.0 SNAPSAHOT.
>
> Thanks
>
> --
> *Hasitha Abeykoon*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> *cell:* *+94 719363063*
> *blog: **abeykoon.blogspot.com* 
>
>

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

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


[Dev] Preventing Topic Subscriptions getting unwanted messages

2014-12-15 Thread Hasitha Hiranya
Hi,

I did following change to topic subscriptions.

1. say sub 1 subscribed to topic x.
2. say sub 2 subscribed to topic x.
3. say 10,000 msgs published to topic x.

Now when sub 1 is closed and resubscribe, it should get no messages.
This is now done comparing time stamps of subscription and message arrival
time.

This brings the need that all MB nodes MUST BE TIME SYNCED.

Standalone Test case also added.

Note that when all topic subscribers vanished from node, underlying storage
queue is purged.

A test case is added for this as well.

Also added abt 10 durble topic test cases.

Verified that all these pass in current MB 3.0.0 SNAPSAHOT.

Thanks

-- 
*Hasitha Abeykoon*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
*cell:* *+94 719363063*
*blog: **abeykoon.blogspot.com* 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DSS give a java.lang.OutOfMemoryError

2014-12-15 Thread Chamila De Alwis
Hi Shashika,

Before the OutOfMemoryError, do you get any errors in the carbon log? Can
you enable DEBUG level and find out?


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Mon, Dec 15, 2014 at 10:29 PM, Shashika Karunatilaka 
wrote:
>
> HI,
> I was trying to send some JSON data to my data base through DSS. i tried
> this [1] curl command to send the data, but it doesnt update my database
> and gave a java.lang.OutOfMemoryError on DSS server after some time.
> Here with i have attached my .dbs file as well.
> I tried this on DSS 3.2.2 and the same command works fine in the DSS 3.2.1
>
> [1] curl -X PUT
> -d'{"_putaddbird":{"name":"","color":"green","weight":14}}' -H
> 'Content-Type:application/json'
> http://10.100.5.188:9763/services/uactivitydb/addbird
> 
>
> --
> Shashika Prabath Karunatilaka,
> Software Engineer,
> WSO2, Inc: http://wso2.com/
> mobile : +94 77 7487792
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [G-Reg]"Copy to new version" functionality in G-Reg

2014-12-15 Thread Sameera Kannangara
Hi all,

$Subject refers to the functionality required to fulfill the following
scenario in G-Reg 5.0.0. [1]

Scenario:

User should be able to copy existing resource to new version. Lets say a
user has a service in GREG which is attached with a life cycle, and the
service is in production life cycle state. User develops a new version of
the same service, and he wants to add those meta data to the GREG. Rather
than adding them from the beginning, He should be able to copy the existing
resource and it's associations to a new version, except life cycle state,
life cycle state should be the first state of the associated life cycle.

Rationale for this requirement is that it reduces the time and effort
required to create a new version of an existing service, by removing
the time and effort needed to fill all the detail necessary to create the
service.

This functionality is not supported by the G-Reg's existing copy
functionality as it operates on generic resource level.

As this requirement is related to governance artifacts (more specifically
regarding services) I'm checking how this can be implemented, how user can
invoke this functionality and to which package the new functionality should
be added.

Regarding the scope of this functionality,

What are the Extension types which should support this functionality other
than "Service"?
Is this functionality a generic one associated with any extension type that
has a version field?


Thank you,
SameeraK.

[1] https://redmine.wso2.com/issues/2751

-- 
*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] [AF] [Urgent] Update copy jars for the undeployer changes

2014-12-15 Thread Danushka Fernando
You dont have to patch jenkins war. Just copy the jars to build server

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

On Mon, Dec 15, 2014 at 10:37 PM, Danushka Fernando 
wrote:
>
> @Rajeevan: Please apply this for the setup in 16.2. Its updated by the
> merged code. Do these manually, restart the buildserver and test
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Mon, Dec 15, 2014 at 8:37 PM, Mahesh Chinthaka 
> wrote:
>>
>> Hi Danushka,
>>
>> This is how I used to patch while testing,
>>
>> 1). patch jenkins.war
>>
>> 2). copy following jars to location : buildserver/lib/runtime/jenkins
>>
>> org.wso2.carbon.appfactory.common-2.1.0.jar
>>
>> org.wso2.carbon.appfactory.core-2.1.0.jar
>>
>> org.wso2.carbon.appfactory.deployers-2.1.0.jar
>>
>> org.wso2.carbon.appfactory.repository.mgt.service-2.1.0.jar
>>
>>
>> 3). copy following jars to location :
>> buildserver/repository/components/dropins
>>
>> org.wso2.carbon.appfactory.common-2.1.0.jar
>>
>> org.wso2.carbon.appfactory.core-2.1.0.jar
>>
>>
>> For the moment you can do above, and I'm working on avoiding copying jars
>> to runtime/jenkins
>>
>>
>> Thanks
>>
>> On Mon, Dec 15, 2014 at 8:30 PM, Danushka Fernando 
>> wrote:
>>>
>>> Hi Mahesh
>>> Please consider doing $subject. Current setup is failing due to this.
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729
>>>
>>
>>
>> --
>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>> Email: mahe...@wso2.com | Web: www.wso2.com
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] [Urgent] Update copy jars for the undeployer changes

2014-12-15 Thread Danushka Fernando
@Rajeevan: Please apply this for the setup in 16.2. Its updated by the
merged code. Do these manually, restart the buildserver and test

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

On Mon, Dec 15, 2014 at 8:37 PM, Mahesh Chinthaka  wrote:
>
> Hi Danushka,
>
> This is how I used to patch while testing,
>
> 1). patch jenkins.war
>
> 2). copy following jars to location : buildserver/lib/runtime/jenkins
>
> org.wso2.carbon.appfactory.common-2.1.0.jar
>
> org.wso2.carbon.appfactory.core-2.1.0.jar
>
> org.wso2.carbon.appfactory.deployers-2.1.0.jar
>
> org.wso2.carbon.appfactory.repository.mgt.service-2.1.0.jar
>
>
> 3). copy following jars to location :
> buildserver/repository/components/dropins
>
> org.wso2.carbon.appfactory.common-2.1.0.jar
>
> org.wso2.carbon.appfactory.core-2.1.0.jar
>
>
> For the moment you can do above, and I'm working on avoiding copying jars
> to runtime/jenkins
>
>
> Thanks
>
> On Mon, Dec 15, 2014 at 8:30 PM, Danushka Fernando 
> wrote:
>>
>> Hi Mahesh
>> Please consider doing $subject. Current setup is failing due to this.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: mahe...@wso2.com | Web: www.wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] DSS give a java.lang.OutOfMemoryError

2014-12-15 Thread Shashika Karunatilaka
HI,
I was trying to send some JSON data to my data base through DSS. i tried
this [1] curl command to send the data, but it doesnt update my database
and gave a java.lang.OutOfMemoryError on DSS server after some time.
Here with i have attached my .dbs file as well.
I tried this on DSS 3.2.2 and the same command works fine in the DSS 3.2.1

[1] curl -X PUT
-d'{"_putaddbird":{"name":"","color":"green","weight":14}}' -H
'Content-Type:application/json'
http://10.100.5.188:9763/services/uactivitydb/addbird


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792


testmysqlnull.dbs
Description: Binary data
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] App Manager latest build pack - 15-12-2014

2014-12-15 Thread Dinusha Senanayaka
Hi,

Please find the $Subject in [1].

[1]. http://builder1.us1.wso2.org/~appm/15-12-2014-M2/

Regards,
Dinusha.

-- 
Dinusha Dilrukshi
Senior Software Engineer
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] SSLHandShake issue when invoking https endpoint from ESB

2014-12-15 Thread Vijitha Ekanayake
Hi all,

Thanks for the responses.

@malaka: tried importing certificate using the mentioned command. but still
getting the same results.

@waruna : i have debugged the sslhandshake. as i understood when server
asked for an RSA or DSS certificate signed by CA authorities, and the
client replied by sending an empty certificate chain.  is that mean, my
keystore doesn't have required certificates? is there a way overcome such
issue? or please correct me if i got it wrong.

 CertificateRequest*

*Cert Types: RSA, DSS*

*Cert Authorities:*

**

**

**

*etc ...*


*handshake get failed from here*

*HTTPS-Listener I/O dispatcher-2, READ: TLSv1 Handshake, length = 141*

 Certificate chain*

*

*HTTPS-Listener I/O dispatcher-2, fatal error: 42: null cert chain*

*javax.net.ssl.SSLHandshakeException: null cert chain*

*HTTPS-Listener I/O dispatcher-2, SEND TLSv1 ALERT:  fatal, description =
bad_certificate*

*CONNECTION KEYGEN:*

*Client Nonce:*

*HTTPS-Listener I/O dispatcher-2, WRITE: TLSv1 Alert, length = 2*

*: 54 8E A6 25 36 17 43 5B   94 05 AC E9 17 DC E5 DE  T..%6.C[*

*0010: 7E C2 HTTPS-Listener I/O dispatcher-2, fatal: engine already
closed.  Rethrowing javax.net.ssl.SSLHandshakeException: null cert chain*

*7A 22 1F 51 39 BE   AC 9D 4C 90 DC 34 34 C2  ..z".Q9...L..44.*

*Server Nonce:*

*: 54 8E A6 25 EA 6F 85 0F   AE 7E 35 DC 7D E3 14 BA  T..%.o5.*

*0010: A6 AE E6 9D 07 BC 51 5D   05 4C DB 2B 4E 51 61 93  ..Q].L.+NQa.*

*Master Secret:*

*: CD 52 6A A6 A1 88 E7 13   5E 3A 5C CF D2 4A 35 E7  .Rj.^:\..J5.*

*0010: 7D A0 36 66 2E 91 06 79   B7 EC AE 8D 0C 7B AB 38  ..6f...y...8*

*0020: E9 23 6C 6F 83 DF 94 FD   AF 62 25 B6 67 0A 29 9F  .#lo.b%.g.).*

*Client MAC write Secret:*

*: 94 B6 13 8C D1 D6 1B D9   C9 53 0C A6 D2 E4 C6 F4  .[2014-12-15
14:43:09,400] ERROR - SourceHandler I/O error: null cert chain*

*javax.net.ssl.SSLHandshakeException: null cert chain*

* at
com.sun.net.ssl.internal.ssl.Handshaker.checkThrown(Handshaker.java:1015)*

* at
com.sun.net.ssl.internal.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:485)*

* at
com.sun.net.ssl.internal.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1108)*

* at
com.sun.net.ssl.internal.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1080)*


Thanks.

On Mon, Dec 15, 2014 at 6:43 PM, Malaka Silva  wrote:
>
> Hi Vijitha,
>
> Try importing the keystore into client truststore using the following
> command.
>
> Similar is also done in [1]
>
>1.
>
> keytool -importcert -file  -keystore 
> /repository/resources/security/client-truststore.jks -alias 
> "TrustCertImport"
>
>2.
>
>Restart the server.
>
> [1]
> https://github.com/wso2-dev/esb-connectors/blob/master/basecamp/basecamp-connector/basecamp-connector-1.0.0/README.txt
>
> On Mon, Dec 15, 2014 at 11:37 AM, Waruna Perera  wrote:
>>
>> Hi Vijitha,
>>
>> Pls try debug using *-Djavax.net.debug=all* and see the output.
>>
>> Thanks,
>>
>> On Mon, Dec 15, 2014 at 11:34 AM, Vijitha Ekanayake 
>> wrote:
>>
>>> Hi,
>>>
>>>  i was trying to invoke a HTTPS endpoint using ESB proxy service. it
>>> gives following SSLHandShakeException. If i call the endpoint directly
>>> from advanced rest client tool provided by google chrome, I am able to get
>>> the successful response. i used [1] as a reference material.
>>>
>>> Steps i followed
>>> 1. generated a custom certificate using keytool
>>> 2. configured web server (tomcat) with created keystore.
>>> 3. exported public certificate to .crt file
>>> 4. added .crt to wso2carbon.jks and client-truststore.jks
>>> 5. change axis2.xml parameter as >> name="HostnameVerifier">AllowAll
>>>
>>> Can anyone help me to sort out this issue?
>>>
>>> following exception printed out in the terminal
>>>
>>> [2014-12-15 08:40:04,243] ERROR - SourceHandler I/O error: null cert
>>> chain
>>>
>>> javax.net.ssl.SSLHandshakeException: null cert chain
>>>
>>> at
>>> com.sun.net.ssl.internal.ssl.Handshaker.checkThrown(Handshaker.java:1015)
>>>
>>> at
>>> com.sun.net.ssl.internal.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:485)
>>>
>>> at
>>> com.sun.net.ssl.internal.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1108)
>>>
>>> at
>>> com.sun.net.ssl.internal.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1080)
>>>
>>> at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:452)
>>>
>>> at
>>> org.apache.http.nio.reactor.ssl.SSLIOSession.doWrap(SSLIOSession.java:220)
>>>
>>> at
>>> org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:254)
>>>
>>> at
>>> org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:380)
>>>
>>> at
>>> org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:118)
>>>
>>> at
>>> org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:160)
>>>
>>> at
>>> org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:342)
>>>
>>> at
>>> org.apache.http.impl.nio.reactor.Abst

Re: [Dev] [AF] [Urgent] Update copy jars for the undeployer changes

2014-12-15 Thread Mahesh Chinthaka
Hi Danushka,

This is how I used to patch while testing,

1). patch jenkins.war

2). copy following jars to location : buildserver/lib/runtime/jenkins

org.wso2.carbon.appfactory.common-2.1.0.jar

org.wso2.carbon.appfactory.core-2.1.0.jar

org.wso2.carbon.appfactory.deployers-2.1.0.jar

org.wso2.carbon.appfactory.repository.mgt.service-2.1.0.jar


3). copy following jars to location :
buildserver/repository/components/dropins

org.wso2.carbon.appfactory.common-2.1.0.jar

org.wso2.carbon.appfactory.core-2.1.0.jar


For the moment you can do above, and I'm working on avoiding copying jars
to runtime/jenkins


Thanks

On Mon, Dec 15, 2014 at 8:30 PM, Danushka Fernando 
wrote:
>
> Hi Mahesh
> Please consider doing $subject. Current setup is failing due to this.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>


-- 
*Mahesh Chinthaka Vidanagama* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 63 63 083 | Work: +94 112 145 345
Email: mahe...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AF] [Urgent] Update copy jars for the undeployer changes

2014-12-15 Thread Danushka Fernando
Hi Mahesh
Please consider doing $subject. Current setup is failing due to this.

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


Re: [Dev] Chunk -14 RC packs

2014-12-15 Thread Sinthuja Ragendran
Hi all,

Please find the RC5 packs and p2-repo on [1] (SVN revision: 210570)

[1]
https://svn.wso2.org/repos/wso2/scratch/chunk13-release/chunk-14-RC5-Packs/

Thanks,
Sinthuja.

On Fri, Dec 12, 2014 at 10:29 PM, Sinthuja Ragendran 
wrote:
>
> Hi all,
>
> Please find the RC4 packs and p2-repo in [1].
> SVN revision number: 210547
>
> [1]
> https://svn.wso2.org/repos/wso2/scratch/chunk13-release/chunk-14-RC4-Packs/
>
> Thanks,
> Sinthuja
>
> On Thu, Dec 11, 2014 at 9:06 AM, Vijayaratha Vijayasingam  > wrote:
>>
>> Hi all;
>> Please find the RC3+p2 repo packs.
>>
>> revision 210484
>>
>>
>> https://svn.wso2.org/repos/wso2/scratch/chunk13-release/chunk-14-RC3-Packs/
>> Thanks
>>
>> On 10 December 2014 at 14:08, Vijayaratha Vijayasingam 
>> wrote:
>>
>>> Hi all;
>>> Please find the RC2 +p2 repo packs with few more fixes.
>>> Revision :210446
>>>
>>>
>>> https://svn.wso2.org/repos/wso2/scratch/chunk13-release/chunk-14-RC2-Packs/
>>>
>>> Thanks
>>>
>>> On 6 December 2014 at 14:02, Vijayaratha Vijayasingam 
>>> wrote:
>>>
 Hi all;
 Please find APIM+BAM RC packs and p2 repo.[1]
 Revision :210263

 [1]
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/chunk-14-RC-Packs/

 Thanks.

 --
 -Ratha

>>>
>>>
>>>
>>> --
>>> -Ratha
>>>
>>
>>
>>
>> --
>> -Ratha
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> --
> *Sinthuja Rajendran*
> Senior Software Engineer 
> WSO2, Inc.:http://wso2.com
>
> Blog: http://sinthu-rajan.blogspot.com/
> Mobile: +94774273955
>
>
>

-- 
*Sinthuja Rajendran*
Senior Software Engineer 
WSO2, Inc.:http://wso2.com

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


[Dev] [AF] [Undeployer] Which bundle should include JenkinsStratosUndeployer

2014-12-15 Thread Danushka Fernando
Hi AF devs,
IIRC deployers package contains all interfaces and abstract classes and
what ever connector we write to a deploy system we should write an
implementation. Correct me if I am wrong.
In that case IMO JenkinsStratosUndeployer should go in to the jenkins
plugins not in to the deployers package. WDYT?


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


Re: [Dev] SSLHandShake issue when invoking https endpoint from ESB

2014-12-15 Thread Malaka Silva
Hi Vijitha,

Try importing the keystore into client truststore using the following
command.

Similar is also done in [1]

   1.

keytool -importcert -file  -keystore
/repository/resources/security/client-truststore.jks -alias
"TrustCertImport"

   2.

   Restart the server.

[1]
https://github.com/wso2-dev/esb-connectors/blob/master/basecamp/basecamp-connector/basecamp-connector-1.0.0/README.txt

On Mon, Dec 15, 2014 at 11:37 AM, Waruna Perera  wrote:
>
> Hi Vijitha,
>
> Pls try debug using *-Djavax.net.debug=all* and see the output.
>
> Thanks,
>
> On Mon, Dec 15, 2014 at 11:34 AM, Vijitha Ekanayake 
> wrote:
>
>> Hi,
>>
>>  i was trying to invoke a HTTPS endpoint using ESB proxy service. it
>> gives following SSLHandShakeException. If i call the endpoint directly
>> from advanced rest client tool provided by google chrome, I am able to get
>> the successful response. i used [1] as a reference material.
>>
>> Steps i followed
>> 1. generated a custom certificate using keytool
>> 2. configured web server (tomcat) with created keystore.
>> 3. exported public certificate to .crt file
>> 4. added .crt to wso2carbon.jks and client-truststore.jks
>> 5. change axis2.xml parameter as > name="HostnameVerifier">AllowAll
>>
>> Can anyone help me to sort out this issue?
>>
>> following exception printed out in the terminal
>>
>> [2014-12-15 08:40:04,243] ERROR - SourceHandler I/O error: null cert chain
>>
>> javax.net.ssl.SSLHandshakeException: null cert chain
>>
>> at
>> com.sun.net.ssl.internal.ssl.Handshaker.checkThrown(Handshaker.java:1015)
>>
>> at
>> com.sun.net.ssl.internal.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:485)
>>
>> at
>> com.sun.net.ssl.internal.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1108)
>>
>> at
>> com.sun.net.ssl.internal.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1080)
>>
>> at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:452)
>>
>> at
>> org.apache.http.nio.reactor.ssl.SSLIOSession.doWrap(SSLIOSession.java:220)
>>
>> at
>> org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:254)
>>
>> at
>> org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:380)
>>
>> at
>> org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:118)
>>
>> at
>> org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:160)
>>
>> at
>> org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:342)
>>
>> at
>> org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:320)
>>
>> at
>> org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)
>>
>> at
>> org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106)
>>
>> at
>> org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:604)
>>
>> at java.lang.Thread.run(Thread.java:695)
>>
>> Caused by: javax.net.ssl.SSLHandshakeException: null cert chain
>>
>> at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
>>
>> at
>> com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1447)
>>
>> at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:243)
>>
>> at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:231)
>>
>> at
>> com.sun.net.ssl.internal.ssl.ServerHandshaker.clientCertificate(ServerHandshaker.java:1372)
>>
>> at
>> com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:160)
>>
>> at
>> com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
>>
>> at com.sun.net.ssl.internal.ssl.Handshaker$1.run(Handshaker.java:533)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>>
>> at
>> com.sun.net.ssl.internal.ssl.Handshaker$DelegatedTask.run(Handshaker.java:952)
>>
>> at
>> org.apache.http.nio.reactor.ssl.SSLIOSession.doRunTask(SSLIOSession.java:238)
>>
>> at
>> org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:270)
>> [1]
>> http://sahanlm.blogspot.com/2013/10/wso2-esb-exposing-secure-backend.html
>>
>> --
>> Vijitha Ekanayake
>> Software Engineer*, *WSO2, Inc.; http://wso2.com/
>> Mobile : +94 777 24 73 39 | +94 718 74 44 08
>> lean.enterprise.middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> --
> Waruna Perera
> Senior Software Engineer - Test Automation
> Mobile: +94 77 3867037
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middlewa

Re: [Dev] [ES] Cannot create an Asset Type

2014-12-15 Thread Isuruwan Herath
Short name type should match pattern "([a-zA-Z0-9])+" if you haven't
modified the default shortNameType in rxt.xsd . Also it seems you have an
additional  tag below Createdtime. Try correcting them and check.


On Mon, Dec 15, 2014 at 5:14 PM, Shiva Balachandran  wrote:
>
> Hi Himasha,
>
> Nope, does not fix the issue.
>
> Thank you.
>
> Regards,
>
>
> On Mon, Dec 15, 2014 at 5:11 PM, Himasha Guruge  wrote:
>>
>> Hi Shiva,
>>
>> I'm not sure if dashes are supported ( shortName="E-Process" ) , try
>> without it and see.
>>
>> Thanks & Regards,
>> Himasha
>>
>> On Mon, Dec 15, 2014 at 5:07 PM, Shiva Balachandran 
>> wrote:
>>
>>> Hi All,
>>>
>>> I am using ES 2.0.0, trying to create a new asset type and i encounter
>>> this error.
>>>
>>> ManageGenericArtifactServiceRegistryExceptionException
>>>
>>> You can find my RXT below, what could be causing this error,
>>>
>>> 
>>> >> shortName="E-Process" singularLabel="Executable Process"
>>> pluralLabel="Executable Processes"
>>>   hasNamespace="false" iconSet="10">
>>>
>>> /eprocess/@{overview_provider}/@{overview_name}/@{overview_version}
>>> overview_name
>>> 
>>> 
>>> 
>>> >> href="@{storagePath}"/>
>>> 
>>> 
>>> >> href="@{storagePath}"/>
>>> 
>>> 
>>> >> href="@{storagePath}"/>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Provider
>>> 
>>> 
>>> Name
>>> 
>>> 
>>> Version
>>> 
>>> 
>>> Createdtime
>>> 
>>>  
>>> 
>>> Description
>>> 
>>> 
>>> 
>>> 
>>> Owner
>>> 
>>> 
>>> Deployment URL
>>> 
>>> 
>>> Webapp URL
>>> 
>>> 
>>> IT Support
>>> 
>>> 
>>> Developers
>>> 
>>> 
>>> Predecessors
>>> 
>>> 
>>> Sucessors
>>> 
>>> 
>>> Generalizations
>>> 
>>> 
>>> Specializations
>>> 
>>> 
>>> 
>>> 
>>> Thumbnail
>>> 
>>> 
>>> Banner
>>> 
>>> 
>>> Process Archive
>>> 
>>>
>>> 
>>> 
>>>
>>> 
>>>
>>> Thank you.
>>>
>>> Regards,
>>>
>>> --
>>> Shiva Balachandran
>>> Software Engineer
>>> WSO2 Inc.
>>>
>>> Mobile - +94 774445788
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> --
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299
>> himas...@wso2.com
>>
>
>
> --
> Shiva Balachandran
> Software Engineer
> WSO2 Inc.
>
> Mobile - +94 774445788
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

-- 
Isuruwan Herath
Technical Lead

Contact: +94 776 273 296
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: Change user passwords from a jaggery app inside UES

2014-12-15 Thread Thiwanka Makumburage
Hi,

Is there a possibility of changing user passwords in the registry, from
a jaggery app inside UES? Following jaggery example seems to be not working
inside UES.

http://jaggeryjs.org/documentation.jag?api=UserManager

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


[Dev] [MB][MQTT] By passing the message store for QoS 0 flows when running in stand alone mode

2014-12-15 Thread Pamod Sylvester
Hi All,

Since QoS 0 in MQTT is a performance oriented delivery mode, an in-memory
based message store was implemented to bypass the message database when
running MB in stand alone mode, however when running in cluster in-memory
store will not be applicable, since in order to exchange messages across
the cluster, it requires a mechanism to communicate between brokers (Which
will be introduced in future MB versions)

In Stand-Alone mode the current message flow would be similar to the
following,

Publisher ---> Message ---> Deliver from In-Memory Store ---> Deliver from
Andes Kernal Store ---> Message ---> Subscription

In the above flow, the subscriptions with QoS 0 would receive the messages
through the in-memory store and the also currently the published message
would be sent to the Andes kernal as well. Since for the same topic there
could be subscriptions which are > QoS 0. Making a call to Andes Kernal
strore would not make much sense if there're no subscriptions for a
particular topic which is > QoS 0, also it will cause additional operation
overhead. Therefore, we're in the process of implementing a solution which
would be able to identify whether there are subscriptions > QoS 0 for a
given topic to identify the necessity to perform a call to the store.

If we maintain the state of topics which has subscriptions > QoS 0, for
each message published it would require to iterate through all the
subscriptions O(n), since there will be cases where the published topic
will not 1:1 map with the subscribed topic, (i.e hierarchical topics with
wildcards). In order to minimize the iteration cycles one option would be
to partition subscriptions based on its attributes such as hierarchy,
inclusive of wild card characters etc so that we could omit odds and
iterate only through the possibilities.

WDYT ? Please do advice on most optimized ways of filtering out matching
subscriptions.

Thanks,
Pamod

-- 
*Pamod Sylvester *
 *Senior Software Engineer *
Integration Technologies Team, WSO2 Inc.; http://wso2.com
email: pa...@wso2.com cell: +94 77 7779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB JSON related scenarios - Writing of Automation Test cases

2014-12-15 Thread Dimuthu De Lanerolle
Hi Krishantha,

Pull request sent. (https://github.com/wso2-dev/product-esb/pull/122)

Regards

On Fri, Dec 12, 2014 at 11:03 PM, Dimuthu De Lanerolle 
wrote:
>
> Hi Krishantha,
>
> We were able to complete implementing all test cases (except Script
> mediator scenario) and I have updated the test case document accordingly.
>
> Further we noted that embedded Tomcat server in the service-samples module
> is starting up with some exceptions and fails to deploy JaxRs services
> correctly. Hence we were not able use this Tomcat instance to send JSON
> requests and receive responses as expected. I was able to fix this issue
> after resolving a maven dependency conflict. However now it seems Tomcat
> server fails to restart with throwing "Address already in use" exception
> when running tests continuously. We are currently further investigating
> this problem and I will send the pull request ASAP once we identify the fix
> for this.
>
>
> Regards
>
> On Fri, Dec 12, 2014 at 7:51 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>>
>> Hi Dimuthu,
>>
>> Can you update the progress of test cases. Are we good to send the pull
>> request to ESB.
>>
>> Thanks,
>> Krishantha.
>>
>> On Wed, Dec 3, 2014 at 5:06 PM, Dimuthu De Lanerolle 
>> wrote:
>>>
>>> Hi Jerad,
>>>
>>> Thanks for the response. Will consider this aswell.
>>>
>>> Regards
>>>
>>>
>>> On Wednesday, 3 December 2014, Jerad Rutnam  wrote:
>>>
 Hi Dimuthu,

 Here is the "Test Scenarios" doc we prepared when adding "JSON support
 for Iterate/Aggregate/Clone/Enrich mediators" [1]. Just see if this will be
 useful for anything.

 [1]
 https://docs.google.com/a/wso2.com/spreadsheets/d/1Unh0iJI7LaXcTg_ure5FPveJ0KmDU10NZ1GmP_ov3Eg

 Thanks,
 Jerad

 On Tue, Dec 2, 2014 at 6:51 PM, Dimuthu De Lanerolle >>> > wrote:

> We are in the process of writing automation tests for JSON related
> scenarios for ESB 4.9.0- SNAPSHOT. We have identified several test
> scenarios as mentioned in the doc [1] . ( Pls update the this thread if I
> have missed any test case scenarios. )
>
> [1]
> https://docs.google.com/a/wso2.com/spreadsheets/d/1PQ-FDysiHMozhOcp4hUKnnITIbY5zUb-_-yeRfXnGeA/edit#gid=0
>
> Regards
>
> --
> Dimuthu De Lanerolle
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middlewear.
> http://wso2.com/
> Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Jerad Rutnam | **Software Engineer - UI*
 WSO2, Inc. www.wso2.com

 *Email: je...@wso2.com*

>>>
>>>
>>> --
>>> Dimuthu De Lanerolle
>>> Software Engineer
>>> WSO2 Inc.
>>> lean . enterprise . middlewear.
>>> http://wso2.com/
>>> Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> --
>> Krishantha Samaraweera
>> Senior Technical Lead - Test Automation
>> Mobile: +94 77 7759918
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
> --
> Dimuthu De Lanerolle
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middlewear.
> http://wso2.com/
> Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
>
>

-- 
Dimuthu De Lanerolle
Software Engineer
WSO2 Inc.
lean . enterprise . middlewear.
http://wso2.com/
Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please merge pull request to ESB - New Jaxrs service and Json related Integration Tests

2014-12-15 Thread Dimuthu De Lanerolle
Hi ESB Team,

Please merge the pull request [1] to ESB which adds a new Jaxrs service -
returning JSON objects together with JSON related Integration Tests
scenarios.

[1] https://github.com/wso2-dev/product-esb/pull/122

Regards
-- 
Dimuthu De Lanerolle
Software Engineer
WSO2 Inc.
lean . enterprise . middlewear.
http://wso2.com/
Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Cannot create an Asset Type

2014-12-15 Thread Shiva Balachandran
Hi Himasha,

Nope, does not fix the issue.

Thank you.

Regards,


On Mon, Dec 15, 2014 at 5:11 PM, Himasha Guruge  wrote:
>
> Hi Shiva,
>
> I'm not sure if dashes are supported ( shortName="E-Process" ) , try
> without it and see.
>
> Thanks & Regards,
> Himasha
>
> On Mon, Dec 15, 2014 at 5:07 PM, Shiva Balachandran 
> wrote:
>
>> Hi All,
>>
>> I am using ES 2.0.0, trying to create a new asset type and i encounter
>> this error.
>>
>> ManageGenericArtifactServiceRegistryExceptionException
>>
>> You can find my RXT below, what could be causing this error,
>>
>> 
>> > shortName="E-Process" singularLabel="Executable Process"
>> pluralLabel="Executable Processes"
>>   hasNamespace="false" iconSet="10">
>>
>> /eprocess/@{overview_provider}/@{overview_name}/@{overview_version}
>> overview_name
>> 
>> 
>> 
>> > href="@{storagePath}"/>
>> 
>> 
>> > href="@{storagePath}"/>
>> 
>> 
>> > href="@{storagePath}"/>
>> 
>> 
>> 
>> 
>> 
>> 
>> Provider
>> 
>> 
>> Name
>> 
>> 
>> Version
>> 
>> 
>> Createdtime
>> 
>>  
>> 
>> Description
>> 
>> 
>> 
>> 
>> Owner
>> 
>> 
>> Deployment URL
>> 
>> 
>> Webapp URL
>> 
>> 
>> IT Support
>> 
>> 
>> Developers
>> 
>> 
>> Predecessors
>> 
>> 
>> Sucessors
>> 
>> 
>> Generalizations
>> 
>> 
>> Specializations
>> 
>> 
>> 
>> 
>> Thumbnail
>> 
>> 
>> Banner
>> 
>> 
>> Process Archive
>> 
>>
>> 
>> 
>>
>> 
>>
>> Thank you.
>>
>> Regards,
>>
>> --
>> Shiva Balachandran
>> Software Engineer
>> WSO2 Inc.
>>
>> Mobile - +94 774445788
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> --
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>


-- 
Shiva Balachandran
Software Engineer
WSO2 Inc.

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


Re: [Dev] [ES] Cannot create an Asset Type

2014-12-15 Thread Himasha Guruge
Hi Shiva,

I'm not sure if dashes are supported ( shortName="E-Process" ) , try
without it and see.

Thanks & Regards,
Himasha

On Mon, Dec 15, 2014 at 5:07 PM, Shiva Balachandran  wrote:
>
> Hi All,
>
> I am using ES 2.0.0, trying to create a new asset type and i encounter
> this error.
>
> ManageGenericArtifactServiceRegistryExceptionException
>
> You can find my RXT below, what could be causing this error,
>
> 
>  shortName="E-Process" singularLabel="Executable Process"
> pluralLabel="Executable Processes"
>   hasNamespace="false" iconSet="10">
>
> /eprocess/@{overview_provider}/@{overview_name}/@{overview_version}
> overview_name
> 
> 
> 
>  href="@{storagePath}"/>
> 
> 
>  href="@{storagePath}"/>
> 
> 
>  href="@{storagePath}"/>
> 
> 
> 
> 
> 
> 
> Provider
> 
> 
> Name
> 
> 
> Version
> 
> 
> Createdtime
> 
>  
> 
> Description
> 
> 
> 
> 
> Owner
> 
> 
> Deployment URL
> 
> 
> Webapp URL
> 
> 
> IT Support
> 
> 
> Developers
> 
> 
> Predecessors
> 
> 
> Sucessors
> 
> 
> Generalizations
> 
> 
> Specializations
> 
> 
> 
> 
> Thumbnail
> 
> 
> Banner
> 
> 
> Process Archive
> 
>
> 
> 
>
> 
>
> Thank you.
>
> Regards,
>
> --
> Shiva Balachandran
> Software Engineer
> WSO2 Inc.
>
> Mobile - +94 774445788
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ES] Cannot create an Asset Type

2014-12-15 Thread Shiva Balachandran
Hi All,

I am using ES 2.0.0, trying to create a new asset type and i encounter this
error.

ManageGenericArtifactServiceRegistryExceptionException

You can find my RXT below, what could be causing this error,




/eprocess/@{overview_provider}/@{overview_name}/@{overview_version}
overview_name
















Provider


Name


Version


Createdtime

 

Description




Owner


Deployment URL


Webapp URL


IT Support


Developers


Predecessors


Sucessors


Generalizations


Specializations




Thumbnail


Banner


Process Archive







Thank you.

Regards,

-- 
Shiva Balachandran
Software Engineer
WSO2 Inc.

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


Re: [Dev] Unable to automate a UI test case with Selenium for a file uploading in Jaggery

2014-12-15 Thread Supun Sethunga
Hi Krishantha,

Thanks for looking in to it. Will go with the JavaScriptExecutor method
then.

Thanks,
Supun

On Mon, Dec 15, 2014 at 4:35 PM, Krishantha Samaraweera  wrote:
>
> Hi Supun,
>
> I tried out several alternative options to automate your scenario without
> enabling input filed visibility, but non of them works.
>
> So our recommendation is to go with JavaScriptExecutor. If something
> cannot be directly automated, you need to inject testability into your
> code, thus altering the application behaviour at run time to provide
> automate friendly UI is okay. You can use following code snippet as a
> reference.
>
> WebDriver driver = new FirefoxDriver();
> driver.get("http://localhost:9763/mlUI/";); //don't hard code the
> URL
>
> driver.findElement(By.xpath("//input[@name='username']")).sendKeys("admin");
>
> driver.findElement(By.xpath("//input[@name='password']")).sendKeys("admin");
>
>
> driver.findElement(By.xpath("//input[@class='blueButton']")).click();
>
> driver.findElement(By.xpath("//img[@id='new_project_img']")).click();
>
>
> driver.findElement(By.xpath("//input[@id='projectName']")).sendKeys("testProject");
>
> driver.findElement(By.xpath("//textarea[@id='projectDescription']")).sendKeys("testDesc");
>
> driver.findElement(By.xpath("//input[@id='workflowName']")).sendKeys("workflow");
>
> JavascriptExecutor js = (JavascriptExecutor) driver;
>
> js.executeScript("document.getElementById(\"datasetName\").disabled =
> false;");
>
> driver.findElement(By.xpath("//input[@id='datasetName']")).sendKeys("/Users/krishantha/Desktop/train.csv");
>
> Thanks,
> Krishantha.
>
>
>
> On Mon, Dec 15, 2014 at 10:17 AM, Supun Sethunga  wrote:
>>
>> Hi Awanthika,
>>
>> Thanks for the link. But in my case, the hidden field is a > type=file> element, of which i want to change the 'value' (set the file
>> path). This is not possible through JavaScript for security reasons [1] ,
>> [2]. Workaround is to change the 'visibility' through javaScript which is
>> possible, and then trigger it using selenium. But this again brings the
>> concern on changing the application by a test case, which Saneth has
>> mentioned above.
>>
>> [1]
>> http://stackoverflow.com/questions/20537696/remember-and-repopulate-file-input/20537822#20537822
>> [2]
>> http://stackoverflow.com/questions/1696877/how-to-set-a-value-to-a-file-input-in-html
>>
>> Thanks,
>> Supun
>>
>> On Mon, Dec 15, 2014 at 8:39 AM, Awanthika Senarath 
>> wrote:
>>>
>>> Hi Supun,
>>>
>>> This post [1] discusses few suggestions on triggering hidden div
>>> elements.
>>>
>>> [1]
>>> http://stackoverflow.com/questions/12040615/selenium-webdriver-clicking-on-hidden-element
>>>
>>> thanks and regards
>>>
>>> On Mon, Dec 15, 2014 at 7:35 AM, Supun Sethunga  wrote:
>>>
 Hi Krishantha,

 Test cases hasn't been pushed to any remote repo yet. Will share the
 local copy of the pack, which includes the test cases, with you.

 Regards,
 Supun

 On Sat, Dec 13, 2014 at 10:28 AM, Krishantha Samaraweera <
 krishan...@wso2.com> wrote:

> Hi Supun,
>
> Can you share a pack to reproduce this behaviour. Please mention the
> steps to follow.
>
> Thanks,
> Krishantha.
>
>
>
> On Sat, Dec 13, 2014 at 8:33 AM, Supun Sethunga 
> wrote:
>>
>> Hi all,
>>
>> I am writing a test case for a CSV-file uploading function, of a
>> Jaggery page. There is a browse button which allows to browse any file in
>> the file system. Once a file is selected and clicked the 'import' button,
>> file get uploads. Underneath what happens is, once the file is browsed 
>> and
>> selected, it gets assigned to a "*> ='file' name='dataFile'>* " element. Follow is the html code.
>>
>> **
>> * Data Source:*
>> **
>> *> name="datasetName" disabled/>*
>> *> value="Browse" /> *
>> **
>> **
>> *> id="**dataFile**"> *
>> **
>> **
>> *> value="Import"> *
>> **
>>
>> I've not been able trigger this using Selenium driver, since once the
>> 'browse' button is clicked, the popup opens is a OS level window, thus
>> selenium driver cannot handle it. As a workaround, tried setting the file
>> path to the * *html element,
>> rather than browsing the file. But again, Selenium driver is unable to 
>> set
>> the path to this element as it is an 'hidden' element.
>> (As the offline discussion, if I change the visibility of this file
>> element to 'visible', then the Selenium driver can set the file path to 
>> the
>> element, and the import function get triggered correctly.)
>>
>>

Re: [Dev] Writing integration tests to assert on the content of a rest call to an external endpoint.

2014-12-15 Thread Krishantha Samaraweera
Hi Hasintha,

In ESB integration tests, we've used socket server as an endpoint to send
messages. Socket server called "WireMonitor" was implemented to facilitate
message capturing, this server is in test framework at GIT. However it not
available test framework at SVN. If you are working on SVN, please go ahead
and implement your own socket server.

You can find the code at [1].

Thanks,
Krishantha.

[1]
https://github.com/wso2-dev/carbon-platform-integration/blob/master/test-automation-framework/org.wso2.carbon.automation.test.utils/src/main/java/org/wso2/carbon/automation/test/utils/common/WireMonitorServer.java


On Mon, Dec 15, 2014 at 4:28 PM, Johann Nallathamby  wrote:
>
> Hi Krishantha,
>
> We can standup a REST endpoint and listen to HTTP requests. When IS sends
> the notification request this endpoint can persist it to filesystem. The
> framework can then read the file, parse it, assert it and then delete the
> file.
>
> WDYT?
>
> Thanks,
> Johann.
>
> On Mon, Dec 15, 2014 at 11:46 AM, Hasintha Indrajee 
> wrote:
>>
>> Hi all,
>>
>> When a certain operation takes place,  a rest message will be sent to an
>> external endpoint. For an example when a XACML policy update takes place,
>> the information about the updated policy is sent to an external endpoint
>> via a rest call. What would be the way to write integration-tests to this
>> scenario. Are there any samples written ? ie I need to have an external
>> endpoint to consume the message and assert based on the content of the
>> message. The product which the integration test should be written is
>> Identity Server.
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Associate Technical Lead & Product Lead of WSO2 Identity Server
> Integration Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com *
>


-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unable to automate a UI test case with Selenium for a file uploading in Jaggery

2014-12-15 Thread Krishantha Samaraweera
Hi Supun,

I tried out several alternative options to automate your scenario without
enabling input filed visibility, but non of them works.

So our recommendation is to go with JavaScriptExecutor. If something cannot
be directly automated, you need to inject testability into your code, thus
altering the application behaviour at run time to provide automate friendly
UI is okay. You can use following code snippet as a reference.

WebDriver driver = new FirefoxDriver();
driver.get("http://localhost:9763/mlUI/";); //don't hard code the URL

driver.findElement(By.xpath("//input[@name='username']")).sendKeys("admin");

driver.findElement(By.xpath("//input[@name='password']")).sendKeys("admin");


driver.findElement(By.xpath("//input[@class='blueButton']")).click();

driver.findElement(By.xpath("//img[@id='new_project_img']")).click();


driver.findElement(By.xpath("//input[@id='projectName']")).sendKeys("testProject");

driver.findElement(By.xpath("//textarea[@id='projectDescription']")).sendKeys("testDesc");

driver.findElement(By.xpath("//input[@id='workflowName']")).sendKeys("workflow");

JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("document.getElementById(\"datasetName\").disabled
= false;");

driver.findElement(By.xpath("//input[@id='datasetName']")).sendKeys("/Users/krishantha/Desktop/train.csv");

Thanks,
Krishantha.



On Mon, Dec 15, 2014 at 10:17 AM, Supun Sethunga  wrote:
>
> Hi Awanthika,
>
> Thanks for the link. But in my case, the hidden field is a  type=file> element, of which i want to change the 'value' (set the file
> path). This is not possible through JavaScript for security reasons [1] ,
> [2]. Workaround is to change the 'visibility' through javaScript which is
> possible, and then trigger it using selenium. But this again brings the
> concern on changing the application by a test case, which Saneth has
> mentioned above.
>
> [1]
> http://stackoverflow.com/questions/20537696/remember-and-repopulate-file-input/20537822#20537822
> [2]
> http://stackoverflow.com/questions/1696877/how-to-set-a-value-to-a-file-input-in-html
>
> Thanks,
> Supun
>
> On Mon, Dec 15, 2014 at 8:39 AM, Awanthika Senarath 
> wrote:
>>
>> Hi Supun,
>>
>> This post [1] discusses few suggestions on triggering hidden div elements.
>>
>> [1]
>> http://stackoverflow.com/questions/12040615/selenium-webdriver-clicking-on-hidden-element
>>
>> thanks and regards
>>
>> On Mon, Dec 15, 2014 at 7:35 AM, Supun Sethunga  wrote:
>>
>>> Hi Krishantha,
>>>
>>> Test cases hasn't been pushed to any remote repo yet. Will share the
>>> local copy of the pack, which includes the test cases, with you.
>>>
>>> Regards,
>>> Supun
>>>
>>> On Sat, Dec 13, 2014 at 10:28 AM, Krishantha Samaraweera <
>>> krishan...@wso2.com> wrote:
>>>
 Hi Supun,

 Can you share a pack to reproduce this behaviour. Please mention the
 steps to follow.

 Thanks,
 Krishantha.



 On Sat, Dec 13, 2014 at 8:33 AM, Supun Sethunga 
 wrote:
>
> Hi all,
>
> I am writing a test case for a CSV-file uploading function, of a
> Jaggery page. There is a browse button which allows to browse any file in
> the file system. Once a file is selected and clicked the 'import' button,
> file get uploads. Underneath what happens is, once the file is browsed and
> selected, it gets assigned to a "* ='file' name='dataFile'>* " element. Follow is the html code.
>
> **
> * Data Source:*
> **
> * name="datasetName" disabled/>*
> * value="Browse" /> *
> **
> **
> * id="**dataFile**"> *
> **
> **
> * value="Import"> *
> **
>
> I've not been able trigger this using Selenium driver, since once the
> 'browse' button is clicked, the popup opens is a OS level window, thus
> selenium driver cannot handle it. As a workaround, tried setting the file
> path to the * *html element,
> rather than browsing the file. But again, Selenium driver is unable to set
> the path to this element as it is an 'hidden' element.
> (As the offline discussion, if I change the visibility of this file
> element to 'visible', then the Selenium driver can set the file path to 
> the
> element, and the import function get triggered correctly.)
>
> Any idea on how to trigger such a file uploading with Selenium, or any
> workaround?
>
> Much appreciate any help, as this has become a blocker for writing the
> rest of the test cases.
>
> Thanks
> Supun
>
> --
> *Supun Sethunga*
> Software Engineer
> WSO2, Inc.
> lean | enterprise | middleware
>>>

Re: [Dev] Writing integration tests to assert on the content of a rest call to an external endpoint.

2014-12-15 Thread Johann Nallathamby
Hi Krishantha,

We can standup a REST endpoint and listen to HTTP requests. When IS sends
the notification request this endpoint can persist it to filesystem. The
framework can then read the file, parse it, assert it and then delete the
file.

WDYT?

Thanks,
Johann.

On Mon, Dec 15, 2014 at 11:46 AM, Hasintha Indrajee 
wrote:
>
> Hi all,
>
> When a certain operation takes place,  a rest message will be sent to an
> external endpoint. For an example when a XACML policy update takes place,
> the information about the updated policy is sent to an external endpoint
> via a rest call. What would be the way to write integration-tests to this
> scenario. Are there any samples written ? ie I need to have an external
> endpoint to consume the message and assert based on the content of the
> message. The product which the integration test should be written is
> Identity Server.
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Associate Technical Lead & Product Lead of WSO2 Identity Server
Integration Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Handling The Response Without Content Type

2014-12-15 Thread Vanjikumaran Sivajothy
Hi Sriashalaya,
Your statement is not clear to me. Thus, Can you please let  me know when
you get this get worked? after adding malaka's suggestion?
Thanks,
Vanji

On Mon, Dec 15, 2014 at 2:44 PM, Sriashalya Srivathsan 
wrote:
>
> Here I'm attaching two wire logs.
>
> On Mon, Dec 15, 2014 at 2:17 PM, Vanjikumaran Sivajothy 
> wrote:
>>
>> Hi Sriashalaya,
>>
>> In that case, can you please end us Wire log of both scenario?
>>
>>
>> On Mon, Dec 15, 2014 at 2:12 PM, Sriashalya Srivathsan 
>> wrote:
>>>
>>> It is working perfectly through the api method also.But problem with the
>>> template.
>>>
>>>
>>> 
>>>   
>>>  
>>> >> type="STRING"/>
>>> >> action="remove"/>
>>> 
>>>
>>>   >> uri-template="
>>> https://accounts.zoho.com/apiauthtoken/nb/create?SCOPE=ZohoInvoice/invoiceapi&EMAIL_ID=watsa...@yahoo.com&PASSWORD=12345678
>>> "/>
>>>
>>> 
>>> 
>>>  
>>>   
>>>
>>>
>>> On Mon, Dec 15, 2014 at 12:07 PM, Sriashalya Srivathsan <
>>> asha...@wso2.com> wrote:

 *Actual Endpoint*

 https://accounts.zoho.com/apiauthtoken/nb/create?SCOPE=ZohoInvoice/invoiceapi&EMAIL_ID=watsa...@yahoo.com&PASSWORD=12345678



 On Mon, Dec 15, 2014 at 11:51 AM, Vanjikumaran Sivajothy <
 va...@wso2.com> wrote:
>
> Can you please send us the reproducing steps.
>
> 1) Synapse configuration (REST API or Proxy)
> 2) Payload for WSO2 ESB
> 3) Actual endpoint
> 4) Actual payload for the endpoint
>
> On Mon, Dec 15, 2014 at 11:48 AM, Sriashalya Srivathsan <
> asha...@wso2.com> wrote:
>>
>> I've added following 3 types to the axis2.xml file in ESB
>>
>>- In the parameters section: >name="DEFAULT_REQUEST_CONTENT_TYPE" 
>> locked="false">empty/content
>>- In the message builders section: >contentType="empty/content"
>>class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
>>- In the message formatters section: >contentType="empty/content"
>>class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
>>
>> but still I'm getting the same error.
>>
>> On Fri, Dec 12, 2014 at 2:09 PM, Vanjikumaran Sivajothy <
>> va...@wso2.com> wrote:
>>>
>>> Hi,
>>>
>>> In the synapse code ClientWorker.java[1] has the method to handle
>>> the content type when there is no content-type with the payload.
>>> And default content type is application/octet-stream hence, your
>>> response is get build as binary.
>>>
>>>
>>> Please follow the Malaka's suggestion.
>>>
>>> Thanks
>>>
>>>
>>> [1]
>>>
>>>
>>> private String inferContentType() { //Check whether server sent
>>> Content-Type in different case Map headers = response
>>> .getHeaders(); for(String header : headers.keySet()){ if(HTTP.
>>> CONTENT_TYPE.equalsIgnoreCase(header)){ return headers.get(header);
>>> } } String cType = response.getHeader("content-type"); if (cType !=
>>> null) { return cType; } cType = response.getHeader("Content-type");
>>> if (cType != null) { return cType; } // Try to get the content type
>>> from the message context Object cTypeProperty = responseMsgCtx.
>>> getProperty(PassThroughConstants.CONTENT_TYPE); if (cTypeProperty !=
>>> null) { return cTypeProperty.toString(); } // Try to get the
>>> content type from the axis configuration Parameter cTypeParam =
>>> cfgCtx.getAxisConfiguration().getParameter( PassThroughConstants.
>>> CONTENT_TYPE); if (cTypeParam != null) { return cTypeParam.
>>> getValue().toString(); } // When the response from backend does not
>>> have the body(Content-Length is 0 ) // and Content-Type is not set;
>>> ESB should not do any modification to the response and pass-through as 
>>> it
>>> is. if (headers.get(HTTP.CONTENT_LEN) == null || "0".equals(headers.
>>> get(HTTP.CONTENT_LEN))) { return null; } // Unable to determine the
>>> content type - Return default value * return
>>> PassThroughConstants.DEFAULT_CONTENT_TYPE;* }
>>>
>>>
>>> On Fri, Dec 12, 2014 at 12:28 PM, Malaka Silva 
>>> wrote:

 Hi Sriashalya,

 Can you try section 'Handling messages with no content type' in [1].

 Also in this case you can try building using builder mediator [2]

 [1]
 https://docs.wso2.com/display/ESB481/Working+with+Message+Builders+and+Formatters

 [2] https://docs.wso2.com/display/ESB481/Builder+Mediator

 Best Regards,
 Malaka

 On Fri, Dec 12, 2014 at 10:24 AM, Sriashalya Srivathsan <
 asha...@wso2.com> wrote:
>
> When I send the request to back end ,it sends the response without
> any content type.So ESB sends the binary forma

Re: [Dev] Handling The Response Without Content Type

2014-12-15 Thread Vanjikumaran Sivajothy
Hi Sriashalaya,

In that case, can you please end us Wire log of both scenario?


On Mon, Dec 15, 2014 at 2:12 PM, Sriashalya Srivathsan 
wrote:
>
> It is working perfectly through the api method also.But problem with the
> template.
>
>
> 
>   
>  
>  type="STRING"/>
> 
> 
>
>uri-template="
> https://accounts.zoho.com/apiauthtoken/nb/create?SCOPE=ZohoInvoice/invoiceapi&EMAIL_ID=watsa...@yahoo.com&PASSWORD=12345678
> "/>
>
> 
> 
>  
>   
>
>
> On Mon, Dec 15, 2014 at 12:07 PM, Sriashalya Srivathsan 
> wrote:
>>
>> *Actual Endpoint*
>>
>> https://accounts.zoho.com/apiauthtoken/nb/create?SCOPE=ZohoInvoice/invoiceapi&EMAIL_ID=watsa...@yahoo.com&PASSWORD=12345678
>>
>>
>>
>> On Mon, Dec 15, 2014 at 11:51 AM, Vanjikumaran Sivajothy 
>> wrote:
>>>
>>> Can you please send us the reproducing steps.
>>>
>>> 1) Synapse configuration (REST API or Proxy)
>>> 2) Payload for WSO2 ESB
>>> 3) Actual endpoint
>>> 4) Actual payload for the endpoint
>>>
>>> On Mon, Dec 15, 2014 at 11:48 AM, Sriashalya Srivathsan <
>>> asha...@wso2.com> wrote:

 I've added following 3 types to the axis2.xml file in ESB

- In the parameters section: >>>name="DEFAULT_REQUEST_CONTENT_TYPE" 
 locked="false">empty/content
- In the message builders section: >>>contentType="empty/content"
class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
- In the message formatters section: >>>contentType="empty/content"
class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>

 but still I'm getting the same error.

 On Fri, Dec 12, 2014 at 2:09 PM, Vanjikumaran Sivajothy >>> > wrote:
>
> Hi,
>
> In the synapse code ClientWorker.java[1] has the method to handle the
> content type when there is no content-type with the payload.
> And default content type is application/octet-stream hence, your
> response is get build as binary.
>
>
> Please follow the Malaka's suggestion.
>
> Thanks
>
>
> [1]
>
>
> private String inferContentType() { //Check whether server sent
> Content-Type in different case Map headers = response.
> getHeaders(); for(String header : headers.keySet()){ if(HTTP.
> CONTENT_TYPE.equalsIgnoreCase(header)){ return headers.get(header); }
> } String cType = response.getHeader("content-type"); if (cType != null)
> { return cType; } cType = response.getHeader("Content-type"); if
> (cType != null) { return cType; } // Try to get the content type from
> the message context Object cTypeProperty = responseMsgCtx.getProperty(
> PassThroughConstants.CONTENT_TYPE); if (cTypeProperty != null) {
> return cTypeProperty.toString(); } // Try to get the content type
> from the axis configuration Parameter cTypeParam = cfgCtx.
> getAxisConfiguration().getParameter( PassThroughConstants.CONTENT_TYPE
> ); if (cTypeParam != null) { return cTypeParam.getValue().toString();
> } // When the response from backend does not have the
> body(Content-Length is 0 ) // and Content-Type is not set; ESB should
> not do any modification to the response and pass-through as it is. if
> (headers.get(HTTP.CONTENT_LEN) == null || "0".equals(headers.get(HTTP.
> CONTENT_LEN))) { return null; } // Unable to determine the content
> type - Return default value * return
> PassThroughConstants.DEFAULT_CONTENT_TYPE;* }
>
>
> On Fri, Dec 12, 2014 at 12:28 PM, Malaka Silva 
> wrote:
>>
>> Hi Sriashalya,
>>
>> Can you try section 'Handling messages with no content type' in [1].
>>
>> Also in this case you can try building using builder mediator [2]
>>
>> [1]
>> https://docs.wso2.com/display/ESB481/Working+with+Message+Builders+and+Formatters
>>
>> [2] https://docs.wso2.com/display/ESB481/Builder+Mediator
>>
>> Best Regards,
>> Malaka
>>
>> On Fri, Dec 12, 2014 at 10:24 AM, Sriashalya Srivathsan <
>> asha...@wso2.com> wrote:
>>>
>>> When I send the request to back end ,it sends the response without
>>> any content type.So ESB sends the binary format to the REST Client.
>>>
>>> Can anyone please help me to handle this situation.
>>>
>>>
>>>
>>> [2014-12-11 16:53:24,701] DEBUG - wire >> "POST
>>> /services/zoho_GetAuthToken HTTP/1.1[\r][\n]"
>>> [2014-12-11 16:53:24,701] DEBUG - wire >> "Host:
>>> sriashalyas-macbook-pro.local:8280[\r][\n]"
>>> [2014-12-11 16:53:24,701] DEBUG - wire >> "Connection:
>>> keep-alive[\r][\n]"
>>> [2014-12-11 16:53:24,701] DEBUG - wire >> "Content-Length:
>>> 59[\r][\n]"
>>> [2014-12-11 16:53:24,702] DEBUG - wire >> "Cache-Control:
>>> no-cache[\r][\n]"
>>> [2014-12-11 16:53:24,702] DEBUG - wire >> "Origin:
>>> chrome-extensi