Re: [Dev] How to define custom types in ballerina

2018-01-04 Thread Rajith Vitharana
On 5 January 2018 at 09:04, Rajith Vitharana <raji...@wso2.com> wrote:

> Hi Shazni,
>
> Yes, you can, those are called structs, you can find a sample in [1]. For
> the second question what you have to do is as follows
>
> struct Person {
> string firstname;
> string lastname;
> }
>
> function  getFirstName() (string) {
> return p1.firstname;
> }
>
> so the invocation would be as follows
>
> function main(string[] args) {
> Person person = { firstName:"abc", lasstName:"cde"};
> string firstName = person.getFirstName();
> }
>
> What we are doing here is we are binding the function to the given struct
> type inside the angle brackets, so that the function needs to be invoked on
> top of that struct type object. So inside the function, you can use that
> object as well.
> Hope this helps.
>
> [1] - https://ballerinalang.org/docs/by-example/structs
>
> Thanks,
>
> On 5 January 2018 at 07:58, Shazni Nazeer <sha...@wso2.com> wrote:
>
>> I am curious to know whether a developer can define his/her own types,
>> under his preferred package, using ballerina? Excuse me if this is a basic
>> question. I couldn't figure it out looking at the docs at [1]. Also, we
>> have the type 'Time' with a given set of utility methods by default. Say if
>> I want a type 'Calendar'. Can I do that? If yes, is there any examples?
>>
>> [1] https://ballerinalang.org/docs/
>>
>> --
>> Shazni Nazeer
>>
>> Mob : +94 37331
>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>>
>> Blogs :
>>
>> https://medium.com/@mshazninazeer
>> http://shazninazeer.blogspot.com
>>
>> <http://wso2.com/signature>
>>
>
>
>
> --
> Rajith Vitharana
>
> Associate Technical Lead,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
> <http://wso2.com/signature>
>



-- 
Rajith Vitharana

Associate Technical Lead,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to define custom types in ballerina

2018-01-04 Thread Rajith Vitharana
Hi Shazni,

Yes, you can, those are called structs, you can find a sample in [1]. For
the second question what you have to do is as follows

struct Person {
string firstname;
string lastname;
}

function  getFirstName() (string) {
return p1.firstname;
}

so the invocation would be as follows

function main(string[] args) {
Person person = { firstName:"abc", lasstName:"cde"};
string firstName = person.getFirstName();
}

What we are doing here is we are binding the function to the given struct
type inside the angle brackets, so that the function needs to be invoked on
top of that struct type object. So inside the function, you can use that
object as well.
Hope this helps.

[1] - https://ballerinalang.org/docs/by-example/structs

Thanks,

On 5 January 2018 at 07:58, Shazni Nazeer <sha...@wso2.com> wrote:

> I am curious to know whether a developer can define his/her own types,
> under his preferred package, using ballerina? Excuse me if this is a basic
> question. I couldn't figure it out looking at the docs at [1]. Also, we
> have the type 'Time' with a given set of utility methods by default. Say if
> I want a type 'Calendar'. Can I do that? If yes, is there any examples?
>
> [1] https://ballerinalang.org/docs/
>
> --
> Shazni Nazeer
>
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>
> Blogs :
>
> https://medium.com/@mshazninazeer
> http://shazninazeer.blogspot.com
>
> <http://wso2.com/signature>
>



-- 
Rajith Vitharana

Associate Technical Lead,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Data services are not hot deploying

2018-01-03 Thread Rajith Vitharana
Hi Godwin,

AFAIR deployment flows are different for ESB artifacts and DSS artifacts,
DSS artifacts are getting deployed via axis2 deployer(that is it will pick
up changes from file system and get deployed, so with car files, this won't
happen as the actual file does not get changed) whereas when we change ESB
artifacts, it will directly invoke the deployment flow. This was the
behavior we had and since it is not recommended to update artifacts within
a car file, we haven't done any changes to DSS behavior, hence the
difference.

Thanks,

On 4 January 2018 at 05:41, Godwin Shrimal <god...@wso2.com> wrote:

> Hi Pubudu,
>
> Yeah, I know it's not recommending, But when we are doing testing, think
> you want to add a small log to the proxy, you simply can add it via UI and
> test it.
>
> My Question is not about the recommendation, it's about why DSS behaving
> differently than the proxy services.
>
> Thanks
> Godwin
>
> On Thu, Jan 4, 2018 at 12:46 AM, Pubudu Gunatilaka <pubu...@wso2.com>
> wrote:
>
>> Hi Godwin,
>>
>> AFAIK, we should not change any artifact which is deployed using a CAR
>> file. This is not recommended. I am not sure about the reasons for this
>> behavior.
>>
>> Thank you!
>>
>> On Tue, Jan 2, 2018 at 12:45 PM, Godwin Shrimal <god...@wso2.com> wrote:
>>
>>> Hi Devs,
>>>
>>> We can change proxy services (Deployed using CAR) from UI and its
>>> getting hot deploy after changes. But we can't observe same with Data
>>> Services. Any reason for this ? Is it the expected behaviour ?
>>>
>>> Thanks
>>> Godwin
>>>
>>> --
>>> *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>
>>>
>>
>>
>>
>> --
>> *Pubudu Gunatilaka*
>> Committer and PMC Member - Apache Stratos
>> Senior Software Engineer
>> WSO2, Inc.: http://wso2.com
>> mobile : +94774078049 <%2B94772207163>
>>
>>
>
>
> --
> *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
>
>


-- 
Rajith Vitharana

Associate Technical Lead,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Rukshani Athapathu

2017-11-13 Thread Rajith Vitharana
Congratulations Rukshani :)

On 13 November 2017 at 13:20, Gihan Anuruddha <gi...@wso2.com> wrote:

> Hi Devs,
>
> It is my pleasure to welcome Rukshani Athapathu as a WSO2 Committer.
> Rukshani has made some great contributions to product-EI and Ballerina
> during the last few months and in recognition of her commitment and
> contributions, she has been voted as a Committer for WSO2.
>
> @Rukshani, welcome aboard and keep up the good work.
>
> Regards,
> Gihan
>
> --
> W.G. Gihan Anuruddha
> Associate Technical Lead | WSO2, Inc.
> M: +94772272595
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Associate Technical Lead,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] String to JSON in Ballerina 0.89

2017-10-30 Thread Rajith Vitharana
Hi Gayan,

You can use conversion syntax() to achieve this. Ex -

function main(string[] args) {
string ss = "{'ab':'ddd'}";
json jsonVal;
jsonVal, _  =  ss;
println(jsonVal);
}


Thanks,

On 30 October 2017 at 16:39, Gayan Chamara <gaya...@wso2.com> wrote:

> Hi,
> Is there a way to convert JSON string into ballerina json type in
> ballerina 0.89? I couldn't find a suitable method in the docs.
>
> Thanks,
> Gayan.
>
> --
> Regards,
>
> *Gayan Chamara*
>
> *Software Engineering Intern*
> *WSO2 Inc.*
>
>
> *Email: gaya...@wso2.com <gaya...@wso2.com> *
> *Mobile : **+94 71 728 5827 <071%20728%205827>*
> <http://wso2.com/signature>
>



-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2017-06-13 Thread Rajith Vitharana
Congratulations Chathurika ... :)

On 13 June 2017 at 11:34, Aparna Karunarathna <apa...@wso2.com> wrote:

> Hi All,
>
> It's my pleasure to announce Chathurika De Silva as a WSO2 Committer. She is
> an active member of EE team and has given a great contribution to ESB, BPS,
> BRS, App Factory product releases.
>
> Congratulations Chathurika and keep up the good work...!
>
> --
> *Regards,*
>
> *Aparna Karunarathna.*
>
>
> *Associate Technical Lead - QAWSO2 Inc.Mobile: 0714002533
> <071%20400%202533>*
>
> * <http://wso2.com/signature>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB 5] Validate Mediator class not found

2017-01-13 Thread Rajith Vitharana
Hi Federico,

Yeah sure open a public jira mentioning ESB and DSS feature versions you
used.

Thanks,

On 13 January 2017 at 03:21, Federico Valeri <fedeval...@gmail.com> wrote:

> OK it works.
> Should I open a bug report?
>
> 2017-01-12 18:00 GMT+01:00 Rajith Vitharana <raji...@wso2.com>:
>
>> jackson-databind_2.6.1.wso2v1 jar file will be in /repository/
>> components/plugins folder, not lib folder, sorry about the mistake.
>>
>> Thanks,
>>
>> On 12 January 2017 at 10:56, Federico Valeri <fedeval...@gmail.com>
>> wrote:
>>
>>> I don't have this JAR in /repository/components/lib.
>>> Anyway I can confirm that after installing "Data Service Hosting"
>>> feature I have two version of the databind bundle.
>>> I need the DSS component for the test but I would prefer to have one
>>> single runtime.
>>>
>>> Still the same error..
>>>
>>> 2017-01-12 16:37 GMT+01:00 Rajith Vitharana <raji...@wso2.com>:
>>>
>>>> Hi Federico,
>>>>
>>>>
>>>>
>>>> On 12 January 2017 at 09:25, Federico Valeri <fedeval...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi, I think that I'm missing the import on jackson-databind with the
>>>>> same version of jackson-core (I have two versions of the databind):
>>>>>
>>>>> - jackson-core_2.6.1.wso2v1 [92]
>>>>> - jackson-databind_2.6.1.wso2v3 [93]
>>>>> - jackson-databind_2.6.1.wso2v1 [94] <-- can't see the filter package
>>>>> here
>>>>>
>>>>> Probably this is due to the DSS feature setup
>>>>> Can I install the DSS feature on top of the ESB?
>>>>>
>>>> Yes you can, but sometimes edge cases like this can happen, I checked
>>>> in the latest DSS as well, even in that, DSS uses jackson-databind version
>>>> 2.6.1.wso2v1
>>>> So for the time being, can you remove that
>>>> jar(jackson-databind_2.6.1.wso2v1) from your
>>>> /repository/components/lib folder and try this?
>>>>
>>>> Note that above suggestion is not recommended if you are using this for
>>>> production like situation, because it may affect new fixes etc.
>>>>
>>>> Thanks,
>>>>
>>>>>
>>>>> --
>>>>> Full output:
>>>>>
>>>>> jackson-core_2.6.1.wso2v1 [92]
>>>>>   Id=92, Status=ACTIVE  Data Root=D:\programs\wso2\wso2esb-
>>>>> 5.0.0\repository\components\default\configuration\org.eclips
>>>>> e.osgi\bundles\92\data
>>>>>   "No registered services."
>>>>>   No services in use.
>>>>>   Exported packages
>>>>> com.fasterxml.jackson.core; version="2.6.1.wso2v1"[exported]
>>>>> com.fasterxml.jackson.core.base; version="2.6.1.wso2v1"[exported]
>>>>> com.fasterxml.jackson.core.filter; version="2.6.1.wso2v1"[exporte
>>>>> d]
>>>>> com.fasterxml.jackson.core.format; version="2.6.1.wso2v1"[exporte
>>>>> d]
>>>>> com.fasterxml.jackson.core.io; version="2.6.1.wso2v1"[exported]
>>>>> com.fasterxml.jackson.core.json; version="2.6.1.wso2v1"[exported]
>>>>> com.fasterxml.jackson.core.sym; version="2.6.1.wso2v1"[exported]
>>>>> com.fasterxml.jackson.core.type; version="2.6.1.wso2v1"[exported]
>>>>> com.fasterxml.jackson.core.util; version="2.6.1.wso2v1"[exported]
>>>>>   No imported packages
>>>>>   No fragment bundles
>>>>>   Named class space
>>>>> jackson-core; bundle-version="2.6.1.wso2v1"[provided]
>>>>>   No required bundles
>>>>>
>>>>> jackson-databind_2.6.1.wso2v3 [93]
>>>>>   Id=93, Status=ACTIVE  Data Root=D:\programs\wso2\wso2esb-
>>>>> 5.0.0\repository\components\default\configuration\org.eclips
>>>>> e.osgi\bundles\93\data
>>>>>   "No registered services."
>>>>>   No services in use.
>>>>>   Exported packages
>>>>> com.fasterxml.jackson.databind; version="2.6.1"[exported]
>>>>> com.fasterxml.jackson.databind.annotation;
>>>>> version="2.6.1"[exported]
>>>>> com.fas

Re: [Dev] [ESB 5] Validate Mediator class not found

2017-01-12 Thread Rajith Vitharana
jackson-databind_2.6.1.wso2v1 jar file will be in
/repository/components/plugins
folder, not lib folder, sorry about the mistake.

Thanks,

On 12 January 2017 at 10:56, Federico Valeri <fedeval...@gmail.com> wrote:

> I don't have this JAR in /repository/components/lib.
> Anyway I can confirm that after installing "Data Service Hosting" feature
> I have two version of the databind bundle.
> I need the DSS component for the test but I would prefer to have one
> single runtime.
>
> Still the same error..
>
> 2017-01-12 16:37 GMT+01:00 Rajith Vitharana <raji...@wso2.com>:
>
>> Hi Federico,
>>
>>
>>
>> On 12 January 2017 at 09:25, Federico Valeri <fedeval...@gmail.com>
>> wrote:
>>
>>> Hi, I think that I'm missing the import on jackson-databind with the
>>> same version of jackson-core (I have two versions of the databind):
>>>
>>> - jackson-core_2.6.1.wso2v1 [92]
>>> - jackson-databind_2.6.1.wso2v3 [93]
>>> - jackson-databind_2.6.1.wso2v1 [94] <-- can't see the filter package
>>> here
>>>
>>> Probably this is due to the DSS feature setup
>>> Can I install the DSS feature on top of the ESB?
>>>
>> Yes you can, but sometimes edge cases like this can happen, I checked in
>> the latest DSS as well, even in that, DSS uses jackson-databind version
>> 2.6.1.wso2v1
>> So for the time being, can you remove that jar(jackson-databind_2.6.1.wso2v1)
>> from your /repository/components/lib folder and try this?
>>
>> Note that above suggestion is not recommended if you are using this for
>> production like situation, because it may affect new fixes etc.
>>
>> Thanks,
>>
>>>
>>> --
>>> Full output:
>>>
>>> jackson-core_2.6.1.wso2v1 [92]
>>>   Id=92, Status=ACTIVE  Data Root=D:\programs\wso2\wso2esb-
>>> 5.0.0\repository\components\default\configuration\org.eclips
>>> e.osgi\bundles\92\data
>>>   "No registered services."
>>>   No services in use.
>>>   Exported packages
>>> com.fasterxml.jackson.core; version="2.6.1.wso2v1"[exported]
>>> com.fasterxml.jackson.core.base; version="2.6.1.wso2v1"[exported]
>>> com.fasterxml.jackson.core.filter; version="2.6.1.wso2v1"[exported]
>>> com.fasterxml.jackson.core.format; version="2.6.1.wso2v1"[exported]
>>> com.fasterxml.jackson.core.io; version="2.6.1.wso2v1"[exported]
>>> com.fasterxml.jackson.core.json; version="2.6.1.wso2v1"[exported]
>>> com.fasterxml.jackson.core.sym; version="2.6.1.wso2v1"[exported]
>>> com.fasterxml.jackson.core.type; version="2.6.1.wso2v1"[exported]
>>> com.fasterxml.jackson.core.util; version="2.6.1.wso2v1"[exported]
>>>   No imported packages
>>>   No fragment bundles
>>>   Named class space
>>> jackson-core; bundle-version="2.6.1.wso2v1"[provided]
>>>   No required bundles
>>>
>>> jackson-databind_2.6.1.wso2v3 [93]
>>>   Id=93, Status=ACTIVE  Data Root=D:\programs\wso2\wso2esb-
>>> 5.0.0\repository\components\default\configuration\org.eclips
>>> e.osgi\bundles\93\data
>>>   "No registered services."
>>>   No services in use.
>>>   Exported packages
>>> com.fasterxml.jackson.databind; version="2.6.1"[exported]
>>> com.fasterxml.jackson.databind.annotation; version="2.6.1"[exported]
>>> com.fasterxml.jackson.databind.cfg; version="2.6.1"[exported]
>>> com.fasterxml.jackson.databind.deser; version="2.6.1"[exported]
>>> com.fasterxml.jackson.databind.deser.impl; version="2.6.1"[exported]
>>> com.fasterxml.jackson.databind.deser.std; version="2.6.1"[exported]
>>> com.fasterxml.jackson.databind.exc; version="2.6.1"[exported]
>>> com.fasterxml.jackson.databind.ext; version="2.6.1"[exported]
>>> com.fasterxml.jackson.databind.introspect; version="2.6.1"[exported]
>>> com.fasterxml.jackson.databind.jsonFormatVisitors;
>>> version="2.6.1"[exported]
>>> com.fasterxml.jackson.databind.jsonschema; version="2.6.1"[exported]
>>> com.fasterxml.jackson.databind.jsontype; version="2.6.1"[exported]
>>> com.fasterxml.jackson.databind.jsontype.impl;
>>> version="2.6.1"[exported]
>>> com.fasterxml.jackson.datab

Re: [Dev] [ESB 5] Validate Mediator class not found

2017-01-12 Thread Rajith Vitharana
v1" [92]>
> com.fasterxml.jackson.core.json; 
> version="2.6.1.wso2v1" [92]>
> com.fasterxml.jackson.core.io; 
> version="2.6.1.wso2v1" [92]>
> com.fasterxml.jackson.core.format; 
> version="2.6.1.wso2v1" [92]>
> com.fasterxml.jackson.core.base; 
> version="2.6.1.wso2v1" [92]>
> com.fasterxml.jackson.core; 
> version="2.6.1.wso2v1" [92]>
> com.fasterxml.jackson.annotation; version="2.6.1.wso2v1"<
> jackson-annotations_2.6.1.wso2v1 [91]>
>   No fragment bundles
>   Named class space
> jackson-databind; bundle-version="2.6.1.wso2v3"[provided]
>   No required bundles
>
> jackson-databind_2.6.1.wso2v1 [94]
>   Id=94, Status=ACTIVE  Data Root=D:\programs\wso2\wso2esb-
> 5.0.0\repository\components\default\configuration\org.
> eclipse.osgi\bundles\94\data
>   "No registered services."
>   No services in use.
>   Exported packages
> com.fasterxml.jackson.databind; version="2.6.1.wso2v1"[exported]
> com.fasterxml.jackson.databind.annotation; version="2.6.1.wso2v1"[
> exported]
> com.fasterxml.jackson.databind.cfg; version="2.6.1.wso2v1"[exported]
> com.fasterxml.jackson.databind.deser; version="2.6.1.wso2v1"[exported]
> com.fasterxml.jackson.databind.deser.impl; version="2.6.1.wso2v1"[
> exported]
> com.fasterxml.jackson.databind.deser.std; version="2.6.1.wso2v1"[
> exported]
> com.fasterxml.jackson.databind.exc; version="2.6.1.wso2v1"[exported]
> com.fasterxml.jackson.databind.ext; version="2.6.1.wso2v1"[exported]
> com.fasterxml.jackson.databind.introspect; version="2.6.1.wso2v1"[
> exported]
> com.fasterxml.jackson.databind.jsonFormatVisitors;
> version="2.6.1.wso2v1"[exported]
> com.fasterxml.jackson.databind.jsonschema; version="2.6.1.wso2v1"[
> exported]
> com.fasterxml.jackson.databind.jsontype; version="2.6.1.wso2v1"[
> exported]
> com.fasterxml.jackson.databind.jsontype.impl; version="2.6.1.wso2v1"[
> exported]
> com.fasterxml.jackson.databind.module; version="2.6.1.wso2v1"[
> exported]
> com.fasterxml.jackson.databind.node; version="2.6.1.wso2v1"[exported]
> com.fasterxml.jackson.databind.ser; version="2.6.1.wso2v1"[exported]
> com.fasterxml.jackson.databind.ser.impl; version="2.6.1.wso2v1"[
> exported]
> com.fasterxml.jackson.databind.ser.std; version="2.6.1.wso2v1"[
> exported]
> com.fasterxml.jackson.databind.type; version="2.6.1.wso2v1"[exported]
> com.fasterxml.jackson.databind.util; version="2.6.1.wso2v1"[exported]
>   Imported packages
> javax.xml.datatype; version="0.0.0" [0]>
> javax.xml.parsers; version="0.0.0" [0]>
> org.w3c.dom.bootstrap; 
> version="0.0.0" [0]>
> org.w3c.dom.ls; version="0.0.0" [0]>
> org.w3c.dom; version="0.0.0" [0]>
> javax.xml.namespace; version="0.0.0" [0]>
> com.fasterxml.jackson.core.util; 
> version="2.6.1.wso2v1" [92]>
> com.fasterxml.jackson.core.type; 
> version="2.6.1.wso2v1" [92]>
> com.fasterxml.jackson.core.json; 
> version="2.6.1.wso2v1" [92]>
> com.fasterxml.jackson.core.io; 
> version="2.6.1.wso2v1" [92]>
> com.fasterxml.jackson.core.format; 
> version="2.6.1.wso2v1" [92]>
> com.fasterxml.jackson.core.base; 
> version="2.6.1.wso2v1" [92]>
> com.fasterxml.jackson.core; 
> version="2.6.1.wso2v1" [92]>
> com.fasterxml.jackson.annotation; version="2.6.1.wso2v1"<
> jackson-annotations_2.6.1.wso2v1 [91]>
>   No fragment bundles
>   Named class space
> jackson-databind; bundle-version="2.6.1.wso2v1"[provided]
>   No required bundles
>
>
> 2017-01-12 16:09 GMT+01:00 Rajith Vitharana <raji...@wso2.com>:
>
>> Hi Federico,
>>
>> You can see which bundle export which package in OSGI console. To do that
>> follow below instructions.
>>
>> 1) Start the server with command "sh wso2server.sh  -DosgiConsole=true"
>> 2) After server started run the command "ss jackson-core" this will show
>> the bundle Id
>> 3) Then run the command "b " ex - b 71
>> 4) Above command will show the exported packages by that bundle. So you
>> can see whether the "com.fasterxml.jackson.core.filter" package is
>> correctly exported there.
>>
>> And furthe

Re: [Dev] [ESB 5] Validate Mediator class not found

2017-01-12 Thread Rajith Vitharana
Hi Federico,

You can see which bundle export which package in OSGI console. To do that
follow below instructions.

1) Start the server with command "sh wso2server.sh  -DosgiConsole=true"
2) After server started run the command "ss jackson-core" this will show
the bundle Id
3) Then run the command "b " ex - b 71
4) Above command will show the exported packages by that bundle. So you can
see whether the "com.fasterxml.jackson.core.filter" package is correctly
exported there.

And further more seems you have installed DSS features in ESB, so can you
try out the same scenario with standalone pack without any feature
installation?

Thanks,

On 12 January 2017 at 08:27, Federico Valeri <fedeval...@gmail.com> wrote:

> The same error shows up even with this:
>
> 
> 
>   
>
> 2017-01-12 10:27 GMT+01:00 Federico Valeri <fedeval...@gmail.com>:
>
>> Hi Rajith, the XSD is also very simple at the moment:
>>
>> 
>> http://ws.apache.org/ns/synapse;>
>>   http://www.w3.org/2001/XMLSchema;>
>> 
>>   
>> 
>>   
>> 
>>   
>> 
>>   
>> 
>>   
>> 
>>   
>> 
>>   
>> 
>>
>> I have the default single node configuration, I only added "Data Service"
>> and "Metrics Group" features.
>> How can I check the osgi bundles that you reported?
>>
>>
>>
>> 2017-01-11 18:53 GMT+01:00 Rajith Vitharana <raji...@wso2.com>:
>>
>>> Hi Federico,
>>>
>>> I tried the same scenario, but it works fine for me, I even checked the
>>> osgi bundles, they are exporting and importing correct packages as expected(
>>> jackson-core_2.6.1.wso2v1.jar exports com.fasterxml.jackson.
>>> core.filter;version="2.6.1.wso2v1"; and jackson-databind_2.6.1.wso2v3.jar
>>> imports com.fasterxml.jackson.core.filter;version="[2.6.1,2.
>>> 6.2)";resolution:=optional)
>>>
>>> So I didn't faced any issues with validate mediator. So will you be able
>>> to share more details about the Car file you are using and the schema 
>>> "RicpagInputXSD"
>>> as well?
>>>
>>> Thanks,
>>>
>>> On 11 January 2017 at 10:11, Federico Valeri <fedeval...@gmail.com>
>>> wrote:
>>>
>>>> Hi all, I'm using the latest ESB version (5.0.0) and I have a strange
>>>> "class not found" error as soon as I deploy a CAR with a really simple
>>>> Validation Mediator (basically it's a cut and paste from the official doc).
>>>> If I remove the validate tag, the deploy complete successfully and it 
>>>> works.
>>>>
>>>> The error:
>>>>
>>>> java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/fil
>>>> ter/TokenFilter
>>>> Caused by: java.lang.ClassNotFoundException:
>>>> com.fasterxml.jackson.core.filter.TokenFilter cannot be found by
>>>> jackson-databind_2.6.1.wso2v1
>>>>
>>>> The code:
>>>>
>>>> 
>>>> 
>>>> 
>>>>   
>>>> http://schemas.xmlsoap.org/soap/envelope/"/>
>>>> 
>>>>   
>>>>   >>> value="true"/>
>>>>   >>> scope="default"/>
>>>> 
>>>>   
>>>>
>>>> What I miss?
>>>> Tnx
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Rajith Vitharana
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc. : wso2.com
>>> Mobile : +94715883223
>>> Blog : http://lankavitharana.blogspot.com/
>>> <http://wso2.com/signature>
>>>
>>
>>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB 5] Validate Mediator class not found

2017-01-11 Thread Rajith Vitharana
Hi Federico,

I tried the same scenario, but it works fine for me, I even checked the
osgi bundles, they are exporting and importing correct packages as
expected(jackson-core_2.6.1.wso2v1.jar
exports com.fasterxml.jackson.core.filter;version="2.6.1.wso2v1";
and jackson-databind_2.6.1.wso2v3.jar
imports 
com.fasterxml.jackson.core.filter;version="[2.6.1,2.6.2)";resolution:=optional)

So I didn't faced any issues with validate mediator. So will you be able to
share more details about the Car file you are using and the schema
"RicpagInputXSD"
as well?

Thanks,

On 11 January 2017 at 10:11, Federico Valeri <fedeval...@gmail.com> wrote:

> Hi all, I'm using the latest ESB version (5.0.0) and I have a strange
> "class not found" error as soon as I deploy a CAR with a really simple
> Validation Mediator (basically it's a cut and paste from the official doc).
> If I remove the validate tag, the deploy complete successfully and it works.
>
> The error:
>
> java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/
> filter/TokenFilter
> Caused by: java.lang.ClassNotFoundException:
> com.fasterxml.jackson.core.filter.TokenFilter cannot be found by
> jackson-databind_2.6.1.wso2v1
>
> The code:
>
> 
> 
> 
>   
> 
> 
>   
>value="true"/>
>scope="default"/>
> 
>   
>
> What I miss?
> Tnx
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Log sql

2016-12-28 Thread Rajith Vitharana
Hi,

Can you try driver level login? for example you can enable logs from mysql
jdbc driver. For that you can specify the url as in [1](more details are in
[3] and [4]). For Oracle you can follow the link [2](see the section with
"Enabling and Using JDBC Logging")

[1]
- jdbc:mysql://host/db?logger=com.mysql.jdbc.log.Slf4JLogger=true
[2] - http://docs.oracle.com/cd/B28359_01/java.111/b31224/diagnose.htm
[3] -
https://dev.mysql.com/doc/connector-j/5.1/en/connector-j-reference-configuration-properties.html
[4] -
http://stackoverflow.com/questions/10903206/enabling-mysql-general-query-log-with-jdbc

Thanks,


On 28 December 2016 at 09:50, Koné Alioune Badara <
kon...@etna-alternance.net> wrote:

> Hi,
>
> How can I display the Sql requests in the logs of wso2 idendity server?
>
> Regards,
>
> Alioune B KONÉ.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] JSON to SOAP conversion issue

