[xwiki-users] Page tree stopped working on Main wiki
Hi, (disclaimer: new user here) I updated from 7.4RC1 to 7.4 (Debian packages, Tomcat7, MySQL). When I click the navigation arrows in the Main wiki, they come up empty. If I create a new wiki, it works fine. What could have happened here? Appreciate any help, thank you! Regards, Rodrigo
On Thu, Jan 7, 2016 at 10:08 PM, Rodrigo Borges Pereira < [email protected]> wrote:
Hi,
(disclaimer: new user here)
I updated from 7.4RC1 to 7.4 (Debian packages, Tomcat7, MySQL). When I click the navigation arrows in the Main wiki, they come up empty. If I create a new wiki, it works fine.
What could have happened here?
The browser may be using the cached resources from 7.4RC1 (because the URL didn't change for the main wiki). Can you try to clear the browser cache and refresh the page? Hope this helps, Marius
Appreciate any help, thank you!
Regards, Rodrigo _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Am 07.01.2016 um 21:08 schrieb Rodrigo Borges Pereira:
I updated from 7.4RC1 to 7.4 (Debian packages, Tomcat7, MySQL). When I click the navigation arrows in the Main wiki, they come up empty. If I create a new wiki, it works fine. I have the same issue. Caches are cleared. The application server log reads:
2016-01-12 10:11:45,237 [http://localhost:8080/xwiki/wiki/it/get/XWiki/DocumentTree?outputSyntax=plai...] ERROR o.x.v.i.DefaultVelocityEngine - Exception in macro #addNestedChildDocuments called at 119:it:XWiki.DocumentTree[line 438, column 1] 2016-01-12 10:11:45,237 [http://localhost:8080/xwiki/wiki/it/get/XWiki/DocumentTree?outputSyntax=plai...] ERROR o.x.v.i.DefaultVelocityEngine - Exception in macro #addChildDocuments called at 119:it:XWiki.DocumentTree[line 624, column 1] 2016-01-12 10:11:45,237 [http://localhost:8080/xwiki/wiki/it/get/XWiki/DocumentTree?outputSyntax=plai...] ERROR o.x.v.i.DefaultVelocityEngine - Exception in macro #addDocumentChildren called at 119:it:XWiki.DocumentTree[line 1, column 1] 2016-01-12 10:11:45,237 [http://localhost:8080/xwiki/wiki/it/get/XWiki/DocumentTree?outputSyntax=plai...] ERROR o.x.v.i.DefaultVelocityEngine - Exception in macro #getChildren called at 119:it:XWiki.DocumentTree[line 37, column 1] 2016-01-12 10:11:45,237 [http://localhost:8080/xwiki/wiki/it/get/XWiki/DocumentTree?outputSyntax=plai...] ERROR o.x.v.i.DefaultVelocityEngine - Exception in macro #handleDocumentTreeRequest called at 119:it:XWiki.DocumentTree[line 3, column 1] The links in the document tree work but you can't expand a section. :( …Christoph
On Tue, Jan 12, 2016 at 11:14 AM, Christoph Haas <[email protected]> wrote:
Am 07.01.2016 um 21:08 schrieb Rodrigo Borges Pereira:
I updated from 7.4RC1 to 7.4 (Debian packages, Tomcat7, MySQL). When I click the navigation arrows in the Main wiki, they come up empty. If I create a new wiki, it works fine. I have the same issue. Caches are cleared. The application server log reads:
2016-01-12 10:11:45,237 [ http://localhost:8080/xwiki/wiki/it/get/XWiki/DocumentTree?outputSyntax=plai... ] ERROR o.x.v.i.DefaultVelocityEngine - Exception in macro #addNestedChildDocuments called at 119:it:XWiki.DocumentTree[line 438, column 1] 2016-01-12 10:11:45,237 [ http://localhost:8080/xwiki/wiki/it/get/XWiki/DocumentTree?outputSyntax=plai... ] ERROR o.x.v.i.DefaultVelocityEngine - Exception in macro #addChildDocuments called at 119:it:XWiki.DocumentTree[line 624, column 1] 2016-01-12 10:11:45,237 [ http://localhost:8080/xwiki/wiki/it/get/XWiki/DocumentTree?outputSyntax=plai... ] ERROR o.x.v.i.DefaultVelocityEngine - Exception in macro #addDocumentChildren called at 119:it:XWiki.DocumentTree[line 1, column 1] 2016-01-12 10:11:45,237 [ http://localhost:8080/xwiki/wiki/it/get/XWiki/DocumentTree?outputSyntax=plai... ] ERROR o.x.v.i.DefaultVelocityEngine - Exception in macro #getChildren called at 119:it:XWiki.DocumentTree[line 37, column 1] 2016-01-12 10:11:45,237 [ http://localhost:8080/xwiki/wiki/it/get/XWiki/DocumentTree?outputSyntax=plai... ] ERROR o.x.v.i.DefaultVelocityEngine - Exception in macro #handleDocumentTreeRequest called at 119:it:XWiki.DocumentTree[line 3, column 1]
If you access these URLs directly you should be getting some long stacktrace that has more details about the root problem. Can you copy the stacktrace and put it on a pasting website. Thanks, Marius
The links in the document tree work but you can't expand a section. :(
…Christoph
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Am 12.01.2016 um 10:29 schrieb Marius Dumitru Florea:
If you access these URLs directly you should be getting some long stacktrace that has more details about the root problem. Can you copy the stacktrace and put it on a pasting website. Sure.
Failed to execute the [velocity] macro. Click on this message for details.org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content [#if ($xcontext.action == 'get') #updateDocTreeConfigFromRequest #handleDocumentTreeRequest #end] at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:131) at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:50) at org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:286) at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:182) at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58) at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:269) at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183) at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95) at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:253) at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:126) at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:56) at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96) at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39) at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:113) at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50) at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68) at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1164) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1127) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:749) at sun.reflect.GeneratedMethodAccessor670.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.xwiki.velocity.introspection.TryCatchDirective.render(TryCatchDirective.java:72) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198) at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725) at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626) at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604) at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570) at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556) at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1854) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:821) at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198) at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725) at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626) at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604) at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570) at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556) at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1854) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:821) at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198) at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725) at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626) at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604) at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570) at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556) at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1854) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:821) at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198) at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725) at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626) at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604) at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570) at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556) at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:180) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:431) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:620) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1367) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:484) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) at org.eclipse.jetty.server.Server.handle(Server.java:350) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538) at java.lang.Thread.run(Thread.java:745) Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [it:XWiki.DocumentTree] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:224) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198) at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:124) ... 174 more Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'execute' in class org.xwiki.query.internal.ScriptQuery threw exception org.xwiki.query.QueryException: The query requires programming right. Query statement = [select distinct case when space.parent = 'Development' then space.name else doc.name end as name, case when space.parent = 'Development' then 0 else 1 end as type from XWikiDocument doc, XWikiSpace space where (space.parent = :parentSpaceRef or (doc.space = :parentSpaceRef and doc.translation = 0 and doc.name <> :spaceHomePageName)) order by lower(case when space.parent = 'Development' then space.name else doc.name end), case when space.parent = 'Development' then space.name else doc.name end] at 116:it:XWiki.DocumentTree[line 448, column 67] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:243) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:187) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.apache.velocity.runtime.directive.Evaluate.render(Evaluate.java:204) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.apache.velocity.runtime.parser.node.ASTStringLiteral.value(ASTStringLiteral.java:330) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222) ... 176 more Caused by: org.xwiki.query.QueryException: The query requires programming right. Query statement = [select distinct case when space.parent = 'Development' then space.name else doc.name end as name, case when space.parent = 'Development' then 0 else 1 end as type from XWikiDocument doc, XWikiSpace space where (space.parent = :parentSpaceRef or (doc.space = :parentSpaceRef and doc.translation = 0 and doc.name <> :spaceHomePageName)) order by lower(case when space.parent = 'Development' then space.name else doc.name end), case when space.parent = 'Development' then space.name else doc.name end] at com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.checkAllowed(HqlQueryExecutor.java:124) at com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:134) at org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:71) at org.xwiki.query.internal.SecureQueryExecutorManager.execute(SecureQueryExecutorManager.java:67) at org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287) at org.xwiki.query.internal.ScriptQuery.execute(ScriptQuery.java:237) at sun.reflect.GeneratedMethodAccessor541.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) ... 229 more
On Tue, Jan 12, 2016 at 12:37 PM, Christoph Haas <[email protected]> wrote:
Am 12.01.2016 um 10:29 schrieb Marius Dumitru Florea:
If you access these URLs directly you should be getting some long stacktrace that has more details about the root problem. Can you copy the stacktrace and put it on a pasting website. Sure.
Failed to execute the [velocity] macro. Click on this message for details.org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content [#if ($xcontext.action == 'get') #updateDocTreeConfigFromRequest #handleDocumentTreeRequest #end] at
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:131) at
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:50) at
org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:286) at
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:182) at
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58) at
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:269) at
org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183) at
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95) at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:253) at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:126) at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:56) at
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96) at
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39) at
org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:113) at
org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50) at
org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68) at
org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1164) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1127) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:749) at sun.reflect.GeneratedMethodAccessor670.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567) at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.xwiki.velocity.introspection.TryCatchDirective.render(TryCatchDirective.java:72) at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256) at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222) at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198) at
com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725) at
com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626) at
com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604) at
com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570) at
com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556) at
com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1854) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:821) at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256) at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222) at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198) at
com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725) at
com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626) at
com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604) at
com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570) at
com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556) at
com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1854) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:821) at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256) at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222) at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198) at
com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725) at
com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626) at
com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604) at
com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570) at
com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556) at
com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1854) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:821) at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256) at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222) at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198) at
com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725) at
com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626) at
com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604) at
com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570) at
com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556) at
com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:180) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:431) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184) at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:620) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598) at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1367) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115) at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127) at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) at
org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137) at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:484) at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233) at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413) at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192) at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999) at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250) at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) at org.eclipse.jetty.server.Server.handle(Server.java:350) at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454) at
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890) at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606) at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46) at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603) at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538) at java.lang.Thread.run(Thread.java:745) Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [it:XWiki.DocumentTree] at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:224) at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198) at
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:124) ... 174 more
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'execute' in class org.xwiki.query.internal.ScriptQuery threw exception org.xwiki.query.QueryException: The query requires programming right.
Can you try saving the page XWiki.DocumentTreeMacros with an user that has Programming Rights? Hope this helps, Marius
Query statement = [select distinct case when space.parent = 'Development' then space.name else doc.name end as name, case when space.parent = 'Development' then 0 else 1 end as type from XWikiDocument doc, XWikiSpace space where (space.parent = :parentSpaceRef or (doc.space = :parentSpaceRef and doc.translation = 0 and doc.name <> :spaceHomePageName)) order by lower(case when space.parent = 'Development' then space.name else doc.name end), case when space.parent = 'Development' then space.name else doc.name end] at 116:it:XWiki.DocumentTree[line 448, column 67] at
org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:243) at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:187) at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567) at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.apache.velocity.runtime.directive.Evaluate.render(Evaluate.java:204) at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at
org.apache.velocity.runtime.parser.node.ASTStringLiteral.value(ASTStringLiteral.java:330) at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256) at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222) ... 176 more Caused by: org.xwiki.query.QueryException: The query requires programming right. Query statement = [select distinct case when space.parent = 'Development' then space.name else doc.name end as name, case when space.parent = 'Development' then 0 else 1 end as type from XWikiDocument doc, XWikiSpace space where (space.parent = :parentSpaceRef or (doc.space = :parentSpaceRef and doc.translation = 0 and doc.name <> :spaceHomePageName)) order by lower(case when space.parent = 'Development' then space.name else doc.name end), case when space.parent = 'Development' then space.name else doc.name end] at
com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.checkAllowed(HqlQueryExecutor.java:124) at
com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:134) at
org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:71) at
org.xwiki.query.internal.SecureQueryExecutorManager.execute(SecureQueryExecutorManager.java:67) at org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287) at org.xwiki.query.internal.ScriptQuery.execute(ScriptQuery.java:237) at sun.reflect.GeneratedMethodAccessor541.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) ... 229 more _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Am 12.01.2016 um 13:04 schrieb Marius Dumitru Florea:
Can you try saving the page XWiki.DocumentTreeMacros with an user that has Programming Rights? I'm logged in as "administrator" who has that special permission and went to …xwiki/bin/view/XWiki/DocumentTreeMacros, edited and saved the page. Is that what I was supposed to try? Unfortunately that hasn't changed anything. I still get:
Caused by: org.xwiki.query.QueryException: The query requires programming right. …Christoph
On 12 Jan 2016 at 14:27:50, Christoph Haas ([email protected](mailto:[email protected])) wrote:
Am 12.01.2016 um 13:04 schrieb Marius Dumitru Florea:
Can you try saving the page XWiki.DocumentTreeMacros with an user that has Programming Rights? I'm logged in as "administrator" who has that special permission and went to …xwiki/bin/view/XWiki/DocumentTreeMacros, edited and saved the page. Is that what I was supposed to try? Unfortunately that hasn't changed anything. I still get:
Caused by: org.xwiki.query.QueryException: The query requires programming right.
Note that you need to change the content of the page as otherwise the content author won’t be changed (yes I know, PITA…). Thanks -Vincent
…Christoph
Am 12.01.2016 um 16:39 schrieb [email protected]:
On 12 Jan 2016 at 14:27:50, Christoph Haas ([email protected](mailto:[email protected])) wrote:
Am 12.01.2016 um 13:04 schrieb Marius Dumitru Florea:
Can you try saving the page XWiki.DocumentTreeMacros with an user that has Programming Rights? I'm logged in as "administrator" who has that special permission and went to …xwiki/bin/view/XWiki/DocumentTreeMacros, edited and saved the page. Is that what I was supposed to try? Unfortunately that hasn't changed anything. I still get:
Caused by: org.xwiki.query.QueryException: The query requires programming right. Note that you need to change the content of the page as otherwise the content author won’t be changed (yes I know, PITA…). Good idea. Just did that. And the history even shows that the page was changed by the administrator a minute ago. Cleared the cache again. Even restarted the Jetty application server. But to no avail.
…Christoph
On Tue, Jan 12, 2016 at 6:04 PM, Christoph Haas <[email protected]> wrote:
Am 12.01.2016 um 16:39 schrieb [email protected]:
On 12 Jan 2016 at 14:27:50, Christoph Haas ([email protected] (mailto:[email protected])) wrote:
Am 12.01.2016 um 13:04 schrieb Marius Dumitru Florea:
Can you try saving the page XWiki.DocumentTreeMacros with an user that has Programming Rights? I'm logged in as "administrator" who has that special permission and went to …xwiki/bin/view/XWiki/DocumentTreeMacros, edited and saved the page. Is that what I was supposed to try? Unfortunately that hasn't changed anything. I still get:
Caused by: org.xwiki.query.QueryException: The query requires programming right. Note that you need to change the content of the page as otherwise the content author won’t be changed (yes I know, PITA…).
Good idea. Just did that. And the history even shows that the page was changed by the administrator a minute ago. Cleared the cache again. Even restarted the Jetty application server. But to no avail.
Can you try the same with XWiki.DocumentTree page? (it includes XWiki.DocumentTreeMacros and I thought PR is checked on the included content).
…Christoph
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Am 13.01.2016 um 11:27 schrieb Marius Dumitru Florea:
Can you try the same with XWiki.DocumentTree page? (it includes XWiki.DocumentTreeMacros and I thought PR is checked on the included content). Done that. Did not resolve it. However on the "DocumentTree" page I find that these work on the top level:
* Wiki > Space > Page Tree ({{documentTree showWikis="true" showSpaces="true" showTranslations="false" showAttachments="false" showChildDocuments="false" /}}) * Full Entity Tree ({{documentTree showWikis="true" showWikiPrettyName="false" showSpaces="true" showDocumentTitle="false" showChildDocuments="false" showObjects="true" showClassProperties="true" /}}) …while these show the reported problem… * Document Hierarchy Tree ({{documentTree compact="true" /}}) * Compact Document Hierarchy Tree ({{documentTree /}}) So the tree widget is not generally broken - just when it dives into the pages of the wiki. I must say that we have migrated from a previous version that had "spaces" and not just nested documents. Not sure that information helps. I have posted the current traceback at https://gist.github.com/Signum/e1a8a3732b26c30400e2 in case something has changed indeed but I didn't see it. Thanks again for the help. I hope we can figure this out. …Christoph
On Mon, Jan 18, 2016 at 11:03 AM, Christoph Haas <[email protected]> wrote:
Any further ideas?
No :(, the message is pretty clear: the user that is the last content author of XWiki.DocumentTree (or XWiki.DocumentTreeMacros) page doesn't have PR. I would double check this.
Am 13.01.2016 um 11:27 schrieb Marius Dumitru Florea:
Can you try the same with XWiki.DocumentTree page? (it includes XWiki.DocumentTreeMacros and I thought PR is checked on the included content).
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Christoph, Just to make clear Vincent's remart: You did actually change the content of the document when saving it, right? I mean not just "Go to edit mode > press save", but "Go to edit mode > add an empty space somewhere in the content > press save". That way, when looking in the history, not only the author is changed, but also the content itself. We know this is problematic right now, but this is the correct way of making sure the internal "contentAuthor" (not just the "author" document field) is changed and that Programming Rights and Script Rights function properly. Hope this helps, Eduard On Mon, Jan 18, 2016 at 6:15 PM, Marius Dumitru Florea < [email protected]> wrote:
On Mon, Jan 18, 2016 at 11:03 AM, Christoph Haas <[email protected]> wrote:
Any further ideas?
No :(, the message is pretty clear: the user that is the last content author of XWiki.DocumentTree (or XWiki.DocumentTreeMacros) page doesn't have PR. I would double check this.
Am 13.01.2016 um 11:27 schrieb Marius Dumitru Florea:
Can you try the same with XWiki.DocumentTree page? (it includes XWiki.DocumentTreeMacros and I thought PR is checked on the included content).
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (5)
-
Christoph Haas -
Eduard Moraru -
Marius Dumitru Florea -
Rodrigo Borges Pereira -
vincent@massol.net