Re: [Dev] [DEV] please review and merge

2018-02-19 Thread Senduran Balasubramaniyam
Hi Daekyung Kim,

Thank you for your contribution.
We will verify the fix and do the necessary

Regards
Senduran



On Tue, Feb 20, 2018 at 12:06 PM, 김대경  wrote:

> Can you please review and merge PR[1] .
>
> [1] https://github.com/wso2/wso2-synapse/pull/1045
>
> Best Regards.
> Daekyung Kim.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clustering in WSO2 EI 6.1.1

2018-02-14 Thread Senduran Balasubramaniyam
Hi Dhanya,

On Thu, Feb 15, 2018 at 11:25 AM, dhanya  wrote:

> Hi Nandika,
>
> Thanks but now this leaves me confused.
> Is there a difference between clustering agent and load balancer?
>
yes those are different.
Clustering agent is something that overall look after the cluster (like who
are the members joined / left. Communication between the nodes)
Load balancer is a device / a software that will distribute the traffic
among the available nodes in a cluster

>
> And do we use Hazelcast community edition or NginX load balancer in a
> production environment?
>
In a production set up you can have a Nginx load balance to distribute the
request among the clustered nodes.
By default WSO2 products uses Hazelcast community edition based clustering
implementation [1]

In other words. When you enable cluster in wso2 products Hazelcast
clustering agent is already available to take care of your cluster.
But a load balancer is optional,  if you don't want to distribute the
incoming request to the cluster.

[1] https://docs.wso2.com/display/Carbon4411/Clustering+Agent

Regards
Senduran

>
> Thanks and regards
> Dhanya
>
>
>
>
>
> --
> Sent from: http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-Development
> -f3.html
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548 <+94%2077%20952%206548>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clustering in WSO2 EI 6.1.1

2018-02-14 Thread Senduran Balasubramaniyam
Hi Dhanya,

EI 6.1.1 does support Worker Manager setup. but we highly *recommend* to
use *nonWorkerManager* setup. Further worker manager setup does not add any
additional value to the cluster.

>
> Also, for a basic environment setup is the Hazelcast enough for a
> production
> box?
>
I am not quite clear on your question.
Anyway. the current clustering agent is Hazelcast and it can be used in a
production environment


Regards
Senduran

>
> Thanks and regards
> Dhanya
>
>
>
> --
> Sent from: http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-
> Development-f3.html
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unnecessary debug logs in org.apache.synapse.mediators.builtin.LogMediator

2018-02-06 Thread Senduran Balasubramaniyam
Hi Godwin,

>
>  Do you see any advantage/value by adding those logs?
>
Its depends on the context, say we have a large mediation and if we are
having an issue, at such instances these logs may help to pinpoint the
issue, specially when there are nested mediators. the "Start" and "End"
 logs are common for all the synapse mediators and it should not be seen in
the mediation logs. Anyway kindly let us know if you are still facing the
issue of having these logs

>
> Thanks
> Godwin
>
> On Wed, Feb 7, 2018 at 9:56 AM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> Hi Godwin,
>>
>> These are internal logs for debugging the synapse code. when there are
>> lot of mediators this will be helpful. If you getting this log in your log
>> mediator logs. you may need to revisit your log4j properties because when a
>> log mediator category is set to debug you should not see this log
>>
>> Regards
>> Senduran
>>
>> On Wed, Feb 7, 2018 at 9:51 AM, Godwin Shrimal <god...@wso2.com> wrote:
>>
>>> Hi Integration Team,
>>>
>>> Any feedback on this?
>>>
>>> Thanks
>>> Godwin
>>>
>>> On Fri, Jan 19, 2018 at 5:52 PM, Godwin Shrimal <god...@wso2.com> wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> Shall we remove "End : Log mediator" and "End : Log mediator" debug
>>>> logs in [1] and [2]? I don't see any value with those debug logs and it's
>>>> annoying when we enable debug logs for 
>>>> "org.apache.synapse.mediators.builtin.LogMediator"
>>>> in dev environments.
>>>>
>>>> [1] https://github.com/wso2/wso2-synapse/blob/master/modules/cor
>>>> e/src/main/java/org/apache/synapse/mediators/builtin/LogMedi
>>>> ator.java#L92
>>>> [2] https://github.com/wso2/wso2-synapse/blob/master/modules/cor
>>>> e/src/main/java/org/apache/synapse/mediators/builtin/LogMedi
>>>> ator.java#L124
>>>>
>>>> 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>
>>>>
>>>
>>>
>>>
>>> --
>>> *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
>>>
>>>
>>
>>
>> --
>> *Senduran *
>> Senior Software Engineer,
>> WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
>> Mobile: +94 77 952 6548 <+94%2077%20952%206548>
>>
>
>
>
> --
> *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>
>



-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
Mobile: +94 77 952 6548 <+94%2077%20952%206548>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unnecessary debug logs in org.apache.synapse.mediators.builtin.LogMediator

2018-02-06 Thread Senduran Balasubramaniyam
Hi Godwin,

These are internal logs for debugging the synapse code. when there are lot
of mediators this will be helpful. If you getting this log in your log
mediator logs. you may need to revisit your log4j properties because when a
log mediator category is set to debug you should not see this log

Regards
Senduran

On Wed, Feb 7, 2018 at 9:51 AM, Godwin Shrimal  wrote:

> Hi Integration Team,
>
> Any feedback on this?
>
> Thanks
> Godwin
>
> On Fri, Jan 19, 2018 at 5:52 PM, Godwin Shrimal  wrote:
>
>> Hi Devs,
>>
>> Shall we remove "End : Log mediator" and "End : Log mediator" debug logs
>> in [1] and [2]? I don't see any value with those debug logs and it's
>> annoying when we enable debug logs for 
>> "org.apache.synapse.mediators.builtin.LogMediator"
>> in dev environments.
>>
>> [1] https://github.com/wso2/wso2-synapse/blob/master/modules/cor
>> e/src/main/java/org/apache/synapse/mediators/builtin/LogMediator.java#L92
>> [2] https://github.com/wso2/wso2-synapse/blob/master/modules/cor
>> e/src/main/java/org/apache/synapse/mediators/builtin/LogMedi
>> ator.java#L124
>>
>> 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/
>> *
>> twitter: https://twitter.com/godwinamila
>> 
>>
>
>
>
> --
> *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/
> *
> twitter: https://twitter.com/godwinamila
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using SMTPS in EI 6.1.0

2018-01-19 Thread Senduran Balasubramaniyam
Hi Marco,

Since your transport name is "mailtoSMTP" can you please make sure, you are
trying send as follows


   


Regards
Senduran

On Fri, Jan 19, 2018 at 4:32 PM, marco.sessa  wrote:

> Hi,
> I have tried to configure in WSO2 EI 6.1.0 the MailTransportSender for
> using a SMTPS server,
> but I received the follow error:
>
> Could not connect to SMTP host: smtps.aruba.it, port: 465, response: -1
>
> Is SMTPS protocol supported in WSO2 EI?
>
> This is my config:
>
>  class="org.apache.axis2.transport.mail.MailTransportSender">
> smtps.aruba.it
> 465
> true
> true
> true
> u...@aaabbcc.it
> *
> u...@aaabbcc.it
> 
>
>
>
> Thanks in advance
> Marco
>
> *_*
> *Marco Sessa*
>
>
> *Software Analyst / Developer*
> CSP S.p.A.
> Napoli - Centro Direzionale,
> Italy
> isola G/1, scala C
> Tel: 081.191.38.607
> Cel: 340.8689247
> Email: marco.se...@cspnet.it
> www.cspnet.it
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] //jsonOject and $ are printing different jsons (different data content) at same location in API.

2018-01-18 Thread Senduran Balasubramaniyam
Hi Aditya,

//jsonObject is an XPATH expression. When you apply an XPATH evaluation on
a JSON, ESB / EI internally convert the JSON to XML, that's why you are
seeing XML for //jsonObject xpath evaluation.
Since you are sending a JSON payload it is good to use $ (which is a JSON
path)

Regards
Senduran

On Fri, Jan 19, 2018 at 3:28 AM, aditya shivankar <
shivankar.adit...@gmail.com> wrote:

> Respected Sir,
>
> //jsonOject and $ are printing different jsons at same location in API.
>
> Are not both suppose to have latest json payload,
>
> //jsonObject - latest json payload in xml format
>
> $ -  latest json payload in json format ?
>
> Input json:
>
> {
> "token": "d8ccf265-6651-468f-8d1f-d935c3c7d857",
> "partyId": "2920394"
>
>
> }
>
> Log print of //jsonObject after enrichment:
>
> 
> d8ccf265-6651-468f-8d1f-d935c3c7d857
> 57
> PartyId
> 
>
> Log print of json-eval($) at same place after enrichment : Value tag
> missing
>
> {
> "a": "d8ccf265-6651-468f-8d1f-d935c3c7d857",
> "b": "57"
>
> }
>
>
> Please find attached Rest api "sample.xml"
>
>
> I am facing this issue , when I have to assign current json payload, to
> one element of new json I created in payload factory.
>
> Inside payloadFactory I defined something like this:
> {
>  "a" : $1 ,
>  "b":"thampi"
> }
>
> In args,
>
> Type :Expression , Value:$ , evaluator: json
>
> But it is assigning the payload which was present before enrichment.which
> is wrong .
>
> Please guide.
>
>
>
> .
>
> [image: Inline image 2]
>
>
> Thanks,
> Aditya
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] PayLoadFactory dealing with null or empty values

2018-01-09 Thread Senduran Balasubramaniyam
Hi Aditya,

Try the following payload factory (I assume you are receiving the above
mentioned input JSON as request)

 

{
"firstName": "$1",
"lastName": "$2",
"email": "$3"
}









Regards
Senduran

On Wed, Jan 10, 2018 at 12:48 PM, aditya shivankar <
shivankar.adit...@gmail.com> wrote:

> Respected Sir,
>
>  Please find attached proj zip file and Rest api files.
>
> Input :
>
>  {
> "FirstName": {
>"Type": "System.String",
> "Value": "John",
> "Original": "John"
> },
> "LastName": {
> "Type": "System.String",
> "Value": "",
> "Original": ""
> },
> "Email": {
> "Type": "System.String"
> }
> }
>
> Output of PayloadFactory :
> {
> "firstName": John,
> "lastName": {"Value":null},
> "email":
> }
>
> Expected Output :
>{
>"firstName": "John",
>"lastName": "",
> "email": "",
>
>}
>
>
>
>  With Regards,
>  Aditya
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2018-01-03 Thread Senduran Balasubramaniyam
Hi all,

When an XML or a JSON is converted to  x-www-form-urlencoded format the key
value pair is created.
i.e


  value1
  value2


will be converted to key1=value=value2

similarly

{"key1" : "value1", "key2" : "value2"} also get converted to
key1=value=value2

But what if the XML or JSON is not only having simple key value i.e having
an array or a child element

for example,

  value1
  
subvalue1
subvalue2
  


similarly for JSON like
{"key1" : "value1", "key2" : {"subkey1" : "subvalue1"}} or

JSON with array
{"key1" : "value1", "key2" : ["arrayvalue1", "arrayvalue2"]}


Kindly let me know the available correct formats for
application/x-www-form-urlencoded content type.
Further it will be really helpful if you could point to a specification or
a standard document

Thanks
Senduran


-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] nginx master_process on; (code=exited, status=1/FAILURE)

2017-11-28 Thread Senduran Balasubramaniyam
Hi Dushantha,

As you have mentioned apache2 is already bounded to port 80. that is why
when you try to start the nginx you are getting " Address already in use".
If you try stop the apache2 and start the nginx, you will be able to start
the nginx without the above error

Regards
Senduran

On Wed, Nov 29, 2017 at 12:49 PM, Dushantha Batuwita <dushan...@wso2.com>
wrote:

> Hi Senduran:
>
> I have tried your command and it is the apache2 process.
>
> sudo netstat -nlp | grep :80
> tcp6   0  0 :::80   :::*
> LISTEN  1076/apache2
>
>
>
>
> further, *when I try installing the nginx freshly* the following error
> can be seen too (with details I have mentioned in the above mail)
>
> නෙවැ 29 12:31:07 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 29 12:31:07 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 29 12:31:07 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
> [emerg] still could not bind()
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Control process exited, code=exited status=1
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th systemd[1]: Failed to
> start A high performance web server and a reverse proxy server.
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Unit entered failed state.
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Failed with result 'exit-code'.
> dpkg: error processing package nginx-core (--configure):
>  subprocess installed post-installation script returned error exit status 1
> dpkg: dependency problems prevent configuration of nginx:
>  nginx depends on nginx-core (<< 1.10.3-1ubuntu3.1.1~) | nginx-full (<<
> 1.10.3-1ubuntu3.1.1~) | nginx-light (<< 1.10.3-1ubuntu3.1.1~) |
> nginx-extras (<< 1.10.3-1ubuntu3.1.1~); however:
>   Package nginx-core is not configured yet.
>   Package nginx-full is not installed.
>   Package nginx-light is not installed.
>   Package nginx-extras is not installed.
>  nginx depends on nginx-core (>= 1.10.3-1ubuntu3.1) | nginx-full (>=
> 1.10.3-1ubuntu3.1) | nginx-light (>= 1.10.3-1ubuntu3.1) | nginx-extras (>=
> 1.10.3-1ubuntu3.1); however:
>   Package nginx-core is not configured yet.
>   Package nginx-full is not installed.
>   Package nginx-light is not installed.
>   Package nginx-extras is not installed.
>
> dpkg: error processing package nginx (--configure):
>  dependency problems - leaving unconfigured
> No apport report written because the error message indicates its a
> followup error from a previous failure.
>
> Processing triggers for ureadahead
> (0.100.0-20) ...
> Processing triggers for ufw (0.35-5) ...
> Errors were encountered while processing:
>  nginx-core
>  nginx
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> Kindly advice if I have done something incorrect here
>
> Regards
>
>
> On Wed, Nov 29, 2017 at 11:21 AM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> As the error says "Address already in use" you have to find which process
>> is bound to port 80 already. the following command will help you identify
>> the process running on port 80
>>
>> sudo netstat -nlp | grep :80
>>
>> find the process and stop that process first before trying to start the
>> nginx
>>
>> Regards
>> Senduran
>>
>> On Wed, Nov 29, 2017 at 11:06 AM, Dushantha Batuwita <dushan...@wso2.com>
>> wrote:
>>
>>> Hi
>>>
>>> I completely uninstall NGINX from my machine and reinstalled it again
>>> and but the NGINX server gives me the same error.
>>>
>>> *Things I have done*
>>>
>>>
>>>- I have run the command
>>>
>>> sudo netstat -tulpn
>>>
>>> Active Internet connections (only servers)
>>> Proto Recv-Q Send-Q Local Address   Foreign Address
>>>  State   PID/Program name
>>> tcp0  0 127.0.0.1:631   0.0.0.0:*
>>>  LISTEN  32365/cupsd
>>&g

Re: [Dev] nginx master_process on; (code=exited, status=1/FAILURE)

2017-11-28 Thread Senduran Balasubramaniyam
As the error says "Address already in use" you have to find which process
is bound to port 80 already. the following command will help you identify
the process running on port 80

sudo netstat -nlp | grep :80

find the process and stop that process first before trying to start the
nginx

Regards
Senduran

On Wed, Nov 29, 2017 at 11:06 AM, Dushantha Batuwita 
wrote:

> Hi
>
> I completely uninstall NGINX from my machine and reinstalled it again and
> but the NGINX server gives me the same error.
>
> *Things I have done*
>
>
>- I have run the command
>
> sudo netstat -tulpn
>
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address   Foreign Address State
>  PID/Program name
> tcp0  0 127.0.0.1:631   0.0.0.0:*
>  LISTEN  32365/cupsd
> tcp0  0 0.0.0.0:389 0.0.0.0:*
>  LISTEN  1401/slapd
> tcp0  0 0.0.0.0:33060.0.0.0:*
>  LISTEN  987/mysqld
> tcp0  0 0.0.0.0:53550.0.0.0:*
>  LISTEN  976/systemd-resolve
> tcp6   0  0 ::1:631 :::*
> LISTEN  32365/cupsd
> tcp6   0  0 :::389  :::*
> LISTEN  1401/slapd
> tcp6   0  0 :::5355 :::*
> LISTEN  976/systemd-resolve
> tcp6   0  0 :::80   :::*
> LISTEN  1126/apache2
>
>
>- Even I have killed the process 1126 and tried.
>
>
> Then searched the error on the net and found that the resource [1]  and
> change the /etc/nginx/sites-enabled/default   file by inserting the code
>
> listen [::]:80 ipv6only=on default_server; as it has been stated.
>
>
> [1] https://stackoverflow.com/questions/14972792/nginx-
> nginx-emerg-bind-to-80-failed-98-address-already-in-use
>
> but when I try starting the nginx and check the status the same error is
> shown.
> as bellow
>
> ● nginx.service - A high performance web server and a reverse proxy server
>Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor
> preset: enabled)
>Active: failed (Result: exit-code) since Wed 2017-11-29 10:40:44 +0530;
> 35s ago
>  Docs: man:nginx(8)
>   Process: 13817 ExecStart=/usr/sbin/nginx -g daemon on; master_process
> on; (code=exited, status=1/FAILURE)
>   Process: 13816 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
> master_process on; (code=exited, status=0/SUCCESS)
>
> නෙවැ 29 10:40:43 dushantha-ThinkPad-X1-Carbon-5th nginx[13817]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 29 10:40:43 dushantha-ThinkPad-X1-Carbon-5th nginx[13817]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 29 10:40:43 dushantha-ThinkPad-X1-Carbon-5th nginx[13817]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th nginx[13817]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th nginx[13817]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th nginx[13817]: nginx:
> [emerg] still could not bind()
> නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Control process exited, code=exited status=1
> නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th systemd[1]: Failed to
> start A high performance web server and a reverse proxy server.
> නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Unit entered failed state.
> නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Failed with result 'exit-code'.
>
>
> If you have come across this kind of error please advice.
>
> Regards
>
>
>
>
> On Tue, Nov 28, 2017 at 5:17 PM, Senuwan Withana  wrote:
>
>> Hi Dushantha,
>>
>> Its seems your port is already used. Please check on it again
>>
>> Thanks,
>>
>> *Senuwan Withana*
>> Software Engineer - Support Team | WSO2
>>
>> Email : senu...@wso2.com
>> Mobile: 94773212853
>> Web: http://www.wso2.com
>>
>>
>>
>> On Tue, Nov 28, 2017 at 5:09 PM, Dushantha Batuwita 
>> wrote:
>>
>>> Hi Dev
>>>
>>> I have installed the nginx and when I try  starting the nginx, I
>>> receive following error.
>>>
>>>  sudo service nginx start
>>>
>>> Job for nginx.service failed because the control process exited with
>>> error code.
>>> See "systemctl  status nginx.service" and "journalctl  -xe" for details.
>>>
>>>
>>> when I check the status it gives me.
>>>
>>> ● nginx.service - A high performance web server and a reverse proxy
>>> server
>>>Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor
>>> preset: enabled)
>>>Active: failed (Result: exit-code) since Tue 2017-11-28 16:33:48
>>> +0530; 50s ago
>>>  Docs: man:nginx(8)
>>>   Process: 953 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
>>> master_process on; (code=exited, 

Re: [Dev] [EI] Car application with only registry resources

2017-11-28 Thread Senduran Balasubramaniyam
The reason for this is, initially the developer studio was across the
platform, so the server role was there to distinguish the artifacts. But
since now we have the EI / ESB tooling we can have the  EnterpriseServiceBus
as the default role.

On Tue, Nov 28, 2017 at 11:07 PM, Shazni Nazeer <sha...@wso2.com> wrote:

> +1 for fixing this. This is common nuisance when deploying registry
> artifacts, usually when we add new artifacts through the devS UI at times
> the ones which had  'EnterpriseServiceBus'  reverts back to '
> GovernanceRegistry'.
>
> On Tue, Nov 28, 2017 at 5:46 AM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> +1 for fixing this. since G-Reg is no longer active
>> Anyway Godwin, if you have created a ESB solution project the server role
>> is by default set to EnterpriseServiceBus
>>
>> On Tue, Nov 28, 2017 at 2:17 PM, Vinod Kavinda <vi...@wso2.com> wrote:
>>
>>> Hi Godwin,
>>> Thanks for the update. Reported the issue [1]
>>>
>>> [1] - https://github.com/wso2/product-ei/issues/1428
>>>
>>> Regards,
>>> Vinod
>>>
>>> On Tue, Nov 28, 2017 at 2:02 PM, Godwin Shrimal <god...@wso2.com> wrote:
>>>
>>>> Thanks for the response guy, I could resolve it by setting
>>>> "EnterpriseServiceBus" server role when exporting car file. I think this
>>>> should work OOB, best thing is adding "GovernanceRegistry"  in
>>>> carbon.xml under server roles.
>>>>
>>>>
>>>> Thanks
>>>> Godwin
>>>>
>>>>
>>>>
>>>> On Mon, Nov 27, 2017 at 12:23 PM, Sashika Wijesinghe <sash...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Himasha,
>>>>>
>>>>> When exporting the carbon application project we can select the
>>>>> required server role. I have tried that option for 'EnterpriseServiceBus'
>>>>> server role and it works for me.
>>>>>
>>>>> Regards,
>>>>> Sashika
>>>>>
>>>>> On Mon, Nov 27, 2017 at 10:27 AM, Himasha Guruge <himas...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Sashika,
>>>>>>
>>>>>> To solve the issue, you can add the 'GovernanceRegistry' server role
>>>>>> to the EI server under "" in the carbon.xml or set the 
>>>>>> server
>>>>>> role of the registry resource to 'EnterpriseIntegrator' when creating the
>>>>>> CAR file.
>>>>>> Have we tried out option 2? (setting role to 'EnterpriseIntegrator')
>>>>>> AFAIR in tooling, we don't list ''EnterpriseIntegrator' role for
>>>>>> registry projects.
>>>>>>
>>>>>> Thanks,
>>>>>> Himasha
>>>>>>
>>>>>> On Mon, Nov 27, 2017 at 10:11 AM, Vinod Kavinda <vi...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi All,
>>>>>>> IMO, this should work OOB. If above changes works, we can ship the
>>>>>>> carbon.xml with the role  'GovernanceRegistry'. Shall we report a
>>>>>>> bug?
>>>>>>>
>>>>>>> Regards,
>>>>>>> Vinod
>>>>>>>
>>>>>>> On Mon, Nov 27, 2017 at 10:05 AM, Sashika Wijesinghe <
>>>>>>> sash...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi Godwin,
>>>>>>>>
>>>>>>>> To solve the issue, you can add the 'GovernanceRegistry' server
>>>>>>>> role to the EI server under "" in the carbon.xml or set 
>>>>>>>> the
>>>>>>>> server role of the registry resource to 'EnterpriseIntegrator' when
>>>>>>>> creating the CAR file.
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Sashika
>>>>>>>>
>>>>>>>> On Mon, Nov 27, 2017 at 8:32 AM, Rukshan Premathunga <
>>>>>>>> ruks...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Godwin,
>>>>>>>>>
>>>>>>>>> I think it because of your car file don't compatible with EI
>>>>>>>>> server role. Can you please find the EI server role and update in the

Re: [Dev] [Validate Mediator] JSON validation issue

2017-11-28 Thread Senduran Balasubramaniyam
Your payload factory contains an invalid JSON


On Fri, Nov 24, 2017 at 7:27 PM, Lahiru Cooray 
wrote:

> Hi team,
> Im using ESB 5.0.0 and trying to validate a json payload against a schema.
> Below is my sample synapse code snippet
>
>  
> 
> 
>
>   {"Error":$1"}
>
*"* is missing
  {"Error":*"*$1"} should work

>   
>  
>   
>
>
>
> 
>  
>
> When I try to send an invalid payload it gets validated but the specific
> erroneous property is not returned.
>
> DEBUG - wire HTTP-Listener I/O dispatcher-3 << "{"Error":the following
> keywords are unknown and will be ignored: [$id]"}[\r][\n]"
>
> Is there a way to access the specific invalid property and return a custom
> message. Appreciate your help!
>
> Regards,
> Lahiru
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Car application with only registry resources

2017-11-28 Thread Senduran Balasubramaniyam
+1 for fixing this. since G-Reg is no longer active
Anyway Godwin, if you have created a ESB solution project the server role
is by default set to EnterpriseServiceBus

On Tue, Nov 28, 2017 at 2:17 PM, Vinod Kavinda  wrote:

> Hi Godwin,
> Thanks for the update. Reported the issue [1]
>
> [1] - https://github.com/wso2/product-ei/issues/1428
>
> Regards,
> Vinod
>
> On Tue, Nov 28, 2017 at 2:02 PM, Godwin Shrimal  wrote:
>
>> Thanks for the response guy, I could resolve it by setting
>> "EnterpriseServiceBus" server role when exporting car file. I think this
>> should work OOB, best thing is adding "GovernanceRegistry"  in
>> carbon.xml under server roles.
>>
>>
>> Thanks
>> Godwin
>>
>>
>>
>> On Mon, Nov 27, 2017 at 12:23 PM, Sashika Wijesinghe 
>> wrote:
>>
>>> Hi Himasha,
>>>
>>> When exporting the carbon application project we can select the required
>>> server role. I have tried that option for 'EnterpriseServiceBus' server
>>> role and it works for me.
>>>
>>> Regards,
>>> Sashika
>>>
>>> On Mon, Nov 27, 2017 at 10:27 AM, Himasha Guruge 
>>> wrote:
>>>
 Hi Sashika,

 To solve the issue, you can add the 'GovernanceRegistry' server role to
 the EI server under "" in the carbon.xml or set the server
 role of the registry resource to 'EnterpriseIntegrator' when creating the
 CAR file.
 Have we tried out option 2? (setting role to 'EnterpriseIntegrator')
 AFAIR in tooling, we don't list ''EnterpriseIntegrator' role for
 registry projects.

 Thanks,
 Himasha

 On Mon, Nov 27, 2017 at 10:11 AM, Vinod Kavinda  wrote:

> Hi All,
> IMO, this should work OOB. If above changes works, we can ship the
> carbon.xml with the role  'GovernanceRegistry'. Shall we report a bug?
>
> Regards,
> Vinod
>
> On Mon, Nov 27, 2017 at 10:05 AM, Sashika Wijesinghe  > wrote:
>
>> Hi Godwin,
>>
>> To solve the issue, you can add the 'GovernanceRegistry' server role
>> to the EI server under "" in the carbon.xml or set the 
>> server
>> role of the registry resource to 'EnterpriseIntegrator' when creating the
>> CAR file.
>>
>> Regards,
>> Sashika
>>
>> On Mon, Nov 27, 2017 at 8:32 AM, Rukshan Premathunga <
>> ruks...@wso2.com> wrote:
>>
>>> Hi Godwin,
>>>
>>> I think it because of your car file don't compatible with EI server
>>> role. Can you please find the EI server role and update in the 
>>> artifact.xml.
>>>
>>> Thanks and Regards
>>>
>>> On Mon, Nov 27, 2017 at 8:21 AM, Godwin Shrimal 
>>> wrote:
>>>
 Hi Devs,

 Can't we have a CAR application with only registry project and
 deploy? It's complaining there are no artifacts to deploy and goes to
 faulty.

 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/
 *
 twitter: https://twitter.com/godwinamila
 

>>>
>>>
>>>
>>> --
>>> Rukshan Chathuranga.
>>> Software Engineer.
>>> WSO2, Inc.
>>> +94711822074 <+94%2071%20182%202074>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vinod Kavinda
> Senior Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
> [image: http://wso2.com/signature]
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Himasha Guruge
 Senior Software Engineer
 WS*O2* *Inc.*
 Mobile: +94 777459299 <+94%2077%20745%209299>
 himas...@wso2.com

>>>
>>>
>>>
>>> --
>>>
>>> *Sashika WijesingheSoftware Engineer - QA Team*
>>> Mobile : +94 (0) 774537487
>>> sash...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 

Re: [Dev] nginx master_process on; (code=exited, status=1/FAILURE)

2017-11-28 Thread Senduran Balasubramaniyam
It seems something else is already running on your port 80

On Tue, Nov 28, 2017 at 5:09 PM, Dushantha Batuwita 
wrote:

> Hi Dev
>
> I have installed the nginx and when I try  starting the nginx, I
> receive following error.
>
>  sudo service nginx start
>
> Job for nginx.service failed because the control process exited with error
> code.
> See "systemctl  status nginx.service" and "journalctl  -xe" for details.
>
>
> when I check the status it gives me.
>
> ● nginx.service - A high performance web server and a reverse proxy server
>Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor
> preset: enabled)
>Active: failed (Result: exit-code) since Tue 2017-11-28 16:33:48 +0530;
> 50s ago
>  Docs: man:nginx(8)
>   Process: 953 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
> master_process on; (code=exited, status=1/FAILURE)
>
> නෙවැ 28 16:44:57 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] still could not bind()
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Control process exited, code=exited status=1
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]: Failed to
> start A high performance web server and a reverse proxy server.
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Unit entered failed state.
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Failed with result 'exit-code'.
>
>
>
>
> Is there any possible solution to get rid of the error
> regards
>
>
>
>
> --
> *Dushantha Nayanajith Chandima Batuwita*
> Software Engineer Support | WSO2
> dushan...@wso2.com
> mobile : 0094777453010
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to validate email adddress

