Re: [Dev] [Architecture] [VOTE] Release WSO2 Enterprise Integrator 6.5.0 RC1

2019-05-18 Thread Keerthika Mahendralingam
Hi All,

I have tested the following:
 1. Call mediator
 2. Property mediator
 3. Validate mediator
 4. Kerberos mediator

[+] Stable go ahead and release.

Thanks,


On Sat, 18 May 2019, 10:56 Kesavan Yogarajah,  wrote:

> Hi All,
>
> I tested the following, and no issues found.
>
>- Salesforce Connector
>- Salesforce custom inbound Endpoint
>- Script mediator
>
>
> [+] Stable - go ahead and release
>
> Thanks
> Kesavan
>
> Kesavan Yogarajah
> Software Engineer
> Mobile :+94 (0) 779 758021
> kesav...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
>
>
> On Fri, May 17, 2019 at 11:15 PM Mathuriga Thavarajah 
> wrote:
>
>> Hi All,
>>
>> Security Scanning reports (Static and Dynamic) were analyzed and
>> reviewed. Hence +1 from the Platform Security Team for proceeding with the
>> release.
>>
>> Thanks.
>>
>> Regards,
>> Mathuriga.
>>
>> On Fri, May 17, 2019 at 7:06 PM Chanika Geeganage 
>> wrote:
>>
>>> Hi All,
>>>
>>> I tested following scenarios ( artifacts were created using both
>>> management console and integration studio).
>>> 1. Call Template
>>> 2. Adding a datasource
>>> 3. Generating a dataservice form the datasource
>>> 4. Creating a dataservice and uploading a dataservice
>>> 5. Tested sample dataservices
>>> 6. Odata
>>>
>>> [+] Stable - go ahead and release
>>>
>>> On Thu, May 16, 2019 at 7:33 PM Nirothipan Megalingham <
>>> nirothi...@wso2.com> wrote:
>>>
 Hi all,

 We are pleased to announce the first release candidate of WSO2
 Enterprise Integrator 6.5.0.

 Please find the list of tasks / bug fixes and improvements shipped with
 this release below

- Tasks/bug fixes and improvements in Enterprise Integrator

 
- Tasks/bug fixes and improvements in Micro Integrator

 

 Known Issues

- https://github.com/wso2/product-ei/issues
- https://github.com/wso2/micro-integrator/issues

 The tag to be voted upon:
 https://github.com/wso2/product-ei/tree/v6.5.0-rc1

 Source and binary distributions:
 https://github.com/wso2/product-ei/releases/tag/v6.5.0-rc1

 Please test and vote as follows

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

 You may find the official documentation in:
 https://docs.wso2.com/display/EI6xx

 ~ The Enterprise Integrator Team ~


 --

 *M.Nirothipan* | Senior Software Engineer | WSO2 Inc.

 (m) +94772172692 | (e) nirothi...@wso2.com

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