2016-12-18 Thread Rajith Vitharana
='utf-8'?>http://schemas.
> xmlsoap.org/soap/envelope/"><
> hello>world
> Unexpected error sending message back
> org.apache.axis2.AxisFault: Failed to submit the response
> at org.apache.synapse.transport.passthru.PassThroughHttpSender.
> handleException(PassThroughHttpSender.java:613)
> at org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(
> PassThroughHttpSender.java:266)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at org.apache.synapse.core.axis2.Axis2Sender.sendBack(
> Axis2Sender.java:222)
> at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(
> Axis2SynapseEnvironment.java:531)
> at org.apache.synapse.mediators.builtin.SendMediator.mediate(
> SendMediator.java:118)
> at org.apache.synapse.mediators.AbstractListMediator.mediate(
> AbstractListMediator.java:97)
> at org.apache.synapse.mediators.AbstractListMediator.mediate(
> AbstractListMediator.java:59)
> at org.apache.synapse.mediators.base.SequenceMediator.mediate(
> SequenceMediator.java:158)
> at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(
> Axis2SynapseEnvironment.java:337)
> 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:261)
> at org.apache.axis2.transport.base.threads.NativeWorkerPool$
> 1.run(NativeWorkerPool.java:172)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.axis2.AxisFault: Can not output XML declaration,
> after other output has already been done.
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> at org.apache.axis2.transport.http.SOAPMessageFormatter.
> writeTo(SOAPMessageFormatter.java:78)
> at org.apache.synapse.transport.passthru.PassThroughHttpSender.
> submitResponse(PassThroughHttpSender.java:555)
> at org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(
> PassThroughHttpSender.java:264)
> ... 16 more
> Caused by: javax.xml.stream.XMLStreamException: Can not output XML
> declaration, after other output has already been done.
> at com.ctc.wstx.sw.BaseStreamWriter.throwOutputError(
> BaseStreamWriter.java:1522)
> at com.ctc.wstx.sw.BaseStreamWriter.reportNwfStructure(
> BaseStreamWriter.java:1551)
> at com.ctc.wstx.sw.BaseStreamWriter.doWriteStartDocument(
> BaseStreamWriter.java:650)
> at com.ctc.wstx.sw.BaseStreamWriter.writeStartDocument(
> BaseStreamWriter.java:638)
> at com.ctc.wstx.sw.BaseStreamWriter.writeStartDocument(
> BaseStreamWriter.java:626)
> at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeStartDocument(
> MTOMXMLStreamWriter.java:277)
> at org.apache.synapse.commons.json.JsonDataSource.serialize(
> JsonDataSource.java:88)
> at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerialize(
> OMSourcedElementImpl.java:691)
> at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(
> OMSerializerUtil.java:562)
> at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(
> OMElementImpl.java:875)
> at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(
> SOAPEnvelopeImpl.java:283)
> at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(
> SOAPEnvelopeImpl.java:245)
> at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(
> OMSerializableImpl.java:193)
> at org.apache.axis2.transport.http.SOAPMessageFormatter.
> writeTo(SOAPMessageFormatter.java:74)
> ... 18 more
> [2016-12-19 00:34:15,315]  INFO - LogMediator To:
> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: ,
> MessageID: urn:uuid:51caa894-6154-4e5d-9440-26c3488788bf, Direction:
> response, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 0,
> ERROR_MESSAGE = 
> Accept:*/*,Content-Type:text/xml,Host:localhost:8283,SOAPAction:, version='1.0' encoding='utf-8'?>http://schemas.xmlsoap.org/soap/envelope/;><
> hello>world
> Unexpected error sending message back, Payload: { "hello" : "world" }
>
>
> Thanks!
> Malintha
>
> --
> Malintha Amarasinghe
> Software Engineer
> *WSO2, Inc. - lean | enterprise | middleware*
> http://wso2.com/
>
> Mobile : +94 712383306 <071%20238%203306>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Validate user against given user store and save correct user domain in saml2-bearer grant type.

2016-12-14 Thread Rajith Vitharana
On 15 December 2016 at 01:11, Farasath Ahamed <farasa...@wso2.com> wrote:

>
>
> On Thu, Dec 15, 2016 at 12:33 PM, Rajith Vitharana <raji...@wso2.com>
> wrote:
>
>>
>>
>> On 15 December 2016 at 00:59, Farasath Ahamed <farasa...@wso2.com> wrote:
>>
>>> On Wed, Dec 14, 2016 at 8:59 PM, Rajith Vitharana <raji...@wso2.com>
>>> wrote:
>>>
>>>> Hi IS team,
>>>>
>>>> In [1] when getting the user, it doesn't validate whether the user is
>>>> in a user store or not. (This happens in saml2-bearer grant type and IS
>>>> trust the saml assertion. It's totally valid not doing this)
>>>>
>>>> but can we give the user the freedom to choose whether to validate the
>>>> user in saml assertion against a given user store or not?
>>>>
>>>
>>>
>>> If we let the user to choose to validate the user against a user store
>>> or not, the assertions coming from trusted IDP for a federated users will
>>> fail if he chooses to validate the user in userstore?
>>>
>> Yes, we can make this configurable and use current behavior as default,
>> If user needs this behavior, he will need to provide the userstore details
>> which he needs the user to be validated against.
>>
>
>
> Hmm that makes sense. But once he enables this option he will no longer be
> able to accept SAML bearer tokens from Federated IDPs (say like Google)
> right?
>
we can make this per IDP right? without making this a global config. so
that he can disable this for google right?

>
>
> What i mean is, when user enables that option, he would only be able to
>>> use assertions issued by IS or a federated IDP that shares a userstore with
>>> IS.
>>>
>>> Instead wouldn't it be better if we only check the user in the user
>>> store if the assertion was issued by us (by us I mean IS that is validating
>>> the SAML assertion). We can check this using the SAML IdpEntityId. For
>>> those assertions not issued by us, we could treat them as coming from a
>>> federated IDP for a federated user.
>>>
>>> In which case it will actually have a valid user and correct user domain
>>>> in the token table, in which case he can generate jwt tokens with required
>>>> claims for that user. Is this a valid scenario? if so can we support this?
>>>>
>>>> Note that since we are taking the user domain from the
>>>> username(subject) in [1], we can send username(saml assertion subject) with
>>>> correct domain(ex: Secondary/username1) in which case it will save the
>>>> correct domain in token table. Hence jwt flow works fine. But I feel like
>>>> it's kind of a hack for this.
>>>>
>>>> I have created a public jira for this in [2]
>>>>
>>>> [1] - https://github.com/wso2/carbon-identity/blob/master/co
>>>> mponents/oauth/org.wso2.carbon.identity.oauth/src/main/java/
>>>> org/wso2/carbon/identity/oauth2/util/OAuth2Util.java#L637
>>>>
>>>> [2] - https://wso2.org/jira/browse/IDENTITY-5483
>>>>
>>>>
>>>> Thanks
>>>>
>>>> --
>>>> Rajith Vitharana
>>>>
>>>> Senior Software Engineer,
>>>> WSO2 Inc. : wso2.com
>>>> Mobile : +94715883223
>>>> Blog : http://lankavitharana.blogspot.com/
>>>> <http://wso2.com/signature>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>
>>
>> --
>> Rajith Vitharana
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94715883223
>> Blog : http://lankavitharana.blogspot.com/
>> <http://wso2.com/signature>
>>
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Validate user against given user store and save correct user domain in saml2-bearer grant type.

2016-12-14 Thread Rajith Vitharana
On 15 December 2016 at 00:59, Farasath Ahamed <farasa...@wso2.com> wrote:

> On Wed, Dec 14, 2016 at 8:59 PM, Rajith Vitharana <raji...@wso2.com>
> wrote:
>
>> Hi IS team,
>>
>> In [1] when getting the user, it doesn't validate whether the user is in
>> a user store or not. (This happens in saml2-bearer grant type and IS trust
>> the saml assertion. It's totally valid not doing this)
>>
>> but can we give the user the freedom to choose whether to validate the
>> user in saml assertion against a given user store or not?
>>
>
>
> If we let the user to choose to validate the user against a user store or
> not, the assertions coming from trusted IDP for a federated users will fail
> if he chooses to validate the user in userstore?
>
Yes, we can make this configurable and use current behavior as default, If
user needs this behavior, he will need to provide the userstore details
which he needs the user to be validated against.

> What i mean is, when user enables that option, he would only be able to
> use assertions issued by IS or a federated IDP that shares a userstore with
> IS.
>
> Instead wouldn't it be better if we only check the user in the user store
> if the assertion was issued by us (by us I mean IS that is validating the
> SAML assertion). We can check this using the SAML IdpEntityId. For those
> assertions not issued by us, we could treat them as coming from a federated
> IDP for a federated user.
>
> In which case it will actually have a valid user and correct user domain
>> in the token table, in which case he can generate jwt tokens with required
>> claims for that user. Is this a valid scenario? if so can we support this?
>>
>> Note that since we are taking the user domain from the username(subject)
>> in [1], we can send username(saml assertion subject) with correct
>> domain(ex: Secondary/username1) in which case it will save the correct
>> domain in token table. Hence jwt flow works fine. But I feel like it's kind
>> of a hack for this.
>>
>> I have created a public jira for this in [2]
>>
>> [1] - https://github.com/wso2/carbon-identity/blob/master/co
>> mponents/oauth/org.wso2.carbon.identity.oauth/src/main/java/
>> org/wso2/carbon/identity/oauth2/util/OAuth2Util.java#L637
>>
>> [2] - https://wso2.org/jira/browse/IDENTITY-5483
>>
>>
>> Thanks
>>
>> --
>> Rajith Vitharana
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94715883223
>> Blog : http://lankavitharana.blogspot.com/
>> <http://wso2.com/signature>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Validate user against given user store and save correct user domain in saml2-bearer grant type.

2016-12-14 Thread Rajith Vitharana
Hi IS team,

In [1] when getting the user, it doesn't validate whether the user is in a
user store or not. (This happens in saml2-bearer grant type and IS trust
the saml assertion. It's totally valid not doing this)

but can we give the user the freedom to choose whether to validate the user
in saml assertion against a given user store or not? In which case it will
actually have a valid user and correct user domain in the token table, in
which case he can generate jwt tokens with required claims for that user.
Is this a valid scenario? if so can we support this?

Note that since we are taking the user domain from the username(subject) in
[1], we can send username(saml assertion subject) with correct domain(ex:
Secondary/username1) in which case it will save the correct domain in token
table. Hence jwt flow works fine. But I feel like it's kind of a hack for
this.

I have created a public jira for this in [2]

[1] -
https://github.com/wso2/carbon-identity/blob/master/components/oauth/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/util/OAuth2Util.java#L637

[2] - https://wso2.org/jira/browse/IDENTITY-5483


Thanks

-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] No available task nodes for resolving a task

2016-11-07 Thread Rajith Vitharana
On 7 November 2016 at 22:47, Sinthuja Ragendran <sinth...@wso2.com> wrote:

> Hi,
>
> Have you configured  parameter in the task-config.xml?
> AFAIR the server will wait for the configured number of nodes to be present
> before trying to schedule the task.
>
And here count doesn't include manager node as it won't execute tasks,
hence it expects a worker node(task node) to start up. Hence no exception
when starting worker nodes first.

Thanks,

>
> Thanks,
> Sinthuja.
>
> On Mon, Nov 7, 2016 at 4:57 PM, Dilshani Subasinghe <dilsh...@wso2.com>
> wrote:
>
>> Hi Shazni,
>>
>> AFAIK this is an expected behavior. I got this issue in ESB cluster. Hope
>> someone in the team will provide a proper answer for that error.
>>
>> Regards,
>> Dilshani
>>
>> On Mon, Nov 7, 2016 at 4:48 PM, Shazni Nazeer <sha...@wso2.com> wrote:
>>
>>> I get the following exception in the manager node when it's started
>>> first before worker nodes. Exception doesn't occur if the worker nodes
>>> started first. I have a scheduled task deployed in the setup.
>>>
>>> TID: [-1234] [] [2016-11-03 12:36:36,126] ERROR
>>> {org.wso2.carbon.mediation.ntask.NTaskTaskManager} - Scheduling task [[
>>> NTask::-1234::CalendarCleanupTask]::synapse.simple.quartz] FAILED.
>>> Error: No available task nodes for resolving a task l
>>> ocation {org.wso2.carbon.mediation.ntask.NTaskTaskManager}
>>> org.wso2.carbon.ntask.common.TaskException: No available task nodes for
>>> resolving a task location
>>>
>>> at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
>>> getTaskLocation(ClusteredTaskManager.java:232)
>>> at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
>>> locateMemberForTask(ClusteredTaskManager.java:209)
>>> at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
>>> getMemberIdFromTaskName(ClusteredTaskManager.java:283)
>>> at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
>>> scheduleTask(ClusteredTaskManager.java:91)
>>> at org.wso2.carbon.mediation.ntask.NTaskTaskManager.schedule(NT
>>> askTaskManager.java:103)
>>> at org.wso2.carbon.mediation.ntask.NTaskTaskManager.init(NTaskT
>>> askManager.java:352)
>>> at org.wso2.carbon.mediation.ntask.NTaskTaskManager.update(NTas
>>> kTaskManager.java:365)
>>> at org.wso2.carbon.mediation.ntask.internal.NtaskService.update
>>> AndCleanupObservers(NtaskService.java:103)
>>> at org.wso2.carbon.mediation.ntask.internal.NtaskService.setCon
>>> figurationContextService(NtaskService.java:96)
>>> 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.eclipse.equinox.internal.ds.model.ComponentReference.bin
>>> d(ComponentReference.java:376)
>>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
>>> indReference(ServiceComponentProp.java:430)
>>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
>>> ind(ServiceComponentProp.java:218)
>>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
>>> uild(ServiceComponentProp.java:343)
>>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(
>>> InstanceProcess.java:620)
>>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(
>>> InstanceProcess.java:197)
>>> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolve
>>> r.java:343)
>>> at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SC
>>> RManager.java:222)
>>> at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.
>>> serviceChanged(FilteredServiceListener.java:107)
>>>
>>>
>>> According to [1] this is expected. Is there a fix for this to suppress
>>> the exception?
>>>
>>> [1] http://bugsbydilshani.blogspot.co.uk/2016/07/wso2esbclus
>>> ter-task-scheduling-error.html
>>>
>>> --
>>> Shazni Nazeer
>>> Associate Technical Lead | WSO2
>>>
>>> Mob : +94 37331
>>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>>> Blog : http://shazninazeer.blogspot.com
>>>
>>> <http://wso2.com/signature>
>>>
>>
>>
>>
>> --
&

Re: [Dev] [ESB 5] Access Response JSON Payload in a Class Mediator

2016-10-27 Thread Rajith Vitharana
Hi Isuru,

Below [1] worked for me to retrieve jsonbody. And then to set it back, what
you did worked for me. IE [2]

[1] - StringBuilder json =
JsonUtil.toJsonString(synCtx.getEnvelope().getBody());
[2] - JsonUtil.getNewJsonPayload(
((Axis2MessageContext) synCtx).getAxis2MessageContext(),
transformedJson, true, true);

Thanks,

On 27 October 2016 at 17:55, Isuru Haththotuwa <isu...@wso2.com> wrote:

> Hi,
>
> How to do $subject? Need to modify the response payload from BE and send
> it to the client.
>
> Tried [1], but did not work.
>
> [1].
>String jsonPayloadToString = JsonUtil
> .jsonPayloadToString(((Axis2MessageContext)
> messageContext)
> .getAxis2MessageContext());
> try {
> JsonUtil.getNewJsonPayload(((Axis2MessageContext)
> messageContext).getAxis2MessageContext(),
> jsonPayloadToString, true, true);
> } catch (AxisFault axisFault) {
> log.error("Error building aggregated JSON payload",
> axisFault);
> return false;
> }
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* <http://wso2.com/>*
>
>
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Anupama Pathirage

2016-10-17 Thread Rajith Vitharana
Congrats akke :) :)

On 17 October 2016 at 14:01, Dilshani Subasinghe <dilsh...@wso2.com> wrote:

> Congrats :) :)
>
> On Mon, Oct 17, 2016 at 1:35 PM, Anjana Fernando <anj...@wso2.com> wrote:
>
>> Hi everyone,
>>
>> It's my pleasure to announce Anupama as a WSO2 committer. Anupama has
>> made great contributions to WSO2 DSS/DAS in improving the products. In
>> recognizing the work that has been done, she has been voted in as a WSO2
>> committer. Anupama, welcome aboard and all the best! ..
>>
>> Cheers,
>> Anjana.
>> --
>> *Anjana Fernando*
>> Associate Director / Architect
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>> ___
>> 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
>
> <https://wso2.com/signature>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Eranda Rajapaksha

2016-10-11 Thread Rajith Vitharana
Congratz Eranda ... :) :)

On 10 October 2016 at 18:14, Senduran Balasubramaniyam <sendu...@wso2.com>
wrote:

> Congratulations Eranda !!
>
> On Mon, Oct 10, 2016 at 6:11 PM, Nadeeshaan Gunasinghe <
> nadeesh...@wso2.com> wrote:
>
>> Congrats Eranda !!
>>
>>
>> *Nadeeshaan Gunasinghe*
>> Software Engineer, WSO2 Inc. http://wso2.com
>> +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe
>> <#m_3716317020870817988_m_-4715409582830934341_>
>> <http://www.facebook.com/nadeeshaan.gunasinghe>
>> <http://lk.linkedin.com/in/nadeeshaan>  <http://twitter.com/Nadeeshaan>
>> <http://nadeeshaan.blogspot.com/>
>> Get a signature like this: Click here!
>> <http://ws-promos.appspot.com/r?rdata=eyJydXJsIjogImh0dHA6Ly93d3cud2lzZXN0YW1wLmNvbS9lbWFpbC1pbnN0YWxsP3dzX25jaWQ9NjcyMjk0MDA4JnV0bV9zb3VyY2U9ZXh0ZW5zaW9uJnV0bV9tZWRpdW09ZW1haWwmdXRtX2NhbXBhaWduPXByb21vXzU3MzI1Njg1NDg3Njk3OTIiLCAiZSI6ICI1NzMyNTY4NTQ4NzY5NzkyIn0==627709341532653>
>>
>> On Mon, Oct 10, 2016 at 6:09 PM, prabath <prabathm...@gmail.com> wrote:
>>
>>> Congratulation Eranda !!
>>>
>>> On Mon, Oct 10, 2016 at 6:07 PM, Sameera Gunarathne <samee...@wso2.com>
>>> wrote:
>>>
>>>> Congrats Eranda !!!
>>>>
>>>> On Mon, Oct 10, 2016 at 6:03 PM, Prakhash Sivakumar <prakh...@wso2.com>
>>>> wrote:
>>>>
>>>>> Congratulation Eranda !
>>>>>
>>>>> On Mon, Oct 10, 2016 at 5:41 PM, Chanaka Fernando <chana...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Devs,
>>>>>>
>>>>>> It is with great pleasure I welcome Eranda Rajapaksha as a WSO2
>>>>>> committer. Eranda has been contributing to the WSO2 ESB 5.0 release 
>>>>>> during
>>>>>> past few months and showed great passion and commitment to work. In
>>>>>> recognition of his work on ESB and Integration related development he has
>>>>>> been voted as a committer.
>>>>>>
>>>>>> Eranda, welcome aboard and keep up the good work.
>>>>>>
>>>>>> Cheers,
>>>>>> Chanaka
>>>>>>
>>>>>> --
>>>>>> Thank you and Best Regards,
>>>>>> Chanaka Fernando
>>>>>> Senior Technical Lead
>>>>>> m: +94 773337238
>>>>>> https://wso2.com <https://wso2.com/signature>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Prakhash Sivakumar
>>>>> Software Engineer | WSO2 Inc
>>>>> Platform Security Team
>>>>> Mobile : +94771510080
>>>>> Blog : https://medium.com/@PrakhashS
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Sameera Gunarathne
>>>> Software Engineer, WSO2 Inc. http://wso2.com
>>>> <http://l.facebook.com/l.php?u=http%3A%2F%2Fwso2.com=gAQEswASa>
>>>> Email: samee...@wso2.com
>>>> Mobile: +94714155561
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Prabath Ariyarathna.
>>> 
>>> --
>>> Talk is cheap. Show me the code.
>>> (Torvalds, Linus (2000-08-25))
>>>
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> *Senduran *
> Senior 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
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB 490] Create empty named json array inside an xslt

2016-10-05 Thread Rajith Vitharana
Hi Udara,

Try using the config senduran mentioned inside a payloadfactory mediator.
Sample would be as below.



   
   
 sample1
 test
 sample2
   
   
   


Thanks,



On 5 October 2016 at 12:18, Udara Liyanage <ud...@wso2.com> wrote:

> Hi Senduran,
>
> I need to create json array within synapse configs coz backend expects an
> array
>
> On Wed, Oct 5, 2016 at 8:11 AM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> Hi Udara,
>>
>> I tried the following API and the request, (I am using ESB 500)
>> API:
>>
>> 
>> http://ws.apache.org/ns/synapse;
>>  name="XMLtoJSON"
>>  context="/XMLtoJSON">
>>
>>   
>>  > scope="axis2"/>
>>  
>>   
>>
>> 
>>
>>
>> Request:
>>
>> curl -v -d ''
>> http://localhost:8280/XMLtoJSON -H "Content-type: application/xml"
>>
>> Regards
>> Senduran
>>
>>
>> On Tue, Oct 4, 2016 at 6:36 PM, Udara Liyanage <ud...@wso2.com> wrote:
>>
>>> Hi Senduran,
>>>
>>> Below is xslt snippet I tried.
>>>
>>>   
>>> 
>>>   
>>> 
>>>   
>>> 
>>>
>>> On Tue, Oct 4, 2016 at 6:26 PM, Udara Liyanage <ud...@wso2.com> wrote:
>>>
>>>> Hi Senduran,
>>>>
>>>> That I tried already. But it produced
>>>>
>>>> {"root":null}
>>>>
>>>> On Tue, Oct 4, 2016 at 5:37 PM, Senduran Balasubramaniyam <
>>>> sendu...@wso2.com> wrote:
>>>>
>>>>> Hi Udara,
>>>>>
>>>>> You can get an empty addresses array by following:
>>>>>
>>>>> 
>>>>>
>>>>> 
>>>>>
>>>>> Regards
>>>>> Senduran
>>>>>
>>>>> On Tue, Oct 4, 2016 at 12:09 PM, Udara Liyanage <ud...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I want to generate an empty json array ("addresses":[]) when
>>>>>> addresses count is zero. I tried below as [1] which resulted only in 
>>>>>> null.
>>>>>>
>>>>>>
>>>>>>  
>>>>>> 
>>>>>>   
>>>>>> 
>>>>>>   
>>>>>>
>>>>>>
>>>>>> [1] https://docs.wso2.com/display/ESB500/JSON+Support
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> Udara Liyanage
>>>>>> Software Engineer
>>>>>> WSO2, Inc.: http://wso2.com
>>>>>> lean. enterprise. middleware
>>>>>>
>>>>>> Blog: http://udaraliyanage.wordpress.com
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Senduran *
>>>>> Senior Software Engineer,
>>>>> WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
>>>>> Mobile: +94 77 952 6548
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Udara Liyanage
>>>> Software Engineer
>>>> WSO2, Inc.: http://wso2.com
>>>> lean. enterprise. middleware
>>>>
>>>> Blog: http://udaraliyanage.wordpress.com
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> Udara Liyanage
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> Blog: http://udaraliyanage.wordpress.com
>>>
>>
>>
>>
>> --
>> *Senduran *
>> Senior Software Engineer,
>> WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
>> Mobile: +94 77 952 6548
>>
>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> Blog: http://udaraliyanage.wordpress.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Logging the HTTP Response Code in SoapUI

2016-09-29 Thread Rajith Vitharana
On 29 September 2016 at 12:28, Malintha Fernando <malinth...@wso2.com>
wrote:

> Hi Rajith,
>
> Thanks a lot for the input. I enabled the logs on SoapUI and ran the test.
> Yet couldn't see any request or a response printed under the httpLogs tab.
> That's why I thought to go for scripts. That assertion script worked for a
> single request though not for the whole load test. :/ Can't we use the same
> assertion script in load tests?
>
This seems to be available in Pro version as per the link [1]. I'm using
SoapUI 5.0.0 version and AFAIR I didn't do any changes to make http logs
visible.

[1] -
https://www.soapui.org/load-testing/scripting-possibilities.html#1-Setup-and-TearDown-scripts


Thanks,

>
> Thanks & Regards,
> Malintha
>
> On Thu, Sep 29, 2016 at 10:57 AM, Rajith Vitharana <raji...@wso2.com>
> wrote:
>
>> Can't you use SoapUI httplog for this? (you can find it in the bottom of
>> SoapUI, but it will log the whole http response). Other than that I don't
>> think you can use setup or tear down scripts directly since they run on
>> startup and end of whole load test. In single test you can have assertion
>> script as mentioned in [1](sample will be [2]) and print the http status
>> code(you can see them in script log which again can be found in bottom of
>> SoapUI). But couldn't find a way to run that when executing the load test
>> though.
>>
>> [1] - https://community.smartbear.com/t5/SoapUI-NG/Resolved-Get-
>> HTTP-Response-Code/m-p/44044#M22923
>> [2] - def headers =  messageExchange.getResponseHeaders()
>> log.info headers["#status#"]
>>
>> Thanks,
>>
>> On 29 September 2016 at 10:19, Malintha Fernando <malinth...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> I am doing a SoapUI load test to an APIM HTTP endpoint which has a hard
>>> throttling limit of 25 TPS. Therefore, some of the requests needs to be
>>> flooded out by the APIM and some are needed to be forwarded to the backend.
>>> Consequently, the ones forwarded to backend should return a HTTP 200
>>> response and ones which are throttled out should return a HTTP 503
>>> response.
>>>
>>> I need to log the response for each request to know which ones are
>>> throttled out and which are sent in. Apparently, it needs to be done via a
>>> SoapUI test script. (setup script or a tear down script). I have gone
>>> through their script documentation [1] and couldn't find a method to log
>>> the response code.
>>>
>>> [1]. https://www.soapui.org/load-testing/scripting-possibilities.
>>> html#1-Setup-and-TearDown-scripts
>>>
>>> Any inputs on this are appreciated.
>>>
>>> Thanks & Regards,
>>>
>>> --
>>> Malintha Fernando
>>> Software Engineer
>>> WSO2 Inc. | http://wso2.com
>>> Mobile : +94 718874922
>>> Blog : http://blog.malintha.org
>>>
>>> Lean . Enterprise . Middleware
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rajith Vitharana
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94715883223
>> Blog : http://lankavitharana.blogspot.com/
>> <http://wso2.com/signature>
>>
>
>
>
> --
> Malintha Fernando
> Software Engineer
> WSO2 Inc. | http://wso2.com
> Mobile : +94 718874922
> Blog : http://blog.malintha.org
>
> Lean . Enterprise . Middleware
>
>
>
>
>
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Logging the HTTP Response Code in SoapUI

2016-09-28 Thread Rajith Vitharana
Can't you use SoapUI httplog for this? (you can find it in the bottom of
SoapUI, but it will log the whole http response). Other than that I don't
think you can use setup or tear down scripts directly since they run on
startup and end of whole load test. In single test you can have assertion
script as mentioned in [1](sample will be [2]) and print the http status
code(you can see them in script log which again can be found in bottom of
SoapUI). But couldn't find a way to run that when executing the load test
though.

[1] -
https://community.smartbear.com/t5/SoapUI-NG/Resolved-Get-HTTP-Response-Code/m-p/44044#M22923
[2] - def headers =  messageExchange.getResponseHeaders()
log.info headers["#status#"]

Thanks,

On 29 September 2016 at 10:19, Malintha Fernando <malinth...@wso2.com>
wrote:

> Hi All,
>
> I am doing a SoapUI load test to an APIM HTTP endpoint which has a hard
> throttling limit of 25 TPS. Therefore, some of the requests needs to be
> flooded out by the APIM and some are needed to be forwarded to the backend.
> Consequently, the ones forwarded to backend should return a HTTP 200
> response and ones which are throttled out should return a HTTP 503
> response.
>
> I need to log the response for each request to know which ones are
> throttled out and which are sent in. Apparently, it needs to be done via a
> SoapUI test script. (setup script or a tear down script). I have gone
> through their script documentation [1] and couldn't find a method to log
> the response code.
>
> [1]. https://www.soapui.org/load-testing/scripting-
> possibilities.html#1-Setup-and-TearDown-scripts
>
> Any inputs on this are appreciated.
>
> Thanks & Regards,
>
> --
> Malintha Fernando
> Software Engineer
> WSO2 Inc. | http://wso2.com
> Mobile : +94 718874922
> Blog : http://blog.malintha.org
>
> Lean . Enterprise . Middleware
>
>
>
>
>
>
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to get a connection from the carbon datasources

2016-09-26 Thread Rajith Vitharana
Hi Niranda,

Since we use jndi, IMO this approach is also ok. Other than that, you can
also get carbon datasource using Ndatasource component as well. Sample will
be as below

CarbonDataSource cds = dataSourceService.getDataSource("datasourceName");

You will need to get the datasourceService[2] as osgi service.

AFAIR you need to mention datasource name from "name" tag [1]

[1] - 
WSO2_CARBON_DB
[2] - org.wso2.carbon.ndatasource.core.DataSourceService

Thanks,


On 27 September 2016 at 08:03, Niranda Perera <nira...@wso2.com> wrote:

> Hi all,
>
> I want to use a jdbc connection provided by a carbon-datasource.
>
> I found the following blog from Kishanthan [1], which was done in 2013.
>
> it uses the org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory as
> follows
>
> Hashtable environment = new Hashtable();
>  environment.put("java.naming.factory.initialoorg.wso2.carbon.tomcat.jndi.
> CarbonJavaURLContextFactory");
> Context initContext = new InitialContext(environment);
> Object result = initContext.lookup("jdbc/MyCarbonDataSource");
> if (result != null) {
> // Do your work here
> } else {
> System.out.println(“Cannot find MyCarbonDataSource”);
> }
>
> My question is, is there a better way of doing this now (a util method may
> be?) or is this method still applicable?
>
> Best
>
> [1] https://kishanthan.wordpress.com/2013/02/11/access-cabon-data-sources-
> within-webapps-in-wso2-application-server/
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 <https://twitter.com/N1R44>
> https://pythagoreanscript.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] NtaskTaskManager Error : No available task nodes for resolving a task location

2016-09-26 Thread Rajith Vitharana
Hi,

Can you see Member Joined logs as well? AFAIK Member joined logs are the
ones which indicates cluster is correctly  connected.

Thanks,

On 26 September 2016 at 11:36, Biruntha Gnaneswaran <birun...@wso2.com>
wrote:

> Hi Rajith,
>
> Yes I started worker node with -DworkerNode=true parameter.
>
> From manager :
> [2016-09-26 11:08:54,170]  INFO - MemberUtils Added member: Host:
> esb.wso2.com, Remote Host:null, Port: 4200, HTTP:-1, HTTPS:-1, Domain:
> null, Sub-domain:null, Active:true
>
> From the worker :
> [2016-09-26 09:10:11,345]  INFO - MemberUtils Added member: Host:
> mgt.esb.wso2.com, Remote Host:null, Port: 4100, HTTP:-1, HTTPS:-1,
> Domain: null, Sub-domain:null, Active:true
>
>
> Biruntha
>
> Associate Software Engineer
> WSO2
> Email : birun...@wso2.com
> Linkedin : https://lk.linkedin.com/in/biruntha
> Mobile : +94773718986
>
> On Mon, Sep 26, 2016 at 11:21 AM, Rajith Vitharana <raji...@wso2.com>
> wrote:
>
>> Hi,
>>
>> Have you started worker node with -DworkerNode=true parameter? does the
>> cluster connects correctly? (means can you see node joining logs in both
>> nodes?)
>>
>> Thanks,
>>
>> On 26 September 2016 at 11:05, Biruntha Gnaneswaran <birun...@wso2.com>
>> wrote:
>>
>>> Hi Malaka/Rajith,
>>>
>>> I followed as you suggested.
>>>
>>> When I specify taskServerCount as 2, I couldn’t access the management
>>> console. But when I specify taskServerCount as 1, I’m able to access the
>>> management console. But still I got the same error [2].
>>>
>>> [2] -
>>> at org.apache.catalina.core.StandardWrapper.load(StandardWrappe
>>> r.java:1085)
>>> at org.apache.catalina.core.StandardContext.loadOnStartup(Stand
>>> ardContext.java:5318)
>>> at org.apache.catalina.core.StandardContext.startInternal(Stand
>>> ardContext.java:5610)
>>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.j
>>> ava:147)
>>> at org.apache.catalina.core.ContainerBase$StartChild.call(Conta
>>> inerBase.java:1572)
>>> at org.apache.catalina.core.ContainerBase$StartChild.call(Conta
>>> inerBase.java:1562)
>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>>> Executor.java:1145)
>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>>> lExecutor.java:615)
>>> at java.lang.Thread.run(Thread.java:745)
>>> [2016-09-26 10:52:11,284]  INFO - ClusterGroupCommunicator Waiting for 1
>>> [registryTasks] task executor nodes...
>>> [2016-09-26 10:52:11,284]  INFO - ClusterGroupCommunicator All task
>>> servers activated for [registryTasks].
>>> [2016-09-26 10:52:11,309]  INFO - JMXServerManager JMX Service URL  :
>>> service:jmx:rmi://localhost:2/jndi/rmi://localhost:1/jmxrmi
>>> [2016-09-26 10:52:11,313]  INFO - StartupFinalizerServiceComponent
>>> Server   :  WSO2 Enterprise Service Bus-5.0.0
>>> [2016-09-26 10:52:11,314]  INFO - StartupFinalizerServiceComponent WSO2
>>> Carbon started in 21 sec
>>> [2016-09-26 10:52:11,508]  INFO - CarbonUIServiceComponent Mgt Console
>>> URL  : https://mgt.esb.wso2.com:443/carbon/
>>>
>>> Thanks,
>>>
>>> Biruntha
>>>
>>> Associate Software Engineer
>>> WSO2
>>> Email : birun...@wso2.com
>>> Linkedin : https://lk.linkedin.com/in/biruntha
>>> Mobile : +94773718986
>>>
>>> On Mon, Sep 26, 2016 at 10:33 AM, Rajith Vitharana <raji...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> That error comes when you start a *non* task node(in this case manager
>>>> node) without starting a task node(worker node). (task node count specified
>>>> in tasks-config.xml). So if you follow below steps, this shouldn't happen.
>>>>
>>>> 1) specify task server count(1) as
>>>> 1 in task-config.xml
>>>> 2) start worker and then manager. (if worker correctly connects to the
>>>> manger through cluster, this error message shouldn't come)
>>>>
>>>> Thanks,
>>>>
>>>
>>>
>>
>>
>> --
>> Rajith Vitharana
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94715883223
>> Blog : http://lankavitharana.blogspot.com/
>> <http://wso2.com/signature>
>>
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] NtaskTaskManager Error : No available task nodes for resolving a task location

2016-09-25 Thread Rajith Vitharana
Hi,

Have you started worker node with -DworkerNode=true parameter? does the
cluster connects correctly? (means can you see node joining logs in both
nodes?)

Thanks,

On 26 September 2016 at 11:05, Biruntha Gnaneswaran <birun...@wso2.com>
wrote:

> Hi Malaka/Rajith,
>
> I followed as you suggested.
>
> When I specify taskServerCount as 2, I couldn’t access the management
> console. But when I specify taskServerCount as 1, I’m able to access the
> management console. But still I got the same error [2].
>
> [2] -
> at org.apache.catalina.core.StandardWrapper.load(
> StandardWrapper.java:1085)
> at org.apache.catalina.core.StandardContext.loadOnStartup(
> StandardContext.java:5318)
> at org.apache.catalina.core.StandardContext.startInternal(
> StandardContext.java:5610)
> at org.apache.catalina.util.LifecycleBase.start(
> LifecycleBase.java:147)
> at org.apache.catalina.core.ContainerBase$StartChild.call(
> ContainerBase.java:1572)
> at org.apache.catalina.core.ContainerBase$StartChild.call(
> ContainerBase.java:1562)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> [2016-09-26 10:52:11,284]  INFO - ClusterGroupCommunicator Waiting for 1
> [registryTasks] task executor nodes...
> [2016-09-26 10:52:11,284]  INFO - ClusterGroupCommunicator All task
> servers activated for [registryTasks].
> [2016-09-26 10:52:11,309]  INFO - JMXServerManager JMX Service URL  :
> service:jmx:rmi://localhost:2/jndi/rmi://localhost:1/jmxrmi
> [2016-09-26 10:52:11,313]  INFO - StartupFinalizerServiceComponent
> Server   :  WSO2 Enterprise Service Bus-5.0.0
> [2016-09-26 10:52:11,314]  INFO - StartupFinalizerServiceComponent WSO2
> Carbon started in 21 sec
> [2016-09-26 10:52:11,508]  INFO - CarbonUIServiceComponent Mgt Console
> URL  : https://mgt.esb.wso2.com:443/carbon/
>
> Thanks,
>
> Biruntha
>
> Associate Software Engineer
> WSO2
> Email : birun...@wso2.com
> Linkedin : https://lk.linkedin.com/in/biruntha
> Mobile : +94773718986
>
> On Mon, Sep 26, 2016 at 10:33 AM, Rajith Vitharana <raji...@wso2.com>
> wrote:
>
>> Hi,
>>
>> That error comes when you start a *non* task node(in this case manager
>> node) without starting a task node(worker node). (task node count specified
>> in tasks-config.xml). So if you follow below steps, this shouldn't happen.
>>
>> 1) specify task server count(1) as 1
>> in task-config.xml
>> 2) start worker and then manager. (if worker correctly connects to the
>> manger through cluster, this error message shouldn't come)
>>
>> Thanks,
>>
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] NtaskTaskManager Error : No available task nodes for resolving a task location

2016-09-25 Thread Rajith Vitharana
Hi,

That error comes when you start a *non* task node(in this case manager
node) without starting a task node(worker node). (task node count specified
in tasks-config.xml). So if you follow below steps, this shouldn't happen.

1) specify task server count(1) as 1 in
task-config.xml
2) start worker and then manager. (if worker correctly connects to the
manger through cluster, this error message shouldn't come)

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


Re: [Dev] How to Select Suitable IP Address

2016-09-24 Thread Rajith Vitharana
Hi,

If you need to know the server IP address, via a service call, Can't you
just take it from request "host" header?(which will be the one client side
actually uses to call the server)

Thanks,

On 24 September 2016 at 22:17, Sidath Weerasinghe <sid...@wso2.com> wrote:

> Hi all,
>
> On the server side, I am currently getting all the network interface's IP
> addresses and store them in the database. Then I wrote the web service to
> get those details from the database.
>
>
> [image: Inline image 1]
>
>
> In Andes client side, I will call that web service to retrieve the IP
> addresses.
> The concern I have is how can I choose the IPs (LAN & WiFi) which is
> related to the client network (When client is on WiFi network, client need
> to choose WiFi IP address) to the MB client.
>
> Need a way for do this?
>
>
> --
> Thank You,
> Best Regards,
>
> Sidath Weerasinghe
>
>
> *Intern*
>
> *WSO2, Inc. *
>
> *lean . enterprise . middleware *
>
>
> *Mobile: +94719802550 <%2B94719802550>*
>
> *Email: *sid...@wso2.com
>
> Blog: https://medium.com/@sidath
>
> Linkedin: https://lk.linkedin.com/in/sidathweerasinghe
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Change the service endpoint URL in wsdl generated for proxy service in ESB

2016-09-06 Thread Rajith Vitharana
ervices/*t/maheeka.com/HelloProxy
>>>>>>> <http://maheeka.com/HelloProxy>*
>>>>>>>
>>>>>>> or
>>>>>>>
>>>>>>> http://*xxx.cloud.integration.wso2.com
>>>>>>> <http://xxx.cloud.integration.wso2.com>*/services/HelloProxy
>>>>>>> http://*yyy.cloud.integration.wso2.com
>>>>>>> <http://yyy.cloud.integration.wso2.com>*/services/HelloProxy
>>>>>>>
>>>>>>>
>>>>>>> On Sun, Sep 4, 2016 at 7:28 AM, Maheeka Jayasuriya <mahe...@wso2.com
>>>>>>> > wrote:
>>>>>>>
>>>>>>>> Hi Chanaka,
>>>>>>>>
>>>>>>>> When we deploy a car file containing a proxy service, we need to
>>>>>>>> show the WSDL for the proxy in integration cloud. The endpoints in the 
>>>>>>>> WSDL
>>>>>>>> are composed with the host name of the app and the tenant suffix -
>>>>>>>> t/tenantDomain, since we are doing the deployment in the tenant space.
>>>>>>>>
>>>>>>>> When we get a request as http://esb.wso2.com:8280/servi
>>>>>>>> ces/HelloProxy.HelloProxyHttpSoap11Endpoint
>>>>>>>> <http://jagatha-ThinkPad-T530:8280/services/t/aa.com/HelloProxy.HelloProxyHttpSoap11Endpoint>,
>>>>>>>> it is actually rewritten to http://esb.wso2.com:8280/servi
>>>>>>>> ces/t/aa.com/HelloProxy.HelloProxyHttpSoap11Endpoint
>>>>>>>> <http://jagatha-ThinkPad-T530:8280/services/t/aa.com/HelloProxy.HelloProxyHttpSoap11Endpoint>
>>>>>>>> by the HAProxy. Hence, requests are redirected to real tenant endpoint.
>>>>>>>> However, this tenant information is not necessary to be known to the 
>>>>>>>> users
>>>>>>>> when they use the WSDL to send a request. Hence the question whether 
>>>>>>>> it is
>>>>>>>> possible to do $subject.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Maheeka
>>>>>>>>
>>>>>>>> Maheeka Jayasuriya
>>>>>>>> Senior Software Engineer
>>>>>>>> Mobile : +9450661
>>>>>>>>
>>>>>>>> On Sun, Sep 4, 2016 at 7:18 AM, Chanaka Fernando <chana...@wso2.com
>>>>>>>> > wrote:
>>>>>>>>
>>>>>>>>> Hi Jagath,
>>>>>>>>>
>>>>>>>>> What is the requirement here?
>>>>>>>>>
>>>>>>>>> On Sat, Sep 3, 2016 at 11:57 PM, Jagath Sisirakumara Ariyarathne <
>>>>>>>>> jaga...@wso2.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi All,
>>>>>>>>>>
>>>>>>>>>> When a Proxy (e.g. HelloProxy) is deployed in a tenant space (e.g
>>>>>>>>>> abc.com) in ESB, related wsdl will contain service definition as
>>>>>>>>>> follows;
>>>>>>>>>>
>>>>>>>>>> 
>>>>>>>>>> http://esb.wso2.com:8280/services/t/
>>>>>>>>>> aa.com/HelloProxy.HelloProxyHttpSoap11Endpoint
>>>>>>>>>> <http://jagatha-ThinkPad-T530:8280/services/t/aa.com/HelloProxy.HelloProxyHttpSoap11Endpoint>
>>>>>>>>>> "/>
>>>>>>>>>> 
>>>>>>>>>>
>>>>>>>>>> Is there a way to change the address in this definition, to make
>>>>>>>>>> it without the tenant ID like below, even though it is deployed in 
>>>>>>>>>> tenant
>>>>>>>>>> space.
>>>>>>>>>>
>>>>>>>>>> 
>>>>>>>>>> http://esb.wso2.com:8280/services/He
>>>>>>>>>> lloProxy.HelloProxyHttpSoap11Endpoint
>>>>>>>>>> <http://jagatha-ThinkPad-T530:8280/services/t/aa.com/HelloProxy.HelloProxyHttpSoap11Endpoint>
>>>>>>>>>> "/>
>>>>>>>>>> 
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Thanks.
>>>>>>>>>> --
>>>>>>>>>> Jagath Ariyarathne
>>>>>>>>>> Technical Lead
>>>>>>>>>> WSO2 Inc.  http://wso2.com/
>>>>>>>>>> Email: jaga...@wso2.com
>>>>>>>>>> Mob  : +94 77 386 7048
>>>>>>>>>> <http://wso2.com/signature>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Thank you and Best Regards,
>>>>>>>>> Chanaka Fernando
>>>>>>>>> Senior Technical Lead
>>>>>>>>> m: +94 773337238
>>>>>>>>> https://wso2.com <https://wso2.com/signature>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Thank you and Best Regards,
>>>>>>> Chanaka Fernando
>>>>>>> Senior Technical Lead
>>>>>>> m: +94 773337238
>>>>>>> https://wso2.com <https://wso2.com/signature>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Amalka Subasinghe
>>>>>>
>>>>>> WSO2 Inc.
>>>>>> Mobile: +94 77 9401267
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Thank you and Best Regards,
>>>> Chanaka Fernando
>>>> Senior Technical Lead
>>>> m: +94 773337238
>>>> https://wso2.com <https://wso2.com/signature>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Jagath Ariyarathne
>>> Technical Lead
>>> WSO2 Inc.  http://wso2.com/
>>> Email: jaga...@wso2.com
>>> Mob  : +94 77 386 7048
>>> <http://wso2.com/signature>
>>>
>>
>>
>
>
> --
> Jagath Ariyarathne
> Technical Lead
> WSO2 Inc.  http://wso2.com/
> Email: jaga...@wso2.com
> Mob  : +94 77 386 7048
> <http://wso2.com/signature>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][ESB][DSS] Sending batch request to DSS

2016-08-31 Thread Rajith Vitharana
Hi Chanuka,

Try with call mediator blocking=false.

Thanks,

On 31 August 2016 at 19:53, Malaka Silva <mal...@wso2.com> wrote:

> Hi Chanuka,
>
> Shall we try to find the payload in messagecontext before iterator
> mediator.
>
> You can use log mediator or mediation debugger to do that.
>
> On Wed, Aug 31, 2016 at 4:50 PM, Chanuka Dissanayake <chan...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I'm trying to do the $subject using ESB 5.0, DSS 3.5.0 and Salesforce
>> Connector.
>>
>> When I remove the following call operations to the DSS from the sequence
>> it's working perfectly.
>>
>> 
>>> 
>>> 
>>> https://localhost:9448/se
>>> rvices/SF_Data_Service/"/>
>>> 
>>> 
>>
>>
>> Otherwise, It'll stop after the first batch received. Without continuing
>> the operation (which need to be iterate until all the batches received).
>>
>> [I have attached both proxy and the sequence.]
>>
>> Thanks,
>> Chanuka.
>>
>> --
>> Chanuka Dissanayake
>> *Software Engineer | **WSO2 Inc.*; http://wso2.com
>>
>> Mobile: +94 71 33 63 596
>> Email: chan...@wso2.com
>>
>
>
>
> --
>
> 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
>



-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Content-Type header is not set when calling via a scheduled task

2016-08-28 Thread Rajith Vitharana
Hi Nirodha,

I just tried your scenario with latest ESB 5.0.0 and it works fine for me.
With message type property[1] and "Accept" header[2], we can control what
"Content-Type" header and "Accept" header goes to the back end even when
the proxy service get invoked by a schedule task.

Can you specify the ESB version you are using and can you attach the proxy
service and schedule task you used?

[1] - 
[2] - 

Thanks,

On 27 August 2016 at 21:40, Nirodha Gallage <niro...@wso2.com> wrote:

> Hi Rajith,
>
> It is already there and worked when calling with SOAP client. But not
> working with the task.
>
> Thanks,
>
> On Sat, Aug 27, 2016 at 7:54 PM, Rajith Vitharana <raji...@wso2.com>
> wrote:
>
>> Hi Nirodha,
>>
>> Try setting "messageType" property before calling the Rest backend,
>> sample would be [1]
>>
>> [1] - 
>>
>> Thanks,
>>
>> On 27 August 2016 at 19:41, Nirodha Gallage <niro...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> I'm have created a proxy service which calls a REST endpoint which sends
>>> a text response. Before calling the endpoint I have set the below headers
>>> to get the response as text/plain. And then I read values from response
>>> using xpath function.
>>>
>>> ​​
>>> ​​
>>>
>>> The whole scenario works fine when you call the proxy service with a
>>> SOAP client. But when the proxy is invoked with a scheduled task it does
>>> not work and gives a message builder error. While debugging it I figured
>>> out that 'Content-Type' header is not set in the second scenario(task) in
>>> the rest service call, due to that it is sending text/html response. Is
>>> this a known issue? Is there any solution for this.
>>>
>>> I also tried with setting following two header/property but that also
>>> did not work.
>>>
>>> >> action="set" />
>>>  >> action="set" />
>>>
>>> Thanks,
>>> Nirodha
>>>
>>> --
>>>
>>> *Nirodha Gallage*
>>> Associate Technical Lead
>>> WSO2 Inc.: http://wso2.com/
>>> Mobile: +94716429078
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rajith Vitharana
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94715883223
>> Blog : http://lankavitharana.blogspot.com/
>> <http://wso2.com/signature>
>>
>
>
>
> --
>
> *Nirodha Gallage*
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94716429078
>



-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Content-Type header is not set when calling via a scheduled task

2016-08-27 Thread Rajith Vitharana
Hi Nirodha,

Try setting "messageType" property before calling the Rest backend, sample
would be [1]

[1] - 

Thanks,

On 27 August 2016 at 19:41, Nirodha Gallage <niro...@wso2.com> wrote:

> Hi,
>
> I'm have created a proxy service which calls a REST endpoint which sends a
> text response. Before calling the endpoint I have set the below headers to
> get the response as text/plain. And then I read values from response using
> xpath function.
>
> ​​
> ​​
>
> The whole scenario works fine when you call the proxy service with a SOAP
> client. But when the proxy is invoked with a scheduled task it does not
> work and gives a message builder error. While debugging it I figured out
> that 'Content-Type' header is not set in the second scenario(task) in the
> rest service call, due to that it is sending text/html response. Is this a
> known issue? Is there any solution for this.
>
> I also tried with setting following two header/property but that also did
> not work.
>
>  action="set" />
>   action="set" />
>
> Thanks,
> Nirodha
>
> --
>
> *Nirodha Gallage*
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94716429078
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Error connecting to esb-analutics

2016-08-23 Thread Rajith Vitharana
  | at java.util.concurrent.FutureTask.run(FutureTask.
> java:262)
> esb_worker1  | at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1145)
> esb_worker1  | at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:615)
> esb_worker1  | at java.lang.Thread.run(Thread.java:745)
> esb_worker1  | Caused by: 
> org.wso2.carbon.databridge.agent.exception.DataEndpointSecurityException:
> Error while trying to connect to ssl://localhost:7712
> esb_worker1  | at org.wso2.carbon.databridge.agent.endpoint.thrift.
> ThriftSecureClientPoolFactory.createClient(ThriftSecureClientPoolFactory.
> java:61)
> esb_worker1  | at org.wso2.carbon.databridge.agent.client.
> AbstractClientPoolFactory.makeObject(AbstractClientPoolFactory.java:39)
> esb_worker1  | at org.apache.commons.pool.impl.GenericKeyedObjectPool.
> borrowObject(GenericKeyedObjectPool.java:1212)
> esb_worker1  | at org.wso2.carbon.databridge.agent.endpoint.
> DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:91)
> esb_worker1  | ... 6 more
> esb_worker1  | Caused by: org.apache.thrift.transport.TTransportException:
> Could not connect to localhost on port 7712
> esb_worker1  | at org.apache.thrift.transport.TSSLTransportFactory.
> createClient(TSSLTransportFactory.java:237)
> esb_worker1  | at org.apache.thrift.transport.TSSLTransportFactory.
> getClientSocket(TSSLTransportFactory.java:169)
> esb_worker1  | at org.wso2.carbon.databridge.agent.endpoint.thrift.
> ThriftSecureClientPoolFactory.createClient(ThriftSecureClientPoolFactory.
> java:56)
> esb_worker1  | ... 9 more
> esb_worker1  | Caused by: java.net.ConnectException: Connection refused
> esb_worker1  | at java.net.PlainSocketImpl.socketConnect(Native
> Method)
> esb_worker1  | at java.net.AbstractPlainSocketImpl.doConnect(
> AbstractPlainSocketImpl.java:339)
> esb_worker1  | at java.net.AbstractPlainSocketImpl.connectToAddress(
> AbstractPlainSocketImpl.java:200)
> esb_worker1  | at java.net.AbstractPlainSocketImpl.connect(
> AbstractPlainSocketImpl.java:182)
> esb_worker1  | at java.net.SocksSocketImpl.
> connect(SocksSocketImpl.java:392)
> esb_worker1  | at java.net.Socket.connect(Socket.java:579)
> esb_worker1  | at sun.security.ssl.SSLSocketImpl.connect(
> SSLSocketImpl.java:625)
> esb_worker1  | at sun.security.ssl.SSLSocketImpl.(
> SSLSocketImpl.java:413)
> esb_worker1  | at sun.security.ssl.SSLSocketFactoryImpl.createSocket(
> SSLSocketFactoryImpl.java:88)
> esb_worker1  | at org.apache.thrift.transport.TSSLTransportFactory.
> createClient(TSSLTransportFactory.java:233)
> esb_worker1  | ... 11 more
>
>
> [1] https://docs.wso2.com/display/ESB500/Prerequisites+
> to+Publish+Statistics
>
> thanks,
> --
> Supun Malinga
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Enterprise Service Bus 5.0.0 RC4

2016-08-19 Thread Rajith Vitharana
Hi All,

Tested and verified following


   - Synapse VFS transport/ cluster awareness
   - Tooling support for proxy creation
   - Analytics in cluster

[+] Stable - go ahead and release

Thanks,

On 19 August 2016 at 12:31, Nuwan Wimalasekara <nuw...@wso2.com> wrote:

> Hi all.
>
> Tested and verified following
>
>
>- ESB Mediation Debugging
>
>
> [+] Stable - go ahead and release.
>
> Thanks,
> Nuwnaw
>
> On Fri, Aug 19, 2016 at 12:21 PM, Prabath Ariyarathna <prabat...@wso2.com>
> wrote:
>
>> Hi All.
>>
>> Tested and verified following.
>>
>>- File(VFS) Inbound Endpoint.
>>- HTTP/HTTPS Inbound Endpoints.
>>- Custom Inbound Endpoint.
>>- RabbitMQ Inbound Endpoint.
>>
>> [+] Stable - go ahead and release.
>>
>> Thanks.
>>
>> On Fri, Aug 19, 2016 at 11:30 AM, Nadeeshaan Gunasinghe <
>> nadeesh...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> Tested the following,
>>>
>>>
>>>- Inbound Endpoints
>>>  VFS, HTTP, HTTPS, WSO2 MB, JMS
>>>- JMS scenarios
>>>  Message Processor, Message Store with ActiveMQ, Rabbit MQ and
>>>WSO2 MB
>>>- Capp Deployment through tooling
>>>
>>> [+] Stable - go ahead and release
>>>
>>> Thanks,
>>>
>>> *Nadeeshaan Gunasinghe*
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe
>>> <#m_-6069497498545935869_m_7132569658457042904_m_5569028783450022843_>
>>> <http://www.facebook.com/nadeeshaan.gunasinghe>
>>> <http://lk.linkedin.com/in/nadeeshaan>  <http://twitter.com/Nadeeshaan>
>>> <http://nadeeshaan.blogspot.com/>
>>> Get a signature like this: Click here!
>>> <http://ws-promos.appspot.com/r?rdata=eyJydXJsIjogImh0dHA6Ly93d3cud2lzZXN0YW1wLmNvbS9lbWFpbC1pbnN0YWxsP3dzX25jaWQ9NjcyMjk0MDA4JnV0bV9zb3VyY2U9ZXh0ZW5zaW9uJnV0bV9tZWRpdW09ZW1haWwmdXRtX2NhbXBhaWduPXByb21vXzU3MzI1Njg1NDg3Njk3OTIiLCAiZSI6ICI1NzMyNTY4NTQ4NzY5NzkyIn0==155679456732825>
>>>
>>> On Wed, Aug 17, 2016 at 8:13 AM, Senduran Balasubramaniyam <
>>> sendu...@wso2.com> wrote:
>>>
>>>> Hi All,
>>>>
>>>> This is the 4th Release Candidate of WSO2 Enterprise Service Bus 5.0.0
>>>>
>>>> Please download, test the product and vote. Vote will be open for 72
>>>> hours or as needed.
>>>>
>>>> Source and distribution
>>>>
>>>> Run-time: https://github.com/wso2/produc
>>>> t-esb/releases/tag/v5.0.0-rc4
>>>> Tooling   : https://github.com/wso2/devstu
>>>> dio-tooling-esb/releases/tag/v5.0.0-rc4
>>>> Analytics: https://github.com/wso2/analyt
>>>> ics-esb/releases/tag/v5.0.0-rc4
>>>>
>>>> Please vote as follows.
>>>> [+] Stable - go ahead and release
>>>> [-] Broken - do not release (explain why)
>>>>
>>>> Thanks,
>>>> - WSO2 ESB Team -
>>>>
>>>> --
>>>> *Senduran *
>>>> Senior 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
>>>
>>>
>>
>>
>> --
>>
>> *Prabath Ariyarathna*
>>
>> *Associate Technical Lead*
>>
>> *WSO2, Inc. *
>>
>> *lean . enterprise . middleware *
>>
>>
>> *Email: prabat...@wso2.com <prabat...@wso2.com>*
>>
>> *Blog: http://prabu-lk.blogspot.com <http://prabu-lk.blogspot.com>*
>>
>> *Flicker : https://www.flickr.com/photos/47759189@N08
>> <https://www.flickr.com/photos/47759189@N08>*
>>
>> *Mobile: +94 77 699 4730 *
>>
>>
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Nuwan Wimalasekara
> Associate Technical Lead
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Identify Server Host(IP) for Analytics

2016-08-10 Thread Rajith Vitharana
Hi,

This seems to be not ideal for the ESB use case, as user may use different
approaches to reach the server(direct IP, host etc) in which case analytics
will receive different hosts for the same node. So we need better approach
to differentiate different ESB nodes.

There is "HostName" property in carbon.xml,  according to clustering
doc[1], it says to use same "HostName" for every node. So can we change
that doc to specify different hostnames and use that parameter to
differentiate nodes? Or is there any better approach?

[1] - https://docs.wso2.com/display/CLUSTER44x/Clustering+ESB+4.9.0

Thanks,

On 5 August 2016 at 14:04, Rajith Vitharana <raji...@wso2.com> wrote:

> Hi,
>
> In ESB analytics, ESB publishes data to analytic server including it's
> host name. Host name is required to differentiate nodes in a clustered
> environment(Which node received which request etc) in analytic side.
>
> So for that, currently what we do is take host value from HTTP Host
> header. There was a discussion regarding this in [1] as well. According to
> that, even when the server is behind a load balancer, it will receive
> correct HTTP Host header which indicates the server IP address.
>
> If there are any better approach than this, please suggest.
>
> [1] - [Dev] [C5] How do we get IP address of the Carbon Server?
>
> Thanks,
> --
> Rajith Vitharana
>
> Senior Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
> <http://wso2.com/signature>
>



-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Retrieve wsdl urls from DSS

2016-08-10 Thread Rajith Vitharana
Hi Amalka,

Try using "ServiceAdmin" admin service to achieve your requirement, there
were operations like "getWSDL", "listServices" etc.

Thanks,

On 10 August 2016 at 20:00, Amalka Subasinghe <ama...@wso2.com> wrote:

> Hi,
>
> Is there a way to get the list of wsdl urls from DSS?
>
> In app cloud when we deploy a car file in DSS, I want to get the wsdl urls
> to display on app cloud app-home page. Please help
>
> Thanks
> Amalka
>
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][ESB500] Invoking a secure proxy in a clustered set up

2016-08-07 Thread Rajith Vitharana
e.http.impl.nio.reactor.AbstractIODispatch.inputRea
>>> dy(AbstractIODispatch.java:119)
>>> at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(Base
>>> IOReactor.java:159)
>>> at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEv
>>> ent(AbstractIOReactor.java:338)
>>> at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEv
>>> ents(AbstractIOReactor.java:316)
>>> at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(A
>>> bstractIOReactor.java:277)
>>> at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseI
>>> OReactor.java:105)
>>> at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReacto
>>> r$Worker.run(AbstractMultiworkerIOReactor.java:586)
>>> at java.lang.Thread.run(Thread.java:745)
>>> 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:1728)
>>> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:304)
>>> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
>>> at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHa
>>> ndshaker.java:1506)
>>> at sun.security.ssl.ClientHandshaker.processMessage(ClientHands
>>> haker.java:216)
>>> at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
>>> at sun.security.ssl.Handshaker$1.run(Handshaker.java:919)
>>> at sun.security.ssl.Handshaker$1.run(Handshaker.java:916)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:1369)
>>> at org.apache.http.nio.reactor.ssl.SSLIOSession.doRunTask(SSLIO
>>> Session.java:255)
>>> at org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSL
>>> IOSession.java:293)
>>> ... 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:387)
>>> at sun.security.validator.PKIXValidator.engineValidate(PKIXVali
>>> dator.java:292)
>>> at sun.security.validator.Validator.validate(Validator.java:260)
>>> at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustMana
>>> gerImpl.java:324)
>>> at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509Trust
>>> ManagerImpl.java:281)
>>> at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X50
>>> 9TrustManagerImpl.java:136)
>>> at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHa
>>> ndshaker.java:1493)
>>> ... 17 more
>>> Caused by: sun.security.provider.certpath.SunCertPathBuilderException:
>>> unable to find valid certification path to requested target
>>> at sun.security.provider.certpath.SunCertPathBuilder.build(SunC
>>> ertPathBuilder.java:146)
>>> at sun.security.provider.certpath.SunCertPathBuilder.engineBuil
>>> d(SunCertPathBuilder.java:131)
>>> at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
>>> at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
>>> ... 23 more
>>> TID: [-1234] [] [2016-08-04 05:34:34,004]  WARN
>>> {org.apache.synapse.endpoints.EndpointContext} -  Endpoint :
>>> AnonymousEndpoint with address https://demo5224632.mockable.io/test123
>>> will be marked SUSPENDED as it failed {org.apache.synapse.endpoints.
>>> EndpointContext}
>>> TID: [-1234] [] [2016-08-04 05:34:34,004]  WARN
>>> {org.apache.synapse.endpoints.EndpointContext} -  Suspending endpoint :
>>> AnonymousEndpoint with address https://demo5224632.mockable.io/test123
>>> - last suspend duration was : 3ms and current suspend duration is :
>>> 3ms - Next retry after : Thu Aug 04 05:35:04 UTC 2016
>>> {org.apache.synapse.endpoints.EndpointContext}
>>> TID: [-1234] [] [2016-08-04 05:34:34,006]  INFO
>>> {org.apache.synapse.mediators.builtin.LogMediator} -  To:
>>> /services/SecureP1, MessageID: 
>>> urn:uuid:9ee295f6-3329-4e5e-b41a-cf690d1da0f7,
>>> Direction: request, MESSAGE = Executing default 'fault' sequence,
>>> ERROR_CODE = 101500, ERROR_MESSAGE = Error in Sender, Envelope: >> version='1.0' encoding='utf-8'?>http://schemas.xmlsoap.org/soap/envelope/;>>> oapenv:Body/> {org.apache.synapse.mediators.
>>> builtin.LogMediator}
>>>
>>> Cheers,
>>> Pubudu D.P
>>> Senior Software Engineer - QA Team | WSO2 inc.
>>> Mobile : +94775464547
>>>
>>> Linkedin: https://uk.linkedin.com/in/pubududp
>>> Medium: https://medium.com/@pubududp
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Jagath Ariyarathne
>> Technical Lead
>> WSO2 Inc.  http://wso2.com/
>> Email: jaga...@wso2.com
>> Mob  : +94 77 386 7048
>> <http://wso2.com/signature>
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] fn:sum is not working

2016-08-05 Thread Rajith Vitharana
Hi Godwin,

According to [1] fn:sum is used to make sum of some xpath objects, for
example if the payload is [2], then "fn:sum(//order//item/@quantity)" will
return you the value 11. So I think you can't use fn:sum to just add two
numbers together.


[1] - https://www.w3.org/TR/xpath-functions/#func-sum
[2] - 








Thanks,

On 6 August 2016 at 01:55, Godwin Shrimal <god...@wso2.com> wrote:

> Hi Udara,
>
> Yeah, we can use script mediator as an alternative, I need to know weather
> we can use fn:sum or is it not working in ESB.
>
> Thanks
> Godwin
>
> On Fri, Aug 5, 2016 at 3:19 PM, Udara Liyanage <ud...@wso2.com> wrote:
>
>> Hi Godwin,
>>
>> As a workaround following worked for me. I had to use parseInt, just
>> using + did not work for me.
>>
>> 
>> 
>> <![CDATA[
>>   var sum = parseInt(mc.getProperty("num1"))
>> +parseInt(mc.getProperty("num2"));
>>   var sum = mc.setProperty("testValue",sum.toString());
>>   ]]>
>>
>> On Sat, Aug 6, 2016 at 12:44 AM, Godwin Shrimal <god...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I have following sample config to sum two values
>>>
>>> 
>>> 
>>> http://www.w3.org/2005/xpath-functions; xmlns:test="
>>> http://test;  xmlns:ns="http://org.apache.synapse/xsd; name="testValue"
>>> expression="fn:sum($ctx:num1,$ctx:num2)"/>
>>>
>>> 
>>>   
>>> 
>>>
>>>
>>> Total gives as 10 not 30, Is this a known bug or am I doing something
>>> wrong ?
>>>
>>>
>>> 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
>>> <http://wso2.com/signature>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> Blog: http://udaraliyanage.wordpress.com
>>
>
>
>
> --
> *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
> <http://wso2.com/signature>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Identify Server Host(IP) for Analytics

2016-08-05 Thread Rajith Vitharana
Hi,

In ESB analytics, ESB publishes data to analytic server including it's host
name. Host name is required to differentiate nodes in a clustered
environment(Which node received which request etc) in analytic side.

So for that, currently what we do is take host value from HTTP Host header.
There was a discussion regarding this in [1] as well. According to that,
even when the server is behind a load balancer, it will receive correct
HTTP Host header which indicates the server IP address.

If there are any better approach than this, please suggest.

[1] - [Dev] [C5] How do we get IP address of the Carbon Server?

Thanks,
-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MSF4J] [2.0.0] Illegal argument Exception Thrown when invoking a POST

2016-08-01 Thread Rajith Vitharana
oncurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)*
>>>>> * at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)*
>>>>> * at java.lang.Thread.run(Thread.java:745)*
>>>>>
>>>>> According to the sample service method I am going to capture the json
>>>>> payload as an object passed to the method as follows.
>>>>>
>>>>> @POST
>>>>> @Path("/test")
>>>>> public Response post(TestPayload testPayloadBody) {
>>>>> // TODO: Implementation for HTTP POST request
>>>>> System.out.println("POST invoked == " +testPayloadBody);
>>>>> return Response.ok().entity(testPayloadBody).build();
>>>>> }
>>>>>
>>>>>
>>>>> After further debugging the code, could find that the arguments list
>>>>> passed at [2] contains a string. But according to the implementation it
>>>>> should be a *TestPayload *object. If we observe at [3] the headers
>>>>> Map's keys are all in lowercase. In order to get the header from the map,
>>>>> we use the constant from* javax.ws.rs.core.Headers, *there the
>>>>> CONTENT_TYPE constant is not in all lowercase and Due to this reason 
>>>>> *contentTypeHeaderStr
>>>>> *becomes null and leads to convert the object to a String by the
>>>>> default text formatter, based on the wild card content-type [4].
>>>>>
>>>>> [1]
>>>>> https://drive.google.com/a/wso2.com/folderview?id=0Bx7aKS6MDJqSVDhVSTdWZ1JBVGc=sharing
>>>>> [2]
>>>>> https://github.com/wso2/msf4j/blob/master/core/src/main/java/org/wso2/msf4j/internal/router/HttpMethodInfo.java#L108
>>>>> [3]
>>>>> https://github.com/wso2/carbon-messaging/blob/master/components/src/main/java/org/wso2/carbon/messaging/CarbonMessage.java#L162
>>>>> [4]
>>>>> https://github.com/wso2/msf4j/blob/master/core/src/main/java/org/wso2/msf4j/internal/router/HttpResourceModelProcessor.java#L158
>>>>>
>>>>> Thanks,
>>>>>
>>>>> *Nadeeshaan Gunasinghe*
>>>>> Software Engineer, WSO2 Inc. http://wso2.com
>>>>> +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe
>>>>> <#m_576071181468296572_m_-5747302383305428828_m_-7398431186153042768_m_1214838822956125518_m_-746156207640328338_>
>>>>> <http://www.facebook.com/nadeeshaan.gunasinghe>
>>>>> <http://lk.linkedin.com/in/nadeeshaan>
>>>>> <http://twitter.com/Nadeeshaan>  <http://nadeeshaan.blogspot.com/>
>>>>> Get a signature like this: Click here!
>>>>> <http://ws-promos.appspot.com/r?rdata=eyJydXJsIjogImh0dHA6Ly93d3cud2lzZXN0YW1wLmNvbS9lbWFpbC1pbnN0YWxsP3dzX25jaWQ9NjcyMjk0MDA4JnV0bV9zb3VyY2U9ZXh0ZW5zaW9uJnV0bV9tZWRpdW09ZW1haWwmdXRtX2NhbXBhaWduPXByb21vXzU3MzI1Njg1NDg3Njk3OTIiLCAiZSI6ICI1NzMyNTY4NTQ4NzY5NzkyIn0==543026424429568>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Afkham Azeez*
>>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>> * <http://www.apache.org/>*
>>>> *email: **az...@wso2.com* <az...@wso2.com>
>>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>>> *http://blog.afkham.org* <http://blog.afkham.org>
>>>> *twitter: **http://twitter.com/afkham_azeez*
>>>> <http://twitter.com/afkham_azeez>
>>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>>> <http://lk.linkedin.com/in/afkhamazeez>*
>>>>
>>>> *Lean . Enterprise . Middleware*
>>>>
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * <http://www.apache.org/>*
>> *email: **az...@wso2.com* <az...@wso2.com>
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* <http://blog.afkham.org>
>> *twitter: **http://twitter.com/afkham_azeez*
>> <http://twitter.com/afkham_azeez>
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> <http://lk.linkedin.com/in/afkhamazeez>*
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS] Secure vault for BPMN Analytics configuration

2016-07-27 Thread Rajith Vitharana
esumeBundles(StartLevelManager.java:559)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
> Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2:
> Attribute 'svns:secretAlias' is not allowed to appear in element 'property'.
> at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
> at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> at
> org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown
> Source)
> at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown
> Source)
> at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown
> Source)
> at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown
> Source)
> at org.apache.xerces.impl.xs.XMLSchemaValidator.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.DOMParser.parse(Unknown Source)
> at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
> at
> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
>
> --
> Regards,
>
> Waruna Lakshitha Jayaweera
> Senior Software Engineer
> WSO2 Inc; http://wso2.com
> phone: +94713255198
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error with Secured/Encrypted VFS Transport Credentials on ESB500Beta2

2016-07-26 Thread Rajith Vitharana
na.core.StandardWrapper.initServlet(StandardWrapper.java:1282)*
> * at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1195)*
> * at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1085)*
> * at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5318)*
> * at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5610)*
> * at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)*
> * at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)*
> * at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)*
> * at java.util.concurrent.FutureTask.run(FutureTask.java:266)*
> * at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)*
> * at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)*
> * at java.lang.Thread.run(Thread.java:745)*
>
>
>
>
> On Sat, Jul 23, 2016 at 11:11 PM, Chaminda Jayawardena <chami...@wso2.com>
> wrote:
>
>> Hi Rajith,
>>
>> I used a new keystore with 2048 of key size. And other configurations are
>> as below. So then the problem is key size accoring to that.
>>
>> --encrypted "user:pass" as a whole
>> --have provided decryption in axis2.xml
>>
>> On Fri, Jul 22, 2016 at 8:11 PM, Rajith Vitharana <raji...@wso2.com>
>> wrote:
>>
>>> Hi Chaminda,
>>>
>>> Config level issues I can think of are as follows,
>>> Have you encrypted "username:password" as a whole and provided in [1] or
>>> separately encrypted them and added as colon separated value?
>>> Have you provided same configs for decryption in axis2.xml
>>> vfsTransportListner config? (For example if you use bouncycastle(BC) when
>>> encrypting, then need to provide that for decryption as well)
>>> Have you used a key with larger keystrength for encryption? (for example
>>> 2048 key strength). If so there was a issue with that and already fixed
>>> with [2]
>>>
>>>
>>> [1] - {wso2:vault-decrypt('encryptedValue')}
>>> [2] - https://wso2.org/jira/browse/ESBJAVA-4770
>>>
>>> Thanks,
>>>
>>> On Fri, Jul 22, 2016 at 2:59 PM, Chaminda Jayawardena <chami...@wso2.com
>>> > wrote:
>>>
>>>> Hi,
>>>>
>>>> I followed the steps in [1] and getting below exception[2] when proxy
>>>> service is invoked.
>>>> I manually encrypted the username:password using ciphertool.sh and used
>>>> encrypted value in the proxy service as below. And also I could success
>>>> when the same user:pass combination is not encrypted.
>>>> Anything missed here or just a bug ?
>>>>
>>>> *>>> name="transport.vfs.FileURI">smb://{wso2:vault-decrypt('encrypted_user:pass_from_ciphertool')}@localhost/share/test1*
>>>>
>>>> [1] https://wso2.org/jira/browse/ESBJAVA-4679
>>>> [2]
>>>> [2016-07-22 14:48:11,221] ERROR - VFSTransportListener Error checking
>>>> for existence and readability : smb://@localhost/share/test1
>>>> org.apache.commons.vfs2.FileSystemException: Could not determine the
>>>> type of file "smb://localhost/share/test1".
>>>> at
>>>> org.apache.commons.vfs2.provider.AbstractFileObject.attach(AbstractFileObject.java:1523)
>>>> at
>>>> org.apache.commons.vfs2.provider.AbstractFileObject.getType(AbstractFileObject.java:490)
>>>> at
>>>> org.apache.commons.vfs2.provider.AbstractFileObject.exists(AbstractFileObject.java:478)
>>>> at
>>>> org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:294)
>>>> at
>>>> org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:188)
>>>> at
>>>> org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:134)
>>>> at
>>>> org.apache.axis2.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:67)
>>>> at
>>>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>>> at java.lang.Thread.run(Thread.java:745)
>>&

Re: [Dev] Error with Secured/Encrypted VFS Transport Credentials on ESB500Beta2

2016-07-22 Thread Rajith Vitharana
Hi Chaminda,

Config level issues I can think of are as follows,
Have you encrypted "username:password" as a whole and provided in [1] or
separately encrypted them and added as colon separated value?
Have you provided same configs for decryption in axis2.xml
vfsTransportListner config? (For example if you use bouncycastle(BC) when
encrypting, then need to provide that for decryption as well)
Have you used a key with larger keystrength for encryption? (for example
2048 key strength). If so there was a issue with that and already fixed
with [2]


[1] - {wso2:vault-decrypt('encryptedValue')}
[2] - https://wso2.org/jira/browse/ESBJAVA-4770

Thanks,

On Fri, Jul 22, 2016 at 2:59 PM, Chaminda Jayawardena <chami...@wso2.com>
wrote:

> Hi,
>
> I followed the steps in [1] and getting below exception[2] when proxy
> service is invoked.
> I manually encrypted the username:password using ciphertool.sh and used
> encrypted value in the proxy service as below. And also I could success
> when the same user:pass combination is not encrypted.
> Anything missed here or just a bug ?
>
> * name="transport.vfs.FileURI">smb://{wso2:vault-decrypt('encrypted_user:pass_from_ciphertool')}@localhost/share/test1*
>
> [1] https://wso2.org/jira/browse/ESBJAVA-4679
> [2]
> [2016-07-22 14:48:11,221] ERROR - VFSTransportListener Error checking for
> existence and readability : smb://@localhost/share/test1
> org.apache.commons.vfs2.FileSystemException: Could not determine the type
> of file "smb://localhost/share/test1".
> at
> org.apache.commons.vfs2.provider.AbstractFileObject.attach(AbstractFileObject.java:1523)
> at
> org.apache.commons.vfs2.provider.AbstractFileObject.getType(AbstractFileObject.java:490)
> at
> org.apache.commons.vfs2.provider.AbstractFileObject.exists(AbstractFileObject.java:478)
> at
> org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:294)
> at
> org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:188)
> at
> org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:134)
> at
> org.apache.axis2.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:67)
> at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: jcifs.smb.SmbAuthException: Logon failure: unknown user name or
> bad password.
> at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:406)
> at jcifs.smb.SmbSession.send(SmbSession.java:218)
> at jcifs.smb.SmbTree.treeConnect(SmbTree.java:176)
> at jcifs.smb.SmbFile.doConnect(SmbFile.java:911)
> at jcifs.smb.SmbFile.connect(SmbFile.java:954)
> at jcifs.smb.SmbFile.connect0(SmbFile.java:880)
> at jcifs.smb.SmbFile.queryPath(SmbFile.java:1335)
> at jcifs.smb.SmbFile.exists(SmbFile.java:1417)
> at jcifs.smb.SmbFile.isDirectory(SmbFile.java:1490)
> at
> org.apache.commons.vfs2.provider.smb.SmbFileObject.createSmbFile(SmbFileObject.java:119)
> at
> org.apache.commons.vfs2.provider.smb.SmbFileObject.doAttach(SmbFileObject.java:71)
> at
> org.apache.commons.vfs2.provider.AbstractFileObject.attach(AbstractFileObject.java:1506)
> ... 10 more
>
>
>
>
> --
> Thanks & Regards
>
> *Chaminda Jayawardena*
> Senior Software Engineer - QA
> WSO2 Inc. - http://wso2.com
> +94-77-7725234
>



-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Too many mysql connections when starting ES instances

2016-07-15 Thread Rajith Vitharana
Hi Thushara,



On Fri, Jul 15, 2016 at 6:03 PM, Thushara Ranawaka <thusha...@wso2.com>
wrote:

> Hi Rajith,
>
> Are you using governance aspects of registry?
>
I'm not exactly sure what you meant by this, I just tried to search an
artifact with registry browser. (with "true"
it shows correct results, with the value "false" it doesn't show any
results)

> Kindly share the pack with reproducing steps, Will have a look.
>
It's just a ESB pack with registry mounts. Pack link is [1] which I have
shared with you, (you need to create relevant databases and users to start
the pack)

Noticed that it(single server startup) creates around 103 mysql connections
each time server starts and gradually reducing to smaller number(less than
10)

[1] -
https://drive.google.com/a/wso2.com/file/d/0B11-M0E-tbv5VFNEZ0JQd3dGems/view?usp=sharing

Thanks,

