Hi Wenxing, Registry cache clears in every 15 min. Or you have to restart the server.
Thanks, Lakshani On Mon, Nov 7, 2016 at 8:22 AM, wenxzhen <[email protected]> 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 > > > _______________________________________________ > Dev mailing list > [email protected] > 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/ <http://lakshanigamage.blogspot.com/>*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