>>>
>>> --
>>>
>>> *Chanika Geeganage* | Associate Technical Lead | WSO2 Inc.
>>>
>>> (m) +94-77-3522586 | (e) chan...@wso2.com
>>>
>>> 
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>
>>
>> --
>>
>> *Mathuriga Thavarajah*
>> Software Engineer
>> WSO2 Inc. - http ://wso2.com
>>
>> Email : mathur...@wso2.com
>> Mobile  : +94778191300
>>
>>
>>
>> *[image: http://wso2.com/signature] *
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting "SignatureDoesNotMatch" error with deleteBucketReplication operation in Amazon s3 connector

2018-11-19 Thread Keerthika Mahendralingam
 I/O
dispatcher-1 >> "HTTP/1.1 400 Bad Request[\r][\n]"
[2018-11-13 12:17:07,879] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 >> "x-amz-request-id: F5C724399C125966[\r][\n]"
[2018-11-13 12:17:07,879] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 >> "x-amz-id-2:
Hl9SMI32dNfQkO3lDftVSENO0HCYsECYSCxB2K4tQdITmn9hqHACt1AIqVFnD98Nq+YbPyv58y0=[\r][\n]"
[2018-11-13 12:17:07,879] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 >> "Content-Type: application/xml[\r][\n]"
[2018-11-13 12:17:07,880] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 >> "Transfer-Encoding: chunked[\r][\n]"
[2018-11-13 12:17:07,880] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 >> "Date: Tue, 13 Nov 2018 06:43:13 GMT[\r][\n]"
[2018-11-13 12:17:07,880] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 >> "Connection: close[\r][\n]"
[2018-11-13 12:17:07,880] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 >> "Server: AmazonS3[\r][\n]"
[2018-11-13 12:17:07,880] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 >> "[\r][\n]"
[2018-11-13 12:17:07,881] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 >> "168[\r][\n]"
[2018-11-13 12:17:07,881] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 >> "[\n]"
[2018-11-13 12:17:07,881] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 >> "RequestTimeoutYour socket
connection to the server was not read from or written to within the timeout
period. Idle connections will be
closed.F5C724399C125966Hl9SMI32dNfQkO3lDftVSENO0HCYsECYSCxB2K4tQdITmn9hqHACt1AIqVFnD98Nq+YbPyv58y0=[\r][\n]"

Thanks,
Keerthika.

On Mon, Nov 19, 2018 at 7:56 PM Shakila Sasikaran  wrote:

> Hi Keerthika,
>
> I have checked the fix. As far as I understood, your intension is to send
> the DELETE request without the body and set the Content-Length. Please
> correct me if I'm wrong.
> This FORCE_POST_PUT_NOBODY is for sending POST and PUT requests without
> body and this property will not be considered in the DELETE request path.
> AFAIK the delete request from EI will not contain body and content length.
>
> Thanks
>
> On Mon, Nov 19, 2018 at 4:47 PM Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi Biruntha,
>>
>> I have added the fix to the connector in the following pr [1]. Could you
>> please check now.
>>
>> [1]. https://github.com/wso2-extensions/esb-connector-amazons3/pull/25
>> <https://github.com/wso2-extensions/esb-connector-amazons3/pull/25>
>>
>> Thanks,
>> Keerthika.
>>
>> On Tue, Nov 13, 2018 at 12:35 PM Keerthika Mahendralingam <
>> keerth...@wso2.com> wrote:
>>
>>> Hi Biruntha,
>>>
>>> This method is working fine with EI 6.1.1. But getting the same error as
>>> yours with EI 6.4.0. Need to check.
>>>
>>> Thanks,
>>> Keerthika.
>>>
>>> On Tue, Nov 13, 2018 at 11:45 AM Keerthika Mahendralingam <
>>> keerth...@wso2.com> wrote:
>>>
>>>> Hi Biruntha,
>>>>
>>>> I have tried the deleteBucketReplication with the following request. It
>>>> worked for me.
>>>>
>>>> 
>>>> XXX
>>>> 
>>>> DELETE
>>>> application/xml
>>>> true
>>>> signv4test
>>>> s3.us-east-2.amazonaws.com
>>>> http://s3.us-east-2.amazonaws.com/signv4test
>>>> 
>>>> 
>>>> us-east-2
>>>> 
>>>> 
>>>> public-read
>>>> 
>>>>
>>>> Thanks,
>>>> Keerthika.
>>>>
>>>> On Thu, Nov 8, 2018 at 9:23 AM Biruntha Gnaneswaran 
>>>> wrote:
>>>>
>>>>> Hi Keerthika,
>>>>>
>>>>> I have tried with the above mentioned two configs. But for both
>>>>> configs I'm getting RequestTimeout error as in [1]. Please find the wire
>>>>> log for this two request and response [2] & [3].
>>>>>
>>>>> [1]
>>>>> 
>>>>> RequestTimeout
>>>>> Your socket connection to the server was not read from or
>>>>> written to within the timeout period. Idle connections will be
>>>>> closed.
>>>>> 9D3D185B485D9BD9
>>>>>
>>>>> RhLOUIb8SMBZCLTddE0oKFF4OxZ5qQOOIDjikeB66xQgIHshsdsk0fHUdPd1TTgEelN8WZT4XWE=
>>>>> 
>>>>>
>>>>> [2]
>>>>>
>>>>&g

Re: [Dev] Getting "SignatureDoesNotMatch" error with deleteBucketReplication operation in Amazon s3 connector

2018-11-19 Thread Keerthika Mahendralingam
Hi Biruntha,

I have added the fix to the connector in the following pr [1]. Could you
please check now.

[1]. https://github.com/wso2-extensions/esb-connector-amazons3/pull/25
<https://github.com/wso2-extensions/esb-connector-amazons3/pull/25>

Thanks,
Keerthika.

On Tue, Nov 13, 2018 at 12:35 PM Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi Biruntha,
>
> This method is working fine with EI 6.1.1. But getting the same error as
> yours with EI 6.4.0. Need to check.
>
> Thanks,
> Keerthika.
>
> On Tue, Nov 13, 2018 at 11:45 AM Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi Biruntha,
>>
>> I have tried the deleteBucketReplication with the following request. It
>> worked for me.
>>
>> 
>> XXX
>> 
>> DELETE
>> application/xml
>> true
>> signv4test
>> s3.us-east-2.amazonaws.com
>> http://s3.us-east-2.amazonaws.com/signv4test
>> 
>> 
>> us-east-2
>> 
>> 
>> public-read
>> 
>>
>> Thanks,
>> Keerthika.
>>
>> On Thu, Nov 8, 2018 at 9:23 AM Biruntha Gnaneswaran 
>> wrote:
>>
>>> Hi Keerthika,
>>>
>>> I have tried with the above mentioned two configs. But for both configs
>>> I'm getting RequestTimeout error as in [1]. Please find the wire log for
>>> this two request and response [2] & [3].
>>>
>>> [1]
>>> 
>>> RequestTimeout
>>> Your socket connection to the server was not read from or
>>> written to within the timeout period. Idle connections will be
>>> closed.
>>> 9D3D185B485D9BD9
>>>
>>> RhLOUIb8SMBZCLTddE0oKFF4OxZ5qQOOIDjikeB66xQgIHshsdsk0fHUdPd1TTgEelN8WZT4XWE=
>>> 
>>>
>>> [2]
>>>
>>> [2018-11-08 09:13:21,966] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "POST /services/amazons3_deleteBucketReplication
>>> HTTP/1.1[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "Content-Type: application/xml[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "cache-control: no-cache[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "Postman-Token:
>>> 96535872-a3e1-4702-ad2d-f87b5a8a93cd[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "User-Agent: PostmanRuntime/7.3.0[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "Accept: */*[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "Host: biruntha:8280[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "accept-encoding: gzip, deflate[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "content-length: 827[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "Connection: keep-alive[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "x[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "
>>> x[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "DELETE[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "true[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "0[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "us-east-2[\n]"
>>> [2018-11-08 

Re: [Dev] Getting "SignatureDoesNotMatch" error with deleteBucketReplication operation in Amazon s3 connector

2018-11-12 Thread Keerthika Mahendralingam
Hi Biruntha,

This method is working fine with EI 6.1.1. But getting the same error as
yours with EI 6.4.0. Need to check.

Thanks,
Keerthika.

On Tue, Nov 13, 2018 at 11:45 AM Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi Biruntha,
>
> I have tried the deleteBucketReplication with the following request. It
> worked for me.
>
> 
> XXX
> 
> DELETE
> application/xml
> true
> signv4test
> s3.us-east-2.amazonaws.com
> http://s3.us-east-2.amazonaws.com/signv4test
> 
> 
> us-east-2
> 
> 
> public-read
> 
>
> Thanks,
> Keerthika.
>
> On Thu, Nov 8, 2018 at 9:23 AM Biruntha Gnaneswaran 
> wrote:
>
>> Hi Keerthika,
>>
>> I have tried with the above mentioned two configs. But for both configs
>> I'm getting RequestTimeout error as in [1]. Please find the wire log for
>> this two request and response [2] & [3].
>>
>> [1]
>> 
>> RequestTimeout
>> Your socket connection to the server was not read from or
>> written to within the timeout period. Idle connections will be
>> closed.
>> 9D3D185B485D9BD9
>>
>> RhLOUIb8SMBZCLTddE0oKFF4OxZ5qQOOIDjikeB66xQgIHshsdsk0fHUdPd1TTgEelN8WZT4XWE=
>> 
>>
>> [2]
>>
>> [2018-11-08 09:13:21,966] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "POST /services/amazons3_deleteBucketReplication
>> HTTP/1.1[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "Content-Type: application/xml[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "cache-control: no-cache[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "Postman-Token:
>> 96535872-a3e1-4702-ad2d-f87b5a8a93cd[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "User-Agent: PostmanRuntime/7.3.0[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "Accept: */*[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "Host: biruntha:8280[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "accept-encoding: gzip, deflate[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "content-length: 827[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "Connection: keep-alive[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "x[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "
>> x[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "DELETE[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "true[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "0[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "us-east-2[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "testbuckkkbiru[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "s3.us-east-2.amazonaws.com[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "
>> http://s3.us-east-2.amazonaws.com/testbuckkkbiru[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire

Re: [Dev] Getting "SignatureDoesNotMatch" error with deleteBucketReplication operation in Amazon s3 connector

2018-11-12 Thread Keerthika Mahendralingam
 GMT[\r][\n]"
> [2018-11-08 09:11:52,319] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 << "Postman-Token:
> e888f860-7d44-462b-93e6-b7bb6a17a1ec[\r][\n]"
> [2018-11-08 09:11:52,319] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 << "cache-control: no-cache[\r][\n]"
> [2018-11-08 09:11:52,319] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 << "accept-encoding: gzip, deflate[\r][\n]"
> [2018-11-08 09:11:52,320] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 << "Content-Type: [\r][\n]"
> [2018-11-08 09:11:52,320] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 << "Transfer-Encoding: chunked[\r][\n]"
> [2018-11-08 09:11:52,320] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 << "Host: testbuckkkbiru.s3.us-east-2.amazonaws.com[\r][\n]"
> [2018-11-08 09:11:52,320] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 << "Connection: Keep-Alive[\r][\n]"
> [2018-11-08 09:11:52,320] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 << "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
> [2018-11-08 09:11:52,320] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 << "[\r][\n]"
> [2018-11-08 09:11:52,320] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 << "1a1[\r][\n]"
> [2018-11-08 09:11:52,320] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 <<
> "accessKeyId=xxx=x=DELETE=true=0==us-east-2=
> testbuckkkbiru.s3.us-east-2.amazonaws.com=http%3A%2F%
> 2Ftestbuckkkbiru.s3.us-east-2.amazonaws.com
> ===public-read=[\r][\n]"
> [2018-11-08 09:11:52,320] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 << "0[\r][\n]"
> [2018-11-08 09:11:52,320] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 << "[\r][\n]"
> [2018-11-08 09:12:12,744] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 >> "HTTP/1.1 400 Bad Request[\r][\n]"
> [2018-11-08 09:12:12,745] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 >> "x-amz-request-id: B6F5E938580BA667[\r][\n]"
> [2018-11-08 09:12:12,746] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 >> "x-amz-id-2:
> r6uXD7k9kVwqCAPd44EnDB6xm80XtQjBQpGW1NY+ozg/UIgajRw2ZZmD/u+gGJy5e3ypGBli1U0=[\r][\n]"
> [2018-11-08 09:12:12,746] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 >> "Content-Type: application/xml[\r][\n]"
> [2018-11-08 09:12:12,746] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 >> "Transfer-Encoding: chunked[\r][\n]"
> [2018-11-08 09:12:12,747] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 >> "Date: Thu, 08 Nov 2018 03:42:13 GMT[\r][\n]"
> [2018-11-08 09:12:12,747] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 >> "Connection: close[\r][\n]"
> [2018-11-08 09:12:12,748] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 >> "Server: AmazonS3[\r][\n]"
> [2018-11-08 09:12:12,748] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 >> "[\r][\n]"
> [2018-11-08 09:12:12,748] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 >> "168[\r][\n]"
> [2018-11-08 09:12:12,748] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 >> "[\n]"
> [2018-11-08 09:12:12,749] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 >> "RequestTimeoutYour socket
> connection to the server was not read from or written to within the timeout
> period. Idle connections will be
> closed.B6F5E938580BA667r6uXD7k9kVwqCAPd44EnDB6xm80XtQjBQpGW1NY+ozg/UIgajRw2ZZmD/u+gGJy5e3ypGBli1U0=[\r][\n]"
> [2018-11-08 09:12:12,749] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 >> "0[\r][\n]"
> [2018-11-08 09:12:12,749] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-1 >> "[\r][\n]"
> [2018-11-08 09:12:12,755] [EI-Core] DEBUG - headers http-outgoing-1 <<
> HTTP/1.1 400 Bad Request
> [2018-11-08 09:12:12,755] [EI-Core] DEBUG - headers http-outgoing-1 <<
> x-amz-request-id: B6F5E938580BA667
> [2018-11-08 09:12:12,756] [EI-Core] DEBUG - headers http-outgoing-1 <<
> x-amz-id-2:
> r6uXD7k9kVwqCAPd44EnDB6xm80XtQjBQpGW1NY+ozg/UIgajRw2ZZmD/u+gGJy5e3ypGBli1U0=
> [2018-11-08 09:12:12,756] [EI-Core] DEBUG - headers http-outgoing-1 <<
> Content-Type: application/xml
> [2018-11-08 09:12:12,757] [EI-Core] DEBUG - headers http-outgoing-1 <<
> Transfer-Encoding: chunked
> [2018-11-08 09:12:12,758] [EI-Core] DEBUG - headers http-outgoing-1 <<
> Date: Thu, 08 Nov 2018 03:42:13 GMT
> [2018-11-08 09:12:12,758] [EI-Core] DEBUG - headers http-outgoi

Re: [Dev] Getting "SignatureDoesNotMatch" error with deleteBucketReplication operation in Amazon s3 connector

2018-11-07 Thread Keerthika Mahendralingam
Hi Biruntha,

If you are using virtual-hosted–style bucket url(
http://testbuckkkbiru.s3.amazonaws.com) then the host should be
testbuckkkbiru.s3.amazonaws.com and you should not provide the bucketName
in your init configuration. And also, since you are trying to access the
bucket from us-east-2 your bucket url should be
http://testbuckkkbiru.s3.us-east-2.amazonaws.com. Could you please try with
the following config:


xx
xx
DELETE
application/xml
true
testbuckkkbiru
s3.us-east-2.amazonaws.com
http://s3.us-east-2.amazonaws.com/testbuckkkbiru


us-east-2


public-read


or


xx
xx
DELETE
application/xml
true
testbuckkkbiru.s3.us-east-2.amazonaws.com
http://testbuckkkbiru.s3.us-east-2.amazonaws.com


us-east-2


public-read


[1]. https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region

Thanks,
Keerthika.

On Tue, Oct 9, 2018 at 11:52 AM Biruntha Gnaneswaran 
wrote:

> Hi Shakila,
>
> I have tried as you mentioned but still I'm getting
> "SignatureDoesNotMatch" error. So, I have posted stackoverflow question
> regarding this [1].
>
> [1]
> https://stackoverflow.com/questions/52714250/getting-signaturedoesnotmatch-error-with-delete-bucket-replication-operation-i
>
> Thanks,
>
> On Mon, Oct 8, 2018 at 1:56 PM, Shakila Sasikaran 
> wrote:
>
>> Hi Biruntha,
>>
>> As per the API documentation [1], I think the bucket URL should be like
>> /. Could you please try with 
>> *http://testbuckkkbiru.s3-us-east-2.amazonaws.com
>> <http://testbuckkkbiru.s3-us-east-2.amazonaws.com>*?
>>
>> [1]
>> https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketDELETEreplication.html
>>
>> Thanks
>>
>> On Fri, Oct 5, 2018 at 3:00 PM Biruntha Gnaneswaran 
>> wrote:
>>
>>> Hi All,
>>>
>>> I'm trying to use deleteBucketReplication operation in amazon s3
>>> connector [1] & [2]. But I'm getting "SignatureDoesNotMatch" error with the
>>> sample request [3] & [4].  When I try this method with host and bucketUrl
>>> as in [5], I'm getting error as in [6]. Am I missed anything? Appreciate
>>> your input on this.
>>>
>>>
>>> [1]
>>> https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketDELETEreplication.html
>>> [2]
>>> https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Buckets+in+Amazon+S3#WorkingwithBucketsinAmazonS3-deleteBucketReplication
>>> [3]
>>> 
>>> xx
>>> xx
>>> DELETE
>>> application/xml
>>> true
>>> http://testbuckkkbiru.s3.amazonaws.com
>>> 
>>> 
>>> us-east-2
>>> testbuckkkbiru
>>> s3.amazonaws.com
>>> 
>>> 
>>> public-read
>>> 
>>> [4]
>>> 
>>> http://ws.apache.org/ns/synapse;
>>>name="amazons3_deleteBucketReplication"
>>>startOnLoad="true"
>>>statistics="disable"
>>>trace="disable"
>>>transports="http,https">
>>>
>>>   
>>>  
>>>  >> name="secretAccessKey"/>
>>>  
>>>  
>>>  
>>>  
>>>  
>>>  
>>>  >> name="xAmzSecurityToken"/>
>>>  
>>>  
>>>  >> name="contentLength"/>
>>>  
>>>  
>>>  
>>> {$ctx:accessKeyId}
>>> {$ctx:secretAccessKey}
>>> {$ctx:methodType}
>>> {$ctx:contentType}
>>> {$ctx:bucketName}
>>> {$ctx:isXAmzDate}
>>> {$ctx:contentMD5}
>>>
>>> {$ctx:xAmzSecurityToken}
>>> {$ctx:region}
>>> {$ctx:host}
>>> {$ctx:expect}
>>> {$ctx:contentLength}
>>> {$ctx:xAmzMfa}
>>>  
>>>  
>>> {$ctx:bucketUrl}
>>>  
>>>  
>>>   
>>>   
>>>  
>>>   
>>>
>>>
>>> 
>>>
>>> [5]
>>> s3-us-east-2.amazonaws.com
>>> http://s3-us-east-2.amazonaws.com/testbuckkkbiru
>>>
>>> [6]
>>> RequestTimeoutYour socket connection to the
>>> server was not read from or written to within the timeout period. Idle
>>> connections will be
>>> closed.DEEACD868FB28742zVKD6i4XzrWD7Dh8htoqPrlDypGClgB4SjdCD+4IQz7IkrqP1D7Xt4l+R9DhfsUSEefqZzlZoXo=
>>>
>>> Thanks,
>>> --
>>> Biruntha
>>>
>>> Software Engineer
>>> WSO2
>>> Email: birun...@wso2.com
>>> LinkedIn: https://lk.linkedin.com/in/biruntha
>>> Mobile : +94773718986
>>>
>>
>>
>> --
>> Shakila Sasikaran
>> Software Engineer
>> Mobile :+94 (0) 77 526 6848
>> shak...@wso2.com
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>>
>
>
>
> --
> Biruntha
>
> Software Engineer
> WSO2
> Email: birun...@wso2.com
> LinkedIn: https://lk.linkedin.com/in/biruntha
> Mobile : +94773718986
>


-- 

Keerthika Mahendralingam
Senior Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB 5.0.0] Unable to login into admin console

2018-04-08 Thread Keerthika Mahendralingam
Thanks Ashen.


Thanks,
Keerthika.

On Sun, Apr 8, 2018 at 8:29 PM, Ashen Weerathunga <as...@wso2.com> wrote:

> Hi Keerthika,
>
> This is a known issue [1] with macOS High Sierra and we have fixed it with
> Carbon Kernel v4.4.22. So this issue does not exist in the latest WSO2
> products based on kernel v4.4.22 or higher.
>
> [1] https://docs.wso2.com/display/compatibility/Known+Incompatibilities
>
> Thanks,
> Ashen
>
> On Sun, Apr 8, 2018 at 7:20 PM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Thanks Nirothipan. But changing jdk version didn't help.
>>
>> @Prakhash, Thanks, I was able to login successfully after changing the
>> compression option as "off". But earlier, I was able to login
>> successfully from my old machine without changing the compression
>> option. What is the reason behind this?
>>
>> Thanks,
>> Keerthika.
>>
>> On Fri, Apr 6, 2018 at 6:59 PM, Prakhash Sivakumar <prakh...@wso2.com>
>> wrote:
>>
>>> Hi Keerthika,
>>>
>>> Change the compression option as "off" in the catalina-server.xml. Then
>>> it should work.
>>>
>>> Thanks.
>>>
>>> On Fri, Apr 6, 2018 at 6:18 PM, Nirothipan Mehalingam <
>>> nirothi...@wso2.com> wrote:
>>>
>>>> Hi Keerthika,
>>>>
>>>> There was a  similar issue [1] with JDK 1.8.0_151 but not with JDK
>>>> 1.8.0_144. However, to confirm whether this is specific to JDK, could you
>>>> please try with some other version of JDK and see?
>>>>
>>>> [1] - https://github.com/wso2/product-ei/issues/1219
>>>>
>>>> Thanks
>>>> Nirothipan
>>>>
>>>> On Fri, Apr 6, 2018 at 6:11 PM, Keerthika Mahendralingam <
>>>> keerth...@wso2.com> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> I am getting "403 Forbidden Error" when I tried to login into ESB
>>>>> admin console.
>>>>>
>>>>> Mac OS version : 10.13.2
>>>>> Java version :  1.8.0_144
>>>>>
>>>>> What could be the reason?
>>>>>
>>>>> Console error:
>>>>>
>>>>> [2018-04-06 18:01:13,178]  INFO - CarbonUIServiceComponent Mgt Console
>>>>> URL  : https://10.100.5.169:9443/carbon/
>>>>>
>>>>> [2018-04-06 18:01:25,382]  WARN - JavaLogger potential cross-site
>>>>> request forgery (CSRF) attack thwarted (user:, ip:10.100.5.169,
>>>>> method:POST, uri:/carbon/admin/login_action.jsp, error:required token
>>>>> is missing from the request)
>>>>>
>>>>> Thanks,
>>>>> Keerthika.
>>>>> --
>>>>> <dev-requ...@wso2.org>
>>>>> Keerthika Mahendralingam
>>>>> Senior Software Engineer
>>>>> Mobile :+94 (0) 776 121144
>>>>> keerth...@wso2.com
>>>>> WSO2, Inc.
>>>>> lean . enterprise . middleware
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>> *M.Nirothipan*
>>>> *Software Engineer | WSO2*
>>>> *Mobile : +94 77 2172692*
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Prakhash Sivakumar
>>> Senior Software Engineer | WSO2 Inc
>>> Platform Security Team
>>> Mobile : +94771510080
>>> Blog : https://medium.com/@PrakhashS
>>>
>>
>>
>>
>> --
>> <dev-requ...@wso2.org>
>> Keerthika Mahendralingam
>> Senior Software Engineer
>> Mobile :+94 (0) 776 121144
>> keerth...@wso2.com
>> WSO2, Inc.
>> lean . enterprise . middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Ashen Weerathunga*
> Software Engineer
> WSO2 Inc.: http://wso2.com
> lean.enterprise.middleware
>
> Email: as...@wso2.com
> Mobile: +94716042995 <94716042995>
> LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
> <http://lk.linkedin.com/in/ashenweerathunga>*
>
> <http://wso2.com/signature>
>



-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Senior Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB 5.0.0] Unable to login into admin console

2018-04-08 Thread Keerthika Mahendralingam
Thanks Nirothipan. But changing jdk version didn't help.

@Prakhash, Thanks, I was able to login successfully after changing the
compression option as "off". But earlier, I was able to login successfully
from my old machine without changing the compression option. What is the
reason behind this?

Thanks,
Keerthika.

On Fri, Apr 6, 2018 at 6:59 PM, Prakhash Sivakumar <prakh...@wso2.com>
wrote:

> Hi Keerthika,
>
> Change the compression option as "off" in the catalina-server.xml. Then it
> should work.
>
> Thanks.
>
> On Fri, Apr 6, 2018 at 6:18 PM, Nirothipan Mehalingam <nirothi...@wso2.com
> > wrote:
>
>> Hi Keerthika,
>>
>> There was a  similar issue [1] with JDK 1.8.0_151 but not with JDK
>> 1.8.0_144. However, to confirm whether this is specific to JDK, could you
>> please try with some other version of JDK and see?
>>
>> [1] - https://github.com/wso2/product-ei/issues/1219
>>
>> Thanks
>> Nirothipan
>>
>> On Fri, Apr 6, 2018 at 6:11 PM, Keerthika Mahendralingam <
>> keerth...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I am getting "403 Forbidden Error" when I tried to login into ESB admin
>>> console.
>>>
>>> Mac OS version : 10.13.2
>>> Java version :  1.8.0_144
>>>
>>> What could be the reason?
>>>
>>> Console error:
>>>
>>> [2018-04-06 18:01:13,178]  INFO - CarbonUIServiceComponent Mgt Console
>>> URL  : https://10.100.5.169:9443/carbon/
>>>
>>> [2018-04-06 18:01:25,382]  WARN - JavaLogger potential cross-site
>>> request forgery (CSRF) attack thwarted (user:, ip:10.100.5.169,
>>> method:POST, uri:/carbon/admin/login_action.jsp, error:required token
>>> is missing from the request)
>>>
>>> Thanks,
>>> Keerthika.
>>> --
>>> <dev-requ...@wso2.org>
>>> Keerthika Mahendralingam
>>> Senior Software Engineer
>>> Mobile :+94 (0) 776 121144
>>> keerth...@wso2.com
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>>
>>
>> *M.Nirothipan*
>> *Software Engineer | WSO2*
>> *Mobile : +94 77 2172692*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Prakhash Sivakumar
> Senior Software Engineer | WSO2 Inc
> Platform Security Team
> Mobile : +94771510080
> Blog : https://medium.com/@PrakhashS
>



-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Senior Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB 5.0.0] Unable to login into admin console

2018-04-06 Thread Keerthika Mahendralingam
Hi All,

I am getting "403 Forbidden Error" when I tried to login into ESB admin
console.

Mac OS version : 10.13.2
Java version :  1.8.0_144

What could be the reason?

Console error:

[2018-04-06 18:01:13,178]  INFO - CarbonUIServiceComponent Mgt Console URL
 : https://10.100.5.169:9443/carbon/

[2018-04-06 18:01:25,382]  WARN - JavaLogger potential cross-site request
forgery (CSRF) attack thwarted (user:, ip:10.100.5.169,
method:POST, uri:/carbon/admin/login_action.jsp, error:required token is
missing from the request)

Thanks,
Keerthika.
-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Senior Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Not able to split file using wso2 fileConnector

2018-04-02 Thread Keerthika Mahendralingam
Thanks Shakila for pointing this out. We have updated the doc.

[1].
https://docs.wso2.com/display/ESBCONNECTORS/Working+with+the+File+Connector#WorkingwiththeFileConnector-splitFile

Thanks,
Keerthika.

On Mon, Apr 2, 2018 at 5:57 PM, Shakila Sasikaran <shak...@wso2.com> wrote:

> Hi,
>
> As per the doc, we have to provide either chunkSize or numberOfLines. The
> provided sample request [1] consists of chunkSize along with the
> xpathExpression.
>
> If we don't have to provide the chunkSize, shall we update the sample
> request documentation?
>
> [1] https://docs.wso2.com/display/ESBCONNECTORS/Working+with
> +the+File+Connector#WorkingwiththeFileConnector-splitFile
>
> Thanks
>
> On Mon, Apr 2, 2018 at 5:06 PM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi Aditya,
>>
>> If you need to split the file based on the xpath expression, you don't
>> need to provide the chunkSize. If you provide the chunkSize, files will be
>> splitted in to files with the chunkSize. So could you please only pass
>> xpath expression and check.
>>
>> Thanks,
>> Keerthika.
>>
>> On Wed, Mar 28, 2018 at 10:49 AM, aditya shivankar <
>> shivankar.adit...@gmail.com> wrote:
>>
>>> Respected Madam/Sir,
>>>
>>> Using below proxy I am able to split the file . But splitting in not
>>> done proper.
>>>
>>>  Even though in the proxy configuration I have provided the structure
>>> which needs to be maintained in each file , using Xpath Expression
>>>  ">> value="//catalog/book"/>"
>>>
>>>  Still file gets ended randomly without even maintaining the proper
>>> structure.Like below
>>>
>>>   
>>>
>>>   Ralls Kim
>>>   Midnight Rain
>>>   Fantasy
>>>   5.95
>>>   2000-12
>>>
>>> Attaching Input file(books1000.xml) and 2 files which are produced as
>>> the result of the split (books1000.xml0 and books1000.xml1).
>>>
>>> Proxy which I am using is.
>>>
>>> 
>>> http://ws.apache.org/ns/synapse;>
>>> 
>>> 
>>> >> value="file:///C:/Flatfile/FileConnOutput"/>
>>> >> value="file:///C:/Flatfile/FileConnInput/books1000.xml"/>
>>> >> type="STRING" value="//catalog/book"/>
>>> 
>>> {$ctx:source}
>>> {$ctx:destination}
>>> 4096
>>> {$ctx:xpathEx
>>> pression}
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> I am expecting each file to start with structure like below :
>>>
>>> 
>>> 
>>>
>>>
>>> and each file end with   structure like below :
>>>
>>>  
>>> 
>>>
>>> Please guide .
>>>
>>>
>>> With Regards,
>>> Aditya
>>>
>>> On Wed, Mar 28, 2018 at 9:25 AM, Chanika Geeganage <chan...@wso2.com>
>>> wrote:
>>>
>>>> Hi Aditya,
>>>>
>>>> This proxy service will not poll files iteratively, like vfs transport.
>>>> Have you invoked the proxy service to do the file operation (ie. split)
>>>> over HTTP/HTTPS?
>>>>
>>>> Thanks
>>>>
>>>> On Wed, Mar 28, 2018 at 8:52 AM, Shakila Sasikaran <shak...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Aditya,
>>>>>
>>>>> Could you please attach the source file and the log file
>>>>> (repository/logs/wso2carbon.log) for the investigation?
>>>>>
>>>>> Thanks
>>>>>
>>>>> On Tue, Mar 27, 2018 at 10:26 PM, aditya shivankar <
>>>>> shivankar.adit...@gmail.com> wrote:
>>>>>
>>>>>> Respected Madam/Sir,
>>>>>>
>>>>>> Pointed the source to the file " file:///C:/Flatfile/FileConnIn
>>>>>> put/inputfor_writeToDb1.xml " . But still the file is not getting
>>>>>> processed. Please guide.
>>>>>>
>>>>>> 
>>>>>> http://ws.apache.org/ns/synapse;>
>>>>>> 
>>>>>> 
>>>>>> >>>>> typ

Re: [Dev] How to use pem/key in fileUri for inbound endpoint or file connector

2018-04-02 Thread Keerthika Mahendralingam
Hi Dhanya,

AFAIK, there is no way to do this with the file connector or inbound. You
may use the Amazon S3 connector to upload the files to aws s3 instances.

[1].
https://store.wso2.com/store/assets/esbconnector/details/544bc219-1c53-4fa0-b290-0957881b2445

Thanks,
Keerthika.

On Mon, Mar 26, 2018 at 9:58 AM, dhanya <dhanyasanth2...@gmail.com> wrote:

> Any one has an idea on how this is possible in inbound endpoints?
>
> Thanks and regards
> Dhanya
>
>
>
> --
> Sent from: http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-
> Development-f3.html
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Senior Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Not able to split file using wso2 fileConnector

2018-04-02 Thread Keerthika Mahendralingam
ow.
>>>>>>
>>>>>> 
>>>>>> http://ws.apache.org/ns/synapse;>
>>>>>> 
>>>>>> 
>>>>>> >>>>> type="STRING" value="file:///C:/Flatfile/ "/>
>>>>>> >>>>> value="file:///C:/Flatfile/FileConnInput"/>
>>>>>> >>>>> type="STRING" value="//catalog/book"/>
>>>>>> 
>>>>>> {$ctx:source}
>>>>>> {$ctx:destination}
>>>>>> 4096
>>>>>> {$ctx:xpathEx
>>>>>> pression}
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>
>>>>>> With Regards,
>>>>>> Aditya
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, Mar 26, 2018 at 2:16 PM, Chanika Geeganage <chan...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Aditya,
>>>>>>>
>>>>>>> The error has come from VFSTransportListener as you have set the
>>>>>>> transport as 'vfs', but there are no vfs endpoint configured. Since you 
>>>>>>> are
>>>>>>> using file connector, you can use transports such as http/ https. A 
>>>>>>> sample
>>>>>>> can be found from [1]
>>>>>>>
>>>>>>> [1] https://docs.wso2.com/display/ESBCONNECTORS/Working+with+the
>>>>>>> +File+Connector#WorkingwiththeFileConnector-sampleconfigurat
>>>>>>> ionSampleconfiguration
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> On Mon, Mar 26, 2018 at 1:58 PM, aditya shivankar <
>>>>>>> shivankar.adit...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Respected Sir,
>>>>>>>>
>>>>>>>> Please find the screenshot of Faulty proxy service in console.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> With Regards,
>>>>>>>> Aditya
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Mar 26, 2018 at 1:47 PM, aditya shivankar <
>>>>>>>> shivankar.adit...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Respected Sir,
>>>>>>>>>
>>>>>>>>> I am trying to split a file using file connector
>>>>>>>>>
>>>>>>>>> Below is my FileConnector Proxy :
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>> >>>>>>>> transports="vfs" xmlns="http://ws.apache.org/ns/synapse;>
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> >>>>>>>> type="STRING" value="file:///C:/Flatfile/ "/>
>>>>>>>>> >>>>>>>> value="file:///C:/Flatfile/FileConnInput"/>
>>>>>>>>> >>>>>>>> type="STRING" value="//catalog/book"/>
>>>>>>>>> 
>>>>>>>>> {$ctx:source}
>>>>>>>>> {$ctx:destination}
>>>>>>>>> 4096
>>>>>>>>> {$ctx:xpathEx
>>>>>>>>> pression}
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>> I added the fileconnector following below link in wso2ei server.
>>>>>>>>> https://docs.wso2.com/display/ESB490/Managing+Connectors+in+
>>>>>>>>> Your+ESB+Instance
>>>>>>>>>
>>>>>>>>> To add a connector:
>>>>>>>>> On the Main tab in the ESB Management Console, under Connectors
>>>>>>>>> click Add.
>>>>>>>>> Click Browse, specify the ZIP file, and click Open.
>>>>>>>>> Click Upload.
>>>>>>>>> The connector will now appear in the Connectors list and is ready
>>>>>>>>> to be enabled in your ESB instance.
>>>>>>>>>
>>>>>>>>> To enable a connector:
>>>>>>>>> On the Main tab in the ESB Management Console, under Connectors
>>>>>>>>> click List to view the uploaded connectors.
>>>>>>>>> Click Enable next to a connector you want to enable, and then
>>>>>>>>> confirm that you want to change its status. Repeat this step for each
>>>>>>>>> connector you want to enable.
>>>>>>>>>
>>>>>>>>> While deploying the application it is giving me the following
>>>>>>>>> error.
>>>>>>>>>
>>>>>>>>> [2018-03-26 13:29:10,334] [EI-Core] ERROR - VFSTransportListener
>>>>>>>>> Unable to stop service : FileConnectorProxy - unable to find the
>>>>>>>>> corresponding protocol endpoint
>>>>>>>>>
>>>>>>>>> and the application gets deployed as the faulty application .
>>>>>>>>>
>>>>>>>>> [2018-03-26 13:29:10,533] [EI-Core]  INFO - ApplicationManager
>>>>>>>>> Successfully Deployed Carbon Application : 
>>>>>>>>> FileConnectorAppCompositeApplication_1.0.0
>>>>>>>>> {super-tenant}
>>>>>>>>>
>>>>>>>>> It is not able to pick the file from "FileConnInput" folder.
>>>>>>>>> Please find attached error logs.
>>>>>>>>> Please guide.
>>>>>>>>>
>>>>>>>>> With Regards,
>>>>>>>>> Aditya
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ___
>>>>>>>> Dev mailing list
>>>>>>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Best Regards..
>>>>>>>
>>>>>>> Chanika Geeganage
>>>>>>> +94773522586 <+94%2077%20352%202586>
>>>>>>> WSO2, Inc.; http://wso2.com
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Shakila Sasikaran
>>>>> Software Engineer
>>>>> Mobile :+94 (0) 77 526 6848 <+94%2077%20526%206848>
>>>>> shak...@wso2.com
>>>>> WSO2, Inc.
>>>>> lean . enterprise . middleware
>>>>> http://www.wso2.com/
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Shakila Sasikaran
>>> Software Engineer
>>> Mobile :+94 (0) 77 526 6848 <+94%2077%20526%206848>
>>> shak...@wso2.com
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>>
>>
>>
>>
>> --
>> Best Regards..
>>
>> Chanika Geeganage
>> +94773522586 <+94%2077%20352%202586>
>> WSO2, Inc.; http://wso2.com
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Senior Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Getting empty cached response

2018-02-01 Thread Keerthika Mahendralingam
Thanks Riyafa for the quick response. With this fix, it is working.


Thanks,
Keerthika.

On Thu, Feb 1, 2018 at 12:23 PM, Riyafa Abdul Hameed <riy...@wso2.com>
wrote:

> Hi,
>
> There has been a regression and the following PR fixes it.
> https://github.com/wso2/carbon-mediation/pull/965
>
> Thanks,
> Riyafa
>
> On Thu, Feb 1, 2018 at 11:18 AM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi All,
>>
>> I have cloned the latest fix for cache mediator and tried with WSO2 EI
>> 6.1.1-update19-SNAPSHOT. But I'm getting the correct response to the first
>> call and an empty response to the subsequent request. What could be the
>> reason?
>>
>> I'm using the following proxy:
>>
>> 
>> http://ws.apache.org/ns/synapse;
>>name="connectMockito"
>>startOnLoad="true"
>>statistics="disable"
>>trace="disable"
>>transports="http,https">
>>
>>   
>>  
>> 
>>
>> 
>> 
>>GET
>>
>>(1|2)[0-9][0-9]
>>org.wso2.carbo
>> n.mediator.cache.digest.HttpRequestHashGenerator
>> 
>> 
>>  
>>  
>> 
>>http://demo2236300.mockable.io/testService
>> "/>
>> 
>>  
>>   
>>   
>>  
>>  
>>  
>>   
>>
>>
>> 
>>
>>
>>
>> *Log:*
>>
>> [2018-02-01 11:14:45,069] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 << "GET /testService HTTP/1.1[\r][\n]"
>>
>> [2018-02-01 11:14:45,069] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 << "Accept: */*[\r][\n]"
>>
>> [2018-02-01 11:14:45,069] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 << "Content-Type: application/json[\r][\n]"
>>
>> [2018-02-01 11:14:45,069] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 << "Host: demo2236300.mockable.io[\r][\n]"
>>
>> [2018-02-01 11:14:45,069] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 << "Connection: Keep-Alive[\r][\n]"
>>
>> [2018-02-01 11:14:45,069] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 << "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
>>
>> [2018-02-01 11:14:45,069] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 << "[\r][\n]"
>>
>> [2018-02-01 11:14:45,789] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 >> "HTTP/1.1 200 OK[\r][\n]"
>>
>> [2018-02-01 11:14:45,789] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 >> "cache-control: no-cache[\r][\n]"
>>
>> [2018-02-01 11:14:45,789] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 >> "access-control-allow-origin: *[\r][\n]"
>>
>> [2018-02-01 11:14:45,789] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
>>
>> [2018-02-01 11:14:45,789] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 >> "X-Cloud-Trace-Context: 8321c3bfbcd3e65e547803b2ed3252
>> 00[\r][\n]"
>>
>> [2018-02-01 11:14:45,790] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 >> "Date: Thu, 01 Feb 2018 05:44:45 GMT[\r][\n]"
>>
>> [2018-02-01 11:14:45,790] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 >> "Server: Google Frontend[\r][\n]"
>>
>> [2018-02-01 11:14:45,790] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 >> "Content-Length: 27[\r][\n]"
>>
>> [2018-02-01 11:14:45,790] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 >> "[\r][\n]"
>>
>> [2018-02-01 11:14:45,790] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 >> "{[\n]"
>>
>> [2018-02-01 11:14:45,790] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 >> " "msg": "Hello Worldaa"[\n]"
>>
>> [2018-02-01 11:14:45,790] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-1 >> "}"
>>
>> [2018-02-01 11:14:45,821] [EI-Core]  INFO - LogMediator To:
>> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPActi

[Dev] [EI] Getting empty cached response

2018-01-31 Thread Keerthika Mahendralingam
018-02-01 11:14:45,846] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 << "17[\r][\n]"

[2018-02-01 11:14:45,846] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 << "{"msg":"Hello Worldaa"}[\r][\n]"

[2018-02-01 11:14:45,846] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 << "0[\r][\n]"

[2018-02-01 11:14:45,846] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 << "[\r][\n]"

[2018-02-01 11:14:51,035] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "GET /services/connectMockito HTTP/1.1[\r][\n]"

[2018-02-01 11:14:51,036] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "Host: keerthikas-macbook-pro.local:8280[\r][\n]"

[2018-02-01 11:14:51,036] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "User-Agent: curl/7.54.0[\r][\n]"

[2018-02-01 11:14:51,036] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "Accept: */*[\r][\n]"

[2018-02-01 11:14:51,037] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "Content-Type: application/json[\r][\n]"

[2018-02-01 11:14:51,037] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "[\r][\n]"

[2018-02-01 11:14:51,045] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 << "HTTP/1.1 200 OK[\r][\n]"

[2018-02-01 11:14:51,045] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 << "access-control-allow-origin: *[\r][\n]"

[2018-02-01 11:14:51,045] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 << "X-Cloud-Trace-Context:
8321c3bfbcd3e65e547803b2ed325200[\r][\n]"

[2018-02-01 11:14:51,045] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 << "cacheKey:
-27-21-649412412586-85-97-8340-52-11-819416[\r][\n]"

[2018-02-01 11:14:51,045] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 << "cache-control: no-cache[\r][\n]"

[2018-02-01 11:14:51,045] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 << "Content-Type: application/json; charset=UTF-8[\r][\n]"

[2018-02-01 11:14:51,045] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 << "Date: Thu, 01 Feb 2018 05:44:51 GMT[\r][\n]"

[2018-02-01 11:14:51,045] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 << "Transfer-Encoding: chunked[\r][\n]"

[2018-02-01 11:14:51,045] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 << "[\r][\n]"

[2018-02-01 11:14:51,046] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 << "0[\r][\n]"

[2018-02-01 11:14:51,046] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 << "[\r][\n]"--
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unable to cache the response

2018-01-29 Thread Keerthika Mahendralingam
Thanks Riyafa, it is working fine with the curl command.



Thanks,
Keerthika.

On Mon, Jan 29, 2018 at 6:32 PM, Riyafa Abdul Hameed <riy...@wso2.com>
wrote:

> Hi Keerthika,
>
> Are you using Postman to make the calls? If so we have noticed in a
> previous instance that it does not get cached because Postman seemed to
> insert unnecessary headers? Can you try using curl requests? Or RESTer is a
> handy plugin for firefox.
> Or you can set headersToExcludeInHash to the value * and try:
> *
>
> Hope it helps.
>
> Regards,
> Riyafa
>
> On Mon, Jan 29, 2018 at 2:31 PM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi All,
>>
>> I am using the cache mediator in the proxy. But the response is not
>> getting cached. I have tested this with EI 6.1.1-update17 and EI
>> 6.1.1-update18. For both, the response is fetched from the backend service
>> not from the cache. What could be the reason?
>>
>> I am using the following configuration:
>> 
>> http://ws.apache.org/ns/synapse;
>>name="connectMockito"
>>startOnLoad="true"
>>statistics="disable"
>>trace="disable"
>>transports="http,https">
>>
>>   
>>  
>> 
>>
>> 
>> 
>>GET
>>
>>(1|2)[0-9][0-9]
>>org.wso2.carbo
>> n.mediator.cache.digest.HttpRequestHashGenerator
>> 
>> 
>>  
>>  
>> 
>>http://demo2236300.mockable.io/testService
>> "/>
>> 
>>  
>>   
>>   
>>  
>>  
>>  
>>   
>>
>>
>> 
>>
>> * Log for the second call:*
>>
>> [2018-01-29 14:28:39,010] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-6 >> "GET /services/connectMockito HTTP/1.1[\r][\n]"
>>
>> [2018-01-29 14:28:39,011] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-6 >> "Host: keerthikas-macbook-pro.local:8280[\r][\n]"
>>
>> [2018-01-29 14:28:39,011] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-6 >> "Connection: keep-alive[\r][\n]"
>>
>> [2018-01-29 14:28:39,011] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-6 >> "Cache-Control: no-cache[\r][\n]"
>>
>> [2018-01-29 14:28:39,011] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-6 >> "Content-Type: application/json[\r][\n]"
>>
>> [2018-01-29 14:28:39,011] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-6 >> "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X
>> 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132
>> Safari/537.36[\r][\n]"
>>
>> [2018-01-29 14:28:39,011] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-6 >> "Postman-Token: 48f7595e-3e2c-cee7-9652-a82c27
>> 2b67e2[\r][\n]"
>>
>> [2018-01-29 14:28:39,012] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-6 >> "Accept: */*[\r][\n]"
>>
>> [2018-01-29 14:28:39,012] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-6 >> "Accept-Encoding: gzip, deflate[\r][\n]"
>>
>> [2018-01-29 14:28:39,012] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-6 >> "Accept-Language: en-US,en;q=0.9[\r][\n]"
>>
>> [2018-01-29 14:28:39,012] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-6 >> "[\r][\n]"
>>
>> [2018-01-29 14:28:39,014] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-4 << "GET /testService HTTP/1.1[\r][\n]"
>>
>> [2018-01-29 14:28:39,014] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-4 << "Accept: */*[\r][\n]"
>>
>> [2018-01-29 14:28:39,014] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-4 << "Cache-Control: no-cache[\r][\n]"
>>
>> [2018-01-29 14:28:39,014] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-4 << "Postman-Token: 48f7595e-3e2c-cee7-9652-a82c27
>> 2b67e2[\r][\n]"
>>
>> [2018-01-29 14:28:39,014] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-4 << "Accept-Encoding: gzip, deflate[\r][\n]"
>>
>> [2018-01-29 14:28:39,015] [EI-Core] DEBUG - wire HTTP-Sender I/O
>> dispatcher-4 << "Ac

[Dev] Unable to cache the response

2018-01-29 Thread Keerthika Mahendralingam
- wire HTTP-Sender I/O
dispatcher-4 >> "Server: Google Frontend[\r][\n]"

[2018-01-29 14:28:39,583] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-4 >> "Content-Length: 27[\r][\n]"

[2018-01-29 14:28:39,583] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-4 >> "[\r][\n]"

[2018-01-29 14:28:39,583] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-4 >> "{[\n]"

[2018-01-29 14:28:39,583] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-4 >> " "msg": "Hello Worldaa"[\n]"

[2018-01-29 14:28:39,583] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-4 >> "}"

[2018-01-29 14:28:39,587] [EI-Core]  INFO - LogMediator To:
http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: ,
MessageID: urn:uuid:b6b34d4e-e9c0-4228-afb6-54fc74fc2e03, Direction:
response, Envelope: http://schemas.xmlsoap.org/soap/envelope/;>Hello
Worldaa

[2018-01-29 14:28:39,590] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-6 << "HTTP/1.1 200 OK[\r][\n]"

[2018-01-29 14:28:39,590] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-6 << "access-control-allow-origin: *[\r][\n]"

[2018-01-29 14:28:39,590] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-6 << "X-Cloud-Trace-Context:
4e909d0476e6249930df95cc5b54899a[\r][\n]"

[2018-01-29 14:28:39,590] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-6 << "messageType: application/json[\r][\n]"

[2018-01-29 14:28:39,590] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-6 << "cacheKey:
-83912422-79-114-92-101-8043-26-695-56120-127[\r][\n]"

[2018-01-29 14:28:39,590] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-6 << "cache-control: no-cache[\r][\n]"

[2018-01-29 14:28:39,590] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-6 << "Content-Type: application/json; charset=UTF-8[\r][\n]"

[2018-01-29 14:28:39,591] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-6 << "Date: Mon, 29 Jan 2018 08:58:39 GMT[\r][\n]"

[2018-01-29 14:28:39,591] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-6 << "Transfer-Encoding: chunked[\r][\n]"

[2018-01-29 14:28:39,591] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-6 << "Connection: keep-alive[\r][\n]"

[2018-01-29 14:28:39,591] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-6 << "[\r][\n]"

[2018-01-29 14:28:39,591] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-6 << "1b[\r][\n]"

[2018-01-29 14:28:39,591] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-6 << "{[\n]"

[2018-01-29 14:28:39,591] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-6 << " "msg": "Hello Worldaa"[\n]"

[2018-01-29 14:28:39,591] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-6 << "}[\r][\n]"

[2018-01-29 14:28:39,591] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-6 << "0[\r][\n]"

[2018-01-29 14:28:39,591] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-6 << "[\r][\n]"

Thanks,
Keerthika.
-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [RRT] Calculate Age value of cached response

2018-01-24 Thread Keerthika Mahendralingam
Hi All,

I need to get the cached response fetched time from origin server which is
returned in the BE response with Date header. When I debugged the
cache-mediator code, I found that when caching the response Date header is
added to the cache. But when I retrieve the cached response for the
subsequent request, Date header is removed from the cached response.

This is due to we are removing the Date header from the response [1] and
send a new Date header with the response to the user. If we set the
preserveHeaders(in passthru-http.properties), I was able to get the Date
header from the cached response as well.

So, as I need the response fetched time to calculate the TTL value of the
cached response, I am planning to add a property to the cached response to
store the fetched time and use it to calculate the TTL. Or do we need to
suggest the user to set the preserve header?


[1].
https://github.com/wso2/wso2-synapse/blob/master/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/util/PassThroughTransportUtils.java#L160

Thanks,
Keerthika.

On Tue, Jan 23, 2018 at 8:26 PM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi All,
>
> I am trying to add an Age header when returning the cached response(as
> discussed in [1]). I am following the steps as follows:
>
>- If the response doesn't have the Date header, add Date header (with
>current time) when caching the response[2].
>- For the subsequent request, get the Date header value of the cached
>response, timeout and current requested time and find the TTL value as:
>
> TTL = difference ((DateHeaderValue + timeout), CurrentTime)
>
>
>- Set the TTL value as Age header.
>
> Please let me know if you have any concerns on this.
>
> [1]. [Architecture][RRT] Improving caching based on cache-control and ETag
> headers
> [2]. https://tools.ietf.org/html/rfc2616#page-124
>
> Thanks,
> Keerthika.
> --
> <dev-requ...@wso2.org>
> Keerthika Mahendralingam
> Software Engineer
> Mobile :+94 (0) 776 121144 <+94%2077%20612%201144>
> keerth...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
>



-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [RRT] Empty response is getting cached in APIM

2018-01-23 Thread Keerthika Mahendralingam
Thanks Harsha & Sanjeewa for the feedback.


Thanks,
Keerthika.

On Tue, Jan 23, 2018 at 1:50 PM, Sanjeewa Malalgoda <sanje...@wso2.com>
wrote:

> Even if we have workflow usecase we should be able to use JsonStreamBuilder
> with workaround we tried recently.
> There is no harm with this change and we should consider making 
> JsonStreamBuilder
> default when we do APIM 2.2.0 release.
> Please add this to 2.2 product development branch.
>
> Thanks,
> sanjeewa.
>
> On Tue, Jan 23, 2018 at 12:59 PM, Harsha Kumara <hars...@wso2.com> wrote:
>
>>
>>
>> On Tue, Jan 23, 2018 at 10:27 AM, Keerthika Mahendralingam <
>> keerth...@wso2.com> wrote:
>>
>>> HI All,
>>>
>>> When we use the latest version of cache mediator implementation with
>>> APIM, an empty response is getting cached instead of JSON message. But all
>>> headers are getting cached correctly. When I debugged the code, I found
>>> that response body is set to null in [1].
>>>
>>> As Riyafa suggested when I changed the JSON message builder as
>>> JsonStreamBuilder instead of JsonBuilder its worked as expected.
>>>
>>> Is there any specific reason for using JsonBuilder instead of
>>> JsonStreamBuilder? Can I go with this approach?
>>>
>> There are many instances which we have suggest to use  JsonStreamBuilder
>> in APIM usecases and it's the defualt builder in the EI. We had a
>> limitation using this when workflows enabled but there is a workaround.
>> Hence it's fine to use JsonStreamBuilder.
>>
>>>
>>> Any suggestion on this?
>>>
>>> [1]. https://github.com/wso2/carbon-mediation/blob/master/co
>>> mponents/mediators/cache/org.wso2.carbon.mediator.cache/src/
>>> main/java/org/wso2/carbon/mediator/cache/CacheMediator.java#L359
>>>
>>> Thanks,
>>> Keerthika.
>>>
>>> --
>>> <dev-requ...@wso2.org>
>>> Keerthika Mahendralingam
>>> Software Engineer
>>> Mobile :+94 (0) 776 121144 <+94%2077%20612%201144>
>>> keerth...@wso2.com
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>> Harsha Kumara
>> Software Engineer, WSO2 Inc.
>> Mobile: +94775505618 <077%20550%205618>
>> Blog:harshcreationz.blogspot.com
>>
>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779 <+94%2071%20306%208779>
>
> <http://sanjeewamalalgoda.blogspot.com/>blog :http://sanjeewamalalgoda.
> blogspot.com/ <http://sanjeewamalalgoda.blogspot.com/>
>
>
>


-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [RRT] Empty response is getting cached in APIM

2018-01-22 Thread Keerthika Mahendralingam
HI All,

When we use the latest version of cache mediator implementation with APIM,
an empty response is getting cached instead of JSON message. But all
headers are getting cached correctly. When I debugged the code, I found
that response body is set to null in [1].

As Riyafa suggested when I changed the JSON message builder as
JsonStreamBuilder instead of JsonBuilder its worked as expected.

Is there any specific reason for using JsonBuilder instead of
JsonStreamBuilder? Can I go with this approach?

Any suggestion on this?

[1].
https://github.com/wso2/carbon-mediation/blob/master/components/mediators/cache/org.wso2.carbon.mediator.cache/src/main/java/org/wso2/carbon/mediator/cache/CacheMediator.java#L359

Thanks,
Keerthika.

-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Correct formats of x-www-form-urlencoded

2018-01-09 Thread Keerthika Mahendralingam
Hi Vijitha,

What if the backend expects the x-www-form-urlencoded type payload? In that
case, we can't use multipart/form-data.

Thanks,
Keerthika.

On Thu, Jan 4, 2018 at 1:18 PM, Vijitha Ekanayake <vijit...@wso2.com> wrote:

> Hi Senduran,
>
> AFAIK, There is no standard documentation on how to convert JSON to
> x-www-form-urlencoded format as key-value pairs. As mentioned by Thusitha,
> When the JSON is getting complicated converting it to the
> x-www-form-urlencoded will also become complicated and may lead to
> inconsistencies over different payloads. Therefore I too think, we should
> use multipart/form-data in such situations.
>
>
> Thanks.
>
> On Thu, Jan 4, 2018 at 11:02 AM, Thusitha Thilina Dayaratne <
> thusithathil...@gmail.com> wrote:
>
>> Hi Senduran,
>>
>> IMHO x-www-form-urlencodedis for simple key value pairs. When the payload
>> is complicated, we should use multipart/form-data instead of
>> x-www-form-urlencoded content type. It can handle any complex complex
>> scenarios that you mentioned.
>>
>> Thanks
>> Thusitha
>>
>> On Wed, Jan 3, 2018 at 4:50 PM, Senduran Balasubramaniyam <
>> sendu...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> When an XML or a JSON is converted to  x-www-form-urlencoded format the
>>> key value pair is created.
>>> i.e
>>>
>>> 
>>>   value1
>>>   value2
>>> 
>>>
>>> will be converted to key1=value=value2
>>>
>>> similarly
>>>
>>> {"key1" : "value1", "key2" : "value2"} also get converted to
>>> key1=value=value2
>>>
>>> But what if the XML or JSON is not only having simple key value i.e
>>> having an array or a child element
>>>
>>> for example,
>>> 
>>>   value1
>>>   
>>> subvalue1
>>> subvalue2
>>>   
>>> 
>>>
>>> similarly for JSON like
>>> {"key1" : "value1", "key2" : {"subkey1" : "subvalue1"}} or
>>>
>>> JSON with array
>>> {"key1" : "value1", "key2" : ["arrayvalue1", "arrayvalue2"]}
>>>
>>>
>>> Kindly let me know the available correct formats for
>>> application/x-www-form-urlencoded content type.
>>> Further it will be really helpful if you could point to a specification
>>> or a standard document
>>>
>>> Thanks
>>> Senduran
>>>
>>>
>>> --
>>> *Senduran *
>>> Senior Software Engineer,
>>> WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
>>> Mobile: +94 77 952 6548 <077%20952%206548>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vijitha Ekanayake
> Senior Software Engineer*, *WSO2, Inc.; http://wso2.com/
> Mobile : +94 777 24 73 39 | +94 718 74 44 08
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build fails in identity-outbound-auth-passwordPolicy

2017-11-22 Thread Keerthika Mahendralingam
Hi All,

We fixed this issue by adding the file to the resource directory. Please
find the fix in [1].

[1].
https://github.com/wso2-extensions/identity-outbound-auth-passwordPolicy/pull/11

Thanks,
Keerthika.

On Thu, Nov 16, 2017 at 7:33 PM, Maduranga Siriwardena <madura...@wso2.com>
wrote:

> As these are unit tests, if some config is read from a file, I think we
> need to mock the behavior, rather than reading the configs from a actual
> config file in a product distribution.
>
> Thanks,
>
> On Thu, Nov 16, 2017 at 7:20 PM, Saneth Dharmakeerthi <sane...@wso2.com>
> wrote:
>
>> Hi,
>>
>> IMO this should be a part of automation test. Before starting the test
>> method, it should set all the prerequisites.
>>
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> *Associate Technical Lead*
>> WSO2, Inc.
>> Mobile: +94772325511 <+94%2077%20232%205511>
>>
>> <http://wso2.com/signature>
>>
>> On Thu, Nov 16, 2017 at 5:46 PM, Prakhash Sivakumar <prakh...@wso2.com>
>> wrote:
>>
>>> Hi Nadeeshani,
>>>
>>> You need to add the CARBON_CONFIG_DIR_PATH as environment variable
>>> before building the code
>>> ex :  export CARBON_CONFIG_DIR_PATH="/repository/conf"
>>>
>>> Thanks,
>>> Prakhash
>>>
>>> On Thu, Nov 16, 2017 at 2:12 PM, Nadeeshani Pathirennehelage <
>>> nadeesha...@wso2.com> wrote:
>>>
>>>> Hi All,
>>>>
>>>> When I am trying to build the identity-outbound-auth-passwordPolicy[1]
>>>> it fails due to a test failure.
>>>>
>>>> Error is given below.
>>>>
>>>> Tests run: 19, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.746
>>>> sec <<< FAILURE! - in TestSuite
>>>> testInitiateAuthRequestSuccess(org.wso2.carbon.extension.ide
>>>> ntity.authenticator.passwordpolicy.test.PasswordChangeEnforcerOnExpirationTest)
>>>> Time elapsed: 0.09 sec  <<< FAILURE!
>>>> java.lang.ExceptionInInitializerError: null
>>>> at java.util.Hashtable.put(Hashtable.java:514)
>>>> at java.util.Properties.setProperty(Properties.java:161)
>>>> at java.lang.System.setProperty(System.java:787)
>>>> at org.wso2.carbon.utils.CarbonUtils.getCarbonHome(CarbonUtils.
>>>> java:240)
>>>> at org.wso2.carbon.utils.CarbonUtils.getCarbonConfigDirPath(Car
>>>> bonUtils.java:284)
>>>> at org.wso2.carbon.identity.policy.password.PasswordChangeUtils
>>>> .loadProperties(PasswordChangeUtils.java:52)
>>>> at org.wso2.carbon.identity.policy.password.PasswordChangeUtils
>>>> .(PasswordChangeUtils.java:41)
>>>> at org.wso2.carbon.identity.policy.password.PasswordChangeEnfor
>>>> cerOnExpiration.initiateAuthRequest(PasswordChangeEnforcerOn
>>>> Expiration.java:165)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>>> ssorImpl.java:57)
>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>>> thodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>> at org.powermock.reflect.internal.WhiteboxImpl.performMethodInv
>>>> ocation(WhiteboxImpl.java:1899)
>>>> at org.powermock.reflect.internal.WhiteboxImpl.doInvokeMethod(W
>>>> hiteboxImpl.java:801)
>>>> at org.powermock.reflect.internal.WhiteboxImpl.invokeMethod(Whi
>>>> teboxImpl.java:666)
>>>> at org.powermock.reflect.Whitebox.invokeMethod(Whitebox.java:401)
>>>> at org.wso2.carbon.extension.identity.authenticator.passwordpol
>>>> icy.test.PasswordChangeEnforcerOnExpirationTest.testInitiate
>>>> AuthRequestSuccess(PasswordChangeEnforcerOnExpirationTest.java:265)
>>>>
>>>>
>>>> Results :
>>>>
>>>> Failed tests:
>>>>   PasswordChangeEnforcerOnExpirationTest.testInitiateAuthRequestSuccess:265
>>>> » ExceptionInInitializer
>>>>
>>>>
>>>> I tried to build it using both Java7 and Java8. But it gives the same
>>>> error.
>>>>
>>>> Any thoughts or help on this is highly appreciated.
>>>>
>>>> [1] https://github.com/wso2-extensions/identity-outbound-auth-pa
>>>> sswordPolicy
>>>>
>>>> Thanks,
>>>> Nadeeshani.
>>>> --
>>>> Pathirennehelage Nadeeshani
>>>> Software Engineer | WSO2 Inc.
>>>> Platform Security Team
>>>> mobile : +94 716545223 <+94%2071%20654%205223>
>>>>
>>>>
>>>
>>>
>>> --
>>> Prakhash Sivakumar
>>> Software Engineer | WSO2 Inc
>>> Platform Security Team
>>> Mobile : +94771510080 <+94%2077%20151%200080>
>>> Blog : https://medium.com/@PrakhashS
>>>
>>
>>
>
>
> --
> Maduranga Siriwardena
> Senior Software Engineer
> WSO2 Inc; http://wso2.com/
>
> Email: madura...@wso2.com
> Mobile: +94718990591 <+94%2071%20899%200591>
> Blog: *https://madurangasiriwardena.wordpress.com/
> <https://madurangasiriwardena.wordpress.com/>*
> <http://wso2.com/signature>
>



-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when building connectors from source in wso2 extensions

2017-11-09 Thread Keerthika Mahendralingam
Hi Arunan,

In my case, it builds fine without any changes because the
maven-assembly-plugin is of version 2.2-beta-5. But according to your log
maven-assembly-plugin version 2.4.1 and it doesn't support assemblies
without id. pom.xml doesn't force any version hence causing such problems.
We will fix this.

Thanks,
Keerthika.

On Thu, Nov 9, 2017 at 5:43 PM, Keerthika Mahendralingam <keerth...@wso2.com
> wrote:

> Hi Arunan,
>
> I tried the twitter connector as well. I was able to build it
> successfully. Anyhow, we will check into this further.
>
> Environment:
> Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
> 2015-11-10T22:11:47+05:30)
> Maven home: /usr/local/Cellar/maven@3.3/3.3.9/libexec
> Java version: 1.8.0_121, vendor: Oracle Corporation
> Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_
> 121.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"
>
> Thanks,
> Keerthika.
>
> On Thu, Nov 9, 2017 at 5:35 PM, Arunan Sugunakumar <aru...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I cloned esb-connector-github[1] and esb-connector-twitter[2] and tried
>> "mvn clean install" inside the directory.
>>
>> I have attached the terminal logs with this mail.
>>
>> Environment :
>> Apache Maven 3.3.9
>> Maven home: /usr/share/maven
>> Java version: 1.8.0_151, vendor: Oracle Corporation
>> Java home: /usr/lib/jvm/java-8-oracle/jre
>> Default locale: en_US, platform encoding: UTF-8
>> OS name: "linux", version: "4.4.0-98-generic", arch: "amd64", family:
>> "unix"
>>
>>
>> [1] https://github.com/wso2-extensions/esb-connector-github
>> <https://github.com/wso2-extensions/esb-connector-github>
>> [2] https://github.com/wso2-extensions/esb-connector-twitter
>>
>>
>> Thank you
>>
>> On Thu, Nov 9, 2017 at 4:53 PM, Keerthika Mahendralingam <
>> keerth...@wso2.com> wrote:
>>
>>> Hi Arunan,
>>>
>>> We were able to build the connectors successfully with maven latest
>>> versions(checked with 3.2.2, 3.3.9, 3.5.0 and 3.5.2). Could you please let
>>> us know what are the connectors that you tried? And what is the error you
>>> got?
>>>
>>> Thanks,
>>> Keerthika.
>>>
>>> On Thu, Nov 9, 2017 at 11:55 AM, Keerthika Mahendralingam <
>>> keerth...@wso2.com> wrote:
>>>
>>>> Hi Arun,
>>>>
>>>> We will check and let you know.
>>>>
>>>> Thanks,
>>>> Keerthika.
>>>>
>>>> On Thu, Nov 9, 2017 at 11:22 AM, Godwin Shrimal <god...@wso2.com>
>>>> wrote:
>>>>
>>>>> Adding @Malaka.
>>>>>
>>>>>
>>>>>
>>>>> Thanks
>>>>> Godwin
>>>>>
>>>>> On Wed, Nov 8, 2017 at 3:54 PM, Arunan Sugunakumar <aru...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Almost all the ESB connectors in wso2 extensions github organisation
>>>>>> fails when you are building them with mvn 3.3.9 which is the latest
>>>>>> version. But they are building fine when you are using mvn 3.0.5. There 
>>>>>> is
>>>>>> nothing about this mentioned in github readme files.
>>>>>>
>>>>>> IMHO it is better to include them in the readme files because it
>>>>>> saves a lot of time for the developer when he tries to contribute the
>>>>>> repositories. Or else he would have to go through all the documentation 
>>>>>> to
>>>>>> find the one place
>>>>>> <https://docs.wso2.com/display/ESBCONNECTORS/Writing+a+Connector#WritingaConnector-CreatetheMavenprojecttemplate>
>>>>>> where it says about it.
>>>>>>
>>>>>> The readme file just says run mvn clean install for now.
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> --
>>>>>> *Sugunakumar Arunan*
>>>>>> Sofware Engineering - Intern | WSO2
>>>>>>
>>>>>> Email : aru...@wso2.com
>>>>>> Mobile : 0766016272
>>>>>> Web : http://wso2.com
>>>>>> <http://wso2.com/signature>
>>>>>>
>>>>>> 

Re: [Dev] Error when building connectors from source in wso2 extensions

2017-11-09 Thread Keerthika Mahendralingam
Hi Arunan,

I tried the twitter connector as well. I was able to build it successfully.
Anyhow, we will check into this further.

Environment:
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
2015-11-10T22:11:47+05:30)
Maven home: /usr/local/Cellar/maven@3.3/3.3.9/libexec
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home:
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"

Thanks,
Keerthika.

On Thu, Nov 9, 2017 at 5:35 PM, Arunan Sugunakumar <aru...@wso2.com> wrote:

> Hi,
>
> I cloned esb-connector-github[1] and esb-connector-twitter[2] and tried
> "mvn clean install" inside the directory.
>
> I have attached the terminal logs with this mail.
>
> Environment :
> Apache Maven 3.3.9
> Maven home: /usr/share/maven
> Java version: 1.8.0_151, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-8-oracle/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "4.4.0-98-generic", arch: "amd64", family:
> "unix"
>
>
> [1] https://github.com/wso2-extensions/esb-connector-github
> <https://github.com/wso2-extensions/esb-connector-github>
> [2] https://github.com/wso2-extensions/esb-connector-twitter
>
>
> Thank you
>
> On Thu, Nov 9, 2017 at 4:53 PM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi Arunan,
>>
>> We were able to build the connectors successfully with maven latest
>> versions(checked with 3.2.2, 3.3.9, 3.5.0 and 3.5.2). Could you please let
>> us know what are the connectors that you tried? And what is the error you
>> got?
>>
>> Thanks,
>> Keerthika.
>>
>> On Thu, Nov 9, 2017 at 11:55 AM, Keerthika Mahendralingam <
>> keerth...@wso2.com> wrote:
>>
>>> Hi Arun,
>>>
>>> We will check and let you know.
>>>
>>> Thanks,
>>> Keerthika.
>>>
>>> On Thu, Nov 9, 2017 at 11:22 AM, Godwin Shrimal <god...@wso2.com> wrote:
>>>
>>>> Adding @Malaka.
>>>>
>>>>
>>>>
>>>> Thanks
>>>> Godwin
>>>>
>>>> On Wed, Nov 8, 2017 at 3:54 PM, Arunan Sugunakumar <aru...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Almost all the ESB connectors in wso2 extensions github organisation
>>>>> fails when you are building them with mvn 3.3.9 which is the latest
>>>>> version. But they are building fine when you are using mvn 3.0.5. There is
>>>>> nothing about this mentioned in github readme files.
>>>>>
>>>>> IMHO it is better to include them in the readme files because it saves
>>>>> a lot of time for the developer when he tries to contribute the
>>>>> repositories. Or else he would have to go through all the documentation to
>>>>> find the one place
>>>>> <https://docs.wso2.com/display/ESBCONNECTORS/Writing+a+Connector#WritingaConnector-CreatetheMavenprojecttemplate>
>>>>> where it says about it.
>>>>>
>>>>> The readme file just says run mvn clean install for now.
>>>>>
>>>>> Thanks
>>>>>
>>>>> --
>>>>> *Sugunakumar Arunan*
>>>>> Sofware Engineering - Intern | WSO2
>>>>>
>>>>> Email : aru...@wso2.com
>>>>> Mobile : 0766016272
>>>>> Web : http://wso2.com
>>>>> <http://wso2.com/signature>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Godwin Amila Shrimal*
>>>> Associate Technical Lead
>>>> WSO2 Inc.; http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> mobile: *+94772264165*
>>>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>>>> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
>>>> twitter: https://twitter.com/godwinamila
>>>> <http://wso2.com/signature>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> h

Re: [Dev] Error when building connectors from source in wso2 extensions

2017-11-09 Thread Keerthika Mahendralingam
Hi Arunan,

We were able to build the connectors successfully with maven latest
versions(checked with 3.2.2, 3.3.9, 3.5.0 and 3.5.2). Could you please let
us know what are the connectors that you tried? And what is the error you
got?

Thanks,
Keerthika.

On Thu, Nov 9, 2017 at 11:55 AM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi Arun,
>
> We will check and let you know.
>
> Thanks,
> Keerthika.
>
> On Thu, Nov 9, 2017 at 11:22 AM, Godwin Shrimal <god...@wso2.com> wrote:
>
>> Adding @Malaka.
>>
>>
>>
>> Thanks
>> Godwin
>>
>> On Wed, Nov 8, 2017 at 3:54 PM, Arunan Sugunakumar <aru...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> Almost all the ESB connectors in wso2 extensions github organisation
>>> fails when you are building them with mvn 3.3.9 which is the latest
>>> version. But they are building fine when you are using mvn 3.0.5. There is
>>> nothing about this mentioned in github readme files.
>>>
>>> IMHO it is better to include them in the readme files because it saves a
>>> lot of time for the developer when he tries to contribute the repositories.
>>> Or else he would have to go through all the documentation to find the one
>>> place
>>> <https://docs.wso2.com/display/ESBCONNECTORS/Writing+a+Connector#WritingaConnector-CreatetheMavenprojecttemplate>
>>> where it says about it.
>>>
>>> The readme file just says run mvn clean install for now.
>>>
>>> Thanks
>>>
>>> --
>>> *Sugunakumar Arunan*
>>> Sofware Engineering - Intern | WSO2
>>>
>>> Email : aru...@wso2.com
>>> Mobile : 0766016272
>>> Web : http://wso2.com
>>> <http://wso2.com/signature>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
>> twitter: https://twitter.com/godwinamila
>> <http://wso2.com/signature>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> <dev-requ...@wso2.org>
> Keerthika Mahendralingam
> Software Engineer
> Mobile :+94 (0) 776 121144 <+94%2077%20612%201144>
> keerth...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
>



-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when building connectors from source in wso2 extensions

2017-11-08 Thread Keerthika Mahendralingam
Hi Arun,

We will check and let you know.

Thanks,
Keerthika.

On Thu, Nov 9, 2017 at 11:22 AM, Godwin Shrimal <god...@wso2.com> wrote:

> Adding @Malaka.
>
>
>
> Thanks
> Godwin
>
> On Wed, Nov 8, 2017 at 3:54 PM, Arunan Sugunakumar <aru...@wso2.com>
> wrote:
>
>> Hi,
>>
>> Almost all the ESB connectors in wso2 extensions github organisation
>> fails when you are building them with mvn 3.3.9 which is the latest
>> version. But they are building fine when you are using mvn 3.0.5. There is
>> nothing about this mentioned in github readme files.
>>
>> IMHO it is better to include them in the readme files because it saves a
>> lot of time for the developer when he tries to contribute the repositories.
>> Or else he would have to go through all the documentation to find the one
>> place
>> <https://docs.wso2.com/display/ESBCONNECTORS/Writing+a+Connector#WritingaConnector-CreatetheMavenprojecttemplate>
>> where it says about it.
>>
>> The readme file just says run mvn clean install for now.
>>
>> Thanks
>>
>> --
>> *Sugunakumar Arunan*
>> Sofware Engineering - Intern | WSO2
>>
>> Email : aru...@wso2.com
>> Mobile : 0766016272
>> Web : http://wso2.com
>> <http://wso2.com/signature>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
> twitter: https://twitter.com/godwinamila
> <http://wso2.com/signature>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Regarding gmail connector

2017-04-26 Thread Keerthika Mahendralingam
HI Varuni,

As per the ticket [1], current connector only supports plain text messages.

[1]. https://wso2.org/jira/browse/ESBCONNECT-147

Thanks,

On Thu, Apr 27, 2017 at 9:37 AM, Supun Sethunga <sup...@wso2.com> wrote:

> Which Gmail connector are you referring to? ESB[1] or Ballerina[2] ?
>
> [1] https://docs.wso2.com/display/ESBCONNECTORS/Gmail+Connector
> [2] http://ballerinalang.org/docs/api/0.8/org.wso2.
> ballerina.connectors.gmail.html
>
> On Wed, Apr 26, 2017 at 5:29 PM, Varuni Alwis <var...@wso2.com> wrote:
>
>> Hi all,
>>
>> I want to send a mail in the html format (not as a text) in the mail body
>> using the gmail connector? Is that possible with the connector?
>>
>> Thanks.
>>
>>
>> *Varuni Alwis*
>> *Software Engineer - Intern*
>> *WSO2*
>>
>> Email : var...@wso2.com
>> Mobile : +94 719865395 <+94%2071%20986%205395>
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Supun Sethunga*
> Senior Software Engineer
> WSO2, Inc.
> http://wso2.com/
> lean | enterprise | middleware
> Mobile : +94 716546324 <+94%2071%20654%206324>
> Blog: http://supunsetunga.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Improvements for JWT Bearer Grant

2017-04-18 Thread Keerthika Mahendralingam
Hi Farashath,

AFAIK we didn't enable it yet. Could you please check with Maheshika.

Thanks,
Keerthika.

On Tue, Apr 18, 2017 at 12:18 PM, Farasath Ahamed <farasa...@wso2.com>
wrote:

> Hi Keerthika,
>
> Just to know, haven't we enabled CI/CD for repo[1]?
>
> [1] https://github.com/wso2-extensions/identity-oauth2-grant-jwt/
> <https://github.com/wso2-extensions/identity-oauth2-grant-jwt/pull/13>
>
>
>
> Thanks,
> Farasath
>
> Farasath Ahamed
> Software Engineer, WSO2 Inc.; http://wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 <https://twitter.com/farazath619>
> <http://wso2.com/signature>
>
>
>
> On Tue, Apr 11, 2017 at 2:04 PM, Farasath Ahamed <farasa...@wso2.com>
> wrote:
>
>> Thanks Keerthika!!!
>>
>> Farasath Ahamed
>> Software Engineer, WSO2 Inc.; http://wso2.com
>> Mobile: +94777603866
>> Blog: blog.farazath.com
>> Twitter: @farazath619 <https://twitter.com/farazath619>
>> <http://wso2.com/signature>
>>
>>
>>
>> On Tue, Apr 11, 2017 at 2:03 PM, Keerthika Mahendralingam <
>> keerth...@wso2.com> wrote:
>>
>>> Thanks Farasath, I have merged your pull request.
>>>
>>>
>>> Thanks,
>>>
>>>
>>> On Tue, Apr 11, 2017 at 1:14 PM, Farasath Ahamed <farasa...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I have suggested an improvement with [1].  Sent a PR[2] implementing
>>>> the suggested changes. Appreciate if you can review and merge.
>>>>
>>>> [1] https://wso2.org/jira/browse/ISCONNECT-62
>>>> [2] https://github.com/wso2-extensions/identity-oauth2-grant
>>>> -jwt/pull/13
>>>>
>>>>
>>>>
>>>> Thanks,
>>>> Farasath Ahamed
>>>> Software Engineer, WSO2 Inc.; http://wso2.com
>>>> Mobile: +94777603866
>>>> Blog: blog.farazath.com
>>>> Twitter: @farazath619 <https://twitter.com/farazath619>
>>>> <http://wso2.com/signature>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> <dev-requ...@wso2.org>
>>> Keerthika Mahendralingam
>>> Software Engineer
>>> Mobile :+94 (0) 776 121144 <+94%2077%20612%201144>
>>> keerth...@wso2.com
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>>
>>
>>
>


-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Improvements for JWT Bearer Grant

2017-04-11 Thread Keerthika Mahendralingam
Thanks Farasath, I have merged your pull request.


Thanks,


On Tue, Apr 11, 2017 at 1:14 PM, Farasath Ahamed <farasa...@wso2.com> wrote:

> Hi,
>
> I have suggested an improvement with [1].  Sent a PR[2] implementing the
> suggested changes. Appreciate if you can review and merge.
>
> [1] https://wso2.org/jira/browse/ISCONNECT-62
> [2] https://github.com/wso2-extensions/identity-oauth2-grant-jwt/pull/13
>
>
>
> Thanks,
> Farasath Ahamed
> Software Engineer, WSO2 Inc.; http://wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 <https://twitter.com/farazath619>
> <http://wso2.com/signature>
>
>
>


-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Takes a lot of time to start up the server

2017-03-28 Thread Keerthika Mahendralingam
Hi All,

After enabling the remote login(System preferences --> Sharing --> Click
"Remote login"), it resolved. Earlier it took more the 160 seconds to start
up the server. Now it took less than 40 seconds.


Thanks,
Keerthika.

On Tue, Mar 28, 2017 at 2:10 PM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi All,
>
> I have upgraded the Mac OS version to 10.9.3 to 10.12.3(MacOS Sierra).
> After that, it takes a time to start up the server. It's same for ESB
> 4.9.0, 5.0.0 and EI.
>
> It freezes for some time after setting the java home.
>
> JAVA_HOME environment variable is set to /Library/Java/
> JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
>
> CARBON_HOME environment variable is set to /Users/keerthu/Desktop/QSP/
> wso2ei-6.0.0
>
> Using Java memory options: -Xms256m -Xmx1024m
>
>
> Did anyone come across this kind of issue? How to resolve it?
>
> Thanks,
> --
> <dev-requ...@wso2.org>
> Keerthika Mahendralingam
> Software Engineer
> Mobile :+94 (0) 776 121144 <+94%2077%20612%201144>
> keerth...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
>



-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Takes a lot of time to start up the server

2017-03-28 Thread Keerthika Mahendralingam
Hi All,

I have upgraded the Mac OS version to 10.9.3 to 10.12.3(MacOS Sierra).
After that, it takes a time to start up the server. It's same for ESB
4.9.0, 5.0.0 and EI.

It freezes for some time after setting the java home.

JAVA_HOME environment variable is set to
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home

CARBON_HOME environment variable is set to
/Users/keerthu/Desktop/QSP/wso2ei-6.0.0

Using Java memory options: -Xms256m -Xmx1024m


Did anyone come across this kind of issue? How to resolve it?

Thanks,
-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting null values when converting nested json objects into x-www-form-urlencoded format

2016-11-07 Thread Keerthika Mahendralingam
Created a JIRA ticket for this.

[1]. https://wso2.org/jira/browse/ESBJAVA-4947

Thanks.

On Thu, Sep 22, 2016 at 10:54 AM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi All,
>
> I am trying to convert json payload which have nested json objects into
> x-www-form-urlencoded format. Nested element values are converted to null
> when performing the transformation.
>
> I am using the following configuration with ESB 4.9.0 and 5.0.0 as well:
>
> 
> http://ws.apache.org/ns/synapse;
>name="testProxy"
>transports="https,http"
>statistics="disable"
>trace="disable"
>startOnLoad="true">
>
>   
>  
> {
>
> "name":"user1",
>
> "address":{"line1":"street1"},
>
> "age":12
>
> }
>
>
>
> 
>  
>  value="application/x-www-form-urlencoded"
>scope="axis2"
>    type="STRING"/>
>  
>   
>
>
> 
>
> The output is :
> name=user1==12
>
> But it should be:
> name=user1[line1]=street1=12
>
> Is there any way to achieve this?
>
> Thanks,
> Keerthika.
> --
> <dev-requ...@wso2.org>
> Keerthika Mahendralingam
> Software Engineer
> Mobile :+94 (0) 776 121144
> keerth...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
>



-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unable to remove Content-Type header for POST request with empty body

2016-11-06 Thread Keerthika Mahendralingam
Since it is a blocker for us I have created a JIRA ticket[1] for this.


[1]. https://wso2.org/jira/browse/ESBJAVA-4946

Thanks,

On Fri, Nov 4, 2016 at 1:20 PM, Malaka Silva <mal...@wso2.com> wrote:

> It seems to me we may not be able to do this use case for post requests
> with empty content.
>
> @ESB Team - Let us know if there is a way to handle this?
>
> On Wed, Nov 2, 2016 at 5:36 PM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi All,
>>
>> Dropbox backend service expecting a POST request with empty body and
>> without Content-Type header for download method[1].
>>
>> I am unable to remove the Content-Type header from the request. Is there
>> any way to do this?
>>
>> I tried with the following:
>> 
>> It is working for GET methods but not for POST one.
>>
>> If I use , content
>> type is set as null but it is sending "" in the body.
>>
>> Please find the configuration I used:
>>
>> 
>> http://ws.apache.org/ns/synapse;
>>name="testProxy"
>>startOnLoad="true"
>>statistics="disable"
>>trace="disable"
>>transports="https,http">
>>
>>   
>>   
>>   
>>   
>>   
>>   > value="application/x-www-form-urlencoded"
>> scope="axis2">
>>   > scope="axis2" type="BOOLEAN">
>>   
>>   
>> https://content.
>> dropboxapi.com/2/files/download"/>
>>   
>>  
>>   
>>
>>
>> 
>>
>> [1]. https://www.dropbox.com/developers/documentation/http/d
>> ocumentation#files-download
>>
>> Thanks,
>> --
>> <dev-requ...@wso2.org>
>> Keerthika Mahendralingam
>> Software Engineer
>> Mobile :+94 (0) 776 121144
>> keerth...@wso2.com
>> WSO2, Inc.
>> lean . enterprise . middleware
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Technical 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
> https://wso2.com/signature
> http://www.wso2.com/about/team/malaka-silva/
> <http://wso2.com/about/team/malaka-silva/>
> https://store.wso2.com/store/
>
> Don't make Trees rare, we should keep them with care
>



-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Unable to remove Content-Type header for POST request with empty body

2016-11-02 Thread Keerthika Mahendralingam
Hi All,

Dropbox backend service expecting a POST request with empty body and
without Content-Type header for download method[1].

I am unable to remove the Content-Type header from the request. Is there
any way to do this?

I tried with the following:

It is working for GET methods but not for POST one.

If I use , content
type is set as null but it is sending "" in the body.

Please find the configuration I used:


http://ws.apache.org/ns/synapse;
   name="testProxy"
   startOnLoad="true"
   statistics="disable"
   trace="disable"
   transports="https,http">
   
  
  
  
  
  
  
  
  
  
https://content.dropboxapi.com/2/files/download"/>
  
 
  
   
   


[1].
https://www.dropbox.com/developers/documentation/http/documentation#files-download

Thanks,
-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Getting null values when converting nested json objects into x-www-form-urlencoded format

2016-09-21 Thread Keerthika Mahendralingam
Hi All,

I am trying to convert json payload which have nested json objects into
x-www-form-urlencoded format. Nested element values are converted to null
when performing the transformation.

I am using the following configuration with ESB 4.9.0 and 5.0.0 as well:


http://ws.apache.org/ns/synapse;
   name="testProxy"
   transports="https,http"
   statistics="disable"
   trace="disable"
   startOnLoad="true">
   
  
 
{

"name":"user1",

"address":{"line1":"street1"},

"age":12

}

   


 
 
 
  
   
   


The output is :
name=user1==12

But it should be:
name=user1[line1]=street1=12

Is there any way to achieve this?

Thanks,
Keerthika.
-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] Getting JsonUtil #getNewJsonPayload error. Could not save JSON payload.

2016-07-12 Thread Keerthika Mahendralingam
Thanks Kesavan. As you mentioned this is working with the latest built.


On Mon, Jul 11, 2016 at 6:11 PM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi All,
>
> I am checking GoToTraining connector. I am getting the following error
> when the API response with "201 Created" with empty body.
>
> Only getting this error when the Content-Type of the response is "
> *application/json*" as in [1] or "*application/json;charset=UTF-8*". This
> is working fine if we get the empty response with "*application/json;
> charset=UTF-8*"
>
> Is there any reason for this?
>
> Please note that I tested with ESB 5.0.0-Beta and the latest build that I
> download from Jenkins build today.
>
> [1].
>
> HTTPS-Sender I/O dispatcher-1 << "POST
> /G2T/rest/organizers/8150166600242801157/trainings HTTP/1.1[\r][\n]"
>
> [2016-07-11 16:01:56,406]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,406] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Authorization: OAuth oauth_token=jkjFA5LtTutQWp90MrDTAUXVSFYQ[\r][\n]"
>
> [2016-07-11 16:01:56,407]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,407] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Action: urn:createTraining[\r][\n]"
>
> [2016-07-11 16:01:56,407]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,407] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Accept-Charset: UTF-8[\r][\n]"
>
> [2016-07-11 16:01:56,407]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,407] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Content-Type: application/json[\r][\n]"
>
> [2016-07-11 16:01:56,407]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,407] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Accept: application/json[\r][\n]"
>
> [2016-07-11 16:01:56,407]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,407] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Transfer-Encoding: chunked[\r][\n]"
>
> [2016-07-11 16:01:56,407]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,407] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Host: api.citrixonline.com[\r][\n]"
>
> [2016-07-11 16:01:56,407]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,407] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "Connection: Keep-Alive[\r][\n]"
>
> [2016-07-11 16:01:56,408]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,408] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
>
> [2016-07-11 16:01:56,408]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,408] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "[\r][\n]"
>
> [2016-07-11 16:01:56,408]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,408] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "dd[\r][\n]"
>
> [2016-07-11 16:01:56,408]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,408] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "{"times":[{"startDate":"2016-07-13T09:00:00Z",
> "endDate":"2016-07-13T12:00:00Z"}], "description":"Learn Java Fundamentals
> from the Professionals.", "name":"Java Fundamentals 1.7", "timeZone":"",
> "registrationSettings":{}}[\r][\n]"
>
> [2016-07-11 16:01:56,408]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,408] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "0[\r][\n]"
>
> [2016-07-11 16:01:56,449]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:56,408] DEBUG - wire HTTPS-Sender I/O dispatcher-1 <<
> "[\r][\n]"
>
> [2016-07-11 16:01:57,797]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2016-07-11 16:01:57,797] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >>
> "HTTP/1.1 201 Created[\r][\n]"
&

