Hi Azeez,

Yes, I have set -Dtenant.idle.time to 5 minutes to maybe while trying to
invoke the service, the tenant was cleaning up. However, I did not receive
the expected response. So maybe because I was invoking the service while
the tenant is being cleaned up?

- Evanthika


On Fri, Aug 2, 2013 at 5:00 AM, Afkham Azeez <[email protected]> wrote:

> The exception you have posted is not related to service invocation. It is
> related to tenant cleanup. The code line numbers in the kernel are not
> inline with the code I have in my IDE, which means that this pack doesn't
> have the tenant cleanup fix.
>
>
> On Thu, Aug 1, 2013 at 10:44 PM, Evanthika Amarasiri 
> <[email protected]>wrote:
>
>> Hi,
>>
>> Invoked an Axis2 service of a tenant and it failed. Noticed the below
>> exception on both worker nodes.
>>
>>
>> *******************************************************************************************************************************************************************************
>> TID: [0] [AS] [2013-08-01 22:21:34,236]  INFO
>> {org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager} -  LDAP
>> connection created successfully in read-write mode
>> {org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager}
>> TID: [0] [AS] [2013-08-01 22:21:34,236]  WARN
>> {org.wso2.carbon.user.core.common.DefaultRealm} -  Could not initialize
>> secondary user store manager.  Domain name is not defined
>> {org.wso2.carbon.user.core.common.DefaultRealm}
>> TID: [0] [AS] [2013-08-01 22:21:34,297]  INFO
>> {org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager} -  LDAP
>> connection created successfully in read-write mode
>> {org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager}
>> TID: [0] [AS] [2013-08-01 22:21:34,346] ERROR
>> {org.wso2.carbon.user.core.common.DefaultRealmService} -  Tenant domain has
>> not been set in CarbonContext
>> {org.wso2.carbon.user.core.common.DefaultRealmService}
>> java.lang.NullPointerException: Tenant domain has not been set in
>> CarbonContext
>> at
>> org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)
>>  at
>> org.wso2.carbon.user.core.tenant.TenantCache.getTenantCache(TenantCache.java:39)
>> at
>> org.wso2.carbon.user.core.tenant.TenantCache.getValueFromCache(TenantCache.java:77)
>>  at
>> org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:169)
>> at
>> org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:49)
>>  at
>> org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:159)
>> at
>> org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:266)
>>  at
>> org.wso2.carbon.registry.core.session.UserRegistry.<init>(UserRegistry.java:226)
>> at
>> org.wso2.carbon.registry.core.session.UserRegistry.<init>(UserRegistry.java:205)
>>  at
>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:427)
>> at
>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:292)
>>  at
>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getConfigSystemRegistry(EmbeddedRegistryService.java:485)
>> at
>> org.wso2.carbon.ndatasource.core.utils.DataSourceUtils.getConfRegistryForTenant(DataSourceUtils.java:82)
>>  at
>> org.wso2.carbon.ndatasource.core.DataSourceRepository.getRegistry(DataSourceRepository.java:97)
>> at
>> org.wso2.carbon.ndatasource.core.DataSourceRepository.updateAllUserDataSource(DataSourceRepository.java:128)
>>  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:521)
>> at
>> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.terminateTenantConfigContext(TenantAxisUtils.java:483)
>>  at
>> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.cleanupTenants(TenantAxisUtils.java:435)
>> at
>> org.wso2.carbon.core.multitenancy.MultitenantServerManager$TenantCleanupTask.run(MultitenantServerManager.java:73)
>>  at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> at
>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
>>  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>>  at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>>  at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>> at java.lang.Thread.run(Thread.java:722)
>> TID: [0] [AS] [2013-08-01 22:21:34,347] ERROR
>> {org.wso2.carbon.registry.core.session.UserRegistry} -  An error occurred
>> while obtaining the user realm for the tenant: 2.
>> {org.wso2.carbon.registry.core.session.UserRegistry}
>> TID: [0] [AS] [2013-08-01 22:21:34,347] ERROR
>> {org.wso2.carbon.ndatasource.core.DataSourceAxis2ConfigurationContextObserver}
>> -  Error in initializing data sources for tenant: 2 - Error in getting all
>> data sources from repository: Error in retrieving conf registry instance:
>> An error occurred while obtaining the user realm for the tenant: 2.
>> {org.wso2.carbon.ndatasource.core.DataSourceAxis2ConfigurationContextObserver}
>> org.wso2.carbon.ndatasource.common.DataSourceException: Error in getting
>> all data sources from repository: Error in retrieving conf registry
>> instance: An error occurred while obtaining the user realm for the tenant:
>> 2.
>>  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:521)
>> at
>> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.terminateTenantConfigContext(TenantAxisUtils.java:483)
>>  at
>> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.cleanupTenants(TenantAxisUtils.java:435)
>> at
>> org.wso2.carbon.core.multitenancy.MultitenantServerManager$TenantCleanupTask.run(MultitenantServerManager.java:73)
>>  at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> at
>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
>>  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>>  at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>>  at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>> at java.lang.Thread.run(Thread.java:722)
>> Caused by: org.wso2.carbon.ndatasource.common.DataSourceException: Error
>> in retrieving conf registry instance: An error occurred while obtaining the
>> user realm for the tenant: 2.
>> at
>> org.wso2.carbon.ndatasource.core.utils.DataSourceUtils.getConfRegistryForTenant(DataSourceUtils.java:85)
>>  at
>> org.wso2.carbon.ndatasource.core.DataSourceRepository.getRegistry(DataSourceRepository.java:97)
>> at
>> org.wso2.carbon.ndatasource.core.DataSourceRepository.updateAllUserDataSource(DataSourceRepository.java:128)
>>  ... 15 more
>> Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: An
>> error occurred while obtaining the user realm for the tenant: 2.
>>  at
>> org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:282)
>> at
>> org.wso2.carbon.registry.core.session.UserRegistry.<init>(UserRegistry.java:226)
>>  at
>> org.wso2.carbon.registry.core.session.UserRegistry.<init>(UserRegistry.java:205)
>> at
>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:427)
>>  at
>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:292)
>> at
>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getConfigSystemRegistry(EmbeddedRegistryService.java:485)
>>  at
>> org.wso2.carbon.ndatasource.core.utils.DataSourceUtils.getConfRegistryForTenant(DataSourceUtils.java:82)
>> ... 17 more
>> Caused by: org.wso2.carbon.user.api.UserStoreException: Tenant domain has
>> not been set in CarbonContext
>> at
>> org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:176)
>>  at
>> org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:266)
>> ... 23 more
>> Caused by: java.lang.NullPointerException: Tenant domain has not been set
>> in CarbonContext
>> at
>> org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)
>>  at
>> org.wso2.carbon.user.core.tenant.TenantCache.getTenantCache(TenantCache.java:39)
>> at
>> org.wso2.carbon.user.core.tenant.TenantCache.getValueFromCache(TenantCache.java:77)
>>  at
>> org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:169)
>> at
>> org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:49)
>>  at
>> org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:159)
>> ... 24 more
>> TID: [0] [AS] [2013-08-01 22:21:34,348]  INFO
>> {org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils} -  Cleaned up
>> tenant tiks.com {org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils}
>>
>>
>>
>> Evanthika Amarasiri
>> Senior Technical Lead - Quality Assurance
>> Mobile: +94773125935
>> *
>> *
>> wso2.com Lean Enterprise Middleware
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>**
> email: **[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

Reply via email to