Hi, More info: Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getRenderedContent' in class com.xpn.xwiki.api.Document threw exception java.lang.NoSuchMethodError: org.xwiki.rendering.renderer.xhtml.XHTMLRenderer.<init>(Ljava/io/Writer;Lorg/xwiki/rendering/DocumentManager;)V @ /templates/contentview.vm[7,7] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:300) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178) ... 51 more Caused by: java.lang.NoSuchMethodError: org.xwiki.rendering.renderer.xhtml.XHTMLRenderer.<init>(Ljava/io/Writer;Lorg/xwiki/rendering/DocumentManager;)V at com.xpn.xwiki.doc.XWikiDocument.getRenderedContentUsingNewRenderingModule(XWikiDocument.java:501) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:433) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:371) at sun.reflect.GeneratedMethodAccessor229.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) ... 55 more I think it' becauce the XHTMLRender's constructor changed to public XHTMLRenderer(WikiPrinter printer, DocumentManager documentManager), but the vm use the old class constructor. On Mon, Aug 18, 2008 at 5:05 PM, Wang Ning <[email protected]> wrote:
Hi,
I use the xe made from svnroot/xwiki/enterprise/, and create a page using "xwiki 2.0". put only one line in the content "abc", then save and review. Got error as following: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getRenderedContent' in class com.xpn.xwiki.api.Document threw exception java.lang.NoSuchMethodError: org.xwiki.rendering.renderer.xhtml.XHTMLRenderer.<init>(Ljava/io/Writer;Lorg/xwiki/rendering/DocumentManager;)V @ /templates/contentview.vm[7,7]
Any suggestion?
Thanks Wang Ning
-- Thanks Wang Ning