com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page /templates/admin.vm Wrapped Exception: Failed to evaluate content with id [/templates/admin.vm]

XWiki.org JIRA | Guillaume Lerouge | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Here's the behavior I got in XE 1.8 RC1 when performing the following actions: * Go to http://localhost:8080/xwiki/bin/admin/Sandbox/WebPreferences and explicitely give the admin right to an user * Go to http://localhost:8080/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object and clear every XWiki.GlobalRights object * The wiki no longer has any right specified. Every user can do everything unless a right has been specified down the way. * Try accessing the administration page of the Sandbox space (or any space where access rights have been set at the space level) * The following error is thrown: {code} Error number 4001 in 4: Error while parsing velocity page /templates/admin.vm Wrapped Exception: Failed to evaluate content with id [/templates/admin.vm] {code} Stacktrace when clicking on the error: {code} Error number 4001 in 4: Error while parsing velocity page /templates/admin.vm Wrapped Exception: Failed to evaluate content with id [/templates/admin.vm] com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page /templates/admin.vm Wrapped Exception: Failed to evaluate content with id [/templates/admin.vm] at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:114) ... Wrapped Exception: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'save' in class com.xpn.xwiki.api.Document threw exception com.xpn.xwiki.XWikiException: Error number 9001 in 9: Access denied in edit mode on document XWiki.WebPreferences @ /templates/admin.vm[58,26] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286) ... Caused by: com.xpn.xwiki.XWikiException: Error number 9001 in 9: Access denied in edit mode on document XWiki.WebPreferences at com.xpn.xwiki.api.Document.save(Document.java:1631) {code} Additional note: since every user can do everything, the current user can give Admin rights to himself at the wiki level. He will then be able to access and change the rights of the Sandbox space that he couldn't access before.

    XWiki.org JIRA | 8 years ago | Guillaume Lerouge
    com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page /templates/admin.vm Wrapped Exception: Failed to evaluate content with id [/templates/admin.vm]
  2. 0

    Input: {noformat} {warning:title=Documentation for Cargo version in development} The documentation you'll find on this site is for the latest development version of Cargo (not released yet). The documentation for the relased versions of Cargo is available on the [Downloads] page. {warning} h2. Mission Cargo is a thin wrapper around existing containers (e.g. J2EE containers). It provides different APIs to easily manipulate containers. Cargo provides the following APIs: * A Java API to start/stop/configure Java Containers and deploy modules into them. We also offer Ant tasks, Maven 1, Maven 2 plugins. Intellij IDEA and Netbeans plugins are in the sandbox. * A Java API to parse/create/merge J2EE Modules Check the [utilisation|What for] page to understand what you can use Cargo for. h2. Development Status h3. Current Versions click in the status column to get release notes: || Version || Status || Comments || | [Core 0.9|Downloads] | [(/)|http://jira.codehaus.org/secure/ReleaseNote.jspa?version=12482&styleName=Html&projectId=10730] | Released on 10/03/07 | | [Maven2 plugin 0.3|Downloads] | [(/)|http://jira.codehaus.org/secure/ReleaseNote.jspa?version=12483&styleName=Html&projectId=10730] | Released on 10/03/07 | | [Ant and Maven1 plugin 0.9|Downloads] | [(/)|http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=true&&pid=10730&component=11432&fixfor=12482&sorter/field=issuekey&sorter/order=DESC] | Released on 10/03/07 | All released versions are available [here|Downloads]. h3. Container Support {include:Containers} h2. News {blog-posts:2} {noformat} (Taken from http://docs.codehaus.org/pages/editpage.action?spaceKey=CARGO&title=Home) Error: {noformat} Error number 4001 in 4: Error while parsing velocity page /templates/contentview.vm Wrapped Exception: Failed to evaluate content with id [/templates/contentview.vm] com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page /templates/contentview.vm Wrapped Exception: Failed to evaluate content with id [/templates/contentview.vm] at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:114) [snip] Caused by: com.xpn.xwiki.XWikiException: Error number 0 in 4: Failed to convert document to syntax [xhtml/1.0] Wrapped Exception: Failed to parse input source at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:4693) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:471) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:365) 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:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) ... 59 more {noformat}

    XWiki.org JIRA | 8 years ago | Vincent Massol
    com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page /templates/contentview.vm Wrapped Exception: Failed to evaluate content with id [/templates/contentview.vm]

    Root Cause Analysis

    1. com.xpn.xwiki.XWikiException

      Error number 4001 in 4: Error while parsing velocity page /templates/admin.vm Wrapped Exception: Failed to evaluate content with id [/templates/admin.vm]

      at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate()
    2. com.xpn.xwiki
      XWikiVelocityRenderer.evaluate
      1. com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:114)
      1 frame