org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [/templates/contentview.vm]

XWiki.org JIRA | Jerome Velociter | 8 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    A typical example is the following : - Dropping in the webapp a JAR with a macro that forgets to have a constructor with no parameter - The CM silently fails to initialize the component declared in the JAR - From then on, most of the code that relies on components lookup seems to throw exceptions. For example, rendering any page in syntax 2.0 will fail with the following : {noformat} org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [/templates/contentview.vm] at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187) [snip] at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getRenderedContent' in class com.xpn.xwiki.api.Document threw exception com.xpn.xwiki.XWikiException: Error number 0 in 4: Failed to convert document to syntax [xhtml/1.0] Wrapped Exception: Error number 0 in 4: Failed to convert document to syntax [xhtml/1.0] Wrapped Exception: Failed to load component [org.xwiki.rendering.transformation.TransformationManager] for hint [default] at /templates/contentview.vm[line 7, column 7] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) [snip] at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178) ... 64 more Caused by: com.xpn.xwiki.XWikiException: Error number 0 in 4: Failed to convert document to syntax [xhtml/1.0] Wrapped Exception: Error number 0 in 4: Failed to convert document to syntax [xhtml/1.0] Wrapped Exception: Failed to load component [org.xwiki.rendering.transformation.TransformationManager] for hint [default] at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5204) [snip] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) ... 68 more {noformat}

    XWiki.org JIRA | 8 years ago | Jerome Velociter
    org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [/templates/contentview.vm]

    Root Cause Analysis

    1. com.xpn.xwiki.XWikiException

      Error number 0 in 4: Failed to convert document to syntax [xhtml/1.0] Wrapped Exception: Error number 0 in 4: Failed to convert document to syntax [xhtml/1.0] Wrapped Exception: Failed to load component [org.xwiki.rendering.transformation.TransformationManager] for hint [default]

      at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion()
    2. com.xpn.xwiki
      XWikiDocument.performSyntaxConversion
      1. com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5204)
      1 frame
    3. Apache Velocity
      ASTMethod.handleInvocationException
      1. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
      2. org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
      2 frames
    4. org.xwiki.velocity
      DefaultVelocityEngine.evaluate
      1. org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
      2. org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187)
      2 frames
    5. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
      1 frame