[Dev] [DevStudio] Please review and merge the pull request : TOOLS-2378

2015-02-04 Thread Rajeevan Vimalanathan
Hi,

Please merge the pull request[1] that includes fix for JIRA[2].

[1] https://github.com/wso2/developer-studio/pull/38

[2] https://wso2.org/jira/browse/TOOLS-2378

Thanks,
Rajeevan

-- 
Best Regards,
V.Rajeevan
Software Engineer,
WSO2 Inc. :http://wso2.com

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


Re: [Dev] WSO2 ESB 4.9.0 M5 Released..!

2015-02-04 Thread Malaka Silva
Can we get local copy to repo and continue from that?

On Thu, Feb 5, 2015 at 1:06 PM, Sachini Jayasekara 
wrote:

> Hi,
>
> I created a repo locally for the issue I worked.
>
> git repository for building p2-repo for 4.3.0 can be found at [1].
>
>
> [1] https://github.com/wso2/carbon-feature-repository
>
>
> Thanks,
> Sachini
>
> On Thu, Feb 5, 2015 at 12:26 PM, Malaka Silva  wrote:
>
>> Hi,
>>
>> I think Sachini has created this.
>>
>> @Sachini - Can you provide the details pls?
>>
>> On Thu, Feb 5, 2015 at 10:38 AM, Isuru Ranawaka  wrote:
>>
>>> Hi Shaventha ,
>>>
>>> Currently  there is no P2 repo
>>>
>>> On Thu, Feb 5, 2015 at 9:05 AM, Shavantha Weerasinghe <
>>> shavan...@wso2.com> wrote:
>>>
 Hi Isuru

 Is there a P2 Repo for ESB 490

 Regards,

 Shavantha Weerasinghe
 Senior Software Engineer QA
 WSO2, Inc.
 lean.enterprise.middleware.
 http://wso2.com
 http://wso2.org
 Tel : 94 11 214 5345
 Fax :94 11 2145300


 On Mon, Jan 26, 2015 at 6:03 PM, Isuru Ranawaka 
 wrote:

>
> Hi all,
>
> Please download WSO2 ESB 4.9.0 M5 from this location [1]. The main
> purpose of this release is to add multi tenancy support in  HTTP
> Inbound Endpoint and reduced bug count.Following are the list of public
> Jiras resolved since M4 release.
>
> Bug
>
>- [ESBJAVA-2330 ] -
>Couldn't send a request to Tenant main sequence
>- [ESBJAVA-2336 ] -
>Faulty Proxy deployed from cApp not deleted/removed from UI
>- [ESBJAVA-2345 ] -
>[ESB 4.7] Local Transport Settings not saved after server restart
>- [ESBJAVA-2577 ] -
>[ELB] response body gets dropped when coming through ELB
>- [ESBJAVA-2737 ] -
>Proxy displayed as secured when enabling response cache when locat
>transport is enabled.
>- [ESBJAVA-2750 ] -
>org.apache.axis2.AxisFault: The endpoint reference (EPR) for the 
> Operation
>not found occurred while invoking rest API
>- [ESBJAVA-2768 ] -
>localEntry can not be given with Google Spreadsheet SetRow
>- [ESBJAVA-2860 ] -
>HTTP Endpoint: Evaluated URI templates should decode all URL encoded
>characters
>- [ESBJAVA-2886 ] -
>Exception when viewing mediation statistics page in tenant mode
>- [ESBJAVA-2889 ] -
>VFS: File not moved to specified failed directory in ftp
>- [ESBJAVA-2956 ] -
>REQUEST_HOST_HEADER appends port 80 to "Host" parameter when invoked as
>tenant and request fails returning HTTP 404
>- [ESBJAVA-2986 ] -
>OMException when timeout occurs with http passthru transport
>- [ESBJAVA-3086 ] -
>HTTP DELETE requests with JSON fails
>- [ESBJAVA-3108 ] -
>Response Caching doesn't work as expected.
>- [ESBJAVA-3110 ] -
>Refering to a non-existent tempalate sequence is not considered an 
> error
>- [ESBJAVA-3126 ] -
>[VFS Transport] Error when trying to read files simultaneously from an 
> FTPS
>folder
>- [ESBJAVA-3134 ] -
>Modules not Engaged After Server Restart
>- [ESBJAVA-3162 ] -
>Error log printed everytime you update the config via master sourceview
>- [ESBJAVA-3170 ] -
>sample 50 has incorrect regex filter
>- [ESBJAVA-3186 ] -
>Scheduling of tasks stops when you edit them during their execution
>- [ESBJAVA-3207 ] -
>Sample 57 is not working
>- [ESBJAVA-3224 ] - ESB
>synapse sample configuration files and documentation are different in
>sample 61 and 62
>- [ESBJAVA-3225 ] -
>Cannot get a registry resource without a Media Type from Class Mediator
>- [ESBJAVA-3237 ] -
>bam.xml file shipped by default with ESB contains
>disable line
>- [E

Re: [Dev] SVG to PDF Converter?

2015-02-04 Thread Dakshika Jayathilaka
Can you share your code. then i can have a look..

Regards,

*Dakshika Jayathilaka*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Thu, Feb 5, 2015 at 12:11 PM, Jerad Rutnam  wrote:

> Hi Dakshika,
>
> I tried *canvg.js* purely, and still no luck. I even tried some other
> methods and libraries for this, ex:-
> https://github.com/exupero/saveSvgAsPng
> But nothing worked so far. I just need to find a method to insert computed
> css styles to inline. Sometimes it might work. Found few other methods to
> do it, but still no luck of getting work. Anyway I will give an update if
> i'm able to find a solution for this.
>
> Thanks,
> Jerad
>
> On Fri, Jan 30, 2015 at 11:46 AM, Jerad Rutnam  wrote:
>
>> And if anyone wants to convert SVG to Canvas without a library, you can
>> use this method. (*Only issue I faced here is that it doesn't have a
>> method to get external styles*)
>>
>> var svgString = new 
>> XMLSerializer().serializeToString(document.querySelector('svg'));
>>
>> var canvas = document.getElementById("canvas");
>> var ctx = canvas.getContext("2d");
>> var DOMURL = self.URL || self.webkitURL || self;
>> var img = new Image();
>> var svg = new Blob([svgString], {type: "image/svg+xml;charset=utf-8"});
>> var url = DOMURL.createObjectURL(svg);
>> img.onload = function() {
>> ctx.drawImage(img, 0, 0);
>> var png = canvas.toDataURL("image/png");
>> document.querySelector('#png-container').innerHTML = '> src="'+png+'"/>';
>> DOMURL.revokeObjectURL(png);
>> };
>> img.src = url;
>>
>> Cheers!
>> Jerad
>>
>>
>> On Fri, Jan 30, 2015 at 11:39 AM, Jerad Rutnam  wrote:
>>
>>> Hi Dakshika,
>>>
>>> Thanks for this. I tried *svgenie *[1] library earlier, which is
>>> depends on *canvg.js. *But it didn't work for me. Anyway didn't try it
>>> pure, so i'll give a try and send you an update.
>>>
>>> [1] - https://github.com/Causata/svgenie
>>>
>>> Regards,
>>> Jerad
>>>
>>> On Fri, Jan 30, 2015 at 10:20 AM, Dakshika Jayathilaka <
>>> daksh...@wso2.com> wrote:
>>>
 Hi,

 I found simple lib to convert SVG to Canvas.

 https://github.com/gabelerner/canvg

 Then you can export it as a image or can convert to PDF as wel..

 Regards,

 *Dakshika Jayathilaka*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware
 0771100911

 On Mon, Jan 26, 2015 at 10:44 AM, Jerad Rutnam  wrote:

> Hi Dimuthu,
>
> Thanks, I'll check this and give you an update.
>
> Regards,
> Jerad
>
> On Mon, Jan 26, 2015 at 10:30 AM, Dimuthu De Lanerolle <
> dimut...@wso2.com> wrote:
>
>> Hi Jerad,
>>
>> I think you can try apache batik-transcoder dependency for this [1]
>>
>> [1]
>> https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleSVG2PDF.java
>>
>>
>>
>> Regards
>>
>> On Mon, Jan 26, 2015 at 8:40 AM, Jerad Rutnam  wrote:
>>
>>> Hi Sagara,
>>>
>>> Currently i'm working on the feature "fit to screen". Once that and
>>> other critical issues are fixed, ill do a research on this.
>>>
>>> Regards,
>>> Jerad
>>>
>>> On Thu, Jan 22, 2015 at 8:27 AM, Jerad Rutnam 
>>> wrote:
>>>
 Hi Vanjikumaran,

 We have developed a Dependency Graph feature for G-Reg using D3.
 And we are thinking of having a function to export the graph to print. 
 So
 thought something like exporting to .PDF would be nice.

 Thanks,
 Jerad

 On Wed, Jan 21, 2015 at 7:20 PM, Vanjikumaran Sivajothy <
 va...@wso2.com> wrote:

> AFAIK, Wso2 products does not use any such feature.
>
> However, What is your exact requirement and use case?
>
> On Wed, Jan 21, 2015 at 10:15 AM, Jerad Rutnam 
> wrote:
>
>> Hi,
>>
>> Are we using any SVG to PDF convert library in our products? Or
>> is there anyway I can achieve this? ex:-
>> http://d3export.housegordon.org/
>>
>> Thanks,
>> Jerad
>> --
>> *Jerad Rutnam*
>> *Software Engineer - UI*
>>
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sivajothy Vanjikumaran
> *Senior Software Engineer*
> *Integration Technologies Team*
> *WSO2 Inc. http://wso2.com *
> *Mobile:(+94)777219209*
> [image: Facebook]  [image:
> Twitter]  [image: LinkedIn]
> 

Re: [Dev] [ESB] Eror Setting up Deployment Synchronizer for Manager Node

2015-02-04 Thread Aruna Karunarathna
Hi Maheeka,

Is this for ESB 4.9.0 version?..

Then I think it's better to use the updated svn-client-adapter for carbon
4.3.0 version and test against newer svn server version (1.8)

Regards,
Aruna

On Thu, Feb 5, 2015 at 11:20 AM, Maheeka Jayasuriya 
wrote:

> Hi all,
>
> Updated the svn-toolkit shared by Harsha and did the config changes as
> mentioned by Jeewantha, and the setup is working now with M5. Thanks.
>
>
>
> Thanks,
>
> Maheeka Jayasuriya
> Software Engineer
> Mobile : +9450661
>
> On Mon, Feb 2, 2015 at 2:57 PM, Priyadarssini Kishokumar <
> priyadarss...@wso2.com> wrote:
>
>> Hi Maheeka,
>>
>> I tried the setup with M4 & M5. Seems some problem in clustering in M4.
>> Please try with M5. It is working fine.
>>
>> On Fri, Jan 30, 2015 at 10:21 PM, Maheeka Jayasuriya 
>> wrote:
>>
>>> Hi Jeewantha,
>>>
>>> I'll retry with your modifications and update here.
>>>
>>>
>>> Thanks,
>>>
>>> Maheeka Jayasuriya
>>> Software Engineer
>>> Mobile : +9450661
>>>
>>> On Fri, Jan 30, 2015 at 7:14 PM, Jeewantha Dharmaparakrama <
>>> jeewan...@wso2.com> wrote:
>>>
 Hi Maheeka,

 I tested Dep synch functionality in ESB 4.9.0 M5 pack and it works
 fine. I followed the same Clustering guide but with few modifications.

 1: Used the exact IP address of my local machine instead of "localhost"
 in clustering configs in both ESB nodes
 2: In the Manager Node  section looks like follows.

   
 
 10.100.0.17
 4010
 
 
 4010 is the Group management port configured in ELB.

 In Worker node

 
 
 10.100.0.17
 4010
 
 
 10.100.0.17
 4100
 
 

 4100 is the LocalMemberPort in Manager node.

 Thanks,
 Jeewantha

 On Fri, Jan 30, 2015 at 2:03 PM, Jeewantha Dharmaparakrama <
 jeewan...@wso2.com> wrote:

> Sure will do.
>
> Thanks,
> Jeewantha
>
> On Fri, Jan 30, 2015 at 1:56 PM, Kasun Indrasiri 
> wrote:
>
>> Hi Jeewantha,
>>
>> Seems like that the clustered deployment is not properly working in
>> 4.9 M4. Can you please check.
>>
>> On Fri, Jan 30, 2015 at 8:05 AM, Harsha Thirimanna 
>> wrote:
>>
>>> Hi,
>>>
>>> Can you try with putting [1] to dropin ?
>>>
>>> [1] http://dist.wso2.org/tools/svnkit-1.3.9.wso2v1.jar
>>>
>>>
>>> *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 Thu, Jan 29, 2015 at 1:54 AM, Aruna Karunarathna 
>>> wrote:
>>>
 Hi Nirmal,


 On Thu, Jan 29, 2015 at 3:11 PM, Nirmal Fernando 
 wrote:

> SVN server has SSLv3 enabled? There was a bug in previous releases
> which is fixed by now AFAIK.
>

 Yesterday, for some testing, I did the same and connected to the
 intern svn without any issues.

 Regards,
 Aruna


>
> On Thu, Jan 29, 2015 at 2:49 PM, Maheeka Jayasuriya <
> mahe...@wso2.com> wrote:
>
>> Hi,
>>
>> I am trying to setup an svn deployment synchronizer for ESB when
>> creating a manager node. However when I enable the synchronizer, ESB 
>> does
>> not start. I continuously get following warning message at [1].
>>
>> The configurations in carbon.xml is :
>>
>> 
>> true
>> true
>> true
>> svn
>> 
>> https://svn.wso2.com/wso2/interns/2013/maheeka/esb_svn/
>> mahe...@wso2.com
>> ***
>> true
>> 
>>
>> I am trying to connect to the intern svn repo. How do I get this
>> working?
>>
>> [1]
>>
>> [2015-01-29 14:20:57,525]  INFO - PermissionUpdater Permission
>> cache updated for tenant -1234
>> [2015-01-29 14:21:57,506]  WARN - AppDeployerServiceComponent
>> Waiting for required OSGi services:
>> org.wso2.carbon.application.deployer.synapse.service.SynapseAppDeployerService,org.wso2.carbon.mediation.initializer.services.SynapseEnvironmentService,
>> [2015-01-29 14:21:57,5

Re: [Dev] WSO2 ESB 4.9.0 M5 Released..!

2015-02-04 Thread Sachini Jayasekara
Hi,

I created a repo locally for the issue I worked.

git repository for building p2-repo for 4.3.0 can be found at [1].


[1] https://github.com/wso2/carbon-feature-repository


Thanks,
Sachini

On Thu, Feb 5, 2015 at 12:26 PM, Malaka Silva  wrote:

> Hi,
>
> I think Sachini has created this.
>
> @Sachini - Can you provide the details pls?
>
> On Thu, Feb 5, 2015 at 10:38 AM, Isuru Ranawaka  wrote:
>
>> Hi Shaventha ,
>>
>> Currently  there is no P2 repo
>>
>> On Thu, Feb 5, 2015 at 9:05 AM, Shavantha Weerasinghe > > wrote:
>>
>>> Hi Isuru
>>>
>>> Is there a P2 Repo for ESB 490
>>>
>>> Regards,
>>>
>>> Shavantha Weerasinghe
>>> Senior Software Engineer QA
>>> WSO2, Inc.
>>> lean.enterprise.middleware.
>>> http://wso2.com
>>> http://wso2.org
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>>
>>>
>>> On Mon, Jan 26, 2015 at 6:03 PM, Isuru Ranawaka  wrote:
>>>

 Hi all,

 Please download WSO2 ESB 4.9.0 M5 from this location [1]. The main
 purpose of this release is to add multi tenancy support in  HTTP
 Inbound Endpoint and reduced bug count.Following are the list of public
 Jiras resolved since M4 release.

 Bug

- [ESBJAVA-2330 ] -
Couldn't send a request to Tenant main sequence
- [ESBJAVA-2336 ] -
Faulty Proxy deployed from cApp not deleted/removed from UI
- [ESBJAVA-2345 ] - [ESB
4.7] Local Transport Settings not saved after server restart
- [ESBJAVA-2577 ] -
[ELB] response body gets dropped when coming through ELB
- [ESBJAVA-2737 ] -
Proxy displayed as secured when enabling response cache when locat
transport is enabled.
- [ESBJAVA-2750 ] -
org.apache.axis2.AxisFault: The endpoint reference (EPR) for the 
 Operation
not found occurred while invoking rest API
- [ESBJAVA-2768 ] -
localEntry can not be given with Google Spreadsheet SetRow
- [ESBJAVA-2860 ] - HTTP
Endpoint: Evaluated URI templates should decode all URL encoded 
 characters
- [ESBJAVA-2886 ] -
Exception when viewing mediation statistics page in tenant mode
- [ESBJAVA-2889 ] - VFS:
File not moved to specified failed directory in ftp
- [ESBJAVA-2956 ] -
REQUEST_HOST_HEADER appends port 80 to "Host" parameter when invoked as
tenant and request fails returning HTTP 404
- [ESBJAVA-2986 ] -
OMException when timeout occurs with http passthru transport
- [ESBJAVA-3086 ] - HTTP
DELETE requests with JSON fails
- [ESBJAVA-3108 ] -
Response Caching doesn't work as expected.
- [ESBJAVA-3110 ] -
Refering to a non-existent tempalate sequence is not considered an error
- [ESBJAVA-3126 ] - [VFS
Transport] Error when trying to read files simultaneously from an FTPS
folder
- [ESBJAVA-3134 ] -
Modules not Engaged After Server Restart
- [ESBJAVA-3162 ] -
Error log printed everytime you update the config via master sourceview
- [ESBJAVA-3170 ] -
sample 50 has incorrect regex filter
- [ESBJAVA-3186 ] -
Scheduling of tasks stops when you edit them during their execution
- [ESBJAVA-3207 ] -
Sample 57 is not working
- [ESBJAVA-3224 ] - ESB
synapse sample configuration files and documentation are different in
sample 61 and 62
- [ESBJAVA-3225 ] -
Cannot get a registry resource without a Media Type from Class Mediator
- [ESBJAVA-3237 ] -
bam.xml file shipped by default with ESB contains
disable line
- [ESBJAVA-3265 ] -
Proxy Configuration (Design View or Source View) can not show the 
 parameter
value properly if they contain comma ','
- [ESBJAVA-3289 ] -
Ad

Re: [Dev] Regarding CEP

2015-02-04 Thread Damith Wickramasinghe
Hi Demini,

its good that fixed your issue. :) I think the issue in CEP 3.1.0 is fixed
in CEP 4.0.0. Feel free to direct us with your issues.

Thanks,
Damith.

On Wed, Feb 4, 2015 at 10:00 PM, Demini Indrachapa  wrote:

> thank you very much sir.
> it works
>
> [?][?]
>
>
> On Wed, Feb 4, 2015 at 7:10 PM, Demini Indrachapa <
> demini.chat...@gmail.com> wrote:
>
>> Sir,
>> in CEP version 3.1.0 it doesn't work. When I set the composite key
>> columns correctly,  I was unable to insert the data also. But I heard from
>> a friend that it was a bottleneck in that version and it will be corrected
>> in the new version.
>>
>> Recently I got the new version (cep 4.0.0)  and I forgot to fill that
>> column.
>> I'll try that one.
>> thank you sir.
>>
>>
>>
>


-- 
Software Engineer
WSO2 Inc.; http://wso2.com

lean.enterprise.middleware

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


Re: [Dev] WSO2 ESB 4.9.0 M5 Released..!

2015-02-04 Thread Malaka Silva
Hi,

I think Sachini has created this.

@Sachini - Can you provide the details pls?

On Thu, Feb 5, 2015 at 10:38 AM, Isuru Ranawaka  wrote:

> Hi Shaventha ,
>
> Currently  there is no P2 repo
>
> On Thu, Feb 5, 2015 at 9:05 AM, Shavantha Weerasinghe 
> wrote:
>
>> Hi Isuru
>>
>> Is there a P2 Repo for ESB 490
>>
>> Regards,
>>
>> Shavantha Weerasinghe
>> Senior Software Engineer QA
>> WSO2, Inc.
>> lean.enterprise.middleware.
>> http://wso2.com
>> http://wso2.org
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>>
>>
>> On Mon, Jan 26, 2015 at 6:03 PM, Isuru Ranawaka  wrote:
>>
>>>
>>> Hi all,
>>>
>>> Please download WSO2 ESB 4.9.0 M5 from this location [1]. The main
>>> purpose of this release is to add multi tenancy support in  HTTP
>>> Inbound Endpoint and reduced bug count.Following are the list of public
>>> Jiras resolved since M4 release.
>>>
>>> Bug
>>>
>>>- [ESBJAVA-2330 ] -
>>>Couldn't send a request to Tenant main sequence
>>>- [ESBJAVA-2336 ] -
>>>Faulty Proxy deployed from cApp not deleted/removed from UI
>>>- [ESBJAVA-2345 ] - [ESB
>>>4.7] Local Transport Settings not saved after server restart
>>>- [ESBJAVA-2577 ] - [ELB]
>>>response body gets dropped when coming through ELB
>>>- [ESBJAVA-2737 ] - Proxy
>>>displayed as secured when enabling response cache when locat transport is
>>>enabled.
>>>- [ESBJAVA-2750 ] -
>>>org.apache.axis2.AxisFault: The endpoint reference (EPR) for the 
>>> Operation
>>>not found occurred while invoking rest API
>>>- [ESBJAVA-2768 ] -
>>>localEntry can not be given with Google Spreadsheet SetRow
>>>- [ESBJAVA-2860 ] - HTTP
>>>Endpoint: Evaluated URI templates should decode all URL encoded 
>>> characters
>>>- [ESBJAVA-2886 ] -
>>>Exception when viewing mediation statistics page in tenant mode
>>>- [ESBJAVA-2889 ] - VFS:
>>>File not moved to specified failed directory in ftp
>>>- [ESBJAVA-2956 ] -
>>>REQUEST_HOST_HEADER appends port 80 to "Host" parameter when invoked as
>>>tenant and request fails returning HTTP 404
>>>- [ESBJAVA-2986 ] -
>>>OMException when timeout occurs with http passthru transport
>>>- [ESBJAVA-3086 ] - HTTP
>>>DELETE requests with JSON fails
>>>- [ESBJAVA-3108 ] -
>>>Response Caching doesn't work as expected.
>>>- [ESBJAVA-3110 ] -
>>>Refering to a non-existent tempalate sequence is not considered an error
>>>- [ESBJAVA-3126 ] - [VFS
>>>Transport] Error when trying to read files simultaneously from an FTPS
>>>folder
>>>- [ESBJAVA-3134 ] -
>>>Modules not Engaged After Server Restart
>>>- [ESBJAVA-3162 ] - Error
>>>log printed everytime you update the config via master sourceview
>>>- [ESBJAVA-3170 ] -
>>>sample 50 has incorrect regex filter
>>>- [ESBJAVA-3186 ] -
>>>Scheduling of tasks stops when you edit them during their execution
>>>- [ESBJAVA-3207 ] -
>>>Sample 57 is not working
>>>- [ESBJAVA-3224 ] - ESB
>>>synapse sample configuration files and documentation are different in
>>>sample 61 and 62
>>>- [ESBJAVA-3225 ] -
>>>Cannot get a registry resource without a Media Type from Class Mediator
>>>- [ESBJAVA-3237 ] -
>>>bam.xml file shipped by default with ESB contains
>>>disable line
>>>- [ESBJAVA-3265 ] - Proxy
>>>Configuration (Design View or Source View) can not show the parameter 
>>> value
>>>properly if they contain comma ','
>>>- [ESBJAVA-3289 ] -
>>>Adding the default Content-Type when there is no body in the response
>>>- [ESBJAVA-3293 ] -
>>>PassThrough Transport ignores axis2:FORCE_HTTP_1.0 property
>>>- [ESBJAVA-3296 ] - ESB
>>>does not support deflated input streams
>>>- [ESBJAVA-3297 

[Dev] Explanation on carbon-p2-plugin tags...

2015-02-04 Thread Niranda Perera
Hi all,

Are there any documentation regarding the carbon p2 plugin tags and their
uses?

Rgds

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


Re: [Dev] SVG to PDF Converter?

2015-02-04 Thread Jerad Rutnam
Hi Dakshika,

I tried *canvg.js* purely, and still no luck. I even tried some other
methods and libraries for this, ex:- https://github.com/exupero/saveSvgAsPng
But nothing worked so far. I just need to find a method to insert computed
css styles to inline. Sometimes it might work. Found few other methods to
do it, but still no luck of getting work. Anyway I will give an update if
i'm able to find a solution for this.

Thanks,
Jerad

On Fri, Jan 30, 2015 at 11:46 AM, Jerad Rutnam  wrote:

> And if anyone wants to convert SVG to Canvas without a library, you can
> use this method. (*Only issue I faced here is that it doesn't have a
> method to get external styles*)
>
> var svgString = new 
> XMLSerializer().serializeToString(document.querySelector('svg'));
>
> var canvas = document.getElementById("canvas");
> var ctx = canvas.getContext("2d");
> var DOMURL = self.URL || self.webkitURL || self;
> var img = new Image();
> var svg = new Blob([svgString], {type: "image/svg+xml;charset=utf-8"});
> var url = DOMURL.createObjectURL(svg);
> img.onload = function() {
> ctx.drawImage(img, 0, 0);
> var png = canvas.toDataURL("image/png");
> document.querySelector('#png-container').innerHTML = ' src="'+png+'"/>';
> DOMURL.revokeObjectURL(png);
> };
> img.src = url;
>
> Cheers!
> Jerad
>
>
> On Fri, Jan 30, 2015 at 11:39 AM, Jerad Rutnam  wrote:
>
>> Hi Dakshika,
>>
>> Thanks for this. I tried *svgenie *[1] library earlier, which is depends
>> on *canvg.js. *But it didn't work for me. Anyway didn't try it pure, so
>> i'll give a try and send you an update.
>>
>> [1] - https://github.com/Causata/svgenie
>>
>> Regards,
>> Jerad
>>
>> On Fri, Jan 30, 2015 at 10:20 AM, Dakshika Jayathilaka > > wrote:
>>
>>> Hi,
>>>
>>> I found simple lib to convert SVG to Canvas.
>>>
>>> https://github.com/gabelerner/canvg
>>>
>>> Then you can export it as a image or can convert to PDF as wel..
>>>
>>> Regards,
>>>
>>> *Dakshika Jayathilaka*
>>> Software Engineer
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>> 0771100911
>>>
>>> On Mon, Jan 26, 2015 at 10:44 AM, Jerad Rutnam  wrote:
>>>
 Hi Dimuthu,

 Thanks, I'll check this and give you an update.

 Regards,
 Jerad

 On Mon, Jan 26, 2015 at 10:30 AM, Dimuthu De Lanerolle <
 dimut...@wso2.com> wrote:

> Hi Jerad,
>
> I think you can try apache batik-transcoder dependency for this [1]
>
> [1]
> https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleSVG2PDF.java
>
>
>
> Regards
>
> On Mon, Jan 26, 2015 at 8:40 AM, Jerad Rutnam  wrote:
>
>> Hi Sagara,
>>
>> Currently i'm working on the feature "fit to screen". Once that and
>> other critical issues are fixed, ill do a research on this.
>>
>> Regards,
>> Jerad
>>
>> On Thu, Jan 22, 2015 at 8:27 AM, Jerad Rutnam  wrote:
>>
>>> Hi Vanjikumaran,
>>>
>>> We have developed a Dependency Graph feature for G-Reg using D3. And
>>> we are thinking of having a function to export the graph to print. So
>>> thought something like exporting to .PDF would be nice.
>>>
>>> Thanks,
>>> Jerad
>>>
>>> On Wed, Jan 21, 2015 at 7:20 PM, Vanjikumaran Sivajothy <
>>> va...@wso2.com> wrote:
>>>
 AFAIK, Wso2 products does not use any such feature.

 However, What is your exact requirement and use case?

 On Wed, Jan 21, 2015 at 10:15 AM, Jerad Rutnam 
 wrote:

> Hi,
>
> Are we using any SVG to PDF convert library in our products? Or is
> there anyway I can achieve this? ex:-
> http://d3export.housegordon.org/
>
> Thanks,
> Jerad
> --
> *Jerad Rutnam*
> *Software Engineer - UI*
>
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com *
 *Mobile:(+94)777219209*
 [image: Facebook]  [image:
 Twitter]  [image: LinkedIn]
  [image:
 Blogger]  [image: SlideShare]
 

 This communication may contain privileged or other
 confidential information and is intended exclusively for the 
 addressee/s.
 If you are not the intended recipient/s, or believe tha

Re: [Dev] [APPFAC] Error regarding org.wso2.carbon.governance.lcm.jar

2015-02-04 Thread Janaka Ranabahu
Hi Kasun,

On Thu, Feb 5, 2015 at 11:49 AM, Kasun De Silva  wrote:

> Hi All,
>
> Observed following in the AF log, This happens when login into tenant
> admin for the first time right after creating the tenant.
>
> we are using org.wso2.carbon.governance.lcm_4.2.1.jar in this pack.
>
>
> Any clue why is this happening ?
>
​
​This is when adding the LC for the 1st time. Could you check whether the
​given file(
​
/ifecycle-config.xsd) is there in the correct location?

Thanks,
Janaka​


>
> TID: [0] [AF] [2015-02-05 10:22:21,890] ERROR {
> org.wso2.carbon.governance.lcm.util.CommonUtil} -  Unable to get a schema
> validator from the given file path : /mnt/
> 192.168.16.2/appfactory/wso2appfactory-2.1.0-SNAPSHOT/repository/resources/lifecycle-config.xsd
> {org.wso2.carbon.governance.lcm.util.CommonUtil}
> TID: [0] [AF] [2015-02-05 10:22:22,499] ERROR {
> org.wso2.carbon.governance.lcm.util.CommonUtil} -  Unable to get a schema
> validator from the given file path : /mnt/
> 192.168.16.2/appfactory/wso2appfactory-2.1.0-SNAPSHOT/repository/resources/lifecycle-config.xsd
> {org.wso2.carbon.governance.lcm.util.CommonUtil}
>
> Thanks,
>
> *Kasun de Silva*
> Software Engineer | *WSO2 Inc.*; http://wso2.com
> lean.enterprise.middleware
>
> email   : kas...@wso2.com
> mobile : +94 77 794 4260
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Janaka Ranabahu*
Senior Software Engineer; WSO2 Inc.; http://wso2.com


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

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


[Dev] [APPFAC] Error regarding org.wso2.carbon.governance.lcm.jar

2015-02-04 Thread Kasun De Silva
Hi All,

Observed following in the AF log, This happens when login into tenant admin
for the first time right after creating the tenant.

we are using org.wso2.carbon.governance.lcm_4.2.1.jar in this pack.


Any clue why is this happening ?

TID: [0] [AF] [2015-02-05 10:22:21,890] ERROR {
org.wso2.carbon.governance.lcm.util.CommonUtil} -  Unable to get a schema
validator from the given file path : /mnt/
192.168.16.2/appfactory/wso2appfactory-2.1.0-SNAPSHOT/repository/resources/lifecycle-config.xsd
{org.wso2.carbon.governance.lcm.util.CommonUtil}
TID: [0] [AF] [2015-02-05 10:22:22,499] ERROR {
org.wso2.carbon.governance.lcm.util.CommonUtil} -  Unable to get a schema
validator from the given file path : /mnt/
192.168.16.2/appfactory/wso2appfactory-2.1.0-SNAPSHOT/repository/resources/lifecycle-config.xsd
{org.wso2.carbon.governance.lcm.util.CommonUtil}

Thanks,

*Kasun de Silva*
Software Engineer | *WSO2 Inc.*; http://wso2.com
lean.enterprise.middleware

email   : kas...@wso2.com
mobile : +94 77 794 4260
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AM Social Feature

2015-02-04 Thread Malaka Silva
Thx. So this involves some custom development with Jaggery?

On Thu, Feb 5, 2015 at 8:46 AM, Sanjeewa Malalgoda 
wrote:

> We can do this by using sub themes. If you need to do this only for some
> set of APIs you may need to get some attribute in API(like tag) and decide
> visibility.
>
> Thanks,
> sanjeewa,
>
> On Thu, Feb 5, 2015 at 12:49 AM, Malaka Silva  wrote:
>
>> Hi,
>>
>> AM store provides the feature to share the api over social media.
>>
>> Is there a way to disable this for set of apis?
>>
>> Requirement is to disable this for internal apis.
>>
>> 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 . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> email only if it is absolutely necessary.
>>
>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
>  blog
> :http://sanjeewamalalgoda.blogspot.com/
> 
>
>
>


-- 

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 . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/


Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Converting JSON to SOAP and vise versa in ESB

2015-02-04 Thread Uvindra Dias Jayasinha
Thanks Sampath and Asanka,

Tried both your suggestions and now Im getting different exception

RelayUtils  Error while building Passthrough stream
org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException:
ParseError at [row,col]:[3,68]
Message: DOCTYPE is not allowed
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:296)
at
org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:109)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:570)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:566)
at
org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:129)
at
org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:107)
at
org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:82)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:68)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
at org.apache.synapse.rest.Resource.process(Resource.java:297)
at org.apache.synapse.rest.API.process(API.java:298)
at
org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:76)
at
org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:50)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220)
at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.xml.stream.XMLStreamException: ParseError at
[row,col]:[3,68]
Message: DOCTYPE is not allowed
at
com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:594)
at
org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225)
at
org.apache.axiom.util.stax.dialect.DisallowDoctypeDeclStreamReaderWrapper.next(DisallowDoctypeDeclStreamReaderWrapper.java:34)
at
org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225)
at
org.apache.axiom.util.stax.dialect.SJSXPStreamReaderWrapper.next(SJSXPStreamReaderWrapper.java:138)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:681)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:214)
... 22 more
11:30:13,251 SequenceMediator  Error while building message
org.apache.axis2.AxisFault: Error while building Passthrough stream
at
org.apache.synapse.transport.passthru.util.RelayUtils.handleException(RelayUtils.java:236)
at
org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:111)
at
org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:82)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:68)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
at org.apache.synapse.rest.Resource.process(Resource.java:297)
at org.apache.synapse.rest.API.process(API.java:298)
at
org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:76)
at
org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:50)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220)
at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
Caused 

[Dev] Can we set per cache invalidation time in carbon 4.1.0

2015-02-04 Thread Danesh Kuruppu
Hi all,

In carbon 4.1.0, can we set per cache invalidation time?

I need to create a backup resource cache where we need different
invalidation time from the global invalidation time(15 min) and need to
make it configurable.

What is best way I can do this.
Please help
Thanks
-- 

Danesh Kuruppu
Software Engineer
WSO2 Inc,
Mobile: +94 (77) 1690552
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Automation dependencies to be updated in all products moving with git

2015-02-04 Thread Dharshana Warusavitharana
Since new git restructuring comes up with some guidelines we have to change
dependencies in order to make them work



org.wso2.carbon.automation
org.wso2.carbon.automation.test.utils
${carbon.automation.version}



org.wso2.carbon.automation
org.wso2.carbon.automation.engine
${carbon.automation.version}





org.wso2.carbon.automation
org.wso2.carbon.automation.extensions
${carbon.automation.version}




