Details
-
Bug
-
Resolution: Fixed
-
Major
-
17.2.0-rc-1
-
None
-
Unknown
-
N/A
-
N/A
-
Description
I obtained this error by adding an annotation to a page.
2025-03-28 09:52:08,317 [qtp1024429571-324 - http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/addAnnotationTranslation/pages/WebHome/annotations?media=json] WARN c.x.x.d.XWikiDocument - Abusive modification of the cached document [xwiki:addAnnotationTranslation.WebHome()] java.lang.IllegalStateException: Abusive modification of the cached document at com.xpn.xwiki.doc.XWikiDocument.setMetaDataDirty(XWikiDocument.java:2457) at com.xpn.xwiki.objects.BaseElement.setOwnerDocument(BaseElement.java:468) at com.xpn.xwiki.objects.BaseCollection.setOwnerDocument(BaseCollection.java:988) at com.xpn.xwiki.objects.BaseObject.setOwnerDocument(BaseObject.java:413) at com.xpn.xwiki.doc.XWikiDocument.createXObject(XWikiDocument.java:2970) at org.xwiki.annotation.io.internal.DefaultIOService.addAnnotation(DefaultIOService.java:133) at org.xwiki.annotation.internal.DefaultAnnotationService.addAnnotation(DefaultAnnotationService.java:98) at org.xwiki.annotation.rest.internal.AbstractAnnotationsRESTResource.postAnnotation(AbstractAnnotationsRESTResource.java:119) at org.xwiki.annotation.rest.internal.AnnotationsRESTResource.doPostAnnotation(AnnotationsRESTResource.java:78) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:146) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:189) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:219) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:93) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:478) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:400) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:81)