Hi,

I tested it and works fine. The modified svn diff of the ndatasource core
is attached in the JIRA [1]

[1] https://wso2.org/jira/browse/DS-740

Thanks


On Wed, Jul 17, 2013 at 10:01 AM, Sameera Jayasoma <[email protected]> wrote:

> I've populated CarbonContext objects for the threads which terminates the
> idle tenant config contexts. Fix is committed to the trunk. Test and let me
> know.
>
> Thanks,
> Sameera.
>
>
> On Tue, Jul 16, 2013 at 9:07 PM, Chanika Geeganage <[email protected]>wrote:
>
>> Hi,
>>
>> Had an offline chat with Sameera and figured out that this should be
>> handled in the carbon core level and the ndatasource core should be changed
>> accordingly.
>>
>> Thanks
>>
>>
>> On Tue, Jul 16, 2013 at 3:00 PM, Chanika Geeganage <[email protected]>wrote:
>>
>>> Hi,
>>>
>>> This was because of the latest changes for the new caching model. I have
>>> attached the patch to [1].
>>>
>>> [1] https://wso2.org/jira/browse/DS-740
>>>
>>> Thanks
>>>
>>>
>>> On Mon, Jul 15, 2013 at 12:48 PM, Kasun Gajasinghe <[email protected]>wrote:
>>>
>>>> Hi Chanika,
>>>>
>>>> Please try this in a latest pack from trunk.
>>>>
>>>>
>>>> On Mon, Jul 15, 2013 at 11:47 AM, Chanika Geeganage 
>>>> <[email protected]>wrote:
>>>>
>>>>> Hi Azeez,
>>>>>
>>>>> I couldn't reproduce this error. I used DSS 3.0.1 and here are the
>>>>> steps I followed.
>>>>>
>>>>> 1. Created a tenant.
>>>>> 2. Sign in as the tenant admin.
>>>>> 2. Added a data source
>>>>> 3. Deployed a dataservice
>>>>> 4. Sign out and wait for the tenant cleanup.
>>>>>
>>>>> Then tenant is cleaned up without any exceptions. Is there any other
>>>>> steps to follow to reproduce the error?
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>> On Mon, Jul 15, 2013 at 10:39 AM, Chanika Geeganage 
>>>>> <[email protected]>wrote:
>>>>>
>>>>>> I will check on this.
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>>
>>>>>> On Sat, Jul 13, 2013 at 7:24 PM, Afkham Azeez <[email protected]> wrote:
>>>>>>
>>>>>>> [2013-07-13 17:09:15,544]  INFO
>>>>>>> {org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils} -  Starting to
>>>>>>> clean tenant : azeez.org
>>>>>>> [2013-07-13 17:09:15,966]  INFO
>>>>>>> {org.wso2.carbon.webapp.mgt.WebApplication} -  Unloaded webapp:
>>>>>>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/t/
>>>>>>> azeez.org/webapps/Calendar]
>>>>>>> [2013-07-13 17:09:15,970] ERROR
>>>>>>> {org.wso2.carbon.ndatasource.core.DataSourceAxis2ConfigurationContextObserver}
>>>>>>> -  Error in initializing data sources for tenant: 1 - Error in getting 
>>>>>>> all
>>>>>>> data sources from repository: null
>>>>>>> org.wso2.carbon.ndatasource.common.DataSourceException: Error in
>>>>>>> getting all data sources from repository: null
>>>>>>> at
>>>>>>> org.wso2.carbon.ndatasource.core.DataSourceRepository.updateAllUserDataSource(DataSourceRepository.java:143)
>>>>>>>  at
>>>>>>> org.wso2.carbon.ndatasource.core.DataSourceRepository.unregisterAllUserDataSources(DataSourceRepository.java:123)
>>>>>>> at
>>>>>>> org.wso2.carbon.ndatasource.core.DataSourceManager.unloadTenant(DataSourceManager.java:108)
>>>>>>>  at
>>>>>>> org.wso2.carbon.ndatasource.core.DataSourceAxis2ConfigurationContextObserver.terminatingConfigurationContext(DataSourceAxis2ConfigurationContextObserver.java:49)
>>>>>>>  at
>>>>>>> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.doPreConfigContextTermination(TenantAxisUtils.java:515)
>>>>>>> at
>>>>>>> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.terminateTenantConfigContext(TenantAxisUtils.java:477)
>>>>>>>  at
>>>>>>> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.cleanupTenants(TenantAxisUtils.java:429)
>>>>>>> at
>>>>>>> org.wso2.carbon.core.multitenancy.MultitenantServerManager$TenantCleanupTask.run(MultitenantServerManager.java:73)
>>>>>>>  at
>>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
>>>>>>> at
>>>>>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>>>>>>>  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>>>>>>> at
>>>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>>>>>>>  at
>>>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
>>>>>>> at
>>>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
>>>>>>>  at
>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>>>>>>> at
>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>>>>>>>  at java.lang.Thread.run(Thread.java:680)
>>>>>>> Caused by: java.lang.NullPointerException
>>>>>>>
>>>>>>> --
>>>>>>> *Afkham Azeez*
>>>>>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>>>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>>>>> * <http://www.apache.org/>**
>>>>>>> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
>>>>>>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>>>>>>> twitter: 
>>>>>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>>>>>>> *
>>>>>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>>>>>> *
>>>>>>> *
>>>>>>> *Lean . Enterprise . Middleware*
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Dev mailing list
>>>>>>> [email protected]
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Best Regards..
>>>>>>
>>>>>> Chanika Geeganage
>>>>>> Software Engineer
>>>>>> WSO2, Inc.; http://wso2.com
>>>>>>
>>>>>> Mobile: +94773522586
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best Regards..
>>>>>
>>>>> Chanika Geeganage
>>>>> Software Engineer
>>>>> WSO2, Inc.; http://wso2.com
>>>>>
>>>>> Mobile: +94773522586
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Kasun Gajasinghe*
>>>> Software Engineer;
>>>> Development Technologies Team, WSO2 Inc.; http://wso2.com
>>>>
>>>>
>>>>  ,
>>>> *email: **kasung AT spamfree wso2.com
>>>>
>>>>
>>>> ** cell: **+94 (77) 678-0813*
>>>> *linked-in: *http://lk.linkedin.com/in/gajasinghe
>>>>
>>>>
>>>> *
>>>> *
>>>> *blog: **http://kasunbg.org* <http://kasunbg.org>
>>>>
>>>>
>>>> *
>>>> twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg>
>>>>
>>>>
>>>> *
>>>> *
>>>>
>>>
>>>
>>>
>>> --
>>> Best Regards..
>>>
>>> Chanika Geeganage
>>> Software Engineer
>>> WSO2, Inc.; http://wso2.com
>>>
>>> Mobile: +94773522586
>>>
>>
>>
>>
>> --
>> Best Regards..
>>
>> Chanika Geeganage
>> Software Engineer
>> WSO2, Inc.; http://wso2.com
>>
>> Mobile: +94773522586
>>
>
>
>
> --
> Sameera Jayasoma,
> Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: [email protected]
> blog: http://sameera.adahas.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>
>
> Lean . Enterprise . Middleware
>



-- 
Best Regards..

Chanika Geeganage
Software Engineer
WSO2, Inc.; http://wso2.com

Mobile: +94773522586
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to