Re: [Dev] WSO2 Committers += Kanapriya Kuleswararajan

2016-12-06 Thread Yashothara Shanmugarajah
Congratulations Kanapriya :)

Best Regards,
Yashothara.S
Software Engineer
WSO2
http://wso2.com
https://wso2.com/signature


On Tue, Dec 6, 2016 at 3:44 PM, Thanuja Uruththirakodeeswaran <
thanu...@wso2.com> wrote:

> Congratulations Kanapriya :)
>
> On Tue, Dec 6, 2016 at 3:22 PM, Malaka Silva  wrote:
>
>> Hi Devs,
>>
>> Its my pleasure to welcome Kanapriya Kuleswararajan as a WSO2 Committer.
>>
>> She has been working with the WSO2 Platform Extensions Team for a while
>> and has contributed to  ESB and IS product extensions,
>>
>> Kanapriya, welcome aboard and keep up the good work.
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Technical Lead
>> M: +94 777 219 791 <+94%2077%20721%209791>
>> 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/
>> 
>> https://store.wso2.com/store/
>>
>> Don't make Trees rare, we should keep them with care
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanuja Uruththirakodeeswaran
> Software Engineer
> WSO2 Inc.;http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 774363167 <+94%2077%20436%203167>
>
> 
>
> ___
> 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] WSO2 Committers += Malintha Fernando

2016-11-08 Thread Yashothara Shanmugarajah
Congrats Malintha :)

Best Regards,
Yashothara.S
Software Engineer
WSO2
http://wso2.com
https://wso2.com/signature


On Tue, Nov 8, 2016 at 1:45 PM, Heshitha Hettihewa 
wrote:

> Congratz Malintha!!!
>
> On Tue, Nov 8, 2016 at 1:32 PM, Chandana Napagoda 
> wrote:
>
>> Hi Devs,
>>
>> It is my pleasure to welcome Malintha Fernando as a WSO2 Committer.
>> Malintha has made some great contributions to WSO2 Governance Registry and
>> WSO2 Enterprise Store products during the last few months and in
>> recognition of his commitment and contributions, he has been voted as a
>> Committer for WSO2.
>>
>> @Malintha, welcome aboard and keep up the good work.
>>
>> Best Regards,
>> Chandana
>>
>> --
>> *Chandana Napagoda*
>> Associate Technical Lead
>> WSO2 Inc. - http://wso2.org
>>
>> *Email  :  chand...@wso2.com **Mobile : +94718169299
>> <%2B94718169299>*
>>
>> *Blog  :http://cnapagoda.blogspot.com 
>> | http://chandana.napagoda.com *
>>
>> *Linkedin : http://www.linkedin.com/in/chandananapagoda
>> *
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Heshitha Hettihewa
> *Software Engineer*
> Mobile : +94716866386
> <%2B94%20%280%29%20773%20451194>
> heshit...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Kasun Thennakoon

2016-10-20 Thread Yashothara Shanmugarajah
Congrats Kasun :)

Best Regards,
Yashothara.S
Software Engineer
WSO2
http://wso2.com
https://wso2.com/signature


On Fri, Oct 21, 2016 at 9:21 AM, Dilshani Subasinghe 
wrote:

> Congrats Kasun :)
>
> On Fri, Oct 21, 2016 at 9:16 AM, Heshitha Hettihewa 
> wrote:
>
>> Congratz kasun!!!
>>
>> On Fri, Oct 21, 2016 at 9:13 AM, Chandana Napagoda 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> It is my pleasure to welcome Kasun Thennakoon as a WSO2 Committer. Kasun
>>> has made some great contributions to WSO2 Enterprise Store and WSO2
>>> Governance Registry products during the last few months and in recognition
>>> of his commitment and contributions, he has been voted as a Committer for
>>> WSO2.
>>>
>>> @Kasun, welcome aboard and keep up the good work.
>>>
>>> Best Regards,
>>> Chandana
>>>
>>> --
>>> *Chandana Napagoda*
>>> Associate Technical Lead
>>> WSO2 Inc. - http://wso2.org
>>>
>>> *Email  :  chand...@wso2.com **Mobile : +94718169299
>>> <%2B94718169299>*
>>>
>>> *Blog  :http://cnapagoda.blogspot.com
>>>  | http://chandana.napagoda.com
>>> *
>>>
>>> *Linkedin : http://www.linkedin.com/in/chandananapagoda
>>> *
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Heshitha Hettihewa
>> *Software Engineer*
>> Mobile : +94716866386
>> <%2B94%20%280%29%20773%20451194>
>> heshit...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards,
>
> Dilshani Subasinghe
> Software Engineer - QA *|* WSO2
> lean *|* enterprise *|* middleware
>
> Mobile : +94773375185
> Blog: dilshani.me
>
> 
>
> ___
> 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] Could not send Long value in ESB 5.0.0 with the payload

2016-09-28 Thread Yashothara Shanmugarajah
parseInt() method gives in Scientific notation. It is the behavior of Rhino
javascript Engine. So followed approach has been used.
[1]


<![CDATA[
//request body param variables

var requesterId = mc.getProperty('uri.var.requesterId');
var query='{';
//query = query.concat(email);

if (requesterId != null && requesterId != ""){
query = query.concat('"'+'requester_id":' +
requesterId+',');
}

query=query.substring(0, query.length-1);
mc.setProperty('uri.var.query', query);

]]>



$1}






Best Regards,
Yashothara.S
Software Engineer
WSO2
http://wso2.com
https://wso2.com/signature
<https://www.google.com/url?q=https%3A%2F%2Fwso2.com%2Fsignature=D=1=AFQjCNFqSCK3YQC9g0l53f6yjvsVrxRHXg>

On Thu, Sep 29, 2016 at 7:20 AM, Malaka Silva <mal...@wso2.com> wrote:

> ​What was the solution?​
>
> On Wed, Sep 28, 2016 at 9:36 PM, Yashothara Shanmugarajah <
> yashoth...@wso2.com> wrote:
>
>> Yes Malaka. I have resolved this issue today.
>>
>> Best Regards,
>> Yashothara.S
>> Software Engineer
>> WSO2
>> http://wso2.com
>> https://wso2.com/signature
>> <https://www.google.com/url?q=https%3A%2F%2Fwso2.com%2Fsignature=D=1=AFQjCNFqSCK3YQC9g0l53f6yjvsVrxRHXg>
>>
>> On Wed, Sep 28, 2016 at 8:33 PM, Malaka Silva <mal...@wso2.com> wrote:
>>
>>> Hi Yashothara,
>>>
>>> Is the issues resolved?
>>>
>>> On Wed, Sep 21, 2016 at 12:57 PM, Yashothara Shanmugarajah <
>>> yashoth...@wso2.com> wrote:
>>>
>>>> Hi Nuwan,
>>>>
>>>> As it is an Optional Parameter, I need to send through the script
>>>> mediator. So I can't use payload mediator.
>>>>
>>>> Please find this proxy[1]. Here I didn't use connector. Even though I
>>>> am getting in scientific notation.
>>>>
>>>> [1]
>>>> 
>>>> http://ws.apache.org/ns/synapse;
>>>>name="checkConnectorScript"
>>>>startOnLoad="true"
>>>>statistics="disable"
>>>>trace="disable"
>>>>transports="https,http">
>>>>
>>>>   
>>>>  >>> name="requesterId"/>
>>>>  
>>>> >>>   name="121212121212121212121212121212"/>
>>>>  
>>>>  
>>>> 
>>>> {
>>>>
>>>> }
>>>> 
>>>> 
>>>>  
>>>>  payload = mc.getPayloadJSON();
>>>>  var requesterId = mc.getProperty('requesterId');
>>>>
>>>> var requesterIdInt = parseInt(mc.getProperty('reque
>>>> sterId'));
>>>> payload["requester_id"] = requesterIdInt;
>>>>
>>>>  mc.setPayloadJSON(payload);
>>>>  
>>>> 
>>>>>>>  uri-template="https://wso2yash
>>>> o.freshdesk.com/api/v2/tickets"/>
>>>> 
>>>>  
>>>>  
>>>>   
>>>>   
>>>>  
>>>>   
>>>>
>>>>
>>>> 
>>>>
>>>>
>>>> Best Regards,
>>>> Yashothara.S
>>>> Software Engineer
>>>> WSO2
>>>> http://wso2.com
>>>> https://wso2.com/signature
>>>> <https://www.google.com/url?q=https%3A%2F%2Fwso2.com%2Fsignature=D=1=AFQjCNFqSCK3YQC9g0l53f6yjvsVrxRHXg>
>>>>
>>>> On Wed, Sep 21, 2016 at 10:48 AM, Nuwan Pallewela <nuw...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Yashothara,
>>>>>
>>>>> I think this happens due to the use of script mediator. You do not
>>>>> need to use script mediator here. Just use the payload factory mediator to
>>>>> build the payload or use data mapper mediator if you need to do more
>>>>> com

Re: [Dev] Could not send Long value in ESB 5.0.0 with the payload

2016-09-28 Thread Yashothara Shanmugarajah
Yes Malaka. I have resolved this issue today.

Best Regards,
Yashothara.S
Software Engineer
WSO2
http://wso2.com
https://wso2.com/signature
<https://www.google.com/url?q=https%3A%2F%2Fwso2.com%2Fsignature=D=1=AFQjCNFqSCK3YQC9g0l53f6yjvsVrxRHXg>

On Wed, Sep 28, 2016 at 8:33 PM, Malaka Silva <mal...@wso2.com> wrote:

> Hi Yashothara,
>
> Is the issues resolved?
>
> On Wed, Sep 21, 2016 at 12:57 PM, Yashothara Shanmugarajah <
> yashoth...@wso2.com> wrote:
>
>> Hi Nuwan,
>>
>> As it is an Optional Parameter, I need to send through the script
>> mediator. So I can't use payload mediator.
>>
>> Please find this proxy[1]. Here I didn't use connector. Even though I am
>> getting in scientific notation.
>>
>> [1]
>> 
>> http://ws.apache.org/ns/synapse;
>>name="checkConnectorScript"
>>startOnLoad="true"
>>statistics="disable"
>>trace="disable"
>>transports="https,http">
>>
>>   
>>  > name="requesterId"/>
>>  
>> >   name="121212121212121212121212121212"/>
>>  
>>  
>> 
>> {
>>
>> }
>> 
>> 
>>  
>>  payload = mc.getPayloadJSON();
>>  var requesterId = mc.getProperty('requesterId');
>>
>> var requesterIdInt = parseInt(mc.getProperty('reque
>> sterId'));
>> payload["requester_id"] = requesterIdInt;
>>
>>  mc.setPayloadJSON(payload);
>>  
>> 
>>>  uri-template="https://wso2yash
>> o.freshdesk.com/api/v2/tickets"/>
>> 
>>  
>>  
>>   
>>   
>>  
>>   
>>
>>
>> 
>>
>>
>> Best Regards,
>> Yashothara.S
>> Software Engineer
>> WSO2
>> http://wso2.com
>> https://wso2.com/signature
>> <https://www.google.com/url?q=https%3A%2F%2Fwso2.com%2Fsignature=D=1=AFQjCNFqSCK3YQC9g0l53f6yjvsVrxRHXg>
>>
>> On Wed, Sep 21, 2016 at 10:48 AM, Nuwan Pallewela <nuw...@wso2.com>
>> wrote:
>>
>>> Hi Yashothara,
>>>
>>> I think this happens due to the use of script mediator. You do not need
>>> to use script mediator here. Just use the payload factory mediator to build
>>> the payload or use data mapper mediator if you need to do more complex
>>> mapping.
>>>
>>> [1] https://docs.wso2.com/display/ESB481/PayloadFactory+Mediator
>>> #PayloadFactoryMediator-Example2:JSON
>>>
>>> Thanks,
>>> Nuwan
>>>
>>> On Wed, Sep 21, 2016 at 10:33 AM, Yashothara Shanmugarajah <
>>> yashoth...@wso2.com> wrote:
>>>
>>>> Please find the template[1] and proxy[2].
>>>>
>>>> [1]
>>>> http://ws.apache.org/ns/synapse;>
>>>> 
>>>> 
>>>> 
>>>> >>> expression="$func:requesterId"/>
>>>> 
>>>>   >>> expression="$ctx:uri.var.requesterId"/>
>>>> 
>>>> 
>>>> 
>>>> {
>>>>
>>>> }
>>>> 
>>>> 
>>>>
>>>> 
>>>> 
>>>>
>>>> 
>>>> 
>>>> <![CDATA[
>>>>  payload = mc.getPayloadJSON();
>>>>
>>>>  var requesterId = mc.getProperty("uri.var.requesterId");
>>>>
>>>>  if (requesterId != null && requesterId != ""){
>>>>  var requesterIdInt = parseInt(mc.getProperty("uri.v
>>>> ar.requesterId"));
>>>> payload["requester_id"] = requesterIdInt;
>>>>  }
>>>>
>>>>  mc.setPayloadJSON(payload);
>>>>  ]]>
>>>> 
>>>>
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>>
>>>> 
>>>> 
>>>> 

Re: [Dev] Could not send Long value in ESB 5.0.0 with the payload

2016-09-21 Thread Yashothara Shanmugarajah
Hi Nuwan,

As it is an Optional Parameter, I need to send through the script mediator.
So I can't use payload mediator.

Please find this proxy[1]. Here I didn't use connector. Even though I am
getting in scientific notation.

[1]

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

 
 

{

}


 
 payload = mc.getPayloadJSON();
 var requesterId = mc.getProperty('requesterId');
var requesterIdInt =
parseInt(mc.getProperty('requesterId'));
payload["requester_id"] = requesterIdInt;

 mc.setPayloadJSON(payload);
 

   https://wso2yasho.freshdesk.com/api/v2/tickets"/>

 
 
  
  
 
  
   
   



Best Regards,
Yashothara.S
Software Engineer
WSO2
http://wso2.com
https://wso2.com/signature
<https://www.google.com/url?q=https%3A%2F%2Fwso2.com%2Fsignature=D=1=AFQjCNFqSCK3YQC9g0l53f6yjvsVrxRHXg>

On Wed, Sep 21, 2016 at 10:48 AM, Nuwan Pallewela <nuw...@wso2.com> wrote:

> Hi Yashothara,
>
> I think this happens due to the use of script mediator. You do not need to
> use script mediator here. Just use the payload factory mediator to build
> the payload or use data mapper mediator if you need to do more complex
> mapping.
>
> [1] https://docs.wso2.com/display/ESB481/PayloadFactory+Mediator#
> PayloadFactoryMediator-Example2:JSON
>
> Thanks,
> Nuwan
>
> On Wed, Sep 21, 2016 at 10:33 AM, Yashothara Shanmugarajah <
> yashoth...@wso2.com> wrote:
>
>> Please find the template[1] and proxy[2].
>>
>> [1]
>> http://ws.apache.org/ns/synapse;>
>> 
>> 
>> 
>> > expression="$func:requesterId"/>
>> 
>>   > expression="$ctx:uri.var.requesterId"/>
>> 
>> 
>> 
>> {
>>
>> }
>> 
>> 
>>
>> 
>> 
>>
>> 
>> 
>> <![CDATA[
>>  payload = mc.getPayloadJSON();
>>
>>  var requesterId = mc.getProperty("uri.var.requesterId");
>>
>>  if (requesterId != null && requesterId != ""){
>>  var requesterIdInt = parseInt(mc.getProperty("uri.v
>> ar.requesterId"));
>> payload["requester_id"] = requesterIdInt;
>>  }
>>
>>  mc.setPayloadJSON(payload);
>>  ]]>
>> 
>>
>> 
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>>
>> 
>> 
>>
>>
>>
>> [2] 
>> http://ws.apache.org/ns/synapse;
>>name="createTicket"
>>startOnLoad="true"
>>statistics="disable"
>>trace="disable"
>>transports="https,http">
>>
>>   
>>  
>>  
>>  > name="requesterId"/>
>>  
>> >       name="121212121212121212121212121212"/>
>>  
>>  
>> {$ctx:apiKey}
>> {$ctx:apiUrl}
>>  
>>  
>> {$ctx:requesterId}
>>  
>>  
>>   
>>   
>>  
>>  
>>   
>>
>>
>> 
>>
>>
>> Best Regards,
>> Yashothara.S
>> Software Engineer
>> WSO2
>> http://wso2.com
>> https://wso2.com/signature
>> <https://www.google.com/url?q=https%3A%2F%2Fwso2.com%2Fsignature=D=1=AFQjCNFqSCK3YQC9g0l53f6yjvsVrxRHXg>
>>
>> On Wed, Sep 21, 2016 at 10:20 AM, Malaka Silva <mal...@wso2.com> wrote:
>>
>>> Hi Yashothara,
>>>
>>> Can you share the config you used.
>>>
>>> On Wed, Sep 21, 2016 at 9:33 AM, Yashothara Shanmugarajah <
>>> yashoth...@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I need to send JSON payload with long (for e.g 1910655) not as
>>>> String. In the back end it changes as a scientific notation 
>>>> (

Re: [Dev] Could not send Long value in ESB 5.0.0 with the payload

2016-09-20 Thread Yashothara Shanmugarajah
Please find the template[1] and proxy[2].

[1]
http://ws.apache.org/ns/synapse;>





  



{

}








<![CDATA[
 payload = mc.getPayloadJSON();

 var requesterId = mc.getProperty("uri.var.requesterId");

 if (requesterId != null && requesterId != ""){
 var requesterIdInt =
parseInt(mc.getProperty("uri.var.requesterId"));
payload["requester_id"] = requesterIdInt;
 }

 mc.setPayloadJSON(payload);
 ]]>

















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

 
 
{$ctx:apiKey}
{$ctx:apiUrl}
 
 
{$ctx:requesterId}
 
 
  
  
 
 
  
   
   



Best Regards,
Yashothara.S
Software Engineer
WSO2
http://wso2.com
https://wso2.com/signature
<https://www.google.com/url?q=https%3A%2F%2Fwso2.com%2Fsignature=D=1=AFQjCNFqSCK3YQC9g0l53f6yjvsVrxRHXg>

On Wed, Sep 21, 2016 at 10:20 AM, Malaka Silva <mal...@wso2.com> wrote:

> Hi Yashothara,
>
> Can you share the config you used.
>
> On Wed, Sep 21, 2016 at 9:33 AM, Yashothara Shanmugarajah <
> yashoth...@wso2.com> wrote:
>
>> Hi,
>>
>> I need to send JSON payload with long (for e.g 1910655) not as
>> String. In the back end it changes as a scientific notation (1.996356E10)
>> in ESB 5.0.0. Is there any way to resolve this?
>>
>> Thanks.
>>
>> Best Regards,
>> Yashothara.S
>> Software Engineer
>> WSO2
>> http://wso2.com
>> https://wso2.com/signature
>> <https://www.google.com/url?q=https%3A%2F%2Fwso2.com%2Fsignature=D=1=AFQjCNFqSCK3YQC9g0l53f6yjvsVrxRHXg>
>>
>
>
>
> --
>
> 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 mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Could not send Long value in ESB 5.0.0 with the payload

2016-09-20 Thread Yashothara Shanmugarajah
Hi,

I need to send JSON payload with long (for e.g 1910655) not as String.
In the back end it changes as a scientific notation (1.996356E10) in
ESB 5.0.0. Is there any way to resolve this?

Thanks.

Best Regards,
Yashothara.S
Software Engineer
WSO2
http://wso2.com
https://wso2.com/signature

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


Re: [Dev] WSO2 Committers += Heshitha Hettihewa

2016-09-12 Thread Yashothara Shanmugarajah
Congrats Hetti :)

Best Regards,
Yashothara.S
Software Engineer
WSO2
http://wso2.com
https://wso2.com/signature


On Mon, Sep 12, 2016 at 11:55 AM, Nandika Jayawardana 
wrote:

> Hi all,
>
> It is my pleasure to welcome Heshitha Hettihewa as a WSO2 Committer.
> Heshitha has been the leading contributor to Business Process Server
> tooling effort and in recognition of his contributions, he has been voted
> as a Committer.
>
> Heshitha, welcome aboard and keep up the good work.
>
> Regards,
> Nandika
>
> --
> Nandika Jayawardana
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
>
> ___
> 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] WSO2 Committers += Hariprasath Thanarajah

2016-08-31 Thread Yashothara Shanmugarajah
Congratulations Hariprasath.

/ Best Regards,
Yashothara.S
Software Engineer
WSO2
http://wso2.com

On Thu, Sep 1, 2016 at 9:31 AM, Malaka Silva  wrote:

> Hi Devs,
>
> Its my pleasure to welcome Hariprasath Thanarajah as a WSO2 Committer.
>
> He has been working with the WSO2 Platform Extensions Team and has
> contributed immensely to  ESB and IS product extensions, He is a very
> dedicated, passionate and committed individual who is ready to
> take challengers.
>
> Hariprasath, welcome aboard and keep up the good work.
>
> 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/
> 
> https://store.wso2.com/store/
>
> Don't make Trees rare, we should keep them with care
>
> ___
> 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] no viable alternative at input @import

2016-06-17 Thread Yashothara Shanmugarajah
Hi,

You have only two streams ('bro.in.ssh.log:1.0.0 and bro.out.ssh.log:1.0.0).
In this case you are using attribute name as "id.orig_h". In Siddhi
definition we can't give attribute name as like that. You can not use .
(full stop) in our attribute definition. You can use _ (underscore).

Thanks.

Best Regards,
Yashothara.S

Software Engineer
WSO2


On Fri, Jun 17, 2016 at 11:34 AM, Aneela Safdar  wrote:

> Hi,
>
> I am a newbie here and trying to write a simple siddhi query by simply
> importing a custom mapped stream. But as soon as I import it and validate
> query, it gives above error.
>
> My complete query however is
>
> @Import('bro.in.ssh.log:1.0.0')
> define stream inStream (ts string, uid string, id.orig_h string, id.orig_p
> int, id.resp_h string, id.resp_p int, version int, client string, server
> string, cipher_alg string, mac_alg string, compression_alg string, kex_alg
> string, host_key_alg string, host_key string);
>
> @Export('bro.out.ssh.log:1.0.0')
> define stream outStream (ts string, ssh_logins int);
>
> from inStream
> select dateFormat (ts,'-MM-dd HH:mm') as formatedTs, count
> group by formatedTs
> insert into outStream;
>
> All I want to do is to count number of records in a log for a single
> minute and export that time and count to an output Stream. But I am getting
> errors even at the very first line.
>
> Regards, Aneela Safdar
>
> ___
> 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] [CEP] Dynamic key and values support in CEP output adapter

2016-06-10 Thread Yashothara Shanmugarajah
Hi,

In CEP output adapter, we give values for predefined parameters. But we
cant add dynamic parameters and values for that parameters. Is there any
way to add dynamic parameters when we configure output adapter? Through
that we can give parameter name and values.

@Rajjaz Please clarify whether it is your requirement.

Best Regards,
Yashothara.S

Software Engineer
WSO2


On Fri, Jun 10, 2016 at 12:14 PM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

> HI Rajjaz,
>
> I am not clear about your requirement.. Can you explain your requirement
> please ?
>
> Thanks,
> Mohan
>
>
> On Fri, Jun 10, 2016 at 11:21 AM, Rajjaz Mohammed  wrote:
>
>> Hi All,
>>
>> I'm developing File event publisher as an analytics extension. I have the
>> requirement to get the key and  values dynamically. How can achieve this in
>> CEP? any idea?
>>
>> eg:
>> uniqueID1--> filePath1
>> uniqueID2--> filePath2
>> uniqueID3--> filePath3
>> uniqueID4--> filePath4
>>
>>
>> --
>> Thank you
>> Best Regards
>>
>> *Rajjaz HM*
>> Associate Software Engineer
>> Platform Extension Team
>> WSO2 Inc. 
>> lean | enterprise | middleware
>> Mobile | +94752833834|+94777226874
>> Email   | raj...@wso2.com
>> LinkedIn  | Blogger
>>  | WSO2 Profile
>> 
>>
>
>
>
> --
> *V. Mohanadarshan*
> *Associate Tech Lead,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>
> ___
> 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] Encrypting VFS URL

2016-06-09 Thread Yashothara Shanmugarajah
As Isuru mentioned we can fetch parameters from the registry. In file
connector also we have VFS sending facility. We can give values from
Postman. But I am not sure we can use vault-lookup things in that.

Thanks.

Best Regards,
Yashothara.S

Software Engineer
WSO2


On Fri, Jun 10, 2016 at 9:51 AM, Isuru Udana  wrote:

> Hi Manu,
>
> Values for these parameters are set at the deploy time and can only have
> static values.
> Unfortunately there is no way achieve this using vfs proxy.
>
> In inbound endpoints, we have provided a way to fetch parameters from the
> registry.
> However still we cannot use expressions like vault-lookup for inbound
> parameters.
>
> Thanks.
>
>
> On Fri, Jun 10, 2016 at 2:48 AM, Manuranga Perera  wrote:
>
>> I have a FTP secured by a password/username. I want to secure the
>> password.I can use vfs encrypt utils [1], but it is trivially decodable.
>>
>> Is there a way to use a secure vault for this?
>>
>> I tried following
>>
>> http://ws.apache.org/ns/synapse; name="vfsy"
>> transports="https http vfs" startOnLoad="true" trace="disable">
>>
>>   
>>  
>>   
>>
>>
>> *{wso2:vault-lookup('vfsUrl')}*
>>text/plain
>>...
>> 
>>
>> but unfortunately that didn't work
>>
>> [2016-06-09] ERROR - VFSTransportListener Repeatedly failed to resolve
>> the file URI: {wso2:vault-lookup('vfsUrl')}
>> org.apache.commons.vfs2.FileSystemException: Could not find file with URI
>> "{wso2:vault-lookup('vfsUrl')}" because it is a relative path, and no base
>> URI was provided.
>>
>>
>> [1]
>> http://wso2.com/library/articles/2012/01/wso2-esb-example-file-exchanging-hub-part-1/
>>
>> --
>> With regards,
>> *Manu*ranga Perera.
>>
>> phone : 071 7 70 20 50
>> mail : m...@wso2.com
>>
>
>
>
> --
> *Isuru Udana*
> Technical Lead
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Siddhi] Group behavior in Timewindow

2016-06-02 Thread Yashothara Shanmugarajah
Hi Liangfei.Su,

In this case you are using Time Window. The behavior of the Time Window is
giving out put for each event. Because it is moving window. If you want to
get only 15 events as results you have to use TimeBatch Window. Even you
are grouping the event using EventName, the output event will occur to
every event as it is moving window.

Thanks.

Best Regards,
Yashothara.S

Software Engineer
WSO2


On Fri, Jun 3, 2016 at 5:14 AM, Liangfei.Su  wrote:

> Hi,
>
> I found an issue https://github.com/wso2/siddhi/issues/91 reporting the
> group behavior of time window in siddhi doesnt work as expected. I see the
> same issue, this github issue has been there for months, anybody could help
> explain?
>
> The reporter using siddhi 3.0.3 while i use siddhi 3.0.5.
> Grouping doesnt' work correct in window looks like a P1 issue...
>
>
> Thanks,
> Ralph
>
> ___
> 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] Working With VFS Sender in ESB

2016-04-24 Thread Yashothara Shanmugarajah
Hi,

As the summary of my results of file connector (file move), herewith I have
attached two graphs which is specifying heap memory usage when streaming in
default VFS sender in ESB and using File connector.

Best Regards,
Yashothara.S

Software Engineer
WSO2


On Mon, Apr 25, 2016 at 6:23 AM, Malaka Silva <mal...@wso2.com> wrote:

> Yashothara the idea should be if this (VFS sender) is currently not
> supported with file connector, incorporate the functionality to the
> connector.
>
> On Sun, Apr 24, 2016 at 6:04 PM, Yashothara Shanmugarajah <
> yashoth...@wso2.com> wrote:
>
>> This was default vfs sender. But I have used file connector as the sender
>> and I got snapshots for that. I will update the graph for file connector
>> soon.
>>
>> Thank you.
>>
>> Best Regards,
>> Yashothara.S
>>
>> Software Engineer
>> WSO2
>>
>>
>> On Sun, Apr 24, 2016 at 8:03 AM, Malaka Silva <mal...@wso2.com> wrote:
>>
>>> Did you use fileconnector as the sender? or default vfs sender?
>>>
>>> On Fri, Apr 22, 2016 at 1:43 PM, Yashothara Shanmugarajah <
>>> yashoth...@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> As the summary of my results herewith I have attached two graphs which
>>>> is specifying heap memory usage when streaming and not streaming.
>>>>
>>>> Best Regards,
>>>> Yashothara.S
>>>>
>>>> Software Engineer
>>>> WSO2
>>>>
>>>>
>>>> On Tue, Apr 19, 2016 at 12:16 PM, Yashothara Shanmugarajah <
>>>> yashoth...@wso2.com> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I am testing VFS sender in ESB using different set of files with
>>>>> different sizes (10MB to 5 GB which include zip file and txt files) by
>>>>> putting streaming as true and false. When streaming is false and normal
>>>>> configuration (*-Xms256m -Xmx512m -XX:MaxPermSize=256m)* for ESB heap
>>>>> memory allocation until 250MB file was worked fine. After that it gave out
>>>>> of memory issue. Then after changing the configuration to heap memory
>>>>> allocation (*-Xms2048m -Xmx2048m -XX:MaxPermSize=1024m*) until 1 GB
>>>>> zip file it worked fine. But 1 GB txt file got out of memory issue.
>>>>>
>>>>> But when streaming is true until 5 GB it worked fine. I checked all
>>>>> these scenarios with jconsole and got snapshot in that period. When
>>>>> streaming is true i got 500MB heap memory usage for 5 GB data. But around 
>>>>> 1
>>>>> GB memory space is used when I test 1 Gb file without Streaming.
>>>>>
>>>>> Herewith I have attached snapshots of jconsole.
>>>>>
>>>>> Thanks.
>>>>>
>>>>> Best Regards,
>>>>> Yashothara.S
>>>>>
>>>>> Software Engineer
>>>>> WSO2
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> 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/>
>>> https://store.wso2.com/store/
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>
>>
>
>
> --
>
> 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/>
> https://store.wso2.com/store/
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Working With VFS Sender in ESB

2016-04-24 Thread Yashothara Shanmugarajah
This was default vfs sender. But I have used file connector as the sender
and I got snapshots for that. I will update the graph for file connector
soon.

Thank you.

Best Regards,
Yashothara.S

Software Engineer
WSO2


On Sun, Apr 24, 2016 at 8:03 AM, Malaka Silva <mal...@wso2.com> wrote:

> Did you use fileconnector as the sender? or default vfs sender?
>
> On Fri, Apr 22, 2016 at 1:43 PM, Yashothara Shanmugarajah <
> yashoth...@wso2.com> wrote:
>
>> Hi,
>>
>> As the summary of my results herewith I have attached two graphs which is
>> specifying heap memory usage when streaming and not streaming.
>>
>> Best Regards,
>> Yashothara.S
>>
>> Software Engineer
>> WSO2
>>
>>
>> On Tue, Apr 19, 2016 at 12:16 PM, Yashothara Shanmugarajah <
>> yashoth...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> I am testing VFS sender in ESB using different set of files with
>>> different sizes (10MB to 5 GB which include zip file and txt files) by
>>> putting streaming as true and false. When streaming is false and normal
>>> configuration (*-Xms256m -Xmx512m -XX:MaxPermSize=256m)* for ESB heap
>>> memory allocation until 250MB file was worked fine. After that it gave out
>>> of memory issue. Then after changing the configuration to heap memory
>>> allocation (*-Xms2048m -Xmx2048m -XX:MaxPermSize=1024m*) until 1 GB zip
>>> file it worked fine. But 1 GB txt file got out of memory issue.
>>>
>>> But when streaming is true until 5 GB it worked fine. I checked all
>>> these scenarios with jconsole and got snapshot in that period. When
>>> streaming is true i got 500MB heap memory usage for 5 GB data. But around 1
>>> GB memory space is used when I test 1 Gb file without Streaming.
>>>
>>> Herewith I have attached snapshots of jconsole.
>>>
>>> Thanks.
>>>
>>> Best Regards,
>>> Yashothara.S
>>>
>>> Software Engineer
>>> WSO2
>>>
>>>
>>
>
>
> --
>
> 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/>
> https://store.wso2.com/store/
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Working With VFS Sender in ESB

2016-04-22 Thread Yashothara Shanmugarajah
Hi,

As the summary of my results herewith I have attached two graphs which is
specifying heap memory usage when streaming and not streaming.

Best Regards,
Yashothara.S

Software Engineer
WSO2


On Tue, Apr 19, 2016 at 12:16 PM, Yashothara Shanmugarajah <
yashoth...@wso2.com> wrote:

> Hi all,
>
> I am testing VFS sender in ESB using different set of files with different
> sizes (10MB to 5 GB which include zip file and txt files) by putting
> streaming as true and false. When streaming is false and normal
> configuration (*-Xms256m -Xmx512m -XX:MaxPermSize=256m)* for ESB heap
> memory allocation until 250MB file was worked fine. After that it gave out
> of memory issue. Then after changing the configuration to heap memory
> allocation (*-Xms2048m -Xmx2048m -XX:MaxPermSize=1024m*) until 1 GB zip
> file it worked fine. But 1 GB txt file got out of memory issue.
>
> But when streaming is true until 5 GB it worked fine. I checked all these
> scenarios with jconsole and got snapshot in that period. When streaming is
> true i got 500MB heap memory usage for 5 GB data. But around 1 GB memory
> space is used when I test 1 Gb file without Streaming.
>
> Herewith I have attached snapshots of jconsole.
>
> Thanks.
>
> Best Regards,
> Yashothara.S
>
> Software Engineer
> WSO2
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-04-04 Thread Yashothara Shanmugarajah
Yes Malaka

Best Regards,
Yashothara.S

Software Engineer
WSO2


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

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


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

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

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


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

Re: [Dev] [Automation Framework]

2016-04-03 Thread Yashothara Shanmugarajah
Thanks Rajjaz

Best Regards,
Yashothara.S

Software Engineer
WSO2


On Fri, Apr 1, 2016 at 5:05 PM, Rajjaz Mohammed <raj...@wso2.com> wrote:

> Hi Yashothara,
>
> When your running the integration test ESB will start with axis2 service
> to test the synapse samples[1] in port 9000 because these samples[1] are
> written to test the service running on port 9000. so if you want to remove
> it you need to edit org.wso2.carbon.esbESBIntegrationTest.
>
> test/resources/artifacts/ESB/samples/synapse_sample_xx.xml
>
> On Fri, Apr 1, 2016 at 4:29 PM, Yashothara Shanmugarajah <
> yashoth...@wso2.com> wrote:
>
>> Hi,
>>
>> Shall I know the purpose of having "test_axis2_server_9000.xml" when we
>> are doing automation test? It is calling in
>> "org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server"
>>
>>
>> When I delete this file for running automation test in connector, it is
>> give giving error like below.
>>
>> ERROR
>> {org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server}
>> -  Error while initializing the configuration context
>> java.io.FileNotFoundException:
>> /home/yasho/Videos/servicenow/servicenow-connector/servicenow-connect-1.0.0/org.wso2.carbon.connector/src/test/resources/artifacts/AXIS2/config/test_axis2_server_9000.xml
>> (No such file or directory)
>> at java.io.FileInputStream.open(Native Method)
>> at java.io.FileInputStream.(FileInputStream.java:146)
>> at java.io.FileInputStream.(FileInputStream.java:101)
>> at
>> org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.copyResourceToFileSystem(SampleAxis2Server.java:152)
>> at
>> org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.(SampleAxis2Server.java:69)
>> at
>> org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.(SampleAxis2Server.java:57)
>> at
>> org.wso2.carbon.automation.core.PlatformExecutionManager.startSimpleAxis2Server(PlatformExecutionManager.java:227)
>> at
>> org.wso2.carbon.automation.core.PlatformExecutionManager.startSevers(PlatformExecutionManager.java:190)
>> at
>> org.wso2.carbon.automation.core.PlatformExecutionManager.onExecutionStart(PlatformExecutionManager.java:76)
>> at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
>> at org.testng.TestNG.run(TestNG.java:983)
>> at
>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
>> at
>> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
>> at
>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>> at
>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>> at
>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>> [2016-04-01 16:25:35,905]  INFO
>> {org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server}
>> -  Starting sample Axis2 server
>> org.apache.maven.surefire.util.SurefireReflectionException:
>> java.lang.reflect.InvocationTargetException; nested exception is
>> java.lang.reflect.InvocationTargetException: null
>> java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>> at
>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>> at
>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>> a

[Dev] [Automation Framework]

2016-04-01 Thread Yashothara Shanmugarajah
Hi,

Shall I know the purpose of having "test_axis2_server_9000.xml" when we are
doing automation test? It is calling in
"org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server"


When I delete this file for running automation test in connector, it is
give giving error like below.

ERROR
{org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server}
-  Error while initializing the configuration context
java.io.FileNotFoundException:
/home/yasho/Videos/servicenow/servicenow-connector/servicenow-connect-1.0.0/org.wso2.carbon.connector/src/test/resources/artifacts/AXIS2/config/test_axis2_server_9000.xml
(No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:146)
at java.io.FileInputStream.(FileInputStream.java:101)
at
org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.copyResourceToFileSystem(SampleAxis2Server.java:152)
at
org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.(SampleAxis2Server.java:69)
at
org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.(SampleAxis2Server.java:57)
at
org.wso2.carbon.automation.core.PlatformExecutionManager.startSimpleAxis2Server(PlatformExecutionManager.java:227)
at
org.wso2.carbon.automation.core.PlatformExecutionManager.startSevers(PlatformExecutionManager.java:190)
at
org.wso2.carbon.automation.core.PlatformExecutionManager.onExecutionStart(PlatformExecutionManager.java:76)
at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
at org.testng.TestNG.run(TestNG.java:983)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
[2016-04-01 16:25:35,905]  INFO
{org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server}
-  Starting sample Axis2 server
org.apache.maven.surefire.util.SurefireReflectionException:
java.lang.reflect.InvocationTargetException; nested exception is
java.lang.reflect.InvocationTargetException: null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: java.lang.NullPointerException
at org.apache.axis2.engine.ListenerManager.init(ListenerManager.java:74)
at
org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.start(SampleAxis2Server.java:85)
at
org.wso2.carbon.automation.core.PlatformExecutionManager.startSimpleAxis2Server(PlatformExecutionManager.java:228)
at
org.wso2.carbon.automation.core.PlatformExecutionManager.startSevers(PlatformExecutionManager.java:190)
at
org.wso2.carbon.automation.core.PlatformExecutionManager.onExecutionStart(PlatformExecutionManager.java:76)
at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
at org.testng.TestNG.run(TestNG.java:983)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)



Shall I know what is the purpose of this file?

Thanks.

Best Regards,
Yashothara.S

Software Engineer
WSO2
___
Dev mailing list
Dev@wso2.org

Re: [Dev] [Test Automation Framework] Compilation Error while building

2016-02-18 Thread Yashothara Shanmugarajah
Hi,

I could build Test Automation Framework 4.2.5 which is in platform
directory.

Thank you.

Best Regards,
Yashothara.S

Software Engineer
WSO2


On Tue, Feb 16, 2016 at 7:42 AM, Yashothara Shanmugarajah <
yashoth...@wso2.com> wrote:

> Hi Iqbal,
>
> I had build from SVN directory which is mentioned in the Test Automation
> Framework directory. Herewith I have attached the screen shot of the error.
> Today I have tested with recent git repository. It is also giving error.
>
> Thank you.
>
> Best Regards,
> Yashothara.S
>
> Software Engineer
> WSO2
>
>
> On Mon, Feb 15, 2016 at 6:51 PM, Irham Iqbal <iq...@wso2.com> wrote:
>
>> Hi Yashothara,
>>
>> Did you try to build the latest version from git ?. Please share the full
>> stack trace.
>>
>> Thanks,
>> iqbal
>>
>> On Mon, Feb 15, 2016 at 3:57 AM, Yashothara Shanmugarajah <
>> yashoth...@wso2.com> wrote:
>>
>>> Hi,
>>> I have already build carbon kernel 4.2.0 in JDK 1.6 and maven 3.0.4.
>>> After that I went  to *Platform* and build the modules listed below
>>> accordingly:parent, dependencies, service-stubs and components.
>>>
>>> Even though I could not build Test Automation Frame work. It is giving
>>> error in Test API. The following error came when I try to build it.
>>>
>>> [ERROR]Could not resolve dependencies for project
>>> org.wso2.carbon.automation:org.wso2.carbon.automation.api:jar:4.2.0-SNAPSHOT:
>>>
>>> Like that it says most of the jar files could not be resolved.
>>>
>>> Best Regards,
>>> Yashothara.S
>>>
>>> Software Engineer
>>> WSO2
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Irham Iqbal
>> Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>> phone: +94 777888452
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Test Automation Framework] Compilation Error while building

2016-02-14 Thread Yashothara Shanmugarajah
Hi,
I have already build carbon kernel 4.2.0 in JDK 1.6 and maven 3.0.4.
After that I went  to *Platform* and build the modules listed below
accordingly:parent, dependencies, service-stubs and components.

Even though I could not build Test Automation Frame work. It is giving
error in Test API. The following error came when I try to build it.

[ERROR]Could not resolve dependencies for project
org.wso2.carbon.automation:org.wso2.carbon.automation.api:jar:4.2.0-SNAPSHOT:

Like that it says most of the jar files could not be resolved.

Best Regards,
Yashothara.S

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


Re: [Dev] [Carbon-Kernel 4.2.0] Compilation Error while building

2016-02-11 Thread Yashothara Shanmugarajah
Hi,

I have tried with 3.0.4. However I too got the following errors when
attempting to build. I have built carbon 4.2.0.


[ERROR]
[ERROR]
/home/yasho/yashothara/CarbonClone/Carbon-kernel-4.2.0/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[12,33]
Ticket is internal proprietary API and may be removed in a future release
[ERROR]

Best Regards,
Yashothara.S

Software Engineer
WSO2


On Thu, Feb 11, 2016 at 3:27 PM, Chathurika De Silva 
wrote:

> Hi Madhawa
>
> This blog might be a help as well [1]
>
> [1] https://dzone.com/articles/how-build-wso2-carbon-420
>
> Regards
> Erandi
>
> On Thu, Feb 11, 2016 at 3:24 PM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Madhawa,
>>
>> Can you try to build with some maven 3.0.x version ? According to [1]
>> that's the recommendation. I've been able to build the kernel with 3.0.4
>> version.
>>
>> [1] https://docs.wso2.com/display/Carbon420/Installation+Prerequisites
>>
>> Regards,
>> TharinduE
>>
>> On Thu, Feb 11, 2016 at 3:18 PM, Madhawa Perera 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm getting following compilation error when building the Carbon Kernel
>>> 4.2.0 from source. I'm using apache maven 3.3.9 and jdk 1.7.0_80
>>>
>>> The error that I'm getting is as follows
>>>
>>> [ERROR] COMPILATION ERROR :
>>> [INFO]
>>> 
>>> [ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-compiler-plugin:2.1:compile
>>> (default-compile) on project wss4j: Compilation failure: Compilation
>>> failure:
>>> [ERROR]
>>> /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[10,24]
>>> EncryptionKey is internal proprietary API and may be removed in a future
>>> release
>>>
>>> Further it gives following warnings as well .
>>>
>>> [INFO] --- maven-pmd-plugin:2.5:pmd (pmd) @ wss4j ---
>>> [WARNING] File encoding has not been set, using platform encoding UTF-8,
>>> i.e. build is platform dependent!
>>>
>>> [WARNING] Error while parsing
>>> /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/KerberosTokenPrincipal.java:
>>> Can't use annotations when running in JDK 1.4 mode!
>>>
>>> [WARNING] Error while parsing
>>> /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbSessionCache.java:
>>> Can't use generics unless running in JDK 1.5 mode!
>>>
>>> Is this a problem with maven and jdk versions? The prerequisites
>>> documentation suggests maven 3.0.x and has mentioned that jdk 1.7 is
>>> compatible.
>>>
>>> Thank you
>>> Regards,
>>>
>>> --
>>> Madhawa Perera
>>> *Software Engineer*
>>> Mobile : +94 (0) 773655496
>>> <%2B94%20%280%29%20773%20451194>
>>> madha...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Tharindu Edirisinghe
>> Software Engineer | WSO2 Inc
>> Platform Security Team
>> Blog : tharindue.blogspot.com
>> mobile : +94 775181586
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Chathurika Erandi*
> Software Engineer,
> WSO2 Inc.
>
> *E-mail:* chathuri...@wso2.com
> *Mobile: *+94714 328 612
> *Blog*: chathurikaerandi.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