[Dev] [DEV] Getting JsonUtil #getNewJsonPayload error. Could not save JSON payload.

2016-07-11 Thread Keerthika Mahendralingam
4BAE1D14328BC34A36394113DE06; Path=/;
HttpOnly[\r][\n]"

[2016-07-11 17:41:59,798] DEBUG - wire HTTPS-Sender I/O dispatcher-4 >>
"Vary: Accept-Encoding[\r][\n]"

[2016-07-11 17:41:59,798] DEBUG - wire HTTPS-Sender I/O dispatcher-4 >>
"Content-Length: 41[\r][\n]"

[2016-07-11 17:41:59,798] DEBUG - wire HTTPS-Sender I/O dispatcher-4 >>
"Connection: keep-alive[\r][\n]"

[2016-07-11 17:41:59,798] DEBUG - wire HTTPS-Sender I/O dispatcher-4 >>
"[\r][\n]"

[2016-07-11 17:41:59,798] DEBUG - wire HTTPS-Sender I/O dispatcher-4 >>
"[0x1f][0x8b][0x8][0x0][0x0][0x0][0x0][0x0][0x0][0x0]S2516456031217[0xb7][0xb4]0224P[0x2][0x0][0xd0][0x9a][0x7][0xfa][0x15][0x0][0x0][0x0]"

[2016-07-11 17:41:59,799] DEBUG - headers http-outgoing-5 << HTTP/1.1 201
Created

[2016-07-11 17:41:59,799] DEBUG - headers http-outgoing-5 <<
Access-Control-Allow-Headers: origin, x-requested-with, authorization,
accept, content-type

[2016-07-11 17:41:59,799] DEBUG - headers http-outgoing-5 <<
Access-Control-Allow-Methods: GET, PUT, POST, DELETE

[2016-07-11 17:41:59,799] DEBUG - headers http-outgoing-5 <<
Access-Control-Allow-Origin: *

[2016-07-11 17:41:59,799] DEBUG - headers http-outgoing-5 <<
Access-Control-Max-Age: 3628800

[2016-07-11 17:41:59,799] DEBUG - headers http-outgoing-5 <<
Content-Encoding: gzip

[2016-07-11 17:41:59,799] DEBUG - headers http-outgoing-5 << Content-Type:
application/json;charset=UTF-8

[2016-07-11 17:41:59,799] DEBUG - headers http-outgoing-5 << Date: Mon, 11
Jul 2016 12:10:10 GMT

[2016-07-11 17:41:59,799] DEBUG - headers http-outgoing-5 << Server:
Apache-Coyote/1.1

[2016-07-11 17:41:59,800] DEBUG - headers http-outgoing-5 << Set-Cookie:
JSESSIONID=77D04BAE1D14328BC34A36394113DE06; Path=/; HttpOnly

[2016-07-11 17:41:59,800] DEBUG - headers http-outgoing-5 << Vary:
Accept-Encoding

[2016-07-11 17:41:59,800] DEBUG - headers http-outgoing-5 <<
Content-Length: 41

[2016-07-11 17:41:59,800] DEBUG - headers http-outgoing-5 << Connection:
keep-alive

[2016-07-11 17:41:59,801] ERROR - JsonUtil #getNewJsonPayload. Could not
save JSON payload. Invalid input stream found. MessageID:
urn:uuid:3a9d2664-d2f0-4029-817c-8f5bfdb0299f

[2016-07-11 17:41:59,802] ERROR - DeferredMessageBuilder Error building
message

org.apache.axis2.AxisFault: Payload is not a JSON string.

at
org.apache.synapse.commons.json.JsonUtil.getNewJsonPayload(JsonUtil.java:555)

at
org.apache.synapse.commons.json.JsonStreamBuilder.processDocument(JsonStreamBuilder.java:45)

at
org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:148)

at
org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:137)

at
org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:100)

at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)

at
org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:171)

at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:268)

at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:756)

at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:277)

at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:554)

at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:188)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)

at
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:255)

at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)

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

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

at java.lang.Thread.run(Thread.java:722)




Template and proxy used:


http://ws.apache.org/ns/synapse;>








http://org.apache.synapse/xsd; xmlns:ns2="
http://org.apache.synapse/xsd"/>
http://org.apache.synapse/xsd; xmlns:ns2="
http://org.apache.synapse/xsd"/>
http://org.apache.synapse/xsd; xmlns:ns2="
http://org.apache.synapse/xsd"/>
http://org.apache.synapse/xsd; xmlns:ns2="
http://org.apache.synapse/xsd"/>
http://org.apache.synapse/xsd; xmlns:ns2="
http://org.apache.synapse/xsd"/>
http://org.apache.synapse/xsd; xmlns:ns2="
http://org.apache.synapse/xsd"/>
http://org.apache.synapse/xsd; xmlns:ns2="
http://org.apache.synapse/xsd"/>


{
"times": $1,
"description": "$2",
"name": "$3",
"timeZone": "$4"
}


http://org.apache.synapse/xsd; xmlns:ns2="
http://org.apache.synapse/xsd"/>
http://org.apache.synapse/xsd; xmlns:ns2="
http://org.apache.synapse/xsd"/>
http://org.apache.synapse/xsd; xmlns:ns2="
http://org.apache.synapse/xsd"/>
http://org.apache.synapse/xsd; xmlns:ns2="
http://org.apache.synapse/xsd"/>







https://api.citrixonline.com/G2T/rest/organizers/8150166600242801157/trainings
"/>






==


http://ws.apache.org/ns/synapse;
   name="test"
   transports="https,http"
   statistics="disable"
   trace="disable"
   startOnLoad="true">
   
  
 
 
 
 



 
  
   
   



Thanks,
Keerthika.
-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WSO2 Connector] Concur- getExchangeRate issue

2016-07-04 Thread Keerthika Mahendralingam
+dev

On Tue, Jul 5, 2016 at 9:57 AM, Keerthika Mahendralingam <keerth...@wso2.com
> wrote:

> Yes Malaka, We can only get the exchange rate with the expense(as in [1] )
> which is already added to the expense as in [2].
>
> @Godwin, AFAIK we don't have any connector method to get the exchange rate.
>
> [1].
> https://developer.concur.com/api-reference-deprecated/version-one-one/expense-entry/get-expense-entry.html
> [2].
> https://developer.concur.com/api-reference-deprecated/version-one-one/expense-entry/post-expense-entry.html
>
> Thanks,
> Keerthika.
>
> On Tue, Jul 5, 2016 at 9:52 AM, Godwin Shrimal <god...@wso2.com> wrote:
>
>> [Warning : Moving to internal]
>>
>> Please remove the Get Exchange Rate sections in Concur connector
>> documentation since its no longer exist.
>>
>>
>>
>> Thanks
>> Godwin
>>
>>
>> On Sun, Jul 3, 2016 at 11:20 PM, Malaka Silva <mal...@wso2.com> wrote:
>>
>>> Thx Rajjaz,
>>>
>>> AFAIK you can only get exchange rate with the expense.
>>>
>>> @Rajjaz / keertika - Please confirm.
>>>
>>> [1]
>>> https://developer.concur.com/api-reference-deprecated/version-one-one/expense-entry/get-expense-entry.html
>>>
>>> On Sun, Jul 3, 2016 at 9:22 AM, Rajjaz Mohammed <raj...@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> Method removed from the connector and will add a new version in the
>>>> store. Other then getExchangeRate method other methods are works fine[1].
>>>>
>>>> [1] https://wso2.org/jira/browse/ESBCONNECT-107
>>>>
>>>> On Sat, Jul 2, 2016 at 11:18 AM, Keerthika Mahendralingam <
>>>> keerth...@wso2.com> wrote:
>>>>
>>>>> Hi Godwin,
>>>>>
>>>>> According to the documentation [1], this method is not available in
>>>>> the API. I have created a public JIRA[2] to remove this method from the
>>>>> connector.
>>>>>
>>>>> [1].
>>>>> https://developer.concur.com/api-reference/expense/expense-report/expense-form.html
>>>>>
>>>>> [2]. https://wso2.org/jira/browse/ESBCONNECT-107
>>>>>
>>>>> Thanks,
>>>>> Keerthika.
>>>>>
>>>>> On Sat, Jul 2, 2016 at 1:10 AM, Godwin Shrimal <god...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> I am trying to get exchange rate using WSO2 Concur connector and
>>>>>> getting below response.
>>>>>>
>>>>>> 
>>>>>> Not Found
>>>>>> 2016-07-01T15:31:40
>>>>>> 26D1A0AC-E21C-4626-85A3-2BB5380505DF
>>>>>> 
>>>>>>
>>>>>> Once we enable wire log it has an outbound as *GET
>>>>>> /api/v3.0/expense/exchangerates/?forDate=01/01/2016& HTTP/1.1 , *So
>>>>>> we try the relevant rest endpoint   which is in [1] also give the same
>>>>>> result. Concur shows the particular error in [2].
>>>>>>
>>>>>> Any thought ?
>>>>>>
>>>>>>
>>>>>> [1]
>>>>>> https://www.concursolutions.com/api/v3.0/expense/exchangerates/?forDate=05/05/2016
>>>>>> [2]
>>>>>> https://developer.concur.com/tools-support/reference/http-codes.html
>>>>>>
>>>>>> *Note: My token is valid since when I try some other endpoint those
>>>>>> are working properly.*
>>>>>>
>>>>>> Thanks
>>>>>> Godwin
>>>>>>
>>>>>> --
>>>>>> *Godwin Amila Shrimal*
>>>>>> Senior Software Engineer
>>>>>> WSO2 Inc.; http://wso2.com
>>>>>> lean.enterprise.middleware
>>>>>>
>>>>>> mobile: *+94772264165*
>>>>>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>>>>>> twitter: https://twitter.com/godwinamila
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> <dev-requ...@wso2.org>
>>>>> Keerthika Mahendralingam
>>>>> Software Engineer
>>>>> Mobile :+94 (0) 776 121144
>>>>> keerth...@wso2.com
>>>>> WSO2, Inc.
>>>>> lean 

Re: [Dev] [WSO2 Connector] Concur- getExchangeRate issue

2016-07-02 Thread Keerthika Mahendralingam
Hi Godwin,

According to the documentation [1], this method is not available in the
API. I have created a public JIRA[2] to remove this method from the
connector.

[1].
https://developer.concur.com/api-reference/expense/expense-report/expense-form.html

[2]. https://wso2.org/jira/browse/ESBCONNECT-107

Thanks,
Keerthika.

On Sat, Jul 2, 2016 at 1:10 AM, Godwin Shrimal <god...@wso2.com> wrote:

> Hi All,
>
> I am trying to get exchange rate using WSO2 Concur connector and getting
> below response.
>
> 
> Not Found
> 2016-07-01T15:31:40
> 26D1A0AC-E21C-4626-85A3-2BB5380505DF
> 
>
> Once we enable wire log it has an outbound as *GET
> /api/v3.0/expense/exchangerates/?forDate=01/01/2016& HTTP/1.1 , *So we
> try the relevant rest endpoint   which is in [1] also give the same result.
> Concur shows the particular error in [2].
>
> Any thought ?
>
>
> [1]
> https://www.concursolutions.com/api/v3.0/expense/exchangerates/?forDate=05/05/2016
> [2] https://developer.concur.com/tools-support/reference/http-codes.html
>
> *Note: My token is valid since when I try some other endpoint those are
> working properly.*
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
> twitter: https://twitter.com/godwinamila
>



-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clarification regarding JIRA connector.

2016-06-27 Thread Keerthika Mahendralingam
Hi Bhashinee,

The latest code is available at [1].

[1].
https://github.com/wso2-extensions/esb-connector-jira/blob/master/src/main/resources/jira_issue/createIssue.xml

Thanks,
Keerthika

On Mon, Jun 27, 2016 at 6:10 PM, Bhashinee Nirmali <bhashi...@wso2.com>
wrote:

> Hi All,
>
> There is a mismatch between the create issue in JIRA connector
> documentation[1] and the createIssue.xml in github[2]. There is no such
> parameter named "issueFields" in createIssue.xml. Kindly someone point me
> to the latest code?
>
> [1]
> https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Issues+in+JIRA#WorkingwithIssuesinJIRA-createIssue
>
> [2]
> https://github.com/wso2-attic/esb-connectors/blob/master/jira/jira-connector/jira-connector-2.0.0/org.wso2.carbon.connector/src/main/resources/jira_issue/createIssue.xml
>
>
> Thanks
> --
> *Bhashinee Nirmali*
> Software Engineering Intern
> WSO2 Inc.; http://wso2.com
> Mobile : +94 (0) 712150003 <%2B94%20%280%29%20716%20590818>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ClassCastException when using datamapper

2016-06-21 Thread Keerthika Mahendralingam
Thanks Nuwan. After changing the input output type, it is working in the
the ESB pack that you provided. Getting the same error in the ESB BETA pack.



Thanks,
Keerthika.

On Tue, Jun 21, 2016 at 12:20 PM, Nuwan Pallewela <nuw...@wso2.com> wrote:

> Hi Keerthika,
>
> You need to change the input and output type in the data mapper mediator
> as JSON.
>
>  
>  inputSchema="gov:datamapper/pdJiraConfig_inputSchema.json"
>
>  outputSchema="gov:datamapper/pdJiraConfig_outputSchema.json"
>  inputType="JSON"
>  outputType="JSON"/>
>
>
> Thanks,
> Nuwan
>
> On Mon, Jun 20, 2016 at 5:10 PM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi Viraj,
>>
>> I used the schema from connector and also I tried to create the schema
>> from the exact payload that I received before the data mapper. In both
>> cases I'm getting the same error.
>>
>> Please find the payload and input output schama:
>>
>> {
>>"id":"PS9VE7M",
>>"incident_number":3,
>>"created_on":"2016-06-15T11:33:51Z",
>>"status":"resolved",
>>"pending_actions":[
>>
>>],
>>"html_url":"https://connectordemo.pagerduty.com/incidents/PS9VE7M;,
>>"incident_key":"3c45415469ed415d8137b8ea9fe2fc03",
>>"service":{
>>   "id":"P4OWETP",
>>   "name":"testService",
>>   "html_url":"https://connectordemo.pagerduty.com/services/P4OWETP;,
>>   "deleted_at":null,
>>   "description":"This is for testing purpose"
>>},
>>"escalation_policy":{
>>   "id":"PDJQDGY",
>>   "name":"Default",
>>   "deleted_at":null
>>},
>>"assigned_to_user":null,
>>"trigger_summary_data":{
>>   "subject":"serviceTest"
>>},
>>"trigger_details_html_url":"
>> https://connectordemo.pagerduty.com/incidents/PS9VE7M/log_entries/Q324O08PK4VLJV
>> ",
>>"trigger_type":"web_trigger",
>>"last_status_change_on":"2016-06-15T15:33:51Z",
>>"last_status_change_by":null,
>>"number_of_escalations":0,
>>"resolved_by_user":null,
>>"assigned_to":[
>>
>>],
>>"urgency":"high"
>> }
>>
>>
>>
>> ==
>>
>> *pdJiraConfig_inputSchema.json :*
>>
>> {
>>   "id" : "http://wso2jsonschema.org;,
>>   "title" : "root",
>>   "$schema" : "http://json-schema.org/draft-04/schema#;,
>>   "properties" : {
>> "last_status_change_on" : {
>>   "id" : "http://wso2jsonschema.org/last_status_change_on;,
>>   "type" : "string"
>> },
>> "status" : {
>>   "id" : "http://wso2jsonschema.org/status;,
>>   "type" : "string"
>> },
>> "created_on" : {
>>   "id" : "http://wso2jsonschema.org/created_on;,
>>   "type" : "string"
>> },
>> "last_status_change_by" : {
>>   "id" : "http://wso2jsonschema.org/last_status_change_by;,
>>   "type" : "string"
>> },
>> "incident_key" : {
>>   "id" : "http://wso2jsonschema.org/incident_key;,
>>   "type" : "string"
>> },
>> "trigger_type" : {
>>   "id" : "http://wso2jsonschema.org/trigger_type;,
>>   "type" : "string"
>> },
>> "resolved_by_user" : {
>>   "id" : "http://wso2jsonschema.org/resolved_by_user;,
>>   "type" : "string"
>> },
>> "incident_number" : {
>>   "id" : "http://wso2jsonschema.org/incident_number;,
>>   "type" : "number"
>> },
>> "urgency" : {
>>   "id" : "http://wso2jsonschema.org/urgency;,
>>   "type" : &q

Re: [Dev] ClassCastException when using datamapper

2016-06-20 Thread Keerthika Mahendralingam
"object"
},
"escalation_policy" : {
  "id" : "http://wso2jsonschema.org/escalation_policy;,
  "properties" : {
"id" : {
  "id" : "http://wso2jsonschema.org/escalation_policy/id;,
  "type" : "string"
},
"name" : {
  "id" : "http://wso2jsonschema.org/escalation_policy/name;,
  "type" : "string"
},
"deleted_at" : {
  "id" : "http://wso2jsonschema.org/escalation_policy/deleted_at;,
  "type" : "string"
}
  },
  "type" : "object"
},
"trigger_summary_data" : {
  "id" : "http://wso2jsonschema.org/trigger_summary_data;,
  "properties" : {
"subject" : {
  "id" : "http://wso2jsonschema.org/trigger_summary_data/subject;,
  "type" : "string"
}
  },
  "type" : "object"
},
"trigger_details_html_url" : {
  "id" : "http://wso2jsonschema.org/trigger_details_html_url;,
  "type" : "string"
}
  },
  "type" : "object"
}



===
*pdJiraConfig_outputSchema.json:*

