Hi,
I receive a “non blocking error” when trying to copy an existing page on my wiki hosted on myxwki …
It’s not blocking because at the end the new page is available but Thomas Mortagne seems to encounter some difficulties running my wiki …
Please find hereafter an extract and please find the full stack trace here : https://pastebin.com/5gddrLtA…
Starting job of type [refactoring/copyAs] with identifier [refactoring/copyAs/1642927096354-272]
Failed to load the cache in 5 attempts. Giving up. For user [Document xwiki:XWiki.ThomasMortagne] and entity [Document surjith:XWiki.UserProfileUIX].
The cache entry [entity = [Document surjith:XWiki.UserProfileUIX], rules = [[State = [ALLOW], Rights = [[creator]], Users = [[xwiki:XWiki.superadmin]], Groups = []]]] with key [n@@DOCUMENT:surjith:XWiki.UserProfileUIX] has been disposed by another thread while being added.
class org.xwiki.security.authorization.AuthorizationException: Failed to load the cache in 5 attempts. Giving up. when checking access to [surjith:XWiki.UserProfileUIX] for user [xwiki:XWiki.ThomasMortagne]
at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.load(DefaultSecurityCacheLoader.java:175)
at org.xwiki.security.authorization.DefaultAuthorizationManager.getAccess(DefaultAuthorizationManager.java:243)
at org.xwiki.security.authorization.DefaultAuthorizationManager.evaluateSecurityAccess(DefaultAuthorizationManager.java:169)
at org.xwiki.security.authorization.DefaultAuthorizationManager.hasSecurityAccess(DefaultAuthorizationManager.java:162)
at org.xwiki.security.authorization.DefaultAuthorizationManager.hasAccess(DefaultAuthorizationManager.java:119)
at org.xwiki.security.authorization.internal.BridgeAuthorizationManager.hasAccess(BridgeAuthorizationManager.java:67)
at org.xwiki.rendering.async.internal.AsyncRendererCache.checkRight(AsyncRendererCache.java:300)
at java.base/java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1603)
at org.xwiki.rendering.async.internal.AsyncRendererCache.cleanCacheForRight(AsyncRendererCache.java:294)
at org.xwiki.rendering.async.internal.AsyncRendererCacheListener.onEvent(AsyncRendererCacheListener.java:85)
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:320)
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:285)
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:337)
at org.xwiki.security.authorization.internal.DefaultSecurityCacheRulesInvalidatorListener.onEvent(DefaultSecurityCacheRulesInvalidatorListener.java:202)
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:320)
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:285)
at com.xpn.xwiki.XWiki.afterSave(XWiki.java:1986)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:2066)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1954)
at com.xpn.xwiki.XWiki.copyDocument(XWiki.java:5105)
at org.xwiki.refactoring.internal.DefaultModelBridge.copy(DefaultModelBridge.java:165)
at org.xwiki.refactoring.internal.job.CopyJob.atomicOperation(CopyJob.java:87)
at org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob.copyOrMove(AbstractCopyOrMoveJob.java:248)
at org.xwiki.refactoring.internal.job.CopyJob.performRefactoring(CopyJob.java:81)
at org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob.maybePerformRefactoring(AbstractCopyOrMoveJob.java:213)
at org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob.process(AbstractCopyOrMoveJob.java:153)
at org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob.process(AbstractCopyOrMoveJob.java:125)
at org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob.process(AbstractCopyOrMoveJob.java:101)
at org.xwiki.refactoring.internal.job.AbstractEntityJob.process(AbstractEntityJob.java:225)
at org.xwiki.refactoring.internal.job.AbstractEntityJobWithChecks.runInternal(AbstractEntityJobWithChecks.java:66)
at org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob.runInternal(AbstractCopyOrMoveJob.java:57)
at org.xwiki.refactoring.internal.job.CopyJob.runInternal(CopyJob.java:64)
at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:243)
at org.xwiki.job.AbstractJob.run(AbstractJob.java:220)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: class org.xwiki.security.authorization.cache.ConflictingInsertionException: The cache entry [entity = [Document surjith:XWiki.UserProfileUIX], rules = [[State = [ALLOW], Rights = [[creator]], Users = [[xwiki:XWiki.superadmin]], Groups = []]]] with key [n@@DOCUMENT:surjith:XWiki.UserProfileUIX] has been disposed by another thread while being added.
at org.xwiki.security.authorization.cache.internal.DefaultSecurityCache.addEntry(DefaultSecurityCache.java:712)
at org.xwiki.security.authorization.cache.internal.DefaultSecurityCache.add(DefaultSecurityCache.java:761)
at org.xwiki.security.authorization.cache.internal.DefaultSecurityCache.add(DefaultSecurityCache.java:731)
at org.xwiki.security.authorization.cache.internal.DefaultSecurityCache.add(DefaultSecurityCache.java:724)
at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.getRules(DefaultSecurityCacheLoader.java:464)
at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.loadRequiredEntries(DefaultSecurityCacheLoader.java:201)
at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.load(DefaultSecurityCacheLoader.java:157)
at org.xwiki.security.authorization.DefaultAuthorizationManager.getAccess(DefaultAuthorizationManager.java:243)
at org.xwiki.security.authorization.DefaultAuthorizationManager.evaluateSecurityAccess(DefaultAuthorizationManager.java:169)
at org.xwiki.security.authorization.DefaultAuthorizationManager.hasSecurityAccess(DefaultAuthorizationManager.java:162)
at org.xwiki.security.authorization.DefaultAuthorizationManager.hasAccess(DefaultAuthorizationManager.java:119)
at org.xwiki.security.authorization.internal.BridgeAuthorizationManager.hasAccess(BridgeAuthorizationManager.java:67)
at org.xwiki.rendering.async.internal.AsyncRendererCache.checkRight(AsyncRendererCache.java:300)
at java.base/java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1603)
at org.xwiki.rendering.async.internal.AsyncRendererCache.cleanCacheForRight(AsyncRendererCache.java:294)
at org.xwiki.rendering.async.internal.AsyncRendererCacheListener.onEvent(AsyncRendererCacheListener.java:85)
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:320)
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:285)
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:337)
at org.xwiki.security.authorization.internal.DefaultSecurityCacheRulesInvalidatorListener.onEvent(DefaultSecurityCacheRulesInvalidatorListener.java:202)
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:320)
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:285)
at com.xpn.xwiki.XWiki.afterSave(XWiki.java:1986)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:2066)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1954)
at com.xpn.xwiki.XWiki.copyDocument(XWiki.java:5105)
at org.xwiki.refactoring.internal.DefaultModelBridge.copy(DefaultModelBridge.java:165)
at org.xwiki.refactoring.internal.job.CopyJob.atomicOperation(CopyJob.java:87)