2017-11-27 Thread Senduran Balasubramaniyam
Also you need to use the template with + sign since its value can contain @

uri-template="/{*+*id}"

Regards
Senduran




On Mon, Nov 27, 2017 at 3:24 PM, Abimaran Kugathasan 
wrote:

> Hi Dilusha,
>
> Since you have defined is as path parameter in the template, you must use '
> uri.var.id' instead of 'query.param.id' in the filter mediator like below.
>
> 
>
> On Sat, Nov 25, 2017 at 11:37 AM, Dilusha Alphonso 
> wrote:
>
>> Hi All,
>>
>> Requirement: I need to check a condition " Patient ID is the email
>> address of given patient". When I give any string to the ID, it must be an
>> email address. I have to validate ID whether it is in email format. For
>> this, I used the filter mediator in ESB, But I noticed my request didn't go
>> through that filter mediator.
>>
>> I attached my API configuration in ESB. Please, anyone, help me to
>> validate the email address with ID.
>>
>> http://ws.apache.org/ns/synapse; name="Durdan"
>> context="/test">
>>
>>   
>>  
>>  > regex="/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/">
>> 
>>
>>
>>   
>>  http://schemas.
>> xmlsoap.org/soap/envelope/">
>> 
>>17
>> 
>> 
>>http://service.sample.durdans.com;>
>>   $1
>>
>> 
>>  
>>   
>>   
>>  
>>   
>>
>>
>>> scope="transport"/>
>>
>>   
>>  
>>   
>>
>>
>>> scope="axis2" type="STRING"/>
>> 
>> 
>>
>>   > value="deef"/>
>>
>> 
>>  
>>   
>>   
>>  
>>   
>>
>> 
>>
>> Thanks
>> Dilusha
>>
>>
>>
>>
>>
>> before loop back to out sequence whether the USER_NAME and PATIENT_ID are
>> equal.
>>
>> --
>>
>>
>> *Best Regards,Dilusha Alphonso*
>>
>> *Software Engineer - Support Team*
>>
>>
>> *WSO2*
>> *Mobile : *
>>
>> *+94766837098 <+94%2076%20683%207098>[image: http://wso2.com/signature]
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820 <+94%2077%20392%202820>
>
> 
> 
>   
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to compare two synapse properties in ESB

2017-11-24 Thread Senduran Balasubramaniyam
On Fri, Nov 24, 2017 at 10:20 AM, Thivya Mahenthirarasa 
wrote:

> Hi Dev,
>
> Requirement: I need to check a condition before loop back to out sequence
> whether the USER_NAME and PATIENT_ID are equal.
>
> I'm using a filter in my in sequence.
>
> 
>
> The above configuration is evaluated as synapse xpath and it is valid.
Should work. Make sure you have both the properties not having null values.

>
>
>   
>
>
>
> I'm seeing always "evaluates to false and no else path - skipping child
> mediators" in console even in the case of synapse properties USER_NAME and
> PATIENT_ID are equal.
>
> Could anyone help?
>
>
> Thanks,
> Thivya
>
>
> --
>
> *Thivya Mahenthirarasa*
>
> *Software Engineer -Support Team | WSO2*
>
>
> *Email: thi...@wso2.com *
>
> *Mobile: +94766461966 <+94%2076%20646%201966> *
> *Web: http://wso2.com *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] REST Method based routing within a proxy

2017-11-13 Thread Senduran Balasubramaniyam
Hi Senuwan,

Could you please elaborate your use case too. i.e the restriction of using
a proxy service. Because you can easy to this with an API

Regards
Senduran

On Tue, Nov 14, 2017 at 12:10 PM, Senuwan Withana  wrote:

> Hi Team,
>
> What is the best approach to mediate the logic based on the REST CRUD
> operations request  within the ESB proxy ?
>
> Regards,
>
> *Senuwan Withana*
> Software Engineer - Support Team | WSO2
>
> Email : senu...@wso2.com
> Mobile: 94773212853
> Web: http://www.wso2.com
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548 <+94%2077%20952%206548>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please Review and Merge (WebSocket Suppport for Carbon-Messaging)

2017-01-30 Thread Senduran Balasubramaniyam
Hi Irunika,

The above PR has PingCarbonMessage and PongCarbonMessage. It will be better
if you could rename those two classes to generalized name.

Regards
Senduran

On Fri, Jan 27, 2017 at 2:47 PM, Kishanthan Thangarajah  wrote:

> Looks ok.
>
> Senduran/Shafreen, can we merge this PR?
>
> On Thu, Jan 26, 2017 at 7:27 PM, Irunika Weeraratne 
> wrote:
>
>> Hi,
>> Fixed the issues mentioned.
>> Please review and merge.
>>
>> Thanks,
>> Irunika
>>
>> *Irunika Weeraratne*
>> *Software Engineer | WSO2, Inc. *
>> *Email : irun...@wso2.com *
>> *LinkedIn : https://lk.linkedin.com/in/irunika
>> *
>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Thu, Jan 26, 2017 at 7:04 PM, Irunika Weeraratne 
>> wrote:
>>
>>> Noted.
>>>
>>> Thanks,
>>> Irunika
>>>
>>> *Irunika Weeraratne*
>>> *Software Engineer | WSO2, Inc. *
>>> *Email : irun...@wso2.com *
>>> *LinkedIn : https://lk.linkedin.com/in/irunika
>>> *
>>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Thu, Jan 26, 2017 at 4:34 PM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
 PR has some formatting issue to be fixed. Can you look into it?

 On Thu, Jan 26, 2017 at 12:03 PM, Irunika Weeraratne 
 wrote:

> Hi all,
> Can you please review and merge the PR?
>
> Thanks,
> Irunika
>
> *Irunika Weeraratne*
> *Software Engineer | WSO2, Inc. *
> *Email : irun...@wso2.com *
> *LinkedIn : https://lk.linkedin.com/in/irunika
> *
> *Mobile : +94712403314 <+94%2071%20240%203314>*
> *Lean . Enterprise . Middleware*
>
>
> On Wed, Jan 25, 2017 at 3:35 PM, Irunika Weeraratne 
> wrote:
>
>> Hi all,
>> I modified the Carbon-Messaging according to the requirements.
>> Please review and merge.
>> https://github.com/wso2/carbon-messaging/pull/40
>>
>> Thanks,
>> Irunika
>>
>> *Irunika Weeraratne*
>> *Software Engineer | WSO2, Inc. *
>> *Email : irun...@wso2.com *
>> *LinkedIn : https://lk.linkedin.com/in/irunika
>> *
>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Mon, Jan 2, 2017 at 12:47 PM, Irunika Weeraratne > > wrote:
>>
>>> Hi all,
>>> I did necessary changes after the review.
>>> Please review and merge
>>> https://github.com/wso2/carbon-messaging/pull/40
>>>
>>> Thanks,
>>> Irunika
>>>
>>> *Irunika Weeraratne*
>>> *Software Engineer | WSO2, Inc. *
>>> *Email : irun...@wso2.com *
>>> *LinkedIn : https://lk.linkedin.com/in/irunika
>>> *
>>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Fri, Dec 23, 2016 at 1:36 PM, Irunika Weeraratne <
>>> irun...@wso2.com> wrote:
>>>
 Noted.

 Thanks,
 Irunika

 *Irunika Weeraratne*
 *Software Engineer | WSO2, Inc. *
 *Email : irun...@wso2.com *
 *LinkedIn : https://lk.linkedin.com/in/irunika
 *
 *Mobile : +94712403314 <+94%2071%20240%203314>*
 *Lean . Enterprise . Middleware*


 On Fri, Dec 23, 2016 at 1:30 PM, Kishanthan Thangarajah <
 kishant...@wso2.com> wrote:

> Adding @dev
>
> @Irunika, always copy the relevant mailing list.
>
> On Fri, Dec 23, 2016 at 1:17 PM, Irunika Weeraratne <
> irun...@wso2.com> wrote:
>
>> Hi,
>> Please review and merge
>> https://github.com/wso2/carbon-messaging/pull/39
>>
>> Thanks,
>> Irunika
>> *Irunika Weeraratne*
>> *Software Engineer | WSO2, Inc. *
>> *Email : irun...@wso2.com *
>> *LinkedIn : https://lk.linkedin.com/in/irunika
>> *
>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>> *Lean . Enterprise . Middleware*
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635 <+94%2077%20342%206635>
> Blog - *http://kishanthan.wordpress.com
> 

Re: [Dev] carbon-mediation-4.6.9 Staged

2016-12-10 Thread Senduran Balasubramaniyam
Hi Nuwan et al.,

Carbon mediation 4.6.9 is released.

Regards
Senduran



On Sat, Dec 10, 2016 at 10:12 AM, Nuwan Wimalasekara 
wrote:

> Hi Senduran,
>
> Can you please release
>
> Thanks,
> Nuwanw
>
> On Sat, Dec 10, 2016 at 9:31 AM, Heshitha Hettihewa 
> wrote:
>
>> Hi Nuwan,
>>
>> I've tested XACML Mediator feature 4.6.9 and was able to install and run
>> the feature without issues.
>>
>> +1 for the release
>>
>> Thanks.
>>
>> On Fri, Dec 9, 2016 at 11:28 PM, Geesara Prathap 
>> wrote:
>>
>>> Hi Nuwan,
>>>
>>> I have tested the staged carbon-mediation-4.6.9 repo and it is stable
>>> and working fine.
>>>
>>> +1 for the release.
>>>
>>> Thanks,
>>> Geesara
>>>
>>> On Fri, Dec 9, 2016 at 10:03 PM, Nuwan Wimalasekara 
>>> wrote:
>>>
 Hi

 Please use the below url for repository

 [1] https://maven.wso2.org/nexus/content/repositories/orgwso
 2carbonmediation-1009

 Thanks,
 Nuwanw

 On Fri, Dec 9, 2016 at 5:29 PM, Nuwan Wimalasekara 
 wrote:

> Hi All,
>
> Please find the staged carbon-mediation-4.6.9 at [1]
>
> [1] http://52.220.154.241:8081/nexus/content/repositories/or
> gwso2carbonmediation-1009
>
> @Heshitha and Geesara
>
> Please test and confirm.
>
> Thanks,
> Nuwanw
>
> --
> Nuwan Wimalasekara
> Associate Technical Lead
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620 <071%20668%204620>
>
>
>
>


 --
 Nuwan Wimalasekara
 Associate Technical Lead
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620 <+94%2071%20668%204620>




>>>
>>>
>>> --
>>> Geesara Prathap Kulathunga
>>> Software Engineer
>>> WSO2 Inc; http://wso2.com
>>> Mobile : +940772684174 <+94%2077%20268%204174>
>>>
>>>
>>
>>
>> --
>> Heshitha Hettihewa
>> *Software Engineer*
>> Mobile : +94716866386
>> <%2B94%20%280%29%20773%20451194>
>> heshit...@wso2.com
>>
>
>
>
> --
> Nuwan Wimalasekara
> Associate Technical Lead
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620 <+94%2071%20668%204620>
>
>
>
>


-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] carbon-mediation-4.6.8 Staged

2016-12-02 Thread Senduran Balasubramaniyam
Hi Nuwan,

carbon-mediation 4.6.8 is released now.

Regards
Senduran

On Fri, Dec 2, 2016 at 11:57 AM, Nuwan Wimalasekara  wrote:

> Hi Senduran
>
> Can you please release the carbon-mediation 4.6.8
>
> Thanks,
> Nuwanw
>
> On Thu, Dec 1, 2016 at 10:56 AM, Thilini Shanika 
> wrote:
>
>> Tested JSON Validator mediator with Guava and json-schema-validator orbit
>> upgrade [1] . Issues are not found
>>
>> +1 for release
>>
>> [1] https://wso2.org/jira/browse/APIMANAGER-5342
>>
>> On Thu, Dec 1, 2016 at 10:27 AM, Chamila Adhikarinayake <
>> chami...@wso2.com> wrote:
>>
>>> Hi
>>>
>>> 1. Validated the regression issue[1]
>>> 2. Build APIM 2.1.0-Snapshot with integration tests.
>>>
>>> No issues found. +1 for release
>>>
>>> [1] https://wso2.org/jira/browse/APIMANAGER-5489
>>>
>>> Chamila
>>>
>>> On Wed, Nov 30, 2016 at 5:57 PM, Nuwan Dias  wrote:
>>>
 Thanks.

 On Wed, Nov 30, 2016 at 4:44 PM, Nuwan Wimalasekara 
 wrote:

> Hi All,
>
> Please find the staged carbon-mediation-4.6.8 at [1]
>
>
> [1] https://maven.wso2.org/nexus/content/repositories/orgwso
> 2carbonmediation-1009
>
> Thanks,
> Nuwanw
>
> --
> Nuwan Wimalasekara
> Associate Technical Lead
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620 <+94%2071%20668%204620>
>
>
>
>


 --
 Nuwan Dias

 Software Architect - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729 <+94%2077%20777%205729>

>>>
>>>
>>>
>>> --
>>> Regards,
>>> Chamila Adhikarinayake
>>> Software Engineer
>>> WSO2, Inc.
>>> Mobile - +94712346437 <+94%2071%20234%206437>
>>> Email  - chami...@wso2.com
>>> Blog  -  http://helpfromadhi.blogspot.com/
>>>
>>
>>
>>
>> --
>> Thilini Shanika
>> Senior Software Engineer
>> WSO2, Inc.; http://wso2.com
>> 20, Palmgrove Avenue, Colombo 3
>>
>> E-mail: tgtshan...@gmail.com
>>
>>
>
>
> --
> Nuwan Wimalasekara
> Associate Technical Lead
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620 <+94%2071%20668%204620>
>
>
>
>


-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Eranda Rajapaksha

2016-10-10 Thread Senduran Balasubramaniyam
Congratulations Eranda !!

On Mon, Oct 10, 2016 at 6:11 PM, Nadeeshaan Gunasinghe 
wrote:

> Congrats Eranda !!
>
>
> *Nadeeshaan Gunasinghe*
> Software Engineer, WSO2 Inc. http://wso2.com
> +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe
> <#m_-4715409582830934341_>
> 
>   
> 
> Get a signature like this: Click here!
> 
>
> On Mon, Oct 10, 2016 at 6:09 PM, prabath  wrote:
>
>> Congratulation Eranda !!
>>
>> On Mon, Oct 10, 2016 at 6:07 PM, Sameera Gunarathne 
>> wrote:
>>
>>> Congrats Eranda !!!
>>>
>>> On Mon, Oct 10, 2016 at 6:03 PM, Prakhash Sivakumar 
>>> wrote:
>>>
 Congratulation Eranda !

 On Mon, Oct 10, 2016 at 5:41 PM, Chanaka Fernando 
 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 
>
>
>
>
>
>
>
> ___
> 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
>>> 
>>> 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/ 
Mobile: +94 77 952 6548
___
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 Senduran Balasubramaniyam
Hi Udara,

Since you have to create the XML using the XSLT and the XSLT have to return
an processing instruction, you have to have the following XSLT:


   
  addresses
   


Regards
Senduran

On Wed, Oct 5, 2016 at 12:18 PM, 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
>



-- 
*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


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

2016-10-04 Thread Senduran Balasubramaniyam
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">
   
  
 
 
  
   



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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] MessageContext data from ESB server logs

2016-10-04 Thread Senduran Balasubramaniyam
Hi Palani,

You mean to get the payload which is passing each mediator, in that case
even Trace log doesn't help. you may have to debug the source code[1] to
see the payload.
By the way with ESB 5.0.0 you have the ability to debug the ESB message
flow, please refer to [2]

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/synapse/2.1.2-wso2v4/
[2] https://docs.wso2.com/display/ESB500/Debugging+Mediation

Regards
Senduran

On Fri, Sep 30, 2016 at 11:52 AM, Palani Tester 
wrote:

> Hi All,
>
>
> I'm using ESB Server version 4.8.1. Set Trace options for couple of logs
> and unable to get MessageContext details. Can I get MessageContext data
> given for each mediate class through Server logs?
>
>
>
> Thanks,
>
> Palani
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
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-04 Thread Senduran Balasubramaniyam
Hi Udara,

You can get an empty addresses array by following:


   


Regards
Senduran

On Tue, Oct 4, 2016 at 12:09 PM, Udara Liyanage  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/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Enterprise Service Bus 5.0.0 Released

2016-08-19 Thread Senduran Balasubramaniyam
*WSO2 Enterprise Service Bus 5.0.0 Released*

WSO2 Enterprise Service Bus team is pleased to announce the release of WSO2
Enterprise Service Bus 5.0.0.

WSO2 Enterprise Service Bus is a lightweight, high performance, near-zero
latency product, providing comprehensive support for several different
technologies like SOAP, WS* and REST as well as domain-specific solutions
and protocols like SAP, FIX and HL7. It goes above and beyond by being 100%
compliant with enterprise integration patterns. It also has 100+
ready-made, easy-to-use connectors to seamlessly integrate between cloud
service providers. WSO2 Enterprise Service Bus is 100% configuration
driven, which means no code needs to be written. Its capabilities can be
extended too with the many extension points to plug into.

WSO2 ESB 5.0.0 consists of runtime, tooling and analytics components.


For more information on WSO2 Enterprise Service Bus and to download the
product please visit http://wso2.com/products/enterprise-service-bus/. Also
take a look at the online product documentation.

*How to Run*

1. Extract the downloaded zip
2. Go to the bin directory in the extracted folder
3. Run the wso2server.sh or wso2server.bat as appropriate
4. Launch a web browser and navigate to https://localhost:9443/carbon to
access the admin console
5. Use "admin", "admin" as the username and password to login as an
admin

*Following New Features are included*

*ESB Runtime*

   - [ESBJAVA-1999 ] - Add
   websocket support to the ESB
   - [ESBJAVA-3851 ] -
   Distributed Transaction (XATransaction) For JMS Transport
   - [ESBJAVA-4078 ] - Support
   JMS 2.0.0
   - [ESBJAVA-4550 ] - Data
   mapping feature for ESB
   - [ESBJAVA-4854 ] - Proxy
   profile support
   - [ESBJAVA-4855 ] - Mediation
   Debugging capability for WSO2 ESB
   - [ESBJAVA-4857 ] - New ESB
   statistics and tracing integration with ESB analytics


*ESB Tooling*

   - [DEVTOOLESB-71 ] - Create
   tree by adding elements - json schema
   - [DEVTOOLESB-233 ] -
   Provide instruction for getting access token via Developer Studio
   - [DEVTOOLESB-452 ] -
   Generating the form editor for Local Entry
   - [DEVTOOLESB-457 ] - ESB
   Solution Project Creation
   - [DEVTOOLESB-738 ] -
   Mediator flow debugging support
   - [DEVTOOLESB-739 ] - Data
   Mapping Visual tool
   - [DEVTOOLESB-740 ] -
   Adding form editors for Endpoints, Message processors, Scheduled tasks
   - [DEVTOOLESB-741 ] -
   Adding form editors for Message Store, Template endpoints


*ESB Analytics*

   - [ANLYESB-192 ] - VizGrammar
   charts for Analytic Dashboard
   - [ANLYESB-193 ] - Create a
   separate product distribution for WSO2 ESB Analytics
   - [ANLYESB-194 ] - Create
   required gadgets for analytics dashboard with pub sub facility
   - [ANLYESB-195 ] -
   Summarization Spark script for ESB statistics
   - [ANLYESB-196 ] - Relational
   Provider for aggregated events in ESB Analytics
   - [ANLYESB-197 ] - Cross
   tenant statistic aggregate operations.
   - [ANLYESB-198 ] - Offline
   statistic calculation.
   - [ANLYESB-199 ] - Pre and
   post comparison for the mediator tracing.


*Complete list of bug fixes and improvements*

   - ESB Runtime 
   - ESB Tooling 
   - ESB Analytics 


*Key Features of WSO2 Enterprise Service Bus*

*Connect Anything to Anything*

   - Adapters to cloud services: 150+ connectors
    across various categories such as
   payments, CRM, ERP, social networks or legacy systems.
   - Transports: HTTP, HTTPS, Web sockets, POP, IMAP, SMTP, JMS 1.1, JMS
   2.0, AMQP, RabbitMQ, FIX, TCP, UDP, FTPS, SFTP, MLLP and SMS, MQTT, Apache
   Kafka
   - Formats & protocols: JSON, XML, SOAP 1.1, SOAP 1.2, WS-*, HTML, EDI,
   HL7, OAGIS, Hessian, Text, JPEG, MP4, all binary formats and CORBA/IIOP
   - Adapters to COTS systems: SAP BAPI & IDoc, IBM WebSphere 

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

2016-08-19 Thread Senduran Balasubramaniyam
Hi All,

Thanks for testing and verifying WSO2 Enterprise Service Bus 5.0.0 RC4. We
are closing the vote now. The vote has passed with 10 +1s and 0 -1s.
Therefore we are proceeding with  WSO2 Enterprise Service Bus 5.0.0
release.

Thanks,
- WSO2 ESB Team -

On Fri, Aug 19, 2016 at 2:45 PM, Vijitha Ekanayake <vijit...@wso2.com>
wrote:

> Hi All,
>
> I have tested basic use cases of data mapper.
>
> [+] Stable - go ahead and release
>
> Thanks,
> Vijitha.
>
> On Fri, Aug 19, 2016 at 2:38 PM, Kevin Ratnasekera <ke...@wso2.com> wrote:
>
>> Hi All,
>>
>> I have tested and verified the following,
>>
>>-  Websocket transport and it s basic use cases.
>>
>> [+] Stable - go ahead and release
>>
>> Regards
>> Kevin
>>
>>
>> On Fri, Aug 19, 2016 at 1:21 PM, Rajith Vitharana <raji...@wso2.com>
>> wrote:
>>
>>> 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_-289290036879051436_m_-7647258026462985625_m_-860390395190705528_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
>>>>>>

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

2016-08-16 Thread Senduran Balasubramaniyam
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/product-esb/releases/tag/v5.0.0-rc4
Tooling   :
https://github.com/wso2/devstudio-tooling-esb/releases/tag/v5.0.0-rc4
Analytics: https://github.com/wso2/analytics-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/ 
Mobile: +94 77 952 6548
___
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-08 Thread Senduran Balasubramaniyam
On Mon, Aug 8, 2016 at 11:14 AM, Pubudu Priyashan  wrote:

> Hi Jagath,
>
> So when we do that, it requires the user to restart the server every time
> they add a new https endpoint to add the keys to client-truststore. In
> production environments, this is not convenient and will have to go through
> a long process to add a key to the truststore since it requires a server
> restart. Are there any better approaches we can think of to overcome this
> without having to restart the servers when we add new https endpoints?
>
you can you use dynamic SSL support [1]
[1]
https://docs.wso2.com/display/ESB500/Multi-HTTPS+Transport#Multi-HTTPSTransport-DynamicSSLprofiles

>
> 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
>
>
> On Mon, Aug 8, 2016 at 10:55 AM, Jagath Sisirakumara Ariyarathne <
> jaga...@wso2.com> wrote:
>
>> Hi Pubudu,
>>
>> Whenever you access a Https endpoint, you have to import back-end's
>> certificate to client-truststore. That is the default requirement if you
>> are using SSL between back-end and ESB.
>>
>> Thanks.
>>
>> On Mon, Aug 8, 2016 at 10:13 AM, Pubudu Priyashan 
>> wrote:
>>
>>> Hi ESB team,
>>>
>>> I have observed the following behaviour when invoking a secure proxy in
>>> a clustered setup which calls an external http endpoint [1] with ESB 5.0.0
>>> (Tested with RC1). Can you please inform if this behaviour is correct or
>>> are there any alternative methods?
>>>
>>> I have a secure proxy in my ESB cluster where it calls an external https
>>> endpoint [1]. When I invoked this in a single node in my local machine, it
>>> returned the response as expected. When I created the same secure proxy in
>>> a Cluster, I received this error [2]. I was able to get rid of this error
>>> by adding the certificate of the endpoint to client-truststore.jks file of
>>> each ESB node of the cluster.
>>>
>>> My question is, is this behaviour correct? Should we have to always add
>>> the https endpoint certificate every time we need to use an external
>>> endpoint in a secure proxy? Or is there another approach where we don't
>>> have to do this and not required to add the keys to client-truststore.jks
>>> and restart ESB nodes? This might not be convenient if we have a lot of
>>> https endpoints being called via a secure proxy in ESB. Can you please
>>> advice?
>>>
>>> Thanks!
>>>
>>> [1] https://demo5224632.mockable.io/test123
>>>
>>> [2] Exception in ESB worker node:-
>>>
>>> TID: [-1] [] [2016-08-04 05:34:33,682] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  HTTPS-Listener I/O
>>> dispatcher-1 >> "GET /services/SecureP1 HTTP/1.1[\r][\n]"
>>> {org.apache.synapse.transport.http.wire}
>>> TID: [-1] [] [2016-08-04 05:34:33,683] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  HTTPS-Listener I/O
>>> dispatcher-1 >> "X-Forwarded-Host: wrk.esb500.wso2.com[\r][\n]"
>>> {org.apache.synapse.transport.http.wire}
>>> TID: [-1] [] [2016-08-04 05:34:33,683] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  HTTPS-Listener I/O
>>> dispatcher-1 >> "X-Forwarded-Server: wrk.esb500.wso2.com[\r][\n]"
>>> {org.apache.synapse.transport.http.wire}
>>> TID: [-1] [] [2016-08-04 05:34:33,683] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  HTTPS-Listener I/O
>>> dispatcher-1 >> "X-Forwarded-For: 10.100.7.95[\r][\n]"
>>> {org.apache.synapse.transport.http.wire}
>>> TID: [-1] [] [2016-08-04 05:34:33,683] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  HTTPS-Listener I/O
>>> dispatcher-1 >> "Connection: upgrade[\r][\n]" {org.apache.synapse.transport.
>>> http.wire}
>>> TID: [-1] [] [2016-08-04 05:34:33,683] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  HTTPS-Listener I/O
>>> dispatcher-1 >> "Host: ssl.esb500.com[\r][\n]"
>>> {org.apache.synapse.transport.http.wire}
>>> TID: [-1] [] [2016-08-04 05:34:33,684] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  HTTPS-Listener I/O
>>> dispatcher-1 >> "Authorization: Basic 
>>> YWRtaW5lc2I1MDA6ZXNiNTAwQERhcw==[\r][\n]"
>>> {org.apache.synapse.transport.http.wire}
>>> TID: [-1] [] [2016-08-04 05:34:33,684] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  HTTPS-Listener I/O
>>> dispatcher-1 >> "Cache-Control: no-cache[\r][\n]"
>>> {org.apache.synapse.transport.http.wire}
>>> TID: [-1] [] [2016-08-04 05:34:33,684] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  HTTPS-Listener I/O
>>> dispatcher-1 >> "User-Agent: Mozilla/5.0 (X11; Linux x86_64)
>>> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116
>>> Safari/537.36[\r][\n]" {org.apache.synapse.transport.http.wire}
>>> TID: [-1] [] [2016-08-04 05:34:33,684] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  HTTPS-Listener I/O
>>> dispatcher-1 >> "Postman-Token: 
>>> 60dc8ef4-36b0-03bd-5841-7efad2189071[\r][\n]"
>>> {org.apache.synapse.transport.http.wire}
>>> TID: [-1] [] [2016-08-04 05:34:33,684] DEBUG

Re: [Dev] Socket connection closed while trying ESB connector operation.

2016-06-15 Thread Senduran Balasubramaniyam
Hi Shakila,

Can you compare the request sending from ESB(using wirelog) and sending
directly.

Regards
Senduran

On Wed, Jun 15, 2016 at 6:56 PM, Shakila Sivagnanarajah 
wrote:

> Hi all,
>
> I am experiencing socket connection closed exception while trying 'upload
> part operation' [1] of Amazon s3 connector. In direct call, the response
> comes within 5 seconds. I increased the the timeout values as below.
>
> synapse.global_timeout_interval - 180 seconds in synapse.properties
> http.socket.timeout - 180 seconds in passthru-http.properties
> http.socket.timeout.receiver - 180 seconds in nhttp.properties
>
> After this tuning also, no improvement. It waits for nearly 21 seconds.
> But not receiving the response from API. [2] is the message I get.
>
> Finally I set the endpoint timeout [3] also. But the result is same.
>
> [1]
> http://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadUploadPartCopy.html
>
>
> 
> [2]
> 
> RequestTimeout
> Your socket connection to the server was not read from or
> written to within the timeout period. Idle connections will be
> closed.
> 7223E45B22E88E80
>
> cH2RE4IG7QhmiN1Bpqw6/bweEKowmtXS+jFwJkzay/3u3MovuutgtzAXM37tpXuzCl23HxAYuZIF1rLGLuJxvh4GRAu6891c
> 
>
> [3]
> 
> 
>  uri-template="{uri.var.bucketUrl}/{+uri.var.objectName}?partNumber={+uri.var.partNumber}uploadId={+uri.var.uploadId}">
> 
> 18
> fault
> 
> 
> 
> 
>
> [4] Template:
>
> http://ws.apache.org/ns/synapse;>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  scope="axis2"/>
>  scope="axis2"/>
> 
> 
> 
> uri-template="{uri.var.bucketUrl}/{+uri.var.objectName}?partNumber={+uri.var.partNumber}uploadId={+uri.var.uploadId}"/>
> 
> 
> 
> 
> 
> 
>  action="remove"/>
> 
> 
>
>
> Thank you
> --
> Shakila Sivagnanarajah
> Software Engineer
> Mobile :+94 (0) 768 856837
> shak...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
>



-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Dynamic Store support

2016-06-07 Thread Senduran Balasubramaniyam
Hi Godwin,

It is not possible pass the name dynamically. As a solution you can use
switch mediator and select the needed message store.

Regards
Senduran

On Tue, Jun 7, 2016 at 8:01 PM, Godwin Shrimal  wrote:

> Hi All,
>
> Do we have a way to do $Subject such as below.
>
> 
> 
>
> *Note. Above config is not working and  it takes {$ctx:message_store} as
> the store name*
>
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>



-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Empty response element in WSO2 ESB payload factory

2016-06-06 Thread Senduran Balasubramaniyam
Hi Charmi,

instead of selecting the //symbol in the argument, I wrote a xpath
condition to select if symbol node has text else it will return empty
string.


  


hope this will help

refer http://stackoverflow.com/a/7048664 for explanation

Regards
Senduran

On Mon, Jun 6, 2016 at 3:48 PM, Charmi Jayanga 
wrote:

> Hi,
>
> How to filter an empty response element in WSO2 ESB payload factory.
>
> *Proxy Service*
>
> 
> http://ws.apache.org/ns/synapse;
>name="count_iterate"
>transports="http,https"
>statistics="disable"
>trace="disable"
>startOnLoad="true">
>
>   
>  
>  
> 
>
>expression="get-property('operation', 
> 'it_count')"/>
>   var cnt_str = 
> mc.getProperty('synapse_it_count');
>  var cnt = parseInt(cnt_str);
>  cnt++;
>  mc.setProperty('synapse_it_count', cnt.toString());
>expression="get-property('synapse_it_count')"
> scope="operation"/>
>   
>  
> 
>  
>  
> 
>  
> expression="get-property('operation','it_count')"/>
> 
> 
>
>   
>  $1
>   
>
>
>   
>
> 
> 
>  
>   
>
> 
>  
>   
>
>
> 
>
>
> *Scenario 1*
>
> *Sample Request*
>
> 
>WSO2
> 
>
>
> *Sample Response*
>
> 
>WSO2
> 
>
>
> *Scenario 2*
>
> *Sample Request*
>
> 
>
> 
>
>
> *Sample Response given from ESB*
>
> 
>
>   
>
> 
>
>
>
> Is there any way to avoid scenario 2? Or is there any workaround? I just need 
> the following response .
>
> *Sample Response expected*
>
> 
>
> 
>
>
> Regards
> Charmi
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Too much noise during MSF4J startup (master branch)

2016-05-24 Thread Senduran Balasubramaniyam
Hi Azeez,

As I could see, log4j.properties shipped with the fat-jar in not being
used. I tried adding file appender and tried changing log level. But it
doesn't get affected. Also when I compare the properly working fat-jar [I
got it by checking out to some previous commits] the current master fat-jar
contains too much files (i.e other than the need class files and
properties). Also some other dependencies (eg: log4j-api, log4j-core,
pax-logging-log4j2..) So I guess these dependencies overwrites our log4j
configuration. So if we could find why those additional dependencies are
getting packed, we may eliminate the noisy logs.
The additional dependency and the files increases  the fat-jar size, twice
the size of its usual size.

Regards
Senduran

On Tue, May 24, 2016 at 10:27 AM, Senduran Balasubramaniyam <
sendu...@wso2.com> wrote:

> Hi Azeez,
>
> All the above logs (the verbose ones) are in debug level. Also the log4j
> properties rootLogger level is set to INFO. So it is unclear why does those
> logs are appears at the start up.
> I will try to find the cause.
>
> Regards
> Senduran
>
>
>
> On Tue, May 24, 2016 at 12:24 AM, Afkham Azeez <az...@wso2.com> wrote:
>
>> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Starting
>> Netty Http Transport Listener
>>
>> [io.netty.util.internal.logging.InternalLoggerFactory] : Using SLF4J as
>> the default logging framework
>>
>> [io.netty.channel.MultithreadEventLoopGroup] :
>> -Dio.netty.eventLoopThreads: 16
>>
>> [io.netty.util.internal.PlatformDependent0] : java.nio.Buffer.address:
>> available
>>
>> [io.netty.util.internal.PlatformDependent0] : sun.misc.Unsafe.theUnsafe:
>> available
>>
>> [io.netty.util.internal.PlatformDependent0] : sun.misc.Unsafe.copyMemory:
>> available
>>
>> [io.netty.util.internal.PlatformDependent0] : java.nio.Bits.unaligned:
>> true
>>
>> [io.netty.util.internal.PlatformDependent] : Java version: 8
>>
>> [io.netty.util.internal.PlatformDependent] : -Dio.netty.noUnsafe: false
>>
>> [io.netty.util.internal.PlatformDependent] : sun.misc.Unsafe: available
>>
>> [io.netty.util.internal.PlatformDependent] : -Dio.netty.noJavassist: false
>>
>> [io.netty.util.internal.PlatformDependent] : Javassist: available
>>
>> [io.netty.util.internal.PlatformDependent] : -Dio.netty.tmpdir:
>> /var/folders/9c/f5j0x_mx6xsgx06x63sl6410gn/T (java.io.tmpdir)
>>
>> [io.netty.util.internal.PlatformDependent] : -Dio.netty.bitMode: 64
>> (sun.arch.data.model)
>>
>> [io.netty.util.internal.PlatformDependent] : -Dio.netty.noPreferDirect:
>> false
>>
>> [io.netty.channel.nio.NioEventLoop] : -Dio.netty.noKeySetOptimization:
>> false
>>
>> [io.netty.channel.nio.NioEventLoop] :
>> -Dio.netty.selectorAutoRebuildThreshold: 512
>>
>> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Netty
>> Boss group size io.netty.channel.nio.NioEventLoopGroup@396a51ab
>>
>> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Netty
>> Worker group Sizeio.netty.channel.nio.NioEventLoopGroup@51081592
>>
>> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Netty
>> Server Socket BACKLOG 100
>>
>> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Netty
>> Server Socket TCP_NODELAY true
>>
>> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Netty
>> Server Socket SO_KEEPALIVE true
>>
>> [org.wso2.carbon.transport.http.netty.listener.NettyListener] :  Netty
>> Server Socket CONNECT_TIMEOUT_MILLIS 15000
>>
>> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Netty
>> Server Socket SO_SNDBUF 1048576
>>
>> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Netty
>> Server Socket SO_RCVBUF 1048576
>>
>> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Netty
>> Server Socket SO_RCVBUF 1048576
>>
>> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Netty
>> Server Socket SO_SNDBUF 1048576
>>
>> [org.wso2.carbon.transport.http.netty.sender.channel.pool.PoolConfiguration]
>> : connection.pool.count: 0
>>
>> [org.wso2.carbon.transport.http.netty.sender.channel.pool.PoolConfiguration]
>> : max.active.connections.per.pool:-1
>>
>> [org.wso2.carbon.transport.http.netty.sender.channel.pool.PoolConfiguration]
>> : min.idle.connections.per.pool:100
>>
>> [org.wso2.carbon.transport.http.netty.sender.channel.pool.PoolConfiguration]
>> : max.idle.connections.per.pool:100
>>
>> [org.wso2

Re: [Dev] Too much noise during MSF4J startup (master branch)

2016-05-23 Thread Senduran Balasubramaniyam
Hi Azeez,

All the above logs (the verbose ones) are in debug level. Also the log4j
properties rootLogger level is set to INFO. So it is unclear why does those
logs are appears at the start up.
I will try to find the cause.

Regards
Senduran



On Tue, May 24, 2016 at 12:24 AM, Afkham Azeez  wrote:

> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Starting
> Netty Http Transport Listener
>
> [io.netty.util.internal.logging.InternalLoggerFactory] : Using SLF4J as
> the default logging framework
>
> [io.netty.channel.MultithreadEventLoopGroup] :
> -Dio.netty.eventLoopThreads: 16
>
> [io.netty.util.internal.PlatformDependent0] : java.nio.Buffer.address:
> available
>
> [io.netty.util.internal.PlatformDependent0] : sun.misc.Unsafe.theUnsafe:
> available
>
> [io.netty.util.internal.PlatformDependent0] : sun.misc.Unsafe.copyMemory:
> available
>
> [io.netty.util.internal.PlatformDependent0] : java.nio.Bits.unaligned: true
>
> [io.netty.util.internal.PlatformDependent] : Java version: 8
>
> [io.netty.util.internal.PlatformDependent] : -Dio.netty.noUnsafe: false
>
> [io.netty.util.internal.PlatformDependent] : sun.misc.Unsafe: available
>
> [io.netty.util.internal.PlatformDependent] : -Dio.netty.noJavassist: false
>
> [io.netty.util.internal.PlatformDependent] : Javassist: available
>
> [io.netty.util.internal.PlatformDependent] : -Dio.netty.tmpdir:
> /var/folders/9c/f5j0x_mx6xsgx06x63sl6410gn/T (java.io.tmpdir)
>
> [io.netty.util.internal.PlatformDependent] : -Dio.netty.bitMode: 64
> (sun.arch.data.model)
>
> [io.netty.util.internal.PlatformDependent] : -Dio.netty.noPreferDirect:
> false
>
> [io.netty.channel.nio.NioEventLoop] : -Dio.netty.noKeySetOptimization:
> false
>
> [io.netty.channel.nio.NioEventLoop] :
> -Dio.netty.selectorAutoRebuildThreshold: 512
>
> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Netty Boss
> group size io.netty.channel.nio.NioEventLoopGroup@396a51ab
>
> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Netty
> Worker group Sizeio.netty.channel.nio.NioEventLoopGroup@51081592
>
> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Netty
> Server Socket BACKLOG 100
>
> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Netty
> Server Socket TCP_NODELAY true
>
> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Netty
> Server Socket SO_KEEPALIVE true
>
> [org.wso2.carbon.transport.http.netty.listener.NettyListener] :  Netty
> Server Socket CONNECT_TIMEOUT_MILLIS 15000
>
> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Netty
> Server Socket SO_SNDBUF 1048576
>
> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Netty
> Server Socket SO_RCVBUF 1048576
>
> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Netty
> Server Socket SO_RCVBUF 1048576
>
> [org.wso2.carbon.transport.http.netty.listener.NettyListener] : Netty
> Server Socket SO_SNDBUF 1048576
>
> [org.wso2.carbon.transport.http.netty.sender.channel.pool.PoolConfiguration]
> : connection.pool.count: 0
>
> [org.wso2.carbon.transport.http.netty.sender.channel.pool.PoolConfiguration]
> : max.active.connections.per.pool:-1
>
> [org.wso2.carbon.transport.http.netty.sender.channel.pool.PoolConfiguration]
> : min.idle.connections.per.pool:100
>
> [org.wso2.carbon.transport.http.netty.sender.channel.pool.PoolConfiguration]
> : max.idle.connections.per.pool:100
>
> [org.wso2.carbon.transport.http.netty.sender.channel.pool.PoolConfiguration]
> : min.eviction.idle.time:30
>
> [org.wso2.carbon.transport.http.netty.sender.channel.pool.PoolConfiguration]
> : sender.thread.count:20
>
> [org.wso2.carbon.transport.http.netty.sender.channel.pool.PoolConfiguration]
> : Time between Evictions Runs:3
>
> [org.wso2.carbon.transport.http.netty.sender.channel.pool.PoolConfiguration]
> : Pool exhausted action:2
>
> [org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer]
> : Disruptor is disabled and using executor thread pool with size of 1024
>
> [io.netty.util.internal.ThreadLocalRandom] :
> -Dio.netty.initialSeedUniquifier: 0x8fc366dfb69a63b3 (took 27 ms)
>
> [io.netty.buffer.ByteBufUtil] : -Dio.netty.allocator.type: unpooled
>
> [io.netty.buffer.ByteBufUtil] : -Dio.netty.threadLocalDirectBufferSize:
> 65536
>
> [io.netty.util.NetUtil] : Loopback interface: lo0 (lo0, 0:0:0:0:0:0:0:1)
>
> [io.netty.util.NetUtil] : /proc/sys/net/core/somaxconn: 128 (non-existent)
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . 

[Dev] Carbon-Transports 2.1.0 is Staged

2016-05-17 Thread Senduran Balasubramaniyam
Hi all,

Carbon transport 2.1.0 is staged at
https://maven.wso2.org/nexus/content/repositories/orgwso2carbontransport-1002

This release is with kernel version 5.1.0-alpha2

Please test and verify

Regards
Senduran

-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5][BPS] Startup errors with new kernel SNAPSHOT

2016-05-17 Thread Senduran Balasubramaniyam
Hi Niranjan / Samiyuru

MSF4J's test are running successfully with the latest carbon-transport
(2.0.3-snapshot) and carbon messaging 1.0.3.
Is there any additional tests we need to perform before releasing the
carbon transport.

@Hasitha, Asitha
Please check your latest development with carbon transport 2.0.3-snapshot
and carbon-messaging 1.0.3 and let us know whether we can go ahead with
release.

Regards
Senduran

On Tue, May 17, 2016 at 11:50 AM, Senduran Balasubramaniyam <
sendu...@wso2.com> wrote:

> Hi Niranjan
>
> Transport Properties will get its default value if the file is not
> available. But I have missed to initialize the transport properties. Now it
> is changed to initialize with an empty set.
>
> I'll  try running the MSF4J test cases.
>
> Yes, if this doesn't solves, I will create a jira and change the property
> loading logic
>
> Regards
> Senduran
>
> On Tue, May 17, 2016 at 11:47 AM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi Samiyuru / Senduran,
>>
>> On Tue, May 17, 2016 at 11:35 AM, Samiyuru Senarathne <samiy...@wso2.com>
>> wrote:
>>
>>> Transport config yaml file is loaded from transport component. So
>>> setting defaults in MSF4J level is not successful. IMO its better to set
>>> defaults in transport level to support initialization without a config file
>>> or with a config file with only a sub set of the configurations.
>>>
>> Shall we create jira in carbon-transports for this?
>>
>>
>>>
>>> Best Regards,
>>> Samiyuru
>>>
>>> On Tue, May 17, 2016 at 10:57 AM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
>>>> Hi all,
>>>>
>>>> As per the offline discussion with Samiyuru, we need to modify the unit
>>>> test for HttpServerTest to read from the config files which has the new
>>>> default values.
>>>>
>>>> @Samiyuru: In-order to support msf4j to run in standalone mode, don't
>>>> we need to make changes to the msf4j code to set default values if the
>>>> config file does not exist since carbon-transports expects these properties
>>>> in the config file.
>>>>
>>>> Regards,
>>>> Nira
>>>>
>>>> On Tue, May 17, 2016 at 10:39 AM, Samiyuru Senarathne <
>>>> samiy...@wso2.com> wrote:
>>>>
>>>>> Hi Niranjan,
>>>>>
>>>>> MSF4J core unit tests use 2 transport config files [1]. You can add
>>>>> the new config to these files.
>>>>>
>>>>> [1] https://github.com/wso2/msf4j/tree/master/core/src/test/resources
>>>>>
>>>>> Best Regards,
>>>>> Samiyuru
>>>>>
>>>>>
>>>>> On Tue, May 17, 2016 at 10:27 AM, Niranjan Karunanandham <
>>>>> niran...@wso2.com> wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I looked into the unit tests that are failing in msf4j[1] after
>>>>>> upgrading carbon-transports to v 2.0.3-SNAPSHOT and noticed that this is
>>>>>> happening when initializing the MicroserviceRunner instance. As per the
>>>>>> error [2], this is coming from carbon-transports. As per the offline
>>>>>> discussion I had with Senduran, a new config has been added called
>>>>>> "transportProperties" which needs to be set. How do we set these values 
>>>>>> in
>>>>>> the case of a unit test.
>>>>>>
>>>>>> [1] -
>>>>>> https://github.com/wso2/msf4j/blob/master/core/src/test/java/org/wso2/msf4j/internal/router/HttpServerTest.java
>>>>>> [2] -
>>>>>> [org.wso2.msf4j.MicroservicesRunner] : Microservices server started
>>>>>> in 10113ms
>>>>>> [org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer]
>>>>>> : Calling CarbonNettyServerInitializer OSGi service
>>>>>> org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer@7fcb9c71
>>>>>> [org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer]
>>>>>> : Initializing source channel pipeline
>>>>>> [io.netty.util.ResourceLeakDetector] : -Dio.netty.leakDetectionLevel:
>>>>>> simple
>>>>>> [io.netty.channel.ChannelInitializer] : Failed to initialize a
>>>>>> channel. Closing: [id: 0x1e800c9b, 

Re: [Dev] [C5][BPS] Startup errors with new kernel SNAPSHOT

2016-05-17 Thread Senduran Balasubramaniyam
>>>>> at
>>>>> io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:119)
>>>>> at
>>>>> io.netty.channel.DefaultChannelPipeline.fireChannelRegistered(DefaultChannelPipeline.java:733)
>>>>> at
>>>>> io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:450)
>>>>> at
>>>>> io.netty.channel.AbstractChannel$AbstractUnsafe.access$100(AbstractChannel.java:378)
>>>>> at
>>>>> io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:424)
>>>>> at
>>>>> io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:356)
>>>>> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
>>>>> at
>>>>> io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110)
>>>>> at
>>>>> io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>> Caused by: java.lang.NullPointerException
>>>>> at
>>>>> org.wso2.carbon.transport.http.netty.listener.RequestSizeValidationConfiguration.(RequestSizeValidationConfiguration.java:51)
>>>>> at
>>>>> org.wso2.carbon.transport.http.netty.listener.RequestSizeValidationConfiguration.(RequestSizeValidationConfiguration.java:31)
>>>>> ... 15 more
>>>>> [org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer]
>>>>> : Calling CarbonNettyServerInitializer OSGi service
>>>>> org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer@7fcb9c71
>>>>> [org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer]
>>>>> : Initializing source channel pipeline
>>>>> [io.netty.channel.ChannelInitializer] : Failed to initialize a
>>>>> channel. Closing: [id: 0x0a08449b, localhost/127.0.0.1:56192 => /
>>>>> 127.0.0.1:8081]
>>>>> java.lang.NoClassDefFoundError: Could not initialize class
>>>>> org.wso2.carbon.transport.http.netty.listener.RequestSizeValidationConfiguration
>>>>> at
>>>>> org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer.initChannel(CarbonNettyServerInitializer.java:102)
>>>>> at
>>>>> org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer.initChannel(NettyServerInitializer.java:81)
>>>>> at
>>>>> org.wso2.carbon.transport.http.netty.listener.NettyServerInitializer.initChannel(NettyServerInitializer.java:36)
>>>>> at
>>>>> io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:68)
>>>>> at
>>>>> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:133)
>>>>> at
>>>>> io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:119)
>>>>> at
>>>>> io.netty.channel.DefaultChannelPipeline.fireChannelRegistered(DefaultChannelPipeline.java:733)
>>>>> at
>>>>> io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:450)
>>>>> at
>>>>> io.netty.channel.AbstractChannel$AbstractUnsafe.access$100(AbstractChannel.java:378)
>>>>> at
>>>>> io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:424)
>>>>> at
>>>>> io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:356)
>>>>> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
>>>>> at
>>>>> io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110)
>>>>> at
>>>>> io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>> [org.wso2.carbon.transport.http.netty.listener.NettyListener] :
>>>>> Stopping Netty transport netty-8081 on port 8081
>>>>>
>>>>>
>>>>> Regards,
>>>>> Nira
>>>>>
>>>>> On Mon, May 16, 2016 at 8:44 PM, Niranjan Karunanandham <
>>>>> niran...@wso2.com> wrote:
>>>>>
>>>>>> Hi Senduran,
>>

Re: [Dev] [C5][BPS] Startup errors with new kernel SNAPSHOT

2016-05-16 Thread Senduran Balasubramaniyam
Hi Niranjan / Hasitha

We have upgraded carbon transport's kernel version to 5.1.0-alpha2 and done
the fixes for the new start up resolver (based on [1] ). The changes are
pushed to the master branch (2.0.3-snapshot)
Please test it and let us know whether it resolves the issues. so that we
can proceed with carbon-transport release (2.1.0)

[1] https://github.com/Niranjan-K/carbon-transports/tree/fix-v2.0.1

Regards
Senduran

On Thu, May 12, 2016 at 2:42 PM, Niranjan Karunanandham 
wrote:

> Hi all,
>
> I have modified carbon-datasources [1] and msf4j [2] with carbon-kernel
> 5.1.0-alpha2 (in staging). I verified msf4j modifying by changing
> carbon-transports v2.0.1 [3] with startup resolver changes.
>
> [1] - https://github.com/wso2/carbon-datasources/pull/14
> [2] - https://github.com/wso2/msf4j/pull/169
> [3] - https://github.com/Niranjan-K/carbon-transports/tree/fix-v2.0.1
>
> Regards,
> Nira
>
> On Mon, May 9, 2016 at 2:55 PM, Nandika Jayawardana 
> wrote:
>
>> Can we have a quick resolution to this issue.
>>
>> Regards
>> Nandika
>>
>> On Mon, May 9, 2016 at 11:09 AM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Sameera,
>>>
>>> I have fixed this for carbon-datasources in PR [1].
>>>
>>> [1] - https://github.com/wso2/carbon-datasources/pull/14
>>>
>>> Regards,
>>> Nira
>>>
>>> On Mon, May 9, 2016 at 10:43 AM, Afkham Azeez  wrote:
>>>
 Transport folks, please note. I think a release is planned but we will
 need to hold it back until these changes are made.

 On Sun, May 8, 2016 at 12:39 PM, Niranjan Karunanandham <
 niran...@wso2.com> wrote:

> Hi Hasitha,
>
> There were some improvements done to the startup resolver as mentioned
> in [1]. I faced a similar issue[2] when testing the Kernel 5.1.0-alpha2
> (which is in staging) with carbon-datasources and I was able to fix it by
> following the doc and updating the datasource.core pom.xml [3] and
> DataSourceListenerComponent.java [4].
>
> [1] - https://medium.com/@sameera.jayasoma/497fe3287e67#.ravrmkjir
> [2] -
> [2016-05-08 11:31:16,371] ERROR {org.wso2.carbon.core} -
> FrameworkEvent ERROR - org.wso2.carbon.core
> org.wso2.carbon.kernel.internal.startupresolver.StartOrderResolverException:
> componentName value is missing in the services registered with the key
> org.wso2.carbon.kernel.startupresolver.RequiredCapabilityListener,
> implementation class name is
> org.wso2.carbon.datasource.core.internal.DataSourceListenerComponent
> at
> org.wso2.carbon.kernel.internal.startupresolver.OSGiServiceCapabilityTracker$CapabilityServiceTrackerCustomizer.addingService(OSGiServiceCapabilityTracker.java:142)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
> at
> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
> at
> org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:914)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.registerService(InstanceProcess.java:536)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:213)
> at
> org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
> at
> org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
> at
> org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
> at
> org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
> at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
> at
> 

Re: [Dev] Carbon-transport feature does not contain netty-transports.yml

2016-05-12 Thread Senduran Balasubramaniyam
Hi Niranjan,

Feature pom is updated with resource plugin,  now transports yml will be
available in the feature.

Regards
Senduran

On Wed, May 11, 2016 at 12:22 PM, Senduran Balasubramaniyam <
sendu...@wso2.com> wrote:

> Hi All,
>
> We'll update the feature pom with resource plugin
>
> Regards
> Senduran
>
> On Wed, May 11, 2016 at 11:48 AM, Afkham Azeez <az...@wso2.com> wrote:
>
>> Yes, it has to be added
>>
>> On Wed, May 11, 2016 at 9:02 AM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> When I tried installing carbon-transports feature to Carbon-Kernel 5.1.0
>>> and started the pack, I noticed that it requires a config file
>>> (netty-transports.yml). Shouldn't this file be added via the feature?
>>>
>>> Regards,
>>> Nira
>>>
>>> --
>>>
>>> *Niranjan Karunanandham*
>>> Senior Software Engineer - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>
>>
>>
>> --
>> *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*
>>
>
>
>
> --
> *Senduran *
> Software Engineer,
> WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
> Mobile: +94 77 952 6548
>



-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon-transport feature does not contain netty-transports.yml

2016-05-11 Thread Senduran Balasubramaniyam
Hi All,

We'll update the feature pom with resource plugin

Regards
Senduran

On Wed, May 11, 2016 at 11:48 AM, Afkham Azeez  wrote:

> Yes, it has to be added
>
> On Wed, May 11, 2016 at 9:02 AM, Niranjan Karunanandham  > wrote:
>
>> Hi all,
>>
>> When I tried installing carbon-transports feature to Carbon-Kernel 5.1.0
>> and started the pack, I noticed that it requires a config file
>> (netty-transports.yml). Shouldn't this file be added via the feature?
>>
>> Regards,
>> Nira
>>
>> --
>>
>> *Niranjan Karunanandham*
>> Senior Software Engineer - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting SynapseException when try to execute ESB after building it from source

2016-05-08 Thread Senduran Balasubramaniyam
Hi Prakhash,

Once you build the source your the zip can be found if
modules/distribution/target

Regards
Senduran

On Sun, May 8, 2016 at 6:43 PM, Prakhash Sivakumar 
wrote:

> Hi all,
> I'm trying to build ESB from the source, I'm getting the following error
> when I try to execute ./wso2server.sh command inside
> product-esb/modules/p2-profile/target/wso2carbon-core-4.4.5/bin/ after the
> build.
>
> org.apache.synapse.SynapseException: The synapse.xml location ././
> ./repository/deployment/server/synapse-configs
> /default doesn't exist
> at
> org.apache.synapse.SynapseControllerFactory.handleFatal(SynapseControllerFactory.java:121)
> at
> org.apache.synapse.SynapseControllerFactory.validatePath(SynapseControllerFactory.java:113)
> at
> org.apache.synapse.SynapseControllerFactory.validate(SynapseControllerFactory.java:88)
> at
> org.apache.synapse.SynapseControllerFactory.createSynapseController(SynapseControllerFactory.java:44)
> at org.apache.synapse.ServerManager.init(ServerManager.java:103)
> at
> org.wso2.carbon.mediation.initializer.ServiceBusInitializer.initESB(ServiceBusInitializer.java:451)
> at
> org.wso2.carbon.mediation.initializer.ServiceBusInitializer.activate(ServiceBusInitializer.java:196)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
>
> I checked for the the required synapse.xml file, there are no any files
> inside the location
> (/modules/p2-profile/target/wso2carbon-core-4.4.5/repository/deployment/server/synapse-configs/default)
>
> I tried to change the location axis2.xml file where I found synapse
>
> 
> ./repository/deployment/server/synapse-configs
> 
>
> still it is not working.Please guide me to do changes in these
> configuration files to execute it correctly
>
> Thanks
>
>
> --
> Prakhash Sivakumar
> Software Engineer
> WSO2 Inc: http://wso2.com
> Mobile : +94771510080
> Blog : https://medium.com/@PrakhashS
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery] File Upload with Jaggery

2016-04-05 Thread Senduran Balasubramaniyam
Hi Madhawa,

seems like you are creating the payload variable again, but without a
correct json format.
Also revisit your if condition

Regards
Senduran

On Tue, Apr 5, 2016 at 11:44 AM, Madhawa Perera  wrote:

> Hi,
>
> I'm trying to do a simple file upload using Jaggery post() method.
>
> The code that I'm trying is as below,
>
> *HTML Form*
>
> 
> 
>   
> 
> Upload .csr file
>   
>  
> 
>
> *Jaggery Code Snippet*
>
> if(request.getMethod() == "POST"){
> var compName = request.getParameter("CompanyName");
> var csrFile = request.getFile("file");
> if(!compName || !csrFile){
> response.status = 400;
> print("alert('Company Name or CSR file can not be
> empty!');");
> } else {
> var payload = {
> "compName": compName,
> "file": csrFile
> };
> var payload = 'compName:'+compName+'file:'+csrFile;
> var xhr = new XMLHttpRequest();
> var tokenEndpoint = 'https://172.17.0.1:8243/csrfile/1.0.0/file/upload
> ';
> xhr.open("POST", tokenEndpoint);
> var authSet = "Bearer "+token;
> xhr.setRequestHeader("Authorization", authSet);
> xhr.setRequestHeader("Content-Type", "multipart/form-data");
> xhr.send(payload);
> }
> }
> But, "request.getFile(formFeildName)" returns 'null', even though the form
> is submitted with a file.
>
> Any idea on what might help?
>
> Thank you
> Best Regards,
> Madhawa
>
> --
> Madhawa Perera
> *Software Engineer*
> Mobile : +94 (0) 773655496
> <%2B94%20%280%29%20773%20451194>
> madha...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB]Blocking option of Call mediator

2016-04-01 Thread Senduran Balasubramaniyam
Hi Dilshani,

Both call mediator and call out mediator will wait for the response. But
the difference is, in call mediator the thread which send the request will
return and a new thread will process the response, where as in callout
mediator (or call mediator will blocking enabled) same thread will process
the response.

Regards
Senduran

On Fri, Apr 1, 2016 at 11:53 AM, Dilshani Subasinghe 
wrote:

> Hi Kathees,
>
> Thank you for the response.
>
> If it is, When blocking disabled call mediator should work as just like
> send mediator. Right ? (Correct me If I am wrong) Because call mediator
> will send message to endpoint and do not wait for response.
>
> But it doesn't work in that manner. Any clarification ?
>
> Regards,
> Dilshani
>
>
> On Fri, Apr 1, 2016 at 11:47 AM, Kathees Rajendram 
> wrote:
>
>> Hi Dilshani,
>>
>> Call mediator blocking functionality [1] is similar to the Callout
>> mediator.
>>
>> When invoked in a asynchronous manner, the Call mediator performs a
>> blocking external service invocation during mediation. So when you send the
>> call to backend with blocking functionality (blocking=true), It will wait
>> for the response. When you send the call with non blocking, It will work in
>> a synchronous manner without waiting for the response.
>>
>> [1] - https://docs.wso2.com/display/ESB490/Call+Mediator
>>
>>
>> Thanks,
>> Kathees
>>
>> On Fri, Apr 1, 2016 at 11:20 AM, Dilshani Subasinghe 
>> wrote:
>>
>>> Hi ESB team,
>>>
>>> In call mediator, there is a separate option called "Blocking". AFAIK
>>> call mediator having default functionality of blocking mediation.
>>>
>>> What will be the different behavior can have through Enabling Blocking
>>> rather than in-built blocking feature ? Even though Blocking disabled, it
>>> may not act as send mediator.
>>>
>>> Can someone help to figure out this ?
>>>
>>> Thank you.
>>>
>>> --
>>> Best Regards,
>>>
>>> Dilshani Subasinghe
>>> Software Engineer - QA
>>> WSO2, Inc.;http://wso2.com/
>>> 
>>> lean.enterprise.middleware
>>>
>>> Mobile: +94773375185
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Kathees
>> Software Engineer,
>> email: kath...@wso2.com
>> mobile: +94772596173
>>
>
>
>
> --
> Best Regards,
>
> Dilshani Subasinghe
> Software Engineer - QA
> WSO2, Inc.;http://wso2.com/
> 
> lean.enterprise.middleware
>
> Mobile: +94773375185
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Proposal 8: [ESB/GW] HTTP Load balancer on top of WSO2 Gateway - Reg

2016-03-25 Thread Senduran Balasubramaniyam
Hi Venkat,

As a first step, you can extend the carbon message process with your
simpleLB. Similar to your MockEngine.
I'll share you a sample soon to send a request to the server.

Regards
Senduran

On Wed, Mar 23, 2016 at 5:41 PM, Venkat Raman  wrote:

> Hi Senduran,
>
> Good Evening.  I'm aspiring to participate in GSoC 2016 with HTTP LB on
> top of gw as my project. I see u as a major contributor for product gw.
> So, I am seeking your help.
>
> From the previous conversation in this mail with Isuru and Kasun you can
> find that we will not be using Apache camel engine.  So for reading LB
> configurations, I have to use my own custom XSDs.  Before starting with
> XSD, I'm planning to do simple routing with my own custom routes that I
> define using XML bean.  Could you kindly guide me to write my own simple
> producer and consumer?  So far with the help of this post
> ,
> I've created my own engine and display all config from my Sample XML
> 
> bean.
>
> Once I am able to do this, I will start with creating custom XSD and
> proceed with my proposal
> 
> .
>
> Will be looking forward for your help and guidance.
>
>
>
>
> *Thanks,*
> *Venkat.*
>
> On Tue, Mar 22, 2016 at 10:33 PM, Venkat Raman 
> wrote:
>
>> Hi Kasun,
>>
>> I've gone through gateway code.  Route identification, Producer and
>> Consumer are using Apache Camel with Carbon.  As I've mentioned earlier,
>> I'm trying to create simple mediation from my own XML bean.  So, my
>> endpoint from custom XML has to be registered as a route.
>>
>> The blog post for creating own gw-engine was very helpful and I learnt
>> and understood a lot by implementing it.  Could you kindly share any ref
>> document or blog post for writing my own producers and consumers.?
>>
>> Will be looking forward for your guidance.
>>
>>
>>
>> *Thanks,*
>> *Venkat.*
>>
>> On Mon, Mar 21, 2016 at 1:49 PM, Venkat Raman 
>> wrote:
>>
>>> Hi Isuru & Kasun,
>>>
>>> The above code gives a very basic definition based only on
>>> spring-bean-xsd.  It doesn't give much flexibility.  XSDs are to be used
>>> for defining our custom XML for this LB  I'll give you an update once I
>>> come up with basic model.
>>>
>>>
>>>
>>>
>>>
>>> *Thanks,*
>>> *Venkat.*
>>>
>>> On Mon, Mar 21, 2016 at 12:17 PM, Venkat Raman 
>>> wrote:
>>>

 I missed attaching project URL in previous mail. Kindly find it here.

 LB Config Design Sample 




 *Thanks,*
 *Venkat.*

 On Mon, Mar 21, 2016 at 12:12 PM, Venkat Raman 
 wrote:

> Hi Isuru & Kasun,
>
> Good morning.  Eagerly waiting to hear your feedback on my proposal
> draft.
>
> I've gone through gateway codebase and I understood that it uses
> "camel-spring" bean to read XML Config.
>
> Since, we are not going to use camel for load balancer, I have to
> define my custom XML Config.  I need your guidance here.  I've created few
> class outlines to interpret custom LB XML config.  I've put it in github
> for your convenience.
>
> Kindly have a look at it and guide me through this.
>
>
>
>
> *Thanks,*
> *Venkat.*
>
> On Fri, Mar 18, 2016 at 5:48 PM, Venkat Raman 
> wrote:
>
>> Hi Isuru & Kasun,
>>
>> Good Evening.  I have shared my draft through GSoC portal.  I would
>> be glad to hear your review and comments to improvise the proposal.  I'm
>> sharing the link
>> 
>> here also.
>>
>> Will be looking forward for your suggestions.
>>
>>
>>
>>
>> *Thanks,*
>> *Venkat.*
>>
>> On Thu, Mar 17, 2016 at 7:03 PM, Venkat Raman 
>> wrote:
>>
>>> Hi Isuru,
>>>
>>> Sorry for the inconvenience.  I found the correct maven repository.
>>>
>>> With the changes in Pom.xml   Build
>>> was successful.
>>>
>>>
>>>
>>>
>>> *Thanks,*
>>> *Venkat.*
>>>
>>> On Thu, Mar 17, 2016 at 11:35 AM, Venkat Raman >> > wrote:
>>>
 Hi Isuru,

 Thank you.

 I went through the code and I'm having good overview about it.  I
 also tried connecting to gateway through TELNET and tried few OSGi
 commands.  It worked fine.

 I tried implementing the same MockEngine Example
 

[Dev] WSO2 Gateway 1.0.0 - Beta2 Released !

2016-01-26 Thread Senduran Balasubramaniyam
*WSO2 Gateway 1.0.0 - Beta2 Released !*


We are pleased to announce the beta2 release of WSO2 Gateway 1.0.0. It is
now available to download from here
.
The source and tag location for this release are available here
.


WSO2 Gateway (WSO2 GW) is an ultra high performance, lightweight and
configuration-driven message gateway based on standard gateway pattern. It
aims to encapsulate messaging between source and target systems that are
built with disparate technologies, protocols and standards. While it
includes messaging between two systems, message mediation can be controlled
by configuring WSO2 GW’s mediation logic.


The beta2 release of WSO2 Gateway 1.0.0 includes the following key
features. For further details please see the documentation
.


*Key Features*

   -

   Ultra high performance and low latency  HTTP/S messaging.
   -

   Supports thousands of concurrent connections/clients.
   -

   Header-based routing using Apache Camel
    as the message mediation engine.
   -

   Defines REST services/APIs using Camel REST DSL
   
   -

   Lightweight and stateless service orchestration.
   -

   Load balancing and failover messaging.
   -

   Error handling support.
   -

   Hot deploying routes.


How To Contribute

You can find more instructions on how to contribute on our documentation
 site.

If you have any suggestions or are interested in WSO2 Gateway discussions,
you can join the dev@wso2.org or architect...@wso2.org mailing lists.
Reporting Issues

We encourage you to report issues, documentation errors regarding WSO2
Gateway 1.0.0 beta2 through the public issue tracking system
.


Thanks,

WSO2 Gateway Team

-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Related to Configuring WSO2 ESB JMS transport

2016-01-20 Thread Senduran Balasubramaniyam
axis2.xml is always enabled.
Make sure you have restarted the server once you un commented the relevant
axis2 xml entry

Regards
Senduran

On Wed, Jan 20, 2016 at 3:16 PM, Indrajith Udayakumara 
wrote:

> Hi,
> I am referring to  Configure with IBM WebSphere MQ
>  in
> the ESB documentation.
> I already added transport receiver and transport reciever to 
> */repository/conf/axis2/axis2.xml
> file.*
>
> But, Still I cannot add the JMSListener  proxy service (EXB 4.9 ) it gives
> the following exception.
>
> Unable to configure the service MyJMSProxy for the JMS transport: Service
> doesn't have configuration information for transport jms. This service is
> being marked as faulty and will not be available over the JMS transport.
>
> How  to enable the axis.xml file ?
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] 'carbon.sh start' gives an error if it has been started earlier

2016-01-08 Thread Senduran Balasubramaniyam
Hi Aruna,

Jira[1] created to track the issue

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

Regards
Senduran

On Fri, Jan 8, 2016 at 5:27 PM, Aruna Karunarathna <ar...@wso2.com> wrote:

> Hi Senduran,
>
> Thanks for reporting this issue. We will fix this in the next release.
> Can you report a jira for this?
>
> Regards,
> Aruna
>
> On Fri, Jan 8, 2016 at 12:34 PM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> Hi,
>>
>> $subject in Linux. This issue was fixed in the kernel 4.x [1]
>> It will be better if we could incorporate the fix in C5
>>
>> [1] https://wso2.org/jira/browse/CARBON-14477
>>
>> Regards
>> Senduran
>>
>> --
>> *Senduran *
>> Software Engineer,
>> WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
>> Mobile: +94 77 952 6548
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] 'carbon.sh start' gives an error if it has been started earlier

2016-01-07 Thread Senduran Balasubramaniyam
Hi,

$subject in Linux. This issue was fixed in the kernel 4.x [1]
It will be better if we could incorporate the fix in C5

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

Regards
Senduran

-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Gateway 1.0.0 - Beta Released !

2015-12-23 Thread Senduran Balasubramaniyam
*WSO2 Gateway 1.0.0 - Beta Released !*


We are pleased to announce the beta release of WSO2 Gateway 1.0.0. It is
now available to download from here
.
The source and tag location for this release are available here
.


WSO2 Gateway (WSO2 GW) is an ultra high performance, lightweight and
configuration-driven message gateway based on standard gateway pattern. It
aims to encapsulate messaging between source and target systems that are
built with disparate technologies, protocols and standards. While it
includes messaging between two systems, message mediation can be controlled
by configuring WSO2 GW’s mediation logic.


The beta release of WSO2 Gateway 1.0.0 includes the following key features.
For further details please see the documentation
.


Key Features

   -

   Ultra high performance and low latency  HTTP/S messaging.
   -

   Supports thousands of concurrent connections/clients.
   -

   Header-based routing using Apache Camel
    as the message mediation engine.
   -

   Defines REST services/APIs using Camel REST DSL
   
   -

   Lightweight and stateless service orchestration.
   -

   Load balancing and failover messaging.
   -

   Error handling support.
   -

   Hot deploying routes.


Known Issues

   -

   WSO2 Gateway 1.0.0 Beta - Known Issues
   

How To Contribute

You can find more instructions on how to contribute on our documentation
 site.

If you have any suggestions or are interested in WSO2 Gateway discussions,
you can join the dev@wso2.org or architect...@wso2.org mailing lists.
Reporting Issues

We encourage you to report issues, documentation errors regarding WSO2
Gateway 1.0.0 beta through the public issue tracking system
.


Thanks,

WSO2 Gateway Team

-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2015-12-19 Thread Senduran Balasubramaniyam
Hi all,

I have tested product-gw's basic functionality with this release candidate.
No issues found.

[x] Stable - go ahead and release

Regards
Senduran

On Sun, Dec 20, 2015 at 10:01 AM, Aruna Karunarathna  wrote:

> I've tested, the following features
>
> 1. Logging framework
> 2. Transport Management
> 3. Jar to bundle conversion
> 4. Dropins bundle deployment
>
> [x] Stable - go ahead and release
>
> Regards,
> Aruna
>
> On Sat, Dec 19, 2015 at 11:50 PM, Manuri Amaya Perera 
> wrote:
>
>> Hi,
>>
>> I created projects using the available archetypes in staging repository
>> and built and installed via dropins and osgi console and tested the
>> expected functionality with the kernel 5.0.0 RC2 pack.
>>
>> [x] Stable - go ahead and release.
>>
>> Thank you.
>>
>> On Fri, Dec 18, 2015 at 5:15 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Hi Devs,
>>>
>>> This is the 2nd Release Candidate of WSO2 Carbon Kernel 5.0.0.
>>>
>>> This release fixes the following issues:
>>> https://wso2.org/jira/issues/?filter=12581
>>>
>>> Please download and test your products with kernel 5.0.0 RC2 and vote.
>>>
>>> *​Source and binary distribution files:*
>>>
>>> https://github.com/wso2/carbon-kernel/releases/download/v5.0.0-RC2/wso2carbon-kernel-5.0.0-rc2.zip
>>>
>>> *Maven staging repository:*
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-210/
>>>
>>> *The tag to be voted upon:*
>>> https://github.com/wso2/carbon-kernel/releases/tag/v5.0.0-RC2
>>>
>>>
>>> [ ] Broken - do not release (explain why)
>>> [ ] Stable - go ahead and release
>>>
>>> Thank you,
>>> Carbon Team
>>>
>>> --
>>> *Kishanthan Thangarajah*
>>> Associate Technical Lead,
>>> Platform Technologies Team,
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - +94773426635
>>> Blog - *http://kishanthan.wordpress.com
>>> *
>>> Twitter - *http://twitter.com/kishanthan
>>> *
>>>
>>
>>
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> *
>>
>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clarification on OSGi bundle activation

2015-11-27 Thread Senduran Balasubramaniyam
Hi Aruna,

We are using maven-bundle-plugin with _dsannotations
yes we also thought that this isn't the correct behavior. What could be the
reason for this ?
Could you please suggest us, how to debug the issue

Thanks
Senduran

On Fri, Nov 27, 2015 at 6:47 PM, Aruna Karunarathna <ar...@wso2.com> wrote:

> Hi Senduran,
>
> Are you using maven-scr-plugin?. Or only the maven-bundle-plugin in your
> pom.xml?
>
> AFAIK this is not the expected behavior, since you are using
> AT_LEAST_ONE("1..n");  which means wait for at least one service.
>
> Regards,
> Aruna
>
> On Fri, Nov 27, 2015 at 5:39 PM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> Hi All,
>>
>> We have the following service reference
>>
>> @Reference(
>> name = "mediation-engine",
>> service = CarbonMessageProcessor.class,
>> cardinality = ReferenceCardinality.AT_LEAST_ONE,
>> policy = ReferencePolicy.DYNAMIC,
>> unbind = "removeMediationEngine"
>> )
>> protected void addMediationEngine(CarbonMessageProcessor 
>> carbonMessageProcessor) {
>> ContextHolder.getInstance().addEngine(carbonMessageProcessor);
>> }
>>
>>
>> but the bundle which has this service reference gets activated regardless
>> of the referencing service (CarbonMessageProcessor service)
>> Is this the expected behavior.
>>
>> Regards
>> Senduran
>>
>> --
>> *Senduran *
>> Software Engineer,
>> WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
>> Mobile: +94 77 952 6548
>>
>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Clarification on OSGi bundle activation

2015-11-27 Thread Senduran Balasubramaniyam
Hi All,

We have the following service reference

@Reference(
name = "mediation-engine",
service = CarbonMessageProcessor.class,
cardinality = ReferenceCardinality.AT_LEAST_ONE,
policy = ReferencePolicy.DYNAMIC,
unbind = "removeMediationEngine"
)
protected void addMediationEngine(CarbonMessageProcessor
carbonMessageProcessor) {
ContextHolder.getInstance().addEngine(carbonMessageProcessor);
}


but the bundle which has this service reference gets activated regardless
of the referencing service (CarbonMessageProcessor service)
Is this the expected behavior.

Regards
Senduran

-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Sending custom responses in automation test

2015-10-08 Thread Senduran Balasubramaniyam
Hi Nuwan,

Thank you,
I verified the scenario by creating a mock response in mocky.io, So I was
under impression of creating the service in remote server. didn't really
think of a axis2 service or another mock proxy.

Thanks again,
Senduran

On Wed, Oct 7, 2015 at 11:11 AM, Nuwan Wimalasekara <nuw...@wso2.com> wrote:

> Hi Senduran,
>
> You can simply create another proxy service or API to send the empty body
> response with 202 status code. if not you can create a axis2 service which
> return the response as you expected and deploy it on ESB or axis2 server.
>
> Thanks,
> Nuwanw
>
> On Wed, Oct 7, 2015 at 10:20 AM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> Hi Krishantha,
>>
>> Following are the steps I followed to verify the scenario.
>>
>>- Created a mock service to respond with status code 202, empty body
>>with content-type text/html
>>- Invoked the service from ESB and added a log full after calling the
>>endpoint
>>
>> since there is a content type available ESB will try to build the message
>> but since the message body is empty it will throw an exception
>>
>> Thanks
>> Senduran
>>
>> On Wed, Oct 7, 2015 at 10:11 AM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Hi Senduran,
>>>
>>> Can you list the steps that you have followed to verify the scenario
>>> manually.
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>> On Tue, Oct 6, 2015 at 10:05 AM, Senduran Balasubramaniyam <
>>> sendu...@wso2.com> wrote:
>>>
>>>> Hi Krishantha,
>>>>
>>>> I need to write a test for ESB where my proxy service should receive
>>>> some custom responses.
>>>> For example
>>>> Empty body with status code 202 and content type text/html.
>>>> Could you please guide me to do this
>>>>
>>>> Thank you
>>>> Senduran
>>>>
>>>> --
>>>> *Senduran *
>>>> Software Engineer,
>>>> WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
>>>> Mobile: +94 77 952 6548
>>>>
>>>
>>>
>>>
>>> --
>>> Krishantha Samaraweera
>>> Senior Technical Lead - Test Automation
>>> Mobile: +94 77 7759918
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middleware.
>>>
>>
>>
>>
>> --
>> *Senduran *
>> Software Engineer,
>> WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
>> Mobile: +94 77 952 6548
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>


-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Sending custom responses in automation test

2015-10-06 Thread Senduran Balasubramaniyam
Hi Krishantha,

Following are the steps I followed to verify the scenario.

   - Created a mock service to respond with status code 202, empty body
   with content-type text/html
   - Invoked the service from ESB and added a log full after calling the
   endpoint

since there is a content type available ESB will try to build the message
but since the message body is empty it will throw an exception

Thanks
Senduran

On Wed, Oct 7, 2015 at 10:11 AM, Krishantha Samaraweera <krishan...@wso2.com
> wrote:

> Hi Senduran,
>
> Can you list the steps that you have followed to verify the scenario
> manually.
>
> Thanks,
> Krishantha.
>
> On Tue, Oct 6, 2015 at 10:05 AM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> Hi Krishantha,
>>
>> I need to write a test for ESB where my proxy service should receive some
>> custom responses.
>> For example
>> Empty body with status code 202 and content type text/html.
>> Could you please guide me to do this
>>
>> Thank you
>> Senduran
>>
>> --
>> *Senduran *
>> Software Engineer,
>> WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
>> Mobile: +94 77 952 6548
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middleware.
>



-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Sending custom responses in automation test

2015-10-05 Thread Senduran Balasubramaniyam
Hi Krishantha,

I need to write a test for ESB where my proxy service should receive some
custom responses.
For example
Empty body with status code 202 and content type text/html.
Could you please guide me to do this

Thank you
Senduran

-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 ESB 4.9.0 RC6

2015-09-10 Thread Senduran Balasubramaniyam
Hi All,

I tested the followings and found no issues

   - Proxy Statistics
   - Endpoint Statistics
   - MBean attributes, operations for StatisticsAdmin and Endpoint

[X] Stable - go ahead and release

Thanks
Senduran


On Thu, Sep 10, 2015 at 2:56 PM, Prabath Ariyarathna 
wrote:

> Hi All.
>
> I tested main use cases of the following scenarios and found no issues.
>
> 1. Main security scenarios
> 2. HTTP/HTTPS Inbound endpoints basic scenarios.
> 3. MSMP/ MSFMP standalone and cluster mode.
> 3.1 JDBC + JMS message stores with MSMP - Cluster mode (task count 1
> and 2)
> 3.2 JDBC + JMS message stores with MSMP & MSFMP - Cluster mode (task
> count 1 and 2)
> 3.3 JMS + InMemory message stores with MSMP + MSFMP - Standalone mode.
>
> [X] Stable - go ahead and release
>
> Thanks.
>
> On Thu, Sep 10, 2015 at 2:32 PM, Kevin Ratnasekera  wrote:
>
>> Hi all,
>>
>> Following scenarios were tested in this pack,
>>
>> MQTT inbound
>> Super tenant Mode
>>   1. JSON/XML message consuming cases
>>   2. MQTT broker connection lost/reconnection cases ( both
>> task/runner modes )
>> Tenant mode
>>   1. JSON/XML message consuming cases
>>   2. MQTT broker connection lost/reconnection cases ( both
>> task/runner modes )
>> Clustered mode
>>   1. Inbound coordination enabled disabled cases
>>   2. JSON/XML message consuming cases
>>   3. MQTT broker connection lost/reconnection cases ( both
>> task/runner modes )
>>
>> [X] Stable - go ahead and release
>> Regards
>> Kevin
>>
>> On Thu, Sep 10, 2015 at 1:53 PM, Buddhima Wijeweera 
>> wrote:
>>
>>> Hi All,
>>>
>>> Following scenarios tested:
>>>
>>>
>>>- Persisting with JDBC Message store
>>>- WS-RM Inbound feature
>>>
>>>
>>> [+] Stable - go ahead and release
>>>
>>> Thanks.
>>>
>>>
>>> On Thu, Sep 10, 2015 at 1:27 PM, Jagath Sisirakumara Ariyarathne <
>>> jaga...@wso2.com> wrote:
>>>
 Hi All,

 Following scenarios were tested in RC6 pack.

- Dynamic SSL profiles
- Apply custom profiles for senders/listeners
   - Updating key store/trust store at runtime
   - Profile re-loading from time interval and JMX
   - SSL and Mutual SSL connections with back-end
   - Enable/disable Mutual SSL with clients at runtime
- Basic Performance Test
- Https Inbound for both SSL and Mutual SSL

 [+] Stable - go ahead and release

 Thanks.

 On Thu, Sep 10, 2015 at 12:50 PM, Nadeeshaan Gunasinghe <
 nadeesh...@wso2.com> wrote:

> Hi all,
> I tested the following areas
>
> JMS Transport and inbound use cases in standalone and in a cluster
> - JMS consumer side transaction
> - JMS Dual Channel transaction
> - JMS Quad Channel transaction
>
> VFS Transport and inbound use case in standalone and in a cluster
>- File system to file system transactions
>- File system to ftp, ftp to file system transactions
>
> [+] Stable - go ahead and release
>
> Regards
>
> *Nadeeshaan Gunasinghe*
> Software Engineer, WSO2 Inc. http://wso2.com
> +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe
> <#14fb6949ac9771b5_14fb67e5088e0e56_14fb65af995eeae0_14fb6428edd2065d_14fb620b6ace39a8_>
> 
> 
>   
> Get a signature like this: Click here!
> 
>
> On Thu, Sep 10, 2015 at 1:16 AM, Chanaka Fernando 
> wrote:
>
>> Hi Devs,
>>
>> WSO2 ESB 4.9.0 RC6 Release Vote
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/issues/?filter=12393
>>
>> Please download ESB 4.9.0 RC6 and test the functionality and vote.
>> Vote will be open for 72 hours or as needed.
>>
>> Source & binary distribution files:
>>
>> http://maven.wso2.org/nexus/content/repositories/orgwso2esb-068/org/wso2/esb/wso2esb/4.9.0/
>>
>> Maven staging repository:
>> http://maven.wso2.org/nexus/content/repositories/orgwso2esb-068/
>>
>> The tag to be voted upon :
>> https://github.com/wso2/product-esb/tree/esb-parent-4.9.0-RC6
>>
>>
>> [-] Broken - do not release (explain why)
>> [+] Stable - go ahead and release
>>
>> Thanks and Regards,
>> ~ WSO2 ESB Team ~
>>
>> --
>> --
>> Chanaka Fernando
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 

Re: [Dev] [VOTE] Release WSO2 ESB 4.9.0 RC4

2015-09-08 Thread Senduran Balasubramaniyam
Hi All,

I have tested the following in both standalone and cluster mode with
tenants, and found no issues

   - Inmemeory MessageStore (in standalone mode)
   - JMS MessageStore
   - RabbitMQ MessageStore
   - JDBC MessageStore
   - Scheduled Message Forwarding Processor
   - Scheduled Failover Message Forwarding Processor
   - Message Sampling Processor

[+] Stable - go ahead and release

Thanks
Senduran


On Tue, Sep 8, 2015 at 1:08 AM, Jagath Sisirakumara Ariyarathne <
jaga...@wso2.com> wrote:

> Hi Devs,
>
> WSO2 ESB 4.9.0 RC4 Release Vote
>
> This release fixes the following issues:
> *https://wso2.org/jira/issues/?filter=12393
> *
>
> Please download ESB 4.9.0 RC4 and test the functionality and vote. Vote will
> be open for 72 hours or as needed.
>
> *Source & binary distribution files:*
> *http://maven.wso2.org/nexus/content/repositories/orgwso2esb-058/org/wso2/esb/wso2esb/4.9.0-RC4/
> *
>
> *Maven staging repository:*
> *http://maven.wso2.org/nexus/content/repositories/orgwso2esb-058/
> *
>
> *The tag to be voted upon :*
> *https://github.com/wso2/product-esb/tree/esb-parent-4.9.0-RC4
> *
>
>
> [+] Stable - go ahead and release
> [-] Broken - do not release (explain why)
>
>
> Thanks and Regards,
> ~ WSO2 ESB Team ~
>
> --
> Jagath Ariyarathne
> Technical Lead
> WSO2 Inc.  http://wso2.com/
> Email: jaga...@wso2.com
> Mob  : +94 77 386 7048
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Append escape character in json payload -ESB RC1 pack

2015-08-25 Thread Senduran Balasubramaniyam
Hi Kesavan,

I guess that you are passing the json as a string to the payload mediator
so that the payload mediator escapes the double quotes, considering them as
special characters.
Could you please share your proxy service so that I guess, I can recommend
you the correct way.

Regards
Senduran

On Tue, Aug 25, 2015 at 5:43 AM, Kesavan Yogarajah kesav...@wso2.com
wrote:

 Yes Malaka.

 Kesavan Yogarajah
 Associate Software Engineer
 Mobile :+94 (0) 779 758021
 kesav...@wso2.com
 WSO2, Inc.
 lean . enterprise . middleware

 On Tue, Aug 25, 2015 at 3:42 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Senduran,

 Can this be due to [1]?

 @Keerthika/Kesavan - I guess we are using payloadfactory in connector
 templates in both cases?

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

 On Tue, Aug 25, 2015 at 3:36 PM, Keerthika Mahendralingam 
 keerth...@wso2.com wrote:

 Escape characters appended in payload causing the error in other
 connectors also when using the ESB-RC-1 pack.
 Please find the log for the Marketo connector:

 [2015-08-25 15:29:03,433] DEBUG - wire  POST
 /services/createAndUpdateLeads HTTP/1.1[\r][\n]

 [2015-08-25 15:29:03,434] DEBUG - wire  Host: esb.wso2.com:8280
 [\r][\n]

 [2015-08-25 15:29:03,434] DEBUG - wire  Connection:
 keep-alive[\r][\n]

 [2015-08-25 15:29:03,434] DEBUG - wire  Content-Length: 441[\r][\n]

 [2015-08-25 15:29:03,435] DEBUG - wire  Cache-Control:
 no-cache[\r][\n]

 [2015-08-25 15:29:03,435] DEBUG - wire  Origin:
 chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]

 [2015-08-25 15:29:03,435] DEBUG - wire  User-Agent: Mozilla/5.0
 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko)
 Chrome/44.0.2403.155 Safari/537.36[\r][\n]

 [2015-08-25 15:29:03,435] DEBUG - wire  Content-Type:
 application/json[\r][\n]

 [2015-08-25 15:29:03,435] DEBUG - wire  Accept: */*[\r][\n]

 [2015-08-25 15:29:03,435] DEBUG - wire  Accept-Encoding: gzip,
 deflate[\r][\n]

 [2015-08-25 15:29:03,435] DEBUG - wire  Accept-Language:
 en-US,en;q=0.8[\r][\n]

 [2015-08-25 15:29:03,435] DEBUG - wire  Cookie:
 __ar_v4=LOY73IEDGREW5ABOLPMGGI%3A20141012%3A10%7C3HZ3H74ZSZHCLIQQVDL7FW%3A20141012%3A10%7CCZDVOXTUDJEN7DJK45GUJ6%3A20141012%3A10;
 __utmx=62040490.Ai96-XwTT32uGt454LGacQ$80443214-37:;
 __utmxx=62040490.Ai96-XwTT32uGt454LGacQ$80443214-37:1432283552:15552000;
 __utma=62040490.99968054.1406221425.1425200186.1433095074.3;
 __utmz=62040490.1433095074.3.3.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided);
 CAKEPHP=0ueo79km0ue216pp32326bibh0;
 BIGipServersjgcp-restapi_https=4262002698.47873.;
 SESS73db9c87576ccc08af28bf2520013ef7=63232bff43562fb56e9d80ca59e15bef;
 csrftoken=6a5d43410cf85c55adc8c5d99bfa62b5;
 __auc=8de3c8c814769541720b3574cf2; _ga=GA1.2.99968054.1406221425[\r][\n]

 [2015-08-25 15:29:03,436] DEBUG - wire  [\r][\n]

 [2015-08-25 15:29:03,436] DEBUG - wire  {[\n]

 [2015-08-25 15:29:03,436] DEBUG - wire  marketoInstanceURL:
 https://667-LPB-079.mktorest.com,[\n];

 [2015-08-25 15:29:03,436] DEBUG - wire  
 clientSecret:Vgo6rzIiJyPOzTcefP3Zr56tK2hv8fJd,[\n]

 [2015-08-25 15:29:03,436] DEBUG - wire  
 clientId:01f22a42-0f05-4e7f-b675-550b6de66f91,[\n]

 [2015-08-25 15:29:03,436] DEBUG - wire [0x9]input:[[\n]

 [2015-08-25 15:29:03,436] DEBUG - wire [0x9]{[\n]

 [2015-08-25 15:29:03,437] DEBUG - wire  email:
 te...@gmail.com,[\n]

 [2015-08-25 15:29:03,437] DEBUG - wire  
 firstName:test1,[\n]

 [2015-08-25 15:29:03,437] DEBUG - wire  
 lastName:test1[\n]

 [2015-08-25 15:29:03,437] DEBUG - wire  },[\n]

 [2015-08-25 15:29:03,437] DEBUG - wire  {[\n]

 [2015-08-25 15:29:03,437] DEBUG - wire  email:
 te...@gmail.com,[\n]

 [2015-08-25 15:29:03,437] DEBUG - wire  
 firstName:test2,[\n]

 [2015-08-25 15:29:03,437] DEBUG - wire  
 lastName:test1[\n]

 [2015-08-25 15:29:03,437] DEBUG - wire  }[\n]

 [2015-08-25 15:29:03,437] DEBUG - wire  ][\n]

 [2015-08-25 15:29:03,438] DEBUG - wire  }

 [2015-08-25 15:29:03,450] ERROR - SynapseJsonPath #stringValueOf. Error
 evaluating JSON Path $.action. Returning empty result. Error invalid
 path

 [2015-08-25 15:29:03,452] ERROR - SynapseJsonPath #stringValueOf. Error
 evaluating JSON Path $.lookupField. Returning empty result. Error
 invalid path

 [2015-08-25 15:29:03,452] ERROR - SynapseJsonPath #stringValueOf. Error
 evaluating JSON Path $.asyncProcessing. Returning empty result. Error
 invalid path

 [2015-08-25 15:29:03,452] ERROR - SynapseJsonPath #stringValueOf. Error
 evaluating JSON Path $.partitionName. Returning empty result. Error
 invalid path

 [2015-08-25 15:29:06,066] DEBUG - wire  GET
 /identity/oauth/token?grant_type=client_credentialsclient_id=01f22a42-0f05-4e7f-b675-550b6de66f91client_secret=Vgo6rzIiJyPOzTcefP3Zr56tK2hv8fJd
 HTTP/1.1[\r][\n]

 [2015-08-25 15:29:06,066] DEBUG - wire  Accept-Language:
 en-US,en;q=0.8[\r][\n]

 [2015-08-25 15:29:06,066] DEBUG - wire  Cookie:
 

[Dev] ESBJAVA-2497: HTTP Endpoint GET with URL POST FIX not behave as expected or need better documentation

2015-08-01 Thread Senduran Balasubramaniyam
Hi Dushan,

I reproduced the issue[1]. Since I am trying with ESB 490 beta pre pack. I
had to modify the uri-template as
*legacy-encoding:*http://
{uri.var.host}:{uri.var.port}/{uri.var.context1}/services/{uri.var.context2}{uri.var.postfix}

The uri.var.postfix is replace with api's uri-template, in this sample the
uri-template starts with slash, so the uri.var.postfix also starts with a
slash. so that the slash between ur.var.context2 and uri.var.postfix is
redundant in this case.
Is this behavior incorrect  or am I missing something ? Also I couldn't
find any documentation specific to this.

Could you please suggest me a way to proceed this issue further.

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

Thanks
Senduran

-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue while creating custom Inbound

2015-07-17 Thread Senduran Balasubramaniyam
Hi Kathees,

I think you are not exporting the twitter4j related jars
Can you please try the following

Export-Package
org.wso2.carbon.inbound.custom.poll.*,

org.twitter4j.*

/Export-Package


Regards
Senduran


On Fri, Jul 17, 2015 at 12:54 AM, Kathees Rajendram kath...@wso2.com
wrote:

 Hi Lakshani,

 Thank you the reply.
 I added and tried the jars to the component/lib also.I am getting the
 sample error. Am I missing in the pom while bundling?

 packagingbundle/packaging

 dependency
 groupIdorg.twitter4j/groupId
 artifactIdtwitter4j-core/artifactId
 version4.0.4/version
 /dependency
 dependency
 groupIdorg.twitter4j/groupId
 artifactIdtwitter4j-stream/artifactId
 version4.0.4/version
 /dependency

 plugin
 groupIdorg.apache.felix/groupId
 artifactIdmaven-bundle-plugin/artifactId
 version1.4.0/version
 extensionstrue/extensions
 configuration
 instructions
 Bundle-SymbolicName${pom.artifactId}/Bundle-SymbolicName
 Export-Package
 org.wso2.carbon.inbound.custom.poll.*,
 /Export-Package
 Import-Package
 !javax.xml.namespace,
 javax.xml.namespace;
 version=0.0.0,
 *;resolution:=optional,
 /Import-Package
 DynamicImport-Package*/DynamicImport-Package
 /instructions
 /configuration
 /plugin

 Thanks,
 Kathees


 On Fri, Jul 17, 2015 at 9:54 AM, Lakshani Gamage laksh...@wso2.com
 wrote:

 Hi Kathees,

 Seems your class has not been exported properly. Please see the error
 log.
 *Caused by: java.lang.**NoClassDefFoundError: twitter4j/StreamListener*

 May be you haven't created the osgi bundle properly. You can put the jar
 to component/lib directory. It will make the jar osgi and export all
 classes.

 Thank you,
 Lakshani.

 On Fri, Jul 17, 2015 at 8:50 AM, Kathees Rajendram kath...@wso2.com
 wrote:

 Hi,

 While creating a custom inbound Endpoint I am getting the following
 error. In the custom endpoint,i used the twitter4j-stream dependency,
 bundled and added the dropins in the ESB.
 Can you suggest how to solve the issue?


 [2015-07-17 08:32:43,741]  INFO - GenericProcessor Inbound listener
 class for class org.wso2.carbon.inbound.custom.poll.SamplePollingClient
 starting ...
 [2015-07-17 08:30:47,846] ERROR - RPCMessageReceiver
 twitter4j/StreamListener
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
 at
 org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
 at
 org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
 at
 org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
 at
 org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
 at
 org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
 at
 org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.wso2.carbon.mediation.configadmin.stub.ConfigServiceAdminStub.updateConfiguration(ConfigServiceAdminStub.java:1340)
 at
 org.wso2.carbon.mediation.configadmin.ui.ConfigManagementClient.updateConfiguration(ConfigManagementClient.java:98)
 at
 org.apache.jsp.configadmin.saveconfig_jsp._jspService(saveconfig_jsp.java:169)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
 at
 

Re: [Dev] WSO2 Committers += Jagath Ariyarathne

2015-07-16 Thread Senduran Balasubramaniyam
Congratulations Jagath !!

On Thu, Jul 16, 2015 at 4:21 AM, Prabath Ariyarathna prabat...@wso2.com
wrote:

 Congratulations Jagath .. !

 On Thu, Jul 16, 2015 at 2:40 PM, Dunith Dhanushka dun...@wso2.com wrote:

 Congrats Jagath!

 On Thu, Jul 16, 2015 at 1:43 PM, Chanaka Fernando chana...@wso2.com
 wrote:

 Congratulations JagathAR !!

 On Thu, Jul 16, 2015 at 1:40 PM, Viraj Senevirathne vir...@wso2.com
 wrote:

 Congrats, Jagath.

 Best Regards,

 On Thu, Jul 16, 2015 at 11:11 AM, Kasun Indrasiri ka...@wso2.com
 wrote:

 Hi devs,

 Its my pleasure to welcome Jagath Ariyarathne as a WSO2 Committer.
 Jagath, welcome aboard and keep up the good work!

 Thanks.

 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/

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




 --
 Viraj Senevirathne
 Software Engineer; WSO2, Inc.

 Mobile : +94 71 818 4742 %2B94%20%280%29%20773%20451194
 Email : vir...@wso2.com thili...@wso2.com

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




 --
 --
 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




 --
 Regards,

 Dunith Dhanushka,
 Senior Software Engineer - BAM,
 WSO2 Inc,

 Mobile - +94 71 8615744
 Blog - dunithd.wordpress.com http://blog.dunith.com
 Twitter - @dunithd http://twitter.com/dunithd

 ___
 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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Ravindra Ranwala

2015-07-16 Thread Senduran Balasubramaniyam
Congratulations Ravindra !!!

On Thu, Jul 16, 2015 at 4:21 AM, Prabath Ariyarathna prabat...@wso2.com
wrote:

 Congratulations Ravindra .. !

 On Thu, Jul 16, 2015 at 2:35 PM, Ravi Undupitiya r...@wso2.com wrote:

 Congrats Ravindra!!

 On Thu, Jul 16, 2015 at 1:54 PM, Shafreen Anfar shafr...@wso2.com
 wrote:

 Congratulations Ravindra .. !

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

 Congratulations Ravindra .. !

 On Thu, Jul 16, 2015 at 1:48 PM, Isuru Udana isu...@wso2.com wrote:

 Congratulations Ravindra..!

 On Thu, Jul 16, 2015 at 1:42 PM, Chanaka Fernando chana...@wso2.com
 wrote:

 Congratulations Ravindra ...

 On Thu, Jul 16, 2015 at 1:39 PM, Viraj Senevirathne vir...@wso2.com
 wrote:

 Congrats, Ravindra.

 Best Regards,

 On Thu, Jul 16, 2015 at 11:53 AM, Dilan Udara Ariyaratne 
 dil...@wso2.com wrote:

 Congratulations, Ravindra !!!

 Regards,
 Dilan.


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

 On Thu, Jul 16, 2015 at 11:25 AM, Kasun Indrasiri ka...@wso2.com
 wrote:

 Hi devs,

 Its my pleasure to welcome Ravindra Ranwala as a WSO2 Committer.
 Ravindra, welcome aboard and keep up the good work!

 Thanks.

 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/

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



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




 --
 Viraj Senevirathne
 Software Engineer; WSO2, Inc.

 Mobile : +94 71 818 4742 %2B94%20%280%29%20773%20451194
 Email : vir...@wso2.com thili...@wso2.com

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




 --
 --
 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




 --
 *Isuru Udana*
 Associate Technical Lead
 WSO2 Inc.; http://wso2.com
 email: isu...@wso2.com cell: +94 77 3791887
 blog: http://mytecheye.blogspot.com/

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




 --

 Best Regards,

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

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print
 this email only if it is absolutely necessary.




 --
 Regards,
 *Shafreen*
 Software Engineer
 WSO2 Inc
 Mobile : 077-556-395-1




 --
 *Ravi Undupitiya*
 Senior Software Engineer; WSO2 http://wso2.com


 *E-mail: r...@wso2.com http://wso2.com**M: **+94 772 930 712
 %2B94%C2%A0772%20930%20712*

 Lean . Enterprise . Middleware




 --

 *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 *