org.wso2.carbon.automationutils
org.wso2.carbon.integration.common.extensions
${carbon.automationutils.version}


org.wso2.carbon.automationutils
org.wso2.carbon.integration.common.utils
${carbon.automationutils.version}




org.wso2.carbon.automationutils
org.wso2.carbon.integration.common.admin.client
${carbon.automationutils.version}


4.3.1

4.3.0 Thank
you, Dharshana.


-- 

Dharshana Warusavitharana
Senior Software Engineer , Test Automation
WSO2 Inc. http://wso2.com
email : dharsha...@wso2.com 
Tel  : +94 11 214 5345
Fax :+94 11 2145300
cell : +94770342233
blog : http://dharshanaw.blogspot.com

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


Re: [Dev] SSO Jaggery feature usage

2015-02-04 Thread Prabath Abeysekera
Thanks Ruchira.

On Thu, Feb 5, 2015 at 11:23 AM, Ruchira Wageesha  wrote:

> Hi Prabath,
>
> It has been released now can can be found in at [1].
>
> /Ruchira
>
> [1]
> http://maven.wso2.org/nexus/service/local/repositories/releases/content/org/jaggeryjs/modules/sso.feature/1.2.0/sso.feature-1.2.0.zip
>
> On Thu, Feb 5, 2015 at 9:43 AM, Prabath Abeysekera 
> wrote:
>
>> Hi Ruchira,
>>
>> Just checking if this was released. Couldn't find the required released
>> artifacts in any of the online repos WRT Jaggery SSO features.
>>
>> Cheers,
>> Prabath
>>
>> On Mon, Feb 2, 2015 at 9:48 AM, Ruchira Wageesha 
>> wrote:
>>
>>> Hi Prabath,
>>>
>>> It has already been merged into jaggery-extensions and will be released
>>> with jaggery-extensions once the dependencies are released. If any fix is
>>> needed, please do it asap.
>>>
>>> [1] https://github.com/wso2/jaggery-extensions/tree/master/sso
>>>
>>> /Ruchira
>>>
>>> On Mon, Feb 2, 2015 at 8:09 AM, Prabath Abeysekera 
>>> wrote:
>>>
 Hi Ruchira,

 Can we please have this reviewed and merged into jaggery-extensions
 repository some time soon?

 On a separate note, Chan came across some issues while trying to
 integrate the SSO module into product, as there were some incompatibilities
 seen between this and the one used in API-Manager. @Chan, would you be able
 to elaborate what the issues you'd notice and the proposed fix (if there's
 one already)?

 Cheers,
 Prabath


 On Tue, Jan 27, 2015 at 8:30 PM, Dulitha Wijewantha 
 wrote:

> Hi guys,
> I have created a SSO jaggery feature [1] which can be used to install
> the jaggery SSO component and the jaggery module. In API Manager 
> currently-
> the host object is used. It would be good if everyone can move to the SSO
> module instead of the Host-object method.
>
> However - we currently require the new SSO module and the SSO module
> in API manager in the CDM pack. We can expose out
> the org.wso2.carbon.hostobjects.sso.SAMLSSORelyingPartyObject to let
> publisher and store jaggery apps smoothly use the new SSO module as well. 
> I
> have created a PR [2] with these changes.
>
> [1] - https://github.com/wso2/jaggery-extensions/tree/master/sso
> [2] - https://github.com/wso2/jaggery-extensions/pull/16
> Cheers~
>
> --
> Dulitha Wijewantha (Chan)
> Software Engineer - Mobile Development
> WSO2 Inc
> Lean.Enterprise.Middleware
>  * ~Email   duli...@wso2.com *
> *  ~Mobile +94712112165 <%2B94712112165>*
> *  ~Website   dulitha.me *
> *  ~Twitter @dulitharw *
>   *~Github @dulichan *
>   *~SO @chan *
>



 --
 Prabath Abeysekara
 Associate Technical Lead, Data TG.
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471

>>>
>>>
>>>
>>> --
>>>
>>> *Ruchira Wageesha**Associate Technical Lead*
>>> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>> *
>>>
>>> *email: ruch...@wso2.com ,   blog:
>>> ruchirawageesha.blogspot.com ,
>>> mobile: +94 77 5493444 <%2B94%2077%205493444>*
>>>
>>
>>
>>
>> --
>> Prabath Abeysekara
>> Associate Technical Lead, Data TG.
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>
>
>
> --
>
> *Ruchira Wageesha**Associate Technical Lead*
> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com *
>
> *email: ruch...@wso2.com ,   blog:
> ruchirawageesha.blogspot.com ,
> mobile: +94 77 5493444 <%2B94%2077%205493444>*
>



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


Re: [Dev] SSO Jaggery feature usage

2015-02-04 Thread Ruchira Wageesha
Hi Prabath,

It has been released now can can be found in at [1].

/Ruchira

[1]
http://maven.wso2.org/nexus/service/local/repositories/releases/content/org/jaggeryjs/modules/sso.feature/1.2.0/sso.feature-1.2.0.zip

On Thu, Feb 5, 2015 at 9:43 AM, Prabath Abeysekera 
wrote:

> Hi Ruchira,
>
> Just checking if this was released. Couldn't find the required released
> artifacts in any of the online repos WRT Jaggery SSO features.
>
> Cheers,
> Prabath
>
> On Mon, Feb 2, 2015 at 9:48 AM, Ruchira Wageesha  wrote:
>
>> Hi Prabath,
>>
>> It has already been merged into jaggery-extensions and will be released
>> with jaggery-extensions once the dependencies are released. If any fix is
>> needed, please do it asap.
>>
>> [1] https://github.com/wso2/jaggery-extensions/tree/master/sso
>>
>> /Ruchira
>>
>> On Mon, Feb 2, 2015 at 8:09 AM, Prabath Abeysekera 
>> wrote:
>>
>>> Hi Ruchira,
>>>
>>> Can we please have this reviewed and merged into jaggery-extensions
>>> repository some time soon?
>>>
>>> On a separate note, Chan came across some issues while trying to
>>> integrate the SSO module into product, as there were some incompatibilities
>>> seen between this and the one used in API-Manager. @Chan, would you be able
>>> to elaborate what the issues you'd notice and the proposed fix (if there's
>>> one already)?
>>>
>>> Cheers,
>>> Prabath
>>>
>>>
>>> On Tue, Jan 27, 2015 at 8:30 PM, Dulitha Wijewantha 
>>> wrote:
>>>
 Hi guys,
 I have created a SSO jaggery feature [1] which can be used to install
 the jaggery SSO component and the jaggery module. In API Manager currently-
 the host object is used. It would be good if everyone can move to the SSO
 module instead of the Host-object method.

 However - we currently require the new SSO module and the SSO module in
 API manager in the CDM pack. We can expose out
 the org.wso2.carbon.hostobjects.sso.SAMLSSORelyingPartyObject to let
 publisher and store jaggery apps smoothly use the new SSO module as well. I
 have created a PR [2] with these changes.

 [1] - https://github.com/wso2/jaggery-extensions/tree/master/sso
 [2] - https://github.com/wso2/jaggery-extensions/pull/16
 Cheers~

 --
 Dulitha Wijewantha (Chan)
 Software Engineer - Mobile Development
 WSO2 Inc
 Lean.Enterprise.Middleware
  * ~Email   duli...@wso2.com *
 *  ~Mobile +94712112165 <%2B94712112165>*
 *  ~Website   dulitha.me *
 *  ~Twitter @dulitharw *
   *~Github @dulichan *
   *~SO @chan *

>>>
>>>
>>>
>>> --
>>> Prabath Abeysekara
>>> Associate Technical Lead, Data TG.
>>> WSO2 Inc.
>>> Email: praba...@wso2.com
>>> Mobile: +94774171471
>>>
>>
>>
>>
>> --
>>
>> *Ruchira Wageesha**Associate Technical Lead*
>> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com *
>>
>> *email: ruch...@wso2.com ,   blog:
>> ruchirawageesha.blogspot.com ,
>> mobile: +94 77 5493444 <%2B94%2077%205493444>*
>>
>
>
>
> --
> Prabath Abeysekara
> Associate Technical Lead, Data TG.
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>



-- 

*Ruchira Wageesha**Associate Technical Lead*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com *

*email: ruch...@wso2.com ,   blog:
ruchirawageesha.blogspot.com ,
mobile: +94 77 5493444*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Eror Setting up Deployment Synchronizer for Manager Node

2015-02-04 Thread Maheeka Jayasuriya
Hi all,

Updated the svn-toolkit shared by Harsha and did the config changes as
mentioned by Jeewantha, and the setup is working now with M5. Thanks.



Thanks,

Maheeka Jayasuriya
Software Engineer
Mobile : +9450661

On Mon, Feb 2, 2015 at 2:57 PM, Priyadarssini Kishokumar <
priyadarss...@wso2.com> wrote:

> Hi Maheeka,
>
> I tried the setup with M4 & M5. Seems some problem in clustering in M4.
> Please try with M5. It is working fine.
>
> On Fri, Jan 30, 2015 at 10:21 PM, Maheeka Jayasuriya 
> wrote:
>
>> Hi Jeewantha,
>>
>> I'll retry with your modifications and update here.
>>
>>
>> Thanks,
>>
>> Maheeka Jayasuriya
>> Software Engineer
>> Mobile : +9450661
>>
>> On Fri, Jan 30, 2015 at 7:14 PM, Jeewantha Dharmaparakrama <
>> jeewan...@wso2.com> wrote:
>>
>>> Hi Maheeka,
>>>
>>> I tested Dep synch functionality in ESB 4.9.0 M5 pack and it works fine.
>>> I followed the same Clustering guide but with few modifications.
>>>
>>> 1: Used the exact IP address of my local machine instead of "localhost"
>>> in clustering configs in both ESB nodes
>>> 2: In the Manager Node  section looks like follows.
>>>
>>>   
>>> 
>>> 10.100.0.17
>>> 4010
>>> 
>>> 
>>> 4010 is the Group management port configured in ELB.
>>>
>>> In Worker node
>>>
>>> 
>>> 
>>> 10.100.0.17
>>> 4010
>>> 
>>> 
>>> 10.100.0.17
>>> 4100
>>> 
>>> 
>>>
>>> 4100 is the LocalMemberPort in Manager node.
>>>
>>> Thanks,
>>> Jeewantha
>>>
>>> On Fri, Jan 30, 2015 at 2:03 PM, Jeewantha Dharmaparakrama <
>>> jeewan...@wso2.com> wrote:
>>>
 Sure will do.

 Thanks,
 Jeewantha

 On Fri, Jan 30, 2015 at 1:56 PM, Kasun Indrasiri 
 wrote:

> Hi Jeewantha,
>
> Seems like that the clustered deployment is not properly working in
> 4.9 M4. Can you please check.
>
> On Fri, Jan 30, 2015 at 8:05 AM, Harsha Thirimanna 
> wrote:
>
>> Hi,
>>
>> Can you try with putting [1] to dropin ?
>>
>> [1] http://dist.wso2.org/tools/svnkit-1.3.9.wso2v1.jar
>>
>>
>> *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 Thu, Jan 29, 2015 at 1:54 AM, Aruna Karunarathna 
>> wrote:
>>
>>> Hi Nirmal,
>>>
>>>
>>> On Thu, Jan 29, 2015 at 3:11 PM, Nirmal Fernando 
>>> wrote:
>>>
 SVN server has SSLv3 enabled? There was a bug in previous releases
 which is fixed by now AFAIK.

>>>
>>> Yesterday, for some testing, I did the same and connected to the
>>> intern svn without any issues.
>>>
>>> Regards,
>>> Aruna
>>>
>>>

 On Thu, Jan 29, 2015 at 2:49 PM, Maheeka Jayasuriya <
 mahe...@wso2.com> wrote:

> Hi,
>
> I am trying to setup an svn deployment synchronizer for ESB when
> creating a manager node. However when I enable the synchronizer, ESB 
> does
> not start. I continuously get following warning message at [1].
>
> The configurations in carbon.xml is :
>
> 
> true
> true
> true
> svn
> 
> https://svn.wso2.com/wso2/interns/2013/maheeka/esb_svn/
> mahe...@wso2.com
> ***
> true
> 
>
> I am trying to connect to the intern svn repo. How do I get this
> working?
>
> [1]
>
> [2015-01-29 14:20:57,525]  INFO - PermissionUpdater Permission
> cache updated for tenant -1234
> [2015-01-29 14:21:57,506]  WARN - AppDeployerServiceComponent
> Waiting for required OSGi services:
> org.wso2.carbon.application.deployer.synapse.service.SynapseAppDeployerService,org.wso2.carbon.mediation.initializer.services.SynapseEnvironmentService,
> [2015-01-29 14:21:57,517]  WARN - StartupFinalizerServiceComponent
> Waiting for required OSGi services:
> org.wso2.carbon.application.deployer.service.CappDeploymentService,org.wso2.carbon.server.admin.common.IServerAdmin,org.wso2.carbon.throttling.agent.ThrottlingAgent,
> [2015-01-29 14:22:57,506]  WARN - AppDeployerServiceComponent
> Waiting for required OSGi services:
> org.wso2.carbon.application.deployer.synapse

Re: [Dev] [DEV] Registry Core 4.2.0 Build with Tests Failure

2015-02-04 Thread Akalanka Pagoda Arachchi
Hi Chandana,

Yes, that was the issue. Thanks a lot.

Akalanka.

On Wed, Feb 4, 2015 at 9:04 PM, Chandana Napagoda  wrote:

> Hi,
>
> I think you are using JDK7. We do not recommend JDK 7 for building the
> code yet. Please use JDK 6.
>
> Thanks,
> Chandana
>
> On Wed, Feb 4, 2015 at 8:50 PM, Akalanka Pagoda Arachchi <
> darsha...@wso2.com> wrote:
>
>> Hi all,
>>
>> I am trying to build carbon registry core 4.2.0 [1] with tests. However,
>> the tests fail with following error.
>>
>> Results :
>>
>>
>> Failed tests:
>> testCommentQueryRootRegistry(org.wso2.carbon.registry.core.test.jdbc.CommentsTest):
>> Query result count should be 1 expected:<2> but was:<1>
>>
>>
>> Tests run: 196, Failures: 1, Errors: 0, Skipped: 0
>>
>>
>> [INFO]
>> 
>>
>> [INFO] BUILD FAILURE
>>
>> [INFO]
>> 
>>
>>
>> Any idea?
>>
>> Thanks,
>> Akalanka
>>
>> [1] -
>> https://svn.wso2.org/repos/wso2/carbon/kernel/tags/4.2.0/core/org.wso2.carbon.registry.core/4.2.0/
>>
>> --
>> *Darshana Akalanka Pagoda Arachchi,*
>> *Software Engineer*
>> *078-4721791 <078-4721791>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Chandana Napagoda*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.org
>
> *Email  :  chand...@wso2.com **Mobile : +94718169299
> <%2B94718169299>*
>
> *Blog  :http://cnapagoda.blogspot.com *
>
>


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


Re: [Dev] WSO2 ESB 4.9.0 M5 Released..!

2015-02-04 Thread Isuru Ranawaka
Hi Shaventha ,

Currently  there is no P2 repo

On Thu, Feb 5, 2015 at 9:05 AM, Shavantha Weerasinghe 
wrote:

> Hi Isuru
>
> Is there a P2 Repo for ESB 490
>
> Regards,
>
> Shavantha Weerasinghe
> Senior Software Engineer QA
> WSO2, Inc.
> lean.enterprise.middleware.
> http://wso2.com
> http://wso2.org
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
>
> On Mon, Jan 26, 2015 at 6:03 PM, Isuru Ranawaka  wrote:
>
>>
>> Hi all,
>>
>> Please download WSO2 ESB 4.9.0 M5 from this location [1]. The main
>> purpose of this release is to add multi tenancy support in  HTTP Inbound
>> Endpoint and reduced bug count.Following are the list of public Jiras
>> resolved since M4 release.
>>
>> Bug
>>
>>- [ESBJAVA-2330 ] -
>>Couldn't send a request to Tenant main sequence
>>- [ESBJAVA-2336 ] - Faulty
>>Proxy deployed from cApp not deleted/removed from UI
>>- [ESBJAVA-2345 ] - [ESB
>>4.7] Local Transport Settings not saved after server restart
>>- [ESBJAVA-2577 ] - [ELB]
>>response body gets dropped when coming through ELB
>>- [ESBJAVA-2737 ] - Proxy
>>displayed as secured when enabling response cache when locat transport is
>>enabled.
>>- [ESBJAVA-2750 ] -
>>org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation
>>not found occurred while invoking rest API
>>- [ESBJAVA-2768 ] -
>>localEntry can not be given with Google Spreadsheet SetRow
>>- [ESBJAVA-2860 ] - HTTP
>>Endpoint: Evaluated URI templates should decode all URL encoded characters
>>- [ESBJAVA-2886 ] -
>>Exception when viewing mediation statistics page in tenant mode
>>- [ESBJAVA-2889 ] - VFS:
>>File not moved to specified failed directory in ftp
>>- [ESBJAVA-2956 ] -
>>REQUEST_HOST_HEADER appends port 80 to "Host" parameter when invoked as
>>tenant and request fails returning HTTP 404
>>- [ESBJAVA-2986 ] -
>>OMException when timeout occurs with http passthru transport
>>- [ESBJAVA-3086 ] - HTTP
>>DELETE requests with JSON fails
>>- [ESBJAVA-3108 ] -
>>Response Caching doesn't work as expected.
>>- [ESBJAVA-3110 ] -
>>Refering to a non-existent tempalate sequence is not considered an error
>>- [ESBJAVA-3126 ] - [VFS
>>Transport] Error when trying to read files simultaneously from an FTPS
>>folder
>>- [ESBJAVA-3134 ] -
>>Modules not Engaged After Server Restart
>>- [ESBJAVA-3162 ] - Error
>>log printed everytime you update the config via master sourceview
>>- [ESBJAVA-3170 ] - sample
>>50 has incorrect regex filter
>>- [ESBJAVA-3186 ] -
>>Scheduling of tasks stops when you edit them during their execution
>>- [ESBJAVA-3207 ] - Sample
>>57 is not working
>>- [ESBJAVA-3224 ] - ESB
>>synapse sample configuration files and documentation are different in
>>sample 61 and 62
>>- [ESBJAVA-3225 ] - Cannot
>>get a registry resource without a Media Type from Class Mediator
>>- [ESBJAVA-3237 ] -
>>bam.xml file shipped by default with ESB contains
>>disable line
>>- [ESBJAVA-3265 ] - Proxy
>>Configuration (Design View or Source View) can not show the parameter 
>> value
>>properly if they contain comma ','
>>- [ESBJAVA-3289 ] - Adding
>>the default Content-Type when there is no body in the response
>>- [ESBJAVA-3293 ] -
>>PassThrough Transport ignores axis2:FORCE_HTTP_1.0 property
>>- [ESBJAVA-3296 ] - ESB
>>does not support deflated input streams
>>- [ESBJAVA-3297 ] - Error
>>in content length calculation when disable chunking in ESB
>>- [ESBJAVA-3298 ] - HTTP
>>DELETE not working with DISABLE_CHUNKING option
>>- [ESBJAVA-3301 

Re: [Dev] (no subject)

2015-02-04 Thread Shavantha Weerasinghe
Hi Chalitha

I got the similar error on https://wso2.org/jira/browse/BAM-1689. The
answer will be on this jira

regards

Shavantha Weerasinghe
Senior Software Engineer QA
WSO2, Inc.
lean.enterprise.middleware.
http://wso2.com
http://wso2.org
Tel : 94 11 214 5345
Fax :94 11 2145300


On Wed, Sep 10, 2014 at 5:03 PM, Chalitha Waldeniyage 
wrote:

> Hi
>
> When i am integrating API Manager latest pack(04/09/2014) with BAM 2.3.0
> and invoking the API through Jmeter, following error message has prompted
> in API Manager side. Please provide directives in proceeding.
>
>
>  ERROR - AsyncDataPublisher Stream definition already exist
> org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
> Same stream id with different definition already defined before sending
> this event definitions to TCP,10.100.5.45:7612,TCP,10.100.5.45:7712
> at
> org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:237)
> at
> org.wso2.carbon.databridge.agent.thrift.DataPublisher.defineStream(DataPublisher.java:295)
> at
> org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$DataPublishWorker.run(AsyncDataPublisher.java:690)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
> Caused by:
> org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
> Thrift Different Stream Definition Already Defined
> at
> org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.ThriftEventPublisher.defineStream(ThriftEventPublisher.java:112)
> at
> org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:222)
> ... 7 more
> Caused by:
> ThriftDifferentStreamDefinitionAlreadyDefinedException(message:Similar
> event stream for
> StreamDefinition{
> streamId='org.wso2.apimgt.statistics.fault:1.0.0',
> name='org.wso2.apimgt.statistics.fault',
> version='1.0.0',
> nickName='API Manager Fault Data',
> description='Fault Data',
> tags=null,
> metaData=[Attribute{name='clientType', type=STRING}],
> correlationData=null,
> payloadData=[Attribute{name='consumerKey', type=STRING},
> Attribute{name='context', type=STRING}, Attribute{name='api_version',
> type=STRING}, Attribute{name='api', type=STRING},
> Attribute{name='resourcePath', type=STRING}, Attribute{name='method',
> type=STRING}, Attribute{name='version', type=STRING},
> Attribute{name='errorCode', type=STRING}, Attribute{name='errorMessage',
> type=STRING}, Attribute{name='requestTime', type=STRING},
> Attribute{name='userId', type=STRING}, Attribute{name='tenantDomain',
> type=STRING}, Attribute{name='hostName', type=STRING},
> Attribute{name='apiPublisher', type=STRING},
> Attribute{name='applicationName', type=STRING},
> Attribute{name='applicationId', type=STRING}],
> }
>  with the same name and version already exist:
> StreamDefinition{
> streamId='org.wso2.apimgt.statistics.fault:1.0.0',
> name='org.wso2.apimgt.statistics.fault',
> version='1.0.0',
> nickName='API Manager Fault Data',
> description='Fault Data',
> tags=null,
> metaData=[Attribute{name='clientType', type=STRING}],
> correlationData=null,
> payloadData=[Attribute{name='consumerKey', type=STRING},
> Attribute{name='context', type=STRING}, Attribute{name='api_version',
> type=STRING}, Attribute{name='api', type=STRING},
> Attribute{name='resource', type=STRING}, Attribute{name='method',
> type=STRING}, Attribute{name='version', type=STRING},
> Attribute{name='errorCode', type=STRING}, Attribute{name='errorMessage',
> type=STRING}, Attribute{name='requestTime', type=STRING},
> Attribute{name='userId', type=STRING}, Attribute{name='tenantDomain',
> type=STRING}, Attribute{name='hostName', type=STRING},
> Attribute{name='apiPublisher', type=STRING},
> Attribute{name='applicationName', type=STRING},
> Attribute{name='applicationId', type=STRING}],
> }
> )
> at
> org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$defineStream_result.read(ThriftEventTransmissionService.java:1441)
> at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
> at
> org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$Client.recv_defineStream(ThriftEventTransmissionService.java:80)
> at
> org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$Client.defineStream(ThriftEventTransmissionService.java:66)
> at
> org.wso2.carbon.databridg

Re: [Dev] [AF] Status Update - Nodejs Apptype

2015-02-04 Thread Hasitha Weerasinghe
Hi All,

I have completed the following tasks in Nodejs apptype.

* Create runtime.xml
* Deployment to S2gitblit
* Cartridge subscription.

I have tested the above task by creating , building and deploying a Nodejs
application. The cartridge was successfully subscribed and Nodejs cartridge
instance was successfully launched in openstack. Now I'm facing some issues
in deploying to cartridge and application launch pattern URL.

So the remaining tasks as of now are,

* Deploying artifact to cartridge.
* Creating launch pattern URL.

Thank you,
Hasitha Weerasinghe

On Mon, Dec 29, 2014 at 12:16 AM, Dimuthu Leelarathne 
wrote:

>
>
> On Tue, Dec 23, 2014 at 11:56 AM, Hasitha Weerasinghe 
> wrote:
>
>> Hi All,
>>
>> I'm working on adding Node.js apptype to Appfactory. I have completed the
>> following tasks
>>
>> * Creating Node.js cartridge in openstack
>> * Adding Node.js modules to puppet master
>> * Maven archetype for Node.js
>> * Creating apptype xml
>>
>> Also I've tested the above tasks by deploying the apptype and creating
>> it. Application creation and build was successful and the generated project
>> structure was correctly added to gitblit. Now mainly I have to work on the
>> application subscription and deployment.
>>
>>
> Good work!
>
>
>> So the remaining task as of now are,
>>
>> * Cartridge subscription
>>
>
> This should automatically work.
>
>
>> * Writing application processor type class
>>
>
> We also need to test promotion.
>
> thanks,
> dimuthu
>
>
>
>>
>>
>> *Hasitha Weerasinghe*
>> *Software Engineer Intern - WSO2  *
>> Mobile : +94 776 33 6626
>> Email  :  hasit...@wso2.com
>>
>>
>>
>>
>>
>
>
> --
> Dimuthu Leelarathne
> Architect & Product Lead of App Factory
>
> WSO2, Inc. (http://wso2.com)
> email: dimut...@wso2.com
> Mobile : 0773661935
>
> Lean . Enterprise . Middleware
>



-- 
*Hasitha Weerasinghe*
*Software Engineer Intern - WSO2  *
Mobile : +94 776 33 6626
Email  :  hasit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Sample for File inbound endpoint

2015-02-04 Thread Chanaka Cooray
All right then.
Thank you.

On Thu, Feb 5, 2015 at 9:57 AM, Isuru Ranawaka  wrote:

> HI Chanaka,
>
> This is a bug and will be fixed in M6 .
>
> thanks
>
>
> On Thu, Feb 5, 2015 at 9:52 AM, Chanaka Cooray  wrote:
>
>> Hi,
>>
>> I tried to run the sample[1] in ESB 4.9.0 M4 pack. When I update the
>> source view in ESB Management Console , it shows the following error. But
>> when I create a file inbound endpoint using the inbound UI it works fine. can
>> someone point out what I am doing wrong?
>>
>> [1]. https://docs.wso2.com/pages/viewpage.action?pageId=43995550
>>
>> [2015-02-05 09:45:10,920] ERROR - SynapseXMLConfigurationFactory Invalid
 configuration element at the top level, one of 'sequence', 'endpoint',
 'proxy', 'eventSource', 'localEntry', 'priorityExecutor' or 'registry' is
 expected
>>>
>>> [2015-02-05 09:45:10,921] ERROR - SynapseConfiguration Duplicate entry
 definition for key : SERVER_HOST
>>>
>>> [2015-02-05 09:45:10,921] ERROR - ConfigAdmin Error while updating the
 Synapse configuration
>>>
>>> org.apache.synapse.SynapseException: Duplicate entry definition for key
 : SERVER_HOST
>>>
>>>
>>>
>> Thanks,
>> --
>> *Chanaka Sampath Cooray*
>> Software Engineering Intern,
>> WSO2 Lanka (pvt) Ltd.
>> Mobile:+94713614884
>>
>
>
>
> --
> Best Regards
> Isuru Ranawaka
> M: +94714629880
> Blog : http://isurur.blogspot.com/
>



-- 
*Chanaka Sampath Cooray*
Software Engineering Intern,
WSO2 Lanka (pvt) Ltd.
Mobile:+94713614884
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Sample for File inbound endpoint

2015-02-04 Thread Isuru Ranawaka
HI Chanaka,

This is a bug and will be fixed in M6 .

thanks


On Thu, Feb 5, 2015 at 9:52 AM, Chanaka Cooray  wrote:

> Hi,
>
> I tried to run the sample[1] in ESB 4.9.0 M4 pack. When I update the
> source view in ESB Management Console , it shows the following error. But
> when I create a file inbound endpoint using the inbound UI it works fine. can
> someone point out what I am doing wrong?
>
> [1]. https://docs.wso2.com/pages/viewpage.action?pageId=43995550
>
> [2015-02-05 09:45:10,920] ERROR - SynapseXMLConfigurationFactory Invalid
>>> configuration element at the top level, one of 'sequence', 'endpoint',
>>> 'proxy', 'eventSource', 'localEntry', 'priorityExecutor' or 'registry' is
>>> expected
>>
>> [2015-02-05 09:45:10,921] ERROR - SynapseConfiguration Duplicate entry
>>> definition for key : SERVER_HOST
>>
>> [2015-02-05 09:45:10,921] ERROR - ConfigAdmin Error while updating the
>>> Synapse configuration
>>
>> org.apache.synapse.SynapseException: Duplicate entry definition for key :
>>> SERVER_HOST
>>
>>
>>
> Thanks,
> --
> *Chanaka Sampath Cooray*
> Software Engineering Intern,
> WSO2 Lanka (pvt) Ltd.
> Mobile:+94713614884
>



-- 
Best Regards
Isuru Ranawaka
M: +94714629880
Blog : http://isurur.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ESB Sample for File inbound endpoint

2015-02-04 Thread Chanaka Cooray
Hi,

I tried to run the sample[1] in ESB 4.9.0 M4 pack. When I update the source
view in ESB Management Console , it shows the following error. But when I
create a file inbound endpoint using the inbound UI it works fine. can
someone point out what I am doing wrong?

[1]. https://docs.wso2.com/pages/viewpage.action?pageId=43995550

[2015-02-05 09:45:10,920] ERROR - SynapseXMLConfigurationFactory Invalid
>> configuration element at the top level, one of 'sequence', 'endpoint',
>> 'proxy', 'eventSource', 'localEntry', 'priorityExecutor' or 'registry' is
>> expected
>
> [2015-02-05 09:45:10,921] ERROR - SynapseConfiguration Duplicate entry
>> definition for key : SERVER_HOST
>
> [2015-02-05 09:45:10,921] ERROR - ConfigAdmin Error while updating the
>> Synapse configuration
>
> org.apache.synapse.SynapseException: Duplicate entry definition for key :
>> SERVER_HOST
>
>
>
Thanks,
-- 
*Chanaka Sampath Cooray*
Software Engineering Intern,
WSO2 Lanka (pvt) Ltd.
Mobile:+94713614884
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] SSO Jaggery feature usage

2015-02-04 Thread Prabath Abeysekera
Hi Ruchira,

Just checking if this was released. Couldn't find the required released
artifacts in any of the online repos WRT Jaggery SSO features.

Cheers,
Prabath

On Mon, Feb 2, 2015 at 9:48 AM, Ruchira Wageesha  wrote:

> Hi Prabath,
>
> It has already been merged into jaggery-extensions and will be released
> with jaggery-extensions once the dependencies are released. If any fix is
> needed, please do it asap.
>
> [1] https://github.com/wso2/jaggery-extensions/tree/master/sso
>
> /Ruchira
>
> On Mon, Feb 2, 2015 at 8:09 AM, Prabath Abeysekera 
> wrote:
>
>> Hi Ruchira,
>>
>> Can we please have this reviewed and merged into jaggery-extensions
>> repository some time soon?
>>
>> On a separate note, Chan came across some issues while trying to
>> integrate the SSO module into product, as there were some incompatibilities
>> seen between this and the one used in API-Manager. @Chan, would you be able
>> to elaborate what the issues you'd notice and the proposed fix (if there's
>> one already)?
>>
>> Cheers,
>> Prabath
>>
>>
>> On Tue, Jan 27, 2015 at 8:30 PM, Dulitha Wijewantha 
>> wrote:
>>
>>> Hi guys,
>>> I have created a SSO jaggery feature [1] which can be used to install
>>> the jaggery SSO component and the jaggery module. In API Manager currently-
>>> the host object is used. It would be good if everyone can move to the SSO
>>> module instead of the Host-object method.
>>>
>>> However - we currently require the new SSO module and the SSO module in
>>> API manager in the CDM pack. We can expose out
>>> the org.wso2.carbon.hostobjects.sso.SAMLSSORelyingPartyObject to let
>>> publisher and store jaggery apps smoothly use the new SSO module as well. I
>>> have created a PR [2] with these changes.
>>>
>>> [1] - https://github.com/wso2/jaggery-extensions/tree/master/sso
>>> [2] - https://github.com/wso2/jaggery-extensions/pull/16
>>> Cheers~
>>>
>>> --
>>> Dulitha Wijewantha (Chan)
>>> Software Engineer - Mobile Development
>>> WSO2 Inc
>>> Lean.Enterprise.Middleware
>>>  * ~Email   duli...@wso2.com *
>>> *  ~Mobile +94712112165 <%2B94712112165>*
>>> *  ~Website   dulitha.me *
>>> *  ~Twitter @dulitharw *
>>>   *~Github @dulichan *
>>>   *~SO @chan *
>>>
>>
>>
>>
>> --
>> Prabath Abeysekara
>> Associate Technical Lead, Data TG.
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>
>
>
> --
>
> *Ruchira Wageesha**Associate Technical Lead*
> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com *
>
> *email: ruch...@wso2.com ,   blog:
> ruchirawageesha.blogspot.com ,
> mobile: +94 77 5493444 <%2B94%2077%205493444>*
>



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


Re: [Dev] [ESB] trying to remove an empty xml tag from payload using script mediator

2015-02-04 Thread Awanthika Senarath
Hi Buddhima it works fine when the tostring is removed from the script, so
the correct script would be:


var fullContent =  mc.getPayloadXML();
for(var index in  fullContent..*::advancedImageSearchVO.children()){


var b = fullContent..*::advancedImageSearchVO.children()[index];


if(b ==''){
 delete fullContent..*::advancedImageSearchVO.children()[index];
 }

  }
   mc.setPayloadXML(fullContent);




regards
Awanthika

On Thu, Feb 5, 2015 at 9:22 AM, Awanthika Senarath 
wrote:

> Hi Buddhima,
>
> one more concern, your solutoin fails when an xml tag in the middle (not
> the last) is empty, it works fine only when the last xml tag is emty. the
> tostring method call fails
>   Cannot call method "toString" of undefined (#5)
>
> when an xml tag which is not the last one is set with no value.
>
> regards
> Awanthika
>
> On Thu, Feb 5, 2015 at 7:58 AM, Awanthika Senarath 
> wrote:
>
>> Thanks Buddhima,
>>
>> your solution worked!
>>
>> regards
>> Awanthika
>>
>> On Thu, Feb 5, 2015 at 12:56 AM, Malaka Silva  wrote:
>>
>>> You can also try [1]
>>>
>>> [1]
>>> http://mrmalakasilva.blogspot.co.uk/2014/03/how-to-remove-xml-elements-using-script.html
>>>
>>> On Wed, Feb 4, 2015 at 6:01 PM, Buddhima Wijeweera 
>>> wrote:
>>>
 Hi,

 Following script will do the job:

 
 var fullContent =  mc.getPayloadXML();
 for(var index in  fullContent..*::advancedImageSearchVO.children()){


 var b = fullContent..*::advancedImageSearchVO.children()[index];




  if(b.toString() ==''){
  delete fullContent..*::advancedImageSearchVO.children()[index];
}

  }
mc.setPayloadXML(fullContent);

 

 Thanks!


 On Wed, Feb 4, 2015 at 2:50 PM, Awanthika Senarath 
 wrote:

>
> Hi,
>
> in trying to do $subject, i am using the script mediator as folows
>
> * *
>
> *var fullContent =  mc.getPayloadXML();  *
> *var entity = mc.getPayloadXML()..*::entity;*
>
> *if (entity==null){*
> *  fullContent.removeChild(entity);*
> *   } *
>
> *mc.setPayloadXML(fullContent);*
>
> **
>
>
> but my output always contains the empty tag 
>
> sample xml output received
>
> Envelope:
> http://www.w3.org/2003/05/soap-envelope";>
> 
> http://ejb.image.pfpc.com"; xmlns:vo="http://vo.image.pfpc.com";>
> myProvidor
>
> 
>
> myID
>  <- empty xml tag with no
> content
>
> 
>
> 
> 
> 
>
>
> where as the expected output shoud be
>
>
> Envelope:
> http://www.w3.org/2003/05/soap-envelope";>
> 
> http://ejb.image.pfpc.com"; xmlns:vo="http://vo.image.pfpc.com";>
> myProvidor
>
> 
>
> myID
>
>
> 
>
> 
> 
> 
>
>
>
> can someone point out what I am doing wrong?
>
>
> --
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


 --
 Buddhima Wijeweera
 Software Engineer; WSO2 Inc.; http://wso2.com ,

 Mobile: +94 71 427 9966
 Email: buddh...@wso2.com
 Blog:   https://buddhimawijeweera.wordpress.com
 GitHub Profile: https://github.com/Buddhima

 ___
 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 . middleware
>>> http://www.wso2.com/
>>> http://www.wso2.com/about/team/malaka-silva/
>>> 
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>
>>
>>
>> --
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>
>
> --
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


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


Re: [Dev] [ESB] trying to remove an empty xml tag from payload using script mediator

2015-02-04 Thread Awanthika Senarath
Hi Buddhima,

one more concern, your solutoin fails when an xml tag in the middle (not
the last) is empty, it works fine only when the last xml tag is emty. the
tostring method call fails
  Cannot call method "toString" of undefined (#5)

when an xml tag which is not the last one is set with no value.

regards
Awanthika

On Thu, Feb 5, 2015 at 7:58 AM, Awanthika Senarath 
wrote:

> Thanks Buddhima,
>
> your solution worked!
>
> regards
> Awanthika
>
> On Thu, Feb 5, 2015 at 12:56 AM, Malaka Silva  wrote:
>
>> You can also try [1]
>>
>> [1]
>> http://mrmalakasilva.blogspot.co.uk/2014/03/how-to-remove-xml-elements-using-script.html
>>
>> On Wed, Feb 4, 2015 at 6:01 PM, Buddhima Wijeweera 
>> wrote:
>>
>>> Hi,
>>>
>>> Following script will do the job:
>>>
>>> 
>>> var fullContent =  mc.getPayloadXML();
>>> for(var index in  fullContent..*::advancedImageSearchVO.children()){
>>>
>>>
>>> var b = fullContent..*::advancedImageSearchVO.children()[index];
>>>
>>>
>>>
>>>
>>>if(b.toString() ==''){
>>>  delete fullContent..*::advancedImageSearchVO.children()[index];
>>>}
>>>
>>>  }
>>>mc.setPayloadXML(fullContent);
>>>
>>> 
>>>
>>> Thanks!
>>>
>>>
>>> On Wed, Feb 4, 2015 at 2:50 PM, Awanthika Senarath 
>>> wrote:
>>>

 Hi,

 in trying to do $subject, i am using the script mediator as folows

 * *

 *var fullContent =  mc.getPayloadXML();  *
 *var entity = mc.getPayloadXML()..*::entity;*

 *if (entity==null){*
 *  fullContent.removeChild(entity);*
 *   } *

 *mc.setPayloadXML(fullContent);*

 **


 but my output always contains the empty tag 

 sample xml output received

 Envelope:
 http://www.w3.org/2003/05/soap-envelope";>
 
 http://ejb.image.pfpc.com"; xmlns:vo="http://vo.image.pfpc.com";>
 myProvidor

 

 myID
  <- empty xml tag with no
 content

 

 
 
 


 where as the expected output shoud be


 Envelope:
 http://www.w3.org/2003/05/soap-envelope";>
 
 http://ejb.image.pfpc.com"; xmlns:vo="http://vo.image.pfpc.com";>
 myProvidor

 

 myID


 

 
 
 



 can someone point out what I am doing wrong?


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



>>>
>>>
>>> --
>>> Buddhima Wijeweera
>>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>>>
>>> Mobile: +94 71 427 9966
>>> Email: buddh...@wso2.com
>>> Blog:   https://buddhimawijeweera.wordpress.com
>>> GitHub Profile: https://github.com/Buddhima
>>>
>>> ___
>>> 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 . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> email only if it is absolutely necessary.
>>
>
>
>
> --
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


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


Re: [Dev] WSO2 ESB 4.9.0 M5 Released..!

2015-02-04 Thread Shavantha Weerasinghe
Hi Isuru

Is there a P2 Repo for ESB 490

Regards,

Shavantha Weerasinghe
Senior Software Engineer QA
WSO2, Inc.
lean.enterprise.middleware.
http://wso2.com
http://wso2.org
Tel : 94 11 214 5345
Fax :94 11 2145300


On Mon, Jan 26, 2015 at 6:03 PM, Isuru Ranawaka  wrote:

>
> Hi all,
>
> Please download WSO2 ESB 4.9.0 M5 from this location [1]. The main
> purpose of this release is to add multi tenancy support in  HTTP Inbound
> Endpoint and reduced bug count.Following are the list of public Jiras
> resolved since M4 release.
>
> Bug
>
>- [ESBJAVA-2330 ] -
>Couldn't send a request to Tenant main sequence
>- [ESBJAVA-2336 ] - Faulty
>Proxy deployed from cApp not deleted/removed from UI
>- [ESBJAVA-2345 ] - [ESB
>4.7] Local Transport Settings not saved after server restart
>- [ESBJAVA-2577 ] - [ELB]
>response body gets dropped when coming through ELB
>- [ESBJAVA-2737 ] - Proxy
>displayed as secured when enabling response cache when locat transport is
>enabled.
>- [ESBJAVA-2750 ] -
>org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation
>not found occurred while invoking rest API
>- [ESBJAVA-2768 ] -
>localEntry can not be given with Google Spreadsheet SetRow
>- [ESBJAVA-2860 ] - HTTP
>Endpoint: Evaluated URI templates should decode all URL encoded characters
>- [ESBJAVA-2886 ] -
>Exception when viewing mediation statistics page in tenant mode
>- [ESBJAVA-2889 ] - VFS:
>File not moved to specified failed directory in ftp
>- [ESBJAVA-2956 ] -
>REQUEST_HOST_HEADER appends port 80 to "Host" parameter when invoked as
>tenant and request fails returning HTTP 404
>- [ESBJAVA-2986 ] -
>OMException when timeout occurs with http passthru transport
>- [ESBJAVA-3086 ] - HTTP
>DELETE requests with JSON fails
>- [ESBJAVA-3108 ] -
>Response Caching doesn't work as expected.
>- [ESBJAVA-3110 ] -
>Refering to a non-existent tempalate sequence is not considered an error
>- [ESBJAVA-3126 ] - [VFS
>Transport] Error when trying to read files simultaneously from an FTPS
>folder
>- [ESBJAVA-3134 ] - Modules
>not Engaged After Server Restart
>- [ESBJAVA-3162 ] - Error
>log printed everytime you update the config via master sourceview
>- [ESBJAVA-3170 ] - sample
>50 has incorrect regex filter
>- [ESBJAVA-3186 ] -
>Scheduling of tasks stops when you edit them during their execution
>- [ESBJAVA-3207 ] - Sample
>57 is not working
>- [ESBJAVA-3224 ] - ESB
>synapse sample configuration files and documentation are different in
>sample 61 and 62
>- [ESBJAVA-3225 ] - Cannot
>get a registry resource without a Media Type from Class Mediator
>- [ESBJAVA-3237 ] - bam.xml
>file shipped by default with ESB contains
>disable line
>- [ESBJAVA-3265 ] - Proxy
>Configuration (Design View or Source View) can not show the parameter value
>properly if they contain comma ','
>- [ESBJAVA-3289 ] - Adding
>the default Content-Type when there is no body in the response
>- [ESBJAVA-3293 ] -
>PassThrough Transport ignores axis2:FORCE_HTTP_1.0 property
>- [ESBJAVA-3296 ] - ESB
>does not support deflated input streams
>- [ESBJAVA-3297 ] - Error
>in content length calculation when disable chunking in ESB
>- [ESBJAVA-3298 ] - HTTP
>DELETE not working with DISABLE_CHUNKING option
>- [ESBJAVA-3301 ] -
>java.naming.provider.url for message store is not dynamically configurable
>- [ESBJAVA-3303 ] -
>x-form-urlencoded reque

Re: [Dev] WSO2 Committers += Gayan Gunawardana

2015-02-04 Thread Thanuja Jayasinghe
Congratz Gayan...

On Thu, Feb 5, 2015 at 8:53 AM, Jerad Rutnam  wrote:

> Congratulations Gayan! :)
>
> On Tue, Feb 3, 2015 at 8:32 AM, Jayanga Dissanayake 
> wrote:
>
>> Congratulations Gayan!
>>
>> *Jayanga Dissanayake*
>> Senior Software Engineer
>> WSO2 Inc. - http://wso2.com/
>> lean . enterprise . middleware
>> email: jaya...@wso2.com
>> mobile: +94772207259
>>
>> On Mon, Feb 2, 2015 at 9:21 PM, Harshan Liyanage 
>> wrote:
>>
>>> Congratulations Gayan !!!
>>>
>>> Lakshitha Harshan
>>> Software Engineer
>>> Mobile: *+94724423048*
>>> Email: hars...@wso2.com
>>> Blog : http://harshanliyanage.blogspot.com/
>>> *WSO2, Inc. :** wso2.com *
>>> lean.enterprise.middleware.
>>>
>>> On Mon, Feb 2, 2015 at 5:20 AM, Milinda Perera 
>>> wrote:
>>>
 Congratulations Gayan ...

 On Sun, Feb 1, 2015 at 5:17 PM, Srisunmugaraja Paraparan <
 parapa...@wso2.com> wrote:

> Congratulations Gayan ..
>
> On Sun, Feb 1, 2015 at 10:37 PM, Pumudu Ruhunage 
> wrote:
>
>> Congratulations..!!! :)
>>
>> On Sun, Feb 1, 2015 at 3:24 PM, Inosh Perera  wrote:
>>
>>> Congrats Gayan !! :)
>>>
>>> On Sun, Feb 1, 2015 at 10:39 AM, Waruna Jayaweera 
>>> wrote:
>>>
 Congratzz Gayan...!

 On Sat, Jan 31, 2015 at 9:05 PM, Hasintha Indrajee <
 hasin...@wso2.com> wrote:

> Congratulations Gayan!!
>
> On Sat, Jan 31, 2015 at 6:55 PM, Buddhima Wijeweera <
> buddh...@wso2.com> wrote:
>
>> Congratulations Gayan!!!
>>
>> On Sat, Jan 31, 2015 at 6:53 PM, Tharindu Edirisinghe <
>> tharin...@wso2.com> wrote:
>>
>>> Congratulations Gayan !!!
>>>
>>> On Sat, Jan 31, 2015 at 4:43 PM, Chamin Nalinda >> > wrote:
>>>
 Congratulations !!!

 On Sat, Jan 31, 2015 at 4:32 PM, Prasanna Dangalla <
 prasa...@wso2.com> wrote:

> Congratulations Gayan
>
> On Sat, Jan 31, 2015 at 1:54 PM, Harsha Kumara <
> hars...@wso2.com> wrote:
>
>> Congratulations Gayan!
>>
>> On Sat, Jan 31, 2015 at 1:52 PM, Johann Nallathamby <
>> joh...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> It's my pleasure to announce Gayan Gunawardana as a WSO2
>>> Committer. Gayan has been a valuable contributor for WSO2
>>> Identity Server product, and in recognition of his contribution 
>>> to WSO2, he
>>> has been voted as a WSO2 Committer.
>>>
>>> Gayan, congratulations and keep up the good work!
>>>
>>> Thanks & Regards.
>>>
>>> --
>>> 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
>>>
>>>
>>
>>
>> --
>> Harsha Kumara
>> Software Engineer, WSO2 Inc.
>> Mobile: +94775505618
>> Blog:harshcreationz.blogspot.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Prasanna Dangalla
> Software Engineer, WSO2, Inc.; http://wso2.com/
> lean.enterprise.middleware
>
> cell: +94 777 55 80 30 | +94 718 11 27 51
> twitter: @prasa77
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Chamin Nalinda*

 Intern - Engineering
 WSO2 Inc. http://www.wso2.com
 lean.enterprise.middleware

 Mobile: (+94) 77 241 66 04
 Linkedin: https://www.linkedin.com/in/chaminnalinda
 Web: http://www.ckreativity.com
 Blog: http://techspiro.blogspot.com/


 

Re: [Dev] WSO2 Committers += Gayan Gunawardana

2015-02-04 Thread Jerad Rutnam
Congratulations Gayan! :)

On Tue, Feb 3, 2015 at 8:32 AM, Jayanga Dissanayake 
wrote:

> Congratulations Gayan!
>
> *Jayanga Dissanayake*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.com/
> lean . enterprise . middleware
> email: jaya...@wso2.com
> mobile: +94772207259
>
> On Mon, Feb 2, 2015 at 9:21 PM, Harshan Liyanage  wrote:
>
>> Congratulations Gayan !!!
>>
>> Lakshitha Harshan
>> Software Engineer
>> Mobile: *+94724423048*
>> Email: hars...@wso2.com
>> Blog : http://harshanliyanage.blogspot.com/
>> *WSO2, Inc. :** wso2.com *
>> lean.enterprise.middleware.
>>
>> On Mon, Feb 2, 2015 at 5:20 AM, Milinda Perera  wrote:
>>
>>> Congratulations Gayan ...
>>>
>>> On Sun, Feb 1, 2015 at 5:17 PM, Srisunmugaraja Paraparan <
>>> parapa...@wso2.com> wrote:
>>>
 Congratulations Gayan ..

 On Sun, Feb 1, 2015 at 10:37 PM, Pumudu Ruhunage 
 wrote:

> Congratulations..!!! :)
>
> On Sun, Feb 1, 2015 at 3:24 PM, Inosh Perera  wrote:
>
>> Congrats Gayan !! :)
>>
>> On Sun, Feb 1, 2015 at 10:39 AM, Waruna Jayaweera 
>> wrote:
>>
>>> Congratzz Gayan...!
>>>
>>> On Sat, Jan 31, 2015 at 9:05 PM, Hasintha Indrajee <
>>> hasin...@wso2.com> wrote:
>>>
 Congratulations Gayan!!

 On Sat, Jan 31, 2015 at 6:55 PM, Buddhima Wijeweera <
 buddh...@wso2.com> wrote:

> Congratulations Gayan!!!
>
> On Sat, Jan 31, 2015 at 6:53 PM, Tharindu Edirisinghe <
> tharin...@wso2.com> wrote:
>
>> Congratulations Gayan !!!
>>
>> On Sat, Jan 31, 2015 at 4:43 PM, Chamin Nalinda 
>> wrote:
>>
>>> Congratulations !!!
>>>
>>> On Sat, Jan 31, 2015 at 4:32 PM, Prasanna Dangalla <
>>> prasa...@wso2.com> wrote:
>>>
 Congratulations Gayan

 On Sat, Jan 31, 2015 at 1:54 PM, Harsha Kumara <
 hars...@wso2.com> wrote:

> Congratulations Gayan!
>
> On Sat, Jan 31, 2015 at 1:52 PM, Johann Nallathamby <
> joh...@wso2.com> wrote:
>
>> Hi All,
>>
>> It's my pleasure to announce Gayan Gunawardana as a WSO2
>> Committer. Gayan has been a valuable contributor for WSO2
>> Identity Server product, and in recognition of his contribution 
>> to WSO2, he
>> has been voted as a WSO2 Committer.
>>
>> Gayan, congratulations and keep up the good work!
>>
>> Thanks & Regards.
>>
>> --
>> 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
>>
>>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Prasanna Dangalla
 Software Engineer, WSO2, Inc.; http://wso2.com/
 lean.enterprise.middleware

 cell: +94 777 55 80 30 | +94 718 11 27 51
 twitter: @prasa77

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


>>>
>>>
>>> --
>>> *Chamin Nalinda*
>>>
>>> Intern - Engineering
>>> WSO2 Inc. http://www.wso2.com
>>> lean.enterprise.middleware
>>>
>>> Mobile: (+94) 77 241 66 04
>>> Linkedin: https://www.linkedin.com/in/chaminnalinda
>>> Web: http://www.ckreativity.com
>>> Blog: http://techspiro.blogspot.com/
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Tharindu Edirisinghe
>> Software E

Re: [Dev] WSO2 Committers += Tharindu Edirisinghe

2015-02-04 Thread Jerad Rutnam
Congratulations Tharindu! :)

On Wed, Feb 4, 2015 at 10:25 PM, Tharindu Edirisinghe 
wrote:

> Hi All,
>
> Thanks for the wishes... and all the support given with work.
>
> Cheers !
> TharinduE
>
> On Wed, Feb 4, 2015 at 12:43 PM, Roshan Deniyage  wrote:
>
>> Congrats Tharindu!!
>>
>> Roshan Deniyage
>> Associate Technical Lead
>> WSO2, Inc: http://wso2.com
>>
>> Mobile:  +94 777636406
>> Twitter:  *https://twitter.com/roshku *
>> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>>
>>
>> On Mon, Feb 2, 2015 at 2:16 PM, Prasanna Dangalla 
>> wrote:
>>
>>> Congratulations Tharindu ...!!
>>>
>>> On Mon, Feb 2, 2015 at 1:11 PM, Niranda Perera  wrote:
>>>
 Congrats Tharindu!

 On Mon, Feb 2, 2015 at 12:36 PM, Harsha Kumara 
 wrote:

> Congratulations Tharindu!
>
> On Mon, Feb 2, 2015 at 12:33 PM, Kathees Rajendram 
> wrote:
>
>> Congrats Tharindu.
>>
>> On Mon, Feb 2, 2015 at 9:53 AM, Chanuka Dissanayake > > wrote:
>>
>>> Congratulations Tharindu.. :)
>>>
>>> On Mon, Feb 2, 2015 at 9:30 AM, Aiyadurai Rajeevan <
>>> rajeev...@wso2.com> wrote:
>>>
 Congrats Tharindu :)

 Thanks & Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 On Mon, Feb 2, 2015 at 9:28 AM, Kasun De Silva 
 wrote:

> Congratz Tharindu !!!
>
> *Kasun de Silva*
> Software Engineer | *WSO2 Inc.*; http://wso2.com
> lean.enterprise.middleware
>
> email   : kas...@wso2.com
> mobile : +94 77 794 4260
>
>
> On Mon, Feb 2, 2015 at 9:21 AM, Kalpa Welivitigoda <
> kal...@wso2.com> wrote:
>
>> Congratulations Tharindu !
>>
>> On Mon, Feb 2, 2015 at 9:19 AM, Sam Sivayogam 
>> wrote:
>>
>>> Congrats Thariya !!!
>>>
>>> On Mon, Feb 2, 2015 at 9:08 AM, Anuruddha Liyanarachchi <
>>> anurudd...@wso2.com> wrote:
>>>
 Congratulations Tharindu !

 On Mon, Feb 2, 2015 at 8:51 AM, Ravindra Ranwala <
 ravin...@wso2.com> wrote:

> Congratulations Tharindu !
>
> On Mon, Feb 2, 2015 at 7:06 AM, Gayan Gunawardana <
> ga...@wso2.com> wrote:
>
>> Congratz Tharindu...
>>
>> On Mon, Feb 2, 2015 at 5:20 AM, Milinda Perera <
>> milin...@wso2.com> wrote:
>>
>>> Congratulations Tharindu ..
>>>
>>> On Sun, Feb 1, 2015 at 6:39 PM, Sithumini Senevirathne <
>>> sithumi...@wso2.com> wrote:
>>>
 Congratulations Tharindu!!!

 On Sun, Feb 1, 2015 at 10:48 PM, Srisunmugaraja Paraparan <
 parapa...@wso2.com> wrote:

> Congratulations Tharindu ..
>
> On Sun, Feb 1, 2015 at 10:41 PM, Pumudu Ruhunage <
> pum...@wso2.com> wrote:
>
>> Congratulations Tharindu..!!! :)
>>
>> On Sun, Feb 1, 2015 at 10:29 PM, Tharindu Dharmarathna <
>> tharin...@wso2.com> wrote:
>>
>>> Congrats tharindu
>>> On Feb 1, 2015 10:21 PM, "Chamin Nalinda" <
>>> cha...@wso2.com> wrote:
>>>
 Congratulations bro :)

 On Sun, Feb 1, 2015 at 10:19 PM, Vijitha Ekanayake <
 vijit...@wso2.com> wrote:

> Congratulations Tharindu !!!
>
> On Sun, Feb 1, 2015 at 10:11 PM, Buddhima Wijeweera <
> buddh...@wso2.com> wrote:
>
>> Congratulations Tharindu !!!
>>
>> On Sun, Feb 1, 2015 at 10:10 PM, Firzhan Naqash <
>> firz...@wso2.com> wrote:
>>
>>> Congratz Tharindhu ...
>>>
>>> Regards,
>>> Firzhan
>>>
>>> On Sun, Feb 1, 2015 at 10:09 PM, Hasintha Indrajee <
>>> hasin...@wso2.com> wrote:
>>>
 Congratulations Tharindu ...!!

 On Sun, Feb 1, 2015 at 9:58 PM, Johann Nallathamby
  wrote:

> Hi All,
>
> It's my pleasure to announce Tharindu Edirisinghe
> as a WSO2 Committer. Tharindu has been a valuable
>>

Re: [Dev] AM Social Feature

2015-02-04 Thread Sanjeewa Malalgoda
We can do this by using sub themes. If you need to do this only for some
set of APIs you may need to get some attribute in API(like tag) and decide
visibility.

Thanks,
sanjeewa,

On Thu, Feb 5, 2015 at 12:49 AM, Malaka Silva  wrote:

> Hi,
>
> AM store provides the feature to share the api over social media.
>
> Is there a way to disable this for set of apis?
>
> Requirement is to disable this for internal apis.
>
> 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 . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

 blog
:http://sanjeewamalalgoda.blogspot.com/

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


[Dev] [ESB] Update xml input with xslt transformation

2015-02-04 Thread Himasha Guruge
Hi All,

I need to create sample where I read a xml file with following attributes.

0A1R01
12345678926203
test
PVCH43854
PAID

 If the DocumentNumber contains value' PVCH' I need to update the Document
code with that value using an xslt. In this case do I need to pass the
entire input file or just the documentNumber value as a property to the
xslt transformation. My logs are not getting printed for some reason. What
am I doing wrong here? Appreciate any help on this.


**
*http://ws.apache.org/ns/synapse
">*
**
**
*  MOVE*
*15*
*file:///Users/himasha/Desktop/original*
*file:///Users/himasha/Desktop/in*
*file:///Users/himasha/Desktop/failure*
*.*.xml*
*application/xml*
*MOVE*

**
**
**
**

**
**
**
**

**

**

Thanks & Regards,

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


Re: [Dev] [ESB] trying to remove an empty xml tag from payload using script mediator

2015-02-04 Thread Awanthika Senarath
Thanks Buddhima,

your solution worked!

regards
Awanthika

On Thu, Feb 5, 2015 at 12:56 AM, Malaka Silva  wrote:

> You can also try [1]
>
> [1]
> http://mrmalakasilva.blogspot.co.uk/2014/03/how-to-remove-xml-elements-using-script.html
>
> On Wed, Feb 4, 2015 at 6:01 PM, Buddhima Wijeweera 
> wrote:
>
>> Hi,
>>
>> Following script will do the job:
>>
>> 
>> var fullContent =  mc.getPayloadXML();
>> for(var index in  fullContent..*::advancedImageSearchVO.children()){
>>
>>
>> var b = fullContent..*::advancedImageSearchVO.children()[index];
>>
>>
>>
>>
>>if(b.toString() ==''){
>>  delete fullContent..*::advancedImageSearchVO.children()[index];
>>}
>>
>>  }
>>mc.setPayloadXML(fullContent);
>>
>> 
>>
>> Thanks!
>>
>>
>> On Wed, Feb 4, 2015 at 2:50 PM, Awanthika Senarath 
>> wrote:
>>
>>>
>>> Hi,
>>>
>>> in trying to do $subject, i am using the script mediator as folows
>>>
>>> * *
>>>
>>> *var fullContent =  mc.getPayloadXML();  *
>>> *var entity = mc.getPayloadXML()..*::entity;*
>>>
>>> *if (entity==null){*
>>> *  fullContent.removeChild(entity);*
>>> *   } *
>>>
>>> *mc.setPayloadXML(fullContent);*
>>>
>>> **
>>>
>>>
>>> but my output always contains the empty tag 
>>>
>>> sample xml output received
>>>
>>> Envelope:
>>> http://www.w3.org/2003/05/soap-envelope";>
>>> 
>>> http://ejb.image.pfpc.com"; xmlns:vo="http://vo.image.pfpc.com";>
>>> myProvidor
>>>
>>> 
>>>
>>> myID
>>>  <- empty xml tag with no content
>>>
>>> 
>>>
>>> 
>>> 
>>> 
>>>
>>>
>>> where as the expected output shoud be
>>>
>>>
>>> Envelope:
>>> http://www.w3.org/2003/05/soap-envelope";>
>>> 
>>> http://ejb.image.pfpc.com"; xmlns:vo="http://vo.image.pfpc.com";>
>>> myProvidor
>>>
>>> 
>>>
>>> myID
>>>
>>>
>>> 
>>>
>>> 
>>> 
>>> 
>>>
>>>
>>>
>>> can someone point out what I am doing wrong?
>>>
>>>
>>> --
>>> Awanthika Senarath
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94717681791
>>>
>>>
>>>
>>
>>
>> --
>> Buddhima Wijeweera
>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>>
>> Mobile: +94 71 427 9966
>> Email: buddh...@wso2.com
>> Blog:   https://buddhimawijeweera.wordpress.com
>> GitHub Profile: https://github.com/Buddhima
>>
>> ___
>> 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 . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



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


Re: [Dev] Converting JSON to SOAP and vise versa in ESB

2015-02-04 Thread Asanka Dissanayake
Hi Uvindra,
Seems message failing during the building. And it picks the wrong formatter
it seems. Set the content header in the curl as follows.

curl -i -POST -H 'Accept: application/json' -H
'Content-Type:application/json' -d '{"celsius":12}' http://:8280/

Thanks,
Asanka D

On Wed, Feb 4, 2015 at 9:03 PM, Uvindra Dias Jayasinha 
wrote:

> Im trying out Payload and Script mediator functionality to call this SOAP
> service,
>
>
> http://www.w3schools.com/webservices/tempconvert.asmx?op=CelsiusToFahrenheit
>
>
> by simulating a REST API using ESB 4.8.1, here is the synapse
> configuration I have defined
>
>
> http://ws.apache.org/ns/synapse"; name="tempAPI"
> context="/temp">
>
>   
>  
>  value=">;;;>;;;>;;;>;;;>;;;>;;;>;;;>;;;IN_MESSAGE">
>  
>   scope="axis2">
>  
> 
>http://schemas.xmlsoap.org/soap/envelope/"; xmlns:web="
> http://www.w3schools.com/webservices/";>
>   
>   
>  
> $1
>  
>   
>
> 
> 
>
> 
>  
>  
> 
>http://www.w3schools.com/webservices/tempconvert.asmx?op=CelsiusToFahrenheit";
> format="soap11">
> 
>  
>   
>   
>  
>  value=">;;;>;;;>;;;>;;;>;;;>;;;>;;;>;;;OUT_MESSAGE">
>  
>   scope="axis2">
>  var temp =
> mc.getPayloadXML()..*::CelsiusToFahrenheitResponse.CelsiusToFahrenheitResult.toString();
> mc.setPayloadJSON({
> "Temp" : {"Faran" :
> temp} });
>  
>   
>
> 
>
>
> When I invoke the above using,
>
> curl -i -POST -H 'Accept: application/json' -d '{"celsius":12}' http:// Address>:8280/
>
> I get the following exception,
>
> 6:53:00,577 RelayUtils  Error while building Passthrough stream
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> at java.lang.String.substring(String.java:1937)
> at
> org.apache.axis2.builder.XFormURLEncodedBuilder.extractParametersFromRequest(XFormURLEncodedBuilder.java:174)
> at
> org.apache.axis2.builder.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:112)
> at
> org.apache.synapse.commons.builders.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:36)
> at
> org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:118)
> at
> org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:107)
> at
> org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:82)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:68)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
> at org.apache.synapse.rest.Resource.process(Resource.java:297)
> at org.apache.synapse.rest.API.process(API.java:341)
> at
> org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:76)
> at
> org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:63)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220)
> at
> org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:344)
> at
> org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:385)
> at
> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
> at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
> at java.lang.Thread.run(Thread.java:662)
> 06:53:00,578 SequenceMediator  Error while building message
> org.apache.axis2.AxisFault: Error while building Passthrough stream
> at
> org.apache.synapse.transport.passthru.util.RelayUtils.handleException(RelayUtils.java:236)
> at
> org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:111)
> at
> org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:82)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:68)
> at
> 

Re: [Dev] Converting JSON to SOAP and vise versa in ESB

2015-02-04 Thread Indika Sampath
Hi Uvindra,

Try like below.



 http://www.w3schools.com/webservices/";>
$1
 


   

 

Cheers!


On Wed, Feb 4, 2015 at 9:03 PM, Uvindra Dias Jayasinha 
wrote:

> Im trying out Payload and Script mediator functionality to call this SOAP
> service,
>
>
> http://www.w3schools.com/webservices/tempconvert.asmx?op=CelsiusToFahrenheit
>
>
> by simulating a REST API using ESB 4.8.1, here is the synapse
> configuration I have defined
>
>
> http://ws.apache.org/ns/synapse"; name="tempAPI"
> context="/temp">
>
>   
>  
>  value=">;;;>;;;>;;;>;;;>;;;>;;;>;;;>;;;IN_MESSAGE">
>  
>   scope="axis2">
>  
> 
>http://schemas.xmlsoap.org/soap/envelope/"; xmlns:web="
> http://www.w3schools.com/webservices/";>
>   
>   
>  
> $1
>  
>   
>
> 
> 
>
> 
>  
>  
> 
>http://www.w3schools.com/webservices/tempconvert.asmx?op=CelsiusToFahrenheit";
> format="soap11">
> 
>  
>   
>   
>  
>  value=">;;;>;;;>;;;>;;;>;;;>;;;>;;;>;;;OUT_MESSAGE">
>  
>   scope="axis2">
>  var temp =
> mc.getPayloadXML()..*::CelsiusToFahrenheitResponse.CelsiusToFahrenheitResult.toString();
> mc.setPayloadJSON({
> "Temp" : {"Faran" :
> temp} });
>  
>   
>
> 
>
>
> When I invoke the above using,
>
> curl -i -POST -H 'Accept: application/json' -d '{"celsius":12}' http:// Address>:8280/
>
> I get the following exception,
>
> 6:53:00,577 RelayUtils  Error while building Passthrough stream
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> at java.lang.String.substring(String.java:1937)
> at
> org.apache.axis2.builder.XFormURLEncodedBuilder.extractParametersFromRequest(XFormURLEncodedBuilder.java:174)
> at
> org.apache.axis2.builder.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:112)
> at
> org.apache.synapse.commons.builders.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:36)
> at
> org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:118)
> at
> org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:107)
> at
> org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:82)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:68)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
> at org.apache.synapse.rest.Resource.process(Resource.java:297)
> at org.apache.synapse.rest.API.process(API.java:341)
> at
> org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:76)
> at
> org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:63)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220)
> at
> org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:344)
> at
> org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:385)
> at
> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
> at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
> at java.lang.Thread.run(Thread.java:662)
> 06:53:00,578 SequenceMediator  Error while building message
> org.apache.axis2.AxisFault: Error while building Passthrough stream
> at
> org.apache.synapse.transport.passthru.util.RelayUtils.handleException(RelayUtils.java:236)
> at
> org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:111)
> at
> org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:82)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:68)
> at
> org.apache.synapse.mediators.AbstractLi

[Dev] Converting JSON to SOAP and vise versa in ESB

2015-02-04 Thread Uvindra Dias Jayasinha
Im trying out Payload and Script mediator functionality to call this SOAP
service,

http://www.w3schools.com/webservices/tempconvert.asmx?op=CelsiusToFahrenheit


by simulating a REST API using ESB 4.8.1, here is the synapse configuration
I have defined


http://ws.apache.org/ns/synapse"; name="tempAPI" context="/temp">
   
  
 

 
 
 

   http://schemas.xmlsoap.org/soap/envelope/"; xmlns:web="
http://www.w3schools.com/webservices/";>
  
  
 
$1
 
  
   


   

 
 

   http://www.w3schools.com/webservices/tempconvert.asmx?op=CelsiusToFahrenheit";
format="soap11">

 
  
  
 

 
 
 var temp =
mc.getPayloadXML()..*::CelsiusToFahrenheitResponse.CelsiusToFahrenheitResult.toString();
mc.setPayloadJSON({
"Temp" : {"Faran" :
temp} });
 
  
   



When I invoke the above using,

curl -i -POST -H 'Accept: application/json' -d '{"celsius":12}' http://:8280/

I get the following exception,

6:53:00,577 RelayUtils  Error while building Passthrough stream
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at
org.apache.axis2.builder.XFormURLEncodedBuilder.extractParametersFromRequest(XFormURLEncodedBuilder.java:174)
at
org.apache.axis2.builder.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:112)
at
org.apache.synapse.commons.builders.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:36)
at
org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:118)
at
org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:107)
at
org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:82)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:68)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
at org.apache.synapse.rest.Resource.process(Resource.java:297)
at org.apache.synapse.rest.API.process(API.java:341)
at
org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:76)
at
org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:63)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220)
at
org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:344)
at
org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:385)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
06:53:00,578 SequenceMediator  Error while building message
org.apache.axis2.AxisFault: Error while building Passthrough stream
at
org.apache.synapse.transport.passthru.util.RelayUtils.handleException(RelayUtils.java:236)
at
org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:111)
at
org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:82)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:68)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
at org.apache.synapse.rest.Resource.process(Resource.java:297)
at org.apache.synapse.rest.API.process(API.java:341)
at
org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:76)
at
org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:63)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220)
at
org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.s

Re: [Dev] How to resolve SVN errors of worker nodes at server startup

2015-02-04 Thread Colin Roy-Ehri
I will also add to osqa the issue with the "Axis Module not found".  I
recently saw this same error [1] for a customer case, so it is not an
isolated thing.  A restart is an adequate workaround.

-Colin

[1] TID: [0] [AM] [2015-02-04 14:30:20,522] ERROR
{org.wso2.carbon.core.persistence.AbstractPersistenceManager} -  Unable to
handle service initialization. Service: WorkflowCallbackService
{org.wso2.carbon.core.persistence.AbstractPersistenceManager}
org.wso2.carbon.CarbonException: Axis Module not found for :
wso2statistics-4.2.2
   at
org.wso2.carbon.core.persistence.AbstractPersistenceManager.getExistingAxisModule(AbstractPersistenceManager.java:562)
   at
org.wso2.carbon.core.persistence.ServicePersistenceManager.handleExistingServiceInit(ServicePersistenceManager.java:472)
   at
org.wso2.carbon.core.deployment.DeploymentInterceptor.serviceUpdate(DeploymentInterceptor.java:298)

Thanks,
Colin Roy-Ehri
Software Engineer
*WSO2, Inc. : wso2.com *
*Mobile*  : 812-219-6517

On Thu, Dec 4, 2014 at 12:53 AM, Samuel Gnaniah  wrote:

> Updated the note for API-M [1] and ESB [2] to include instructions to
> restart the server once again.
>
> [1] - https://docs.wso2.com/display/CLUSTER420/Clustering+the+Gateway
> [2] - https://docs.wso2.com/display/CLUSTER420/Clustering+ESB
>
> *Samuel Gnaniah*
> Senior Technical Writer
>
> WSO2 (pvt.) Ltd.
> Colombo, Sri Lanka
> (+94) 773131798
>
> On Wed, Dec 3, 2014 at 12:03 PM, Evanthika Amarasiri 
> wrote:
>
>> This note is applicable for products like AS/BPS/etc. But for products
>> like API-M & ESB, the first time you restart the server after cleaning the
>> *server* folder will throw the exception - '*The synapse.xml location
>> ././repository/deployment/server/synapse-configs/default doesn't exist*'.
>>
>> So to resolve that, you have to restart the server once again. We need to
>> find a proper solution for that.
>>
>> Regards,
>> Evanthika Amarasiri
>> Senior Technical Lead  - Quality Assurance
>> Mobile: +94773125935
>> Blog: evanthika.blogspot.com
>>
>> wso2.com lean.enterprise.middleware
>>
>> On Wed, Dec 3, 2014 at 11:53 AM, Samuel Gnaniah  wrote:
>>
>>> Added a small note on this in [1], [2] and [3]. Thanks for bringing this
>>> up!
>>>
>>> [1] -
>>> https://docs.wso2.com/display/CLUSTER420/Configuring+the+Worker+Node
>>> [2] -
>>> https://docs.wso2.com/display/CLUSTER420/Clustering+WSO2+Products+without+WSO2+ELB
>>> [3] - https://docs.wso2.com/display/CLUSTER420/Clustering+the+Gateway
>>>
>>> Thanks,
>>> Sam
>>>
>>> *Samuel Gnaniah*
>>> Senior Technical Writer
>>>
>>> WSO2 (pvt.) Ltd.
>>> Colombo, Sri Lanka
>>> (+94) 773131798
>>>
>>> On Wed, Dec 3, 2014 at 11:35 AM, Evanthika Amarasiri >> > wrote:
>>>
 Yes. This is only for worker nodes.

 Regards,
 Evanthika

 On Wed, Dec 3, 2014 at 9:39 AM, Samuel Gnaniah  wrote:

> Just to confirm, are we recommending this only in the worker nodes?
>
> *Samuel Gnaniah*
> Senior Technical Writer
>
> WSO2 (pvt.) Ltd.
> Colombo, Sri Lanka
> (+94) 773131798
>
> On Wed, Dec 3, 2014 at 8:34 AM, Sameera Jayasoma 
> wrote:
>
>> Even for Carbon 4.3.0 testing, we followed the same method. We will
>> try to fix these errors during the AS 6.0.0 release. But for 4.2.0 based
>> products, lets document this step.
>>
>> Thanks,
>> Sameera.
>>
>>
>> On Wed, Dec 3, 2014 at 7:47 AM, Evanthika Amarasiri <
>> evanth...@wso2.com> wrote:
>>
>>> ​Yes Sameera, I got this continuously on
>>>
>>> ​API-M worker nodes yesterday.​ So, after this SVN error, I see
>>> another exception with regard to service initialisation due to a missing
>>> module as below.
>>>
>>> So I suppose there are can be functionality breaks once you get this
>>> svn issue. Anyhow, throwing such ERRORs at startup is not right. So if
>>> these are harmless errors we can make them warnings instead without
>>> printing a whole stack trace like this?
>>>
>>> ​However, in this case, what I feel is that there can be
>>> functionality issues. I will investigate on this further.​
>>>
>>> ​Also, if this is what we recommend to users (removing the content
>>> inside the server folder before starting worker nodes), shall we add 
>>> this
>>> to our documentation?
>>>
>>>
>>> TID: [0] [AM] [2014-12-02 06:30:15,390] ERROR
>>> {org.wso2.carbon.core.persistence.AbstractPersistenceManager} -  Unable 
>>> to
>>> handle service initialization. Service: WSRegistryService
>>> {org.wso2.carbon.core.persistence.AbstractPersistenceManager}
>>> org.wso2.carbon.CarbonException: *Axis Module not found for :
>>> addressing-4.2.0*
>>> at
>>> org.wso2.carbon.core.persistence.AbstractPersistenceManager.getExistingAxisModule(AbstractPersistenceManager.java:583)
>>> at
>>> org.wso2.carbon.core.persistence.ServicePersistenceManager.hand

Re: [Dev] [ESB] trying to remove an empty xml tag from payload using script mediator

2015-02-04 Thread Malaka Silva
You can also try [1]

[1]
http://mrmalakasilva.blogspot.co.uk/2014/03/how-to-remove-xml-elements-using-script.html

On Wed, Feb 4, 2015 at 6:01 PM, Buddhima Wijeweera 
wrote:

> Hi,
>
> Following script will do the job:
>
> 
> var fullContent =  mc.getPayloadXML();
> for(var index in  fullContent..*::advancedImageSearchVO.children()){
>
>
> var b = fullContent..*::advancedImageSearchVO.children()[index];
>
>
>
>
>  if(b.toString() ==''){
>  delete fullContent..*::advancedImageSearchVO.children()[index];
>}
>
>  }
>mc.setPayloadXML(fullContent);
>
> 
>
> Thanks!
>
>
> On Wed, Feb 4, 2015 at 2:50 PM, Awanthika Senarath 
> wrote:
>
>>
>> Hi,
>>
>> in trying to do $subject, i am using the script mediator as folows
>>
>> * *
>>
>> *var fullContent =  mc.getPayloadXML();  *
>> *var entity = mc.getPayloadXML()..*::entity;*
>>
>> *if (entity==null){*
>> *  fullContent.removeChild(entity);*
>> *   } *
>>
>> *mc.setPayloadXML(fullContent);*
>>
>> **
>>
>>
>> but my output always contains the empty tag 
>>
>> sample xml output received
>>
>> Envelope:
>> http://www.w3.org/2003/05/soap-envelope";>
>> 
>> http://ejb.image.pfpc.com"; xmlns:vo="http://vo.image.pfpc.com";>
>> myProvidor
>>
>> 
>>
>> myID
>>  <- empty xml tag with no content
>>
>> 
>>
>> 
>> 
>> 
>>
>>
>> where as the expected output shoud be
>>
>>
>> Envelope:
>> http://www.w3.org/2003/05/soap-envelope";>
>> 
>> http://ejb.image.pfpc.com"; xmlns:vo="http://vo.image.pfpc.com";>
>> myProvidor
>>
>> 
>>
>> myID
>>
>>
>> 
>>
>> 
>> 
>> 
>>
>>
>>
>> can someone point out what I am doing wrong?
>>
>>
>> --
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>
>
> --
> Buddhima Wijeweera
> Software Engineer; WSO2 Inc.; http://wso2.com ,
>
> Mobile: +94 71 427 9966
> Email: buddh...@wso2.com
> Blog:   https://buddhimawijeweera.wordpress.com
> GitHub Profile: https://github.com/Buddhima
>
> ___
> 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 . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/


Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] AM Social Feature

2015-02-04 Thread Malaka Silva
Hi,

AM store provides the feature to share the api over social media.

Is there a way to disable this for set of apis?

Requirement is to disable this for internal apis.

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 . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/


Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Lucene and Solr bundles package conflicts

2015-02-04 Thread Danesh Kuruppu
Hi Gimantha,

Sorry for the delay in responding.
Problem seems to be when importing packages in registry-indexing, There we
have imported lucene package as [1]. which will look for version 2.9.3 or
upper.

1. org.apache.lucene.*;version="2.9.3"
https://github.com/wso2-dev/carbon-registry/blob/master/components/registry/org.wso2.carbon.registry.indexing/pom.xml

This issue will be fixed with Apache Solr update [2] where we export only
solr package and lucene package will bundle inside. We are not going import
lucene package from registry-indexing.

2. https://github.com/wso2/orbit/pull/47/files

Thanks
Danesh


On Mon, Feb 2, 2015 at 1:43 PM, Gimantha Bandara  wrote:

>
>
> On Mon, Feb 2, 2015 at 1:08 PM, Gimantha Bandara 
> wrote:
>
>> Hi,
>>
>> For carbon-analytics, the lucene version we use, is 4.10.3 (
>> 4.10.3.wso2v1) which is the latest. For carbon registry indexing and search
>> functionalities, Solris used, which depends on lucene. we are facing the
>> following issue when we install the carbon-analytics features because of
>> two missing classes.
>>
>> 1).
>>
>> Exception in thread "Thread-16" java.lang.NoClassDefFoundError:
>> org/apache/lucene/search/Searcher
>> at org.apache.solr.core.SolrConfig.(SolrConfig.java:166)
>> at
>> org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:134)
>> at
>> org.wso2.carbon.registry.indexing.solr.SolrClient.(SolrClient.java:90)
>> at
>> org.wso2.carbon.registry.indexing.solr.SolrClient.getInstance(SolrClient.java:98)
>> at
>> org.wso2.carbon.registry.indexing.AsyncIndexer.(AsyncIndexer.java:93)
>> at
>> org.wso2.carbon.registry.indexing.IndexingManager.(IndexingManager.java:69)
>> at
>> org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:78)
>> at
>> org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$1.startingShutdown(IndexingServiceComponent.java:80)
>> at
>> org.wso2.carbon.core.ServerManagement.waitForServerTaskCompletion(ServerManagement.java:113)
>> at
>> org.wso2.carbon.core.ServerManagement.startMaintenanceForShutDown(ServerManagement.java:97)
>> at
>> org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:878)
>> at
>> org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:901)
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.lucene.search.Searcher
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
>> ... 12 more
>>
>> 2).
>>
>> Exception in thread "Thread-18" java.lang.NoClassDefFoundError:
>> org/apache/lucene/index/FilterIndexReader
>>
>> at java.lang.ClassLoader.defineClass1(Native Method)
>>
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
>>
>> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(
>> DefaultClassLoader.java:188)
>>
>> at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.
>> defineClassHoldingLock(ClasspathManager.java:632)
>>
>> at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.
>> defineClass(ClasspathManager.java:607)
>>
>> at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(
>> ClasspathManager.java:568)
>>
>> at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.
>> findLocalClassImpl(ClasspathManager.java:492)
>>
>> at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(
>> ClasspathManager.java:465)
>>
>> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.
>> findLocalClass(DefaultClassLoader.java:216)
>>
>> at org.eclipse.osgi.internal.loader.BundleLoader.
>> findLocalClass(BundleLoader.java:395)
>>
>> at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(
>> BundleLoader.java:464)
>>
>> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(
>> BundleLoader.java:421)
>>
>> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(
>> BundleLoader.java:412)
>>
>> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(
>> DefaultClassLoader.java:107)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>>
>> at org.apache.solr.core.SolrConfig.(SolrConfig.java:166)
>>
>> at org.apache.solr.core.CoreContainer$Initializer.
>> initialize(CoreContainer.java:134)
>>
>> at org.wso2.carbon.registry.indexing.solr.SolrClient.<
>> init>(SolrClient.java:90)
>>
>> at org.wso2.carbon.registry.indexing.solr.SolrClient.
>> getInstance(SolrClient.java:98)
>>
>> at org.wso2.carbon.registry.indexing.AsyncIndexer.(
>> AsyncIndexer.java:93)
>>
>> at org.wso2.carbon.registry.indexing.IndexingManager.<
>> init>(IndexingManager.java

Re: [Dev] WSO2 Committers += Tharindu Edirisinghe

2015-02-04 Thread Tharindu Edirisinghe
Hi All,

Thanks for the wishes... and all the support given with work.

Cheers !
TharinduE

On Wed, Feb 4, 2015 at 12:43 PM, Roshan Deniyage  wrote:

> Congrats Tharindu!!
>
> Roshan Deniyage
> Associate Technical Lead
> WSO2, Inc: http://wso2.com
>
> Mobile:  +94 777636406
> Twitter:  *https://twitter.com/roshku *
> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>
>
> On Mon, Feb 2, 2015 at 2:16 PM, Prasanna Dangalla 
> wrote:
>
>> Congratulations Tharindu ...!!
>>
>> On Mon, Feb 2, 2015 at 1:11 PM, Niranda Perera  wrote:
>>
>>> Congrats Tharindu!
>>>
>>> On Mon, Feb 2, 2015 at 12:36 PM, Harsha Kumara  wrote:
>>>
 Congratulations Tharindu!

 On Mon, Feb 2, 2015 at 12:33 PM, Kathees Rajendram 
 wrote:

> Congrats Tharindu.
>
> On Mon, Feb 2, 2015 at 9:53 AM, Chanuka Dissanayake 
> wrote:
>
>> Congratulations Tharindu.. :)
>>
>> On Mon, Feb 2, 2015 at 9:30 AM, Aiyadurai Rajeevan <
>> rajeev...@wso2.com> wrote:
>>
>>> Congrats Tharindu :)
>>>
>>> Thanks & Regards,
>>> S.A.Rajeevan
>>> Software Engineer WSO2 Inc
>>> E-Mail: rajeev...@wso2.com | Mobile : +94776411636
>>>
>>> On Mon, Feb 2, 2015 at 9:28 AM, Kasun De Silva 
>>> wrote:
>>>
 Congratz Tharindu !!!

 *Kasun de Silva*
 Software Engineer | *WSO2 Inc.*; http://wso2.com
 lean.enterprise.middleware

 email   : kas...@wso2.com
 mobile : +94 77 794 4260


 On Mon, Feb 2, 2015 at 9:21 AM, Kalpa Welivitigoda >>> > wrote:

> Congratulations Tharindu !
>
> On Mon, Feb 2, 2015 at 9:19 AM, Sam Sivayogam 
> wrote:
>
>> Congrats Thariya !!!
>>
>> On Mon, Feb 2, 2015 at 9:08 AM, Anuruddha Liyanarachchi <
>> anurudd...@wso2.com> wrote:
>>
>>> Congratulations Tharindu !
>>>
>>> On Mon, Feb 2, 2015 at 8:51 AM, Ravindra Ranwala <
>>> ravin...@wso2.com> wrote:
>>>
 Congratulations Tharindu !

 On Mon, Feb 2, 2015 at 7:06 AM, Gayan Gunawardana <
 ga...@wso2.com> wrote:

> Congratz Tharindu...
>
> On Mon, Feb 2, 2015 at 5:20 AM, Milinda Perera <
> milin...@wso2.com> wrote:
>
>> Congratulations Tharindu ..
>>
>> On Sun, Feb 1, 2015 at 6:39 PM, Sithumini Senevirathne <
>> sithumi...@wso2.com> wrote:
>>
>>> Congratulations Tharindu!!!
>>>
>>> On Sun, Feb 1, 2015 at 10:48 PM, Srisunmugaraja Paraparan <
>>> parapa...@wso2.com> wrote:
>>>
 Congratulations Tharindu ..

 On Sun, Feb 1, 2015 at 10:41 PM, Pumudu Ruhunage <
 pum...@wso2.com> wrote:

> Congratulations Tharindu..!!! :)
>
> On Sun, Feb 1, 2015 at 10:29 PM, Tharindu Dharmarathna <
> tharin...@wso2.com> wrote:
>
>> Congrats tharindu
>> On Feb 1, 2015 10:21 PM, "Chamin Nalinda" <
>> cha...@wso2.com> wrote:
>>
>>> Congratulations bro :)
>>>
>>> On Sun, Feb 1, 2015 at 10:19 PM, Vijitha Ekanayake <
>>> vijit...@wso2.com> wrote:
>>>
 Congratulations Tharindu !!!

 On Sun, Feb 1, 2015 at 10:11 PM, Buddhima Wijeweera <
 buddh...@wso2.com> wrote:

> Congratulations Tharindu !!!
>
> On Sun, Feb 1, 2015 at 10:10 PM, Firzhan Naqash <
> firz...@wso2.com> wrote:
>
>> Congratz Tharindhu ...
>>
>> Regards,
>> Firzhan
>>
>> On Sun, Feb 1, 2015 at 10:09 PM, Hasintha Indrajee <
>> hasin...@wso2.com> wrote:
>>
>>> Congratulations Tharindu ...!!
>>>
>>> On Sun, Feb 1, 2015 at 9:58 PM, Johann Nallathamby <
>>> joh...@wso2.com> wrote:
>>>
 Hi All,

 It's my pleasure to announce Tharindu Edirisinghe
 as a WSO2 Committer. Tharindu has been a valuable
 contributor for WSO2 Identity Server product, and in 
 recognition of his
 contribution to WSO2, he has been voted as a
 WSO2 Committer.


Re: [Dev] [DEV] Registry Core 4.2.0 Build with Tests Failure

2015-02-04 Thread Chandana Napagoda
Hi,

I think you are using JDK7. We do not recommend JDK 7 for building the code
yet. Please use JDK 6.

Thanks,
Chandana

On Wed, Feb 4, 2015 at 8:50 PM, Akalanka Pagoda Arachchi  wrote:

> Hi all,
>
> I am trying to build carbon registry core 4.2.0 [1] with tests. However,
> the tests fail with following error.
>
> Results :
>
>
> Failed tests:
> testCommentQueryRootRegistry(org.wso2.carbon.registry.core.test.jdbc.CommentsTest):
> Query result count should be 1 expected:<2> but was:<1>
>
>
> Tests run: 196, Failures: 1, Errors: 0, Skipped: 0
>
>
> [INFO]
> 
>
> [INFO] BUILD FAILURE
>
> [INFO]
> 
>
>
> Any idea?
>
> Thanks,
> Akalanka
>
> [1] -
> https://svn.wso2.org/repos/wso2/carbon/kernel/tags/4.2.0/core/org.wso2.carbon.registry.core/4.2.0/
>
> --
> *Darshana Akalanka Pagoda Arachchi,*
> *Software Engineer*
> *078-4721791 <078-4721791>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chandana Napagoda*
Senior Software Engineer
WSO2 Inc. - http://wso2.org

*Email  :  chand...@wso2.com **Mobile : +94718169299*

*Blog  :http://cnapagoda.blogspot.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] Registry Core 4.2.0 Build with Tests Failure

2015-02-04 Thread Akalanka Pagoda Arachchi
Hi all,

I am trying to build carbon registry core 4.2.0 [1] with tests. However,
the tests fail with following error.

Results :


Failed tests:
testCommentQueryRootRegistry(org.wso2.carbon.registry.core.test.jdbc.CommentsTest):
Query result count should be 1 expected:<2> but was:<1>


Tests run: 196, Failures: 1, Errors: 0, Skipped: 0


[INFO]


[INFO] BUILD FAILURE

[INFO]



Any idea?

Thanks,
Akalanka

[1] -
https://svn.wso2.org/repos/wso2/carbon/kernel/tags/4.2.0/core/org.wso2.carbon.registry.core/4.2.0/

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


Re: [Dev] Custom Mediator for JSON Payload Mediation

2015-02-04 Thread Ishan Jayawardena
You can add a dependency to synapse-commons module and use the
org.apache.synapse.commons.json.JsonUtil class to access the JSON payload
within the mediate method (assuming that you are using ESB v4.8.*).
The utility class methods depend on the axis2 message context which you can
obtain from the synapse context.

Thanks,
Ishan.

On Tue, Feb 3, 2015 at 2:48 AM, Maz Lakadia  wrote:

> Hi,
>
> I am attempting to write a Custom Mediator using
> http://wso2.com/library/2898/ and http://wso2.com/library/2936/. However,
> these examples are for XML payloads. I am unsure how I could access the
> message payload within the mediate() method when the payload the JSON. Are
> there any available solutions which do not involve changing my JSON to XML
> and back (I cannot do that as my payload may be invalid XML, but it will
> always be valid JSON).
>
> Thank you,
>
> Maz
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Ishan Jayawardena
Senior Software Engineer
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Regarding CEP

2015-02-04 Thread Damith Wickramasinghe
Hi Demini,

Did you set the "Composite Key columns" value correctly in the formatter ?
It's the value which acts as the primary key for your table.

Regards,
Damith.

On Wed, Feb 4, 2015 at 6:14 PM, Demini Indrachapa 
wrote:

> dear sir,
>
> I have connected a database to CEP through phpMyAdmin. But i was unable to
> update the data. When i was trying to update data it created a new tuple
>  in the table with the updated value.
>
> I selected insert or update mode as the execution mode when creating the
> event formatter. But it also didn't work.
>
> I would be grateful if you could give me a solution soon.
>
> Thank you.
>
> Demini Indrachapa
> 2nd year student from University of Moratuwa
> Faculty of Information Technology
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Software Engineer
WSO2 Inc.; http://wso2.com

lean.enterprise.middleware

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


[Dev] Regarding CEP

2015-02-04 Thread Demini Indrachapa
dear sir,

I have connected a database to CEP through phpMyAdmin. But i was unable to
update the data. When i was trying to update data it created a new tuple
 in the table with the updated value.

I selected insert or update mode as the execution mode when creating the
event formatter. But it also didn't work.

I would be grateful if you could give me a solution soon.

Thank you.

Demini Indrachapa
2nd year student from University of Moratuwa
Faculty of Information Technology
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] trying to remove an empty xml tag from payload using script mediator

2015-02-04 Thread Buddhima Wijeweera
Hi,

Following script will do the job:


var fullContent =  mc.getPayloadXML();
for(var index in  fullContent..*::advancedImageSearchVO.children()){


var b = fullContent..*::advancedImageSearchVO.children()[index];




 if(b.toString() ==''){
 delete fullContent..*::advancedImageSearchVO.children()[index];
   }

 }
   mc.setPayloadXML(fullContent);



Thanks!


On Wed, Feb 4, 2015 at 2:50 PM, Awanthika Senarath 
wrote:

>
> Hi,
>
> in trying to do $subject, i am using the script mediator as folows
>
> * *
>
> *var fullContent =  mc.getPayloadXML();  *
> *var entity = mc.getPayloadXML()..*::entity;*
>
> *if (entity==null){*
> *  fullContent.removeChild(entity);*
> *   } *
>
> *mc.setPayloadXML(fullContent);*
>
> **
>
>
> but my output always contains the empty tag 
>
> sample xml output received
>
> Envelope:
> http://www.w3.org/2003/05/soap-envelope";>
> 
> http://ejb.image.pfpc.com";
> xmlns:vo="http://vo.image.pfpc.com";>
> myProvidor
>
> 
>
> myID
>  <- empty xml tag with no content
>
> 
>
> 
> 
> 
>
>
> where as the expected output shoud be
>
>
> Envelope:
> http://www.w3.org/2003/05/soap-envelope";>
> 
> http://ejb.image.pfpc.com";
> xmlns:vo="http://vo.image.pfpc.com";>
> myProvidor
>
> 
>
> myID
>
>
> 
>
> 
> 
> 
>
>
>
> can someone point out what I am doing wrong?
>
>
> --
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


-- 
Buddhima Wijeweera
Software Engineer; WSO2 Inc.; http://wso2.com ,

Mobile: +94 71 427 9966
Email: buddh...@wso2.com
Blog:   https://buddhimawijeweera.wordpress.com
GitHub Profile: https://github.com/Buddhima
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][APIM] starting multiple APIM server instances

2015-02-04 Thread Tharindu Dharmarathna
Hi dimuthu,iqbal,

Thanks for examples I'll look into this.

Regards
On Feb 4, 2015 4:20 PM, "Irham Iqbal"  wrote:

> Hi Tharindu,
>
> You can use MultipleServersManager to start multiple servers and 
> ServerConfigurationManager
> to load configurations using test framework as shown in example[1]
>
> [1]
> https://github.com/wso2/product-as/blob/master/modules/integration/tests-integration/tests/src/test/java/org/wso2/appserver/integration/tests/ciphertool/H2DBPasswordEncryptionTestCase.java
>
> Thanks,
> Iqbal
>
> On Wed, Feb 4, 2015 at 3:54 PM, Dimuthu De Lanerolle 
> wrote:
>
>> Hi Tharindu,
>>
>> You can follow [1] as a guide.
>>
>> [1]
>> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-scenario/src/test/java/org/wso2/carbon/am/tests/sample/RefreshTokenTestCase.java
>>
>> Regards
>>
>> On Wed, Feb 4, 2015 at 12:30 PM, Tharindu Dharmarathna <
>> tharin...@wso2.com> wrote:
>>
>>> Hi all,
>>> I have to do $subject with  different port-offsets and different
>>> api-manager configurations. I have read [1] to get reference . Is there any
>>> way to load api-manager.xml file into servers except port offseting ? .
>>>
>>> [1]. https://docs.wso2.com/display/TA430/Starting+Multiple+Servers
>>>
>>>
>>>
>>> *Thanks and Regards*
>>>
>>>
>>> *Tharindu Dharmarathna*Associate Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94779109091 <%2B94779109091>*
>>>
>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
> Irham Iqbal
> Software Engineer - Test Automation
>  WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
> phone: +94 777888452
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery] Getting session variables by session id.

2015-02-04 Thread Asiri Liyana Arachchi
Hi Damith,

Thanks for the reply. I've already read it. Using methods mention there
it's possible to get the current session's values.
Let's say for an example somehow  I have two session ID's  of two currently
logged in users. I want to know if it's possible to access those users
session data using their session ID's.

Thanks.

On Wed, Feb 4, 2015 at 3:10 PM, Damith Wickramasinghe 
wrote:

> Hi Asiri,
>
> Please see the documentation below.[1] you should be able to access the
> session values using the given session id.
>
> [1] : http://jaggeryjs.org/documentation.jag?api=session
>
> Regards,
> Damith.
>
> On Wed, Feb 4, 2015 at 2:48 PM, Asiri Liyana Arachchi  > wrote:
>
>> Hi all,
>>
>> In php there is a way to access session variables using session id. [1]
>> How can that be done in jaggery. In jaggery session id can be retrieved
>> (session.getId() )  but using that couldn't find a way to access session
>> variables.
>>
>> Appreciate if anybody can help me on this.
>>
>> Thanks
>>
>>
>> [1]:
>> http://stackoverflow.com/questions/8726268/how-to-get-session-variables-using-session-id
>>
>>
>> --
>> *Asiri Liyana Arachchi*
>> Undergraduate,
>> Department of Computer Science & Engineering
>> University of Moratuwa.
>>
>> Mobile : *+94711336652 <%2B94711336652>*
>> Blog : *asirila.blogspot.com *
>> LinkedIn : *www.linkedin.com/in/9asiri
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>


-- 
*Asiri Liyana Arachchi*
Undergraduate,
Department of Computer Science & Engineering
University of Moratuwa.

Mobile : *+94711336652*
Blog : *asirila.blogspot.com *
LinkedIn : *www.linkedin.com/in/9asiri *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][APIM] starting multiple APIM server instances

2015-02-04 Thread Irham Iqbal
Hi Tharindu,

You can use MultipleServersManager to start multiple servers and
ServerConfigurationManager
to load configurations using test framework as shown in example[1]

[1]
https://github.com/wso2/product-as/blob/master/modules/integration/tests-integration/tests/src/test/java/org/wso2/appserver/integration/tests/ciphertool/H2DBPasswordEncryptionTestCase.java

Thanks,
Iqbal

On Wed, Feb 4, 2015 at 3:54 PM, Dimuthu De Lanerolle 
wrote:

> Hi Tharindu,
>
> You can follow [1] as a guide.
>
> [1]
> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-scenario/src/test/java/org/wso2/carbon/am/tests/sample/RefreshTokenTestCase.java
>
> Regards
>
> On Wed, Feb 4, 2015 at 12:30 PM, Tharindu Dharmarathna  > wrote:
>
>> Hi all,
>> I have to do $subject with  different port-offsets and different
>> api-manager configurations. I have read [1] to get reference . Is there any
>> way to load api-manager.xml file into servers except port offseting ? .
>>
>> [1]. https://docs.wso2.com/display/TA430/Starting+Multiple+Servers
>>
>>
>>
>> *Thanks and Regards*
>>
>>
>> *Tharindu Dharmarathna*Associate Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94779109091 <%2B94779109091>*
>>
>
>
>
> --
> 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
>
>


-- 
Irham Iqbal
Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
phone: +94 777888452
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][APIM] starting multiple APIM server instances

2015-02-04 Thread Dimuthu De Lanerolle
Hi Tharindu,

You can follow [1] as a guide.

[1]
https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-scenario/src/test/java/org/wso2/carbon/am/tests/sample/RefreshTokenTestCase.java

Regards

On Wed, Feb 4, 2015 at 12:30 PM, Tharindu Dharmarathna 
wrote:

> Hi all,
> I have to do $subject with  different port-offsets and different
> api-manager configurations. I have read [1] to get reference . Is there any
> way to load api-manager.xml file into servers except port offseting ? .
>
> [1]. https://docs.wso2.com/display/TA430/Starting+Multiple+Servers
>
>
>
> *Thanks and Regards*
>
>
> *Tharindu Dharmarathna*Associate Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94779109091 <%2B94779109091>*
>



-- 
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] Issue on running wsdl2java.bat on Windows

2015-02-04 Thread Irham Iqbal
Hi,

When running wsdl2java.bat on windows as shown below i am getting the
following result.

C:\Users\wso2\Desktop\wso2as-1\bin>wsdl2java.bat -uri
http://192.168.1.3:9763/services/HelloService?wsdl

BUILD SUCCESSFUL
Total time: 7 seconds
Using CARBON_HOME:   C:\Users\wso2\Desktop\wso2as-1
Using JAVA_HOME:C:\Program Files\Java\jdk1.6.0_23
Retrieving document at 'http://192.168.1.3:9763/services/HelloService?wsdl'.
[2015-02-04 14:58:11,088]  INFO
{org.apache.axis2.wsdl.codegen.writer.FileWriter}
-  The .\src\org\wso2\www\types\HelloServiceCallbackHandler
.java file cannot be overwritten.
[2015-02-04 14:58:11,120]  INFO
{org.apache.axis2.wsdl.codegen.writer.FileWriter}
-  The .\src\org\wso2\www\types\HelloServiceStub.java file
cannot be overwritten.

But src folder is not created in bin folder.

But when running the wsdl2java.sh on mac as  wsdl2java.sh -uri
http://192.168.1.3:9763/services/HelloService?wsdl

creates folder
structure with the java classes.




-- 
Irham Iqbal
Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
phone: +94 777888452
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery] Getting session variables by session id.

2015-02-04 Thread Damith Wickramasinghe
Hi Asiri,

Please see the documentation below.[1] you should be able to access the
session values using the given session id.

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

Regards,
Damith.

On Wed, Feb 4, 2015 at 2:48 PM, Asiri Liyana Arachchi 
wrote:

> Hi all,
>
> In php there is a way to access session variables using session id. [1]
> How can that be done in jaggery. In jaggery session id can be retrieved
> (session.getId() )  but using that couldn't find a way to access session
> variables.
>
> Appreciate if anybody can help me on this.
>
> Thanks
>
>
> [1]:
> http://stackoverflow.com/questions/8726268/how-to-get-session-variables-using-session-id
>
>
> --
> *Asiri Liyana Arachchi*
> Undergraduate,
> Department of Computer Science & Engineering
> University of Moratuwa.
>
> Mobile : *+94711336652 <%2B94711336652>*
> Blog : *asirila.blogspot.com *
> LinkedIn : *www.linkedin.com/in/9asiri
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Software Engineer
WSO2 Inc.; http://wso2.com

lean.enterprise.middleware

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


[Dev] Server hangs with mssql

2015-02-04 Thread Vijayaratha Vijayasingam
Hi all;
I configured mssql as DB. When starting the server (AM 1.8.0)it hangs at
some point. There is no any error logs or other log infos.[1]

Anyone faced such issue before?

[1]

[2015-02-05 08:12:08,679]  INFO - CarbonCoreActivator User :
Administrator, en-US, Asia/Singapore
[2015-02-05 08:12:10,056]  WARN - ValidationResultPrinter The running OS :
Windows Server 2012 is not a tested Operating System for running WSO2 Carbo
n
[2015-02-05 08:12:10,056]  WARN - ValidationResultPrinter The default
keystore (wso2carbon.jks) is currently being used. To maximize security
when dep
loying to a production environment, configure a new keystore with a unique
password in the production server profile.
[2015-02-05 08:12:10,181]  INFO - AgentHolder Agent created !
[2015-02-05 08:12:10,197]  INFO - AgentDS Successfully deployed Agent Client
[2015-02-05 08:12:10,244]  INFO - AgentHolder Agent created !
[2015-02-05 08:12:10,275]  INFO - AgentDS Successfully deployed Agent Client
[2015-02-05 08:12:23,884]  INFO - TaglibUriRule TLD skipped. URI:
http://tiles.apache.org/tags-tiles is already defined
[2015-02-05 08:12:28,883]  INFO - EmbeddedRegistryService Configured
Registry in 68ms
[2015-02-05 08:12:28,976]  INFO - EmbeddedRegistryService Connected to
mount at govregistry in 66ms
[2015-02-05 08:13:42,880]  INFO - EmbeddedRegistryService Connected to
mount at govregistry in 399ms
[2015-02-05 08:13:59,519]  INFO - RegistryCoreServiceComponent Registry
Mode: READ-WRITE


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


[Dev] [ESB] trying to remove an empty xml tag from payload using script mediator

2015-02-04 Thread Awanthika Senarath
Hi,

in trying to do $subject, i am using the script mediator as folows

* *

*var fullContent =  mc.getPayloadXML();  *
*var entity = mc.getPayloadXML()..*::entity;*

*if (entity==null){*
*  fullContent.removeChild(entity);*
*   } *

*mc.setPayloadXML(fullContent);*

**


but my output always contains the empty tag 

sample xml output received

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

http://ejb.image.pfpc.com";
xmlns:vo="http://vo.image.pfpc.com";>
myProvidor



myID
 <- empty xml tag with no content








where as the expected output shoud be


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

http://ejb.image.pfpc.com";
xmlns:vo="http://vo.image.pfpc.com";>
myProvidor



myID










can someone point out what I am doing wrong?


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


[Dev] [Jaggery] Getting session variables by session id.

2015-02-04 Thread Asiri Liyana Arachchi
Hi all,

In php there is a way to access session variables using session id. [1]
How can that be done in jaggery. In jaggery session id can be retrieved
(session.getId() )  but using that couldn't find a way to access session
variables.

Appreciate if anybody can help me on this.

Thanks


[1]:
http://stackoverflow.com/questions/8726268/how-to-get-session-variables-using-session-id


-- 
*Asiri Liyana Arachchi*
Undergraduate,
Department of Computer Science & Engineering
University of Moratuwa.

Mobile : *+94711336652*
Blog : *asirila.blogspot.com *
LinkedIn : *www.linkedin.com/in/9asiri *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev