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

2016-11-07 Thread Shazni Nazeer
Hi all,

Thanks for the responses. I'll configure this in the dev environment and do
a test and let know the outcomes.

On Tuesday, 8 November 2016, Rajith Vitharana  wrote:

>
>
> On 7 November 2016 at 22:47, Sinthuja Ragendran  > wrote:
>
>> Hi,
>>
>> Have you configured  parameter in the task-config.xml?
>> AFAIR the server will wait for the configured number of nodes to be present
>> before trying to schedule the task.
>>
> And here count doesn't include manager node as it won't execute tasks,
> hence it expects a worker node(task node) to start up. Hence no exception
> when starting worker nodes first.
>
> Thanks,
>
>>
>> Thanks,
>> Sinthuja.
>>
>> On Mon, Nov 7, 2016 at 4:57 PM, Dilshani Subasinghe > > wrote:
>>
>>> Hi Shazni,
>>>
>>> AFAIK this is an expected behavior. I got this issue in ESB cluster.
>>> Hope someone in the team will provide a proper answer for that error.
>>>
>>> Regards,
>>> Dilshani
>>>
>>> On Mon, Nov 7, 2016 at 4:48 PM, Shazni Nazeer >> > wrote:
>>>
 I get the following exception in the manager node when it's started
 first before worker nodes. Exception doesn't occur if the worker nodes
 started first. I have a scheduled task deployed in the setup.

 TID: [-1234] [] [2016-11-03 12:36:36,126] ERROR
 {org.wso2.carbon.mediation.ntask.NTaskTaskManager} - Scheduling task [[
 NTask::-1234::CalendarCleanupTask]::synapse.simple.quartz] FAILED.
 Error: No available task nodes for resolving a task l
 ocation {org.wso2.carbon.mediation.ntask.NTaskTaskManager}
 org.wso2.carbon.ntask.common.TaskException: No available task nodes
 for resolving a task location

 at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
 getTaskLocation(ClusteredTaskManager.java:232)
 at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
 locateMemberForTask(ClusteredTaskManager.java:209)
 at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
 getMemberIdFromTaskName(ClusteredTaskManager.java:283)
 at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
 scheduleTask(ClusteredTaskManager.java:91)
 at org.wso2.carbon.mediation.ntask.NTaskTaskManager.schedule(NT
 askTaskManager.java:103)
 at org.wso2.carbon.mediation.ntask.NTaskTaskManager.init(NTaskT
 askManager.java:352)
 at org.wso2.carbon.mediation.ntask.NTaskTaskManager.update(NTas
 kTaskManager.java:365)
 at org.wso2.carbon.mediation.ntask.internal.NtaskService.update
 AndCleanupObservers(NtaskService.java:103)
 at org.wso2.carbon.mediation.ntask.internal.NtaskService.setCon
 figurationContextService(NtaskService.java:96)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
 ssorImpl.java:57)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
 thodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at org.eclipse.equinox.internal.ds.model.ComponentReference.bin
 d(ComponentReference.java:376)
 at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
 indReference(ServiceComponentProp.java:430)
 at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
 ind(ServiceComponentProp.java:218)
 at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
 uild(ServiceComponentProp.java:343)
 at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(
 InstanceProcess.java:620)
 at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(
 InstanceProcess.java:197)
 at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolve
 r.java:343)
 at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SC
 RManager.java:222)
 at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.
 serviceChanged(FilteredServiceListener.java:107)


 According to [1] this is expected. Is there a fix for this to suppress
 the exception?

 [1] http://bugsbydilshani.blogspot.co.uk/2016/07/wso2esbclus
 ter-task-scheduling-error.html

 --
 Shazni Nazeer
 Associate Technical Lead | WSO2

 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 

>>>
>>>
>>>
>>> --
>>> Best Regards,
>>>
>>> Dilshani Subasinghe
>>> Software Engineer - QA *|* WSO2
>>> lean *|* enterprise *|* middleware
>>>
>>> Mobile : +94773375185
>>> Blog: dilshani.me
>>>
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org 

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

2016-11-07 Thread Rajith Vitharana
On 7 November 2016 at 22:47, Sinthuja Ragendran  wrote:

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

Thanks,

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


-- 
Rajith Vitharana

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


Re: [Dev] How to clear up the Registry Cache?

2016-11-07 Thread Rajith Roshan
Hi ,

You don't need to explicitly clear the registry cache. The cache will
automatically invalidate within 15 minutes. Or the cache will be cleared
when server is re started.
The issue you are facing is trying to access the cache using newly crated
tenant which causing a security issue. Seems like the owner of cache
instance still the old tenant.

Thanks!
Rajith

On Tue, Nov 8, 2016 at 8:48 AM, wenxzhen  wrote:

> Dear experts,
>
> Please advice a way to clear up the Registry Cache, which is really good
> to have.
>
> Thanks, Wenxing
>
>
> -- Original --
> *From: * "wenxzhen";;
> *Date: * Nov 7, 2016
> *To: * "wenxzhen"; "Rajith Roshan";
>
> *Cc: * "dev";
> *Subject: * Re: [Dev] How to clear up the Registry Cache?
>
> Appreciated if anyone can shed some light on how to clear up the Registry
> Cache.
>
> Thanks, Wenxing
>
> -- Original --
> *From: * "wenxzhen";;
> *Date: * Nov 7, 2016
> *To: * "Rajith Roshan";
> *Cc: * "dev";
> *Subject: * Re: [Dev] How to clear up the Registry Cache?
>
> Hi Rajith,
>
> You are right, there is no well defined way. Before deleting the UM data
> and Registry data, I have already deactivated the tenant.
>
> The exception below happened on my re-creation of the tenant with the same
> name. Please advice whether it's the problem that the Registry cache was
> not cleared up?
>
> Thanks, Wenxing
>
>
> -- Original --
> *From: * "Rajith Roshan";;
> *Send time:* Monday, Nov 7, 2016 2:22 PM
> *To:* "wenxzhen";
> *Cc:* "KasunG Gajasinghe"; "dev";
> *Subject: * Re: [Dev] How to clear up the Registry Cache?
>
> Hi,
>
> ASFAIK there is no well defined way to delete a tenant. You can deactivate
> a tenant. If you are using custom code then this error may be due to
> starting a wrong tenant flow in your code.
>
> Thanks!
> Rajith
>
> On Mon, Nov 7, 2016 at 10:46 AM, wenxzhen  wrote:
>
>> Thanks to Lakshani and Kasun.
>>
>> Regarding the TenantMgtListener extension, any reference or example to do
>> the cache clearing since our application is a WEB application?
>>
>> Thanks again, Wenxing
>>
>>
>> -- Original --
>> *From: * "KasunG Gajasinghe";;
>> *Send time:* Monday, Nov 7, 2016 1:43 PM
>> *To:* "wenxzhen";
>> *Cc:* "dev";
>> *Subject: * Re: [Dev] How to clear up the Registry Cache?
>>
>>
>> This sounds like a bug. When a tenant is deleted, the cache should be
>> cleared automatically. You shouldn't have to wait for the periodic cache
>> cleanup.
>>
>> My suggestion is to write a TenantMgtListener extension, and add it to
>> the product. In there, you can add a cache clearing operation for the
>> tenant pre/post delete method.
>>
>> On Monday, November 7, 2016, wenxzhen  wrote:
>>
>>> Dear all,
>>>
>>> I am trying to remove a Tenant from the WSO2, but I found the following
>>> exception after removing a Tenant and then re-create it:
>>>
>>> Caused by: java.lang.SecurityException: Illegal access attempt to cache
>>> ] owned by tenant {[testdomain7],[17]} by tenant {[testdomain7],[18]}
>>> at org.wso2.carbon.caching.impl.Util.checkAccess(Util.java:46)
>>> at org.wso2.carbon.caching.impl.CarbonCacheManager.getCache(Car
>>> bonCacheManager.java:111)
>>> at org.wso2.carbon.registry.core.utils.RegistryUtils.getResourc
>>> eCache(RegistryUtils.java:297)
>>> at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.ge
>>> tCache(CacheBackedRegistry.java:62)
>>> at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.re
>>> sourceExists(CacheBackedRegistry.java:289)
>>> at org.wso2.carbon.registry.core.session.UserRegistry.resourceE
>>> xistsInternal(UserRegistry.java:770)
>>> at org.wso2.carbon.registry.core.session.UserRegistry.access$80
>>> 0(UserRegistry.java:60)
>>> at org.wso2.carbon.registry.core.session.UserRegistry$9.run(Use
>>> rRegistry.java:753)
>>> at org.wso2.carbon.registry.core.session.UserRegistry$9.run(Use
>>> rRegistry.java:750)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at org.wso2.carbon.registry.core.session.UserRegistry.resourceE
>>> xists(UserRegistry.java:750)
>>> ... 62 more
>>>
>>> My question is how I can remove the related Registry cache of a tenant?
>>> Thank you very much.
>>>
>>> Regards, Wenxing
>>>
>>>
>>
>> --
>>
>> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>> phone: +1 650-745-4499, 77 678 0813
>>
>>
>>
>> ___
>> Dev 

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

2016-11-07 Thread Niranda Perera
Hi all,

I agree with @sinthuja here. We've had the same issue in DAS clustering and
it is configurable in the task-config.xml

Best

On Mon, Nov 7, 2016 at 10:47 PM, Sinthuja Ragendran 
wrote:

> Hi,
>
> Have you configured  parameter in the task-config.xml?
> AFAIR the server will wait for the configured number of nodes to be present
> before trying to schedule the task.
>
> Thanks,
> Sinthuja.
>
> On Mon, Nov 7, 2016 at 4:57 PM, Dilshani Subasinghe 
> wrote:
>
>> Hi Shazni,
>>
>> AFAIK this is an expected behavior. I got this issue in ESB cluster. Hope
>> someone in the team will provide a proper answer for that error.
>>
>> Regards,
>> Dilshani
>>
>> On Mon, Nov 7, 2016 at 4:48 PM, Shazni Nazeer  wrote:
>>
>>> I get the following exception in the manager node when it's started
>>> first before worker nodes. Exception doesn't occur if the worker nodes
>>> started first. I have a scheduled task deployed in the setup.
>>>
>>> TID: [-1234] [] [2016-11-03 12:36:36,126] ERROR
>>> {org.wso2.carbon.mediation.ntask.NTaskTaskManager} - Scheduling task [[
>>> NTask::-1234::CalendarCleanupTask]::synapse.simple.quartz] FAILED.
>>> Error: No available task nodes for resolving a task l
>>> ocation {org.wso2.carbon.mediation.ntask.NTaskTaskManager}
>>> org.wso2.carbon.ntask.common.TaskException: No available task nodes for
>>> resolving a task location
>>>
>>> at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
>>> getTaskLocation(ClusteredTaskManager.java:232)
>>> at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
>>> locateMemberForTask(ClusteredTaskManager.java:209)
>>> at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
>>> getMemberIdFromTaskName(ClusteredTaskManager.java:283)
>>> at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
>>> scheduleTask(ClusteredTaskManager.java:91)
>>> at org.wso2.carbon.mediation.ntask.NTaskTaskManager.schedule(NT
>>> askTaskManager.java:103)
>>> at org.wso2.carbon.mediation.ntask.NTaskTaskManager.init(NTaskT
>>> askManager.java:352)
>>> at org.wso2.carbon.mediation.ntask.NTaskTaskManager.update(NTas
>>> kTaskManager.java:365)
>>> at org.wso2.carbon.mediation.ntask.internal.NtaskService.update
>>> AndCleanupObservers(NtaskService.java:103)
>>> at org.wso2.carbon.mediation.ntask.internal.NtaskService.setCon
>>> figurationContextService(NtaskService.java:96)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>> ssorImpl.java:57)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>> at org.eclipse.equinox.internal.ds.model.ComponentReference.bin
>>> d(ComponentReference.java:376)
>>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
>>> indReference(ServiceComponentProp.java:430)
>>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
>>> ind(ServiceComponentProp.java:218)
>>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
>>> uild(ServiceComponentProp.java:343)
>>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(
>>> InstanceProcess.java:620)
>>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(
>>> InstanceProcess.java:197)
>>> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolve
>>> r.java:343)
>>> at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SC
>>> RManager.java:222)
>>> at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.
>>> serviceChanged(FilteredServiceListener.java:107)
>>>
>>>
>>> According to [1] this is expected. Is there a fix for this to suppress
>>> the exception?
>>>
>>> [1] http://bugsbydilshani.blogspot.co.uk/2016/07/wso2esbclus
>>> ter-task-scheduling-error.html
>>>
>>> --
>>> Shazni Nazeer
>>> Associate Technical Lead | WSO2
>>>
>>> Mob : +94 37331
>>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>>> Blog : http://shazninazeer.blogspot.com
>>>
>>> 
>>>
>>
>>
>>
>> --
>> Best Regards,
>>
>> Dilshani Subasinghe
>> Software Engineer - QA *|* WSO2
>> lean *|* enterprise *|* middleware
>>
>> Mobile : +94773375185
>> Blog: dilshani.me
>>
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Sinthuja Rajendran*
> Technical Lead
> WSO2, Inc.:http://wso2.com
>
> Blog: http://sinthu-rajan.blogspot.com/
> Mobile: +94774273955
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 
https://pythagoreanscript.wordpress.com/
___
Dev mailing list

Re: [Dev] How to clear up the Registry Cache?

2016-11-07 Thread wenxzhen
Dear experts,


Please advice a way to clear up the Registry Cache, which is really good to 
have.


Thanks, Wenxing




-- Original --
From:  "wenxzhen";;
Date:  Nov 7, 2016
To:  "wenxzhen"; "Rajith Roshan"; 
Cc:  "dev"; 
Subject:  Re: [Dev] How to clear up the Registry Cache?



Appreciated if anyone can shed some light on how to clear up the Registry Cache.


Thanks, Wenxing


-- Original --
From:  "wenxzhen";;
Date:  Nov 7, 2016
To:  "Rajith Roshan"; 
Cc:  "dev"; 
Subject:  Re: [Dev] How to clear up the Registry Cache?



Hi Rajith,


You are right, there is no well defined way. Before deleting the UM data and 
Registry data, I have already deactivated the tenant. 


The exception below happened on my re-creation of the tenant with the same 
name. Please advice whether it's the problem that the Registry cache was not 
cleared up?


Thanks, Wenxing




-- Original --
From:  "Rajith Roshan";;
Send time: Monday, Nov 7, 2016 2:22 PM
To: "wenxzhen"; 
Cc: "KasunG Gajasinghe"; "dev"; 
Subject:  Re: [Dev] How to clear up the Registry Cache?



Hi,

ASFAIK there is no well defined way to delete a tenant. You can deactivate a 
tenant. If you are using custom code then this error may be due to starting a 
wrong tenant flow in your code. 


Thanks!
Rajith


On Mon, Nov 7, 2016 at 10:46 AM, wenxzhen  wrote:
Thanks to Lakshani and Kasun.



Regarding the TenantMgtListener extension, any reference or example to do the 
cache clearing since our application is a WEB application?


Thanks again, Wenxing




-- Original --
From:  "KasunG Gajasinghe";;
Send time: Monday, Nov 7, 2016 1:43 PM
To: "wenxzhen"; 
Cc: "dev"; 
Subject:  Re: [Dev] How to clear up the Registry Cache?





This sounds like a bug. When a tenant is deleted, the cache should be cleared 
automatically. You shouldn't have to wait for the periodic cache cleanup. 

My suggestion is to write a TenantMgtListener extension, and add it to the 
product. In there, you can add a cache clearing operation for the tenant 
pre/post delete method. 

On Monday, November 7, 2016, wenxzhen  wrote:
Dear all,


I am trying to remove a Tenant from the WSO2, but I found the following 
exception after removing a Tenant and then re-create it:


Caused by: java.lang.SecurityException: Illegal access attempt to cache ] owned 
by tenant {[testdomain7],[17]} by tenant {[testdomain7],[18]}
at org.wso2.carbon.caching.impl.Util.checkAccess(Util.java:46)
at 
org.wso2.carbon.caching.impl.CarbonCacheManager.getCache(CarbonCacheManager.java:111)
at 
org.wso2.carbon.registry.core.utils.RegistryUtils.getResourceCache(RegistryUtils.java:297)
at 
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.getCache(CacheBackedRegistry.java:62)
at 
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.resourceExists(CacheBackedRegistry.java:289)
at 
org.wso2.carbon.registry.core.session.UserRegistry.resourceExistsInternal(UserRegistry.java:770)
at 
org.wso2.carbon.registry.core.session.UserRegistry.access$800(UserRegistry.java:60)
at 
org.wso2.carbon.registry.core.session.UserRegistry$9.run(UserRegistry.java:753)
at 
org.wso2.carbon.registry.core.session.UserRegistry$9.run(UserRegistry.java:750)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.wso2.carbon.registry.core.session.UserRegistry.resourceExists(UserRegistry.java:750)
... 62 more



My question is how I can remove the related Registry cache of a tenant? Thank 
you very much.


Regards, Wenxing





-- 
Kasun Gajasinghe
Associate Technical Lead, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
phone: +1 650-745-4499, 77 678 0813 
 









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





-- 
Rajith Roshan

Software Engineer, WSO2 Inc.
 Mobile: +94-72-642-8350___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Why Deployment Synchronizer is running from a ScheduledThreadPoolExecutor?

2016-11-07 Thread Kishanthan Thangarajah
DepSynch update/commit on manager node is designed to run with deployment
scheduler task. So on every run, we check whether any changes to the local
repo and then commit those to remote. The above trace is for doing a svn
status check and find whether there are any local file changes
(modification, addition etc) before deciding on executing the svn commit
command.

The above can run only on a manager / read-write node. What's the impact
with performance? Are we seeing any bottleneck with this task running or is
the resource consumption?

On Mon, Nov 7, 2016 at 1:35 PM, Isuru Perera  wrote:

> Hi,
>
> When analyzing a performance issue using Java Flight Recorder, I noticed
> that the server is running Deployment Synchronizer task most of the time.
>
> Please see the stack trace below.
>
>
> Stack TraceSample CountPercentage(%)
> java.util.Stack.peek()201.661
>org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable.getCurrentState()
> 201.661
>   org.tmatesoft.sqljet.core.internal.table.
> SqlJetBtreeTable.getCursor()191.578
>  org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable.hasMoved()
> 110.914
> org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable.eof()
> 100.831
>org.tmatesoft.sqljet.core.internal.table.
> SqlJetBtreeTable.getRecord()80.664
>   org.tmatesoft.sqljet.core.internal.table.
> SqlJetBtreeTable.getValueMem(int)60.498
>  org.tmatesoft.sqljet.core.internal.table.
> SqlJetBtreeDataTable.getValueMem(int)60.498
> org.tmatesoft.sqljet.core.internal.table.
> SqlJetBtreeTable.getValueUncached(int)60.498
>org.tmatesoft.sqljet.core.internal.table.
> SqlJetBtreeTable.getValue(int)60.498
>   org.tmatesoft.sqljet.core.internal.table.
> SqlJetBtreeDataTable.getValue(int)60.498
>  org.tmatesoft.sqljet.core.internal.table.
> SqlJetBtreeTable.getValues()60.498
> org.tmatesoft.sqljet.core.
> internal.table.SqlJetTableDataCursor$16.run(SqlJetDb)60.498
>org.tmatesoft.sqljet.core.
> table.SqlJetDb$3.run(SqlJetEngine)60.498
>   org.tmatesoft.sqljet.core.
> table.engine.SqlJetEngine$12.runSynchronized(SqlJetEngine)60.498
>  org.tmatesoft.sqljet.core.
> table.engine.SqlJetEngine.runSynchronized(ISqlJetEngineSynchronized)
> 60.498
> org.tmatesoft.sqljet.core.
> table.engine.SqlJetEngine.runEngineTransaction(ISqlJetEngineTransaction,
> SqlJetTransactionMode)60.498
>
> org.tmatesoft.sqljet.core.table.SqlJetDb.runTransaction(ISqlJetTransaction,
> SqlJetTransactionMode)60.498
>
> org.tmatesoft.sqljet.core.table.SqlJetDb.runReadTransaction(ISqlJetTransaction)
> 60.498
>
> org.tmatesoft.sqljet.core.internal.table.SqlJetTableDataCursor.getRowValues()
> 60.498
>
> org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectStatement.getRowValues2(Map)
> 50.415
>
> org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectStatement.loadRowValues(boolean)
> 50.415
>
> org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectStatement.next()
> 50.415
>
> org.tmatesoft.svn.core.internal.wc17.db.SVNWCDb.addChildren(Set,
> SVNSqlJetStatement)20.166
>
> org.tmatesoft.svn.core.internal.wc17.db.SVNWCDb.gatherChildren(File,
> boolean, boolean)20.166
>
> org.tmatesoft.svn.core.internal.wc17.db.SVNWCDb.readChildren(File)
> 20.166
>
> org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCleanup.repairTimestamps(SVNWCContext,
> File)20.166
>
> org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCleanup.repairTimestamps(SVNWCContext,
> File)20.166
>
> org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCleanup.repairTimestamps(SVNWCContext,
> File)20.166
>
> org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCleanup.repairTimestamps(SVNWCContext,
> File)20.166
>
> org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCleanup.cleanupInternal(SVNWCContext,
> File)10.083
>
>  org.tmatesoft.svn.core.
> internal.wc2.ng.SvnNgCleanup.cleanup(SVNWCContext, File)10.083
>
> org.tmatesoft.svn.core.
> internal.wc2.ng.SvnNgCleanup.run(SVNWCContext)10.083
>
>org.tmatesoft.svn.core.
> internal.wc2.ng.SvnNgCleanup.run(SVNWCContext)10.083
>
>   org.tmatesoft.svn.core.
> internal.wc2.ng.SvnNgOperationRunner.run()10.083
>
>  org.tmatesoft.svn.core.
> internal.wc2.SvnOperationRunner.run(SvnOperation)10.083
>
>
> 

Re: [Dev] How to clear up the Registry Cache?

2016-11-07 Thread wenxzhen
Dear experts,


Please advice a way to clear up the Registry Cache, which is really good to 
have.


Thanks, Wenxing




-- Original --
From:  "wenxzhen";;
Date:  Nov 7, 2016
To:  "wenxzhen"; "Rajith Roshan"; 
Cc:  "dev"; 
Subject:  Re: [Dev] How to clear up the Registry Cache?



Appreciated if anyone can shed some light on how to clear up the Registry Cache.


Thanks, Wenxing


-- Original --
From:  "wenxzhen";;
Date:  Nov 7, 2016
To:  "Rajith Roshan"; 
Cc:  "dev"; 
Subject:  Re: [Dev] How to clear up the Registry Cache?



Hi Rajith,


You are right, there is no well defined way. Before deleting the UM data and 
Registry data, I have already deactivated the tenant. 


The exception below happened on my re-creation of the tenant with the same 
name. Please advice whether it's the problem that the Registry cache was not 
cleared up?


Thanks, Wenxing




-- Original --
From:  "Rajith Roshan";;
Send time: Monday, Nov 7, 2016 2:22 PM
To: "wenxzhen"; 
Cc: "KasunG Gajasinghe"; "dev"; 
Subject:  Re: [Dev] How to clear up the Registry Cache?



Hi,

ASFAIK there is no well defined way to delete a tenant. You can deactivate a 
tenant. If you are using custom code then this error may be due to starting a 
wrong tenant flow in your code. 


Thanks!
Rajith


On Mon, Nov 7, 2016 at 10:46 AM, wenxzhen  wrote:
Thanks to Lakshani and Kasun.



Regarding the TenantMgtListener extension, any reference or example to do the 
cache clearing since our application is a WEB application?


Thanks again, Wenxing




-- Original --
From:  "KasunG Gajasinghe";;
Send time: Monday, Nov 7, 2016 1:43 PM
To: "wenxzhen"; 
Cc: "dev"; 
Subject:  Re: [Dev] How to clear up the Registry Cache?





This sounds like a bug. When a tenant is deleted, the cache should be cleared 
automatically. You shouldn't have to wait for the periodic cache cleanup. 

My suggestion is to write a TenantMgtListener extension, and add it to the 
product. In there, you can add a cache clearing operation for the tenant 
pre/post delete method. 

On Monday, November 7, 2016, wenxzhen  wrote:
Dear all,


I am trying to remove a Tenant from the WSO2, but I found the following 
exception after removing a Tenant and then re-create it:


Caused by: java.lang.SecurityException: Illegal access attempt to cache ] owned 
by tenant {[testdomain7],[17]} by tenant {[testdomain7],[18]}
at org.wso2.carbon.caching.impl.Util.checkAccess(Util.java:46)
at 
org.wso2.carbon.caching.impl.CarbonCacheManager.getCache(CarbonCacheManager.java:111)
at 
org.wso2.carbon.registry.core.utils.RegistryUtils.getResourceCache(RegistryUtils.java:297)
at 
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.getCache(CacheBackedRegistry.java:62)
at 
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.resourceExists(CacheBackedRegistry.java:289)
at 
org.wso2.carbon.registry.core.session.UserRegistry.resourceExistsInternal(UserRegistry.java:770)
at 
org.wso2.carbon.registry.core.session.UserRegistry.access$800(UserRegistry.java:60)
at 
org.wso2.carbon.registry.core.session.UserRegistry$9.run(UserRegistry.java:753)
at 
org.wso2.carbon.registry.core.session.UserRegistry$9.run(UserRegistry.java:750)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.wso2.carbon.registry.core.session.UserRegistry.resourceExists(UserRegistry.java:750)
... 62 more



My question is how I can remove the related Registry cache of a tenant? Thank 
you very much.


Regards, Wenxing





-- 
Kasun Gajasinghe
Associate Technical Lead, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
phone: +1 650-745-4499, 77 678 0813 
 









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





-- 
Rajith Roshan

Software Engineer, WSO2 Inc.
 Mobile: +94-72-642-8350___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Shan Mahanama

2016-11-07 Thread Prakhash Sivakumar
Congrats Shan !!!

On Tue, Nov 8, 2016 at 9:51 AM, Irunika Weeraratne  wrote:

> Congratulations Shan!!!
>
> Best regards,
> Irunika
>
> *Irunika Weeraratne*
> *Software Engineer | WSO2, Inc. *
> *Email : irun...@wso2.com *
> *LinkedIn : https://lk.linkedin.com/in/irunikaw
> *
> *Mobile : +94712403314 <%2B94712403314>*
> *Lean . Enterprise . Middleware*
>
>
> On Tue, Nov 8, 2016 at 9:06 AM, Eranda Rajapakshe 
> wrote:
>
>> Congrats Shan!
>>
>> On Tue, Nov 8, 2016 at 7:51 AM, Yasima Dewmini  wrote:
>>
>>> Congratz Shan!
>>>
>>> On Mon, Nov 7, 2016 at 11:47 PM, Menaka Jayawardena 
>>> wrote:
>>>
 Congratz Shan!

 On Mon, Nov 7, 2016 at 1:21 PM, Fathima Dilhasha 
 wrote:

> Congratz Shan :)
>
> On Mon, Nov 7, 2016 at 1:05 PM, Thanuja Uruththirakodeeswaran <
> thanu...@wso2.com> wrote:
>
>> Congratz Shan!!!
>>
>> On Mon, Nov 7, 2016 at 12:14 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> It's my pleasure to announce Shan Mahanama as a WSO2 Committer. Shan
>>> has been a valuable contributor for Platform team. And in recognition of
>>> his contribution to WSO2, he has been voted as a WSO2 Committer.
>>>
>>> Shan, Congratulations and keep up the good work!
>>>
>>> Regards,
>>> Nira.
>>>
>>> --
>>>
>>>
>>> *Niranjan Karunanandham*
>>> Associate Technical Lead - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanuja Uruththirakodeeswaran
>> Software Engineer
>> WSO2 Inc.;http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 774363167
>>
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Fathima Dilhasha
> *Software Engineer*
> Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
> <%2B94%20%280%29%20773%20451194>
> dilha...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Menaka Jayawardena*
 *Software Engineer - WSO2 Inc*
 *Tel : 071 350 5470/ 071 885 1183*


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


>>>
>>>
>>> --
>>> http://wso2.com/signatureYasima Dewmini
>>> Software Engineer, WSO2, Inc.
>>> Email: yas...@wso2.com
>>> Mobile: +94713117081
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Eranda Rajapakshe*
>> Software Engineer
>> WSO2 Inc.
>> Mobile : +94784822608
>>
>> ___
>> 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
>
>


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


Re: [Dev] WSO2 Committers += Shan Mahanama

2016-11-07 Thread Irunika Weeraratne
Congratulations Shan!!!

Best regards,
Irunika

*Irunika Weeraratne*
*Software Engineer | WSO2, Inc. *
*Email : irun...@wso2.com *
*LinkedIn : https://lk.linkedin.com/in/irunikaw
*
*Mobile : +94712403314*
*Lean . Enterprise . Middleware*


On Tue, Nov 8, 2016 at 9:06 AM, Eranda Rajapakshe  wrote:

> Congrats Shan!
>
> On Tue, Nov 8, 2016 at 7:51 AM, Yasima Dewmini  wrote:
>
>> Congratz Shan!
>>
>> On Mon, Nov 7, 2016 at 11:47 PM, Menaka Jayawardena 
>> wrote:
>>
>>> Congratz Shan!
>>>
>>> On Mon, Nov 7, 2016 at 1:21 PM, Fathima Dilhasha 
>>> wrote:
>>>
 Congratz Shan :)

 On Mon, Nov 7, 2016 at 1:05 PM, Thanuja Uruththirakodeeswaran <
 thanu...@wso2.com> wrote:

> Congratz Shan!!!
>
> On Mon, Nov 7, 2016 at 12:14 PM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi all,
>>
>> It's my pleasure to announce Shan Mahanama as a WSO2 Committer. Shan
>> has been a valuable contributor for Platform team. And in recognition of
>> his contribution to WSO2, he has been voted as a WSO2 Committer.
>>
>> Shan, Congratulations and keep up the good work!
>>
>> Regards,
>> Nira.
>>
>> --
>>
>>
>> *Niranjan Karunanandham*
>> Associate Technical Lead - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanuja Uruththirakodeeswaran
> Software Engineer
> WSO2 Inc.;http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 774363167
>
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Fathima Dilhasha
 *Software Engineer*
 Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
 <%2B94%20%280%29%20773%20451194>
 dilha...@wso2.com

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


>>>
>>>
>>> --
>>> *Menaka Jayawardena*
>>> *Software Engineer - WSO2 Inc*
>>> *Tel : 071 350 5470/ 071 885 1183*
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> http://wso2.com/signatureYasima Dewmini
>> Software Engineer, WSO2, Inc.
>> Email: yas...@wso2.com
>> Mobile: +94713117081
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Eranda Rajapakshe*
> Software Engineer
> WSO2 Inc.
> Mobile : +94784822608
>
> ___
> 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] Pass value from request to Rule mediator

2016-11-07 Thread Niranjan Karunanandham
Hi Dev,

Is it possible to pass a value (obtained from request) to a Rule mediator?
In my use-case, I need to process a response I obtained in the ESB using a
Rule mediator based on a value which is obtained in the request from the
client. Currently I was able to do it by using a enrich mediator and adding
the value (request) into the response and pass it to the rule mediator.

Regards,
Nira

-- 


*Niranjan Karunanandham*
Associate Technical Lead - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Shan Mahanama

2016-11-07 Thread Eranda Rajapakshe
Congrats Shan!

On Tue, Nov 8, 2016 at 7:51 AM, Yasima Dewmini  wrote:

> Congratz Shan!
>
> On Mon, Nov 7, 2016 at 11:47 PM, Menaka Jayawardena 
> wrote:
>
>> Congratz Shan!
>>
>> On Mon, Nov 7, 2016 at 1:21 PM, Fathima Dilhasha 
>> wrote:
>>
>>> Congratz Shan :)
>>>
>>> On Mon, Nov 7, 2016 at 1:05 PM, Thanuja Uruththirakodeeswaran <
>>> thanu...@wso2.com> wrote:
>>>
 Congratz Shan!!!

 On Mon, Nov 7, 2016 at 12:14 PM, Niranjan Karunanandham <
 niran...@wso2.com> wrote:

> Hi all,
>
> It's my pleasure to announce Shan Mahanama as a WSO2 Committer. Shan
> has been a valuable contributor for Platform team. And in recognition of
> his contribution to WSO2, he has been voted as a WSO2 Committer.
>
> Shan, Congratulations and keep up the good work!
>
> Regards,
> Nira.
>
> --
>
>
> *Niranjan Karunanandham*
> Associate Technical Lead - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Thanuja Uruththirakodeeswaran
 Software Engineer
 WSO2 Inc.;http://wso2.com
 lean.enterprise.middleware

 mobile: +94 774363167

 

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


>>>
>>>
>>> --
>>> Fathima Dilhasha
>>> *Software Engineer*
>>> Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
>>> <%2B94%20%280%29%20773%20451194>
>>> dilha...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Menaka Jayawardena*
>> *Software Engineer - WSO2 Inc*
>> *Tel : 071 350 5470/ 071 885 1183*
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> http://wso2.com/signatureYasima Dewmini
> Software Engineer, WSO2, Inc.
> Email: yas...@wso2.com
> Mobile: +94713117081
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Eranda Rajapakshe*
Software Engineer
WSO2 Inc.
Mobile : +94784822608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Shan Mahanama

2016-11-07 Thread Yasima Dewmini
Congratz Shan!

On Mon, Nov 7, 2016 at 11:47 PM, Menaka Jayawardena  wrote:

> Congratz Shan!
>
> On Mon, Nov 7, 2016 at 1:21 PM, Fathima Dilhasha 
> wrote:
>
>> Congratz Shan :)
>>
>> On Mon, Nov 7, 2016 at 1:05 PM, Thanuja Uruththirakodeeswaran <
>> thanu...@wso2.com> wrote:
>>
>>> Congratz Shan!!!
>>>
>>> On Mon, Nov 7, 2016 at 12:14 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi all,

 It's my pleasure to announce Shan Mahanama as a WSO2 Committer. Shan
 has been a valuable contributor for Platform team. And in recognition of
 his contribution to WSO2, he has been voted as a WSO2 Committer.

 Shan, Congratulations and keep up the good work!

 Regards,
 Nira.

 --


 *Niranjan Karunanandham*
 Associate Technical Lead - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com


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


>>>
>>>
>>> --
>>> Thanuja Uruththirakodeeswaran
>>> Software Engineer
>>> WSO2 Inc.;http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 774363167
>>>
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Fathima Dilhasha
>> *Software Engineer*
>> Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
>> <%2B94%20%280%29%20773%20451194>
>> dilha...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Menaka Jayawardena*
> *Software Engineer - WSO2 Inc*
> *Tel : 071 350 5470/ 071 885 1183*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
http://wso2.com/signatureYasima Dewmini
Software Engineer, WSO2, Inc.
Email: yas...@wso2.com
Mobile: +94713117081
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API Manager - periodic failure of OAuth2Service for AccessTokens via the publisher API

2016-11-07 Thread Vanjikumaran Sivajothy
@malintha,

I also facing this in the KM nodes on the distributed deployment.

On Mon, Sep 19, 2016 at 4:25 AM, Malintha Amarasinghe 
wrote:

> Hi,
>
> Can you please share the exact API calls you used to reproduce the issue?
>
> Thanks!
>
> On Mon, Sep 19, 2016 at 4:40 PM, Alan Tucker Spida Solutions <
> a...@spidasolutions.com> wrote:
>
>> We are periodically seeing failures when trying to request Access Tokens
>> via the APIM publisher API. An instance of APIM will perform correctly
>> returning AccessTokens for a time. Occasionally, after restart it will fail
>> when requesting access tokens via the publisher API. After subsequent
>> restarts the same instance may or may not then return to operating
>> correctly. The test scenario in all cases is the same.
>>
>> Note that if the user (that is being used to request an access token)
>> logs into the API store of the APIM instance, subsequent requests via the
>> Publisher API will then succeed. This appears to be reproducible.
>>
>> On failure the typical stack trace below is seen:
>>
>> [2016-09-19 09:52:31,163]  INFO - TokenMgtDAO Thread pool size for
>> session persistent consumer : 100
>> [2016-09-19 09:52:31,262]  INFO - OAuthServerConfiguration The default
>> OAuth token issuer will be used. No custom token generator is set.
>> [2016-09-19 09:52:31,263]  INFO - OAuthServerConfiguration The default
>> Identity OAuth token issuer will be used. No custom token generator is set.
>> [2016-09-19 09:52:33,516]  WARN - AccessConfiguration Error loading
>> properties from file: access-log.properties
>> [2016-09-19 09:52:33,594]  INFO - TimeoutHandler This engine will expire
>> all callbacks after : 120 seconds, irrespective of the timeout action,
>> after the specified or optional timeout
>> [2016-09-19 09:52:33,798] ERROR - OAuth2Service Error occurred while
>> issuing the access token for Client ID : ***, User ID
>> , Scope : [apim:api_create] and Grant Type : password
>> java.lang.NullPointerException
>> at org.wso2.carbon.apimgt.impl.utils.APIUtil.getRESTAPIScopesFr
>> omConfig(APIUtil.java:5130)
>> at org.wso2.carbon.apimgt.keymgt.ScopesIssuer.setScopes(ScopesI
>> ssuer.java:100)
>> at org.wso2.carbon.apimgt.keymgt.handlers.ExtendedPasswordGrant
>> Handler.validateScope(ExtendedPasswordGrantHandler.java:168)
>> at org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.
>> issue(AccessTokenIssuer.java:226)
>> at org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessTok
>> en(OAuth2Service.java:219)
>> at org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEnd
>> point.getAccessToken(OAuth2TokenEndpoint.java:246)
>> at org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEnd
>> point.issueAccessToken(OAuth2TokenEndpoint.java:110)
>>
>>
>>
>>
>> [image: Spida Solutions] 
>> *Alan Tucker *
>> *Spida Solutions *
>> London • Bath • UK
>> +44 (0)78 0308 4376 <+44-780-308-4376>
>> +44 (0)12 4981 5081 <+44-12-4981-5081>
>> www.spidasolutions.com 
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Malintha Amarasinghe
> Software Engineer
> *WSO2, Inc. - lean | enterprise | middleware*
> http://wso2.com/
>
> Mobile : +94 712383306
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vanjikumaran Sivajothy
*Associate Technical Lead*
*WSO2 Inc. http://wso2.com *
 *+1-925-464-6816*
[image: Facebook]  [image: Twitter]
 [image: LinkedIn]
 [image:
Blogger]  [image: SlideShare]


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


Re: [Dev] WSO2 Committers += Shan Mahanama

2016-11-07 Thread Menaka Jayawardena
Congratz Shan!

On Mon, Nov 7, 2016 at 1:21 PM, Fathima Dilhasha  wrote:

> Congratz Shan :)
>
> On Mon, Nov 7, 2016 at 1:05 PM, Thanuja Uruththirakodeeswaran <
> thanu...@wso2.com> wrote:
>
>> Congratz Shan!!!
>>
>> On Mon, Nov 7, 2016 at 12:14 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> It's my pleasure to announce Shan Mahanama as a WSO2 Committer. Shan has
>>> been a valuable contributor for Platform team. And in recognition of his
>>> contribution to WSO2, he has been voted as a WSO2 Committer.
>>>
>>> Shan, Congratulations and keep up the good work!
>>>
>>> Regards,
>>> Nira.
>>>
>>> --
>>>
>>>
>>> *Niranjan Karunanandham*
>>> Associate Technical Lead - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanuja Uruththirakodeeswaran
>> Software Engineer
>> WSO2 Inc.;http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 774363167
>>
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Fathima Dilhasha
> *Software Engineer*
> Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
> <%2B94%20%280%29%20773%20451194>
> dilha...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Menaka Jayawardena*
*Software Engineer - WSO2 Inc*
*Tel : 071 350 5470/ 071 885 1183*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-11-07 Thread Sinthuja Ragendran
Hi,

Have you configured  parameter in the task-config.xml?
AFAIR the server will wait for the configured number of nodes to be present
before trying to schedule the task.

Thanks,
Sinthuja.

On Mon, Nov 7, 2016 at 4:57 PM, Dilshani Subasinghe 
wrote:

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


-- 
*Sinthuja Rajendran*
Technical Lead
WSO2, Inc.:http://wso2.com

Blog: http://sinthu-rajan.blogspot.com/
Mobile: +94774273955
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] No available task nodes for resolving a task

2016-11-07 Thread Shazni Nazeer
I get the following exception in the manager node when it's started first
before worker nodes. Exception doesn't occur if the worker nodes started
first. I have a scheduled task deployed in the setup.

TID: [-1234] [] [2016-11-03 12:36:36,126] ERROR
{org.wso2.carbon.mediation.ntask.NTaskTaskManager}
- Scheduling task [[
NTask::-1234::CalendarCleanupTask]::synapse.simple.quartz] FAILED. Error:
No available task nodes for resolving a task l
ocation {org.wso2.carbon.mediation.ntask.NTaskTaskManager}
org.wso2.carbon.ntask.common.TaskException: No available task nodes for
resolving a task location

at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
getTaskLocation(ClusteredTaskManager.java:232)
at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
locateMemberForTask(ClusteredTaskManager.java:209)
at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
getMemberIdFromTaskName(ClusteredTaskManager.java:283)
at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
scheduleTask(ClusteredTaskManager.java:91)
at org.wso2.carbon.mediation.ntask.NTaskTaskManager.
schedule(NTaskTaskManager.java:103)
at org.wso2.carbon.mediation.ntask.NTaskTaskManager.init(
NTaskTaskManager.java:352)
at org.wso2.carbon.mediation.ntask.NTaskTaskManager.update(
NTaskTaskManager.java:365)
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 org.eclipse.equinox.internal.ds.model.ComponentReference.
bind(ComponentReference.java:376)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(
ServiceComponentProp.java:430)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.
bind(ServiceComponentProp.java:218)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.
build(ServiceComponentProp.java:343)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(
InstanceProcess.java:620)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(
InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(
SCRManager.java:222)
at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.
serviceChanged(FilteredServiceListener.java:107)


According to [1] this is expected. Is there a fix for this to suppress the
exception?

[1]
http://bugsbydilshani.blogspot.co.uk/2016/07/wso2esbcluster-task-scheduling-error.html

-- 
Shazni Nazeer
Associate Technical Lead | WSO2

Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com


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


Re: [Dev] WSO2 IS tests automation

2016-11-07 Thread Lakshani Gamage
Hi Hanen,

There are IS automation tests in [1]. See if they are useful.

[1]
https://github.com/wso2/product-is/tree/master/modules/integration/tests-integration/tests-backend

Thanks,
Lakshani.

On Mon, Nov 7, 2016 at 9:35 PM, Hanen Ben Rhouma  wrote:

> Hello guys,
>
> Are there some examples for test automation to WSO2 IS features including
> Entitlement/Authentication and User management?
>
>
> Regards,
> Hanen
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Lakshani Gamage

*Software Engineer, WSO2*

*Mobile : +94 71 5478184 <%2B94%20%280%29%20773%20451194>*
*Blog : http://lakshanigamage.blogspot.com/
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 IS tests automation

2016-11-07 Thread Hanen Ben Rhouma
Hello guys,

Are there some examples for test automation to WSO2 IS features including
Entitlement/Authentication and User management?


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


Re: [Dev] API Manager 1.7 Payload missing when reach my app

2016-11-07 Thread James Ong
Hi Lakshani,

That's great. Thank you.

Regards,
James Ong

On Mon, Nov 7, 2016 at 11:45 PM, Lakshani Gamage  wrote:

> Hi James.
>
> You can republish APIs and it will regenerate API synapse files according
> to updated velocity template.
>
> Thanks,
> Lakshani.
>
> On Mon, Nov 7, 2016 at 8:06 PM, James Ong  wrote:
>
>> Hi Lakshani,
>>
>> Thanks for sharing, velocity template for new api creation right? mean i
>> still need to manual insert.
>>
>> Regards,
>> James Ong
>>
>> On Mon, Nov 7, 2016 at 10:29 PM, Lakshani Gamage 
>> wrote:
>>
>>> Hi James,
>>>
>>> You can disable chunking by adding a custom sequence as in [2]. To do
>>> that in a single place, use velocity template approach [3].
>>>
>>> [2] http://sumedhask.blogspot.com/2015/04/disable-chunking-in-ap
>>> is-of-wso2-api.html
>>> [3] http://hoosierapi.blogspot.com/2014/07/wso2-api-manager-prox
>>> ing-without.html
>>>
>>> Thanks,
>>> Lakshani.
>>>
>>> On Mon, Nov 7, 2016 at 7:51 PM, James Ong  wrote:
>>>
 Problem solved.

 because of missing content-length

 adding following two property to   for each API.

 >>> scope="axis2"/ value="true">

 any way to make this changes centralize?

 Regards,
 James Ong

 On Mon, Nov 7, 2016 at 10:06 PM, James Ong  wrote:

> Hi Lakshani,
>
> Based on the debug output, the only difference I suspect is outgoing
> request is using chunked data.
>
> Any possible to just pass the same format as input ?
>
> TID: [0] [AM] [2016-11-07 17:34:28,316] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "POST /authUser/1.0.1
> HTTP/1.1[\r][\n]" {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Host:
> gogolf.my:8243[\r][\n]" {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Connection:
> keep-alive[\r][\n]" {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Content-Length:
> 142[\r][\n]" {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "User-Agent:
> Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like 
> Gecko)
> Chrome/54.0.2840.87 Safari/537.36[\r][\n]" {org.apache.synapse.transport.
> http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Origin:
> chrome-extension://apcedakaoficjlofohhcmkkljehnmebp[\r][\n]"
> {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Authorization: Bearer
> 307de5aba12252160bd6afbefcb9673[\r][\n]"
> {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Content-Type:
> application/json[\r][\n]" {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Accept: */*[\r][\n]"
> {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Accept-Encoding:
> gzip, deflate, br[\r][\n]" {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Accept-Language:
> en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4,zh-TW;q=0.2,ms;q=0.2[\r][\n]"
> {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Cookie:
> roundcube_cookies=enabled; __utma=246744978.472091108.147
> 6716658.1478187773.1478356567.13; __utmz=246744978.1477745778.1.
> 1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);
> _ga=GA1.2.472091108.1476716658; __unam=7974974-158108304d3-5d7b376d-349;
> region3_registry_menu=visible; menuPanel=visible; menuPanelType=config;
> region1_configure_menu=visible; i18next=en-US;
> UserFrosting=c494rtv2r3ctf7kg40msgl3716[\r][\n]"
> {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "[\r][\n]"
> {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "{[\n]"
> {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "  "authUserRequest":
> {[\n]" 

Re: [Dev] API Manager 1.7 Payload missing when reach my app

2016-11-07 Thread Lakshani Gamage
Hi James.

You can republish APIs and it will regenerate API synapse files according
to updated velocity template.

Thanks,
Lakshani.

On Mon, Nov 7, 2016 at 8:06 PM, James Ong  wrote:

> Hi Lakshani,
>
> Thanks for sharing, velocity template for new api creation right? mean i
> still need to manual insert.
>
> Regards,
> James Ong
>
> On Mon, Nov 7, 2016 at 10:29 PM, Lakshani Gamage 
> wrote:
>
>> Hi James,
>>
>> You can disable chunking by adding a custom sequence as in [2]. To do
>> that in a single place, use velocity template approach [3].
>>
>> [2] http://sumedhask.blogspot.com/2015/04/disable-chunking-in-ap
>> is-of-wso2-api.html
>> [3] http://hoosierapi.blogspot.com/2014/07/wso2-api-manager-prox
>> ing-without.html
>>
>> Thanks,
>> Lakshani.
>>
>> On Mon, Nov 7, 2016 at 7:51 PM, James Ong  wrote:
>>
>>> Problem solved.
>>>
>>> because of missing content-length
>>>
>>> adding following two property to   for each API.
>>>
>>> >> scope="axis2"/>>> value="true">
>>>
>>> any way to make this changes centralize?
>>>
>>> Regards,
>>> James Ong
>>>
>>> On Mon, Nov 7, 2016 at 10:06 PM, James Ong  wrote:
>>>
 Hi Lakshani,

 Based on the debug output, the only difference I suspect is outgoing
 request is using chunked data.

 Any possible to just pass the same format as input ?

 TID: [0] [AM] [2016-11-07 17:34:28,316] DEBUG
 {org.apache.synapse.transport.http.wire} -  >> "POST /authUser/1.0.1
 HTTP/1.1[\r][\n]" {org.apache.synapse.transport.http.wire}
 TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
 {org.apache.synapse.transport.http.wire} -  >> "Host:
 gogolf.my:8243[\r][\n]" {org.apache.synapse.transport.http.wire}
 TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
 {org.apache.synapse.transport.http.wire} -  >> "Connection:
 keep-alive[\r][\n]" {org.apache.synapse.transport.http.wire}
 TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
 {org.apache.synapse.transport.http.wire} -  >> "Content-Length:
 142[\r][\n]" {org.apache.synapse.transport.http.wire}
 TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
 {org.apache.synapse.transport.http.wire} -  >> "User-Agent:
 Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
 Chrome/54.0.2840.87 Safari/537.36[\r][\n]" {org.apache.synapse.transport.
 http.wire}
 TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
 {org.apache.synapse.transport.http.wire} -  >> "Origin:
 chrome-extension://apcedakaoficjlofohhcmkkljehnmebp[\r][\n]"
 {org.apache.synapse.transport.http.wire}
 TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
 {org.apache.synapse.transport.http.wire} -  >> "Authorization: Bearer
 307de5aba12252160bd6afbefcb9673[\r][\n]" {org.apache.synapse.transport.
 http.wire}
 TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
 {org.apache.synapse.transport.http.wire} -  >> "Content-Type:
 application/json[\r][\n]" {org.apache.synapse.transport.http.wire}
 TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
 {org.apache.synapse.transport.http.wire} -  >> "Accept: */*[\r][\n]"
 {org.apache.synapse.transport.http.wire}
 TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
 {org.apache.synapse.transport.http.wire} -  >> "Accept-Encoding: gzip,
 deflate, br[\r][\n]" {org.apache.synapse.transport.http.wire}
 TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
 {org.apache.synapse.transport.http.wire} -  >> "Accept-Language:
 en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4,zh-TW;q=0.2,ms;q=0.2[\r][\n]"
 {org.apache.synapse.transport.http.wire}
 TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
 {org.apache.synapse.transport.http.wire} -  >> "Cookie:
 roundcube_cookies=enabled; __utma=246744978.472091108.147
 6716658.1478187773.1478356567.13; __utmz=246744978.1477745778.1.
 1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);
 _ga=GA1.2.472091108.1476716658; __unam=7974974-158108304d3-5d7b376d-349;
 region3_registry_menu=visible; menuPanel=visible; menuPanelType=config;
 region1_configure_menu=visible; i18next=en-US;
 UserFrosting=c494rtv2r3ctf7kg40msgl3716[\r][\n]"
 {org.apache.synapse.transport.http.wire}
 TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
 {org.apache.synapse.transport.http.wire} -  >> "[\r][\n]"
 {org.apache.synapse.transport.http.wire}
 TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
 {org.apache.synapse.transport.http.wire} -  >> "{[\n]"
 {org.apache.synapse.transport.http.wire}
 TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
 {org.apache.synapse.transport.http.wire} -  >> "  "authUserRequest":
 {[\n]" {org.apache.synapse.transport.http.wire}
 TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
 {org.apache.synapse.transport.http.wire} -  >> "
  "requestTimestamp": "20160920131022930",[\n]"
 {org.apache.synapse.transport.http.wire}
 TID: [0] [AM] [2016-11-07 

Re: [Dev] API Manager 1.7 Payload missing when reach my app

2016-11-07 Thread James Ong
Hi Lakshani,

Thanks for sharing, velocity template for new api creation right? mean i
still need to manual insert.

Regards,
James Ong

On Mon, Nov 7, 2016 at 10:29 PM, Lakshani Gamage  wrote:

> Hi James,
>
> You can disable chunking by adding a custom sequence as in [2]. To do that
> in a single place, use velocity template approach [3].
>
> [2] http://sumedhask.blogspot.com/2015/04/disable-chunking-in-ap
> is-of-wso2-api.html
> [3] http://hoosierapi.blogspot.com/2014/07/wso2-api-manager-
> proxing-without.html
>
> Thanks,
> Lakshani.
>
> On Mon, Nov 7, 2016 at 7:51 PM, James Ong  wrote:
>
>> Problem solved.
>>
>> because of missing content-length
>>
>> adding following two property to   for each API.
>>
>> > scope="axis2"/>> value="true">
>>
>> any way to make this changes centralize?
>>
>> Regards,
>> James Ong
>>
>> On Mon, Nov 7, 2016 at 10:06 PM, James Ong  wrote:
>>
>>> Hi Lakshani,
>>>
>>> Based on the debug output, the only difference I suspect is outgoing
>>> request is using chunked data.
>>>
>>> Any possible to just pass the same format as input ?
>>>
>>> TID: [0] [AM] [2016-11-07 17:34:28,316] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  >> "POST /authUser/1.0.1
>>> HTTP/1.1[\r][\n]" {org.apache.synapse.transport.http.wire}
>>> TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  >> "Host:
>>> gogolf.my:8243[\r][\n]" {org.apache.synapse.transport.http.wire}
>>> TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  >> "Connection:
>>> keep-alive[\r][\n]" {org.apache.synapse.transport.http.wire}
>>> TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  >> "Content-Length:
>>> 142[\r][\n]" {org.apache.synapse.transport.http.wire}
>>> TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  >> "User-Agent: Mozilla/5.0
>>> (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
>>> Chrome/54.0.2840.87 Safari/537.36[\r][\n]" {org.apache.synapse.transport.
>>> http.wire}
>>> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  >> "Origin:
>>> chrome-extension://apcedakaoficjlofohhcmkkljehnmebp[\r][\n]"
>>> {org.apache.synapse.transport.http.wire}
>>> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  >> "Authorization: Bearer
>>> 307de5aba12252160bd6afbefcb9673[\r][\n]" {org.apache.synapse.transport.
>>> http.wire}
>>> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  >> "Content-Type:
>>> application/json[\r][\n]" {org.apache.synapse.transport.http.wire}
>>> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  >> "Accept: */*[\r][\n]"
>>> {org.apache.synapse.transport.http.wire}
>>> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  >> "Accept-Encoding: gzip,
>>> deflate, br[\r][\n]" {org.apache.synapse.transport.http.wire}
>>> TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  >> "Accept-Language:
>>> en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4,zh-TW;q=0.2,ms;q=0.2[\r][\n]"
>>> {org.apache.synapse.transport.http.wire}
>>> TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  >> "Cookie:
>>> roundcube_cookies=enabled; __utma=246744978.472091108.147
>>> 6716658.1478187773.1478356567.13; __utmz=246744978.1477745778.1.
>>> 1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);
>>> _ga=GA1.2.472091108.1476716658; __unam=7974974-158108304d3-5d7b376d-349;
>>> region3_registry_menu=visible; menuPanel=visible; menuPanelType=config;
>>> region1_configure_menu=visible; i18next=en-US;
>>> UserFrosting=c494rtv2r3ctf7kg40msgl3716[\r][\n]"
>>> {org.apache.synapse.transport.http.wire}
>>> TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  >> "[\r][\n]"
>>> {org.apache.synapse.transport.http.wire}
>>> TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  >> "{[\n]"
>>> {org.apache.synapse.transport.http.wire}
>>> TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  >> "  "authUserRequest":
>>> {[\n]" {org.apache.synapse.transport.http.wire}
>>> TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  >> ""requestTimestamp":
>>> "20160920131022930",[\n]" {org.apache.synapse.transport.http.wire}
>>> TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  >> ""username": "
>>> x...@yahoo.com",[\n]" {org.apache.synapse.transport.http.wire}
>>> TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
>>> {org.apache.synapse.transport.http.wire} -  >> ""password":
>>> "."[\n]" 

Re: [Dev] API Manager 1.7 Payload missing when reach my app

2016-11-07 Thread James Ong
Problem solved.

because of missing content-length

adding following two property to   for each API.



any way to make this changes centralize?

Regards,
James Ong

On Mon, Nov 7, 2016 at 10:06 PM, James Ong  wrote:

> Hi Lakshani,
>
> Based on the debug output, the only difference I suspect is outgoing
> request is using chunked data.
>
> Any possible to just pass the same format as input ?
>
> TID: [0] [AM] [2016-11-07 17:34:28,316] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "POST /authUser/1.0.1
> HTTP/1.1[\r][\n]" {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Host:
> gogolf.my:8243[\r][\n]" {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Connection:
> keep-alive[\r][\n]" {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Content-Length:
> 142[\r][\n]" {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "User-Agent: Mozilla/5.0
> (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
> Chrome/54.0.2840.87 Safari/537.36[\r][\n]" {org.apache.synapse.transport.
> http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Origin:
> chrome-extension://apcedakaoficjlofohhcmkkljehnmebp[\r][\n]"
> {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Authorization: Bearer
> 307de5aba12252160bd6afbefcb9673[\r][\n]" {org.apache.synapse.transport.
> http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Content-Type:
> application/json[\r][\n]" {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Accept: */*[\r][\n]"
> {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Accept-Encoding: gzip,
> deflate, br[\r][\n]" {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Accept-Language:
> en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4,zh-TW;q=0.2,ms;q=0.2[\r][\n]"
> {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "Cookie:
> roundcube_cookies=enabled; __utma=246744978.472091108.
> 1476716658.1478187773.1478356567.13; __utmz=246744978.1477745778.1.
> 1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); 
> _ga=GA1.2.472091108.1476716658;
> __unam=7974974-158108304d3-5d7b376d-349; region3_registry_menu=visible;
> menuPanel=visible; menuPanelType=config; region1_configure_menu=visible;
> i18next=en-US; UserFrosting=c494rtv2r3ctf7kg40msgl3716[\r][\n]"
> {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "[\r][\n]"
> {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "{[\n]"
> {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "  "authUserRequest":
> {[\n]" {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> ""requestTimestamp":
> "20160920131022930",[\n]" {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> ""username": "
> x...@yahoo.com",[\n]" {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> ""password":
> "."[\n]" {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "  }[\n]"
> {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,321] DEBUG
> {org.apache.synapse.transport.http.wire} -  >> "}[\n]"
> {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,328] DEBUG
> {org.apache.synapse.transport.http.wire} -  << "POST
> http://gogolf.my/members/api/authUser/ HTTP/1.1[\r][\n]"
> {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,330] DEBUG
> {org.apache.synapse.transport.http.wire} -  << "Accept-Language:
> en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4,zh-TW;q=0.2,ms;q=0.2[\r][\n]"
> {org.apache.synapse.transport.http.wire}
> TID: [0] [AM] [2016-11-07 17:34:28,330] DEBUG
> {org.apache.synapse.transport.http.wire} -  << "Cookie:
> 

Re: [Dev] API Manager 1.7 Payload missing when reach my app

2016-11-07 Thread Lakshani Gamage
Hi James,

You can disable chunking by adding a custom sequence as in [2]. To do that
in a single place, use velocity template approach [3].

[2] http://sumedhask.blogspot.com/2015/04/disable-chunking-in-
apis-of-wso2-api.html
[3]
http://hoosierapi.blogspot.com/2014/07/wso2-api-manager-proxing-without.html

Thanks,
Lakshani.

On Mon, Nov 7, 2016 at 7:51 PM, James Ong  wrote:

> Problem solved.
>
> because of missing content-length
>
> adding following two property to   for each API.
>
>  scope="axis2"/> value="true">
>
> any way to make this changes centralize?
>
> Regards,
> James Ong
>
> On Mon, Nov 7, 2016 at 10:06 PM, James Ong  wrote:
>
>> Hi Lakshani,
>>
>> Based on the debug output, the only difference I suspect is outgoing
>> request is using chunked data.
>>
>> Any possible to just pass the same format as input ?
>>
>> TID: [0] [AM] [2016-11-07 17:34:28,316] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> "POST /authUser/1.0.1
>> HTTP/1.1[\r][\n]" {org.apache.synapse.transport.http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> "Host:
>> gogolf.my:8243[\r][\n]" {org.apache.synapse.transport.http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> "Connection:
>> keep-alive[\r][\n]" {org.apache.synapse.transport.http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> "Content-Length:
>> 142[\r][\n]" {org.apache.synapse.transport.http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> "User-Agent: Mozilla/5.0
>> (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
>> Chrome/54.0.2840.87 Safari/537.36[\r][\n]" {org.apache.synapse.transport.
>> http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> "Origin:
>> chrome-extension://apcedakaoficjlofohhcmkkljehnmebp[\r][\n]"
>> {org.apache.synapse.transport.http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> "Authorization: Bearer
>> 307de5aba12252160bd6afbefcb9673[\r][\n]" {org.apache.synapse.transport.
>> http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> "Content-Type:
>> application/json[\r][\n]" {org.apache.synapse.transport.http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> "Accept: */*[\r][\n]"
>> {org.apache.synapse.transport.http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> "Accept-Encoding: gzip,
>> deflate, br[\r][\n]" {org.apache.synapse.transport.http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> "Accept-Language:
>> en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4,zh-TW;q=0.2,ms;q=0.2[\r][\n]"
>> {org.apache.synapse.transport.http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> "Cookie:
>> roundcube_cookies=enabled; __utma=246744978.472091108.147
>> 6716658.1478187773.1478356567.13; __utmz=246744978.1477745778.1.
>> 1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);
>> _ga=GA1.2.472091108.1476716658; __unam=7974974-158108304d3-5d7b376d-349;
>> region3_registry_menu=visible; menuPanel=visible; menuPanelType=config;
>> region1_configure_menu=visible; i18next=en-US;
>> UserFrosting=c494rtv2r3ctf7kg40msgl3716[\r][\n]"
>> {org.apache.synapse.transport.http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> "[\r][\n]"
>> {org.apache.synapse.transport.http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> "{[\n]"
>> {org.apache.synapse.transport.http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> "  "authUserRequest":
>> {[\n]" {org.apache.synapse.transport.http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> ""requestTimestamp":
>> "20160920131022930",[\n]" {org.apache.synapse.transport.http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> ""username": "
>> x...@yahoo.com",[\n]" {org.apache.synapse.transport.http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> ""password":
>> "."[\n]" {org.apache.synapse.transport.http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> "  }[\n]"
>> {org.apache.synapse.transport.http.wire}
>> TID: [0] [AM] [2016-11-07 17:34:28,321] DEBUG
>> {org.apache.synapse.transport.http.wire} -  >> "}[\n]"
>> {org.apache.synapse.transport.http.wire}
>> TID: [0] [AM] 

Re: [Dev] API Manager 1.7 Payload missing when reach my app

2016-11-07 Thread James Ong
Hi Lakshani,

Based on the debug output, the only difference I suspect is outgoing
request is using chunked data.

Any possible to just pass the same format as input ?

TID: [0] [AM] [2016-11-07 17:34:28,316] DEBUG
{org.apache.synapse.transport.http.wire} -  >> "POST /authUser/1.0.1
HTTP/1.1[\r][\n]" {org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
{org.apache.synapse.transport.http.wire} -  >> "Host:
gogolf.my:8243[\r][\n]" {org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
{org.apache.synapse.transport.http.wire} -  >> "Connection:
keep-alive[\r][\n]" {org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
{org.apache.synapse.transport.http.wire} -  >> "Content-Length:
142[\r][\n]" {org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,317] DEBUG
{org.apache.synapse.transport.http.wire} -  >> "User-Agent: Mozilla/5.0
(Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/54.0.2840.87 Safari/537.36[\r][\n]"
{org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
{org.apache.synapse.transport.http.wire} -  >> "Origin:
chrome-extension://apcedakaoficjlofohhcmkkljehnmebp[\r][\n]"
{org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
{org.apache.synapse.transport.http.wire} -  >> "Authorization: Bearer
307de5aba12252160bd6afbefcb9673[\r][\n]"
{org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
{org.apache.synapse.transport.http.wire} -  >> "Content-Type:
application/json[\r][\n]" {org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
{org.apache.synapse.transport.http.wire} -  >> "Accept: */*[\r][\n]"
{org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,318] DEBUG
{org.apache.synapse.transport.http.wire} -  >> "Accept-Encoding: gzip,
deflate, br[\r][\n]" {org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
{org.apache.synapse.transport.http.wire} -  >> "Accept-Language:
en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4,zh-TW;q=0.2,ms;q=0.2[\r][\n]"
{org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
{org.apache.synapse.transport.http.wire} -  >> "Cookie:
roundcube_cookies=enabled;
__utma=246744978.472091108.1476716658.1478187773.1478356567.13;
__utmz=246744978.1477745778.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);
_ga=GA1.2.472091108.1476716658; __unam=7974974-158108304d3-5d7b376d-349;
region3_registry_menu=visible; menuPanel=visible; menuPanelType=config;
region1_configure_menu=visible; i18next=en-US;
UserFrosting=c494rtv2r3ctf7kg40msgl3716[\r][\n]"
{org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
{org.apache.synapse.transport.http.wire} -  >> "[\r][\n]"
{org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,319] DEBUG
{org.apache.synapse.transport.http.wire} -  >> "{[\n]"
{org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
{org.apache.synapse.transport.http.wire} -  >> "  "authUserRequest": {[\n]"
{org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
{org.apache.synapse.transport.http.wire} -  >> ""requestTimestamp":
"20160920131022930",[\n]" {org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
{org.apache.synapse.transport.http.wire} -  >> ""username": "
x...@yahoo.com",[\n]" {org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
{org.apache.synapse.transport.http.wire} -  >> ""password":
"."[\n]" {org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,320] DEBUG
{org.apache.synapse.transport.http.wire} -  >> "  }[\n]"
{org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,321] DEBUG
{org.apache.synapse.transport.http.wire} -  >> "}[\n]"
{org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,328] DEBUG
{org.apache.synapse.transport.http.wire} -  << "POST
http://gogolf.my/members/api/authUser/ HTTP/1.1[\r][\n]"
{org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,330] DEBUG
{org.apache.synapse.transport.http.wire} -  << "Accept-Language:
en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4,zh-TW;q=0.2,ms;q=0.2[\r][\n]"
{org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2016-11-07 17:34:28,330] DEBUG
{org.apache.synapse.transport.http.wire} -  << "Cookie:
roundcube_cookies=enabled;
__utma=246744978.472091108.1476716658.1478187773.1478356567.13;
__utmz=246744978.1477745778.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);
_ga=GA1.2.472091108.1476716658; __unam=7974974-158108304d3-5d7b376d-349;
region3_registry_menu=visible; menuPanel=visible; menuPanelType=config;
region1_configure_menu=visible; i18next=en-US;
UserFrosting=c494rtv2r3ctf7kg40msgl3716[\r][\n]"

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

2016-11-07 Thread Dilshani Subasinghe
Hi Shazni,

AFAIK this is an expected behavior. I got this issue in ESB cluster. Hope
someone in the team will provide a proper answer for that error.

Regards,
Dilshani

On Mon, Nov 7, 2016 at 4:48 PM, Shazni Nazeer  wrote:

> I get the following exception in the manager node when it's started first
> before worker nodes. Exception doesn't occur if the worker nodes started
> first. I have a scheduled task deployed in the setup.
>
> TID: [-1234] [] [2016-11-03 12:36:36,126] ERROR {org.wso2.carbon.mediation.
> ntask.NTaskTaskManager} - Scheduling task [[
> NTask::-1234::CalendarCleanupTask]::synapse.simple.quartz] FAILED. Error:
> No available task nodes for resolving a task l
> ocation {org.wso2.carbon.mediation.ntask.NTaskTaskManager}
> org.wso2.carbon.ntask.common.TaskException: No available task nodes for
> resolving a task location
>
> at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
> getTaskLocation(ClusteredTaskManager.java:232)
> at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
> locateMemberForTask(ClusteredTaskManager.java:209)
> at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
> getMemberIdFromTaskName(ClusteredTaskManager.java:283)
> at org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.
> scheduleTask(ClusteredTaskManager.java:91)
> at org.wso2.carbon.mediation.ntask.NTaskTaskManager.schedule(
> NTaskTaskManager.java:103)
> at org.wso2.carbon.mediation.ntask.NTaskTaskManager.init(NTaskT
> askManager.java:352)
> at org.wso2.carbon.mediation.ntask.NTaskTaskManager.update(NTas
> kTaskManager.java:365)
> at org.wso2.carbon.mediation.ntask.internal.NtaskService.update
> AndCleanupObservers(NtaskService.java:103)
> at org.wso2.carbon.mediation.ntask.internal.NtaskService.setCon
> figurationContextService(NtaskService.java:96)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.eclipse.equinox.internal.ds.model.ComponentReference.bin
> d(ComponentReference.java:376)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
> indReference(ServiceComponentProp.java:430)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
> ind(ServiceComponentProp.java:218)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
> uild(ServiceComponentProp.java:343)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(
> InstanceProcess.java:620)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(
> InstanceProcess.java:197)
> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SC
> RManager.java:222)
> at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.
> serviceChanged(FilteredServiceListener.java:107)
>
>
> According to [1] this is expected. Is there a fix for this to suppress the
> exception?
>
> [1] http://bugsbydilshani.blogspot.co.uk/2016/07/wso2esbcluster-task-
> scheduling-error.html
>
> --
> Shazni Nazeer
> Associate Technical Lead | WSO2
>
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
> 
>



-- 
Best Regards,

Dilshani Subasinghe
Software Engineer - QA *|* WSO2
lean *|* enterprise *|* middleware

Mobile : +94773375185
Blog: dilshani.me


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


Re: [Dev] How to clear up the Registry Cache?

2016-11-07 Thread wenxzhen
Appreciated if anyone can shed some light on how to clear up the Registry Cache.


Thanks, Wenxing


-- Original --
From:  "wenxzhen";;
Date:  Nov 7, 2016
To:  "Rajith Roshan"; 
Cc:  "dev"; 
Subject:  Re: [Dev] How to clear up the Registry Cache?



Hi Rajith,


You are right, there is no well defined way. Before deleting the UM data and 
Registry data, I have already deactivated the tenant. 


The exception below happened on my re-creation of the tenant with the same 
name. Please advice whether it's the problem that the Registry cache was not 
cleared up?


Thanks, Wenxing




-- Original --
From:  "Rajith Roshan";;
Send time: Monday, Nov 7, 2016 2:22 PM
To: "wenxzhen"; 
Cc: "KasunG Gajasinghe"; "dev"; 
Subject:  Re: [Dev] How to clear up the Registry Cache?



Hi,

ASFAIK there is no well defined way to delete a tenant. You can deactivate a 
tenant. If you are using custom code then this error may be due to starting a 
wrong tenant flow in your code. 


Thanks!
Rajith


On Mon, Nov 7, 2016 at 10:46 AM, wenxzhen  wrote:
Thanks to Lakshani and Kasun.



Regarding the TenantMgtListener extension, any reference or example to do the 
cache clearing since our application is a WEB application?


Thanks again, Wenxing




-- Original --
From:  "KasunG Gajasinghe";;
Send time: Monday, Nov 7, 2016 1:43 PM
To: "wenxzhen"; 
Cc: "dev"; 
Subject:  Re: [Dev] How to clear up the Registry Cache?





This sounds like a bug. When a tenant is deleted, the cache should be cleared 
automatically. You shouldn't have to wait for the periodic cache cleanup. 

My suggestion is to write a TenantMgtListener extension, and add it to the 
product. In there, you can add a cache clearing operation for the tenant 
pre/post delete method. 

On Monday, November 7, 2016, wenxzhen  wrote:
Dear all,


I am trying to remove a Tenant from the WSO2, but I found the following 
exception after removing a Tenant and then re-create it:


Caused by: java.lang.SecurityException: Illegal access attempt to cache ] owned 
by tenant {[testdomain7],[17]} by tenant {[testdomain7],[18]}
at org.wso2.carbon.caching.impl.Util.checkAccess(Util.java:46)
at 
org.wso2.carbon.caching.impl.CarbonCacheManager.getCache(CarbonCacheManager.java:111)
at 
org.wso2.carbon.registry.core.utils.RegistryUtils.getResourceCache(RegistryUtils.java:297)
at 
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.getCache(CacheBackedRegistry.java:62)
at 
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.resourceExists(CacheBackedRegistry.java:289)
at 
org.wso2.carbon.registry.core.session.UserRegistry.resourceExistsInternal(UserRegistry.java:770)
at 
org.wso2.carbon.registry.core.session.UserRegistry.access$800(UserRegistry.java:60)
at 
org.wso2.carbon.registry.core.session.UserRegistry$9.run(UserRegistry.java:753)
at 
org.wso2.carbon.registry.core.session.UserRegistry$9.run(UserRegistry.java:750)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.wso2.carbon.registry.core.session.UserRegistry.resourceExists(UserRegistry.java:750)
... 62 more



My question is how I can remove the related Registry cache of a tenant? Thank 
you very much.


Regards, Wenxing





-- 
Kasun Gajasinghe
Associate Technical Lead, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
phone: +1 650-745-4499, 77 678 0813 
 









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





-- 
Rajith Roshan

Software Engineer, WSO2 Inc.
 Mobile: +94-72-642-8350___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS][Analytics] Implement a new feature to download the summary of security alerts

2016-11-07 Thread Danoja Dias
Hi All,

The current IS Analytics Alerts Dashboard shows security alerts with
pagination. we need to implement a
new functionality to download all security alerts as a PDF file.

The current functionality in dashboard server to download as a PDF file, is
of limited use since it prints only
the paginated number of alerts as the PDF file. However all the security
alerts need to be printed for the
selected time range. Not only the limited number of paginated alerts.

We chose to use jspdf JavaScript library to convert the data into the table
and to make the PDF file. This
library is already being used by Dashboard server for its PDF export
functionality. This PDF file contains
the detailed information of security alerts in a table for the time period.

Any comments on this are welcome.

-- 
Regards,
Danoja Dias
Intern Software Engineering - WSO2

Email : dan...@wso2.com
Mobile : +94771160393

[image: http://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

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

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

Thanks.

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

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



-- 

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


[Dev] Why Deployment Synchronizer is running from a ScheduledThreadPoolExecutor?

2016-11-07 Thread Isuru Perera
Hi,

When analyzing a performance issue using Java Flight Recorder, I noticed
that the server is running Deployment Synchronizer task most of the time.

Please see the stack trace below.


Stack TraceSample CountPercentage(%)
java.util.Stack.peek()201.661

org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable.getCurrentState()
201.661

org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable.getCursor()
191.578

org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable.hasMoved()
110.914

org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable.eof()10
0.831

org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable.getRecord()
80.664

org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable.getValueMem(int)
60.498

org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeDataTable.getValueMem(int)
60.498

org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable.getValueUncached(int)
60.498

org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable.getValue(int)
60.498

org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeDataTable.getValue(int)
60.498

org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable.getValues()
60.498

org.tmatesoft.sqljet.core.internal.table.SqlJetTableDataCursor$16.run(SqlJetDb)
60.498

org.tmatesoft.sqljet.core.table.SqlJetDb$3.run(SqlJetEngine)60.498

org.tmatesoft.sqljet.core.table.engine.SqlJetEngine$12.runSynchronized(SqlJetEngine)
60.498

org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.runSynchronized(ISqlJetEngineSynchronized)
60.498

org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.runEngineTransaction(ISqlJetEngineTransaction,
SqlJetTransactionMode)60.498

org.tmatesoft.sqljet.core.table.SqlJetDb.runTransaction(ISqlJetTransaction,
SqlJetTransactionMode)60.498

org.tmatesoft.sqljet.core.table.SqlJetDb.runReadTransaction(ISqlJetTransaction)
60.498

org.tmatesoft.sqljet.core.internal.table.SqlJetTableDataCursor.getRowValues()
60.498

org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectStatement.getRowValues2(Map)
50.415

org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectStatement.loadRowValues(boolean)
50.415

org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectStatement.next()5
0.415

org.tmatesoft.svn.core.internal.wc17.db.SVNWCDb.addChildren(Set,
SVNSqlJetStatement)20.166

org.tmatesoft.svn.core.internal.wc17.db.SVNWCDb.gatherChildren(File,
boolean, boolean)20.166

org.tmatesoft.svn.core.internal.wc17.db.SVNWCDb.readChildren(File)2
0.166

org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCleanup.repairTimestamps(SVNWCContext,
File)20.166

org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCleanup.repairTimestamps(SVNWCContext,
File)20.166

org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCleanup.repairTimestamps(SVNWCContext,
File)20.166

org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCleanup.repairTimestamps(SVNWCContext,
File)20.166

org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCleanup.cleanupInternal(SVNWCContext,
File)10.083

org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCleanup.cleanup(SVNWCContext,
File)10.083

org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCleanup.run(SVNWCContext)
10.083

org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCleanup.run(SVNWCContext)
10.083

org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner.run()1
0.083

org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperation)
10.083

org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperation)1
0.083

org.tmatesoft.svn.core.wc2.SvnOperation.run()10.083

org.tmatesoft.svn.core.javahl17.SVNClientImpl.cleanup(String)10.083

org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.cleanup(File)
10.083

org.wso2.carbon.deployment.synchronizer.subversion.SVNBasedArtifactRepository.commit(int,
String)10.083

org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizer.commit()
10.083

org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerServiceImpl.commit(int)
10.083

org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.deploymentSyncCommit()
10.083

org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run()1
0.083

java.util.concurrent.Executors$RunnableAdapter.call()10.083

java.util.concurrent.FutureTask.runAndReset()10.083

java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor$ScheduledFutureTask)
10.083

java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run()
10.083

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor$Worker)
10.083

java.util.concurrent.ThreadPoolExecutor$Worker.run()10.083

java.lang.Thread.run()10.083

Why is this running periodically? How to configure the time period? Is
there a way to disable this scheduled task  and update only when there's a