-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] NTASK ERROR - No available task nodes for resolving a task location

2015-07-08 Thread Senduran Balasubramaniyam
Hi Malaka,

Initially we have started all the three nodes as mangers, and got the
exception. After Chanaka's suggestion we restarted two nodes with the
'DworkerNode=true'
parameter. And when we schedule the task we worked.

Thanks
Senduran

On Tue, Jul 7, 2015 at 7:12 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Senduran,

 Did you observer this error only when manager is started first?

 On Wed, Jul 8, 2015 at 2:52 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi Chanaka,

 Thank you,  yes once we started the nodes as workers(2 nodes) it worked.

 Thanks
 Senduran

 On Mon, Jul 6, 2015 at 8:50 PM, Chanaka Fernando chana...@wso2.com
 wrote:

 Hi Senduran,

 How did you start the nodes? You need to have 1 manager node and other
 nodes should be started with 'DworkerNode=true' parameter as worker nodes.
 Basically, task will be run on the worker nodes only.

 Thanks,
 Chanaka

 On Tue, Jul 7, 2015 at 5:29 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi Anjana,

 I have a three node ESB cluster, when I try to schedule a task I am
 getting the  following exception. But all the nodes are up and running.

 TID: [-1234] [] [2015-07-06 23:47:30,536] ERROR
 {org.wso2.carbon.mediation.ntask.NTaskTaskManager} -  Scheduling task
 [[NTask::-1234::task_abc]::synapse.simple.quartz] FAILED. Error: No
 available task nodes for resolving a task location
 {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:224)
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.locateMemberForTask(ClusteredTaskManager.java:201)
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.getMemberIdFromTaskName(ClusteredTaskManager.java:275)
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.scheduleTask(ClusteredTaskManager.java:86)

 When I try to pinned the server (with IP address ) I am getting the
 following
 Server name not in pinned servers list. Not starting Task : task_abc
 {org.apache.synapse.startup.quartz.StartUpController}

 Could you please suggest me a to fix this


 Regards
 Senduran


 On Wed, May 27, 2015 at 8:00 AM, Anjana Fernando anj...@wso2.com
 wrote:

 Hi Malaka,

 This is not a bug, but as the message says, this is because, in your
 manager node, which I guess, did not register the task type, so it will
 not participate in executing the tasks, but it can register and schedule
 tasks to be run in other nodes. So if this manager node registers and 
 gives
 a command to say schedule, it will look in the cluster for possible
 workers to schedule and execute the task. If there aren't any workers
 (nodes which has registered that task type) available, it will give this
 error saying, the task could not be registered, which is what should be
 done, or else, the caller will get a false confirmation saying, the task 
 is
 scheduled and running.

 So basically the point is, before a task is scheduled, we have to
 make sure, possible workers are there to run it.

 Cheers,
 Anjana.

 On Wed, May 27, 2015 at 10:59 AM, Malaka Silva mal...@wso2.com
 wrote:

 Hi,

 While checking the tasks observer the following error.

 This happens only when scheduling a task from manager. My
 understanding was NTASK have the same behavior in manager and worker 
 nodes.
 Is it the case?

 This happens because in the following code. When starting manager
 node memberlist is empty. But starting a worker first, member list 
 contains
 that member.

 I guess this is a bug?

 This will not effect the functionality in ESB however error is
 printed on startup.

 TaskServiceContext ctx = this.getTaskServiceContext();
 if (ctx.getServerCount() == 0) {
 throw new TaskException(No available task nodes for
 resolving a task location,
 Code.TASK_NODE_NOT_AVAILABLE);
 }

 [1]
 https://github.com/wso2/carbon-commons/blob/master/components/ntask/org.wso2.carbon.ntask.core/src/main/java/org/wso2/carbon/ntask/core/impl/clustered/ClusteredTaskManager.java
 [2]
 https://github.com/wso2/carbon-commons/blob/master/components/ntask/org.wso2.carbon.ntask.core/src/main/java/org/wso2/carbon/ntask/core/TaskServiceContext.java


 [2015-05-27 09:39:42,807] ERROR - NTaskTaskManager Scheduling task
 [[NTask::-1234::file-FILE--SYNAPSE_INBOUND_ENDPOINT]::FILE--SYNAPSE_INBOUND_ENDPOINT]
 FAILED. Error: No available task nodes for resolving a task location
 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:224)
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.locateMemberForTask(ClusteredTaskManager.java:201)
 at
 org.wso2

Re: [Dev] NTASK ERROR - No available task nodes for resolving a task location

2015-07-07 Thread Senduran Balasubramaniyam
Hi Chanaka,

Thank you,  yes once we started the nodes as workers(2 nodes) it worked.

Thanks
Senduran

On Mon, Jul 6, 2015 at 8:50 PM, Chanaka Fernando chana...@wso2.com wrote:

 Hi Senduran,

 How did you start the nodes? You need to have 1 manager node and other
 nodes should be started with 'DworkerNode=true' parameter as worker nodes.
 Basically, task will be run on the worker nodes only.

 Thanks,
 Chanaka

 On Tue, Jul 7, 2015 at 5:29 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi Anjana,

 I have a three node ESB cluster, when I try to schedule a task I am
 getting the  following exception. But all the nodes are up and running.

 TID: [-1234] [] [2015-07-06 23:47:30,536] ERROR
 {org.wso2.carbon.mediation.ntask.NTaskTaskManager} -  Scheduling task
 [[NTask::-1234::task_abc]::synapse.simple.quartz] FAILED. Error: No
 available task nodes for resolving a task location
 {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:224)
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.locateMemberForTask(ClusteredTaskManager.java:201)
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.getMemberIdFromTaskName(ClusteredTaskManager.java:275)
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.scheduleTask(ClusteredTaskManager.java:86)

 When I try to pinned the server (with IP address ) I am getting the
 following
 Server name not in pinned servers list. Not starting Task : task_abc
 {org.apache.synapse.startup.quartz.StartUpController}

 Could you please suggest me a to fix this


 Regards
 Senduran


 On Wed, May 27, 2015 at 8:00 AM, Anjana Fernando anj...@wso2.com wrote:

 Hi Malaka,

 This is not a bug, but as the message says, this is because, in your
 manager node, which I guess, did not register the task type, so it will
 not participate in executing the tasks, but it can register and schedule
 tasks to be run in other nodes. So if this manager node registers and gives
 a command to say schedule, it will look in the cluster for possible
 workers to schedule and execute the task. If there aren't any workers
 (nodes which has registered that task type) available, it will give this
 error saying, the task could not be registered, which is what should be
 done, or else, the caller will get a false confirmation saying, the task is
 scheduled and running.

 So basically the point is, before a task is scheduled, we have to make
 sure, possible workers are there to run it.

 Cheers,
 Anjana.

 On Wed, May 27, 2015 at 10:59 AM, Malaka Silva mal...@wso2.com wrote:

 Hi,

 While checking the tasks observer the following error.

 This happens only when scheduling a task from manager. My understanding
 was NTASK have the same behavior in manager and worker nodes. Is it the
 case?

 This happens because in the following code. When starting manager node
 memberlist is empty. But starting a worker first, member list contains that
 member.

 I guess this is a bug?

 This will not effect the functionality in ESB however error is printed
 on startup.

 TaskServiceContext ctx = this.getTaskServiceContext();
 if (ctx.getServerCount() == 0) {
 throw new TaskException(No available task nodes for
 resolving a task location,
 Code.TASK_NODE_NOT_AVAILABLE);
 }

 [1]
 https://github.com/wso2/carbon-commons/blob/master/components/ntask/org.wso2.carbon.ntask.core/src/main/java/org/wso2/carbon/ntask/core/impl/clustered/ClusteredTaskManager.java
 [2]
 https://github.com/wso2/carbon-commons/blob/master/components/ntask/org.wso2.carbon.ntask.core/src/main/java/org/wso2/carbon/ntask/core/TaskServiceContext.java


 [2015-05-27 09:39:42,807] ERROR - NTaskTaskManager Scheduling task
 [[NTask::-1234::file-FILE--SYNAPSE_INBOUND_ENDPOINT]::FILE--SYNAPSE_INBOUND_ENDPOINT]
 FAILED. Error: No available task nodes for resolving a task location
 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:224)
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.locateMemberForTask(ClusteredTaskManager.java:201)
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.getMemberIdFromTaskName(ClusteredTaskManager.java:275)
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.scheduleTask(ClusteredTaskManager.java:86)
 at
 org.wso2.carbon.mediation.ntask.NTaskTaskManager.schedule(NTaskTaskManager.java:89)
 at
 org.wso2.carbon.mediation.ntask.NTaskTaskManager.init(NTaskTaskManager.java:336)
 at
 org.wso2.carbon.mediation.ntask.NTaskTaskManager.update(NTaskTaskManager.java:349)
 at
 org.wso2

Re: [Dev] NTASK ERROR - No available task nodes for resolving a task location

2015-07-06 Thread Senduran Balasubramaniyam
Hi Anjana,

I have a three node ESB cluster, when I try to schedule a task I am getting
the  following exception. But all the nodes are up and running.

TID: [-1234] [] [2015-07-06 23:47:30,536] ERROR
{org.wso2.carbon.mediation.ntask.NTaskTaskManager} -  Scheduling task
[[NTask::-1234::task_abc]::synapse.simple.quartz] FAILED. Error: No
available task nodes for resolving a task location
{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:224)
at
org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.locateMemberForTask(ClusteredTaskManager.java:201)
at
org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.getMemberIdFromTaskName(ClusteredTaskManager.java:275)
at
org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.scheduleTask(ClusteredTaskManager.java:86)

When I try to pinned the server (with IP address ) I am getting the
following
Server name not in pinned servers list. Not starting Task : task_abc
{org.apache.synapse.startup.quartz.StartUpController}

Could you please suggest me a to fix this


Regards
Senduran


On Wed, May 27, 2015 at 8:00 AM, Anjana Fernando anj...@wso2.com wrote:

 Hi Malaka,

 This is not a bug, but as the message says, this is because, in your
 manager node, which I guess, did not register the task type, so it will
 not participate in executing the tasks, but it can register and schedule
 tasks to be run in other nodes. So if this manager node registers and gives
 a command to say schedule, it will look in the cluster for possible
 workers to schedule and execute the task. If there aren't any workers
 (nodes which has registered that task type) available, it will give this
 error saying, the task could not be registered, which is what should be
 done, or else, the caller will get a false confirmation saying, the task is
 scheduled and running.

 So basically the point is, before a task is scheduled, we have to make
 sure, possible workers are there to run it.

 Cheers,
 Anjana.

 On Wed, May 27, 2015 at 10:59 AM, Malaka Silva mal...@wso2.com wrote:

 Hi,

 While checking the tasks observer the following error.

 This happens only when scheduling a task from manager. My understanding
 was NTASK have the same behavior in manager and worker nodes. Is it the
 case?

 This happens because in the following code. When starting manager node
 memberlist is empty. But starting a worker first, member list contains that
 member.

 I guess this is a bug?

 This will not effect the functionality in ESB however error is printed on
 startup.

 TaskServiceContext ctx = this.getTaskServiceContext();
 if (ctx.getServerCount() == 0) {
 throw new TaskException(No available task nodes for
 resolving a task location,
 Code.TASK_NODE_NOT_AVAILABLE);
 }

 [1]
 https://github.com/wso2/carbon-commons/blob/master/components/ntask/org.wso2.carbon.ntask.core/src/main/java/org/wso2/carbon/ntask/core/impl/clustered/ClusteredTaskManager.java
 [2]
 https://github.com/wso2/carbon-commons/blob/master/components/ntask/org.wso2.carbon.ntask.core/src/main/java/org/wso2/carbon/ntask/core/TaskServiceContext.java


 [2015-05-27 09:39:42,807] ERROR - NTaskTaskManager Scheduling task
 [[NTask::-1234::file-FILE--SYNAPSE_INBOUND_ENDPOINT]::FILE--SYNAPSE_INBOUND_ENDPOINT]
 FAILED. Error: No available task nodes for resolving a task location
 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:224)
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.locateMemberForTask(ClusteredTaskManager.java:201)
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.getMemberIdFromTaskName(ClusteredTaskManager.java:275)
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.scheduleTask(ClusteredTaskManager.java:86)
 at
 org.wso2.carbon.mediation.ntask.NTaskTaskManager.schedule(NTaskTaskManager.java:89)
 at
 org.wso2.carbon.mediation.ntask.NTaskTaskManager.init(NTaskTaskManager.java:336)
 at
 org.wso2.carbon.mediation.ntask.NTaskTaskManager.update(NTaskTaskManager.java:349)
 at
 org.wso2.carbon.mediation.ntask.internal.NtaskService.updateAndCleanupObservers(NtaskService.java:103)
 at
 org.wso2.carbon.mediation.ntask.internal.NtaskService.setConfigurationContextService(NtaskService.java:96)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 

Re: [Dev] WSO2 Committers += Maheeka Jayasuriya

2015-06-25 Thread Senduran Balasubramaniyam
Congratulations Maheeka !!

On Tue, Jun 23, 2015 at 11:59 PM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi devs,

 Its my pleasure to welcome Maheeka Jayasuriya as a WSO2 Committer.
 Maheeka, welcome aboard and keep up the good work!

 Thanks.
 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/

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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Shiva Balachandran

2015-06-16 Thread Senduran Balasubramaniyam
Congratulations !!!

On Tue, Jun 16, 2015 at 7:58 AM, Damith Wickramasinghe dami...@wso2.com
wrote:

 Congratz machn !! :)

 On Tue, Jun 16, 2015 at 1:29 PM, Vijitha Ekanayake vijit...@wso2.com
 wrote:

 Congratulations Shiva !!

 On Tue, Jun 16, 2015 at 1:26 PM, Amal Gunatilake am...@wso2.com wrote:

 Congratulations Shiva !!

 On Tue, Jun 16, 2015 at 9:52 AM, Nandika Jayawardana nand...@wso2.com
 wrote:

 Hi All,

 It's my pleasure to announce Shiva Balachandran as a WSO2 committer. He
 has been a contributor to Business Process Server product and Process
 Center Product and in recognition of his contributions, he has been voted
 as a WSO2 Committer.

 Shiva, congratulations and keep up the good work.

 Regards
 Nandika

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

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




 --
 *Amal Gunatilake*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

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




 --
 Vijitha Ekanayake
 Software Engineer*, *WSO2, Inc.; http://wso2.com/
 Mobile : +94 777 24 73 39 | +94 718 74 44 08
 lean.enterprise.middleware

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




 --
 Software Engineer
 WSO2 Inc.; http://wso2.com
 http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
 lean.enterprise.middleware

 mobile: *+94728671315 %2B94728671315*


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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sam Sivayogam

2015-06-14 Thread Senduran Balasubramaniyam
Congratulations Sam !!!

On Sun, Jun 14, 2015 at 10:34 PM, Thilini Cooray thili...@wso2.com wrote:

 Congratulations, Sam !

 On Mon, Jun 15, 2015 at 8:58 AM, Rajeevan Vimalanathan rajeev...@wso2.com
  wrote:

 Congrats Sam...!!!

 On Mon, Jun 15, 2015 at 8:44 AM, Vinuri Perera vinu...@wso2.com wrote:

 Congrats Sam !

 On Mon, Jun 15, 2015 at 8:37 AM, Saneth Dharmakeerthi sane...@wso2.com
 wrote:

 Congratulations Sam...

 Thanks and Best Regards,

 Saneth Dharmakeerthi
 Senior Software Engineer
 WSO2, Inc.
 Mobile: +94772325511

 On Mon, Jun 15, 2015 at 8:31 AM, Nuwan Dias nuw...@wso2.com wrote:

 Hi,

 It is with great pleasure we welcome Sam Sivayogam as a WSO2 Committer.
 @Sam, congratulations and keep up the good work!

 Thanks,
 NuwanD.

 --
 Nuwan Dias

 Technical Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729

 ___
 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




 --
 Vinuri Perera
 Software Engineer | WSO2 Inc

 M : 0711518805


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




 --

 Vimalanathan Rajeevan
 Software Engineer
 WSO2 Inc.:http://wso2.com
 lean.enterprise.middleware


 Mobile : +94 773090875

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




 --
 Best Regards,

 *Thilini Cooray*
 Software Engineer
 Mobile : +94 (0) 774 570 112 %2B94%20%280%29%20773%20451194
 E-mail : thili...@wso2.com

 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware

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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Vinuri Perera

2015-04-27 Thread Senduran Balasubramaniyam
Congratulations Vinuri !

On Mon, Apr 27, 2015 at 6:35 AM, Prasanna Dangalla prasa...@wso2.com
wrote:

 Congratulations...

 On Mon, Apr 27, 2015 at 5:03 PM, Madhawa Gunasekara madha...@wso2.com
 wrote:

 Congratulations Vinuri !!

 On Mon, Apr 27, 2015 at 4:31 PM, CD Athuraliya chathur...@wso2.com
 wrote:

 Congratulations!!! :)

 On Mon, Apr 27, 2015 at 4:29 PM, Dilan Udara Ariyaratne dil...@wso2.com
  wrote:

 Congratz, Vinuri!!!


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

 On Mon, Apr 27, 2015 at 4:27 PM, Sam Sivayogam s...@wso2.com wrote:

 Congratz Vinuri !!!

 On Mon, Apr 27, 2015 at 4:23 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Congrats Vinuri!

 On Mon, Apr 27, 2015 at 4:21 PM, Milan Perera mi...@wso2.com wrote:

 Congratz Vinuri..!!!

 On Mon, Apr 27, 2015 at 4:09 PM, Maheeka Jayasuriya 
 mahe...@wso2.com wrote:

 Congrats Vinuri !

 Maheeka Jayasuriya
 Software Engineer
 Mobile : +9450661

 On Mon, Apr 27, 2015 at 3:57 PM, Jerad Rutnam je...@wso2.com
 wrote:

 Congratulations Vinuri! :)

 On Mon, Apr 27, 2015 at 3:42 PM, Madhuranga Bandara 
 madhura...@wso2.com wrote:

 Congratulations Vinuri ... !!!

 *Madhuranga Sampath Bandara*
 Software Engineer

 WSO2, Inc.;http://wso2.com/
 http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
 lean.enterprise.middleware
 Mobile: +94722241065

 On Mon, Apr 27, 2015 at 2:19 PM, Amila Maha Arachchi 
 ami...@wso2.com wrote:

 Hi all,

 Its my pleasure to welcome Vinuri Perera as a
 WSO2 Committer. Vinuri is a member of WSO2 Cloud team and she has 
 done a
 great contribution to WSO2 Cloud and has shown great enthusiasm in 
 her work
 both in development and other cloud related work. In recognition of 
 her
 contribution, she has been voted as a WSO2 Committer.

 Vinuri, welcome aboard and keep up the good work..

 Regards,
 Amila.

 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


 ___
 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




 --
 *Jerad Rutnam*
 *Software Engineer*

 WSO2 Inc.
 lean | enterprise | middleware
 M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com

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



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




 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera

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




 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005

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




 --
 *Sam Sivayogam*

 Software Engineer
 Mobile  : +94 772 906 439
 Office   : +94 112 145 345
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

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



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




 --
 *CD Athuraliya*
 Software Engineer
 WSO2, Inc.
 lean . enterprise . middleware
 Mobile: +94 716288847 94716288847
 LinkedIn http://lk.linkedin.com/in/cdathuraliya | Twitter
 https://twitter.com/cdathuraliya | Blog
 http://cdathuraliya.tumblr.com/

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




 --
 *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*

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




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

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

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




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

Re: [Dev] Thread.sleep() equivalent in Jaggery

2015-03-24 Thread Senduran Balasubramaniyam
Hi Sameera,

I have two admin services to be called. Which I have to call in 2 seconds
delay

Regards
Senduran

On Wed, Mar 25, 2015 at 10:21 AM, Sameera Medagammaddegedara 
samee...@wso2.com wrote:

 Hi Senduran,

 JavaScript is single threaded and barring the concept of web workers[1]
 does not support a multi-threaded execution model.

 What is your original use case?

 *Reference*
 [1]
 https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers

 Thank You,
 Sameera

 On Wed, Mar 25, 2015 at 5:47 AM, danush...@wso2.com wrote:

  Hi Senduran
 Can you share the code segment you tried?

 [1] http://www.w3schools.com/js/js_timing.asp

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

 *From:* Senduran Balasubramaniyam sendu...@wso2.com
 *Sent:* ‎Tuesday‎, ‎March‎ ‎24‎, ‎2015 ‎11‎:‎15‎ ‎PM
 *To:* Mahesh Chinthaka mahe...@wso2.com
 *Cc:* WSO2 Developers' List dev@wso2.org

 Thanks Mahesh,

 When I gave a function and the time delay to setTimeout() it didn't work
 for me. The function didn't wait for the time delay I passed, instead it
 executed immediately.

 I totally forgot we can simply use java methods in Jaggery. It works fine.

 Thanks again

 On Tue, Mar 24, 2015 at 10:44 PM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi Senduran,
 What are the difficulties u faced with using setTimeOut()  ?

 AFAIK this should work since we have the Rhino support in jaggery,

 java.lang.Thread.sleep(timeInMilliseconds);


 Thanks

 On Tue, Mar 24, 2015 at 10:27 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi

 What is a best option for $subject ?
 I tried the setTimeout()
 http://www.w3schools.com/jsref/met_win_settimeout.asp but doesn't
 seem much helpful

 Thanks
 Senduran

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

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




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




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

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




 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Thread.sleep() equivalent in Jaggery

2015-03-24 Thread Senduran Balasubramaniyam
Hi

What is a best option for $subject ?
I tried the setTimeout()
http://www.w3schools.com/jsref/met_win_settimeout.asp but doesn't seem
much helpful

Thanks
Senduran

-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Thread.sleep() equivalent in Jaggery

2015-03-24 Thread Senduran Balasubramaniyam
Thanks Mahesh,

When I gave a function and the time delay to setTimeout() it didn't work
for me. The function didn't wait for the time delay I passed, instead it
executed immediately.

I totally forgot we can simply use java methods in Jaggery. It works fine.

Thanks again

On Tue, Mar 24, 2015 at 10:44 PM, Mahesh Chinthaka mahe...@wso2.com wrote:

 Hi Senduran,
 What are the difficulties u faced with using setTimeOut()  ?

 AFAIK this should work since we have the Rhino support in jaggery,

 java.lang.Thread.sleep(timeInMilliseconds);


 Thanks

 On Tue, Mar 24, 2015 at 10:27 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi

 What is a best option for $subject ?
 I tried the setTimeout()
 http://www.w3schools.com/jsref/met_win_settimeout.asp but doesn't seem
 much helpful

 Thanks
 Senduran

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

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




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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Publishing Gmail Connector

2015-03-22 Thread Senduran Balasubramaniyam
Hi Keerthika,

I think it is better to publish with different version, rather than
publishing as a new connector. Since both the connectors have similar
functionality.
But I wonder how to support if we have to upload both the connectors in
ESB.

Regards
Senduran

On Fri, Mar 20, 2015 at 12:25 PM, Keerthika Mahendralingam 
keerth...@wso2.com wrote:

 Hi All,
 Currently we have two different Gmail connectors based on sdk and rest
 api. How to publish these in connector store? Do I need to publish these as
 different connectors with different names or with versioning?

 Thanks,

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

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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB connectors' package name

2015-03-10 Thread Senduran Balasubramaniyam
Thanks Vanji,

I have created a JIRA[1] to track the progress.

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

Thanks
Senduran


On Tue, Mar 10, 2015 at 3:41 PM, Vanjikumaran Sivajothy va...@wso2.com
wrote:

 Your concern is right, Most of the connectors has the package name as 
 org.wso2.carbon.connector
 Some connectors (Twitter,GSS) are with org.wso2.carbon.connectors and
 it need to be correct in future release.

 To Track this work, Can you please create a JIRA  for this?


 On Tue, Mar 10, 2015 at 3:20 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi team,

 When developing connectors, what is the package name we suppose to give
 in the connector.xml. I notice that there are some in-consistences
 For example the gmail connector
 [image: Inline image 1]
 I think since we have a unique connector name we can maintain the same
 package name. It will be helpful when deploying the connectors via admin
 service.
 WDYT ?

 Thanks
 Senduran

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




 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com http://wso2.com/*
 *Mobile:(+94)777219209*
 [image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter]
 https://twitter.com/vanjikumaran [image: LinkedIn]
 http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]
 http://www.slideshare.net/vanjikumaran

 This communication may contain privileged or other
 confidential information and is intended exclusively for the addressee/s.
 If you are not the intended recipient/s, or believe that you may
 have received this communication in error, please reply to the
 sender indicating that fact and delete the copy you received and in
 addition, you should not print, copy, re-transmit, disseminate, or
 otherwise use the information contained in this communication.
 Internet communications cannot be guaranteed to be timely, secure, error
 or virus-free. The sender does not accept liability for any errors
 or omissions




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery] Calling an admin service as Tenant from a Jaggery app

2015-02-24 Thread Senduran Balasubramaniyam
I thought by default wso2 severs support JWT authentication