{
  "id" : "http://wso2jsonschema.org;,
  "title" : "root",
  "$schema" : "http://json-schema.org/draft-04/schema#;,
  "properties" : {
"issueFields" : {
  "id" : "http://wso2jsonschema.org/issueFields;,
  "properties" : {
"fields" : {
  "id" : "http://wso2jsonschema.org/issueFields/fields;,
  "properties" : {
"reporter" : {
  "id" : "http://wso2jsonschema.org/issueFields/fields/reporter
",
  "properties" : {
"name" : {
  "id" : "
http://wso2jsonschema.org/issueFields/fields/reporter/name;,
  "type" : "string"
}
  },
  "type" : "object"
},
"summary" : {
  "id" : "http://wso2jsonschema.org/issueFields/fields/summary;,
  "type" : "string"
},
"timetracking" : {
  "id" : "
http://wso2jsonschema.org/issueFields/fields/timetracking;,
  "properties" : {
"originalEstimate" : {
  "id" : "
http://wso2jsonschema.org/issueFields/fields/timetracking/originalEstimate;,
  "type" : "string"
},
"remainingEstimate" : {
  "id" : "
http://wso2jsonschema.org/issueFields/fields/timetracking/remainingEstimate
",
  "type" : "string"
}
  },
  "type" : "object"
},
"project" : {
  "id" : "http://wso2jsonschema.org/issueFields/fields/project;,
  "properties" : {
"key" : {
  "id" : "
http://wso2jsonschema.org/issueFields/fields/project/key;,
  "type" : "string"
}
  },
  "type" : "object"
},
"issuetype" : {
  "id" : "http://wso2jsonschema.org/issueFields/fields/issuetype
",
  "properties" : {
"id" : {
      "id" : "
http://wso2jsonschema.org/issueFields/fields/issuetype/id;,
  "type" : "string"
}
  },
  "type" : "object"
},
"priority" : {
  "id" : "http://wso2jsonschema.org/issueFields/fields/priority
",
  "properties" : {
"id" : {
  "id" : "
http://wso2jsonschema.org/issueFields/fields/priority/id;,
  "type" : "string"
}
  },
  "type" : "object"
},
"description" : {
  "id" : "
http://wso2jsonschema.org/issueFields/fields/description;,
  "type" : "string"
},
   

Re: [Dev] ClassCastException when using datamapper

2016-06-20 Thread Keerthika Mahendralingam
Hi Nuwan,

Using ESB 5.0.0-BETA.

Thanks,
Keerthika

On Mon, Jun 20, 2016 at 4:25 PM, Nuwan Pallewela <nuw...@wso2.com> wrote:

> Hi Keerthika,
>
> What is the ESB version you are using?
>
> Thanks,
> Nuwan
>
> On Mon, Jun 20, 2016 at 4:03 PM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi All,
>>
>> I am getting the following error when I used data mapper to create an
>> integration scenario. I installed the tool from
>> http://builder1.us1.wso2.org/~developerstudio/devstudio-tooling-esb/5.0.0/Beta/composite/
>> and used input output schema from jira and pagerduty connector schema.
>>
>> I have added the proxy and data mapper configuration at the end.
>>
>> What could be the reason for the following error?
>>
>> [2016-06-20 15:11:10,720] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
>> "[\r][\n]"
>>
>> [2016-06-20 15:11:10,720] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
>> "352[\r][\n]"
>>
>> [2016-06-20 15:11:10,721] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >> "
>> {"id":"PS9VE7M","incident_number":3,"created_on":"2016-06-15T11:33:51Z","status":"resolved","pending_actions":[],"html_url":"
>> https://connectordemo.pagerduty.com/incidents/PS9VE7M
>> ","incident_key":"3c45415469ed415d8137b8ea9fe2fc03","service":{"id":"P4OWETP","name":"testService","html_url":"
>> https://connectordemo.pagerduty.com/services/P4OWETP","deleted_at":null,"description":"This
>> is for testing
>> purpose"},"escalation_policy":{"id":"PDJQDGY","name":"Default","deleted_at":null},"assigned_to_user":null,"trigger_summary_data":{"subject":"serviceTest"},"trigger_details_html_url":"
>> https://connectordemo.pagerduty.com/incidents/PS9VE7M/log_entries/Q324O08PK4VLJV
>> ","trigger_type":"web_trigger","last_status_change_on":"2016-06-15T15:33:51Z","last_status_change_by":null,"number_of_escalations":0,"resolved_by_user":null,"assigned_to":[],"urgency":"high"}
>> [\r][\n]"
>>
>> [2016-06-20 15:11:10,722] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
>> "0[\r][\n]"
>>
>> [2016-06-20 15:11:10,723] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
>> "[\r][\n]"
>>
>> [2016-06-20 15:11:10,731]  WARN - JacksonJSONSchema Element name not
>> found : jsonObject
>>
>> [2016-06-20 15:11:10,732]  WARN - JacksonJSONSchema Element name not
>> found : jsonObject
>>
>> [2016-06-20 15:11:10,732] ERROR - SequenceMediator java.lang.String
>> cannot be cast to java.util.Map
>>
>> java.lang.ClassCastException: java.lang.String cannot be cast to
>> java.util.Map
>>
>> at
>> org.wso2.carbon.mediator.datamapper.engine.core.schemas.JacksonJSONSchema.getElementTypeByName(JacksonJSONSchema.java:111)
>>
>> at
>> org.wso2.carbon.mediator.datamapper.engine.input.readers.XMLReader.startElement(XMLReader.java:141)
>>
>> at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
>> Source)
>>
>> at
>> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
>> Source)
>>
>> at
>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>> Source)
>>
>> at
>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
>> Source)
>>
>> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>>
>> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>>
>> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>>
>> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>>
>> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
>> Source)
>>
>> at
>> org.wso2.carbon.mediator.datamapper.engine.input.readers.XMLReader.read(XMLReader.java:95)
>>
>> at
>> org.wso2.carbon.mediator.datamapper.engine.input.InputModelBuilder.buildInputModel(InputModelBuilder.java:52)
>>
>> at
>> org.wso2.carbon.mediator.datamapper.engine.core.mapper.MappingHandler.doMap(MappingHandler.java:59)
>>
>> at
>> org.wso2.carbon.mediator.datamapp

[Dev] ClassCastException when using datamapper

2016-06-20 Thread Keerthika Mahendralingam
cutor$Worker.run(ThreadPoolExecutor.java:603)

at java.lang.Thread.run(Thread.java:722)

*Proxy Service:*


http://ws.apache.org/ns/synapse;
   name="createIssue"
   transports="https,http"
   statistics="disable"
   trace="disable"
   startOnLoad="true">
   
  
 
PS9VE7M
 
 
 
{json-eval($.issueFields)}
 
 
  
  
  
   
   


*pdJiraConfig.dmc:*

function map_S_root_S_root( ){
var outputroot={};


outputroot = {};
outputroot.issueFields = {};
outputroot.issueFields.fields = {};


outputroot.issueFields.fields.description = inputroot.html_url;
return outputroot;
}

Thanks,
Keerthika.
-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Contributing to WSO2 Open Source Projects.

2016-05-26 Thread Keerthika Mahendralingam
Hi Pawan,

As we discussed we can have the discussion today evening at Jaffna office.
Malaka and Kesavan will join.


Thanks,
Keerthika.

On Thu, May 26, 2016 at 3:07 PM, Pawan Nayanajith <djnayanaj...@gmail.com>
wrote:

> Hi all,
>
> We are a group of 3rd year undergraduate students following Computer
> Science at  University of Jaffna. And we are supposed to built an Open
> Source project for our course unit CSC305GC2- Rapid Application Development
> within a year. And for this we have decided to contribute to a WSO2
> product.Therefore for we wish you will guide us to begin the  project and
> you will help us to make it a success.So we are expecting a good reply form
> you and we wish to know the procedure how we should start our project.
>
> Our group members are as follows
>
> 1. J.A. Pawan Nayanajith Madushanka
> <https://lk.linkedin.com/in/pawannayanajith> -djnayanaj...@gmail.com
>
> 2. Logeshwaran Praveenath
> <https://lk.linkedin.com/in/logeshwaran-praveenath-a0b017b2> -
> logeshwaranpraveen...@gmail.com
>
> 3. D.M.Salitha Prasad Disanayaka -salith...@gmail.com
>
> Thank you.
>



-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GoogleAuth library for TOTP authenticator

2016-04-08 Thread Keerthika Mahendralingam
Hi Johann,
Thank you for your suggestion. I have removed the GoogleAuth code from TOTP
repo. Able to use the library by adding it to the lib folder.

Thanks,

On Thu, Apr 7, 2016 at 4:54 PM, Johann Nallathamby <joh...@wso2.com> wrote:

> Hi Keerthika,
>
> First of all you should always copy such mails to dev.
>
> Why do you need to fork the entire code? If its the POM that you are
> modifying can't we do it like a orbit bundle without forking the entire
> code? I think that should be the way to do it.
>
> Regards,
> Johann.
>
> On Thu, Apr 7, 2016 at 6:14 AM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi All,
>> For TOTP authenticator I have done some changes in GoogleAuth library pom
>> file so that it can be added into the dropins folder(Otherwise it is not
>> getting deployed). So I have added modified GoggleAuth library inside the
>> TOTP component[1].
>>
>> Any concern on this?
>>
>> [1]. https://github.com/keerthu/identity-outbound-auth-totp
>>
>> Thanks,
>> --
>> <dev-requ...@wso2.org>
>> Keerthika Mahendralingam
>> Associate Software Engineer
>> Mobile :+94 (0) 776 121144
>> keerth...@wso2.com
>> WSO2, Inc.
>> lean . enterprise . middleware
>>
>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Technical Lead & Product Lead of WSO2 Identity Server
> Governance Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>



-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB][Connector Redmine] "401 Authorization Required" error when using Redmine connector

2016-03-15 Thread Keerthika Mahendralingam
Hi Bhashinee,
It seems you haven't enable the REST web service for your account. Follow
the following steps to configure:

   1. Create a fresh account in Redmine using the URL http://m.redmine.org/
   with the web browser.
   2. Login to the administrations panel of the account created using the
   login credentials with the specific API URL.
   3. Go to Administration -> Settings -> Authentication and enable the
   check box in "Enable REST web service".
   4. Go to /my/account URL of your Redmine demo site and copy the API Key
   from the right hand side of the screen to apiKey

Thanks,

On Tue, Mar 15, 2016 at 10:44 AM, Bhashinee Nirmali <bhashi...@wso2.com>
wrote:

> Hi All,
>
> I tried adding the Redmine connector of WSO2 ESB. First I created a
> Redmine account and got the key. The url and the key I used to create the
> proxy service are listed below.
>
> apiURL - http://connector.m.redmine.org
> apiKey - 3bed7029a2e5b8cb6978d81676fc9d3dab74398a
>
>
> I got an error when trying to send a request. Here I have attached the
> error I got and the proxy service.
> Kindly appreciate your help on this.
>
> Thank you.
>
> --
> *Bhashinee Nirmali*
> Software Engineer Intern
> WSO2 Inc.; http://wso2.com
> Mobile : +94 (0) 712150003 <%2B94%20%280%29%20716%20590818>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Xpath expression to fetch a property which has space in name

2016-03-07 Thread Keerthika Mahendralingam
Hi Udara,
Since you are getting JSON response, I think you can use json-eval to get
the value form response like,




Thanks,

On Mon, Mar 7, 2016 at 2:31 PM, Udara Liyanage <ud...@wso2.com> wrote:

> Hi,
>
> We have an call mediator which calls and external API. API response is
> json. Json properties has spaces in names.
> {
> "Department": "ENGINEERING",
> "Employee Id": "LK",
> "First Name": "Udara",
>
> }
>
> ESB converts this to xml, those xml element names also have space in
> element name.
>
> On Mon, Mar 7, 2016 at 2:05 PM, Udara Liyanage <ud...@wso2.com> wrote:
>
>> Hi,
>>
>> Below is the log mediator output. Even the converted xml tag has space in
>> its name.
>>
>> [2016-03-07 14:00:36,587]  INFO - LogMediator To:
>> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction:
>> , MessageID: urn:uuid:2b6e4e6d-9180-4083-b06b-d12c08c5178e, Direction:
>> request, Envelope: > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
>> ">**123**> Name>udaraliyanage> Name>
>>
>> On Mon, Mar 7, 2016 at 12:06 PM, Udara Liyanage <ud...@wso2.com> wrote:
>>
>>> Hi Thusitha,
>>>
>>> I already tried that, but negative.
>>>
>>> On Mon, Mar 7, 2016 at 11:59 AM, Thusitha Thilina Dayaratne <
>>> thusit...@wso2.com> wrote:
>>>
>>>> Hi Udara,
>>>>
>>>> Did you tried replace the space with "_x0020_"? according to the [1]
>>>> it seems work for spaces
>>>> [1] - 
>>>> *http://users.jackrabbit.apache.narkive.com/r9aFPfiI/xpath-query-with-space-in-node-name
>>>> <http://users.jackrabbit.apache.narkive.com/r9aFPfiI/xpath-query-with-space-in-node-name>*
>>>>
>>>> Thanks
>>>> On Mon, Mar 7, 2016 at 11:43 AM, Udara Liyanage <ud...@wso2.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I am trying to fetch an property value from a json payload similar to
>>>>> below.
>>>>> {
>>>>> "Department": "ABC",
>>>>> "Employee Id": "123",
>>>>> "Work Email": "ud...@wso2.com"
>>>>> },
>>>>>
>>>>> I could extract Department value by below xpath expression.
>>>>>
>>>>> 
>>>>>
>>>>> However when I found difficulties when the property name contains an
>>>>> space in middle. I tried few options which were not successful.  What is
>>>>> the correct way to escape space character.
>>>>>
>>>>> 
>>>>>
>>>>> 
>>>>>
>>>>> --
>>>>>
>>>>> Udara Liyanage
>>>>> Software Engineer
>>>>> WSO2, Inc.: http://wso2.com
>>>>> lean. enterprise. middleware
>>>>>
>>>>> web: http://udaraliyanage.wordpress.com
>>>>> phone: +94 71 443 6897
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Thusitha Dayaratne
>>>> Software Engineer
>>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>>
>>>> Mobile  +94712756809
>>>> Blog  alokayasoya.blogspot.com
>>>> Abouthttp://about.me/thusithathilina
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Udara Liyanage
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> web: http://udaraliyanage.wordpress.com
>>> phone: +94 71 443 6897
>>>
>>
>>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Keerthika Mahendralingam
ommons-email-1.2.jar
>>>>>>>>
>>>>>>>> On Wed, Feb 3, 2016 at 6:02 PM, Maheeka Jayasuriya <
>>>>>>>> mahe...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Hi ,
>>>>>>>>>
>>>>>>>>> I am getting an error when enabling Google Contacts connector with
>>>>>>>>> ESB 4.9.0. Following is the stack trace.
>>>>>>>>>
>>>>>>>>> Caused by: java.lang.NoClassDefFoundError:
>>>>>>>>> com/google/api/client/http/HttpTransport
>>>>>>>>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>>>>>>>>> at
>>>>>>>>> java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
>>>>>>>>> at java.lang.Class.getConstructor0(Class.java:2842)
>>>>>>>>> at java.lang.Class.newInstance(Class.java:345)
>>>>>>>>> at
>>>>>>>>> org.apache.synapse.config.xml.ClassMediatorFactory.createSpecificMediator(ClassMediatorFactory.java:112)
>>>>>>>>> at
>>>>>>>>> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
>>>>>>>>> at
>>>>>>>>> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
>>>>>>>>> at
>>>>>>>>> org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:46)
>>>>>>>>> at
>>>>>>>>> org.apache.synapse.config.xml.TemplateMediatorFactory.createSpecificMediator(TemplateMediatorFactory.java:61)
>>>>>>>>> at
>>>>>>>>> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
>>>>>>>>> at
>>>>>>>>> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
>>>>>>>>> at
>>>>>>>>> org.apache.synapse.libraries.model.LibraryArtifact$TemplateArtifactFile.build(LibraryArtifact.java:190)
>>>>>>>>> at
>>>>>>>>> org.apache.synapse.libraries.model.LibraryArtifact.loadComponentsInto(LibraryArtifact.java:100)
>>>>>>>>> at
>>>>>>>>> org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:144)
>>>>>>>>> at
>>>>>>>>> org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:129)
>>>>>>>>> at
>>>>>>>>> org.apache.synapse.libraries.util.LibDeployerUtils.loadLibArtifacts(LibDeployerUtils.java:340)
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:100)
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:124)
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.updateStatus(MediationLibraryAdminService.java:436)
>>>>>>>>> ... 126 more
>>>>>>>>> Caused by: java.lang.ClassNotFoundException: Class Not found :
>>>>>>>>> com.google.api.client.http.HttpTransport
>>>>>>>>> at
>>>>>>>>> org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:92)
>>>>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>>>>>>>>> at
>>>>>>>>> org.apache.axis2.deployment.DeploymentClassLoader.loadClass(DeploymentClassLoader.java:273)
>>>>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>>>>>>>>> ... 145 more
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Maheeka
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ___
>>>>>>

[Dev] Issue with multiple dependencies in IS

2016-02-02 Thread Keerthika Mahendralingam
Hi All,

I am implementing totp authenticator. For that I need to encode the secret
key in Base32 encoding. Since Base32 class is not available in the
commons-codec 1.4.0.wso2v1 version which WSO2 IS using, I need to use the
latest version. If I use commons-codec 1.10, other modules in IS not get
deployed. How to resolve this multiple dependency issue?


Thanks,

