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
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev