Hi guys,
In fact, in the original source, the included page is present. But in the
generated source (the DOM as a result of the JS execution) the included page
is replaced by the Macro error message (with its stack trace).
Very strange ! If you have an idea, I would be very pleased to hear about
it.
Best regards,
Maxime
2010/12/8 Le Génie <le.genie.logiciel(a)gmail.com>
Hi Thomas,
You are right, the exception is on the html source.
And the verdict is :
"Caused by: org.xwiki.rendering.macro.MacroExecutionException: Current user
doesn't have view rights on document [Outils.CommonScript]"
But it's a lie ! Of course, I have the right to view this page, in fact, I
am the creator of this page and I can view (or edit) it directly.
I can reproduce the problem with IE7 and Firefox3.6.
The Wiki is included in a farm in path mode.
Just to remember, if I include this page in a page without annotation, all
is fine.
Thank you for your help.
Maxime
org.xwiki.rendering.macro.MacroExecutionException: Failed to get content
for Document [Outils.CommonScript] at
org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:172)
at
org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:57)
at
org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:184)
at
org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:129)
at
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:85)
at
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:73)
at
org.xwiki.annotation.internal.DefaultAnnotationService.getAnnotatedRenderedContent(DefaultAnnotationService.java:135)
at
org.xwiki.annotation.rest.internal.AbstractAnnotationRESTResource.renderDocumentWithAnnotations(AbstractAnnotationRESTResource.java:209)
at
org.xwiki.annotation.rest.internal.AbstractAnnotationRESTResource.getSuccessResponseWithAnnotatedContent(AbstractAnnotationRESTResource.java:107)
at
org.xwiki.annotation.rest.internal.AnnotationsRESTResource.doGetAnnotatedContent(AnnotationsRESTResource.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
org.restlet.ext.jaxrs.internal.wrappers.AbstractMethodWrapper.internalInvoke(AbstractMethodWrapper.java:164)
at
org.restlet.ext.jaxrs.internal.wrappers.ResourceMethod.invoke(ResourceMethod.java:287)
at
org.restlet.ext.jaxrs.JaxRsRestlet.invokeMethod(JaxRsRestlet.java:636)
at org.restlet.ext.jaxrs.JaxRsRestlet.handle(JaxRsRestlet.java:380) at
org.restlet.Filter.doHandle(Filter.java:150) at
org.restlet.Filter.handle(Filter.java:195) at
org.restlet.Router.handle(Router.java:504) at
org.restlet.Filter.doHandle(Filter.java:150) at
org.restlet.Guard.accept(Guard.java:198) at
org.restlet.Guard.doHandle(Guard.java:354) at
org.restlet.Filter.handle(Filter.java:195) at
org.restlet.Filter.doHandle(Filter.java:150) at
org.restlet.Filter.handle(Filter.java:195) at
org.restlet.Filter.doHandle(Filter.java:150) at
org.restlet.Filter.handle(Filter.java:195) at
org.restlet.Filter.doHandle(Filter.java:150) at
org.restlet.Filter.handle(Filter.java:195) at
org.restlet.Filter.doHandle(Filter.java:150) at
com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130) at
org.restlet.Filter.handle(Filter.java:195) at
org.restlet.Filter.doHandle(Filter.java:150) at
org.restlet.Filter.handle(Filter.java:195) at
com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) at
com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)
at org.restlet.Application.handle(Application.java:341) at
org.restlet.Filter.doHandle(Filter.java:150) at
org.restlet.Filter.handle(Filter.java:195) at
org.restlet.Router.handle(Router.java:504) at
org.restlet.Filter.doHandle(Filter.java:150) at
org.restlet.Filter.handle(Filter.java:195) at
org.restlet.Router.handle(Router.java:504) at
org.restlet.Filter.doHandle(Filter.java:150) at
org.restlet.Filter.handle(Filter.java:195) at
com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) at
org.restlet.Component.handle(Component.java:673) at
org.restlet.Server.handle(Server.java:331) at
com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68) at
com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)
at
com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:881)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.wysiwyg.server.filter.XWikiContextInitializationFilter.doFilter(XWikiContextInitializationFilter.java:87)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:304)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
at java.lang.Thread.run(Thread.java:619) Caused by:
org.xwiki.rendering.macro.MacroExecutionException: Current user doesn't have
view rights on document [Outils.CommonScript] at
org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:168)
... 78 more
2010/12/7 Thomas Mortagne <thomas.mortagne(a)xwiki.com>
On Tue, Dec 7, 2010 at 14:18, Le Génie
<le.genie.logiciel(a)gmail.com>
wrote:
Hi Thomas,
No, I can click but nothing occurs. No exception or stack trace shown.
That's weird since macro errors like "Failed to execute the [include]
macro" always come from an exception. Maybe you have a js issue that
make impossible to display the error details, you can probably find it
in the html source.
2010/12/7 Thomas Mortagne <thomas.mortagne(a)xwiki.com>
> On Tue, Dec 7, 2010 at 12:25, Le Génie <le.genie.logiciel(a)gmail.com>
> wrote:
> > Hi,
> >
> > I use XWiki XEM 2.4.4 and when I add an annotation to a page, the
include
>
macro (also present in the same page) displays :
> "Failed to execute the [include] macro"
>
> It seems to be the issue XSKINX-39 but it was fixed a long time ago.
> Nothing in the xwiki or tomcat log.
>
> Is there something to verify ?
Could you click on the error box and get the full detail.
>
> Thank for your help.
>
> Maxime
> _______________________________________________
> users mailing list
> users(a)xwiki.org
>
http://lists.xwiki.org/mailman/listinfo/users
>
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users