-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [FB Connector] (#324) Requires upload file when try to add a photo to a page via FB Connector

2015-12-08 Thread Keerthika Mahendralingam
Hi All,

When we try to upload the file using multipart/form-data the header is set
as *Content-Type: multipart/form-data; charset=UTF-8;
boundary=MIMEBoundary_9e11cd10389246e6cd91ff115cb91b2666f41fd50a407413. *

Because of charset=UTF-8 we are getting the error. I tried to remove that
by setting Content-Type header as *multipart/form-data. *But in that case
MIMEBoundary is not getting added. And also I tried by removing the
Content-Type but unable to remove the Content-Type header.

How to remove charset from header?

Thanks,

On Tue, Dec 8, 2015 at 2:54 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi All,
>
> I was able to post a photo to a page using photoUrl parameter. But when
> I'm trying to upload a image with multipart/form-data I'm getting same
> error.
> {"error":{"message":"(#324) Requires upload file","type":"OAuthException",
> "code":324,"fbtrace_id":"BgISg8XM9PN"}}
>
> Can someone help to figure out wWhat is the issue here?
>
> Thanks
>
> On Tue, Dec 8, 2015 at 10:37 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi,
>>
>> I'm trying to post a photo to a FB page via the facebook connector using
>> ESB 4.9.0. I added the proxy in[1]
>> I'm sending following request through the postman rest client
>>
>>> POST /services/multipart?pageId=562960547187253 HTTP/1.1
>>> Host: 10.100.7.26:8280
>>> Action: urn:addPhotoToPage
>>> Cache-Control: no-cache
>>> Postman-Token: b24c8c4d-8823-37a3-9f7e-0b7242dd2c1c
>>> Content-Type: multipart/form-data;
>>> boundary=WebKitFormBoundary7MA4YWxkTrZu0gW
>>> WebKitFormBoundary7MA4YWxkTrZu0gW
>>> Content-Disposition: form-data; name="source"; filename="images.jpg"
>>> Content-Type: image/jpeg
>>>
>>> WebKitFormBoundary7MA4YWxkTrZu0gW
>>> Content-Disposition: form-data; name="access_token"
>>>
>>> CAANXsShua0kBANHccTVW8peal7dn8kBSZApjm2OWsoYNfyix5WmUZAJxR6Wdi7OB49aKZBCmWpVlzQi1IcF04kulGzseMQEFV0JFCMO7CEOV2dRBfoZCc2icOCZAEoWSFwv4kR1EZBZBrYEy61BR1wzf7Iy5kmizhKV8pc9irjVrkFbWZA8noKZBWDKYdjpaBstUZA0o2aE1n30NnT4YN9vk1f
>>> WebKitFormBoundary7MA4YWxkTrZu0gW
>>
>>
>> But I'm always getting the below exception
>>
>>> {"error":{"message":"(#324) Requires upload
>>> file","type":"OAuthException","code":324,"fbtrace_id":"BgISg8XM9PN"}}
>>
>>
>> Am I missing something here? I tried with url parameter as well. But I'm
>> getting same error with that as well.
>>
>> [1] -
>> https://github.com/wso2/esb-connectors/blob/master/facebook/facebook-connector/facebook-connector-1.0.0/org.wso2.carbon.connector/src/test/resources/artifacts/ESB/config/proxies/facebook/multipart.xml
>>
>> Thanks
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
<dev-requ...@wso2.org>
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Kathees Rajendram

2015-09-24 Thread Keerthika Mahendralingam
Congratulations Kathees :)

On Thu, Sep 24, 2015 at 9:31 PM, Malaka Silva <mal...@wso2.com> wrote:

> Hi Devs,
>
> Its my pleasure to welcome Kathees Rajendram as a WSO2 Committer.
>
> Kathees has been a key member of the Platform Extensions Team (Earlier
> Connector Team) contributing immensely to many aspects ESB Connectors, IS
> Connectors and ESB product development ever since he joined us. In
> recognition of his contributions, ownership shown towards the
> tasks/responsibilities assigned to him, and dedication.
>
> Kathees, welcome aboard and keep up the good work .. !
>
> 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/
> <http://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-requ...@wso2.org>
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Testing issues with BETA and RC2

2015-09-04 Thread Keerthika Mahendralingam
reamHandler} -  at
>>> org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:133)
>>>
>>> [2015-09-04 15:12:27,934]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  at
>>> org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:98)
>>>
>>> [2015-09-04 15:12:27,934]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  at
>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72)
>>>
>>> [2015-09-04 15:12:27,934]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  at
>>> org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:154)
>>>
>>> [2015-09-04 15:12:27,934]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  at
>>> org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:184)
>>>
>>> [2015-09-04 15:12:27,934]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  at
>>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:267)
>>>
>>> [2015-09-04 15:12:27,934]  INFO
>>> {org.w

Re: [Dev] RelayUtils Error while building Passthrough stream in ESB_RC1 pack

2015-08-27 Thread Keerthika Mahendralingam
Hi Prabath,
Please find the artifacts to reproduce the issue:

*Template:*

?xml version=1.0 encoding=UTF-8?
template name=getCurrentWeatherForSeveralCitiesWithinCycle xmlns=
http://ws.apache.org/ns/synapse;
!-- Required parameters --
parameter name=lat description=latitude/
parameter name=lon description=longitude /
!-- Optional parameters --
parameter name=cnt description=Expected number of cities ('cnt')
around point  /
parameter name=lang description=language /
parameter name=cluster description=Use server clustering of points.
Possible values ​​are [yes, no]/
parameter name=callback description= Javascript functionName/

sequence
property name=uri.var.apiParameters value=/
property name=uri.var.lat expression=$func:lat/
property name=uri.var.lon expression=$func:lon/
property name=uri.var.cnt expression=$func:cnt/
property name=uri.var.lang expression=$func:lang/
property name=uri.var.cluster expression=$func:cluster/
property name=uri.var.callback expression=$func:callback/

filter xpath=(not(get-property('uri.var.lang') = '' or
(not(string(get-property('uri.var.lang'))
then
property name=uri.var.apiParameters

expression=fn:concat(get-property('uri.var.apiParameters'),'amp;lang=',get-property('uri.var.lang'))/
/then
/filter
filter xpath=(not(get-property('uri.var.cluster') = '' or
(not(string(get-property('uri.var.cluster'))
then
property name=uri.var.apiParameters

expression=fn:concat(get-property('uri.var.apiParameters'),'amp;cluster=',get-property('uri.var.cluster'))/
/then
/filter
filter xpath=(not(get-property('uri.var.cnt') = '' or
(not(string(get-property('uri.var.cnt'))
then
property name=uri.var.apiParameters

expression=fn:concat(get-property('uri.var.apiParameters'),'amp;cnt=',get-property('uri.var.cnt'))/
/then
/filter
filter xpath=(not(get-property('uri.var.callback') = '' or
(not(string(get-property('uri.var.callback'))
then
property name=uri.var.apiParameters

expression=fn:concat(get-property('uri.var.apiParameters'),'amp;callback=',get-property('uri.var.callback'))/
/then
/filter
call
endpoint
http method=get
  uri-template=
http://api.openweathermap.org/data/2.5/find?lat={uri.var.lat}amp;lon={uri.var.lon}{+uri.var.apiParameters}
/
/endpoint
/call
!-- Remove response custom header information --
header name=x-li-format scope=transport action=remove /
header name=X-LI-UUID scope=transport action=remove /
header name=X-Li-Fabric scope=transport action=remove /
header name=x-li-request-id scope=transport action=remove /
header name=X-Li-Pop scope=transport action=remove /
header name=Set-Cookie scope=transport action=remove /

/sequence
/template

*Proxy:*
?xml version=1.0 encoding=UTF-8?
proxy xmlns=http://ws.apache.org/ns/synapse;
   name=testProxy
   transports=https,http
   statistics=disable
   trace=disable
   startOnLoad=true
   target
  inSequence
 property name=apiUrl expression=//apiUrl/text()/
 property name=apiVersion expression=//apiVersion/text()/
 property name=lon expression=//lon/text()/
 property name=lat expression=//lat/text()/
 property name=callback expression=//callback/text()/
 call-template
target=getCurrentWeatherForSeveralCitiesWithinCycle
with-param name=callback value={$ctx:callback}/
with-param name=apiUrl value={$ctx:apiUrl}/
with-param name=apiVersion value={$ctx:apiVersion}/
with-param name=lat value={$ctx:lat}/
with-param name=lon value={$ctx:lon}/
 /call-template
 respond/
  /inSequence
   /target
   description/
/proxy

*Sample request:*
{
  lat:35,
  lon:139,
  cnt:10,
  lang:en,
  cluster:yes,
  callback:test
}

Thanks,

On Wed, Aug 26, 2015 at 6:06 PM, Prabath Ariyarathna prabat...@wso2.com
wrote:

 Hi Keerthika.

 Could please provide artifacts to reproduce this issue?


 Thanks.

 On Wed, Aug 26, 2015 at 5:23 PM, Keerthika Mahendralingam 
 keerth...@wso2.com wrote:

 Hi All,
 When we receive invalid json format response with the content-type
 application/json header we are getting following builder formatting error
 in ESB-RC1 pack but it works with ESB-Beta-Snapshot. Is this expected
 behaviour? If so, how to resolve this?

 [2015-08-26 17:15:15,044] DEBUG - wire  POST /services/facebook
 HTTP/1.1[\r][\n]

 [2015-08-26 17:15:15,045] DEBUG - wire  Host: esb.wso2.com:8280
 [\r][\n]

 [2015-08-26 17:15:15,045] DEBUG - wire  Connection: keep-alive[\r][\n]

 [2015-08-26 17:15:15,045] DEBUG - wire  Content-Length: 292[\r][\n]

 [2015-08-26

Re: [Dev] RelayUtils Error while building Passthrough stream in ESB_RC1 pack

2015-08-27 Thread Keerthika Mahendralingam
Hi Prabath,
Sorry i changed the jsonStreamBuilder as jsonBuilder thats why i got the
error for the above scenario. Please find the correct artifacts to
reproduce the issue:

*Template:*
template name=deletePageMilestone xmlns=http://ws.apache.org/ns/synapse

parameter name=milestoneId description=The id of the milestone
which needs to be deleted/
parameter name=accessToken/
sequence
property name=uri.var.milestoneId
expression=$func:milestoneId/
property name=uri.var.accessToken
expression=$func:accessToken/
call
endpoint
http method=delete
  uri-template=
https://graph.facebook.com/{uri.var.milestoneId}?access_token={uri.var.accessToken}
/
/endpoint
/call
/sequence
/template

*Proxy:*
?xml version=1.0 encoding=UTF-8?
proxy xmlns=http://ws.apache.org/ns/synapse;
   name=testProxy
   transports=https,http
   statistics=disable
   trace=disable
   startOnLoad=true
   target
  inSequence
 property name=milestoneId expression=//milestoneId/text()/
 property name=accessToken expression=//accessToken/text()/
 call-template target=deletePageMilestone
with-param name=milestoneId value={$ctx:milestoneId}/
with-param name=accessToken value={$ctx:accessToken}/
 /call-template
 respond/
  /inSequence
   /target
   description/
/proxy

Sample Request:
 {
accessToken:CAACEdEose0cBAKiEOLu78rUk36Isi7fzFgZALSQ4NmsbZCVSrUgGg3UXpOmCZCvAHgbRw2rYgtwPJp1rbXK7xBN610j4KCULHRgBiyVZBti7tlAZBBysK7pC9I8igZAAwW8oJrgk0IsYItRp74FkoDWgaxM5bXgaDDu90pNOtZAHpaTEdZBNa3AqIrP2mEZCTvl4nfxYZBmbbJgwZDZD,
milestoneId:109934502690046
}

On Wed, Aug 26, 2015 at 7:17 PM, Prabath Ariyarathna prabat...@wso2.com
wrote:

 Hi Keerthika

 I have tried several time with given configurations, but I didn't get
 exception you mentioned.
 Could you please recheck you have configured any custom builder of
 formatter?


 Thanks.

 On Wed, Aug 26, 2015 at 6:31 PM, Keerthika Mahendralingam 
 keerth...@wso2.com wrote:

 Hi Prabath,
 Please find the artifacts to reproduce the issue:

 *Template:*

 ?xml version=1.0 encoding=UTF-8?
 template name=getCurrentWeatherForSeveralCitiesWithinCycle xmlns=
 http://ws.apache.org/ns/synapse;
 !-- Required parameters --
 parameter name=lat description=latitude/
 parameter name=lon description=longitude /
 !-- Optional parameters --
 parameter name=cnt description=Expected number of cities ('cnt')
 around point  /
 parameter name=lang description=language /
 parameter name=cluster description=Use server clustering of
 points. Possible values ​​are [yes, no]/
 parameter name=callback description= Javascript functionName/

 sequence
 property name=uri.var.apiParameters value=/
 property name=uri.var.lat expression=$func:lat/
 property name=uri.var.lon expression=$func:lon/
 property name=uri.var.cnt expression=$func:cnt/
 property name=uri.var.lang expression=$func:lang/
 property name=uri.var.cluster expression=$func:cluster/
 property name=uri.var.callback expression=$func:callback/

 filter xpath=(not(get-property('uri.var.lang') = '' or
 (not(string(get-property('uri.var.lang'))
 then
 property name=uri.var.apiParameters

 expression=fn:concat(get-property('uri.var.apiParameters'),'amp;lang=',get-property('uri.var.lang'))/
 /then
 /filter
 filter xpath=(not(get-property('uri.var.cluster') = '' or
 (not(string(get-property('uri.var.cluster'))
 then
 property name=uri.var.apiParameters

 expression=fn:concat(get-property('uri.var.apiParameters'),'amp;cluster=',get-property('uri.var.cluster'))/
 /then
 /filter
 filter xpath=(not(get-property('uri.var.cnt') = '' or
 (not(string(get-property('uri.var.cnt'))
 then
 property name=uri.var.apiParameters

 expression=fn:concat(get-property('uri.var.apiParameters'),'amp;cnt=',get-property('uri.var.cnt'))/
 /then
 /filter
 filter xpath=(not(get-property('uri.var.callback') = '' or
 (not(string(get-property('uri.var.callback'))
 then
 property name=uri.var.apiParameters

 expression=fn:concat(get-property('uri.var.apiParameters'),'amp;callback=',get-property('uri.var.callback'))/
 /then
 /filter
 call
 endpoint
 http method=get
   uri-template=
 http://api.openweathermap.org/data/2.5/find?lat={uri.var.lat}amp;lon={uri.var.lon}{+uri.var.apiParameters}
 http://api.openweathermap.org/data/2.5/find?lat=%7Buri.var.lat%7Damp;lon=%7Buri.var.lon%7D%7B+uri.var.apiParameters%7D
 /
 /endpoint
 /call
 !-- Remove response custom header information --
 header name=x-li-format scope=transport

[Dev] RelayUtils Error while building Passthrough stream in ESB_RC1 pack

2015-08-26 Thread Keerthika Mahendralingam
,col]:[1,1]

Message: Not in an object

at
org.apache.synapse.commons.staxon.core.base.AbstractXMLStreamReader.hasNext(AbstractXMLStreamReader.java:449)

at
org.apache.synapse.commons.staxon.core.base.AbstractXMLStreamReader.next(AbstractXMLStreamReader.java:456)

at
javax.xml.stream.util.StreamReaderDelegate.next(StreamReaderDelegate.java:88)

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

[2015-08-26 17:15:18,068] ERROR - TemplateMediator Error while building
message

org.apache.axis2.AxisFault: Error while building Passthrough stream

at
org.apache.synapse.transport.passthru.util.RelayUtils.handleException(RelayUtils.java:283)

at
org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:142)

at
org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:98)

at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72)

at
org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:154)

at
org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:184)

at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:267)

at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:679)

at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:244)

at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:525)

at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)

at
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)

at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)

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

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

at java.lang.Thread.run(Thread.java:722)

Caused by: org.apache.axiom.om.OMException:
javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]

Message: Not in an object

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.commons.json.JsonUtil.toXml(JsonUtil.java:254)

at
org.apache.synapse.commons.json.JsonBuilder.processDocument(JsonBuilder.java:35)

at
org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:138)

at
org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:133)

... 15 more

Caused by: javax.xml.stream.XMLStreamException: ParseError at
[row,col]:[1,1]

Message: Not in an object

at
org.apache.synapse.commons.staxon.core.base.AbstractXMLStreamReader.hasNext(AbstractXMLStreamReader.java:449)

at
org.apache.synapse.commons.staxon.core.base.AbstractXMLStreamReader.next(AbstractXMLStreamReader.java:456)

at
javax.xml.stream.util.StreamReaderDelegate.next(StreamReaderDelegate.java:88)

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

[2015-08-26 17:15:18,071]  INFO - LogMediator To:
http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: ,
MessageID: urn:uuid:6617ed27-8633-41bb-bc42-0e89ee776b9e, Direction:
request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 0,
ERROR_MESSAGE = Error while building message, Envelope: ?xml version='1.0'
encoding='utf-8'?soapenv:Envelope xmlns:soapenv=
http://schemas.xmlsoap.org/soap/envelope/
soapenv:Body//soapenv:Envelope

-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [PR] Instagram Connector Changes

2015-08-14 Thread Keerthika Mahendralingam
Hi Malaka,

Please find the pull request for $subject [1]. Connector tested with
ESB-Beta.

[1]. https://github.com/wso2/esb-connectors/pull/267

Thanks,
-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [PR] Salesbinder Connector Changes

2015-08-12 Thread Keerthika Mahendralingam
Hi Malaka,
Please find the pull request for Salesbinder connector changes. It is fully
working with 4.9.0-Beta.

https://github.com/wso2/esb-connectors/pull/263

Thanks,
-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PR] Changes for Quickbooks Connector

2015-08-10 Thread Keerthika Mahendralingam
Yes Malaka.

On Mon, Aug 10, 2015 at 10:13 PM, Malaka Silva mal...@wso2.com wrote:

 Thx Keerthika,

 Can we say quick books connector is fully functional with esb 4.9.0 Beta?

 On Mon, Aug 10, 2015 at 5:41 PM, Keerthika Mahendralingam 
 keerth...@wso2.com wrote:

 Hi Malaka,
 Please find the pull request for $subject below:

 [1]. https://github.com/wso2/esb-connectors/pull/260

 Thanks,
 --
 dev-requ...@wso2.org
 Keerthika Mahendralingam
 Associate Software Engineer
 Mobile :+94 (0) 776 121144
 keerth...@wso2.com
 WSO2, Inc.
 lean . enterprise . middleware




 --

 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/
 http://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-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [PR] Changes for Quickbooks Connector

2015-08-10 Thread Keerthika Mahendralingam
Hi Malaka,
Please find the pull request for $subject below:

[1]. https://github.com/wso2/esb-connectors/pull/260

Thanks,
-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pull request for Payloadfactory Improvement

2015-07-20 Thread Keerthika Mahendralingam
Hi Malaka,
Please find the pull request[1] for integration test cases for
payloadfactory improvement.

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


Thanks,

On Fri, Jul 17, 2015 at 11:14 AM, Keerthika Mahendralingam 
keerth...@wso2.com wrote:

 Hi Malaka,
 I have made some changes in the pull request. Please check now.

 https://github.com/wso2/wso2-synapse/pull/261

 Thanks,

 On Thu, Jul 16, 2015 at 8:35 PM, Malaka Silva mal...@wso2.com wrote:

 Added some comments. Please check.

 On Thu, Jul 16, 2015 at 5:19 PM, Keerthika Mahendralingam 
 keerth...@wso2.com wrote:

 Hi Malaka,
 Please find the pull request for $subject [1].

 The pull request includes the changes for payloadfactory mediator to
 provide the facility to provide the expressions inline rather than via
 arguments. And it has the backward compatibility also.


 [1]. https://github.com/wso2/wso2-synapse/pull/261

 Thanks,
 --
 dev-requ...@wso2.org
 Keerthika Mahendralingam
 Associate Software Engineer
 Mobile :+94 (0) 776 121144
 keerth...@wso2.com
 WSO2, Inc.
 lean . enterprise . middleware




 --

 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/
 http://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-requ...@wso2.org
 Keerthika Mahendralingam
 Associate Software Engineer
 Mobile :+94 (0) 776 121144
 keerth...@wso2.com
 WSO2, Inc.
 lean . enterprise . middleware




-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Pull request for Payloadfactory Improvement

2015-07-16 Thread Keerthika Mahendralingam
Hi Malaka,
Please find the pull request for $subject [1].

The pull request includes the changes for payloadfactory mediator to
provide the facility to provide the expressions inline rather than via
arguments. And it has the backward compatibility also.


[1]. https://github.com/wso2/wso2-synapse/pull/261

Thanks,
-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pull request for Payloadfactory Improvement

2015-07-16 Thread Keerthika Mahendralingam
Hi Malaka,
I have made some changes in the pull request. Please check now.

https://github.com/wso2/wso2-synapse/pull/261

Thanks,

On Thu, Jul 16, 2015 at 8:35 PM, Malaka Silva mal...@wso2.com wrote:

 Added some comments. Please check.

 On Thu, Jul 16, 2015 at 5:19 PM, Keerthika Mahendralingam 
 keerth...@wso2.com wrote:

 Hi Malaka,
 Please find the pull request for $subject [1].

 The pull request includes the changes for payloadfactory mediator to
 provide the facility to provide the expressions inline rather than via
 arguments. And it has the backward compatibility also.


 [1]. https://github.com/wso2/wso2-synapse/pull/261

 Thanks,
 --
 dev-requ...@wso2.org
 Keerthika Mahendralingam
 Associate Software Engineer
 Mobile :+94 (0) 776 121144
 keerth...@wso2.com
 WSO2, Inc.
 lean . enterprise . middleware




 --

 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/
 http://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-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB][Twitter_Connector] no dependency information available Error

2015-07-03 Thread Keerthika Mahendralingam
Thank you Malaka.

On Fri, Jul 3, 2015 at 11:42 AM, Malaka Silva mal...@wso2.com wrote:

 Merged

 On Fri, Jul 3, 2015 at 11:24 AM, Keerthika Mahendralingam 
 keerth...@wso2.com wrote:

 Hi Rajjaz,
 You need to build integration base before build any other connector. You
 can find the integration base at [1].

 @Malaka,
 Can we merge the pull request [1].

 [1]. https://github.com/wso2/esb-connectors/pull/109

 Thanks,

 On Fri, Jul 3, 2015 at 11:17 AM, Rajjaz Mohammed raj...@wso2.com wrote:

 Hi All,
 When i try to build a Twitter Connector I’m getting the following error
 message with Build Failure. is there any Suggestions to Correct it?

 
 
 [WARNING] The POM for org.eclipse:org.sat4j.core:jar:2.1.0.v20090520 is
 invalid, transitive dependencies (if any) will not be available, enable
 debug logging for more details
 [WARNING] The POM for org.eclipse:org.sat4j.pb:jar:2.1.0.v20090520 is
 invalid, transitive dependencies (if any) will not be available, enable
 debug logging for more details
 [WARNING] The POM for org.eclipse:com.ibm.icu:jar:4.0.1.v20090415 is
 invalid, transitive dependencies (if any) will not be available, enable
 debug logging for more details
 [WARNING] The POM for
 org.wso2.esb.integration:integration-base:jar:1.0.1 is missing, no
 dependency information available
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 3.721s
 [INFO] Finished at: Fri Jul 03 11:13:07 IST 2015
 [INFO] Final Memory: 34M/574M
 [INFO]
 
 [ERROR] Failed to execute goal on project
 org.wso2.carbon.connector.twitter: Could not resolve dependencies for
 project
 org.wso2.carbon.connector:org.wso2.carbon.connector.twitter:jar:1.0.0:
 Failure to find org.wso2.esb.integration:integration-base:jar:1.0.1 in
 http://twitter4j.org/maven2 was cached in the local repository,
 resolution will not be reattempted until the update interval of
 twitter4j.org has elapsed or updates are forced - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException



 --
 Thank you
 Best Regards

 Rajjaz HM
 Associate Software Engineer
 WSO2 Inc. http://wso2.com/
 lean.enterprise.middleware
 Mobile : +94752833834
 Email  :raj...@wso2.com

 LinkedIn https://lk.linkedin.com/in/hmohammedrajjaz
 Blogger http://wso2experience.blogspot.com/
 WSO2 Profile http://wso2.com/about/team/mohammer_rajjaz/

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




 --
 dev-requ...@wso2.org
 Keerthika Mahendralingam
 Associate Software Engineer
 Mobile :+94 (0) 776 121144
 keerth...@wso2.com
 WSO2, Inc.
 lean . enterprise . middleware




 --

 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/
 http://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-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB][Twitter_Connector] no dependency information available Error

2015-07-03 Thread Keerthika Mahendralingam
For Twitter connector, there are no test cases available. You can check the
connector manually.

On Fri, Jul 3, 2015 at 12:12 PM, Rajjaz Mohammed raj...@wso2.com wrote:

 my Earlier repo is working fine.  only i made the mistake in my pom file
 as version as 1.0.0 when i build the integration base then i changed to
 1.0.1 then its work fine. but is there any test cases to check?

 On Fri, Jul 3, 2015 at 12:04 PM, Rajjaz Mohammed raj...@wso2.com wrote:

 tanks keerthika,
 Finally i found the error was in my integration base pom file. mistakenly
 version changes to 1.0.0 but Connector expecting 1.0.1. that was the reason
 for error. now build Success

 On Fri, Jul 3, 2015 at 11:42 AM, Malaka Silva mal...@wso2.com wrote:

 Merged

 On Fri, Jul 3, 2015 at 11:24 AM, Keerthika Mahendralingam 
 keerth...@wso2.com wrote:

 Hi Rajjaz,
 You need to build integration base before build any other connector.
 You can find the integration base at [1].

 @Malaka,
 Can we merge the pull request [1].

 [1]. https://github.com/wso2/esb-connectors/pull/109

 Thanks,

 On Fri, Jul 3, 2015 at 11:17 AM, Rajjaz Mohammed raj...@wso2.com
 wrote:

 Hi All,
 When i try to build a Twitter Connector I’m getting the following
 error message with Build Failure. is there any Suggestions to Correct it?

 
 
 [WARNING] The POM for org.eclipse:org.sat4j.core:jar:2.1.0.v20090520
 is invalid, transitive dependencies (if any) will not be available, enable
 debug logging for more details
 [WARNING] The POM for org.eclipse:org.sat4j.pb:jar:2.1.0.v20090520 is
 invalid, transitive dependencies (if any) will not be available, enable
 debug logging for more details
 [WARNING] The POM for org.eclipse:com.ibm.icu:jar:4.0.1.v20090415 is
 invalid, transitive dependencies (if any) will not be available, enable
 debug logging for more details
 [WARNING] The POM for
 org.wso2.esb.integration:integration-base:jar:1.0.1 is missing, no
 dependency information available
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 3.721s
 [INFO] Finished at: Fri Jul 03 11:13:07 IST 2015
 [INFO] Final Memory: 34M/574M
 [INFO]
 
 [ERROR] Failed to execute goal on project
 org.wso2.carbon.connector.twitter: Could not resolve dependencies for
 project
 org.wso2.carbon.connector:org.wso2.carbon.connector.twitter:jar:1.0.0:
 Failure to find org.wso2.esb.integration:integration-base:jar:1.0.1 in
 http://twitter4j.org/maven2 was cached in the local repository,
 resolution will not be reattempted until the update interval of
 twitter4j.org has elapsed or updates are forced - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with
 the -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException



 --
 Thank you
 Best Regards

 Rajjaz HM
 Associate Software Engineer
 WSO2 Inc. http://wso2.com/
 lean.enterprise.middleware
 Mobile : +94752833834
 Email  :raj...@wso2.com

 LinkedIn https://lk.linkedin.com/in/hmohammedrajjaz
 Blogger http://wso2experience.blogspot.com/
 WSO2 Profile http://wso2.com/about/team/mohammer_rajjaz/

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




 --
 dev-requ...@wso2.org
 Keerthika Mahendralingam
 Associate Software Engineer
 Mobile :+94 (0) 776 121144
 keerth...@wso2.com
 WSO2, Inc.
 lean . enterprise . middleware




 --

 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/
 http://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.




 --
 Thank you
 Best Regards

 Rajjaz HM
 Associate Software Engineer
 WSO2 Inc. http://wso2.com/
 lean.enterprise.middleware
 Mobile : +94752833834
 Email  :raj...@wso2.com

 LinkedIn https://lk.linkedin.com/in/hmohammedrajjaz
 Blogger http://wso2experience.blogspot.com/
 WSO2 Profile http://wso2.com/about/team/mohammer_rajjaz/




 --
 Thank you
 Best Regards

 Rajjaz HM
 Associate Software Engineer
 WSO2 Inc. http://wso2.com/
 lean.enterprise.middleware
 Mobile : +94752833834
 Email  :raj...@wso2.com

 LinkedIn https://lk.linkedin.com/in/hmohammedrajjaz
 Blogger http

Re: [Dev] [ESB][Twitter_Connector] no dependency information available Error

2015-07-02 Thread Keerthika Mahendralingam
Hi Rajjaz,
You need to build integration base before build any other connector. You
can find the integration base at [1].

@Malaka,
Can we merge the pull request [1].

[1]. https://github.com/wso2/esb-connectors/pull/109

Thanks,

On Fri, Jul 3, 2015 at 11:17 AM, Rajjaz Mohammed raj...@wso2.com wrote:

 Hi All,
 When i try to build a Twitter Connector I’m getting the following error
 message with Build Failure. is there any Suggestions to Correct it?

 
 
 [WARNING] The POM for org.eclipse:org.sat4j.core:jar:2.1.0.v20090520 is
 invalid, transitive dependencies (if any) will not be available, enable
 debug logging for more details
 [WARNING] The POM for org.eclipse:org.sat4j.pb:jar:2.1.0.v20090520 is
 invalid, transitive dependencies (if any) will not be available, enable
 debug logging for more details
 [WARNING] The POM for org.eclipse:com.ibm.icu:jar:4.0.1.v20090415 is
 invalid, transitive dependencies (if any) will not be available, enable
 debug logging for more details
 [WARNING] The POM for org.wso2.esb.integration:integration-base:jar:1.0.1
 is missing, no dependency information available
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 3.721s
 [INFO] Finished at: Fri Jul 03 11:13:07 IST 2015
 [INFO] Final Memory: 34M/574M
 [INFO]
 
 [ERROR] Failed to execute goal on project
 org.wso2.carbon.connector.twitter: Could not resolve dependencies for
 project
 org.wso2.carbon.connector:org.wso2.carbon.connector.twitter:jar:1.0.0:
 Failure to find org.wso2.esb.integration:integration-base:jar:1.0.1 in
 http://twitter4j.org/maven2 was cached in the local repository,
 resolution will not be reattempted until the update interval of
 twitter4j.org has elapsed or updates are forced - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException



 --
 Thank you
 Best Regards

 Rajjaz HM
 Associate Software Engineer
 WSO2 Inc. http://wso2.com/
 lean.enterprise.middleware
 Mobile : +94752833834
 Email  :raj...@wso2.com

 LinkedIn https://lk.linkedin.com/in/hmohammedrajjaz
 Blogger http://wso2experience.blogspot.com/
 WSO2 Profile http://wso2.com/about/team/mohammer_rajjaz/

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




-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pull request for Mailchimp Connector Changes

2015-06-28 Thread Keerthika Mahendralingam
Hi Malaka,
FreeAgent connector changes also included in the above pull request.

Thanks,

On Sun, Jun 28, 2015 at 1:25 PM, Keerthika Mahendralingam 
keerth...@wso2.com wrote:

 Hi Malaka,

 Please find the pull request for Mailchimp connector README change . It
 works fine with ESB-BETA without any configuration changes.

 https://github.com/wso2/esb-connectors/pull/212

 Thanks,
 --
 dev-requ...@wso2.org
 Keerthika Mahendralingam
 Associate Software Engineer
 Mobile :+94 (0) 776 121144
 keerth...@wso2.com
 WSO2, Inc.
 lean . enterprise . middleware




-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Pull request for Mailchimp Connector Changes

2015-06-28 Thread Keerthika Mahendralingam
Hi Malaka,

Please find the pull request for Mailchimp connector README change . It
works fine with ESB-BETA without any configuration changes.

https://github.com/wso2/esb-connectors/pull/212

Thanks,
-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Pull Request for Xero Connector Changes

2015-06-21 Thread Keerthika Mahendralingam
Hi Malaka,
Please find the pull request for Xero connector changes:

https://github.com/wso2/esb-connectors/pull/179

Thanks,
-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Pull Request for Stripe Connector Changes

2015-06-18 Thread Keerthika Mahendralingam
Hi Malaka,
Please find the pull request for Stripe connector changes.

https://github.com/wso2/esb-connectors/pull/166

Thanks,
-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Pull Request for Quickbooks Connector Changes

2015-06-18 Thread Keerthika Mahendralingam
Hi Malaka,
Please find the pull request for Quickbooks connector pom changes.

https://github.com/wso2/esb-connectors/pull/163

Please note that V1 and V2 is merged.

Thanks,
-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pull Request for Quickbooks Connector Changes

2015-06-18 Thread Keerthika Mahendralingam
Zohocrm connector changes also included in the same pull request. And v1
and v2 are merged.

On Thu, Jun 18, 2015 at 12:57 PM, Keerthika Mahendralingam 
keerth...@wso2.com wrote:

 Hi Malaka,
 Please find the pull request for Quickbooks connector pom changes.

 https://github.com/wso2/esb-connectors/pull/163

 Please note that V1 and V2 is merged.

 Thanks,
 --
 dev-requ...@wso2.org
 Keerthika Mahendralingam
 Associate Software Engineer
 Mobile :+94 (0) 776 121144
 keerth...@wso2.com
 WSO2, Inc.
 lean . enterprise . middleware




-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Pull Request for Clevertimcrm Connector Changes

2015-06-15 Thread Keerthika Mahendralingam
Hi Malaka,

Please find the pull request for Clevertimcrm connector changes and icons
for file,activecompaign, amazons3, amazonsns, flicker connectors.

https://github.com/wso2/esb-connectors/pull/137

Thanks,

-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pull Request for Clevertimcrm Connector Changes

2015-06-15 Thread Keerthika Mahendralingam
+Malaka

On Mon, Jun 15, 2015 at 5:53 PM, Keerthika Mahendralingam 
keerth...@wso2.com wrote:

 Hi Malaka,

 Please find the pull request for Clevertimcrm connector changes and icons
 for file,activecompaign, amazons3, amazonsns, flicker connectors.

 https://github.com/wso2/esb-connectors/pull/137

 Thanks,

 --
 dev-requ...@wso2.org
 Keerthika Mahendralingam
 Associate Software Engineer
 Mobile :+94 (0) 776 121144
 keerth...@wso2.com
 WSO2, Inc.
 lean . enterprise . middleware




-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Google Spreadsheet connector issue

2015-06-02 Thread Keerthika Mahendralingam
Hi Malaka,
Yes. Now we have 2.0.0 version in the connector store.


Thanks,

On Wed, Jun 3, 2015 at 9:28 AM, Malaka Silva mal...@wso2.com wrote:

 Hi All,

 Do we have the latest connector that supports OAUTH 2.0 in store?

 On Tue, Jun 2, 2015 at 10:02 AM, Naasheer Ali naashe...@wso2.com wrote:

 Hi Amal,

 +1 for keerthika,
 Use oAuth2init method instead of init.

 Regards,
 --

 *Naasheer Ali* | Associate Software Engineer

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: naashe...@wso2.com

 On Tue, Jun 2, 2015 at 8:40 AM, Vanjikumaran Sivajothy va...@wso2.com
 wrote:



 On Tuesday, June 2, 2015, Madhawa Gunasekara madha...@wso2.com wrote:

 Hi Amal,

 According to the log trace, the issue is occurring at
 com.google.gdata.client package, which is outdated one (Older Google Data
 (GData) API) [1]. Google recommends to migrate to their new Google APIs
 Client Library for Java [2]. That might be the issue. because according to
 the release notes [1] supports OAuth 2.0 as well.


 In that case how does this work for nasheer



 I think, we have to migrate to the new Google APIs Client Library to
 solve this issue

 [1] https://github.com/google/gdata-java-client
 [2] https://github.com/google/google-api-java-client

 Thanks,
 Madhawa

 On Tue, Jun 2, 2015 at 12:17 AM, Keerthika Mahendralingam 
 keerth...@wso2.com wrote:

 Hi Amal,
 I think you have tried with init method. Could you please try
 with oAuth2init method.
 googlespreadsheet.oAuth2init
   oauthConsumerKey{'oauth.consumerKey'}/oauthConsumerKey
   oauthConsumerSecret{'oauth.oauthConsumerSecret'}
 /oauthConsumerSecret
   oauthAccessToken{'oauth.accessToken'}/oauthAccessToken

 oauthAccessTokenSecret{'oauth.accessTokenSecret'}/oauthAccessTokenSecret

 /googlespreadsheet.oAuth2init

 Thanks,

 On Mon, Jun 1, 2015 at 10:09 PM, Naasheer Ali naashe...@wso2.com
 wrote:

 Hi Amal,

 I can not reproduce the issue, GSS connector builds perfectly and
 able to create worksheet as well.


 Regards,
 --

 *Naasheer Ali* | Associate Software Engineer

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: naashe...@wso2.com

 On Mon, Jun 1, 2015 at 7:38 PM, Malaka Silva mal...@wso2.com wrote:

 Connector Team,

 Can anyone of you check this please. Also we should have both
 versions or latest in the store.

 On Mon, Jun 1, 2015 at 5:39 PM, Amal Gunatilake am...@wso2.com
 wrote:

 Hi Nasheer,

 Thank you for the link.
 I built the code and deployed the latest google spreadsheet
 connector (2.0.0). But I still face the same issue.

 I get the following error.

 [2015-06-01 17:34:52,756] ERROR - *GoogleSpreadsheetCreateWorksheet
 Error occured Error authenticating (check service name)*
 com.google.gdata.util.AuthenticationException: Error authenticating
 (check service name)
 at
 com.google.gdata.client.GoogleAuthTokenFactory.getAuthException(GoogleAuthTokenFactory.java:688)
 at
 com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(GoogleAuthTokenFactory.java:560)
 at
 com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials(GoogleAuthTokenFactory.java:397)
 at
 com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:364)
 at
 com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:319)
 at
 com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:303)
 at
 org.wso2.carbon.connector.googlespreadsheet.GoogleSpreadsheetAuthentication.login(GoogleSpreadsheetAuthentication.java:59)
 at
 org.wso2.carbon.connector.googlespreadsheet.GoogleSpreadsheetClientLoader.loadSpreadsheetService(GoogleSpreadsheetClientLoader.java:53)
 at
 org.wso2.carbon.connector.googlespreadsheet.GoogleSpreadsheetGetAllSpreadsheets.connect(GoogleSpreadsheetGetAllSpreadsheets.java:46)
 at
 org.wso2.carbon.connector.core.AbstractConnector.mediate(AbstractConnector.java:32)
 at
 org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:78)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
 at
 org.apache.synapse.mediators.template.TemplateMediator.mediate(TemplateMediator.java:77)
 at
 org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:129)
 at
 org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:78)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
 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.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:166)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411

Re: [Dev] ESB Google Spreadsheet connector issue

2015-06-02 Thread Keerthika Mahendralingam
+1

On Wed, Jun 3, 2015 at 9:45 AM, Naasheer Ali naashe...@wso2.com wrote:

 Hi Keerthika,

 Since we have changed the version of the GSS connector in the store, we
 should change the init method in documentation as well.

 Regards,
 --

 *Naasheer Ali* | Associate Software Engineer

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: naashe...@wso2.com

 On Wed, Jun 3, 2015 at 9:32 AM, Keerthika Mahendralingam 
 keerth...@wso2.com wrote:

 Hi Malaka,
 Yes. Now we have 2.0.0 version in the connector store.


 Thanks,

 On Wed, Jun 3, 2015 at 9:28 AM, Malaka Silva mal...@wso2.com wrote:

 Hi All,

 Do we have the latest connector that supports OAUTH 2.0 in store?

 On Tue, Jun 2, 2015 at 10:02 AM, Naasheer Ali naashe...@wso2.com
 wrote:

 Hi Amal,

 +1 for keerthika,
 Use oAuth2init method instead of init.

 Regards,
 --

 *Naasheer Ali* | Associate Software Engineer

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: naashe...@wso2.com

 On Tue, Jun 2, 2015 at 8:40 AM, Vanjikumaran Sivajothy va...@wso2.com
 wrote:



 On Tuesday, June 2, 2015, Madhawa Gunasekara madha...@wso2.com
 wrote:

 Hi Amal,

 According to the log trace, the issue is occurring at
 com.google.gdata.client package, which is outdated one (Older Google 
 Data
 (GData) API) [1]. Google recommends to migrate to their new Google APIs
 Client Library for Java [2]. That might be the issue. because according 
 to
 the release notes [1] supports OAuth 2.0 as well.


 In that case how does this work for nasheer



 I think, we have to migrate to the new Google APIs Client Library to
 solve this issue

 [1] https://github.com/google/gdata-java-client
 [2] https://github.com/google/google-api-java-client

 Thanks,
 Madhawa

 On Tue, Jun 2, 2015 at 12:17 AM, Keerthika Mahendralingam 
 keerth...@wso2.com wrote:

 Hi Amal,
 I think you have tried with init method. Could you please try
 with oAuth2init method.
 googlespreadsheet.oAuth2init
   oauthConsumerKey{'oauth.consumerKey'}/oauthConsumerKey
   oauthConsumerSecret{'oauth.oauthConsumerSecret'}
 /oauthConsumerSecret
   oauthAccessToken{'oauth.accessToken'}/oauthAccessToken

 oauthAccessTokenSecret{'oauth.accessTokenSecret'}/oauthAccessTokenSecret

 /googlespreadsheet.oAuth2init

 Thanks,

 On Mon, Jun 1, 2015 at 10:09 PM, Naasheer Ali naashe...@wso2.com
 wrote:

 Hi Amal,

 I can not reproduce the issue, GSS connector builds perfectly and
 able to create worksheet as well.


 Regards,
 --

 *Naasheer Ali* | Associate Software Engineer

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: naashe...@wso2.com

 On Mon, Jun 1, 2015 at 7:38 PM, Malaka Silva mal...@wso2.com
 wrote:

 Connector Team,

 Can anyone of you check this please. Also we should have both
 versions or latest in the store.

 On Mon, Jun 1, 2015 at 5:39 PM, Amal Gunatilake am...@wso2.com
 wrote:

 Hi Nasheer,

 Thank you for the link.
 I built the code and deployed the latest google spreadsheet
 connector (2.0.0). But I still face the same issue.

 I get the following error.

 [2015-06-01 17:34:52,756] ERROR - *GoogleSpreadsheetCreateWorksheet
 Error occured Error authenticating (check service name)*
 com.google.gdata.util.AuthenticationException: Error
 authenticating (check service name)
 at
 com.google.gdata.client.GoogleAuthTokenFactory.getAuthException(GoogleAuthTokenFactory.java:688)
 at
 com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(GoogleAuthTokenFactory.java:560)
 at
 com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials(GoogleAuthTokenFactory.java:397)
 at
 com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:364)
 at
 com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:319)
 at
 com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:303)
 at
 org.wso2.carbon.connector.googlespreadsheet.GoogleSpreadsheetAuthentication.login(GoogleSpreadsheetAuthentication.java:59)
 at
 org.wso2.carbon.connector.googlespreadsheet.GoogleSpreadsheetClientLoader.loadSpreadsheetService(GoogleSpreadsheetClientLoader.java:53)
 at
 org.wso2.carbon.connector.googlespreadsheet.GoogleSpreadsheetGetAllSpreadsheets.connect(GoogleSpreadsheetGetAllSpreadsheets.java:46)
 at
 org.wso2.carbon.connector.core.AbstractConnector.mediate(AbstractConnector.java:32)
 at
 org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:78)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
 at
 org.apache.synapse.mediators.template.TemplateMediator.mediate(TemplateMediator.java:77)
 at
 org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:129)
 at
 org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:78)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77

Re: [Dev] ESB Google Spreadsheet connector issue

2015-06-01 Thread Keerthika Mahendralingam
 nature  Save the world for your future. Print this
 email only if it is absolutely necessary.





-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Cannot import some connectors to Developer studio.

2015-05-30 Thread Keerthika Mahendralingam
Hi Viraj,
Wordpress connector is updated with the correct icons in Connector store.
Please check now.


Thanks,

On Thu, May 28, 2015 at 2:40 PM, Keerthika Mahendralingam 
keerth...@wso2.com wrote:

 Will check and let you know.

 On Thu, May 28, 2015 at 2:34 PM, Malaka Silva mal...@wso2.com wrote:

 Connector team,

 Please check this.

 On Thu, May 28, 2015 at 2:32 PM, Viraj Rajaguru vi...@wso2.com wrote:

 Hi connector team,

 Following two connectors cannot be imported to Developer Studio due to
 missing/corrupted icons inside the connector[1]. Can you please have a look
 ?

 1. You tube connector
 2. Wordpress connector

 Thanks,
 Viraj.

 [1] - https://wso2.org/jira/browse/ESBCONNECT-47

 --
 Viraj Rajaguru
 Senior Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile: +94 77 3683068




 ___
 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/
 http://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-requ...@wso2.org
 Keerthika Mahendralingam
 Associate Software Engineer
 Mobile :+94 (0) 776 121144
 keerth...@wso2.com
 WSO2, Inc.
 lean . enterprise . middleware




-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Dinithi De Silva

2015-05-28 Thread Keerthika Mahendralingam
Congratz Dinithi!!


On Thu, May 28, 2015 at 12:14 PM, Inshaf Mahath ins...@wso2.com wrote:

 Congrats Dinithi

 On Thu, May 28, 2015 at 12:02 PM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Congratulations ...!!

 On Thu, May 28, 2015 at 12:00 PM, Pubudu Gunatilaka pubu...@wso2.com
 wrote:

 Congratulations Dinithi !!!

 On Thu, May 28, 2015 at 11:58 AM, Tharindu Dharmarathna 
 tharin...@wso2.com wrote:

 Congratulations Dinithi

 On Thu, May 28, 2015 at 11:54 AM, Tharik Kanaka tha...@wso2.com
 wrote:

 Congratulations Dinithi

 On Thu, May 28, 2015 at 11:51 AM, Indunil Upeksha Rathnayake 
 indu...@wso2.com wrote:

 Hi Dinithi,

 Congratzzz.. :D
 --
 Indunil Upeksha Rathnayake
 Software Engineer | WSO2 Inc
 Emailindu...@wso2.com
 Mobile  +94713695179

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




 --

 *Tharik Kanaka*

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: tha...@wso2.com | Web: www.wso2.com

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




 --

 *Tharindu Dharmarathna*Associate Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94779109091 %2B94779109091*

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




 --

 *Pubudu Gunatilaka*
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 mobile:  +94 77 4078049

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




 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina


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




 --
 Inshaf Mahath
 Associate Software Engineer
 Mobile: +94775907181
 WSO2 Inc.
 Lean . Enterprise . Middleware


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




-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Cannot import some connectors to Developer studio.

2015-05-28 Thread Keerthika Mahendralingam
Will check and let you know.

On Thu, May 28, 2015 at 2:34 PM, Malaka Silva mal...@wso2.com wrote:

 Connector team,

 Please check this.

 On Thu, May 28, 2015 at 2:32 PM, Viraj Rajaguru vi...@wso2.com wrote:

 Hi connector team,

 Following two connectors cannot be imported to Developer Studio due to
 missing/corrupted icons inside the connector[1]. Can you please have a look
 ?

 1. You tube connector
 2. Wordpress connector

 Thanks,
 Viraj.

 [1] - https://wso2.org/jira/browse/ESBCONNECT-47

 --
 Viraj Rajaguru
 Senior Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile: +94 77 3683068




 ___
 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/
 http://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-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Making iterate calls based on response element

2015-04-06 Thread Keerthika Mahendralingam
Hi All,
We have resolved this issue by calling the template itself recursively with
the use of filter mediator and aggregate the responses in the required
format using the enrich mediator as follows:

?xml version=1.0 encoding=UTF-8?
template name=getLeadActivities xmlns=http://ws.apache.org/ns/synapse;
!-- Required parameters --
parameter name=activityTypeIds description=Comma separated list of
activity type ids./
parameter name=nextPageToken description=Used to paginate through
large result sets./
!-- Optional parameters --
parameter name=listId description=The Marketo list id./
parameter name=batchSize description=The number of records to be
returned in a single call./
sequence
property name=uri.var.activityTypeIds
expression=$func:activityTypeIds/
property name=uri.var.listId expression=$func:listId/
property name=uri.var.batchSize expression=$func:batchSize/
property name=uri.var.nextPageToken
expression=$func:nextPageToken/
script language=js
![CDATA[
var activityTypeIds =
mc.getProperty('uri.var.activityTypeIds');
var query=;
var ids=activityTypeIds.split(',');
for(var i = 0; i  ids.length; i++){
query+='activityTypeIds='+ids[i]+'';
}

mc.setProperty('uri.var.activityTypeId', query);
]]
/script
filter xpath=(not(get-property('uri.var.batchSize') = '' or
(not(string(get-property('uri.var.batchSize'))
then
property name=uri.var.apiParameters

expression=fn:concat(get-property('uri.var.apiParameters'),'batchSize=',get-property('uri.var.batchSize'),'amp;')/
/then
/filter
filter xpath=(not(get-property('uri.var.listId') = '' or
(not(string(get-property('uri.var.listId'))
then
property name=uri.var.apiParameters

expression=fn:concat(get-property('uri.var.apiParameters'),'listId=',get-property('uri.var.listId'))/
/then
/filter
call
endpoint
http method=get

uri-template={uri.var.apiUrl}/activities.json?{uri.var.activityTypeId}amp;nextPageToken={uri.var.nextPageToken}amp;{uri.var.apiParameters}/
/endpoint
/call
property name=nextPageToken expression=//nextPageToken/text()
scope=default type=STRING/
property name=moreResult expression=//moreResult/text()
scope=default type=STRING/
enrich
source type=property property=RESULTS/
target type=body action=child/
/enrich
enrich
source type=custom clone=true xpath=//result/
target type=property property=RESULTS/
/enrich
filter xpath=((get-property('moreResult') = 'true' ))
then
header name=Authorization expression=fn:concat('Bearer
',get-property('accessToken'))
scope=transport/
marketo.getLeadActivities
listId{get-property('uri.var.listId')}/listId

activityTypeIds{get-property('uri.var.activityTypeIds')}/activityTypeIds

batchSize{get-property('uri.var.batchSize')}/batchSize

nextPageToken{get-property('nextPageToken')}/nextPageToken
/marketo.getLeadActivities
/then
/filter
payloadFactory media-type=json
format
{
activities:$1
}
/format
args
arg expression=get-property('RESULTS')/
/args
/payloadFactory
/sequence
/template

@Vanji and @Senduran,
Thank you for your suggestions.

On Wed, Apr 1, 2015 at 9:48 AM, Keerthika Mahendralingam keerth...@wso2.com
 wrote:

 Thank you Chanaka and Malaka.

 On Tue, Mar 31, 2015 at 9:06 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Keerthika,

 Yes agree with Chanakaf. Similar is done with Salesforce query and
 querymore. You can follow similar approach.

 [1]
 https://docs.wso2.com/display/ESBCONNECTORS/Salesforce+Connector#SalesforceConnector-Queryingrecords
 [2]
 https://github.com/wso2-dev/esb-connectors/blob/master/salesforce/1.0.0/src/main/resources/salesforce/queryMore.xml



 On Tue, Mar 31, 2015 at 7:58 PM, Chanaka Fernando chana...@wso2.com
 wrote:

 Hi Keerthika,

 This is a custom requirement which is more like a while loop. You need
 to write a class mediator to implement this logic since ESB does not have a
 construct similar to while loop.

 Thanks,
 Chanaka

 On Tue, Mar 31, 2015 at 6:56 PM, Keerthika Mahendralingam 
 keerth...@wso2.com wrote:

 Hi All,

 When we invoke a method in Marketo API we are getting the following
 response:

 {
requestId:a9ae#148add1e53d,
success:true,

  
 nextPageToken:GIYDAOBNGEYS2MBWKQYDAORQGA5DAMBOGAYDAKZQGAYDALBRGA3TQ===,
moreResult:true,
result:[
   {
  id:2,
  leadId:6,
  activityDate:2013-09-26T06

Re: [Dev] [ESB] Making iterate calls based on response element

2015-03-31 Thread Keerthika Mahendralingam
Thank you Chanaka and Malaka.

On Tue, Mar 31, 2015 at 9:06 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Keerthika,

 Yes agree with Chanakaf. Similar is done with Salesforce query and
 querymore. You can follow similar approach.

 [1]
 https://docs.wso2.com/display/ESBCONNECTORS/Salesforce+Connector#SalesforceConnector-Queryingrecords
 [2]
 https://github.com/wso2-dev/esb-connectors/blob/master/salesforce/1.0.0/src/main/resources/salesforce/queryMore.xml



 On Tue, Mar 31, 2015 at 7:58 PM, Chanaka Fernando chana...@wso2.com
 wrote:

 Hi Keerthika,

 This is a custom requirement which is more like a while loop. You need to
 write a class mediator to implement this logic since ESB does not have a
 construct similar to while loop.

 Thanks,
 Chanaka

 On Tue, Mar 31, 2015 at 6:56 PM, Keerthika Mahendralingam 
 keerth...@wso2.com wrote:

 Hi All,

 When we invoke a method in Marketo API we are getting the following
 response:

 {
requestId:a9ae#148add1e53d,
success:true,

  nextPageToken:GIYDAOBNGEYS2MBWKQYDAORQGA5DAMBOGAYDAKZQGAYDALBRGA3TQ===,
moreResult:true,
result:[
   {
  id:2,
  leadId:6,
  activityDate:2013-09-26T06:56:35+,
  activityTypeId:12
   },
   {
  id:3,
  leadId:9,
  activityDate:2013-12-28T00:39:45+,
  activityTypeId:1
   }
]
 }

 If the moreResult attribute is true in the response,  we need to call
 this method until the moreResult attribute returns false. The nextPageToken
 returned from the previous call need to be reused for the next iteration of
 this call. How can we do this?

 --
 dev-requ...@wso2.org
 Keerthika Mahendralingam
 Associate Software Engineer
 Mobile :+94 (0) 776 121144
 keerth...@wso2.com
 WSO2, Inc.
 lean . enterprise . middleware




 --
 --
 Chanaka Fernando
 Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 773337238
 Blog : http://soatutorials.blogspot.com
 LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
 Twitter:https://twitter.com/chanakaudaya
 Wordpress:http://chanakaudaya.wordpress.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/
 http://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-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] Making iterate calls based on response element

2015-03-31 Thread Keerthika Mahendralingam
Hi All,

When we invoke a method in Marketo API we are getting the following
response:

{
   requestId:a9ae#148add1e53d,
   success:true,

 nextPageToken:GIYDAOBNGEYS2MBWKQYDAORQGA5DAMBOGAYDAKZQGAYDALBRGA3TQ===,
   moreResult:true,
   result:[
  {
 id:2,
 leadId:6,
 activityDate:2013-09-26T06:56:35+,
 activityTypeId:12
  },
  {
 id:3,
 leadId:9,
 activityDate:2013-12-28T00:39:45+,
 activityTypeId:1
  }
   ]
}

If the moreResult attribute is true in the response,  we need to call this
method until the moreResult attribute returns false. The nextPageToken
returned from the previous call need to be reused for the next iteration of
this call. How can we do this?

-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Get end point url of Mailman API 3.0

2015-03-23 Thread Keerthika Mahendralingam
Hi Vani,
Please have a look in the following doc.

https://help.ubuntu.com/community/Mailman
https://www.google.com/url?q=https%3A%2F%2Fhelp.ubuntu.com%2Fcommunity%2FMailmansa=Dsntz=1usg=AFQjCNGW_VoSbthKsUfUfn6hn62ShcRUGA

On Mon, Mar 23, 2015 at 2:35 PM, Vanii Thiyagarajah va...@wso2.com wrote:

 Hi Sriashalya!

 In mailman api we have to set the end point url locally.This is the doc
 for Mailman api set up guide
 https://fedorahosted.org/hyperkitty/wiki/DevelopmentSetupGuide.

 Thank you.





 On Mon, Mar 23, 2015 at 2:00 PM, Sriashalya Srivathsan asha...@wso2.com
 wrote:

 Hi Vaani,
 Can you share the end point that you struggled and related stuff.



 Thank you.

 On Mon, Mar 23, 2015 at 12:29 PM, Vanii Thiyagarajah va...@wso2.com
 wrote:

 Hi all,

 I am reviewing the mailman connector3.0 done by wso2 trainees.I couldn't
 set mailman end url in my local machine. Have anyone worked on similar
 thing?

 Thank you.

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




 --
 S.Sriashalya,
 Associate Software Engineer,
 WSO2.



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




-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Malithi Edirisinghe

2015-03-20 Thread Keerthika Mahendralingam
Congratz Malithi!!!

On Fri, Mar 20, 2015 at 5:10 PM, Elilmatha Sivanesan elilma...@wso2.com
wrote:

 Congratz Malithi

 On Fri, Mar 20, 2015 at 5:08 PM, Madusanka Premaratne madusan...@wso2.com
  wrote:

 Congrats Malithi.!!!

 On Fri, Mar 20, 2015 at 5:03 PM, Dinithi De Silva dinit...@wso2.com
 wrote:

 Congratz Malithi...

 On Fri, Mar 20, 2015 at 3:57 PM, Himasha Guruge himas...@wso2.com
 wrote:

 Congrats Malithi!!

 On Fri, Mar 20, 2015 at 3:54 PM, Thanuja Jayasinghe than...@wso2.com
 wrote:

 Congratz Malithi...

 On Fri, Mar 20, 2015 at 3:04 PM, Johann Nallathamby joh...@wso2.com
 wrote:

 Hi All,

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

 Malithi, congratulations and keep up the good work!

 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 http://nallaa.wordpress.com*

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




 --
 *Thanuja Lakmal*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94715979891 +94758009992

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




 --
 Himasha Guruge
 *Software Engineer*
 WS*O2* *Inc.*
 Mobile: +94 777459299
 himas...@wso2.com

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




 --
 *Dinithi De Silva*
 Associate Software Engineer, WSO2 Inc.
 m:+94716667655 | e:dinit...@wso2.com | w: www.wso2.com
 | a: #20, Palm Grove, Colombo 03

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




 --
 *Madusanka Premaratne* | Associate Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 835 70 73| Work: +94 112 145 345
 Email: madusan...@wso2.com | Web: www.wso2.com

 [image: Facebook] https://www.facebook.com/maduzanka [image: Twitter]
 https://twitter.com/rmmpremaratne [image: Google Plus]
 https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub [image:
 Linkedin] http://lk.linkedin.com/in/madusanka/ [image: Instagram]
 http://instagram.com/madusankapremaratne [image: Skype]
 http://@rmmpremaratne


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




 --
 *S.Elilmatha*
 Associate  Software Engineer,

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

 Mobile 0779842221.


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




-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Switch case is not working in the proxy

2015-03-16 Thread Keerthika Mahendralingam
Hi All,
I am using switch mediator in the following proxy. When I invoking the
proxy I am getting the warning: *SwitchCase Provided character sequence
for switch case condition is 'null'. Switch case will not be executed*.
*Proxy:*
?xml version=1.0 encoding=UTF-8?
proxy xmlns=http://ws.apache.org/ns/synapse;
   name=marketo
   transports=https,http
   statistics=disable
   trace=disable
   startOnLoad=true
   target
  inSequence
  property name=marketoInstanceURL
expression=json-eval($.marketoInstanceURL)/
  property name=clientId expression=json-eval($.clientId)/
  property name=clientSecret
expression=json-eval($.clientSecret)/
  property name=input expression=json-eval($.input)/
  property name=action expression=json-eval($.action)/
  property name=lookupField
expression=json-eval($.lookupField)/
  property name=asyncProcessing
expression=json-eval($.asyncProcessing)/
  property name=partitionName
expression=json-eval($.partitionName)/
  property name=leadId expression=json-eval($. leadId)/
  property name=fields expression=json-eval($. fields)/
  marketo.init

marketoInstanceURL{$ctx:marketoInstanceURL}/marketoInstanceURL
  clientId{$ctx:clientId}/clientId
  clientSecret{$ctx:clientSecret}/clientSecret
  /marketo.init
  switch source=get-property('transport','Action')
  case regex=urn:createAndUpdateLeads
  marketo.createAndUpdateLeads
  input{$ctx:input}/input
  action{$ctx:action}/action
  lookupField{$ctx:lookupField}/lookupField

asyncProcessing{$ctx:asyncProcessing}/asyncProcessing
  partitionName{$ctx:partitionName}/partitionName
  /marketo.createAndUpdateLeads
  /case
  case regex=urn:getLeadById
  marketo.getLeadById
  leadId{$ctx:leadId}/leadId
  fields{$ctx:fields}/fields
  /marketo.getLeadById
  /case
  /switch
  respond/
  /inSequence
  outSequence
 log/
 send/
  /outSequence
   /target
   description/
/proxy

init method works fine. But  createAndUpdateLeads method is not executed.
Am I missing anything?
-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Switch case is not working in the proxy

2015-03-16 Thread Keerthika Mahendralingam
Hi Elil,
I have added the Action header.

Thanks,

On Mon, Mar 16, 2015 at 12:06 PM, Elilmatha Sivanesan elilma...@wso2.com
wrote:


 make sure you have added Action header and value urn:createAndUpdateLeads
 when testing via postman/rest..

 On Mon, Mar 16, 2015 at 11:59 AM, Keerthika Mahendralingam 
 keerth...@wso2.com wrote:

 Please find the wire log:

 [2015-03-16 11:56:26,191] DEBUG - wire  POST /services/marketo
 HTTP/1.1[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Host:
 keerthikas-macbook-pro.local:8280[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Connection: keep-alive[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Content-Length: 650[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Action:
 urn:createAndUpdateLeads[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Cache-Control:
 no-cache[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Origin:
 chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  User-Agent: Mozilla/5.0
 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko)
 Chrome/41.0.2272.89 Safari/537.36[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Content-Type:
 application/json[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  Accept: */*[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  Accept-Encoding: gzip,
 deflate[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  Accept-Language:
 en-US,en;q=0.8[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  Cookie: CFID=111368577;
 CFTOKEN=1ba347821ba3e220-DE2DA792-BD64-DEC4-81B7FFE0BDDDB561;
 BIGipServersjgcp-restapi_https=4262002698.47873.[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  [\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  {[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  marketoInstanceURL:
 https://667-LPB-079.mktorest.com,[\n];

 [2015-03-16 11:56:26,193] DEBUG - wire  
 clientSecret:Vgo6rzIiJyPOzTcefP3Zr56tK2hv8fJd,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 clientId:01f22a42-0f05-4e7f-b675-550b6de66f91,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 [0x9]action:updateOnly,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 [0x9]lookupField:email,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 [0x9]partitionName:default,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 asyncProcessing:true,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire [0x9]input:[  [\n]

 [2015-03-16 11:56:26,193] DEBUG - wire{  [\n]

 [2015-03-16 11:56:26,194] DEBUG - wire   email:
 co...@gmail.com,[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire  
 firstName:con-1,[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire  
 postalCode:04828[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire},[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire{  [\n]

 [2015-03-16 11:56:26,194] DEBUG - wire   email:
 co...@gmail.com,[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire  
 firstName:con-2,[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire  
 postalCode:04828[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire},[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire{  [\n]

 [2015-03-16 11:56:26,195] DEBUG - wire   email:
 co...@gmail.com,[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire  
 firstName:con-3,[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire  
 postalCode:04828[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire}[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire ][\n]

 [2015-03-16 11:56:26,195] DEBUG - wire  }

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  POST
 /services/marketo HTTP/1.1

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  Host:
 keerthikas-macbook-pro.local:8280

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  Connection:
 keep-alive

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 
 Content-Length: 650

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  Action:
 urn:createAndUpdateLeads

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 
 Cache-Control: no-cache

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  Origin:
 chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  User-Agent:
 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML,
 like Gecko) Chrome/41.0.2272.89 Safari/537.36

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 
 Content-Type: application/json

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  Accept: */*

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 
 Accept-Encoding: gzip, deflate

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 
 Accept-Language: en-US,en;q=0.8

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  Cookie:
 CFID=111368577;
 CFTOKEN=1ba347821ba3e220-DE2DA792-BD64-DEC4-81B7FFE0BDDDB561;
 BIGipServersjgcp-restapi_https=4262002698.47873.

 [2015-03-16 11:56:27,766] DEBUG - headers http-outgoing-2  GET
 /identity/oauth/token?grant_type=client_credentialsclient_id=01f22a42-0f05-4e7f

Re: [Dev] Switch case is not working in the proxy

2015-03-16 Thread Keerthika Mahendralingam
:28,146] DEBUG - headers http-incoming-2  Pragma:
no-cache

[2015-03-16 11:56:28,146] DEBUG - headers http-incoming-2  Cache-Control:
no-store

[2015-03-16 11:56:28,146] DEBUG - headers http-incoming-2  Date: Mon, 16
Mar 2015 06:26:28 GMT

[2015-03-16 11:56:28,146] DEBUG - headers http-incoming-2  Server:
WSO2-PassThrough-HTTP

[2015-03-16 11:56:28,146] DEBUG - headers http-incoming-2 
Transfer-Encoding: chunked

[2015-03-16 11:56:28,146] DEBUG - headers http-incoming-2  Connection:
keep-alive

[2015-03-16 11:56:28,146] DEBUG - wire  HTTP/1.1 200 OK[\r][\n]

[2015-03-16 11:56:28,146] DEBUG - wire  Authorization: Bearer
6d648429-969f-4eaa-bb66-cea0b0385dcb:sj[\r][\n]

[2015-03-16 11:56:28,146] DEBUG - wire  Content-Type:
application/json[\r][\n]

[2015-03-16 11:56:28,146] DEBUG - wire  Content-Type:
application/json;charset=UTF-8[\r][\n]

[2015-03-16 11:56:28,146] DEBUG - wire  Accept: application/json[\r][\n]

[2015-03-16 11:56:28,147] DEBUG - wire  Pragma: no-cache[\r][\n]

[2015-03-16 11:56:28,147] DEBUG - wire  Cache-Control: no-store[\r][\n]

[2015-03-16 11:56:28,147] DEBUG - wire  Date: Mon, 16 Mar 2015 06:26:28
GMT[\r][\n]

[2015-03-16 11:56:28,147] DEBUG - wire  Server:
WSO2-PassThrough-HTTP[\r][\n]

[2015-03-16 11:56:28,147] DEBUG - wire  Transfer-Encoding:
chunked[\r][\n]

[2015-03-16 11:56:28,147] DEBUG - wire  Connection: keep-alive[\r][\n]

[2015-03-16 11:56:28,147] DEBUG - wire  [\r][\n]

[2015-03-16 11:56:28,147] DEBUG - wire  7e[\r][\n]

[2015-03-16 11:56:28,147] DEBUG - wire 
{access_token:6d648429-969f-4eaa-bb66-cea0b0385dcb:sj,token_type:bearer,expires_in:265,scope:
keerth...@wso2.com}[\r][\n]

[2015-03-16 11:56:28,147] DEBUG - wire  0[\r][\n]

[2015-03-16 11:56:28,147] DEBUG - wire  [\r][\n]



On Mon, Mar 16, 2015 at 11:36 AM, Keerthika Mahendralingam 
keerth...@wso2.com wrote:

 Hi All,
 I am using switch mediator in the following proxy. When I invoking the
 proxy I am getting the warning: *SwitchCase Provided character sequence
 for switch case condition is 'null'. Switch case will not be executed*.
 *Proxy:*
 ?xml version=1.0 encoding=UTF-8?
 proxy xmlns=http://ws.apache.org/ns/synapse;
name=marketo
transports=https,http
statistics=disable
trace=disable
startOnLoad=true
target
   inSequence
   property name=marketoInstanceURL
 expression=json-eval($.marketoInstanceURL)/
   property name=clientId expression=json-eval($.clientId)/
   property name=clientSecret
 expression=json-eval($.clientSecret)/
   property name=input expression=json-eval($.input)/
   property name=action expression=json-eval($.action)/
   property name=lookupField
 expression=json-eval($.lookupField)/
   property name=asyncProcessing
 expression=json-eval($.asyncProcessing)/
   property name=partitionName
 expression=json-eval($.partitionName)/
   property name=leadId expression=json-eval($. leadId)/
   property name=fields expression=json-eval($. fields)/
   marketo.init

 marketoInstanceURL{$ctx:marketoInstanceURL}/marketoInstanceURL
   clientId{$ctx:clientId}/clientId
   clientSecret{$ctx:clientSecret}/clientSecret
   /marketo.init
   switch source=get-property('transport','Action')
   case regex=urn:createAndUpdateLeads
   marketo.createAndUpdateLeads
   input{$ctx:input}/input
   action{$ctx:action}/action
   lookupField{$ctx:lookupField}/lookupField

 asyncProcessing{$ctx:asyncProcessing}/asyncProcessing
   partitionName{$ctx:partitionName}/partitionName
   /marketo.createAndUpdateLeads
   /case
   case regex=urn:getLeadById
   marketo.getLeadById
   leadId{$ctx:leadId}/leadId
   fields{$ctx:fields}/fields
   /marketo.getLeadById
   /case
   /switch
   respond/
   /inSequence
   outSequence
  log/
  send/
   /outSequence
/target
description/
 /proxy

 init method works fine. But  createAndUpdateLeads method is not executed.
 Am I missing anything?
 --
 dev-requ...@wso2.org
 Keerthika Mahendralingam
 Associate Software Engineer
 Mobile :+94 (0) 776 121144
 keerth...@wso2.com
 WSO2, Inc.
 lean . enterprise . middleware




-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Senduran Balasubramaniyam

2015-02-27 Thread Keerthika Mahendralingam
. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94719397528
 Blog : techreadme.blogspot.com

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



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




-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Pirinthapan Mahendran

2015-01-10 Thread Keerthika Mahendralingam
Congrats!

On Sat, Jan 10, 2015 at 5:45 PM, Milinda Perera milin...@wso2.com wrote:

 Congratulations Pirinthapan ..

 On Sat, Jan 10, 2015 at 4:44 PM, Abimaran Kugathasan abima...@wso2.com
 wrote:

 Congrats!

 On Sat, Jan 10, 2015 at 10:35 AM, Dilan Udara Ariyaratne dil...@wso2.com
  wrote:

 Congratulations Pirinthapan !!!


 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Sat, Jan 10, 2015 at 10:09 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Congratulations Printhapan !!!

 On Fri, Jan 9, 2015 at 7:31 PM, Kasun De Silva kas...@wso2.com wrote:

 Congratz Pirin...!

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




 --
 *Senduran *
 Software Engineer,
 WSO2, Inc.;  http://wso2.com/ http://wso2.com/
 Mobile: +94 77 952 6548

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



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




 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data  APIs Technologies Team
 Mobile : +94 773922820

 http://stackoverflow.com/users/515034
 http://lk.linkedin.com/in/abimaran
 http://www.lkabimaran.blogspot.com/  https://github.com/abimaran
 https://twitter.com/abimaran


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




 --
 Milinda Perera
 Software Engineer;
 WSO2 Inc. http://wso2.com ,
 Mobile: (+94) 714 115 032


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




-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Payload mediation of JSON message using Script Mediator

2015-01-08 Thread Keerthika Mahendralingam
://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




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




-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] javascript.EvaluatorException in replace function

2014-12-16 Thread Keerthika Mahendralingam
 liability for any errors
 or omissions



 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com http://wso2.com/*
 *Mobile:(+94)777219209*
 [image: Facebook] https://www.facebook.com/vanjikumaran [image:
 Twitter] https://twitter.com/vanjikumaran [image: LinkedIn]
 http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]
 http://www.slideshare.net/vanjikumaran

 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 that you may
 have received this communication in error, please reply to the
 sender indicating that fact and delete the copy you received and in
 addition, you should not print, copy, re-transmit, disseminate, or
 otherwise use the information contained in this communication.
 Internet communications cannot be guaranteed to be timely, secure, error
 or virus-free. The sender does not accept liability for any errors
 or omissions



 --
 *S.Elilmatha*
 Associate  Software Engineer,

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

 Mobile 0779842221.



 --
 *S.Elilmatha*
 Associate  Software Engineer,

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

 Mobile 0779842221.



 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com http://wso2.com/*
 *Mobile:(+94)777219209*
 [image: Facebook] https://www.facebook.com/vanjikumaran [image:
 Twitter] https://twitter.com/vanjikumaran [image: LinkedIn]
 http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]
 http://www.slideshare.net/vanjikumaran

 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 that you may
 have received this communication in error, please reply to the
 sender indicating that fact and delete the copy you received and in
 addition, you should not print, copy, re-transmit, disseminate, or
 otherwise use the information contained in this communication.
 Internet communications cannot be guaranteed to be timely, secure, error
 or virus-free. The sender does not accept liability for any errors
 or omissions



 --
 *S.Elilmatha*
 Associate  Software Engineer,

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

 Mobile 0779842221.



 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com http://wso2.com/*
 *Mobile:(+94)777219209*
 [image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter]
 https://twitter.com/vanjikumaran [image: LinkedIn]
 http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]
 http://www.slideshare.net/vanjikumaran

 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 that you may
 have received this communication in error, please reply to the
 sender indicating that fact and delete the copy you received and in
 addition, you should not print, copy, re-transmit, disseminate, or
 otherwise use the information contained in this communication.
 Internet communications cannot be guaranteed to be timely, secure, error
 or virus-free. The sender does not accept liability for any errors
 or omissions

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



-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com thili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] javascript.EvaluatorException in replace function

2014-12-16 Thread Keerthika Mahendralingam
Hi Elilmatha,
When you get the value for query1 from mc.getProperty('uri.var.query1'),
you will get json value for it.
You can use replace() method to string values. So you need to convert the
query json value to string.
So you can change the query json value into string as follows:
 var str='+mc.getProperty('uri.var.query1')+';
Then you can use replace() method as you wish.

On Wed, Dec 17, 2014 at 11:32 AM, Keerthika Mahendralingam 
keerth...@wso2.com wrote:

 Hi Elilmatha,

 try this one.

 script language=js
 var str='+mc.getProperty('uri.var.query1')+';
 var qReplacedString = str.replace(new RegExp(//g),'\\');
 var qReplacedStr = qReplacedString.replace(new RegExp(/'/g),'');
 mc.setProperty('uri.var.query1',qReplacedStr);
  /script

 Thank you,

 On Tue, Dec 16, 2014 at 7:03 PM, Vanjikumaran Sivajothy va...@wso2.com
 wrote:

 Hi,
 I have tried this scenario with wso2 esb 4.8.1 with below[1] proxy that
 simulate your scenario.



 ?xml version=1.0 encoding=UTF-8?
 proxy xmlns=http://ws.apache.org/ns/synapse;
name=Scripting
transports=https,http
statistics=disable
trace=disable
startOnLoad=true
target
   inSequence
   *   script language=jsvar Str = '{name: {is:john}}'; *
 * var qReplacedString =
 Str.replace(new RegExp(/\/g),'\\');
  *
 *
  mc.setProperty('testingJS',qReplacedString);*
 * /script*
  log level=custom
 property name=Test expression=$ctx:testingJS/
  /log
  drop/
   /inSequence
/target
description/
 /proxy


 and i have tried with json object in the JS with the fix given in the [2]
 and it worked

 ?xml version=1.0 encoding=UTF-8?
 proxy xmlns=http://ws.apache.org/ns/synapse;
name=Scripting
transports=https,http
statistics=disable
trace=disable
startOnLoad=true
target
   inSequence
*  script language=jsvar jsonObj = {name: {is:john}}; *
 * var jsonStr
 = JSON.stringify(jsonObj);*
 * var qReplacedString
 = jsonStr.replace(new RegExp(/\/g),'\\');
*
 *
  mc.setProperty('testingJS',qReplacedString);*
 * /script*
  log level=custom
 property name=Test expression=$ctx:testingJS/
  /log
  drop/
   /inSequence
/target
description/
 /proxy



 [2]
 https://wso2.org/jira/browse/ESBJAVA-3019


 On Tue, Dec 16, 2014 at 5:07 PM, Elilmatha Sivanesan elilma...@wso2.com
 wrote:

 Ok , Thank you.

 On Tue, Dec 16, 2014 at 5:05 PM, Vanjikumaran Sivajothy va...@wso2.com
 wrote:

 Since there is a bug in the milestone pack, I would recommend you to
 write a class mediator and perform this task.


 On Tue, Dec 16, 2014 at 4:25 PM, Elilmatha Sivanesan 
 elilma...@wso2.com wrote:

 It is not working with m2,m3

 On Tue, Dec 16, 2014 at 3:26 PM, Elilmatha Sivanesan 
 elilma...@wso2.com wrote:

 Yes now I'm running this with 4.9.0 m3

 On Tue, Dec 16, 2014 at 3:19 PM, Vanjikumaran Sivajothy 
 va...@wso2.com wrote:

 Can you please run this with ESB 4.9.0 m1/m2 ?

 On Tue, Dec 16, 2014 at 2:14 PM, Vanjikumaran Sivajothy 
 va...@wso2.com wrote:

 Hi elimatha,
 If this is blocker to you, Have you try to use custom class
 mediator to perform above job?

 Best regards,
 vanji

 On Tue, Dec 16, 2014 at 2:03 PM, Elilmatha Sivanesan 
 elilma...@wso2.com wrote:


 Hi all,
 I need to convert the json string like the following {name:
 {is:john}} to {\name\: {\is\:\john\}}

 I wrote the javascript as follows which works well on the online
 java script editor. The script
 !DOCTYPE html
 html
 body
 h2Create Object from JSON String/h2
 p id=demo/p
 script
 var p ='{name: {is:john}}';
 var x = p.replace(/\/g,'\\');
 document.write(x);
 /script
 /body
 /html

 So I wrote the script in the synapse configuration as below.
  script language=js![CDATA[
 var q = mc.getProperty('uri.var.query1');
 !--var o = JSON.stringify(q);--
 var qReplacedString = q.replace(/\/g,'\\');
 mc.setProperty('uri.var.query1',qReplacedString);
 ]]
 /script

 But it gives me the following errors. Is there any issues on using
 /\/ character ,What would be the problem on this.

 ERROR - ScriptMediator The script engine returned an error
 executing the inlined js script function mediate
 [2014-12-16 13:50:45,113]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  com.sun.phobos.script.util.ExtendedScriptException:
 org.mozilla.javascript.EvaluatorException: The choice of Java
 constructor replace matching JavaScript argument types 
 (function,string) is
 ambiguous; candidate constructors are:
 [2014-12-16 13:50:45,113]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  class java.lang.String
 replace(java.lang.CharSequence,java.lang.CharSequence

Re: [Dev] [Stripe ESB Connector] Getting 400 Bad Request Error

2014-12-11 Thread Keerthika Mahendralingam
Thank you Vanji, I tried as you suggested. Now I am able to get the correct
response.

On Thu, Dec 11, 2014 at 1:32 PM, Vanjikumaran Sivajothy va...@wso2.com
wrote:

 Hi Keethika,

 Please use the http endpoint to resolve this issue.


  call
* endpoint*
 *   http method=post
 uri-template=https://api.stripe.com/v1/charges/{uri.var.chargeId}/refunds
 https://api.stripe.com/v1/charges/%7Buri.var.chargeId%7D/refunds/http*
 */endpoint*
  /call





 On Thu, Dec 11, 2014 at 11:01 AM, Keerthika Mahendralingam 
 keerth...@wso2.com wrote:

 Thank you Vanji for your quick response. I tried your suggested method.
 But when I hardcoded the value for chageId and send the post request with
 the payload from the rest client the empty payload was removed and correct
 request was sent.
 But when I try to get the chargeId from the payload removes the message
 context also *property name=FORCE_POST_PUT_NOBODY value=true
 scope=axis2 type=BOOLEAN/* removes the message context also.
 Please find the wire log:
 [2014-12-11 11:01:03,568] DEBUG - wire  POST /strip HTTP/1.1[\r][\n]
 [2014-12-11 11:01:03,568] DEBUG - wire  Host: 10.100.5.169:8280[\r][\n]
 [2014-12-11 11:01:03,568] DEBUG - wire  Connection: keep-alive[\r][\n]
 [2014-12-11 11:01:03,568] DEBUG - wire  Content-Length: 44[\r][\n]
 [2014-12-11 11:01:03,568] DEBUG - wire  Cache-Control: no-cache[\r][\n]
 [2014-12-11 11:01:03,568] DEBUG - wire  Origin:
 chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n] [2014-12-11
 11:01:03,568] DEBUG - wire  User-Agent: Mozilla/5.0 (Macintosh; Mac OS X
 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71
 Safari/537.36[\r][\n] [2014-12-11 11:01:03,568] DEBUG - wire 
 Content-Type: application/json[\r][\n] [2014-12-11 11:01:03,568] DEBUG -
 wire  Accept: */*[\r][\n] [2014-12-11 11:01:03,568] DEBUG - wire 
 Accept-Encoding: gzip, deflate[\r][\n] [2014-12-11 11:01:03,569] DEBUG -
 wire  Accept-Language: en-US,en;q=0.8[\r][\n] [2014-12-11 11:01:03,569]
 DEBUG - wire  [\r][\n] [2014-12-11 11:01:03,569] DEBUG - wire 
 {[\n] [2014-12-11 11:01:03,569] DEBUG - wire  
 *chargeId:ch_158NuEDpl35Wu2ui6atArh0E*[\n] [2014-12-11
 11:01:03,570] DEBUG - wire  } [2014-12-11 11:01:03,571] DEBUG -
 headers http-incoming-2  POST /strip HTTP/1.1 [2014-12-11 11:01:03,571]
 DEBUG - headers http-incoming-2  Host: 10.100.5.169:8280 [2014-12-11
 11:01:03,571] DEBUG - headers http-incoming-2  Connection: keep-alive
 [2014-12-11 11:01:03,571] DEBUG - headers http-incoming-2 
 Content-Length: 44 [2014-12-11 11:01:03,571] DEBUG - headers
 http-incoming-2  Cache-Control: no-cache [2014-12-11 11:01:03,571] DEBUG
 - headers http-incoming-2  Origin:
 chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm [2014-12-11
 11:01:03,572] DEBUG - headers http-incoming-2  User-Agent: Mozilla/5.0
 (Macintosh; ss Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko)
 Chrome/39.0.2171.71 Safari/537.36 [2014-12-11 11:01:03,572] DEBUG - headers
 http-incoming-2  Content-Type: application/json [2014-12-11 11:01:03,572]
 DEBUG - headers http-incoming-2  Accept: */* [2014-12-11 11:01:03,572]
 DEBUG - headers http-incoming-2  Accept-Encoding: gzip, deflate
 [2014-12-11 11:01:03,572] DEBUG - headers http-incoming-2 
 Accept-Language: en-US,en;q=0.8 [2014-12-11 11:01:03,572] DEBUG - headers
 http-incoming-2  Cookie: MSG14178730176680.29427175505634384=true;
 MSG14178733498110.13085054063584778=true;
 MSG14178733599110.6219386089528006=true;
 MSG14178737859670.9529352123700151=true;
 MSG14178737969220.7098197557439472=true;
 MSG14178742229450.11304979617306088=true;
 MSG14178742459580.08636783896345823=true;
 MSG14178743775100.8277019213681849=true;
 MSG14178744009480.1176885444149115=true;
 MSG14178744961220.12665969302078872=true;
 MSG14178745125470.7059473583386973=true;
 MSG14178746301280.5421815401876321=true;
 MSG14178749920270.16922145677337863=true;
 MSG14178750099790.9279498346279079=true;
 MSG14178752074000.7968266996983095=true;
 MSG14178752284520.3200580037079722=true;
 MSG14178759605060.21670383101954604=true;
 MSG14178759719000.4556431273477163=true;
 MSG14178760965150.9435498284164892=true;
 MSG14178761060100.2838820086933652=true;
 MSG14179410733150.9565482556718199=true;
 MSG14179410950800.04846375334425135=true;
 MSG14179455481590.07412600774150879=true;
 MSG14179455562460.4402089613229584=true;
 MSG14179456372820.13647268855455874=true;
 MSG14179456467490.9615653270227574=true;
 MSG14179457888170.3561121989855156=true;
 MSG14179458087970.3274270139955=true;
 MSG14179458931480.43382225798195906=true;
 MSG14179459297600.020534603827859765=true;
 MSG14179459966390.6664658852131142=true;
 MSG14179460204050.14013169399751735=true;
 MSG14179489015150.06760873851129723=true;
 MSG14179489099060.5499165139086787=true;
 MSG14179491204370.12483201997664095=true;
 MSG14179491378060.04953538185644113=true;
 MSG14179495124730.1470145124103216=true;
 MSG14179495216360.5932151724208592=true

[Dev] [Stripe ESB Connector] Getting 400 Bad Request Error

2014-12-10 Thread Keerthika Mahendralingam
-Age:
300[\r][\n]

[2014-12-11 10:00:15,174] DEBUG - wire  Cache-Control: no-cache,
no-store[\r][\n]

[2014-12-11 10:00:15,174] DEBUG - wire  Request-Id:
req_cuszgRZsgLEJRDOS[\r][\n]

[2014-12-11 10:00:15,174] DEBUG - wire  Stripe-Version:
2014-11-20[\r][\n]

[2014-12-11 10:00:15,174] DEBUG - wire  [\r][\n]

[2014-12-11 10:00:15,174] DEBUG - wire  {[\n]

[2014-12-11 10:00:15,174] DEBUG - wireerror: {[\n]

[2014-12-11 10:00:15,174] DEBUG - wire  type:
invalid_request_error,[\n]

[2014-12-11 10:00:15,175] DEBUG - wire  message: *Received
unknown parameter: chargeId*,[\n]

[2014-12-11 10:00:15,175] DEBUG - wire  param: chargeId[\n]

[2014-12-11 10:00:15,175] DEBUG - wire}[\n]

[2014-12-11 10:00:15,175] DEBUG - wire  }[\n]

[2014-12-11 10:00:15,175] DEBUG - headers http-outgoing-3  HTTP/1.1 400
Bad Request

*Please note that if I hardcode the value for chargeId in the proxy and
send a get request from the rest client without the optional parameters I
got the correct response. I got the error only when I sent the post request
with the payload from rest client.*

*The template for this request is:*
template name=createANewRefund xmlns=http://ws.apache.org/ns/synapse;
parameter name=chargeId description=The identifier of the charge to
be refunded./
parameter name=amount description=card's expiration month/
sequence
property name=uri.var.chargeId expression=$func:chargeId/
property name=uri.var.amount expression=$func:amount/
payloadFactory media-type=json
  format
  {
  }
  /format
 /payloadFactory
 script language=js![CDATA[
 var amount=mc.getProperty('uri.var.amount');
 var payload = mc.getPayloadJSON();
 if (amount != null  amount != ) {
payload[amount]=amount;
 }
 mc.setPayloadJSON(payload);
   ]]
 /script
property name=messageType
value=application/x-www-form-urlencoded scope=axis2/
header name=Content-Type
value=application/x-www-form-urlencoded scope=transport /
header name=Authorization value=Bearer
sk_test_Gd3JGidPIzfPkMOC8ZGnPEdf scope=transport/
call
endpoint
http method=post
  uri-template=https://api.stripe.com/v1/
charges/{uri.var.chargeId}/refunds/
/endpoint
/call
/sequence
/template



*Proxy for this service:*
?xml version=1.0 encoding=UTF-8?
proxy xmlns=http://ws.apache.org/ns/synapse;
   name=stripe_createANewRefund
   transports=https,http
   statistics=disable
   trace=disable
   startOnLoad=true
target
inSequence
property name=chargeId expression=json-eval($.chargeId)/
property name=amount expression=json-eval($.amount)/
stripe.createANewRefund
chargeId{$ctx:chargeId}/chargeId
amount{$ctx:amount}/amount
/stripe.createANewRefund
respond/
/inSequence
outSequence
send/
/outSequence
/target
description/
/proxy


Thank you.
-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com thili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Stripe ESB Connector] Getting 400 Bad Request Error

2014-12-10 Thread Keerthika Mahendralingam
   }[\n]
[2014-12-11 11:01:05,297] DEBUG - wire  }[\n] [2014-12-11 11:01:05,297]
DEBUG - headers http-outgoing-2  HTTP/1.1 404 Not Found


On Thu, Dec 11, 2014 at 10:12 AM, Vanjikumaran Sivajothy va...@wso2.com
wrote:

 Hi Keerthika,

 I have tried your use-case and notice your request is going with a
 payload. However, your back-end is not expecting that.
 Therefore you need to drop your message body in the request mediation flow.

 In order to drop the message payload you need to perform two tasks in the
 wso2 ESB.

 Create empty payload using Payload mediator
 https://docs.wso2.com/display/ESB481/PayloadFactory+Mediator
 use the FORCE_POST_PUT_NOBODY
 https://docs.wso2.com/display/ESB481/HTTP+Transport+Properties#HTTPTransportProperties-FORCE_POST_PUT_NOBODYproperty
 to enforce.

 Example is given below that demonstrate the use case.

 api xmlns=http://ws.apache.org/ns/synapse; name=strip context=/strip
resource methods=POST GET
   inSequence
  header name=Authorization scope=transport value=Bearer 
 X/header
  property name=uri.var.chargeId expression=json-eval($.chargeId) 
 scope=default type=STRING/property
*  payloadFactory media-type=json
 *
 *format/format
 *
 *args/args
 *
 * /payloadFactory*
  property name=ContentType 
 value=application/x-www-form-urlencoded scope=axis2/property
  property name=messageType 
 value=application/x-www-form-urlencoded scope=axis2/property
 * property name=FORCE_POST_PUT_NOBODY value=true scope=axis2 
 type=BOOLEAN/property*
  call
 endpoint
address 
 uri=https://api.stripe.com/v1/charges/{uri.var.chargeId}/refunds;/address
 /endpoint
  /call
  respond/respond
   /inSequence
/resource
 /api


 On Thu, Dec 11, 2014 at 10:06 AM, Keerthika Mahendralingam 
 keerth...@wso2.com wrote:

 Hi all,
 I am trying to send a post request to https://api.stripe.com/v1/charges/
 https://www.google.com/url?q=https%3A%2F%2Fapi.stripe.com%2Fv1%2Fcharges%2Fsa=Dsntz=1usg=AFQjCNFej5mTQCtPacoinYr0qTl7-XDUeg
 {CHARGE_ID}/refunds.
 There are some optional parameters for this request. When I invoked the
 endpoint through esb with the optional parameters I am able to get the
 expected response. But if I invoked the endpoint without the optional
 parameters, an additional body is sent with the request.
 Please find the wire log for the both requests with optional parameters
 and mandatory parameter :

 *Wire log for the request with optional parameter:*

 [2014-12-11 09:35:54,151] DEBUG - wire  POST
 /services/stripe_createANewRefund HTTP/1.1[\r][\n]

 [2014-12-11 09:35:54,151] DEBUG - wire  Host:
 keerthikas-macbook-pro.local:8280[\r][\n]

 [2014-12-11 09:35:54,151] DEBUG - wire  Connection: keep-alive[\r][\n]

 [2014-12-11 09:35:54,151] DEBUG - wire  Content-Length: 61[\r][\n]

 [2014-12-11 09:35:54,151] DEBUG - wire  Cache-Control:
 no-cache[\r][\n]

 [2014-12-11 09:35:54,151] DEBUG - wire  Origin:
 chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]

 [2014-12-11 09:35:54,151] DEBUG - wire  User-Agent: Mozilla/5.0
 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko)
 Chrome/39.0.2171.71 Safari/537.36[\r][\n]

 [2014-12-11 09:35:54,152] DEBUG - wire  Content-Type:
 application/json[\r][\n]

 [2014-12-11 09:35:54,152] DEBUG - wire  Accept: */*[\r][\n]

 [2014-12-11 09:35:54,152] DEBUG - wire  Accept-Encoding: gzip,
 deflate[\r][\n]

 [2014-12-11 09:35:54,152] DEBUG - wire  Accept-Language:
 en-US,en;q=0.8[\r][\n]

 [2014-12-11 09:35:54,152] DEBUG - wire  Cookie: SERVERID=djc19[\r][\n]

 [2014-12-11 09:35:54,152] DEBUG - wire  [\r][\n]

 [2014-12-11 09:35:54,152] DEBUG - wire  {[\n]

 [2014-12-11 09:35:54,152] DEBUG - wire 
 chargeId:ch_158NuEDpl35Wu2ui6atArh0E,[\n]

 [2014-12-11 09:35:54,152] DEBUG - wireamount:50[\n]

 [2014-12-11 09:35:54,152] DEBUG - wire  }

 [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4  POST
 /services/stripe_createANewRefund HTTP/1.1

 [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4  Host:
 keerthikas-macbook-pro.local:8280

 [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4  Connection:
 keep-alive

 [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 
 Content-Length: 61

 [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 
 Cache-Control: no-cache

 [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4  Origin:
 chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm

 [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4  User-Agent:
 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML,
 like Gecko) Chrome/39.0.2171.71 Safari/537.36

 [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 
 Content-Type: application/json

 [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4  Accept: */*

 [2014-12-11 09:35:54,154] DEBUG - headers http-incoming-4 
 Accept-Encoding: gzip, deflate

Re: [Dev] Unable to send payload with delete request in ESB connector

2014-10-06 Thread Keerthika Mahendralingam
Hi Udara,
For that particular request we need to send the resource id in request body
as a json array. In their api method we can't send the id via url.
like specified here:
https://developer.spotify.com/web-api/remove-tracks-playlist/

On Tue, Oct 7, 2014 at 8:43 AM, Udara Liyanage ud...@wso2.com wrote:


 Hi,

 You are sending a DELETE request means to delete a particular resource
 from the system. You can define which resource to be deleted in url by
 id/name or any other identifier of the resource. Why you need to send a
 payload in a DELETE request?


 Touched, not typed. Erroneous words are a feature, not a typo.

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




-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com thili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Unable to send payload with delete request in ESB connector

2014-09-22 Thread Keerthika Mahendralingam
When I sent delete request with json payload I got the following message:
Empty JSON body.

I also tried with the hardcoded values. But I got the same error message.

-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com thili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ESB connector: SSL Handshake Exception

2014-09-03 Thread Keerthika Mahendralingam
When we invoke our services into proxy we got this error:

[2014-09-03 11:01:15,881]  INFO - CarbonAuthenticationUtil
'admin@carbon.super [-1234]' logged in at [2014-09-03 11:01:15,881+0530]

[2014-09-03 11:01:51,476]  INFO - TimeoutHandler This engine will expire
all callbacks after : 120 seconds, irrespective of the timeout action,
after the specified or optional timeout

[2014-09-03 11:01:52,305] ERROR - TargetHandler I/O error: General
SSLEngine problem

javax.net.ssl.SSLHandshakeException: General SSLEngine problem

at sun.security.ssl.Handshaker.checkThrown(Handshaker.java:1364)

at sun.security.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:513)

at sun.security.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1197)

at sun.security.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1169)

at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:469)

at
org.apache.http.nio.reactor.ssl.SSLIOSession.doWrap(SSLIOSession.java:220)

at
org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:254)

at
org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:380)

at
org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:118)

at
org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:160)

at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:342)

at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:320)

at
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)

at
org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106)

at
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:604)

at java.lang.Thread.run(Thread.java:722)

Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem

at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)

at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1703)

at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:278)

at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270)

at
sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1338)

at
sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:154)

at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)

at sun.security.ssl.Handshaker$1.run(Handshaker.java:808)

at sun.security.ssl.Handshaker$1.run(Handshaker.java:806)

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

at sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:1301)

at
org.apache.http.nio.reactor.ssl.SSLIOSession.doRunTask(SSLIOSession.java:238)

at
org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:270)

... 9 more

Caused by: sun.security.validator.ValidatorException: PKIX path building
failed: sun.security.provider.certpath.SunCertPathBuilderException: unable
to find valid certification path to requested target

at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:385)

at
sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)

at sun.security.validator.Validator.validate(Validator.java:260)

at
sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326)

at
sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:283)

at
sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:138)

at
sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1325)

... 17 more

Caused by: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target

at
sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:196)

at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268)

at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:380)

... 23 more

[2014-09-03 11:01:52,312]  WARN - EndpointContext Endpoint :
AnonymousEndpoint will be marked SUSPENDED as it failed

[2014-09-03 11:01:52,312]  WARN - EndpointContext Suspending endpoint :
AnonymousEndpoint - current suspend duration is : 3ms - Next retry
after : Wed Sep 03 11:02:22 IST 2014
-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com thili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB connector: SSL Handshake Exception

2014-09-03 Thread Keerthika Mahendralingam
I resolved the issue. Thank you.


On Wed, Sep 3, 2014 at 2:23 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Keerthika,

 I guess api required a certificate to be installed on sender side.

 Follow the following steps

 i) Extract the certificate from browser by navigating to apiUrl

 ii) Navigate to ESB_HOME/repository/resources/security/ using command
 prompt and execute keytool -importcert -file CERT_FILE_NAME -keystore
 client-truststore.jks -alias CERT_NAME in command line to import api
 certificate in to keystore. Give wso2carbon as password. NOTE :
 CERT_FILE_NAME is the file name which was extracted from api, change it
 accordingly CERT_NAME is name of the certificate.

 Best Regards,
 Malaka


 On Wed, Sep 3, 2014 at 2:04 PM, Roshan Wijesena ros...@wso2.com wrote:

 Hi,

 A similar issue has been discussed here [1].

 [1] http://mail.wso2.org/mailarchive/dev/2014-June/032193.html

 Regards
 Roshan.


 On Wed, Sep 3, 2014 at 1:18 PM, Keerthika Mahendralingam 
 keerth...@wso2.com wrote:


 When we invoke our services into proxy we got this error:

 [2014-09-03 11:01:15,881]  INFO - CarbonAuthenticationUtil
 'admin@carbon.super [-1234]' logged in at [2014-09-03 11:01:15,881+0530]

 [2014-09-03 11:01:51,476]  INFO - TimeoutHandler This engine will expire
 all callbacks after : 120 seconds, irrespective of the timeout action,
 after the specified or optional timeout

 [2014-09-03 11:01:52,305] ERROR - TargetHandler I/O error: General
 SSLEngine problem

 javax.net.ssl.SSLHandshakeException: General SSLEngine problem

 at sun.security.ssl.Handshaker.checkThrown(Handshaker.java:1364)

 at sun.security.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:513)

 at sun.security.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1197)

 at sun.security.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1169)

 at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:469)

 at
 org.apache.http.nio.reactor.ssl.SSLIOSession.doWrap(SSLIOSession.java:220)

 at
 org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:254)

 at
 org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:380)

 at
 org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:118)

 at
 org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:160)

 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:342)

 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:320)

 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)

 at
 org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106)

 at
 org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:604)

 at java.lang.Thread.run(Thread.java:722)

 Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem

 at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)

 at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1703)

 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:278)

 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270)

 at
 sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1338)

 at
 sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:154)

 at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)

 at sun.security.ssl.Handshaker$1.run(Handshaker.java:808)

 at sun.security.ssl.Handshaker$1.run(Handshaker.java:806)

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

 at sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:1301)

 at
 org.apache.http.nio.reactor.ssl.SSLIOSession.doRunTask(SSLIOSession.java:238)

 at
 org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:270)

 ... 9 more

 Caused by: sun.security.validator.ValidatorException: PKIX path building
 failed: sun.security.provider.certpath.SunCertPathBuilderException: unable
 to find valid certification path to requested target

 at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:385)

 at
 sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)

 at sun.security.validator.Validator.validate(Validator.java:260)

 at
 sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326)

 at
 sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:283)

 at
 sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:138)

 at
 sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1325)

 ... 17 more

 Caused by: sun.security.provider.certpath.SunCertPathBuilderException:
 unable to find valid certification path to requested target

 at
 sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:196)

 at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268