Hi Kala,Lakshman Actual issue is at tenant loading time. Due to a missing CC refactoring sometimes flow goes through a wrong path and we can see a weird error when tenant loads. And tenant axis configuration load fails. The null pointer caused by that since tenant cleanup task is accessing the last accessed time from tenant axis configuration. @Kala : What is your APIM version? If it is 1.6 apply the patch mentioned in [1] and try. Cannot remember whether this fix is there in 1.7 or not.
[1] https://wso2.org/jira/secure/attachment/31122/org.wso2.carbon.server.admin.diff Thanks & Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Nov 17, 2014 at 5:14 PM, Lakshman Udayakantha <lakshm...@wso2.com> wrote: > Hi Kala, > > Seems like the issue is resolved in carbon 4.3.0. see the linked issue[1]. > It is look like API manager carbon core version 4.2.0. that's why you get > this error. > > [1] https://wso2.org/jira/browse/CARBON-14504 > > Thanks > > On Mon, Nov 17, 2014 at 1:31 PM, Kala Weerawardana <k...@wso2.com> wrote: > >> Hi, >> >> Created a new tenant >> Tried to log in to the publisher with it >> Had to try couple of times to log in >> And then after some redirecting process the tenant was able to log in to >> the publisher >> >> >> Tried to create an API yet the process was not done properly >> >> Tried to log in to the Store >> Could not log in >> >> A NullPointerException keep on occurring when tenant cleanup happens >> >> >> TID: [0] [AM] [2014-11-17 00:14:38,328] INFO >> {org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils} - Starting to >> clean tenant : domainone.com >> {org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils} >> >> TID: [0] [AM] [2014-11-17 00:14:38,329] ERROR >> {org.wso2.carbon.core.multitenancy.MultitenantServerManager} - Error >> occurred while executing tenant cleanup >> {org.wso2.carbon.core.multitenancy.MultitenantServerManager} >> >> java.lang.NullPointerException >> >> at >> org.wso2.carbon.core.multitenancy.TenantAxisConfigurator.cleanup(TenantAxisConfigurator.java:512) >> >> at >> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.terminateTenantConfigContext(TenantAxisUtils.java:490) >> >> at >> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.cleanupTenants(TenantAxisUtils.java:441) >> >> 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.runAndReset(FutureTask.java:304) >> >> 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:1145) >> >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> >> at java.lang.Thread.run(Thread.java:745) >> >> TID: [0] [AM] [2014-11-17 00:15:14,188] 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] [AM] [2014-11-17 00:15:38,328] INFO >> {org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils} - Starting to >> clean tenant : domainone.com >> {org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils} >> >> TID: [0] [AM] [2014-11-17 00:15:38,329] ERROR >> {org.wso2.carbon.core.multitenancy.MultitenantServerManager} - Error >> occurred while executing tenant cleanup >> {org.wso2.carbon.core.multitenancy.MultitenantServerManager} >> >> java.lang.NullPointerException >> >> at >> org.wso2.carbon.core.multitenancy.TenantAxisConfigurator.cleanup(TenantAxisConfigurator.java:512) >> >> at >> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.terminateTenantConfigContext(TenantAxisUtils.java:490) >> >> at >> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.cleanupTenants(TenantAxisUtils.java:441) >> >> 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.runAndReset(FutureTask.java:304) >> >> 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:1145) >> >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> >> at java.lang.Thread.run(Thread.java:745) >> >> >> This is related to this issue >> https://wso2.org/jira/browse/APIMANAGER-2369 >> <https://wso2.org/jira/browse/APIMANAGER-2369> >> >> Regards, >> Kala >> >> -- >> Kala C. Weerawardana >> *Software Engineer - QA Team* >> *WSO2 Inc. * >> Mobile : +94 (0) 716189886 +94 (0) 772877683 >> k...@wso2.com >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Lakshman Udayakantha > WSO2 Inc. www.wso2.com > lean.enterprise.middleware > Mobile: *0711241005* > > > _______________________________________________ > 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