On Tue, Feb 24, 2015 at 1:48 PM, Danushka Fernando danush...@wso2.com
wrote:

 You have to deploy the signed jwt authenticator to server side to make it
 work. ;)

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

 On Tue, Feb 24, 2015 at 1:31 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi Danushka,

 I tried with signed JWT authentication (extracted the logic from app
 factory). And added Authorization  header. But unfortunately it didn't
 work for me, that's why I tied $subject using SAML

 Thanks
 Senduran

 On Mon, Feb 23, 2015 at 6:06 PM, Danushka Fernando danush...@wso2.com
 wrote:

 You don't have to use saml here. You can use mutual authenticator or
 signed jwt authenticator.
 On Feb 23, 2015 2:59 PM, Senduran Balasubramaniyam sendu...@wso2.com
 wrote:

 Hi All,

 I was able to do the $subject as follows

- enabled sso for publisher and ESB (Enabled Audience Restriction)
- called the “SAML2SSOAuthenticationService” admin service with
saml response
- from the response header extracted the JSESSIONID and added as
the “HTTPHeaders” to the admin call

 Thanks
 Senduran

 On Mon, Jan 12, 2015 at 3:44 PM, Danushka Fernando danush...@wso2.com
 wrote:

 In the jaggery app you can add the user to the session when he logs in
 to the application. This is done in appfactory and api manager. You can
 check the code. After that as Udara mentioned in previous mail you can use
 that username to authenticate the service call. This is also done in
 appfactory.

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

 On Mon, Jan 12, 2015 at 2:33 PM, Udara Liyanage ud...@wso2.com
 wrote:

 Hi,

 I have done this using a custom authenticator, a JWT authenticator.
 This is used in AF.

 However I have heard that it is possible to use MutualAuth for this.


 On Mon, Jan 12, 2015 at 12:56 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi All,

 I have to call an ESB's admin service from a jaggery app with tenant
 user credentials.

 I followed the sample http://jaggeryjs.org/documentation.jag?api=ws.
 And I have to  hard code the username and password.

 How can I call the admin service using the credential of currently
 logged in tenant ?
 (The tenant is available in ESB as well)

 Thanks
 Senduran


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

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




 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

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


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

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




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





-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery] Calling an admin service as Tenant from a Jaggery app

2015-02-23 Thread Senduran Balasubramaniyam
Hi All,

I was able to do the $subject as follows

   - enabled sso for publisher and ESB (Enabled Audience Restriction)
   - called the “SAML2SSOAuthenticationService” admin service with saml
   response
   - from the response header extracted the JSESSIONID and added as the
   “HTTPHeaders” to the admin call

Thanks
Senduran

On Mon, Jan 12, 2015 at 3:44 PM, Danushka Fernando danush...@wso2.com
wrote:

In the jaggery app you can add the user to the session when he logs in to
 the application. This is done in appfactory and api manager. You can check
 the code. After that as Udara mentioned in previous mail you can use that
 username to authenticate the service call. This is also done in appfactory.

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

 On Mon, Jan 12, 2015 at 2:33 PM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 I have done this using a custom authenticator, a JWT authenticator. This
 is used in AF.

 However I have heard that it is possible to use MutualAuth for this.


 On Mon, Jan 12, 2015 at 12:56 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi All,

 I have to call an ESB's admin service from a jaggery app with tenant
 user credentials.

 I followed the sample http://jaggeryjs.org/documentation.jag?api=ws.
 And I have to  hard code the username and password.

 How can I call the admin service using the credential of currently
 logged in tenant ?
 (The tenant is available in ESB as well)

 Thanks
 Senduran


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

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




 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

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


  ​
-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Tenant couldn't login to publisher when SSO is enabled with IS

2015-02-17 Thread Senduran Balasubramaniyam
FYI
This issue can be tracked here https://wso2.org/jira/browse/STORE-607

@Ruchira, Thanks for the workaround at the moment

On Fri, Jan 23, 2015 at 9:47 PM, Senduran Balasubramaniyam 
sendu...@wso2.com wrote:

 Sure Ruchira,

 Thanks
 Senduran

 On Fri, Jan 23, 2015 at 7:23 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:


 On Fri, Jan 23, 2015 at 4:21 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 Even when I add the UseAuthenticatedUserDomainCrypto to true in IS, I
 am still getting the same exception.
 Is this because IS couldn't identify whether it is tenant or admin who
 has logged in ? as Malithi mentioned in [IS] [ES] Signature Validation
 fails when tenant logs into SSO enabled Publisher

 Hm..I doubt how something like this could happen. If there is a logged in
 session, that means there is an associated user who's tenant domain can be
 determined. Relying on a passed tenant domain is never secure for
 authenticated users.

 Anyway, can you talk to me on Monday, so that we can have a look with the
 property suggested by pushpalanka.

 /Ruchira

 --

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

 *email: ruch...@wso2.com ruch...@wso2.com,   blog:
 ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com,
 mobile: +94 77 5493444 %2B94%2077%205493444*




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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Adding WSO2 license header to a .properties file

2015-02-13 Thread Senduran Balasubramaniyam
Hi Rajeevan,

Since .properties files don't support multiline comments, you have to use
single line comment(#) for each line of the licence header

Regards
Senduran

On Fri, Feb 13, 2015 at 1:53 PM, Rajeevan Vimalanathan rajeev...@wso2.com
wrote:

 Hi,

 What is the recommended way to add WSO2 license header to a .properties
 file?
 Does anyone have any idea?

 Thanks,
 Rajeevan


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

 Mobile : +94 773090875
 Email : rajeev...@wso2.com

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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Access DTO array in SOAP response using Jaggery

2015-02-09 Thread Senduran Balasubramaniyam
To get the description text value

var xmlResponse = result.responseXML;
var description = xmlResponse..*::['description'].text();

​

On Mon, Feb 9, 2015 at 12:28 PM, Sabra Ossen sa...@wso2.com wrote:

 Hi,

 I tried according to your suggestion, but I am not sure how to use XPath
 evaluation using jaggery. Could you may be show me an example of how this
 can be done.

 Thanks.

 On Mon, Feb 9, 2015 at 9:54 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:



 On Sun, Feb 8, 2015 at 11:34 PM, Sabra Ossen sa...@wso2.com wrote:

 Hi,

 I have an admin service with the method getAllDomainConfigInfoDTO()
 which returns an object array.

 Currently I am accessing the admin service using jaggery by following
 the steps mentioned in [1].
 The code works fine as well as the admin service.
 I get a response as follows.

 ns:getAllDomainConfigInfoDTOResponse xmlns:ns=
 http://executiongenerator.eventprocessing.carbon.wso2.org;
 xmlns:ax2126=
 http://executiongenerator.eventprocessing.carbon.wso2.org/xsd;
   ns:return xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:type=ax2126:DomainConfigInfoDTO
 ax2126:descriptiondetails of speed analysis/ax2126:description
 ax2126:nameSpeedConfiguration/ax2126:name
 ax2126:typeSpeedAnalysis/ax2126:type
   /ns:return
   ns:return xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:type=ax2126:DomainConfigInfoDTO
 ax2126:descriptiondetails of temperature
 analysis/ax2126:description
 ax2126:nameTemperatureConfiguration/ax2126:name
 ax2126:typeTemperatureAnalysis/ax2126:type
   /ns:return
 /ns:getAllDomainConfigInfoDTOResponse

 Is there a way to access the data(description, name and type) using
 jaggery.?

 You can get the response as 'responseXML' and then use XPath evaluation
 to get the description, name etc.
 [http://wso2.com/project/mashup/0.2/docs/e4xquickstart.html] the table
 (XPath |  Meaning | E4XEquivalent) has some useful xpath syntax


 I am not sure if I am accessing DTO objects correctly. Would the correct
 way be to create a stub using the wsdl of the admin service and then write
 a client to invoke the service.

 Any help or clarification is appreciated very much. Thank you in advance.

 [1] http://blog.lasindu.com/2014/08/how-to-call-wso2-products-admin.html


 --
 Sabra Ossen
 *Software Engineering Intern*
 Mobile : +94 (0) 785 227 769
 sa...@wso2.com

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




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




 --
 Sabra Ossen
 *Software Engineering Intern*
 Mobile : +94 (0) 785 227 769
 sa...@wso2.com




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Create OMelement using Jaggery

2015-02-08 Thread Senduran Balasubramaniyam
Also if you want to check the full xml format, try the developer tools in
Chrome(F12) since your x:root or x:element cannot be render by your
browser

On Mon, Feb 9, 2015 at 11:32 AM, Manuranga Perera m...@wso2.com wrote:

 please try printing toStirng()

 On Mon, Feb 9, 2015 at 11:25 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 I tried creating a sample OMElement using jaggery as below. However when
 I print root element it shows just {}. No sum elements or text are
 desplayed. What Do I miss here?


 var omfac = org.apache.axiom.om.OMAbstractFactory;
 var factory = omfac.getOMFactory();
 var ns1 = factory.createOMNamespace(bar,x);
 var root = factory.createOMElement(root, ns1);
 var elt1 = factory.createOMElement(element, ns1);

 var text = factory.createOMText(elt1,element content);



 var text1 = factory.createOMText(udara);
 elt1.addChild(text1);
 root.addChild(elt1);


 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897




 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com

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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Access DTO array in SOAP response using Jaggery

2015-02-08 Thread Senduran Balasubramaniyam
On Sun, Feb 8, 2015 at 11:34 PM, Sabra Ossen sa...@wso2.com wrote:

 Hi,

 I have an admin service with the method getAllDomainConfigInfoDTO() which
 returns an object array.

 Currently I am accessing the admin service using jaggery by following the
 steps mentioned in [1].
 The code works fine as well as the admin service.
 I get a response as follows.

 ns:getAllDomainConfigInfoDTOResponse xmlns:ns=
 http://executiongenerator.eventprocessing.carbon.wso2.org; xmlns:ax2126=
 http://executiongenerator.eventprocessing.carbon.wso2.org/xsd;
   ns:return xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:type=ax2126:DomainConfigInfoDTO
 ax2126:descriptiondetails of speed analysis/ax2126:description
 ax2126:nameSpeedConfiguration/ax2126:name
 ax2126:typeSpeedAnalysis/ax2126:type
   /ns:return
   ns:return xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:type=ax2126:DomainConfigInfoDTO
 ax2126:descriptiondetails of temperature
 analysis/ax2126:description
 ax2126:nameTemperatureConfiguration/ax2126:name
 ax2126:typeTemperatureAnalysis/ax2126:type
   /ns:return
 /ns:getAllDomainConfigInfoDTOResponse

 Is there a way to access the data(description, name and type) using
 jaggery.?

You can get the response as 'responseXML' and then use XPath evaluation to
get the description, name etc.
[http://wso2.com/project/mashup/0.2/docs/e4xquickstart.html] the table
(XPath |  Meaning | E4XEquivalent) has some useful xpath syntax


 I am not sure if I am accessing DTO objects correctly. Would the correct
 way be to create a stub using the wsdl of the admin service and then write
 a client to invoke the service.

 Any help or clarification is appreciated very much. Thank you in advance.

 [1] http://blog.lasindu.com/2014/08/how-to-call-wso2-products-admin.html

 --
 Sabra Ossen
 *Software Engineering Intern*
 Mobile : +94 (0) 785 227 769
 sa...@wso2.com

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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Tharindu Edirisinghe

2015-02-05 Thread Senduran Balasubramaniyam
Congratulations Tharindu !!

On Thu, Feb 5, 2015 at 8:48 AM, Jerad Rutnam je...@wso2.com wrote:

 Congratulations Tharindu! :)

 On Wed, Feb 4, 2015 at 10:25 PM, Tharindu Edirisinghe tharin...@wso2.com
 wrote:

 Hi All,

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

 Cheers !
 TharinduE

 On Wed, Feb 4, 2015 at 12:43 PM, Roshan Deniyage rosh...@wso2.com
 wrote:

 Congrats Tharindu!!

 Roshan Deniyage
 Associate Technical Lead
 WSO2, Inc: http://wso2.com

 Mobile:  +94 777636406
 Twitter:  *https://twitter.com/roshku https://twitter.com/roshku*
 LinkedIn :  https://www.linkedin.com/in/roshandeniyage


 On Mon, Feb 2, 2015 at 2:16 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 Congratulations Tharindu ...!!

 On Mon, Feb 2, 2015 at 1:11 PM, Niranda Perera nira...@wso2.com
 wrote:

 Congrats Tharindu!

 On Mon, Feb 2, 2015 at 12:36 PM, Harsha Kumara hars...@wso2.com
 wrote:

 Congratulations Tharindu!

 On Mon, Feb 2, 2015 at 12:33 PM, Kathees Rajendram kath...@wso2.com
 wrote:

 Congrats Tharindu.

 On Mon, Feb 2, 2015 at 9:53 AM, Chanuka Dissanayake 
 chan...@wso2.com wrote:

 Congratulations Tharindu.. :)

 On Mon, Feb 2, 2015 at 9:30 AM, Aiyadurai Rajeevan 
 rajeev...@wso2.com wrote:

 Congrats Tharindu :)

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

 On Mon, Feb 2, 2015 at 9:28 AM, Kasun De Silva kas...@wso2.com
 wrote:

 Congratz Tharindu !!!

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

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


 On Mon, Feb 2, 2015 at 9:21 AM, Kalpa Welivitigoda 
 kal...@wso2.com wrote:

 Congratulations Tharindu !

 On Mon, Feb 2, 2015 at 9:19 AM, Sam Sivayogam s...@wso2.com
 wrote:

 Congrats Thariya !!!

 On Mon, Feb 2, 2015 at 9:08 AM, Anuruddha Liyanarachchi 
 anurudd...@wso2.com wrote:

 Congratulations Tharindu !

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

 Congratulations Tharindu !

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

 Congratz Tharindu...

 On Mon, Feb 2, 2015 at 5:20 AM, Milinda Perera 
 milin...@wso2.com wrote:

 Congratulations Tharindu ..

 On Sun, Feb 1, 2015 at 6:39 PM, Sithumini Senevirathne 
 sithumi...@wso2.com wrote:

 Congratulations Tharindu!!!

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

 Congratulations Tharindu ..

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

 Congratulations Tharindu..!!! :)

 On Sun, Feb 1, 2015 at 10:29 PM, Tharindu Dharmarathna 
 tharin...@wso2.com wrote:

 Congrats tharindu
 On Feb 1, 2015 10:21 PM, Chamin Nalinda 
 cha...@wso2.com wrote:

 Congratulations bro :)

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

 Congratulations Tharindu !!!

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

 Congratulations Tharindu !!!

 On Sun, Feb 1, 2015 at 10:10 PM, Firzhan Naqash 
 firz...@wso2.com wrote:

 Congratz Tharindhu ...

 Regards,
 Firzhan

 On Sun, Feb 1, 2015 at 10:09 PM, Hasintha Indrajee
 hasin...@wso2.com wrote:

 Congratulations Tharindu ...!!

 On Sun, Feb 1, 2015 at 9:58 PM, Johann Nallathamby
 joh...@wso2.com wrote:

 Hi All,

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

 Tharindu, congratulations and keep up the good
 work!

 Thanks  Regards.

 --

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

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com
 http://nallaa.wordpress.com*

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



 ___
 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




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

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

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




 --
 Vijitha Ekanayake
 Software Engineer*, *WSO2, Inc.; http://wso2.com/
 Mobile : +94 777 24 73 39 | +94 718 74 44 08
 lean.enterprise.middleware

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




 --
 *Chamin Nalinda*

 Intern - Engineering
 WSO2 Inc. 

Re: [Dev] WSO2 Commiters += Manoj Gunawardena

2015-01-28 Thread Senduran Balasubramaniyam
Congratulations Manoj !!!

On Wed, Jan 28, 2015 at 1:25 PM, Srisunmugaraja Paraparan 
parapa...@wso2.com wrote:

 Congratulations Manoj .

 On Wed, Jan 28, 2015 at 1:12 PM, Sajini De Silva saj...@wso2.com wrote:

 Congratulations Manoj !!!

 On Wed, Jan 28, 2015 at 1:07 PM, Kalpa Welivitigoda kal...@wso2.com
 wrote:

 Congratulations Manoj !

 On Wed, Jan 28, 2015 at 1:05 PM, Jerad Rutnam je...@wso2.com wrote:

 Congratulations Manoj !!! :)

 On Wed, Jan 28, 2015 at 12:07 PM, Buddhima Wijeweera buddh...@wso2.com
  wrote:

 Congratulations Manoj !!!

 On Wed, Jan 28, 2015 at 12:06 PM, Harshan Liyanage hars...@wso2.com
 wrote:

 Congradz Manoj !!!

 Lakshitha Harshan
 Software Engineer
 Mobile: *+94724423048*
 Email: hars...@wso2.com
 Blog : http://harshanliyanage.blogspot.com/
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 On Wed, Jan 28, 2015 at 12:04 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:

 Hi All,

 It's my pleasure to welcome Manoj Gunawardena as a WSO2 Committer.
 Manoj is a member of WSO2 UES/ES team and has done a great contribution 
 to
 WSO2 ES product and CDM refactoring showing a great enthusiasm in his 
 work.
 In recognition of his contribution, he has been voted as a WSO2 
 Committer.

 Manoj, welcome aboard and keep up the good work..

 --

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

 *email: ruch...@wso2.com ruch...@wso2.com,   blog:
 ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com,
 mobile: +94 77 5493444 %2B94%2077%205493444*

 ___
 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




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

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

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




 --
 *Jerad Rutnam*
 *Software Engineer - UI*

 WSO2 Inc.
 lean | enterprise | middleware
 M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com

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




 --
 Best Regards,

 Kalpa Welivitigoda
 Software Engineer, WSO2 Inc. http://wso2.com
 Email: kal...@wso2.com
 Mobile: +94776509215

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




 --
 Sajini De SIlva
 Software Engineer; WSO2 Inc.; http://wso2.com ,
 Email: saj...@wso2.com
 Blog: http://sajinid.blogspot.com/
 Git hub profile: https://github.com/sajinidesilva

 Phone: +94 712797729


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




 --
 Thanks  Regards
 --
 Srisunmugaraja Paraparan
 Software Engineer,
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email : parapa...@wso2.com, mobile : +94 77 0362151

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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Danesh Kuruppu

2015-01-27 Thread Senduran Balasubramaniyam
Congratulations Danesh !!!

On Tue, Jan 27, 2015 at 9:10 AM, Sithumini Senevirathne sithumi...@wso2.com
 wrote:

 Congratulations Danesh !!



 On Tue, Jan 27, 2015 at 8:47 AM, Sagara Gunathunga sag...@wso2.com
 wrote:


 Its my pleasure to welcome Danesh Kuruppu as a WSO2 committer.  Danesh,
 welcome aboard and keep up the good work.


 Thanks !
 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com


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




 --
 --
 Sithumini Senevirathne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: sithumi...@wso2.com,   mobile: +94 756977999

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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Abimaran Kugathasan

2015-01-24 Thread Senduran Balasubramaniyam
Congratulations Abimaran !!

On Sat, Jan 24, 2015 at 1:10 PM, Srisunmugaraja Paraparan 
parapa...@wso2.com wrote:

 Congratulations Abimaran

 On Sat, Jan 24, 2015 at 1:06 PM, Danesh Kuruppu dan...@wso2.com wrote:

 Congrats Abimaran!!!

 On Sat, Jan 24, 2015 at 12:42 PM, Harsha Kumara hars...@wso2.com wrote:

 Congratulations Abimaran!

 On Sat, Jan 24, 2015 at 12:40 PM, Roshan Wijesena ros...@wso2.com
 wrote:

 Congratulations!! Abimaran.

 On Sat, Jan 24, 2015 at 12:35 PM, Nuwan Dias nuw...@wso2.com wrote:

 Hi,

 Its with great pleasure we welcome Abimaran Kugathasan as a WSO2
 committer. @Abimaran, congratulations and keep up the good work!

 Thanks,
 NuwanD.

 --
 Nuwan Dias

 Associate Tech Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729

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




 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94719154640 %2B94719154640*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

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




 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com

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




 --

 Danesh Kuruppu
 Software Engineer
 WSO2 Inc,
 Mobile: +94 (77) 1690552

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




 --
 Thanks  Regards
 --
 Srisunmugaraja Paraparan
 Software Engineer,
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email : parapa...@wso2.com, mobile : +94 77 0362151

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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Tenant couldn't login to publisher when SSO is enabled with IS

2015-01-23 Thread Senduran Balasubramaniyam
Hi,

Even when I add the UseAuthenticatedUserDomainCrypto to true in IS, I am
still getting the same exception.
Is this because IS couldn't identify whether it is tenant or admin who has
logged in ? as Malithi mentioned in [IS] [ES] Signature Validation fails
when tenant logs into SSO enabled Publisher

Regards
Senduran

On Fri, Jan 23, 2015 at 3:19 PM, Pushpalanka Jayawardhana la...@wso2.com
wrote:

 Hi Ruchira,

 There is property introduced in IS 5.0.0 called 
 UseAuthenticatedUserDomainCrypto to make it backward compatible.
 Below link has a description of it's usage.

 [1] - https://docs.wso2.com/display/IS500/Configuring+identity.xml

 Thanks,
 Pushpalanka.
 --
 Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
 Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
 Mobile: +94779716248
 Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
 lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka


 On Fri, Jan 23, 2015 at 3:02 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:

 Hi Kasun,

 I worked with Senduran and it seemed like a certificate mismatch. AFAICR,
 due to the latest changes in IS code base, the tenant key store is used
 during SSO. Hence, ES, which is based on newer IS code expects tenants
 certs to be used where IS 5.0 expects super-tenant certs to be used. AFAIK,
 I think, this should be the issue here.

 Hence, can somebody from IS team verify my doubt please?

 @Kasun/Senduran,

 If it is my doubt, then you will have to use it with an IS pack which has
 that change.

 On Fri, Jan 23, 2015 at 1:58 PM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi ES team,

 We have spent quite a lot of time on this issue but haven't found a
 resolution yet. This will be a blocker for ES as well as iPaaS milestones.
  Can we get somebody from ES team to look in to this ASAP please?

 On Wed, Jan 21, 2015 at 8:39 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi Sameera,

 Unfortunately the exception is still there, I tried as you instructed.
 What I guess is if a tenant is logged in ES is trying to verify the
 signature against the tenant's specific keystore, while IS consider the
 wso2carbon keystore
 Is there any configuration in ES to check with the wso2carbon keystore
 even for the tenant ?

 Thank you
 Senduran

 On Tue, Jan 20, 2015 at 9:07 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hi Senduran,

 Can we try the following:

 Export the primary key of the IS:

 keytool -export -keystore wso2carbon.jks -alias wso2carbon -file
 wso2.cert

 Then import the certificate to the tenant's key store

 (Home  Configure  KeyStores  Import Certificates To)


 Thank You,
 Sameera


 On Tue, Jan 20, 2015 at 6:43 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 I debugged the org.wso2.store.sso.common.util.Util
 (product-es/modules/components/sso-common). Also I attached
 xmltooling-1.3.1-sources.jar and xmlsec-1.5.5-sources.jar to get the
 complete executing code.

 I compared the signingCert  variable (in the
 org.wso2.store.sso.common.util.X509CredentialImpl) when I log in as a
 tenant
 If I log in to ES's management console the subject of the certificate
 is *CN=localhost, O=WSO2, L=Mountain View, ST=CA, C=US*
 but when I log in to the publisher as the same tenant the subject of
 the certificate is *C=None, O=None L=None, OU=None,
 CN=istenant.com http://istenant.com*

 Please note that in the above both scenarios I am logging as a Tenant
 and when I try to log in to publisher the signature is trying to validate
 against the tenant specific certificate,
 Is this causing the  org.opensaml.xml.validation.ValidationException:
 Signature did not validate against the credential's key exception ?

 Thanks
 Senduran

 On Mon, Jan 19, 2015 at 11:31 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 Thanks Malithi for the response.
 I tried, un-checking the Enable Response Signing , but even when I
 login as admin I got the following exception
 java.lang.NullPointerException
 at
 org.opensaml.xml.signature.SignatureValidator.buildSignature(SignatureValidator.java:91)
 at
 org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:55)
 at
 org.wso2.store.sso.common.util.Util.validateSignature(Util.java:290)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 .
 What I am missing here ?


 @ES Team, could you please help me on how to import the public
 certificate of a tenant to the publisher's key store. Where can I find 
 the
 tenant's public certificate

 Thank you
 Senduran



 On Mon, Jan 19, 2015 at 8:10 PM, Malithi Edirisinghe 
 malit...@wso2.com wrote:

 Hii Senduran,

 There's a separate primary keystore generated for the tenant. Since
 you have enabled response signing also, the service provider that you 
 have
 registered should know the public key of the IdP in order to validate.
 Hence, the service provider should have the public key of the IdP
 in it's keystore and validate the signature acquiring the respective 
 alias

Re: [Dev] [ES] Tenant couldn't login to publisher when SSO is enabled with IS

2015-01-23 Thread Senduran Balasubramaniyam
Sure Ruchira,

Thanks
Senduran

On Fri, Jan 23, 2015 at 7:23 PM, Ruchira Wageesha ruch...@wso2.com wrote:


 On Fri, Jan 23, 2015 at 4:21 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 Even when I add the UseAuthenticatedUserDomainCrypto to true in IS, I
 am still getting the same exception.
 Is this because IS couldn't identify whether it is tenant or admin who
 has logged in ? as Malithi mentioned in [IS] [ES] Signature Validation
 fails when tenant logs into SSO enabled Publisher

 Hm..I doubt how something like this could happen. If there is a logged in
 session, that means there is an associated user who's tenant domain can be
 determined. Relying on a passed tenant domain is never secure for
 authenticated users.

 Anyway, can you talk to me on Monday, so that we can have a look with the
 property suggested by pushpalanka.

 /Ruchira

 --

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

 *email: ruch...@wso2.com ruch...@wso2.com,   blog:
 ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com,
 mobile: +94 77 5493444 %2B94%2077%205493444*




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] [ES] Signature Validation fails when tenant logs into SSO enabled Publisher