>
> Thanks,
> Thushara.
>
> On Fri, Jul 15, 2016 at 3:41 PM, Rajith Vitharana <raji...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> As advised by Thushara, tried removing solr indexing in ESB using [1],
>> but in that case searching the registry with newly added resources fails(it
>> doesn't show any results). So is it ok to do this change to ESB?
>>
>> [1] - registry.xml  false
>>
>> Thanks,
>>
>> On Fri, Jul 15, 2016 at 3:09 PM, Thushara Ranawaka <thusha...@wso2.com>
>> wrote:
>>
>>> Hi Chanaka,
>>>
>>> On Fri, Jul 15, 2016 at 2:42 PM, Chanaka Fernando <chana...@wso2.com>
>>> wrote:
>>>
>>>> Hi Thushara,
>>>>
>>>> Increase the mysql active connections to 350. Please note that this is
>>>> bounded to server specs.
>>>> Now start 2 servers at a time. Wait 10 mins before starting the other 2
>>>> WSO2 servers.
>>>> Or else you can always start 1 server at a time every 10 mins.
>>>> Therefore it will take 30 mins to start all 4 nodes.
>>>>
>>>> Do you think we can tell something like this in front of a customer?
>>>> Normally customers want to start the servers within seconds and they want
>>>> to start an entire cluster within minutes (maximum). Please provide a
>>>> recommendation which makes sense in a real world. We need a proper way to
>>>> handle this.
>>>>
>>>
>>> This recommendation is for ES not for ESB and specially not for
>>> customers since we can automate this using config. ES uses governance
>>> features therefore ES need to have solr enabled. Therefore please
>>> disable[3] solr in all ESB nodes. Further more I understand they will start
>>> all the servers straightaway but for ES initial start(database with data)
>>> there is a heavy indexing process is happening in the background to have a
>>> smooth ride afterward. Since there is 4 nodes either user have to increase
>>> database connections from DB side or start servers one by one with a delay.
>>> We can automate this using indexingConfiguration[4] in registry.xml. This
>>> is just a one time thing, you can change it back to default values after
>>> the first startup.
>>>
>>> [4] - {Different values in each nodes with 10
>>> mins different.}
>>> 3
>>> 
>>> 50
>>> 
>>> 10
>>>
>>> Thanks,
>>> Thushara.
>>>
>>>
>>>> On Fri, Jul 15, 2016 at 1:25 PM, Thushara Ranawaka <thusha...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Dilini,
>>>>>
>>>>>
>>>>> On Thu, Jul 14, 2016 at 2:31 PM, Dilini Gunatilake <dili...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> @Thushara,
>>>>>> Thanks for the info. Any recommended number of max_connections to
>>>>>> configure considering indexing with a high load etc? Then we can add 
>>>>>> those
>>>>>> details in the docs to avoid future issues.
>>>>>>
>>>>>
>>>>> My personal recommendation,
>>>>> Increase the mysql active connections to 350. Please note that this is
>>>>> bounded to server specs.
>>>>> Now start 2 servers at a time. Wait 10 mins before starting the other
>>>>> 2 WSO2 servers.
>>>>> Or else you can always start 1 server at a time every 10 mins.
>>>>> Therefore it will take 30 mins to start all 4 nodes.
>>>>>
>>>>&g

Re: [Dev] [ES] Too many mysql connections when starting ES instances

2016-07-15 Thread Rajith Vitharana
Hi All,

As advised by Thushara, tried removing solr indexing in ESB using [1], but
in that case searching the registry with newly added resources fails(it
doesn't show any results). So is it ok to do this change to ESB?

[1] - registry.xml  false

Thanks,

On Fri, Jul 15, 2016 at 3:09 PM, Thushara Ranawaka <thusha...@wso2.com>
wrote:

> Hi Chanaka,
>
> On Fri, Jul 15, 2016 at 2:42 PM, Chanaka Fernando <chana...@wso2.com>
> wrote:
>
>> Hi Thushara,
>>
>> Increase the mysql active connections to 350. Please note that this is
>> bounded to server specs.
>> Now start 2 servers at a time. Wait 10 mins before starting the other 2
>> WSO2 servers.
>> Or else you can always start 1 server at a time every 10 mins. Therefore
>> it will take 30 mins to start all 4 nodes.
>>
>> Do you think we can tell something like this in front of a customer?
>> Normally customers want to start the servers within seconds and they want
>> to start an entire cluster within minutes (maximum). Please provide a
>> recommendation which makes sense in a real world. We need a proper way to
>> handle this.
>>
>
> This recommendation is for ES not for ESB and specially not for customers
> since we can automate this using config. ES uses governance features
> therefore ES need to have solr enabled. Therefore please disable[3] solr in
> all ESB nodes. Further more I understand they will start all the servers
> straightaway but for ES initial start(database with data) there is a heavy
> indexing process is happening in the background to have a smooth ride
> afterward. Since there is 4 nodes either user have to increase database
> connections from DB side or start servers one by one with a delay. We can
> automate this using indexingConfiguration[4] in registry.xml. This is just
> a one time thing, you can change it back to default values after the first
> startup.
>
> [4] - {Different values in each nodes with 10 mins
> different.}
> 3
> 
> 50
> 
> 10
>
> Thanks,
> Thushara.
>
>
>> On Fri, Jul 15, 2016 at 1:25 PM, Thushara Ranawaka <thusha...@wso2.com>
>> wrote:
>>
>>> Hi Dilini,
>>>
>>>
>>> On Thu, Jul 14, 2016 at 2:31 PM, Dilini Gunatilake <dili...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> @Thushara,
>>>> Thanks for the info. Any recommended number of max_connections to
>>>> configure considering indexing with a high load etc? Then we can add those
>>>> details in the docs to avoid future issues.
>>>>
>>>
>>> My personal recommendation,
>>> Increase the mysql active connections to 350. Please note that this is
>>> bounded to server specs.
>>> Now start 2 servers at a time. Wait 10 mins before starting the other 2
>>> WSO2 servers.
>>> Or else you can always start 1 server at a time every 10 mins. Therefore
>>> it will take 30 mins to start all 4 nodes.
>>>
>>> Thanks,
>>> Thushara.
>>>
>>>
>>>>
>>>> @Sumedha,
>>>> I was able to start all the nodes because the number of connections
>>>> reduces after some time.
>>>>
>>>> As Rajith mentioned, the concern is having that number of connections
>>>> created just for a server startup having less than 25 assets.
>>>>
>>>> Thanks,
>>>> Dilini
>>>>
>>>>
>>>> On Thu, Jul 14, 2016 at 12:53 PM, Rajith Vitharana <raji...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> On Thu, Jul 14, 2016 at 12:44 PM, Sumedha Rubasinghe <sume...@wso2.com
>>>>> > wrote:
>>>>>
>>>>>> Guys,
>>>>>> Some food for thought.
>>>>>>
>>>>>> 1. A single MySQL Server has a globally defined max_connections
>>>>>> figure (151 as Dilini mentioned)
>>>>>>
>>>>>> So on a clustered setup, when you point to a single MySQL Server from
>>>>>> various WSO2 products, depending on no of keep alive connections 
>>>>>> specified,
>>>>>> you will at some point will hit too many connections from server side @
>>>>>> some point.
>>>>>>
>>>>> Yeah totally agree, but that much(395) is bit high AFAIU when just
>>>>> starting up a server(without any load in 4 servers, and when it stabilize,
>>>>> it only consumes less tha

Re: [Dev] [ES] Too many mysql connections when starting ES instances

2016-07-14 Thread Rajith Vitharana
Hi,

On Thu, Jul 14, 2016 at 12:44 PM, Sumedha Rubasinghe <sume...@wso2.com>
wrote:

> Guys,
> Some food for thought.
>
> 1. A single MySQL Server has a globally defined max_connections figure
> (151 as Dilini mentioned)
>
> So on a clustered setup, when you point to a single MySQL Server from
> various WSO2 products, depending on no of keep alive connections specified,
> you will at some point will hit too many connections from server side @
> some point.
>
Yeah totally agree, but that much(395) is bit high AFAIU when just starting
up a server(without any load in 4 servers, and when it stabilize, it only
consumes less than 20 connections without load)

@Thushara, Thanks for the info, will check what you have mentioned.

Thanks,

>
> So you have to rethink the deployment and use a different database server.
>
> 2. If ES has a tendency to perform too many database calls @ startup,
> - You can temporally eliminate that by controlling node start up order
>
>
> On Thu, Jul 14, 2016 at 12:04 PM, Rajith Vitharana <raji...@wso2.com>
> wrote:
>
>> Hi,
>>
>> We faced the same issue in ESB latest when clustering enabled, with 4
>> node cluster, number of connections goes to around 395 and gradually comes
>> down to 20 or less, even with the exception happened(mysql having default
>> max connections 151), it seems it gets stable to 20 or less connections
>> after some time. Created a public jira to track this issue at [1]
>>
>> [1] - https://wso2.org/jira/browse/REGISTRY-3771
>>
>> Thanks,
>>
>> On Wed, Jul 13, 2016 at 4:42 PM, Dilini Gunatilake <dili...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> I have set up a 4 node cluster for ES 2.1.0 Alpha2 pack with mysql 5.7.
>>> When I started one store node I got an error [3].
>>>
>>> Then, I checked the connections in the mysql server and found that the
>>> default number of max_connections (151) have been exceeded while the store
>>> node is starting. But initially without starting any ES instances there
>>> were only around 20 connections. So, what we observed was when starting ES
>>> instances substantially high amount of connections will be created and they
>>> will be gradually reduced after sometime. Is this an acceptable behavior?
>>>
>>> Also, we could find the recommended max_connections to configure in some
>>> products [1][2], but couldn't find anything for ES. So, what is the
>>> recommended value for ES?
>>> For the time being we will increase the max connections to 300 and
>>> proceed with testing.
>>>
>>> Your earliest response is highly appreciated.
>>>
>>> [1] https://docs.wso2.com/display/AM200/Tuning+Performance
>>> [2]
>>> https://docs.wso2.com/display/Governance510/Performance+Tuning+Recommendations
>>>
>>> [3]
>>>
>>> [2016-07-13 07:50:40,014] ERROR
>>> {org.wso2.carbon.registry.core.dataaccess.TransactionManager} -  Failed to
>>> start new registry transaction.
>>> com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
>>> Could not create connection to database server. Attempted reconnect 3
>>> times. Giving up.
>>> at sun.reflect.GeneratedConstructorAccessor107.newInstance(Unknown
>>> Source)
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
>>> at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
>>> at com.mysql.jdbc.Util.getInstance(Util.java:387)
>>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:917)
>>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:896)
>>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:885)
>>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860)
>>> at
>>> com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2165)
>>> at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2090)
>>> at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:795)
>>> at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:44)
>>> at sun.reflect.GeneratedConstructorAccessor76.newInstance(Unknown Source)
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
>>> at com.mysql.jdbc.Util.handleNewInstance(Uti

Re: [Dev] [ES] Too many mysql connections when starting ES instances

2016-07-14 Thread Rajith Vitharana
ion:
> Resource does not exist at path /_system/governance/gadgets/admin/WSO2
> Carbon Commits List Discussion/1.0.0
> [2016-07-13 07:50:40,062] ERROR
> {org.wso2.carbon.registry.indexing.AsyncIndexer} -  Error while indexing.
> Resource at path
> "/_system/governance/store/asset_resources/site/6b89dd21-0a98-4489-9f0d-fc327ff46bc0/images_thumbnail"could
> not be
> indexedorg.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
> Resource does not exist at path
> /_system/governance/store/asset_resources/site/6b89dd21-0a98-4489-9f0d-fc327ff46bc0/images_thumbnail
> [2016-07-13 07:50:40,056] ERROR
> {org.wso2.carbon.registry.indexing.AsyncIndexer} -  Error while indexing.
> Resource at path
> "/_system/governance/store/asset_resources/gadget/4c4f7877-ff39-4379-9ee4-6c1827732ec6/images_thumbnail"could
> not be
> indexedorg.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
> Resource does not exist at path
> /_system/governance/store/asset_resources/gadget/4c4f7877-ff39-4379-9ee4-6c1827732ec6/images_thumbnail
> [2016-07-13 07:50:40,079] ERROR
> {org.wso2.carbon.registry.indexing.AsyncIndexer} -  Error while indexing.
> Resource at path
> "/_system/governance/store/asset_resources/gadget/57235acc-ad87-41db-84e7-dadc0bcff8d5/images_thumbnail"could
> not be
> indexedorg.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
> Resource does not exist at path
> /_system/governance/store/asset_resources/gadget/57235acc-ad87-41db-84e7-dadc0bcff8d5/images_thumbnail
>
>
> Thank you.
> Regards,
>
> --
>
> *Dilini GunatilakeSoftware Engineer - QA Team*
> Mobile : +94 (0) 771 162518
> dili...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Task scheduling in ESB 5.0.0 when clustered.

2016-06-14 Thread Rajith Vitharana
Hi Kasun,

On Wed, Jun 15, 2016 at 12:41 AM, Kasun Indrasiri <ka...@wso2.com> wrote:

>
>
> On Tue, Jun 14, 2016 at 6:58 AM, Chanaka Fernando <chana...@wso2.com>
> wrote:
>
>> Hi Rajith,
>>
>> I think we should keep the existing functionality as it is and make the
>> change with the property. That will make sure that other products will run
>> tasks according to their requirement (same way as existing) and ESB can run
>> the tasks according to the ESB requirement with the value of this property.
>> Please do the change as per our offline discussion.
>>
> This is a major change and we need to do a proper design review before
> proceeding with this.
> @Rajith : Please arrange a review.
>
Sure will do, BTW this change needs only in mediation level, so this won't
effect other components which use ntask core.

Thanks,

>
>> @Malaka: Since we cannot control or decide on the usage of the task
>> component in other products, we can change our implementation to work
>> according to our requirement. It is not essential to use the components in
>> the same manner across multiple products since they can have different
>> requirements.
>>
>> Thanks,
>> Chanaka
>>
>> On Tue, Jun 14, 2016 at 4:59 PM, Malaka Silva <mal...@wso2.com> wrote:
>>
>>> Valid requirement. However should this be something to consider at
>>> platform level.
>>>
>>> Just introducing new property for ESB will introduce inconsistency with
>>> other products?
>>>
>>> On Tue, Jun 14, 2016 at 3:39 PM, Rajith Vitharana <raji...@wso2.com>
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> In current ESB task implementation, it only assumes worker manager
>>>> clustering pattern and only schedule tasks in worker nodes. (Identifies
>>>> this by -DworkerNode=true system property) But there may be scenarios where
>>>> clustering mode is not worker manager (for examples just two ESB nodes
>>>> clustered to be used in active passive mode)
>>>>
>>>> In this case tasks not going to be scheduled in ESB nodes(because they
>>>> are not worker nodes)
>>>> And we can't even identify whether the clustering mode is worker
>>>> manager or not. (AFAIK there is currently no property which states that)
>>>>
>>>> And we can't simply schedule tasks in every nodes as well. Because in a
>>>> worker manager cluster, manager should not run tasks. Hence we need a way
>>>> to differentiate.
>>>>
>>>> So as a solution we thought of adding a property to "axis2.xml" file.
>>>> We can have below two approaches.
>>>>
>>>> 1) - Adding a property (Eg - "clusteringMode" values "WORKER_MANAGER",
>>>> "NONE") which states clustering mode.
>>>> 2) - Adding a property (Eg - "taskNode" values "true" and "false" with
>>>> default "true") which state whether to skip running tasks or not.
>>>>
>>>> if we use property [1], then it will be consistent and we need to
>>>> specify that in every node.
>>>> And if someone just mention clustering mode as "WORKER_MANAGER" and
>>>> fail to start workers with "-DworkerNode=true" parameter, then tasks won't
>>>> get executed in any node.
>>>>
>>>> if we use property [2] we need to only specify that in manager nodes
>>>> with value "false"(because it defaults to "true")
>>>> and if someone forget to mention that parameter in a manager node of a
>>>> worker manager cluster, then tasks will run in that node as well.
>>>>
>>>> and I personally prefer property[2] since we are trying to solve task
>>>> scheduling issue and it is failsafe because even if we forget that
>>>> parameter, task scheduling happens. Appreciate any feedback on this.
>>>>
>>>> Thanks,
>>>> --
>>>> Rajith Vitharana
>>>>
>>>> Software Engineer,
>>>> WSO2 Inc. : wso2.com
>>>> Mobile : +94715883223
>>>> Blog : http://lankavitharana.blogspot.com/
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Best Regards,
>>>

[Dev] Task scheduling in ESB 5.0.0 when clustered.

2016-06-14 Thread Rajith Vitharana
Hi All,

In current ESB task implementation, it only assumes worker manager
clustering pattern and only schedule tasks in worker nodes. (Identifies
this by -DworkerNode=true system property) But there may be scenarios where
clustering mode is not worker manager (for examples just two ESB nodes
clustered to be used in active passive mode)

In this case tasks not going to be scheduled in ESB nodes(because they are
not worker nodes)
And we can't even identify whether the clustering mode is worker manager or
not. (AFAIK there is currently no property which states that)

And we can't simply schedule tasks in every nodes as well. Because in a
worker manager cluster, manager should not run tasks. Hence we need a way
to differentiate.

So as a solution we thought of adding a property to "axis2.xml" file. We
can have below two approaches.

1) - Adding a property (Eg - "clusteringMode" values "WORKER_MANAGER",
"NONE") which states clustering mode.
2) - Adding a property (Eg - "taskNode" values "true" and "false" with
default "true") which state whether to skip running tasks or not.

if we use property [1], then it will be consistent and we need to specify
that in every node.
And if someone just mention clustering mode as "WORKER_MANAGER" and fail to
start workers with "-DworkerNode=true" parameter, then tasks won't get
executed in any node.

if we use property [2] we need to only specify that in manager nodes with
value "false"(because it defaults to "true")
and if someone forget to mention that parameter in a manager node of a
worker manager cluster, then tasks will run in that node as well.

and I personally prefer property[2] since we are trying to solve task
scheduling issue and it is failsafe because even if we forget that
parameter, task scheduling happens. Appreciate any feedback on this.

Thanks,
-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove old opensaml bundle from carbon-apimgt

2016-06-07 Thread Rajith Vitharana
Hi Bhathiya,

[1] seems to be already a osgi bundle which is in maven central [2]

[1] - 
  org.apache.velocity
  velocity
  1.7

[2] - http://mvnrepository.com/artifact/org.apache.velocity/velocity/1.7

Thanks,

On Tue, Jun 7, 2016 at 12:57 PM, Bhathiya Jayasekara <bhath...@wso2.com>
wrote:

> Hi Kasun,
>
> Do we already have a velocity orbit already? I can't find in
> https://github.com/wso2/orbit
>
> Thanks,
> Bhathiya
>
> On Tue, Jun 7, 2016 at 12:54 PM, Bhathiya Jayasekara <bhath...@wso2.com>
> wrote:
>
>> Thanks Kasun. Will do the change.
>>
>> Regards,
>> Bhathiya
>>
>> On Tue, Jun 7, 2016 at 12:36 PM, KasunG Gajasinghe <kas...@wso2.com>
>> wrote:
>>
>>> Hi APIM team,
>>>
>>> The OpenSaml2 version 2.4.1.wso2v1 is deprecated due to several security
>>> vulnerabilities that were discovered. Therefore, please remove this bundle
>>> [1]. If you need to use opensaml2, then you should import this feature. [2]
>>>
>>> Note that the new opensaml2 bundle does not export velocity packages
>>> since that is wrong. If you need to directly use velocity, then you will
>>> need to use a Velocity orbit.
>>>
>>> [1]
>>> https://github.com/wso2/carbon-apimgt/commit/62cbfd6a9e42689b0624ea3a432daa412542ed3d
>>>
>>> [2]
>>> https://github.com/wso2-extensions/identity-inbound-auth-saml/blob/master/features/org.wso2.carbon.identity.sso.saml.server.feature/pom.xml
>>>
>>> Thanks,
>>> KasunG
>>>
>>> --
>>>
>>> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
>>> email: kasung AT spamfree wso2.com
>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>> blog: http://kasunbg.org
>>>
>>>
>>>
>>
>>
>>
>> --
>> *Bhathiya Jayasekara*
>> *Senior Software Engineer,*
>> *WSO2 inc., http://wso2.com <http://wso2.com>*
>>
>> *Phone: +94715478185 <%2B94715478185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> <http://www.linkedin.com/in/bhathiyaj>*
>> *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>*
>> *Blog: http://movingaheadblog.blogspot.com
>> <http://movingaheadblog.blogspot.com/>*
>>
>
>
>
> --
> *Bhathiya Jayasekara*
> *Senior Software Engineer,*
> *WSO2 inc., http://wso2.com <http://wso2.com>*
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> <http://www.linkedin.com/in/bhathiyaj>*
> *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>*
> *Blog: http://movingaheadblog.blogspot.com
> <http://movingaheadblog.blogspot.com/>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
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-05-10 Thread Rajith Vitharana
Hi All,

This can be avoided by using "synapse.commons.json.buildValidNCNames" to
value "true" in /repository/conf/synapse.properties file, This
will replace space in the json to "JsonReader_32" value. So sample would be
as follows

input Json -
{
 "abc nnn": "value1"
}

output XML -
value1


And this works other way around as well, say you need to convert XML to
json and json element should need to have a space within it, then you can
use "JsonReader_32" in xml to get the space in json output, for example,

input xml -
value1

output json -
{
"abc nnn": "value1"
}

I have added this info to jira as well,
@Praneesha, IMO better have it in docs as well.

Thanks,

On Thu, May 5, 2016 at 2:40 PM, Udara Liyanage <ud...@wso2.com> wrote:

> Hi,
>
> i think option 1 is better, As I remember earlier ESB versions uses
> underscore for space.
>
> On Thu, May 5, 2016 at 1:53 AM, Rajith Vitharana <raji...@wso2.com> wrote:
>
>> Hi,
>>
>> So what would be the best convention to follow
>> 1 - just throw a error saying can't convert to XML because of the space
>> character
>> 2 - encode that space (will need to support this when converting back to
>> json as well)
>>
>> Thanks,
>>
>> On Tue, Mar 8, 2016 at 9:37 AM, Udara Liyanage <ud...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Yes, I also think it is a bug in json to xml conversion. I will create a
>>> jira for this.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rajith Vitharana
>>
>> Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94715883223
>> Blog : http://lankavitharana.blogspot.com/
>>
>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>



-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How can I retrieve XMLTYPE & SDO_GEOMETRY types from an oracle database using DSS?

2016-02-23 Thread Rajith Vitharana
Hi Rajkumar,

You may achieve this by writing a custom connector as well. Documentation
is in [1]. But it will be too complicated as you'll need to write the whole
datasource implementation. So easier thing would be to do a conversion
within stored procedure as Anjana suggested.

[1] - https://docs.wso2.com/display/DSS350/Custom+Datasources

Thanks,

On Tue, Feb 23, 2016 at 5:29 AM, Rajkumar Rajaratnam <rajkum...@wso2.com>
wrote:

> Hi,
>
> $Subject please. I couldn't find a way to retrieve columns of types
> XMLTYPE & SDO_GEOMETRY from an oracle database using DSS. Is there any way
> to retrieve them?
>
> Thanks,
> Raj.
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Software Engineer, WSO2
>
> Mobile : +94777568639
> Blog : rajkumarr.com
>



-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] [DepSync] Question about deployment synchronizer code

2016-02-18 Thread Rajith Vitharana
Hi,

When going through the code, noticed that in
"org.wso2.carbon.deployment.synchronizer.subversion.SVNBasedArtifactRepository"
class [1] "SVNBasedArtifactRepository" method it tries to check for
directory information in svn remote location. If that fails(throws
exception) then code tries to create that folder in svn remote location.
The issue I saw is this happens even for worker nodes(it doesn't check for
"AutoCommit" property).

Is this the correct behavior? shouldn't worker nodes avoid doing such
things?

[1] -
https://github.com/wso2/carbon-commons/blob/master/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/src/main/java/org/wso2/carbon/deployment/synchronizer/subversion/SVNBasedArtifactRepository.java

Thanks,

-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] org.wso2.carbon.identity.mgt_5.0.7.jar not available in nexus repo ?

2016-02-13 Thread Rajith Vitharana
Hi Tharindu,

I guess your dependency is wrong. I think what you need is below

 
org.wso2.carbon.identity
org.wso2.carbon.identity.mgt
5.0.7


it's there in the wso2 public repo [1] and also in releases repo [2]

[1] -
http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/identity/org.wso2.carbon.identity.mgt/5.0.7/
[2] -
http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/identity/org.wso2.carbon.identity.mgt/5.0.7/

Thanks,

On Sat, Feb 13, 2016 at 7:52 PM, Tharindu Edirisinghe <tharin...@wso2.com>
wrote:

> Hi IS Team,
>
> I need to write a custom component for IS 5.1.0, which should depend on
> identity-mgt component. I added the following dependency.
>
>
> 
> org.wso2.carbon.identity
> identity-mgt
> 5.0.7
> 
>
> Added the nexus repo also to the pom file but when I try to build, it
> cannot find the *org.wso2.carbon.identity.mgt_5.0.7.jar *in the nexus
> repo [1].
>
> Any idea ?
>
> [1]
> http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/identity/identity-mgt/5.0.7/
>
> Thanks,
> TharinduE
> --
>
> 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
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Improvements to the Data Services Editor in Developer Studio

2016-02-04 Thread Rajith Vitharana
Hi,

+1 for the new improvements, And in latest DSS there are new improvements,

1) Can provide an Authorization provider when creating the
dataservice(first step in UI where we specify the service name)
2) Expose data as OData (when creating data sources in UI using a checkbox)
3) Google spreadsheet data sources now have different configurations(to
generate access tokens)

It's great if we can include these as well (Couldn't find these in
developer studio 3.8.0, if these are already added just ignore)

Thanks,

On Fri, Feb 5, 2016 at 10:39 AM, Viraj Rajaguru <vi...@wso2.com> wrote:

> +1 for new improvements.
>
> Thanks,
> Viraj.
>
> On Fri, Feb 5, 2016 at 8:20 AM, Sohani Weerasinghe <soh...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> With the current level of implementation, DS Editor of the Developer
>> studio has few issues in creating a data service and I have fixed those
>> issues and implemented some improvements as listed below
>>
>> 1. With the initial implementation, when user clicks on the tree view the
>> design view gets dirty even user didn't change any value. This is fixed
>> where user will only need to save the content when he/she edits the design
>> view ( via setting properties) or edits the source view.
>>
>> 2. After user creates a data service and closes the editor, once he/she
>> opens the editor and after traversing through the tree view the added
>> initial values have not persisted correctly in the source view. This is
>> fixed with the new improvement so that user will not lose any data.
>>
>> 3. With the initial implementation, user didn't get a chance to,
>>
>>- Select preferred values for  a data source when adding a query
>>- Select parameter type, sql type, in/out type when adding a query
>>param
>>- Select a query ID when adding a call-query for an operation etc
>>
>> and this is fixed as shown in the attached image.
>>
>> Thanks,
>> Sohani
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 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
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Class Not Found error when shutting down the Dashboard Server

2016-01-12 Thread Rajith Vitharana
Hi Lalanke,

NoClassDefFoundError not necessarily means class file is not found. it can
be initialization error as well. In that case there may be Exceptions
occurred prior to this. If you see such exception, try to resolve that
first, and then this will be resolved then, Reference -
http://stackoverflow.com/questions/34413/why-am-i-getting-a-noclassdeffounderror-in-java

Thanks,

On Tue, Jan 12, 2016 at 2:41 PM, Lalanke Athauda <lala...@wso2.com> wrote:

> Hi,
> When I shut down the Dashboard Server we get following error in console.
>
> [2016-01-12 14:16:06,333]  INFO {org.wso2.carbon.core.ServerManagement} -
> All deployment tasks have been completed.
> [2016-01-12 14:16:06,334]  INFO {org.wso2.carbon.core.ServerManagement} -
> Waiting for server task completion...
> Exception in thread "Thread-12" java.lang.NoClassDefFoundError: Could not
> initialize class org.wso2.carbon.registry.indexing.RegistryConfigLoader
> at
> org.wso2.carbon.registry.indexing.IndexingManager.(IndexingManager.java:60)
> at
> org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:71)
> at
> org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$1.startingShutdown(IndexingServiceComponent.java:84)
> at
> org.wso2.carbon.core.ServerManagement.waitForServerTaskCompletion(ServerManagement.java:113)
> at
> org.wso2.carbon.core.ServerManagement.startMaintenanceForShutDown(ServerManagement.java:97)
> at
> org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:878)
> at
> org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:901)
>
> I checked is the respective jar file in plugins directory, and it was
> there.
> Then I checked is the corresponding bundle active using osgi console and
> it was also in ACTIVE state.
> Any idea to solve this problem. Highly appreciate your suggestions.
> Thanks.
>
> --
> Lalanke Athauda
> Software Engineer
> WSO2 Inc.
> Mobile: 0772264301
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DSS] Instructions to Generate Auth Credentials for google spreadsheet services

2015-12-16 Thread Rajith Vitharana
Hi Chanuka,

You need to have a host name instead of direct IP address(doesn't need to
be publicly available) since this is used for browser redirect, you can use
a local network shared host name as well. For example say the server is
running in your machine,then just use "localhost" as the host name(in this
case only 127.0.0.1 also works, only publicly shared IPs cannot be used),
say the server is running in local network, then put some hostname in your
"/etc/hosts" file pointing to that server and use that hostname in the
developer console.

Thanks,

On Wed, Dec 16, 2015 at 5:31 AM, Madhawa Gunasekara <madha...@wso2.com>
wrote:

> Hi Chanuka,
>
> It seems, You need to use a domain name(public available host name) for
> this purpose.
>
> Thanks,
> Madhawa
>
> On Wed, Dec 16, 2015 at 2:14 PM, Chanuka Dissanayake <chan...@wso2.com>
> wrote:
>
>> Hi
>>
>> I need $subject for DSS hosted in research cloud, Im getting following
>> error. What would be the solution for this. I couldn't find it in the docs
>> [1].
>>
>> [1] https://docs.wso2.com/display/DSS350/Google+Spreadsheet
>>
>> Thanks & Regards,
>> Chanuka.
>> --
>> Chanuka Dissanayake
>> *Software Engineer | **WSO2 Inc.*; http://wso2.com
>>
>> Mobile: +94 71 33 63 596
>> Email: chan...@wso2.com
>>
>
>
>
> --
> *Madhawa Gunasekara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002 <+94+719411002>
> blog: *http://madhawa-gunasekara.blogspot.com
> <http://madhawa-gunasekara.blogspot.com>*
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> <http://lk.linkedin.com/in/mgunasekara>*
>



-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release WSO2 DSS 3.5.0 RC2

2015-10-28 Thread Rajith Vitharana
Hi All,

Thank you for testing and verifying the WSO2 Data Services Server 3.5.0
RC2. We are closing this vote now. This vote has passed with 5 +1s and 0
-1s. Therefore we are proceeding with the WSO2 Data Services Server 3.5.0
release.

5 +1s
0  -1s

Thank you and Regards,
WSO2 DSS Team
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 DSS 3.5.0 RC2

2015-10-23 Thread Rajith Vitharana
Hi,

This is the second release candidate of WSO2 DSS 3.5.0

This release fixes the following issues:
*https://wso2.org/jira/issues/?filter=12469
*

Please download, test and vote. The vote will be open for 72 hours or as
needed.

Source & binary distribution files:
https://svn.wso2.org/repos/wso2/scratch/DSS/3.5.0/RC2/wso2dss-3.5.0.zip


JavaDocs
https://svn.wso2.org/repos/wso2/scratch/DSS/3.5.0/RC2/javaDocs/index.html

Maven staging repo:
*http://maven.wso2.org/nexus/content/repositories/orgwso2dss-058/
*

The tag to be voted upon:
*https://github.com/wso2/product-dss/tree/v3.5.0-RC2
*


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

Thanks,
The WSO2 DSS Team
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 DSS 3.5.0 RC1

2015-10-22 Thread Rajith Vitharana
Hi,

This is the first release candidate of WSO2 DSS 3.5.0

This release fixes the following issues:
https://wso2.org/jira/browse/DS-1126?filter=12469

Please download, test and vote. The vote will be open for 72 hours or as
needed.

Source & binary distribution files:
https://svn.wso2.org/repos/wso2/scratch/DSS/3.5.0/RC1/wso2dss-3.5.0.zip

JavaDocs
https://svn.wso2.org/repos/wso2/scratch/DSS/3.5.0/RC1/javaDocs/index.html

Maven staging repo:
http://maven.wso2.org/nexus/content/repositories/orgwso2dss-045/

The tag to be voted upon:
https://github.com/wso2/product-dss/tree/v3.5.0-RC1


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

Thanks,
The WSO2 DSS Team
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Releasing Carbon Commons 4.5.x Patch Version

2015-10-21 Thread Rajith Vitharana
Hi Supun,

On Wed, Oct 21, 2015 at 9:43 PM, Supun Malinga <sup...@wso2.com> wrote:

>
>
> On Wed, Oct 21, 2015 at 2:38 AM, Rajith Vitharana <raji...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I guess we have to go with commons 4.4.x rather than 4.5.1, because I
>> have tried to build with commons 4.5.0 and it wasn't successful, throw
>> below error
>>
>>
> Why do we see the build errors now ?. We released commons 4.5.0 for you
> guys, and you have verified at the staging level !
>
We are using only one feature from commons 4.5.0 (data source deployer
feature) when building the pack. We didn't migrate to commons 4.5.0 in our
component repo, level we were using commons 4.4.7

Thanks,
-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Releasing Carbon Commons 4.5.x Patch Version

2015-10-21 Thread Rajith Vitharana
Hi,

I guess we have to go with commons 4.4.x rather than 4.5.1, because I have
tried to build with commons 4.5.0 and it wasn't successful, throw below
error

Cannot complete the install because one or more required items could not be
found.
 Software being installed: WSO2 Tenant Common Composite Feature 4.4.3
(org.wso2.carbon.tenant.common.feature.group 4.4.3)
 Missing requirement: WSO2 Tenant Common Composite Feature 4.4.3
(org.wso2.carbon.tenant.common.feature.group 4.4.3) requires
'org.wso2.carbon.tenant.mgt.common.feature.group [4.4.4,4.5.0)' but it
could not be found
Application failed, log file location:
/home/rajith/Wso2/mavenRepo/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1445409020170.log

seems carbon tenant common composite feature 4.4.3 (latest released version
) required a commons version below 4.5.0, So if we are going to go with
commons 4.5.1, we may have to get a release of carbon-multitenancy as well,
So shall we go ahead with commons 4.4.x?

Below are the new fixes that needs to be in 4.4.x

[1] -
https://github.com/wso2/carbon-commons/commit/3290aa0a9b41c6fc1804b6e383a1540e9e888a2a
This is a bug fix
[2] -
https://github.com/wso2/carbon-commons/commit/0b9f08299b13348d11cf0bc5d92da9c492c782f5
This is just indentation
[3] - https://github.com/wso2/carbon-commons/pull/172
This is a UI improvement done for jira [4]. It has only client side (UI)
fixes and only DSS uses them
[4] - https://wso2.org/jira/browse/DS-1034

Will we be able to get a commons 4.4.x out with those fixes?

Thanks,


On Wed, Oct 21, 2015 at 2:09 AM, Anjana Fernando <anj...@wso2.com> wrote:

> Hi Sameera / KasunG,
>
> We are doing RC releases for DAS and DSS today (21'st), and we have
> several fixes done for Carbon Commons, among them, a blocker [1] being
> fixed for DAS. Can we please get a patch release done for Carbon Commons
> today, since we have critical deadlines for these products, and their RCs
> must go out today, thus we need these fixes as well.
>
> [1] https://wso2.org/jira/browse/CCOMMONS-2
>
> Cheers,
> Anjana.
> --
> *Anjana Fernando*
> Senior Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>



-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Releasing Carbon Commons 4.5.x Patch Version

2015-10-21 Thread Rajith Vitharana
On Wed, Oct 21, 2015 at 4:49 PM, Rajith Vitharana <raji...@wso2.com> wrote:

> Hi Kernel Team,
>
> There are other issues if we move to carbon-commons 4.5.0, one being DSS
> feature installation in ESB 4.9.0 will fail, because they are using commons
> 4.4.7 (with import range [4.4.0,4.5.0)) and our import range will be
> [4.5.0,5.0.0).
>
> Other issue would be, we have tested(DSS, DAS) both with existing
> versions, (commons 4.4.7 and carbon-mutitenancy 4.4.3) and if we are to
> move to commons 4.5.1 version, we have to migrate to multitenancy newer
> version as well, As we are in RC state (Both DAS and DSS) that would be bit
> risky. It will be great if we can have commons 4.4.8 release.
>
> [1] is the critical fix that we will need in that release. There is
> another UI improvement (which was refused to merge because of API changes)
> [2] as well. It will be great if we can have commons 4.4.8 release with
> those fixes.
>
> [1] -
> https://github.com/wso2/carbon-commons/commit/aa844c5616a92d5843e69693154d09d282214d74
> [2] - https://github.com/wso2/carbon-commons/pull/172
>
This is only UI side fix and other than DSS it's not used by anyone. Public
jira is https://wso2.org/jira/browse/DS-1034

Thanks

-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Releasing Carbon Commons 4.5.x Patch Version

2015-10-21 Thread Rajith Vitharana
Hi Kernel Team,

There are other issues if we move to carbon-commons 4.5.0, one being DSS
feature installation in ESB 4.9.0 will fail, because they are using commons
4.4.7 (with import range [4.4.0,4.5.0)) and our import range will be
[4.5.0,5.0.0).

Other issue would be, we have tested(DSS, DAS) both with existing versions,
(commons 4.4.7 and carbon-mutitenancy 4.4.3) and if we are to move to
commons 4.5.1 version, we have to migrate to multitenancy newer version as
well, As we are in RC state (Both DAS and DSS) that would be bit risky. It
will be great if we can have commons 4.4.8 release.

[1] is the critical fix that we will need in that release. There is another
UI improvement (which was refused to merge because of API changes) [2] as
well. It will be great if we can have commons 4.4.8 release with those
fixes.

[1] -
https://github.com/wso2/carbon-commons/commit/aa844c5616a92d5843e69693154d09d282214d74
[2] - https://github.com/wso2/carbon-commons/pull/172

Thanks,

On Wed, Oct 21, 2015 at 12:59 PM, Anjana Fernando <anj...@wso2.com> wrote:

> +1, yeah, let's go with a 4.4.x release.
>
> Cheers,
> Anjana.
>
> On Wed, Oct 21, 2015 at 12:08 PM, Rajith Vitharana <raji...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I guess we have to go with commons 4.4.x rather than 4.5.1, because I
>> have tried to build with commons 4.5.0 and it wasn't successful, throw
>> below error
>>
>> Cannot complete the install because one or more required items could not
>> be found.
>>  Software being installed: WSO2 Tenant Common Composite Feature 4.4.3
>> (org.wso2.carbon.tenant.common.feature.group 4.4.3)
>>  Missing requirement: WSO2 Tenant Common Composite Feature 4.4.3
>> (org.wso2.carbon.tenant.common.feature.group 4.4.3) requires
>> 'org.wso2.carbon.tenant.mgt.common.feature.group [4.4.4,4.5.0)' but it
>> could not be found
>> Application failed, log file location:
>> /home/rajith/Wso2/mavenRepo/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1445409020170.log
>>
>> seems carbon tenant common composite feature 4.4.3 (latest released
>> version ) required a commons version below 4.5.0, So if we are going to go
>> with commons 4.5.1, we may have to get a release of carbon-multitenancy as
>> well, So shall we go ahead with commons 4.4.x?
>>
>> Below are the new fixes that needs to be in 4.4.x
>>
>> [1] -
>> https://github.com/wso2/carbon-commons/commit/3290aa0a9b41c6fc1804b6e383a1540e9e888a2a
>> This is a bug fix
>> [2] -
>> https://github.com/wso2/carbon-commons/commit/0b9f08299b13348d11cf0bc5d92da9c492c782f5
>> This is just indentation
>> [3] - https://github.com/wso2/carbon-commons/pull/172
>> This is a UI improvement done for jira [4]. It has only client side (UI)
>> fixes and only DSS uses them
>> [4] - https://wso2.org/jira/browse/DS-1034
>>
>> Will we be able to get a commons 4.4.x out with those fixes?
>>
>> Thanks,
>>
>>
>> On Wed, Oct 21, 2015 at 2:09 AM, Anjana Fernando <anj...@wso2.com> wrote:
>>
>>> Hi Sameera / KasunG,
>>>
>>> We are doing RC releases for DAS and DSS today (21'st), and we have
>>> several fixes done for Carbon Commons, among them, a blocker [1] being
>>> fixed for DAS. Can we please get a patch release done for Carbon Commons
>>> today, since we have critical deadlines for these products, and their RCs
>>> must go out today, thus we need these fixes as well.
>>>
>>> [1] https://wso2.org/jira/browse/CCOMMONS-2
>>>
>>> Cheers,
>>> Anjana.
>>> --
>>> *Anjana Fernando*
>>> Senior Technical Lead
>>> WSO2 Inc. | http://wso2.com
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>> Rajith Vitharana
>>
>> Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94715883223
>> Blog : http://lankavitharana.blogspot.com/
>>
>
>
>
> --
> *Anjana Fernando*
> Senior Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>



-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.2 RC3

2015-10-19 Thread Rajith Vitharana
Hi,

Tested with DSS basic scenarios
1 - deploying car scenario
2 - invoking simple service
3 - invoking simple rest service (with post body content - which doesn't
work in kernel 4.4.1)

+1 to release

Thanks,

On Mon, Oct 19, 2015 at 10:45 AM, Manuri Amaya Perera <manu...@wso2.com>
wrote:

> Hi Maduranga,
>
> If you need to use the bundle exported by kernel you'll have to use the
> version exported by kernel which is 0.0.0.
>
> Was it working it 4.4.1? But, as this is a framework package we have not
> changed anything.
>
>
> Thank you.
>
>
>
> On Sat, Oct 17, 2015 at 1:21 PM, Maduranga Siriwardena <madura...@wso2.com
> > wrote:
>
>> Hi Manuri,
>>
>> When building IS 5.1.0 master branch with kernel 4.4.2 RC3, we got error
>> at [1]. It searches for javax.xml.parsers in the version
>> range [1.3.0,2.0.0). Currently we haven't specified the version for
>> javax.xml.parsers in our Import-Packages in carbon-identity. But after
>> defining the Import-Package version range to [0.0.0,1.0.0), it builds okay.
>> We get this error only when using kernel 4.4.2. Do we need to explicitly
>> specify the javax.xml.parsers version?
>>
>> [1] https://gist.github.com/madurangasiriwardena/5d118b4323ecd41e53bb
>>
>> Thanks,
>> Maduranga
>>
>> On Fri, Oct 16, 2015 at 11:20 PM, Manuri Amaya Perera <manu...@wso2.com>
>> wrote:
>>
>>> Hi Devs,
>>>
>>> WSO2 Carbon Kernel 4.4.2 RC3 Release Vote.
>>>
>>> This release fixes the following issues:
>>> https://wso2.org/jira/issues/?filter=12396
>>>
>>> Please download and test your products with kernel 4.4.2 RC3 and vote.
>>> Vote will be open for 72 hours or longer as needed.
>>>
>>> *​Source and binary distribution files:*
>>> http://svn.wso2.org/repos/wso2/people/kalpaw/wso2carbon-4.4.2/
>>>
>>> *Maven staging repository:*
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-020/
>>>
>>> *The tag to be voted upon:*
>>> https://github.com/wso2/carbon-kernel/tree/v4.4.2-rc3
>>>
>>> [ ] Broken - do not release (explain why)
>>> [ ] Stable - go ahead and release
>>>
>>>
>>> Thank you
>>> Carbon Team
>>>
>>> --
>>>
>>> *Manuri Amaya Perera*
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc.*
>>>
>>> *Blog: http://manuriamayaperera.blogspot.com
>>> <http://manuriamayaperera.blogspot.com>*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Maduranga Siriwardena
>> Software Engineer
>> WSO2 Inc.
>>
>> email: madura...@wso2.com
>> mobile: +94718990591
>>
>
>
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> <http://manuriamayaperera.blogspot.com>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Enabling security with user name token

2015-10-16 Thread Rajith Vitharana
Hi Hasintha,

What I'm saying is that Soap UI doesn't send basic auth header, we have to
manually add that.

Thanks,

On Fri, Oct 16, 2015 at 3:05 PM, Hasintha Indrajee <hasin...@wso2.com>
wrote:

> Hi Rajith,
>
> Ideally even if you do not add authorization headers (xml), it should
> work. Ie POX handler converts basicAuth headers to xml security headers. In
> the current master branch of carbon-identity, this works as expected.
>
> On Fri, Oct 16, 2015 at 10:08 AM, Rajith Vitharana <raji...@wso2.com>
> wrote:
>
>> Hi Hasintha,
>>
>> I was able to resolve the error with help of ESB team, There was an error
>> in our deployment flow as well. How ever when we use Soap UI, it still
>> doesn't send the security headers itself, where as we have to manually add
>> the security header to the request
>>
>> This was working fine with earlier ESB versions (4.8.0 where security was
>> enabled via security management UI) the same flow doesn't work in ESB
>> 4.9.0. In DSS as well, this is the case now (have to add authorization
>> header manually).
>>
>> Soap UI version I'm using is 5.0.0
>>
>> Thanks,
>>
>> On Thu, Oct 15, 2015 at 2:45 PM, Hasintha Indrajee <hasin...@wso2.com>
>> wrote:
>>
>>> Are you calling the service with security headers in the request it self
>>> ?.
>>>
>>> On Wed, Oct 14, 2015 at 8:37 PM, Rajith Vitharana <raji...@wso2.com>
>>> wrote:
>>>
>>>> Hi Hasintha,
>>>>
>>>> We are using carbon-identity 4.5.6
>>>>
>>>> @Firzan we are using [1] as the policy file which contains the element
>>>> you mentioned above.
>>>>
>>>> [1] -
>>>> http://svn.wso2.org/repos/wso2/people/isuruu/qos/synapse-configs/default/local-entries/p1.xml
>>>>
>>>> Thanks,
>>>>
>>>> On Wed, Oct 14, 2015 at 5:12 PM, Hasintha Indrajee <hasin...@wso2.com>
>>>> wrote:
>>>>
>>>>> Can you please tell me the carbon-identity version you are using ?
>>>>>
>>>>> On Wed, Oct 14, 2015 at 3:04 PM, Rajith Vitharana <raji...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> + Asela
>>>>>>
>>>>>> On Wed, Oct 14, 2015 at 1:13 PM, Rajith Vitharana <raji...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I have enabled security in DSS service specifying the policy file
>>>>>>> (roles included in the policy). But when invoking the service with 
>>>>>>> username
>>>>>>> password, it throws below exception.
>>>>>>>
>>>>>>> java.lang.ClassCastException:
>>>>>>> org.apache.axiom.om.impl.dom.ElementImpl cannot be cast to
>>>>>>> org.apache.axiom.soap.SOAPHeaderBlock
>>>>>>> at
>>>>>>> org.wso2.carbon.security.pox.POXSecurityHandler.isSOAPWithoutSecHeader(POXSecurityHandler.java:362)
>>>>>>> at
>>>>>>> org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:102)
>>>>>>> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>>>>>>> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
>>>>>>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>>>>>>> at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:515)
>>>>>>> at
>>>>>>> org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:433)
>>>>>>> at
>>>>>>> org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:398)
>>>>>>> at
>>>>>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:188)
>>>>>>> at
>>>>>>> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
>>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
>>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>>>>>> at
>>>>>>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>>>>>>> at
>>>>>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>>

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.2 RC2

2015-10-16 Thread Rajith Vitharana
Or can we remove this required features section? since this will limit us
to do releases on limited version range if we are using specific kernel
version?

Thanks,

On Fri, Oct 16, 2015 at 4:35 PM, Rajith Vitharana <raji...@wso2.com> wrote:

> [+Kishanthan]
>
> On Fri, Oct 16, 2015 at 4:35 PM, Rajith Vitharana <raji...@wso2.com>
> wrote:
>
>> Hi Kishanthan,
>>
>> In "org.wso2.carbon.application.deployer" component's
>> "required-features.xml" it was mentioned "[4.4.0, 4.5.0)"
>> as "org.wso2.carbon.dataservices.server.feature.group" required version
>> range, since we(carbon-data) are still on 4.3.3-SNAPSHOT, capp deployment
>> fails in DSS latest, Can we change this version range to "[4.3.0,4.5.0)"?
>>
>> Thanks,
>>
>> On Fri, Oct 16, 2015 at 4:29 PM, Sasikala Kottegoda <sasik...@wso2.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> We tested MB 3.0.0 with kernel 4.4.2-RC2 with the additional fixes and
>>> no issues were identified.
>>>
>>> Thank you
>>>
>>> On Fri, Oct 16, 2015 at 4:03 PM, Pandula Kariyawasam <pand...@wso2.com>
>>> wrote:
>>>
>>>> Hi Johann/Kishanthan,
>>>>
>>>> Both issue [2][3] were observed rarely on IS510 pack received on 8th
>>>> Oct 2015, which was based on kernel 4.4.1.
>>>> We didn't experience these issue up to now, on the pack received on
>>>> 13th Oct 2015, which is based on kernel 4.4.2.
>>>> So I think we can reduce the priority of these issues, and keep eye on
>>>> them in latest packs with kernel 4.4.2.
>>>>
>>>> [2] https://wso2.org/jira/browse/IDENTITY-3815
>>>> [3] https://wso2.org/jira/browse/IDENTITY-3817
>>>>
>>>> Thanks,
>>>> Pandula
>>>>
>>>>
>>>> On Fri, Oct 16, 2015 at 3:09 PM, Johann Nallathamby <joh...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Kishanthan,
>>>>>
>>>>> On Fri, Oct 16, 2015 at 2:38 PM, Kishanthan Thangarajah <
>>>>> kishant...@wso2.com> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Oct 16, 2015 at 11:27 AM, Johann Nallathamby <joh...@wso2.com
>>>>>> > wrote:
>>>>>>
>>>>>>> Hi Kishanthan/Kernel Team,
>>>>>>>
>>>>>>> We have added the test case as well to the same PR.
>>>>>>>
>>>>>>
>>>>>> Thanks Johann.
>>>>>>
>>>>>> @MB Team, could you guys verify that all your scenarios are now
>>>>>> passing?.  We will start the next RC build once this is confirmed ASAP.
>>>>>>
>>>>>>>
>>>>>>> Also can we get CARBON-15505 merged? The PR for master is a very old
>>>>>>> PR which we have missed to review and merge. This mainly contains some
>>>>>>> reordering of fields in the UI to make it more consistent and reorder
>>>>>>> properties in user-mgt.xml to be consistent with UI. Hope we don't need 
>>>>>>> any
>>>>>>> tests for this.
>>>>>>>
>>>>>>
>>>>>> I think its better not to add any more changes at this stage. We will
>>>>>> merge this for next patch release.
>>>>>>
>>>>>>>
>>>>>>> Any update on the 3 issues raised above ?
>>>>>>>
>>>>>>
>>>>>> For [1], we need more information to reproduce (LB & IS config,
>>>>>> example requests, HTTP access logs on both LB and IS side with this 
>>>>>> issue).
>>>>>> Will send a separate mail on that, but I believe its not a blocker for 
>>>>>> the
>>>>>> IS release right?
>>>>>>
>>>>>
>>>>> I will request Hasanthi to upload the artifacts you requested.
>>>>>
>>>>> I may be not the right person to say if this is blocker or not.
>>>>> @QA Team, please give your opinion if we can consider this as not a
>>>>> blocker and go ahead with the release.
>>>>>
>>>>> Regards.
>>>>>
>>>>>
>>>>>> [2] and [3], we haven't seen this error previously and according the
>>>>>> trace, it l

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.2 RC2

2015-10-16 Thread Rajith Vitharana
Hi Kishanthan,

Tested this by editing the jar file manually with(version range in
"required-features.xml" file) "[4.3.0,5.0.0)" and it works fine.

Thanks,

On Fri, Oct 16, 2015 at 5:29 PM, Kishanthan Thangarajah <kishant...@wso2.com
> wrote:

> I think making this as [4.3.0, 5.0.0) is the correct solution from kernel
> side. This file ideally should not be part of kernel, but its there due to
> "DefaultAppDeployer" is the one which deploys data-services and this class
> is in currently in kernel code base.
>
> @Rajith, could you quickly test this locally and see? We will change the
> version range on this file as above, and in long time, we will see whether
> we could remove this file from kernel code base.
>
> On Fri, Oct 16, 2015 at 4:38 PM, Rajith Vitharana <raji...@wso2.com>
> wrote:
>
>> Or can we remove this required features section? since this will limit us
>> to do releases on limited version range if we are using specific kernel
>> version?
>>
>> Thanks,
>>
>> On Fri, Oct 16, 2015 at 4:35 PM, Rajith Vitharana <raji...@wso2.com>
>> wrote:
>>
>>> [+Kishanthan]
>>>
>>> On Fri, Oct 16, 2015 at 4:35 PM, Rajith Vitharana <raji...@wso2.com>
>>> wrote:
>>>
>>>> Hi Kishanthan,
>>>>
>>>> In "org.wso2.carbon.application.deployer" component's
>>>> "required-features.xml" it was mentioned "[4.4.0, 4.5.0)"
>>>> as "org.wso2.carbon.dataservices.server.feature.group" required version
>>>> range, since we(carbon-data) are still on 4.3.3-SNAPSHOT, capp deployment
>>>> fails in DSS latest, Can we change this version range to "[4.3.0,4.5.0)"?
>>>>
>>>> Thanks,
>>>>
>>>> On Fri, Oct 16, 2015 at 4:29 PM, Sasikala Kottegoda <sasik...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> We tested MB 3.0.0 with kernel 4.4.2-RC2 with the additional fixes and
>>>>> no issues were identified.
>>>>>
>>>>> Thank you
>>>>>
>>>>> On Fri, Oct 16, 2015 at 4:03 PM, Pandula Kariyawasam <pand...@wso2.com
>>>>> > wrote:
>>>>>
>>>>>> Hi Johann/Kishanthan,
>>>>>>
>>>>>> Both issue [2][3] were observed rarely on IS510 pack received on 8th
>>>>>> Oct 2015, which was based on kernel 4.4.1.
>>>>>> We didn't experience these issue up to now, on the pack received on
>>>>>> 13th Oct 2015, which is based on kernel 4.4.2.
>>>>>> So I think we can reduce the priority of these issues, and keep eye
>>>>>> on them in latest packs with kernel 4.4.2.
>>>>>>
>>>>>> [2] https://wso2.org/jira/browse/IDENTITY-3815
>>>>>> [3] https://wso2.org/jira/browse/IDENTITY-3817
>>>>>>
>>>>>> Thanks,
>>>>>> Pandula
>>>>>>
>>>>>>
>>>>>> On Fri, Oct 16, 2015 at 3:09 PM, Johann Nallathamby <joh...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Kishanthan,
>>>>>>>
>>>>>>> On Fri, Oct 16, 2015 at 2:38 PM, Kishanthan Thangarajah <
>>>>>>> kishant...@wso2.com> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, Oct 16, 2015 at 11:27 AM, Johann Nallathamby <
>>>>>>>> joh...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Kishanthan/Kernel Team,
>>>>>>>>>
>>>>>>>>> We have added the test case as well to the same PR.
>>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks Johann.
>>>>>>>>
>>>>>>>> @MB Team, could you guys verify that all your scenarios are now
>>>>>>>> passing?.  We will start the next RC build once this is confirmed ASAP.
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Also can we get CARBON-15505 merged? The PR for master is a very
>>>>>>>>> old PR which we have missed to review and merge. This mainly contains 
>>>>>>>>> some
>>>>>>>>> reordering of fields in the UI to make it more con

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.2 RC2