2015-01-21 Thread Senduran Balasubramaniyam
Hi,

I have enabled SSO for ES and ESB with an external IS. I am facing the
following issue when I try to login to publisher as a tenant.

INFO {JAGGERY.controllers.login:jag} -  Login URL:
https://localhost:9447/samlsso
org.opensaml.xml.validation.ValidationException: Signature did not validate
against the credential's key

I tried to debug the SignatureValidator and found that, when a tenant logs
in to the publisher (via sso) the saml response is validated against the
tenant specific keystore, whereas a tenant logs in to the management
console (via sso) the saml response is validated against the wso2carbon
keystore.
The second scenario (tenant logs in to management console) is successful.
What I guess is IS always send a saml response which is only valid against
the wso2carbon keystore. (please correct me if I am wrong). What should be
the correct behavior is IS should send tenant specific response ? or ES
should always validate the saml response against the wso2carbon keystore.

Note: I have shred the governance registry and user database, also pointed
ES, ESB to IS's embedded LDAP.
  Also please go through this mail thread [ES] Tenant couldn't
login to publisher when SSO is enabled with IS

Thank you
Senduran

-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Tenant couldn't login to publisher when SSO is enabled with IS

2015-01-20 Thread Senduran Balasubramaniyam
Hi,

I debugged the org.wso2.store.sso.common.util.Util
(product-es/modules/components/sso-common). Also I attached
xmltooling-1.3.1-sources.jar and xmlsec-1.5.5-sources.jar to get the
complete executing code.

I compared the signingCert  variable (in the
org.wso2.store.sso.common.util.X509CredentialImpl) when I log in as a
tenant
If I log in to ES's management console the subject of the certificate
is *CN=localhost,
O=WSO2, L=Mountain View, ST=CA, C=US*
but when I log in to the publisher as the same tenant the subject of the
certificate is *C=None, O=None L=None, OU=None, CN=istenant.com
http://istenant.com*

Please note that in the above both scenarios I am logging as a Tenant and
when I try to log in to publisher the signature is trying to validate
against the tenant specific certificate,
Is this causing the  org.opensaml.xml.validation.ValidationException:
Signature did not validate against the credential's key exception ?

Thanks
Senduran

On Mon, Jan 19, 2015 at 11:31 PM, Senduran Balasubramaniyam 
sendu...@wso2.com wrote:

 Hi,

 Thanks Malithi for the response.
 I tried, un-checking the Enable Response Signing , but even when I login
 as admin I got the following exception
 java.lang.NullPointerException
 at
 org.opensaml.xml.signature.SignatureValidator.buildSignature(SignatureValidator.java:91)
 at
 org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:55)
 at org.wso2.store.sso.common.util.Util.validateSignature(Util.java:290)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 .
 What I am missing here ?


 @ES Team, could you please help me on how to import the public certificate
 of a tenant to the publisher's key store. Where can I find the tenant's
 public certificate

 Thank you
 Senduran



 On Mon, Jan 19, 2015 at 8:10 PM, Malithi Edirisinghe malit...@wso2.com
 wrote:

 Hii Senduran,

 There's a separate primary keystore generated for the tenant. Since you
 have enabled response signing also, the service provider that you have
 registered should know the public key of the IdP in order to validate.
 Hence, the service provider should have the public key of the IdP in it's
 keystore and validate the signature acquiring the respective alias. So in
 this case I think that you should import the public cert of the respective
 tenant to your publisher's keystore.

 Thanks,
 Malithi.

 On Mon, Jan 19, 2015 at 12:35 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 I am experiencing $subject, with ES 2.0.0 M5. Following are the changes
 I made to configure SSO.

- Shared registry and user database between ES and IS
- In ES's user-mgt.xml, pointed the UserStoreManager to IS's
embedded LDAP
- Modified as following in publisher, store json

 identityProviderURL: https://localhost:IS-Port/samlsso


- Created a Service provider for publisher and store in IS as
follows

  SP for publisher

 Issuer: publisher

 Assertion Consumer URL: https://localhost:ES-Port/publisher/acs

 Use fully qualified username in the NameID

 Enable Response Signing

 Enable Assertion Signing

 Enable Single Logout


 SP for store

 Issuer: store

 Assertion Consumer URL: https://localhost:ES-Port/store/acs

 Use fully qualified username in the NameID

 Enable Response Signing

 Enable Assertion Signing

 Enable Single Logout


 When admin login the publisher behaviors as expected. (i.e page is
 redirected to IS login and redirected to publisher, if already a sso
 session is available directly goes to  publisher)\
 But when I log in  as a tenant, the browser is redirected to
 https://localhost:9443/publisher/acs and following exception is shown
 in the console

  INFO {JAGGERY.controllers.login:jag} -  Login URL:
 https://localhost:9447/samlsso
 org.opensaml.xml.validation.ValidationException: Signature did not
 validate against the credential's key
 at
 org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:78)
 at org.wso2.store.sso.common.util.Util.validateSignature(Util.java:290)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
 at
 org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
 at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
 at
 org.jaggeryjs.rhino.sso.scripts.c0._c_anonymous_3(sso/scripts/sso.client.js:50)
 at org.jaggeryjs.rhino.sso.scripts.c0.call(sso/scripts/sso.client.js)
 at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
 at
 org.jaggeryjs.rhino.publisher.controllers.c1._c_anonymous_1(/publisher/controllers/acs.jag:48)
 at
 org.jaggeryjs.rhino.publisher.controllers.c1.call(/publisher/controllers/acs.jag

Re: [Dev] [ES] Tenant couldn't login to publisher when SSO is enabled with IS

2015-01-20 Thread Senduran Balasubramaniyam
Hi Sameera,

Unfortunately the exception is still there, I tried as you instructed. What
I guess is if a tenant is logged in ES is trying to verify the signature
against the tenant's specific keystore, while IS consider the wso2carbon
keystore
Is there any configuration in ES to check with the wso2carbon keystore even
for the tenant ?

Thank you
Senduran

On Tue, Jan 20, 2015 at 9:07 PM, Sameera Medagammaddegedara 
samee...@wso2.com wrote:

 Hi Senduran,

 Can we try the following:

 Export the primary key of the IS:

 keytool -export -keystore wso2carbon.jks -alias wso2carbon -file wso2.cert

 Then import the certificate to the tenant's key store

 (Home  Configure  KeyStores  Import Certificates To)


 Thank You,
 Sameera


 On Tue, Jan 20, 2015 at 6:43 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 I debugged the org.wso2.store.sso.common.util.Util
 (product-es/modules/components/sso-common). Also I attached
 xmltooling-1.3.1-sources.jar and xmlsec-1.5.5-sources.jar to get the
 complete executing code.

 I compared the signingCert  variable (in the
 org.wso2.store.sso.common.util.X509CredentialImpl) when I log in as a
 tenant
 If I log in to ES's management console the subject of the certificate is 
 *CN=localhost,
 O=WSO2, L=Mountain View, ST=CA, C=US*
 but when I log in to the publisher as the same tenant the subject of the
 certificate is *C=None, O=None L=None, OU=None, CN=istenant.com
 http://istenant.com*

 Please note that in the above both scenarios I am logging as a Tenant and
 when I try to log in to publisher the signature is trying to validate
 against the tenant specific certificate,
 Is this causing the  org.opensaml.xml.validation.ValidationException:
 Signature did not validate against the credential's key exception ?

 Thanks
 Senduran

 On Mon, Jan 19, 2015 at 11:31 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 Thanks Malithi for the response.
 I tried, un-checking the Enable Response Signing , but even when I
 login as admin I got the following exception
 java.lang.NullPointerException
 at
 org.opensaml.xml.signature.SignatureValidator.buildSignature(SignatureValidator.java:91)
 at
 org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:55)
 at org.wso2.store.sso.common.util.Util.validateSignature(Util.java:290)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 .
 What I am missing here ?


 @ES Team, could you please help me on how to import the public
 certificate of a tenant to the publisher's key store. Where can I find the
 tenant's public certificate

 Thank you
 Senduran



 On Mon, Jan 19, 2015 at 8:10 PM, Malithi Edirisinghe malit...@wso2.com
 wrote:

 Hii Senduran,

 There's a separate primary keystore generated for the tenant. Since you
 have enabled response signing also, the service provider that you have
 registered should know the public key of the IdP in order to validate.
 Hence, the service provider should have the public key of the IdP in
 it's keystore and validate the signature acquiring the respective alias. So
 in this case I think that you should import the public cert of the
 respective tenant to your publisher's keystore.

 Thanks,
 Malithi.

 On Mon, Jan 19, 2015 at 12:35 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 I am experiencing $subject, with ES 2.0.0 M5. Following are the
 changes I made to configure SSO.

- Shared registry and user database between ES and IS
- In ES's user-mgt.xml, pointed the UserStoreManager to IS's
embedded LDAP
- Modified as following in publisher, store json

 identityProviderURL: https://localhost:IS-Port/samlsso


- Created a Service provider for publisher and store in IS as
follows

  SP for publisher

 Issuer: publisher

 Assertion Consumer URL: https://localhost:ES-Port/publisher/acs

 Use fully qualified username in the NameID

 Enable Response Signing

 Enable Assertion Signing

 Enable Single Logout


 SP for store

 Issuer: store

 Assertion Consumer URL: https://localhost:ES-Port/store/acs

 Use fully qualified username in the NameID

 Enable Response Signing

 Enable Assertion Signing

 Enable Single Logout


 When admin login the publisher behaviors as expected. (i.e page is
 redirected to IS login and redirected to publisher, if already a sso
 session is available directly goes to  publisher)\
 But when I log in  as a tenant, the browser is redirected to
 https://localhost:9443/publisher/acs and following exception is shown
 in the console

  INFO {JAGGERY.controllers.login:jag} -  Login URL:
 https://localhost:9447/samlsso
 org.opensaml.xml.validation.ValidationException: Signature did not
 validate against the credential's key
 at
 org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:78)
 at org.wso2.store.sso.common.util.Util.validateSignature(Util.java:290)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method

Re: [Dev] [ES] Tenant couldn't login to publisher when SSO is enabled with IS

2015-01-19 Thread Senduran Balasubramaniyam
Hi,

Thanks Malithi for the response.
I tried, un-checking the Enable Response Signing , but even when I login as
admin I got the following exception
java.lang.NullPointerException
at
org.opensaml.xml.signature.SignatureValidator.buildSignature(SignatureValidator.java:91)
at
org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:55)
at org.wso2.store.sso.common.util.Util.validateSignature(Util.java:290)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
.
What I am missing here ?


@ES Team, could you please help me on how to import the public certificate
of a tenant to the publisher's key store. Where can I find the tenant's
public certificate

Thank you
Senduran



On Mon, Jan 19, 2015 at 8:10 PM, Malithi Edirisinghe malit...@wso2.com
wrote:

 Hii Senduran,

 There's a separate primary keystore generated for the tenant. Since you
 have enabled response signing also, the service provider that you have
 registered should know the public key of the IdP in order to validate.
 Hence, the service provider should have the public key of the IdP in it's
 keystore and validate the signature acquiring the respective alias. So in
 this case I think that you should import the public cert of the respective
 tenant to your publisher's keystore.

 Thanks,
 Malithi.

 On Mon, Jan 19, 2015 at 12:35 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 I am experiencing $subject, with ES 2.0.0 M5. Following are the changes I
 made to configure SSO.

- Shared registry and user database between ES and IS
- In ES's user-mgt.xml, pointed the UserStoreManager to IS's
embedded LDAP
- Modified as following in publisher, store json

 identityProviderURL: https://localhost:IS-Port/samlsso


- Created a Service provider for publisher and store in IS as follows

  SP for publisher

 Issuer: publisher

 Assertion Consumer URL: https://localhost:ES-Port/publisher/acs

 Use fully qualified username in the NameID

 Enable Response Signing

 Enable Assertion Signing

 Enable Single Logout


 SP for store

 Issuer: store

 Assertion Consumer URL: https://localhost:ES-Port/store/acs

 Use fully qualified username in the NameID

 Enable Response Signing

 Enable Assertion Signing

 Enable Single Logout


 When admin login the publisher behaviors as expected. (i.e page is
 redirected to IS login and redirected to publisher, if already a sso
 session is available directly goes to  publisher)\
 But when I log in  as a tenant, the browser is redirected to
 https://localhost:9443/publisher/acs and following exception is shown in
 the console

  INFO {JAGGERY.controllers.login:jag} -  Login URL:
 https://localhost:9447/samlsso
 org.opensaml.xml.validation.ValidationException: Signature did not
 validate against the credential's key
 at
 org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:78)
 at org.wso2.store.sso.common.util.Util.validateSignature(Util.java:290)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
 at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
 at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
 at
 org.jaggeryjs.rhino.sso.scripts.c0._c_anonymous_3(sso/scripts/sso.client.js:50)
 at org.jaggeryjs.rhino.sso.scripts.c0.call(sso/scripts/sso.client.js)
 at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
 at
 org.jaggeryjs.rhino.publisher.controllers.c1._c_anonymous_1(/publisher/controllers/acs.jag:48)
 at
 org.jaggeryjs.rhino.publisher.controllers.c1.call(/publisher/controllers/acs.jag)
 at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
 at
 org.jaggeryjs.rhino.publisher.controllers.c1._c_script_0(/publisher/controllers/acs.jag:20)
 at
 org.jaggeryjs.rhino.publisher.controllers.c1.call(/publisher/controllers/acs.jag)
 at
 org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
 at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
 at
 org.jaggeryjs.rhino.publisher.controllers.c1.call(/publisher/controllers/acs.jag)
 at
 org.jaggeryjs.rhino.publisher.controllers.c1.exec(/publisher/controllers/acs.jag)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
 at
 org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:559)
 at
 org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727

[Dev] [ES] Tenant couldn't login to publisher when SSO is enabled with IS

2015-01-18 Thread Senduran Balasubramaniyam
Hi,

I am experiencing $subject, with ES 2.0.0 M5. Following are the changes I
made to configure SSO.

   - Shared registry and user database between ES and IS
   - In ES's user-mgt.xml, pointed the UserStoreManager to IS's embedded
   LDAP
   - Modified as following in publisher, store json

identityProviderURL: https://localhost:IS-Port/samlsso


   - Created a Service provider for publisher and store in IS as follows

 SP for publisher

Issuer: publisher

Assertion Consumer URL: https://localhost:ES-Port/publisher/acs

Use fully qualified username in the NameID

Enable Response Signing

Enable Assertion Signing

Enable Single Logout


SP for store

Issuer: store

Assertion Consumer URL: https://localhost:ES-Port/store/acs

Use fully qualified username in the NameID

Enable Response Signing

Enable Assertion Signing

Enable Single Logout


When admin login the publisher behaviors as expected. (i.e page is
redirected to IS login and redirected to publisher, if already a sso
session is available directly goes to  publisher)\
But when I log in  as a tenant, the browser is redirected to
https://localhost:9443/publisher/acs and following exception is shown in
the console

 INFO {JAGGERY.controllers.login:jag} -  Login URL:
https://localhost:9447/samlsso
org.opensaml.xml.validation.ValidationException: Signature did not validate
against the credential's key
at
org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:78)
at org.wso2.store.sso.common.util.Util.validateSignature(Util.java:290)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at
org.jaggeryjs.rhino.sso.scripts.c0._c_anonymous_3(sso/scripts/sso.client.js:50)
at org.jaggeryjs.rhino.sso.scripts.c0.call(sso/scripts/sso.client.js)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at
org.jaggeryjs.rhino.publisher.controllers.c1._c_anonymous_1(/publisher/controllers/acs.jag:48)
at
org.jaggeryjs.rhino.publisher.controllers.c1.call(/publisher/controllers/acs.jag)
at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
at
org.jaggeryjs.rhino.publisher.controllers.c1._c_script_0(/publisher/controllers/acs.jag:20)
at
org.jaggeryjs.rhino.publisher.controllers.c1.call(/publisher/controllers/acs.jag)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at
org.jaggeryjs.rhino.publisher.controllers.c1.call(/publisher/controllers/acs.jag)
at
org.jaggeryjs.rhino.publisher.controllers.c1.exec(/publisher/controllers/acs.jag)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:559)
at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
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.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:501)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at

[Dev] [Jaggery] Calling an admin service as Tenant from a Jaggery app

2015-01-11 Thread Senduran Balasubramaniyam
Hi All,

I have to call an ESB's admin service from a jaggery app with tenant user
credentials.

I followed the sample http://jaggeryjs.org/documentation.jag?api=ws.  And I
have to  hard code the username and password.

How can I call the admin service using the credential of currently logged
in tenant ?
(The tenant is available in ESB as well)

Thanks
Senduran


-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Enable SSO for Publisher and Store with an External IS

2015-01-10 Thread Senduran Balasubramaniyam
Hi Sameera,

I shared the /_system/config as well and I am able to log in as a tenant.
But I couldn't log in when sso is enabled. I have even changed the config
file (publisher.json) in the tenant space. Is there any other configuration
I have to change.

I have a shared user database between ES and IS and ES is pointing to IS's
embedded LDAP

Thanks
Senduran



On Thu, Jan 8, 2015 at 7:44 AM, Senduran Balasubramaniyam sendu...@wso2.com
 wrote:

 Thanks Sameera,

 Is this coping happens when creating the tenant or during the first login ?

 Thanks
 Senduran

 On Wed, Jan 7, 2015 at 9:27 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hi Senduran,

 The publisher.json and store.json files are copied per tenant to the
 _system/config path.As a result the IDP url must be edited for each tenant.

 Thank You,
 Sameera

 On Wed, Jan 7, 2015 at 6:05 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Thanks Sameera, SameeraM

 I changed the “identityProviderURL” in
 /_system/config/publisher/configs/publisher.json, and store.json to point
 to the IS server and SSO among ESB, publisher, store is working now (as
 admin).

 But when I create a tenant I couldn’t login with the tenant credential,
 I am getting the following exception in the console
 and browser is redirect to https://localhost:9443/publisher/acs

 INFO {JAGGERY.controllers.login:jag} -  Login URL: 
 https://localhost:9447/samlsso
 org.opensaml.xml.validation.ValidationException: Signature did not validate 
 against the credential's key
 at 
 org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:78)
 at org.wso2.store.sso.common.util.Util.validateSignature(Util.java:290)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)

 The above exception occurs only when I tried to login to publisher or
 store with the tenant . But with a tenant, I am able to login to the ES
 management console , ESB (sso).

 I have shared the user db and governance registry among ES, ESB and IS.
 ES runs on the default port and IS runs on port offset 4

 Do I need to add any additional configuration to enable sso for tenant
 as well

 Thanks
 Senduran
 ​

 On Wed, Jan 7, 2015 at 1:34 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi all,

 I followed the document [1] and was able to enable the SSO between ESB
 and ES. Also I need to enable SSO between ES's Publisher, store and ESB.

 What is the possible way to do this

 [1] https://docs.wso2.com/display/IS500/Enabling+SSO+for+WSO2+Servers

 Thanks
 Senduran

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




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




 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005




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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Pirinthapan Mahendran

2015-01-09 Thread Senduran Balasubramaniyam
Congratulations Printhapan !!!

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

 Congratz Pirin...!

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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ES] Enable SSO for Publisher and Store with an External IS

2015-01-07 Thread Senduran Balasubramaniyam
Hi all,

I followed the document [1] and was able to enable the SSO between ESB and
ES. Also I need to enable SSO between ES's Publisher, store and ESB.

What is the possible way to do this

[1] https://docs.wso2.com/display/IS500/Enabling+SSO+for+WSO2+Servers

Thanks
Senduran

-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Enable SSO for Publisher and Store with an External IS

2015-01-07 Thread Senduran Balasubramaniyam
Thanks Sameera, SameeraM

I changed the “identityProviderURL” in
/_system/config/publisher/configs/publisher.json, and store.json to point
to the IS server and SSO among ESB, publisher, store is working now (as
admin).

But when I create a tenant I couldn’t login with the tenant credential, I
am getting the following exception in the console
and browser is redirect to https://localhost:9443/publisher/acs

INFO {JAGGERY.controllers.login:jag} -  Login URL:
https://localhost:9447/samlsso
org.opensaml.xml.validation.ValidationException: Signature did not
validate against the credential's key
at 
org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:78)
at org.wso2.store.sso.common.util.Util.validateSignature(Util.java:290)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)

The above exception occurs only when I tried to login to publisher or store
with the tenant . But with a tenant, I am able to login to the ES
management console , ESB (sso).

I have shared the user db and governance registry among ES, ESB and IS.
ES runs on the default port and IS runs on port offset 4

Do I need to add any additional configuration to enable sso for tenant as
well

Thanks
Senduran
​

On Wed, Jan 7, 2015 at 1:34 PM, Senduran Balasubramaniyam sendu...@wso2.com
 wrote:

 Hi all,

 I followed the document [1] and was able to enable the SSO between ESB and
 ES. Also I need to enable SSO between ES's Publisher, store and ESB.

 What is the possible way to do this

 [1] https://docs.wso2.com/display/IS500/Enabling+SSO+for+WSO2+Servers

 Thanks
 Senduran

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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Enable SSO for Publisher and Store with an External IS

2015-01-07 Thread Senduran Balasubramaniyam
Thanks Sameera,

Is this coping happens when creating the tenant or during the first login ?

Thanks
Senduran

On Wed, Jan 7, 2015 at 9:27 PM, Sameera Medagammaddegedara 
samee...@wso2.com wrote:

 Hi Senduran,

 The publisher.json and store.json files are copied per tenant to the
 _system/config path.As a result the IDP url must be edited for each tenant.

 Thank You,
 Sameera

 On Wed, Jan 7, 2015 at 6:05 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Thanks Sameera, SameeraM

 I changed the “identityProviderURL” in
 /_system/config/publisher/configs/publisher.json, and store.json to point
 to the IS server and SSO among ESB, publisher, store is working now (as
 admin).

 But when I create a tenant I couldn’t login with the tenant credential, I
 am getting the following exception in the console
 and browser is redirect to https://localhost:9443/publisher/acs

 INFO {JAGGERY.controllers.login:jag} -  Login URL: 
 https://localhost:9447/samlsso
 org.opensaml.xml.validation.ValidationException: Signature did not validate 
 against the credential's key
 at 
 org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:78)
 at org.wso2.store.sso.common.util.Util.validateSignature(Util.java:290)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)

 The above exception occurs only when I tried to login to publisher or
 store with the tenant . But with a tenant, I am able to login to the ES
 management console , ESB (sso).

 I have shared the user db and governance registry among ES, ESB and IS.
 ES runs on the default port and IS runs on port offset 4

 Do I need to add any additional configuration to enable sso for tenant as
 well

 Thanks
 Senduran
 ​

 On Wed, Jan 7, 2015 at 1:34 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi all,

 I followed the document [1] and was able to enable the SSO between ESB
 and ES. Also I need to enable SSO between ES's Publisher, store and ESB.

 What is the possible way to do this

 [1] https://docs.wso2.com/display/IS500/Enabling+SSO+for+WSO2+Servers

 Thanks
 Senduran

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




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




 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Akalanka Darshana Pagoda Arachchi

2015-01-05 Thread Senduran Balasubramaniyam
Congratulations Akalanka !!

On Mon, Jan 5, 2015 at 3:09 PM, Inshaf Mahath ins...@wso2.com wrote:

 Congrats Akalanka.. 

 On Mon, Jan 5, 2015 at 3:02 PM, Pumudu Ruhunage pum...@wso2.com wrote:

 Congrats Akalanka..!!!

 On Mon, Jan 5, 2015 at 2:58 PM, Hasitha Amal De Silva hasit...@wso2.com
 wrote:

 Congrats Akalanka ! :)

 On Mon, Jan 5, 2015 at 2:51 PM, Harsha Kumara hars...@wso2.com wrote:

 Congratulations Akalanka!

 On Mon, Jan 5, 2015 at 2:47 PM, Abimaran Kugathasan abima...@wso2.com
 wrote:

 Congrats!

 On Mon, Jan 5, 2015 at 2:39 PM, Kalpa Welivitigoda kal...@wso2.com
 wrote:

 Congratulations Akalanka !

 On Mon, Jan 5, 2015 at 2:38 PM, Pranavan Theivendram 
 pranav...@wso2.com wrote:

 Congratz Akalanka :)

 On Mon, Jan 5, 2015 at 2:34 PM, Lasitha Wattaladeniya 
 lasit...@wso2.com wrote:

 Congratulations Akalanka :)

 On Mon, Jan 5, 2015 at 2:32 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Akalanka,
 Congratulations!
 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 regards
 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com



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




 --
 Lasitha Wattaladeniya
 Software Engineer
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94719397528
 Blog : techreadme.blogspot.com

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




 --

 *Regards,*

 *T.Pranavan*

 *Software Engineering intern, WSO2*
 *Mobile - +94775136836 %2B94775136836*

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




 --
 Best Regards,

 Kalpa Welivitigoda
 Software Engineer, WSO2 Inc. http://wso2.com
 Email: kal...@wso2.com
 Mobile: +94776509215

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




 --
 Thanks
 Abimaran Kugathasan

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

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


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




 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com

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




 --
 Cheers,

 Hasitha Amal De Silva
  Software Engineer
 Mobile : 0772037426
 Blog: http://devnutshell.tumblr.com/
 WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )

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




 --
 Pumudu Ruhunage
 Associate Software Engineer | WSO2 Inc
 M: +94 779 664493  | http://wso2.com

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




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


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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   >