2015-10-16 Thread Rajith Vitharana
>> scenario is as
>>>>>>>>>>>> follows:
>>>>>>>>>>>>
>>>>>>>>>>>> 1. Create a user "user1" with a role assigned with permission
>>>>>>>>>>>> to create queues.
>>>>>>>>>>>> 2. Login from "user1" and try to create a queue, we get a
>>>>>>>>>>>> permission denied error.
>>>>>>>>>>>>
>>>>>>>>>>>> When creating a queue the following happens from our code.
>>>>>>>>>>>>
>>>>>>>>>>>> 1. We create an internal role for the queue and assign it to
>>>>>>>>>>>> the current user with permissions assigned.
>>>>>>>>>>>>
>>>>>>>>>>>> userRealm.getAuthorizationManager().authorizeRole(roleName, 
>>>>>>>>>>>> queueId,
>>>>>>>>>>>>   
>>>>>>>>>>>> PERMISSION_CHANGE_PERMISSION);
>>>>>>>>>>>>
>>>>>>>>>>>> 2. Next, we create the queue and update permissions for the queue. 
>>>>>>>>>>>> In this step, we check if the current user has permissions to 
>>>>>>>>>>>> change the queue.
>>>>>>>>>>>>
>>>>>>>>>>>> String[] userRoles = 
>>>>>>>>>>>> userRealm.getUserStoreManager().getRoleListOfUser(loggedInUser);
>>>>>>>>>>>> for (String userRole : userRoles) {
>>>>>>>>>>>> if (userRealm.getAuthorizationManager().isRoleAuthorized(
>>>>>>>>>>>> userRole, queueID, PERMISSION_CHANGE_PERMISSION)) {
>>>>>>>>>>>> isUserHasChangePermission = true;
>>>>>>>>>>>> }
>>>>>>>>>>>> }
>>>>>>>>>>>>
>>>>>>>>>>>> At this stage, 
>>>>>>>>>>>> *'*(userRealm.getAuthorizationManager().isRoleAuthorized(
>>>>>>>>>>>> userRole, queueID, PERMISSION_CHANGE_PERMISSION))' 
>>>>>>>>>>>> false implying that any of roles assigned to the user do not have 
>>>>>>>>>>>> permissions to change the queue, thus not allowing the user to 
>>>>>>>>>>>> create the queue.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Thank you
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Mon, Oct 12, 2015 at 9:24 PM, Manuri Amaya Perera <
>>>>>>>>>>>> manu...@wso2.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi Devs,
>>>>>>>>>>>>>
>>>>>>>>>>>>> WSO2 Carbon Kernel 4.4.2 RC2 Release Vote.
>>>>>>>>>>>>>
>>>>>>>>>>>>> This release fixes the following issues:
>>>>>>>>>>>>> https://wso2.org/jira/issues/?filter=12396
>>>>>>>>>>>>>
>>>>>>>>>>>>> Please download and test your products with kernel 4.4.2 RC2
>>>>>>>>>>>>> and vote. Vote will be open for 72 hours or longer as needed.
>>>>>>>>>>>>>
>>>>>>>>>>>>> *​Source and binary distribution files:*
>>>>>>>>>>>>> https://svn.wso2.org/repos/wso2/people/aruna/v4.4.2-rc2
>>>>>>>>>>>>>
>>>>>>>>>>>>> *Maven staging repository:*
>>>>>>>>>>>>>
>>>>>>>>>>>>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-019/
>>>>>>>>>>>>>
>>>>>>>>>>>>> *The tag to be voted upon:*
>>>>>>>>>>>>> https://github.com/wso2/carbon-kernel/tree/v4.4.2-rc2
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> [ ] Broken - do not release (explain why)
>>>>>>>>>>>>> [ ] Stable - go ahead and release
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thank you
>>>>>>>>>>>>> Carbon Team
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>>
>>>>>>>>>>>>> *Manuri Amaya Perera*
>>>>>>>>>>>>>
>>>>>>>>>>>>> *Software Engineer*
>>>>>>>>>>>>>
>>>>>>>>>>>>> *WSO2 Inc.*
>>>>>>>>>>>>>
>>>>>>>>>>>>> *Blog: http://manuriamayaperera.blogspot.com
>>>>>>>>>>>>> <http://manuriamayaperera.blogspot.com>*
>>>>>>>>>>>>>
>>>>>>>>>>>>> ___
>>>>>>>>>>>>> Dev mailing list
>>>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Sasikala Kottegoda
>>>>>>>>>>>> *Software Engineer*
>>>>>>>>>>>> WSO2 Inc., http://wso2.com/
>>>>>>>>>>>> lean. enterprise. middleware
>>>>>>>>>>>> Mobile: +94 774835928/712792401
>>>>>>>>>>>>
>>>>>>>>>>>> ___
>>>>>>>>>>>> Dev mailing list
>>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> *Kishanthan Thangarajah*
>>>>>>>>>>> Associate Technical Lead,
>>>>>>>>>>> Platform Technologies Team,
>>>>>>>>>>> WSO2, Inc.
>>>>>>>>>>> lean.enterprise.middleware
>>>>>>>>>>>
>>>>>>>>>>> Mobile - +94773426635
>>>>>>>>>>> Blog - *http://kishanthan.wordpress.com
>>>>>>>>>>> <http://kishanthan.wordpress.com>*
>>>>>>>>>>> Twitter - *http://twitter.com/kishanthan
>>>>>>>>>>> <http://twitter.com/kishanthan>*
>>>>>>>>>>>
>>>>>>>>>>> ___
>>>>>>>>>>> Dev mailing list
>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Indika Sampath
>>>>>>>>>> Senior Software Engineer
>>>>>>>>>> WSO2 Inc.
>>>>>>>>>> http://wso2.com
>>>>>>>>>>
>>>>>>>>>> Phone: +94 716 424 744
>>>>>>>>>> Blog: http://indikasampath.blogspot.com/
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> 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>*
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Isura Dilhara Karunaratne
>>>>>>>> Senior Software Engineer
>>>>>>>>
>>>>>>>> Mob +94 772 254 810
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Kishanthan Thangarajah*
>>>>>>> Associate Technical Lead,
>>>>>>> Platform Technologies Team,
>>>>>>> WSO2, Inc.
>>>>>>> lean.enterprise.middleware
>>>>>>>
>>>>>>> Mobile - +94773426635
>>>>>>> Blog - *http://kishanthan.wordpress.com
>>>>>>> <http://kishanthan.wordpress.com>*
>>>>>>> Twitter - *http://twitter.com/kishanthan
>>>>>>> <http://twitter.com/kishanthan>*
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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>*
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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>*
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Kishanthan Thangarajah*
>>>> Associate Technical Lead,
>>>> Platform Technologies Team,
>>>> WSO2, Inc.
>>>> lean.enterprise.middleware
>>>>
>>>> Mobile - +94773426635
>>>> Blog - *http://kishanthan.wordpress.com
>>>> <http://kishanthan.wordpress.com>*
>>>> Twitter - *http://twitter.com/kishanthan
>>>> <http://twitter.com/kishanthan>*
>>>>
>>>
>>>
>>>
>>> --
>>> 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>*
>>>
>>
>>
>>
>> --
>>
>> *Pandula Kariyawasam K.B.*
>> *Senior Software Engineer - QA*
>> Mobile: +94772314510
>>
>>
>>
>> *WSO2 Inc.lean . enterprise . middlewear.http://www.wso2.com
>> <http://www.wso2.com>*
>> <http://www.wso2.com>
>>
>
>
>
> --
> Sasikala Kottegoda
> *Software Engineer*
> WSO2 Inc., http://wso2.com/
> lean. enterprise. middleware
> Mobile: +94 774835928/712792401
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.2 RC2

2015-10-16 Thread Rajith Vitharana
[+Kishanthan]

On Fri, Oct 16, 2015 at 4:35 PM, Rajith Vitharana <raji...@wso2.com> wrote:

> Hi Kishanthan,
>
> In "org.wso2.carbon.application.deployer" component's
> "required-features.xml" it was mentioned "[4.4.0, 4.5.0)"
> as "org.wso2.carbon.dataservices.server.feature.group" required version
> range, since we(carbon-data) are still on 4.3.3-SNAPSHOT, capp deployment
> fails in DSS latest, Can we change this version range to "[4.3.0,4.5.0)"?
>
> Thanks,
>
> On Fri, Oct 16, 2015 at 4:29 PM, Sasikala Kottegoda <sasik...@wso2.com>
> wrote:
>
>> Hi all,
>>
>> We tested MB 3.0.0 with kernel 4.4.2-RC2 with the additional fixes and no
>> issues were identified.
>>
>> Thank you
>>
>> On Fri, Oct 16, 2015 at 4:03 PM, Pandula Kariyawasam <pand...@wso2.com>
>> wrote:
>>
>>> Hi Johann/Kishanthan,
>>>
>>> Both issue [2][3] were observed rarely on IS510 pack received on 8th Oct
>>> 2015, which was based on kernel 4.4.1.
>>> We didn't experience these issue up to now, on the pack received on 13th
>>> Oct 2015, which is based on kernel 4.4.2.
>>> So I think we can reduce the priority of these issues, and keep eye on
>>> them in latest packs with kernel 4.4.2.
>>>
>>> [2] https://wso2.org/jira/browse/IDENTITY-3815
>>> [3] https://wso2.org/jira/browse/IDENTITY-3817
>>>
>>> Thanks,
>>> Pandula
>>>
>>>
>>> On Fri, Oct 16, 2015 at 3:09 PM, Johann Nallathamby <joh...@wso2.com>
>>> wrote:
>>>
>>>> Hi Kishanthan,
>>>>
>>>> On Fri, Oct 16, 2015 at 2:38 PM, Kishanthan Thangarajah <
>>>> kishant...@wso2.com> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Fri, Oct 16, 2015 at 11:27 AM, Johann Nallathamby <joh...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Kishanthan/Kernel Team,
>>>>>>
>>>>>> We have added the test case as well to the same PR.
>>>>>>
>>>>>
>>>>> Thanks Johann.
>>>>>
>>>>> @MB Team, could you guys verify that all your scenarios are now
>>>>> passing?.  We will start the next RC build once this is confirmed ASAP.
>>>>>
>>>>>>
>>>>>> Also can we get CARBON-15505 merged? The PR for master is a very old
>>>>>> PR which we have missed to review and merge. This mainly contains some
>>>>>> reordering of fields in the UI to make it more consistent and reorder
>>>>>> properties in user-mgt.xml to be consistent with UI. Hope we don't need 
>>>>>> any
>>>>>> tests for this.
>>>>>>
>>>>>
>>>>> I think its better not to add any more changes at this stage. We will
>>>>> merge this for next patch release.
>>>>>
>>>>>>
>>>>>> Any update on the 3 issues raised above ?
>>>>>>
>>>>>
>>>>> For [1], we need more information to reproduce (LB & IS config,
>>>>> example requests, HTTP access logs on both LB and IS side with this 
>>>>> issue).
>>>>> Will send a separate mail on that, but I believe its not a blocker for the
>>>>> IS release right?
>>>>>
>>>>
>>>> I will request Hasanthi to upload the artifacts you requested.
>>>>
>>>> I may be not the right person to say if this is blocker or not.
>>>> @QA Team, please give your opinion if we can consider this as not a
>>>> blocker and go ahead with the release.
>>>>
>>>> Regards.
>>>>
>>>>
>>>>> [2] and [3], we haven't seen this error previously and according the
>>>>> trace, it looks like the "distributedCache" instance is becoming null in
>>>>> CacheImpl class. If the exact steps can be found or given on how to
>>>>> reproduce this, then we can work on finding the root cause for this.
>>>>>
>>>>>
>>>>>> Thanks,
>>>>>> Johann.
>>>>>>
>>>>>> On Thu, Oct 15, 2015 at 3:30 PM, Johann Nallathamby <joh...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Kishanthan/Kernel Team,
>>>>>>>
>>>>>>> We are in the p

Re: [Dev] Enabling security with user name token

2015-10-15 Thread Rajith Vitharana
Hi Hasintha,

I was able to resolve the error with help of ESB team, There was an error
in our deployment flow as well. How ever when we use Soap UI, it still
doesn't send the security headers itself, where as we have to manually add
the security header to the request

This was working fine with earlier ESB versions (4.8.0 where security was
enabled via security management UI) the same flow doesn't work in ESB
4.9.0. In DSS as well, this is the case now (have to add authorization
header manually).

Soap UI version I'm using is 5.0.0

Thanks,

On Thu, Oct 15, 2015 at 2:45 PM, Hasintha Indrajee <hasin...@wso2.com>
wrote:

> Are you calling the service with security headers in the request it self
> ?.
>
> On Wed, Oct 14, 2015 at 8:37 PM, Rajith Vitharana <raji...@wso2.com>
> wrote:
>
>> Hi Hasintha,
>>
>> We are using carbon-identity 4.5.6
>>
>> @Firzan we are using [1] as the policy file which contains the element
>> you mentioned above.
>>
>> [1] -
>> http://svn.wso2.org/repos/wso2/people/isuruu/qos/synapse-configs/default/local-entries/p1.xml
>>
>> Thanks,
>>
>> On Wed, Oct 14, 2015 at 5:12 PM, Hasintha Indrajee <hasin...@wso2.com>
>> wrote:
>>
>>> Can you please tell me the carbon-identity version you are using ?
>>>
>>> On Wed, Oct 14, 2015 at 3:04 PM, Rajith Vitharana <raji...@wso2.com>
>>> wrote:
>>>
>>>> + Asela
>>>>
>>>> On Wed, Oct 14, 2015 at 1:13 PM, Rajith Vitharana <raji...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have enabled security in DSS service specifying the policy file
>>>>> (roles included in the policy). But when invoking the service with 
>>>>> username
>>>>> password, it throws below exception.
>>>>>
>>>>> java.lang.ClassCastException: org.apache.axiom.om.impl.dom.ElementImpl
>>>>> cannot be cast to org.apache.axiom.soap.SOAPHeaderBlock
>>>>> at
>>>>> org.wso2.carbon.security.pox.POXSecurityHandler.isSOAPWithoutSecHeader(POXSecurityHandler.java:362)
>>>>> at
>>>>> org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:102)
>>>>> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>>>>> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
>>>>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>>>>> at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:515)
>>>>> at
>>>>> org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:433)
>>>>> at
>>>>> org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:398)
>>>>> at
>>>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:188)
>>>>> at
>>>>> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>>>> at
>>>>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>>>>> at
>>>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>>>>> at
>>>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>>>> at
>>>>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>>>>> at
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>>>>> at
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>>> at
>>>>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>>>>> at
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>>>> at
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>>> at
>>>>> org.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSRFPreventionFilter.java:88)
>>>>> at
>>>>> org.apache.catalina.core.ApplicationFilterChain.i

Re: [Dev] Enabling security with user name token

2015-10-14 Thread Rajith Vitharana
Hi Hasintha,

We are using carbon-identity 4.5.6

@Firzan we are using [1] as the policy file which contains the element you
mentioned above.

[1] -
http://svn.wso2.org/repos/wso2/people/isuruu/qos/synapse-configs/default/local-entries/p1.xml

Thanks,

On Wed, Oct 14, 2015 at 5:12 PM, Hasintha Indrajee <hasin...@wso2.com>
wrote:

> Can you please tell me the carbon-identity version you are using ?
>
> On Wed, Oct 14, 2015 at 3:04 PM, Rajith Vitharana <raji...@wso2.com>
> wrote:
>
>> + Asela
>>
>> On Wed, Oct 14, 2015 at 1:13 PM, Rajith Vitharana <raji...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I have enabled security in DSS service specifying the policy file (roles
>>> included in the policy). But when invoking the service with username
>>> password, it throws below exception.
>>>
>>> java.lang.ClassCastException: org.apache.axiom.om.impl.dom.ElementImpl
>>> cannot be cast to org.apache.axiom.soap.SOAPHeaderBlock
>>> at
>>> org.wso2.carbon.security.pox.POXSecurityHandler.isSOAPWithoutSecHeader(POXSecurityHandler.java:362)
>>> at
>>> org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:102)
>>> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>>> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
>>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>>> at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:515)
>>> at
>>> org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:433)
>>> at
>>> org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:398)
>>> at
>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:188)
>>> at
>>> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>> at
>>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>> at
>>> org.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSRFPreventionFilter.java:88)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>> at
>>> org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(CRLFPreventionFilter.java:59)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>> at
>>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>>> at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>>> at
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
>>> at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
>>> at
>

Re: [Dev] Enabling security with user name token

2015-10-14 Thread Rajith Vitharana
+ Asela

On Wed, Oct 14, 2015 at 1:13 PM, Rajith Vitharana <raji...@wso2.com> wrote:

> Hi,
>
> I have enabled security in DSS service specifying the policy file (roles
> included in the policy). But when invoking the service with username
> password, it throws below exception.
>
> java.lang.ClassCastException: org.apache.axiom.om.impl.dom.ElementImpl
> cannot be cast to org.apache.axiom.soap.SOAPHeaderBlock
> at
> org.wso2.carbon.security.pox.POXSecurityHandler.isSOAPWithoutSecHeader(POXSecurityHandler.java:362)
> at
> org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:102)
> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
> at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:515)
> at
> org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:433)
> at
> org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:398)
> at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:188)
> at
> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSRFPreventionFilter.java:88)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(CRLFPreventionFilter.java:59)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
> at
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
> at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:10

[Dev] Enabling security with user name token

2015-10-14 Thread Rajith Vitharana
 else?

Thanks,

-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.2 RC2

2015-10-13 Thread Rajith Vitharana
Hi,

There is also a minor issue in user core as well, which is related to mysql
server version. Created a public jira for that in [1]

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

Thanks,

On Wed, Oct 14, 2015 at 10:32 AM, Sasikala Kottegoda <sasik...@wso2.com>
wrote:

> Hi Kishanthan,
>
> Yes, it is present in 4.4.2 RC1 as well. But not in 4.4.1.
>
> Thank you.
>
> On Tue, Oct 13, 2015 at 5:22 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Was this issue found in 4.4.2 RC1 too?
>>
>> On Tue, Oct 13, 2015 at 4:58 PM, Sasikala Kottegoda <sasik...@wso2.com>
>> wrote:
>>
>>> Hi Manuri,
>>>
>>> We tested MB 3.0.0 with this release and our scenario of queue creation
>>> fails after giving a permission denied error. The scenario is as follows:
>>>
>>> 1. Create a user "user1" with a role assigned with permission to create
>>> queues.
>>> 2. Login from "user1" and try to create a queue, we get a permission
>>> denied error.
>>>
>>> When creating a queue the following happens from our code.
>>>
>>> 1. We create an internal role for the queue and assign it to the current
>>> user with permissions assigned.
>>>
>>> userRealm.getAuthorizationManager().authorizeRole(roleName, queueId,
>>>   
>>> PERMISSION_CHANGE_PERMISSION);
>>>
>>> 2. Next, we create the queue and update permissions for the queue. In this 
>>> step, we check if the current user has permissions to change the queue.
>>>
>>> String[] userRoles = 
>>> userRealm.getUserStoreManager().getRoleListOfUser(loggedInUser);
>>> for (String userRole : userRoles) {
>>> if (userRealm.getAuthorizationManager().isRoleAuthorized(
>>> userRole, queueID, PERMISSION_CHANGE_PERMISSION)) {
>>> isUserHasChangePermission = true;
>>> }
>>> }
>>>
>>> At this stage, *'*(userRealm.getAuthorizationManager().isRoleAuthorized(
>>> userRole, queueID, PERMISSION_CHANGE_PERMISSION))' false 
>>> implying that any of roles assigned to the user do not have permissions to 
>>> change the queue, thus not allowing the user to create the queue.
>>>
>>>
>>> Thank you
>>>
>>>
>>> On Mon, Oct 12, 2015 at 9:24 PM, Manuri Amaya Perera <manu...@wso2.com>
>>> wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> WSO2 Carbon Kernel 4.4.2 RC2 Release Vote.
>>>>
>>>> This release fixes the following issues:
>>>> https://wso2.org/jira/issues/?filter=12396
>>>>
>>>> Please download and test your products with kernel 4.4.2 RC2 and vote.
>>>> Vote will be open for 72 hours or longer as needed.
>>>>
>>>> *​Source and binary distribution files:*
>>>> https://svn.wso2.org/repos/wso2/people/aruna/v4.4.2-rc2
>>>>
>>>> *Maven staging repository:*
>>>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-019/
>>>>
>>>> *The tag to be voted upon:*
>>>> https://github.com/wso2/carbon-kernel/tree/v4.4.2-rc2
>>>>
>>>>
>>>> [ ] Broken - do not release (explain why)
>>>> [ ] Stable - go ahead and release
>>>>
>>>>
>>>> Thank you
>>>> Carbon Team
>>>>
>>>> --
>>>>
>>>> *Manuri Amaya Perera*
>>>>
>>>> *Software Engineer*
>>>>
>>>> *WSO2 Inc.*
>>>>
>>>> *Blog: http://manuriamayaperera.blogspot.com
>>>> <http://manuriamayaperera.blogspot.com>*
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Sasikala Kottegoda
>>> *Software Engineer*
>>> WSO2 Inc., http://wso2.com/
>>> lean. enterprise. middleware
>>> Mobile: +94 774835928/712792401
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Associate Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> <http://kishanthan.wordpress.com>*
>> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>>
>
>
>
> --
> Sasikala Kottegoda
> *Software Engineer*
> WSO2 Inc., http://wso2.com/
> lean. enterprise. middleware
> Mobile: +94 774835928/712792401
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.2 RC2

2015-10-13 Thread Rajith Vitharana
Hi,

We have tested Basic scenarios + installing DSS features in ESB 4.9.0 and
those are successful (there were some integration test failiers due to
configuration changes which needs some fixes in test cases in DSS)

+1 to release

Thanks,

On Tue, Oct 13, 2015 at 4:58 PM, Sasikala Kottegoda <sasik...@wso2.com>
wrote:

> Hi Manuri,
>
> We tested MB 3.0.0 with this release and our scenario of queue creation
> fails after giving a permission denied error. The scenario is as follows:
>
> 1. Create a user "user1" with a role assigned with permission to create
> queues.
> 2. Login from "user1" and try to create a queue, we get a permission
> denied error.
>
> When creating a queue the following happens from our code.
>
> 1. We create an internal role for the queue and assign it to the current
> user with permissions assigned.
>
> userRealm.getAuthorizationManager().authorizeRole(roleName, queueId,
>   
> PERMISSION_CHANGE_PERMISSION);
>
> 2. Next, we create the queue and update permissions for the queue. In this 
> step, we check if the current user has permissions to change the queue.
>
> String[] userRoles = 
> userRealm.getUserStoreManager().getRoleListOfUser(loggedInUser);
> for (String userRole : userRoles) {
> if (userRealm.getAuthorizationManager().isRoleAuthorized(
> userRole, queueID, PERMISSION_CHANGE_PERMISSION)) {
> isUserHasChangePermission = true;
> }
> }
>
> At this stage, *'*(userRealm.getAuthorizationManager().isRoleAuthorized(
> userRole, queueID, PERMISSION_CHANGE_PERMISSION))' false implying 
> that any of roles assigned to the user do not have permissions to change the 
> queue, thus not allowing the user to create the queue.
>
>
> Thank you
>
>
> On Mon, Oct 12, 2015 at 9:24 PM, Manuri Amaya Perera <manu...@wso2.com>
> wrote:
>
>> Hi Devs,
>>
>> WSO2 Carbon Kernel 4.4.2 RC2 Release Vote.
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/issues/?filter=12396
>>
>> Please download and test your products with kernel 4.4.2 RC2 and vote.
>> Vote will be open for 72 hours or longer as needed.
>>
>> *​Source and binary distribution files:*
>> https://svn.wso2.org/repos/wso2/people/aruna/v4.4.2-rc2
>>
>> *Maven staging repository:*
>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-019/
>>
>> *The tag to be voted upon:*
>> https://github.com/wso2/carbon-kernel/tree/v4.4.2-rc2
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>>
>> Thank you
>> Carbon Team
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> <http://manuriamayaperera.blogspot.com>*
>>
>> _______
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sasikala Kottegoda
> *Software Engineer*
> WSO2 Inc., http://wso2.com/
> lean. enterprise. middleware
> Mobile: +94 774835928/712792401
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Identity User management

2015-10-13 Thread Rajith Vitharana
Thanks Hasintha, that worked :)

On Tue, Oct 13, 2015 at 12:26 PM, Hasintha Indrajee <hasin...@wso2.com>
wrote:

> Hi Rajith
>
> You need to install org.wso2.carbon.identity.core.ui.feature in order to
> get this. Once install you will find it under main menu.
>
> 
> org.wso2.carbon.identity.core.ui.feature.group
> ${carbon.identity.version}
> 
>
> On Tue, Oct 13, 2015 at 11:51 AM, Rajith Vitharana <raji...@wso2.com>
> wrote:
>
>> Hi ISTeam,
>>
>> We were using commons user management earlier, and migrated to identity
>> user management. But now we can't see usermanagement section in management
>> console. We have used below feature
>>
>> 
>>
>> org.wso2.carbon.user.mgt.feature.group
>>     4.5.6
>> 
>> Do we need to do anything else?
>>
>> Thanks,
>>
>> --
>> Rajith Vitharana
>>
>> Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94715883223
>> Blog : http://lankavitharana.blogspot.com/
>>
>> _______
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Hasintha Indrajee
> Software Engineer
> WSO2, Inc.
> Mobile:+94 771892453
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Identity User management

2015-10-13 Thread Rajith Vitharana
Hi ISTeam,

We were using commons user management earlier, and migrated to identity
user management. But now we can't see usermanagement section in management
console. We have used below feature



org.wso2.carbon.user.mgt.feature.group
4.5.6

Do we need to do anything else?

Thanks,

-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Vote] Release WSO2 Carbon Kernel 4.4.2 RC1

2015-10-02 Thread Rajith Vitharana
s
>> for queues seems correct. The use case requires users other than the
>> subscriber to be added to the role for that topic. In case of topics, as
>> per the implementation, you create a role per subscription (internally
>> create a temp queue) and and assign the subscriber to it. As per Indika and
>> Hasitha there is no use case to assign other users to it. The only
>> requirement is to keep track of the user who subscribed to that temp queue.
>> In this case creating a role as well as 3 permissions for it is
>> unnecessary. You can just keep the name of the user along with the
>> subscription/temp queue name in the metadata table that MB has.
>>
>> Please look into these options. As per IS team's understanding
>> improvements along these lines will give a substantial improvement. We can
>> help you in implementing these changes.
>>
>> Regards,
>> Johann.
>>
>>
>>
>> On Thu, Oct 1, 2015 at 2:36 PM, Manuri Amaya Perera <manu...@wso2.com>
>> wrote:
>>
>>> Hi Indunil,
>>>
>>> As I understand, "FOREIGN KEY constraint violation" issue is a
>>> regression issue therefore the deadlock issue cannot be resolved until
>>> foreign key constraint violation issue is fixed, right?
>>>
>>> Thank you.
>>>
>>> On Thu, Oct 1, 2015 at 2:01 PM, Indunil Upeksha Rathnayake <
>>> indu...@wso2.com> wrote:
>>>
>>>> Hi,
>>>> The deadlock issue in https://wso2.org/jira/browse/MB-1326 is resolved
>>>> in both oracle 12c and 11g r2. (Please refer previous mails in this mail
>>>> thread to get the idea of the issue). Then after a "FOREIGN KEY constraint
>>>> violation" issue occurred in both mssql and oracle, intermittently (Refer
>>>> the attached file "errorLog_foriegnKeyViolation" for the error log). For
>>>> that, issued the fix in https://github.com/wso2/carbon-kernel/pull/512,
>>>> and it worked for oracle, but not for mssql. This is tested in following
>>>> scenarios in MB cluster.
>>>>
>>>> 1. 5 queues - 5 subscribers and 5 consumers ( 1 publisher and 1
>>>> consumer each )
>>>> 2. 5 Topics - 5 subscribers and 5 consumers ( in mssql, it breaks for
>>>> this scenario)
>>>> 3. 100 topics - 100 publishers and 100 consumers ( 1 publisher and 1
>>>> consumer each )
>>>> 4. 1 topic - 100 subscribers / 100 consumers
>>>> 5. Mixed scenario where multiple queues, topics and durable topics are
>>>> used
>>>>
>>>> I have attached all the debug logs here. Please consider this matter
>>>> and provide your feedbacks on resolving this.
>>>>
>>>> Thanks and Regards
>>>> --
>>>> Indunil Upeksha Rathnayake
>>>> Software Engineer | WSO2 Inc
>>>> Email    indu...@wso2.com
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> *Manuri Amaya Perera*
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc.*
>>>
>>> *Blog: http://manuriamayaperera.blogspot.com
>>> <http://manuriamayaperera.blogspot.com>*
>>>
>>
>>
>>
>> --
>> 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>*
>>
>
>
>
> --
> Indika Sampath
> Senior Software Engineer
> WSO2 Inc.
> http://wso2.com
>
> Phone: +94 716 424 744
> Blog: http://indikasampath.blogspot.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "WSO2 Engineering Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to engineering-group+unsubscr...@wso2.com.
> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>



-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] [DEV] Getting "localhost" as the saml2:Issuer in SAML authentication response

2015-09-30 Thread Rajith Vitharana
Hi Nadeesha,

As I remember you need to change the issuer in ResidentIDP config for this
to work.

Thanks,

On Wed, Sep 30, 2015 at 11:48 AM, Nadeesha Meegoda <nadees...@wso2.com>
wrote:

> Hi IS team,
>
> I have configured a SAML SSO service provider (travelocity.com) in tenant
> mode (ymc.com). My IS is running in cluster environment it's
> https://mgt.is.wso2.com. When I was signing in to travelocity.com in the
> SAML AuthnRequest the samlp:issuer is as follows :
>
> 
> travelocity@ymc.com
>
> However in the SAML Response to the authentication request the
> saml2:issuer is as follows:
>
>xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
>   >localhost
>
> May I know why the saml2:Issuer is localhost here? Do I need to do more
> configurations to get it right? Can anyone explain please?
>
> I have attached the full authentication request and response with the mail.
>
>
> Thanks
>
> --
> *Nadeesha Meegoda*
> Software Engineer - QA
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> email : nadees...@wso2.com
> mobile: +94783639540
> <%2B94%2077%202273555>
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Data Services Server 3.5.0 Beta1 Released

2015-09-29 Thread Rajith Vitharana
WSO2 Data Services Team is pleased to announce WSO2 Data Service Server
3.5.0 Beta1 Release. You can download the pack from location [1] and [2].
Javadocs can be found in [3]. Below are the improvements, bug fixes
included in the release.

Bug

   - [DS-1005 ] - JSON output mapping
   gives errors for empty values
   - [DS-1024 ] - CDATA is not
   inserting in Mongo DB using DSS
   - [DS-1055 ] - WSO2 Data Services
   Server doesn't support the new excel files (.xlsx) as the data source
   - [DS-1073 ] - Faulty data service
   cannot be deleted from the UI
   - [DS-1080 ] - Cannot connect to
   Informix DB without using username/password
   - [DS-1084 ] - Exception occurred
   when a Struct type output parameter has more than 10 elements
   - [DS-1103 ] - Existing
   Dataservice will modify when creating a new Data Services with existing
   data service
   - [DS-1110 ] - When invoking excel
   data service parallelly, sometimes throws an error
   - [DS-1113 ] - Excel sheet
   modifying did not work when using excel file from registry

Improvement

   - [DS- ] - Provide an
   Extension point if role based filtering needs to be done against a third
   party authorization provider

Task

   - [DS-1112 ] - Upgrade odata server

Sub-task

   - [DS-1114 ] - Test Cases


[1] -
https://svn.wso2.org/repos/wso2/scratch/DSS/3.5.0/Beta1/wso2dss-3.5.0-SNAPSHOT.zip
[2] -
https://github.com/wso2/product-dss/releases/download/3.5.0-Beta1/wso2dss-3.5.0-SNAPSHOT.zip
[3] -
https://svn.wso2.org/repos/wso2/scratch/DSS/3.5.0/Beta1/javaDocs/index.html

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


[Dev] Only "sequence" type get processed in axis2-json message builder

2015-09-17 Thread Rajith Vitharana
Hi,

In DSS we use [1] in our service wsdl files. When we send requests as
"application/json",  it won't get processed. According to [2] and [3] if
order doesn't matter we have to use "all". Created a public jira for this
at [4]


[1] -  



[2] - http://www.w3schools.com/schema/el_all.asp
[3] - http://www.w3schools.com/schema/schema_complex_indicators.asp
[4] - https://wso2.org/jira/browse/CARBON-15433

Thanks,
-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Escape double quotation marks in property values?

2015-09-16 Thread Rajith Vitharana
Try XML encoding and put it there, example "abc"
Online XML encoder -
http://coderstoolbox.net/string/#!encoding=xml=encode=us_ascii
Thanks,

On Thu, Sep 17, 2015 at 10:52 AM, Bhathiya Jayasekara <bhath...@wso2.com>
wrote:

> Hi all,
>
> Is there a way to do $subject?
>
> Basically what I'm looking for is something like this. (below one is not
> working though)
>
>  type="STRING">
>
> Thanks,
>
> --
> *Bhathiya Jayasekara*
> *Senior Software Engineer,*
> *WSO2 inc., http://wso2.com <http://wso2.com>*
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> <http://www.linkedin.com/in/bhathiyaj>*
> *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>*
> *Blog: http://movingaheadblog.blogspot.com
> <http://movingaheadblog.blogspot.com/>*
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Data Services Server 3.5.0 Alpha2 Released

2015-09-14 Thread Rajith Vitharana
WSO2 Data Services Team is pleased to announce WSO2 Data Service Server
3.5.0 Alpha2 Release. You can download the pack from location [1] and [2].
Javadocs can be found in [3]. Below are the improvements, bug fixes
included in the release

Bug

   - [DS-732 <https://wso2.org/jira/browse/DS-732>] - Create data source
   admin service is not properly validated, exisisting data source will get
   updated when creating new data sources
   - [DS-896 <https://wso2.org/jira/browse/DS-896>] - [Blocker] DB
   insertion insert null values with new datastax client
   - [DS-1073 <https://wso2.org/jira/browse/DS-1073>] - Faulty data service
   cannot be deleted from the UI
   - [DS-1094 <https://wso2.org/jira/browse/DS-1094>] - Add datasource page
   doesn't apear in jdk 8 runtime
   - [DS-1099 <https://wso2.org/jira/browse/DS-1099>] - Select operation
   does not work in Google spreadsheets when query mode is used
   - [DS-1100 <https://wso2.org/jira/browse/DS-1100>] - changing visibility
   when editing Google spreadsheet data source won't hide clientId fields
   - [DS-1102 <https://wso2.org/jira/browse/DS-1102>] - OData enable check
   box is not properly work for carbon datasources in UI
   - [DS-1103 <https://wso2.org/jira/browse/DS-1103>] - Existing
   Dataservice will modify when creating a new Data Services with existing
   data service

Improvement

   - [DS-907 <https://wso2.org/jira/browse/DS-907>] - Carbon Application
   Deployment Handler for Data Sources
   - [DS-1051 <https://wso2.org/jira/browse/DS-1051>] - Support to pass
   Regular expressions in SQL Query
   - [DS-1105 <https://wso2.org/jira/browse/DS-1105>] - Send multiple
   operation requests in a single request support, deprecating boxcarring
   requests
   - [DS-1107 <https://wso2.org/jira/browse/DS-1107>] - Support E-Tag in
   OData
   - [DS-1108 <https://wso2.org/jira/browse/DS-1108>] - Support Batch
   Request in OData



[1] -
https://svn.wso2.org/repos/wso2/scratch/DSS/3.5.0/Alpha2/wso2dss-3.5.0-SNAPSHOT.zip
[2] -
https://github.com/wso2/product-dss/releases/download/3.5.0-Alpha2/wso2dss-3.5.0-SNAPSHOT.zip
[3] -
https://svn.wso2.org/repos/wso2/scratch/DSS/3.5.0/Alpha2/javaDocs/index.html

Thanks,
DSS Team.
-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DSS return array of UDT.

2015-09-10 Thread Rajith Vitharana
Hi Jorge,

Unfortunately currently that's how DSS works, for UDT type as well you may
have seen, in blog [1] we have defined explicitly the output mapping to map
to the UDT. That's how it was returning as [2]. But as your UDT returns as
a array of UDTs, we can't map that to output right now. We will try to
improve this behavior in future release. Created a public jira for this in
[3]. Meanwhile you can use ESB to convert those results to your requirement
as suggested in the Stack overflow question.

[1] -
http://prabathabey.blogspot.com/2012/05/query-udtsuser-defined-types-with-wso2.html
[2] - 
1
prabath

[3] - https://wso2.org/jira/browse/DS-1104

Thanks,

On Wed, Sep 9, 2015 at 10:52 PM, Jorge <isildur...@gmail.com> wrote:

> Hi folks, any advice in this:
>
>
> http://stackoverflow.com/questions/32443270/call-a-procedure-or-funcion-in-oracle-db-with-return-array-of-udt-from-wso2-ds/
>
> Regards,
>Jorge.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to define version ranges for orbit bundles

2015-09-04 Thread Rajith Vitharana
Thanks Sameera for the quick response :)

On Fri, Sep 4, 2015 at 11:28 AM, Niranjan Karunanandham <niran...@wso2.com>
wrote:

> Ack.
>
> On Fri, Sep 4, 2015 at 11:22 AM, Sameera Jayasoma <same...@wso2.com>
> wrote:
>
>> Hi Rajith,
>>
>> The correct one should be  [1.6.1, 1.7) AFAIK.
>>
>> Niranjan please update the document.
>>
>> Thanks,
>> Sameera.
>>
>> On Fri, Sep 4, 2015 at 11:02 AM, Rajith Vitharana <raji...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> How should we do the $subject? Asking this since in carbon commons axis2
>>> version range is defined as in [1] don't we follow the same concept for
>>> orbit bundles? shouldn't this be as [2]?
>>>
>>> [1] - [1.6.1.wso2v14,
>>> 1.7.0)
>>> [2] - [1.6, 1.7)
>>>
>>> Thanks,
>>>
>>> --
>>> Rajith Vitharana
>>>
>>> Software Engineer,
>>> WSO2 Inc. : wso2.com
>>> Mobile : +94715883223
>>> Blog : http://lankavitharana.blogspot.com/
>>>
>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: same...@wso2.com
>> blog: http://blog.sameera.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Data Source Capp deployer feature implementation

2015-09-04 Thread Rajith Vitharana
Hi All,

Implementation for Data source Capp deployment feature is done and you can
find the pull request in [1]. Discussion about the implementation happened
in mail thread [2] in Architecture mailing list. Related jira is in [3] and
the pull request data and sample car file is attached in the jira. You can
use this feature once pull request is merged and carbon-commons is released.

[1] - https://github.com/wso2/carbon-commons/pull/160
[2] - Implementing Datasource Deployer
[3] - https://wso2.org/jira/browse/DS-907

Thanks,
-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to define version ranges for orbit bundles

2015-09-03 Thread Rajith Vitharana
Hi,

How should we do the $subject? Asking this since in carbon commons axis2
version range is defined as in [1] don't we follow the same concept for
orbit bundles? shouldn't this be as [2]?

[1] - [1.6.1.wso2v14,
1.7.0)
[2] - [1.6, 1.7)

Thanks,

-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Nuwandi Wickramasinghe

2015-08-30 Thread Rajith Vitharana
Congratz Nuwandi . :)

On Mon, Aug 31, 2015 at 9:59 AM, Thanuja Jayasinghe than...@wso2.com
wrote:

 Congtrz Nuwandi.!!!

 On Thu, Aug 27, 2015 at 8:32 PM, Johann Nallathamby joh...@wso2.com
 wrote:

 Hi All,

 It's my pleasure to announce Nuwandi Wickramasinghe as a WSO2 Committer.
 Nuwandi 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.

 Nuwandi, congratulations and keep up the good work!

 Thanks  Regards.

 --

 *Johann Dilantha Nallathamby*
 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*
 Senior 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




-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Data Services Server 3.5.0 Alpha Released

2015-08-28 Thread Rajith Vitharana
WSO2 Data Services Team is pleased to announce WSO2 Data Service Server
3.5.0 Alpha Release. You can download the pack from location [1] and [2].
Javadocs can be found in [3]. Below are the improvements, bug fixes and new
features included in the release

Bug

   - [DS-721 https://wso2.org/jira/browse/DS-721] - Data Services GET
   REST resources with same name in URL does not work
   - [DS-879 https://wso2.org/jira/browse/DS-879] - [Cluster] - NPE when
   Invoke GET method for a REST service
   - [DS-1022 https://wso2.org/jira/browse/DS-1022] - Input mapping Sql
   Type BLOB in DSS, throws null exception
   - [DS-1028 https://wso2.org/jira/browse/DS-1028] - Null pointer error
   occurs when deploying data service (with dss generate feature)
   - [DS-1038 https://wso2.org/jira/browse/DS-1038] - The word 'Data
   Source' should be changed to 'Datasource'
   - [DS-1039 https://wso2.org/jira/browse/DS-1039] - Cannot connect to
   Informix DB without using username/password in creating dataservice
   - [DS-1041 https://wso2.org/jira/browse/DS-1041] - Service generation
   for blob type columns create unknown type base64 in WSDL
   - [DS-1042 https://wso2.org/jira/browse/DS-1042] - Data Services fail
   to serve GET resource requests if Content-Type is specified
   - [DS-1047 https://wso2.org/jira/browse/DS-1047] - NPE - when invoke
   POST method for a REST service to get return request status responce
   - [DS-1052 https://wso2.org/jira/browse/DS-1052] - Output event
   triggers does not work when the query is run as the second query of a
   nested query
   - [DS-1053 https://wso2.org/jira/browse/DS-1053] - Exception when
   returning null values if security is on
   - [DS-1054 https://wso2.org/jira/browse/DS-1054] - NPE when sending a
   SOAP request with an empty DATE field tag
   - [DS-1058 https://wso2.org/jira/browse/DS-1058] - Data service with
   GET resources returns fault String if it has url path params similar to the
   service name
   - [DS-1059 https://wso2.org/jira/browse/DS-1059] - [DSS]
   jdbcBatchUpdateSupport won't get updated if carbon datasource is used
   - [DS-1061 https://wso2.org/jira/browse/DS-1061] - user credentials
   for MongoDB
   - [DS-1062 https://wso2.org/jira/browse/DS-1062] - Data service wizard
   - Operation Parameters are not generated automatically
   - [DS-1065 https://wso2.org/jira/browse/DS-1065] - NullPointer
   exception throws when the ordinal order is incorrect
   - [DS-1069 https://wso2.org/jira/browse/DS-1069] - Different
   timestamps are stored in Oracle DB when DSS server runs in different
   timestamps for the same dateTime value.
   - [DS-1073 https://wso2.org/jira/browse/DS-1073] - Faulty data service
   cannot be deleted from the UI
   - [DS-1076 https://wso2.org/jira/browse/DS-1076] -
   samples/dataServicesSamples/Client CSV does not compile
   - [DS-1077 https://wso2.org/jira/browse/DS-1077] - Create new data
   service option fails when the process is cancelled once.
   - [DS-1083 https://wso2.org/jira/browse/DS-1083] - Some of the inserts
   are missing in the DB when We do a load test.
   - [DS-1090 https://wso2.org/jira/browse/DS-1090] - NPE is thrown when
   there is a null value in the result set and escape non printable characters
   flag is enabled

Improvement

   - [DS-1036 https://wso2.org/jira/browse/DS-1036] - Dynamic query
   support for cassandra
   - [DS-1043 https://wso2.org/jira/browse/DS-1043] - Support Generate
   Input Mappings and Generate Response for Cassandra queries in UI
   - [DS-1066 https://wso2.org/jira/browse/DS-1066] - Change default
   fetchSize in RDBMS to a better value
   - [DS-1070 https://wso2.org/jira/browse/DS-1070] - Data format
   conversion exceptions should inform the failed element
   - [DS-1082 https://wso2.org/jira/browse/DS-1082] - Failed SQL should
   not make the service fail on re-start
   - [DS-1089 https://wso2.org/jira/browse/DS-1089] - Bad Error Message
   During Data Source Creation
   - [DS-1091 https://wso2.org/jira/browse/DS-1091] - Support Oauth2 for
   google spreadsheet in data services server

New Feature

   - [DS-1040 https://wso2.org/jira/browse/DS-1040] - Retrieve update row
   count
   - [DS-1045 https://wso2.org/jira/browse/DS-1045] - OData Support


[1] -
https://svn.wso2.org/repos/wso2/scratch/DSS/3.5.0/Alpha/wso2dss-3.5.0-SNAPSHOT.zip
[2] -
https://github.com/wso2/product-dss/releases/download/untagged-d8b7b19e61e6ff567b09/wso2dss-3.5.0-SNAPSHOT.zip
[3] -
https://svn.wso2.org/repos/wso2/scratch/DSS/3.5.0/Alpha/javaDocs/index.html

Thanks,
DSS Team

-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Which branch we need to do fixes in carbon-commons

2015-08-24 Thread Rajith Vitharana
This is for Alpha, We are planning to do the release within this week.

Thanks,

On Mon, Aug 24, 2015 at 12:07 PM, Supun Malinga sup...@wso2.com wrote:

 We should do a 4.4.5 release. What are your release timelines ?. Is this
 for a RC/ Beta or Alpha ?

 On Mon, Aug 24, 2015 at 12:04 PM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi Supun,

 I have done small fix to issue [1] and sent a PR for that to master
 branch in [2]. But can't resolve it since it is not yet reflected in DSS.
 So need to know which version will get released next so that we can use
 that in DSS and resolve the jira(Need this ASAP since we need to do a DSS
 release)

 [1] - https://wso2.org/jira/browse/DS-1078
 [2] - https://github.com/wso2/carbon-commons/pull/135

 Thanks,

 On Mon, Aug 24, 2015 at 11:59 AM, Supun Malinga sup...@wso2.com wrote:

 Hi Rajitha,

 For the moment you can commit the bug fixes to master. We will create
 branches according to the new process and let you know. So if you have
 major/ minor fixes please inform before hand..

 thanks,

 On Mon, Aug 24, 2015 at 10:36 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi Thusitha,

 This is a bug fix. So to which branches do I need to send pulls? and
 which will be the next release version? do we need to request specifically
 for 4.4.x branch and release that for us?(Basically I'm asking about
 carbon-commons release process)

 Thanks,

 On Mon, Aug 24, 2015 at 10:29 AM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi Rajith,

 If you want any API changes you can send PRs to the master branch. But
 if you need a patch release based on the 4.4.4, I think you can request
 4.4.x branch from the kernel team.
 Thaniks
 /Thusitha


 On Mon, Aug 24, 2015 at 10:10 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi,

 There seems to be three branches in carbon-commons git repo
 master
 release-4.2.x
 release-4.5.0

 So to which branch do we need to send pull requests? and what would
 be the next release version?

 Thanks,

 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

 ___
 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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Which branch we need to do fixes in carbon-commons

2015-08-24 Thread Rajith Vitharana
Hi Supun,

I have done small fix to issue [1] and sent a PR for that to master branch
in [2]. But can't resolve it since it is not yet reflected in DSS. So need
to know which version will get released next so that we can use that in DSS
and resolve the jira(Need this ASAP since we need to do a DSS release)

[1] - https://wso2.org/jira/browse/DS-1078
[2] - https://github.com/wso2/carbon-commons/pull/135

Thanks,

On Mon, Aug 24, 2015 at 11:59 AM, Supun Malinga sup...@wso2.com wrote:

 Hi Rajitha,

 For the moment you can commit the bug fixes to master. We will create
 branches according to the new process and let you know. So if you have
 major/ minor fixes please inform before hand..

 thanks,

 On Mon, Aug 24, 2015 at 10:36 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi Thusitha,

 This is a bug fix. So to which branches do I need to send pulls? and
 which will be the next release version? do we need to request specifically
 for 4.4.x branch and release that for us?(Basically I'm asking about
 carbon-commons release process)

 Thanks,

 On Mon, Aug 24, 2015 at 10:29 AM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi Rajith,

 If you want any API changes you can send PRs to the master branch. But
 if you need a patch release based on the 4.4.4, I think you can request
 4.4.x branch from the kernel team.
 Thaniks
 /Thusitha


 On Mon, Aug 24, 2015 at 10:10 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi,

 There seems to be three branches in carbon-commons git repo
 master
 release-4.2.x
 release-4.5.0

 So to which branch do we need to send pull requests? and what would be
 the next release version?

 Thanks,

 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

 ___
 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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Which branch we need to do fixes in carbon-commons

2015-08-24 Thread Rajith Vitharana
Hi Supun,

Sure, will do so.

Thanks,

On Mon, Aug 24, 2015 at 12:31 PM, Supun Malinga sup...@wso2.com wrote:

 Hi Rajith,

 Since this is a small bug fix we really don't need to include that into
 Alpha in a hurry. You might get more bugs when you are doing the Beta. So
 let's go ahead with DSS Alpha since this fix is not blocking it.

 thanks,

 On Mon, Aug 24, 2015 at 12:18 PM, Rajith Vitharana raji...@wso2.com
 wrote:

 This is for Alpha, We are planning to do the release within this week.

 Thanks,

 On Mon, Aug 24, 2015 at 12:07 PM, Supun Malinga sup...@wso2.com wrote:

 We should do a 4.4.5 release. What are your release timelines ?. Is this
 for a RC/ Beta or Alpha ?

 On Mon, Aug 24, 2015 at 12:04 PM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi Supun,

 I have done small fix to issue [1] and sent a PR for that to master
 branch in [2]. But can't resolve it since it is not yet reflected in DSS.
 So need to know which version will get released next so that we can use
 that in DSS and resolve the jira(Need this ASAP since we need to do a DSS
 release)

 [1] - https://wso2.org/jira/browse/DS-1078
 [2] - https://github.com/wso2/carbon-commons/pull/135

 Thanks,

 On Mon, Aug 24, 2015 at 11:59 AM, Supun Malinga sup...@wso2.com
 wrote:

 Hi Rajitha,

 For the moment you can commit the bug fixes to master. We will create
 branches according to the new process and let you know. So if you have
 major/ minor fixes please inform before hand..

 thanks,

 On Mon, Aug 24, 2015 at 10:36 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi Thusitha,

 This is a bug fix. So to which branches do I need to send pulls? and
 which will be the next release version? do we need to request 
 specifically
 for 4.4.x branch and release that for us?(Basically I'm asking about
 carbon-commons release process)

 Thanks,

 On Mon, Aug 24, 2015 at 10:29 AM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi Rajith,

 If you want any API changes you can send PRs to the master branch.
 But if you need a patch release based on the 4.4.4, I think you can 
 request
 4.4.x branch from the kernel team.
 Thaniks
 /Thusitha


 On Mon, Aug 24, 2015 at 10:10 AM, Rajith Vitharana raji...@wso2.com
  wrote:

 Hi,

 There seems to be three branches in carbon-commons git repo
 master
 release-4.2.x
 release-4.5.0

 So to which branch do we need to send pull requests? and what would
 be the next release version?

 Thanks,

 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

 ___
 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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Which branch we need to do fixes in carbon-commons

2015-08-23 Thread Rajith Vitharana
Hi,

There seems to be three branches in carbon-commons git repo
master
release-4.2.x
release-4.5.0

So to which branch do we need to send pull requests? and what would be the
next release version?

Thanks,

-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Which branch we need to do fixes in carbon-commons

2015-08-23 Thread Rajith Vitharana
Hi Thusitha,

This is a bug fix. So to which branches do I need to send pulls? and which
will be the next release version? do we need to request specifically for
4.4.x branch and release that for us?(Basically I'm asking about
carbon-commons release process)

Thanks,

On Mon, Aug 24, 2015 at 10:29 AM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi Rajith,

 If you want any API changes you can send PRs to the master branch. But if
 you need a patch release based on the 4.4.4, I think you can request 4.4.x
 branch from the kernel team.
 Thaniks
 /Thusitha


 On Mon, Aug 24, 2015 at 10:10 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi,

 There seems to be three branches in carbon-commons git repo
 master
 release-4.2.x
 release-4.5.0

 So to which branch do we need to send pull requests? and what would be
 the next release version?

 Thanks,

 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

 ___
 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




-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: Release plugin ERROR

2015-08-20 Thread Rajith Vitharana
/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
 Mobile: +94714198770




 --
 --
 Chanaka Fernando
 Senior 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




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




-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Secure javax.xml.transform.TransformerFactory against XML external attacks

2015-08-18 Thread Rajith Vitharana
Hi,

How can we achieve the $subject? I have tried below code

String fileData = ?xml version=\1.0\ encoding=\UTF-8\
standalone=\yes\?!DOCTYPE sampleVal [  !ENTITY sampleVal SYSTEM
\file:///media/sample\]configurationdriverClassNamecom.mysql.jdbc.Driver/driverClassNameurljdbc:mysql://localhost:3306/test/urlusernamesampleVal;/usernamepassword
encrypted=\true\test/password/configuration;
TransformerFactory transformerFactory = TransformerFactory.newInstance();
transformerFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
Transformer transformer = transformerFactory.newTransformer();
StringWriter buff = new StringWriter();
transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, yes);
transformer.transform(new StreamSource(new
StringReader(fileData)), new StreamResult(buff));
System.out.println(buff.toString());


but it still expands the DTD and replace the value in xml. result is as below

!DOCTYPE acunetix [

!ENTITY acunetixent SYSTEM
file:///media/rajith/Office/Wso2/support/DHSDEV-1/sample 
]
configurationdriverClassNamecom.mysql.jdbc.Driver/driverClassNameurljdbc:mysql://localhost:3306/test/urlusernametest
/usernamepassword encrypted=truetest123/password/configuration


which contains the expanded dtd value. Appreciate any pointers regarding this.

Note that underlying we are using
org.apache.xalan.processor.TransformerFactoryImpl and it doesn't
support the XMLConstants.ACCESS_EXTERNAL_DTD feature as well.

Thanks,

-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Simple Tool to analyse jar files for packages they contains and OSGI bundles to see packages they export and import

2015-08-11 Thread Rajith Vitharana
Hi All,

I have created a small java tool [1] to analyse OSGI bundles and analyse
all kinds of jar files. Basically did this for two reasons.

1) When adopting the OSGI best practices, needed to find out whether final
outcome of bundle contains correct information. (For this
MetaInfoExtractor.java class can be used)

2) When debugging applications sometimes need to find what are the packages
it contains. (This is not that important. but I faced with a situation
where I couldn't find the bundle which contains specific package. So to
resolve that created JarFileExtractor.java class)

We can specify a jarFolderToBeAnalysed and tempFolder folder in the
tool. What it does is, copy each and every jar inside
jarFolderToBeAnalysed folder(Iterate through whole folder structure) to
the tempFolder folder, analyse them inside tempFolder folder and create
text files with the jar name in it.

Note that this is a basic tool so you need to open that in a IDE and run it
(Need to modify to work in CLI)

Hope this will help people who faced with similar issues

[1] - https://github.com/lankavitharana/JarAnalyser

Thanks,
-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] OAuth2 support for Google spreadsheet API in DSS

2015-07-29 Thread Rajith Vitharana
Hi All,

We are in the process of implementing Oauth2 support for google spreasheets
API. We have used google-api-client for this purpose(dependency is in
[1]) We are going to give a tool so that user can generate Access token,
Refresh token and store them in the DBS file. (going to add the generation
tool since google doesn't let us use Refresh tokens generated by other
clients)

We thought of only to save Refresh token in the dbs file since the Access
token will be expired after some time and it will make the dbs file contain
wrong data. Our approach will be to request and get a access token in the
dbs deployment time using the refresh token we have. Will this approach be
good to tackle the situation?

[1] - dependency
groupIdcom.google.api-client/groupId
artifactIdgoogle-api-client/artifactId
version1.20.0/version
/dependency

Thanks,

-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] OAuth2 support for Google spreadsheet API in DSS

2015-07-29 Thread Rajith Vitharana
Hi Ishara,

On Wed, Jul 29, 2015 at 5:22 PM, Ishara Karunarathna isha...@wso2.com
wrote:

 Hi,

 On Wed, Jul 29, 2015 at 4:47 PM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi Ishara,

 Thanks for the response. As per [1], [2] google refresh tokens never
 expires, quoting the statement Refresh tokens are valid until the user
 revokes access. This field is only present if access_type=offline is
 included in the authorization code request normally access tokens
 expires in 60 mins. Further more there are no password grant type in
 google. So we have to go to consent page to get the tokens. (Although there
 is a service account concept where we need to a key to get access)


 In that case I think its ok. But you will have to handle token
 revocations.

 google-api-client library handles token revocations itself. If the access
token expired, it will use refresh token to retrieve an access token.

Thanks,

-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   3   >