Hi XWikians, I have trouble looking at the Syntax Page at http://platform.xwiki.org/xwiki/bin/viewrev/Main/XWikiSyntax : Exception:
Error number 4001 in 4: Error while parsing velocity page Main.XWikiSyntax Wrapped Exception: Failed to evaluate content with id XWiki Syntax com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page Main.XWikiSyntax Wrapped Exception: Failed to evaluate content with id XWiki Syntax at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:231) at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:93) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:258) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:182) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:151) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:140) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:423) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:371) at sun.reflect.GeneratedMethodAccessor2346.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) 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:145) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:117) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:226) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1504) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:608) at sun.reflect.GeneratedMethodAccessor2285.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) ......
nice Greetings Jonas
Hi Jonas, Thanks for noticing this. The problem was that we modified the name of the XWikiSyntax page in our SVN source tree (it's now XWikiSyntax.xml) and we hadn't changed that page's content. To be more precise, the page you're looking at is generated automatically from the XWikiSyntax page located in our SVN repo. The reason is that we want to ensure we bundle the exact same syntax page both on xwiki.org and in XE. It's working fine now. Thanks -Vincent On Jul 11, 2008, at 4:24 PM, Jonas von Malottki wrote:
Hi XWikians,
I have trouble looking at the Syntax Page at http://platform.xwiki.org/xwiki/bin/viewrev/Main/XWikiSyntax :
Exception:
Error number 4001 in 4: Error while parsing velocity page Main.XWikiSyntax Wrapped Exception: Failed to evaluate content with id XWiki Syntax com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page Main.XWikiSyntax Wrapped Exception: Failed to evaluate content with id XWiki Syntax at com .xpn .xwiki .render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java: 231) at com .xpn .xwiki .render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:93) at com .xpn .xwiki .render .DefaultXWikiRenderingEngine .renderText(DefaultXWikiRenderingEngine.java:258) at com .xpn .xwiki .render .DefaultXWikiRenderingEngine .renderText(DefaultXWikiRenderingEngine.java:182) at com .xpn .xwiki .render .DefaultXWikiRenderingEngine .renderText(DefaultXWikiRenderingEngine.java:151) at com .xpn .xwiki .render .DefaultXWikiRenderingEngine .renderDocument(DefaultXWikiRenderingEngine.java:140) at com .xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java: 423) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:371) at sun.reflect.GeneratedMethodAccessor2346.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) 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: 145) at org .xwiki .velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java: 117) at com .xpn .xwiki .render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java: 226) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1504) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:608) at sun.reflect.GeneratedMethodAccessor2285.invoke(Unknown Source) at sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) ......
nice Greetings Jonas
Vincent Massol wrote:
Hi Jonas,
Thanks for noticing this. The problem was that we modified the name of the XWikiSyntax page in our SVN source tree (it's now XWikiSyntax.xml) and we hadn't changed that page's content. To be more precise, the page you're looking at is generated automatically from the XWikiSyntax page located in our SVN repo. The reason is that we want to ensure we bundle the exact same syntax page both on xwiki.org and in XE.
It's working fine now.
Actually not, the error is still there, but only for that link, which uses the wrong action (/viewrev/ instead of /view/). It's a NPE caused by the fact that viewrev needs a version number, which isn't given in the request. The problem line is: String docRevision = context.get("rev").toString(); See http://jira.xwiki.org/jira/browse/XWIKI-2573
On Jul 11, 2008, at 4:24 PM, Jonas von Malottki wrote:
Hi XWikians,
I have trouble looking at the Syntax Page at http://platform.xwiki.org/xwiki/bin/viewrev/Main/XWikiSyntax :
On Jul 20, 2008, at 1:15 AM, Sergiu Dumitriu wrote:
Vincent Massol wrote:
Hi Jonas,
Thanks for noticing this. The problem was that we modified the name of the XWikiSyntax page in our SVN source tree (it's now XWikiSyntax.xml) and we hadn't changed that page's content. To be more precise, the page you're looking at is generated automatically from the XWikiSyntax page located in our SVN repo. The reason is that we want to ensure we bundle the exact same syntax page both on xwiki.org and in XE.
It's working fine now.
Actually not, the error is still there, but only for that link, which uses the wrong action (/viewrev/ instead of /view/). It's a NPE caused by the fact that viewrev needs a version number, which isn't given in the request. The problem line is:
String docRevision = context.get("rev").toString();
I don't get it. The version is still 1.4.x on xwiki.org and it was working fine when I said I had fixed it and it's now failing.. Any idea? Can we fix the page? Thanks -Vincent
On Jul 11, 2008, at 4:24 PM, Jonas von Malottki wrote:
Hi XWikians,
I have trouble looking at the Syntax Page at http://platform.xwiki.org/xwiki/bin/viewrev/Main/XWikiSyntax :
Vincent Massol wrote:
On Jul 20, 2008, at 1:15 AM, Sergiu Dumitriu wrote:
Vincent Massol wrote:
Hi Jonas,
Thanks for noticing this. The problem was that we modified the name of the XWikiSyntax page in our SVN source tree (it's now XWikiSyntax.xml) and we hadn't changed that page's content. To be more precise, the page you're looking at is generated automatically from the XWikiSyntax page located in our SVN repo. The reason is that we want to ensure we bundle the exact same syntax page both on xwiki.org and in XE.
It's working fine now.
Actually not, the error is still there, but only for that link, which uses the wrong action (/viewrev/ instead of /view/). It's a NPE caused by the fact that viewrev needs a version number, which isn't given in the request. The problem line is:
String docRevision = context.get("rev").toString();
I don't get it. The version is still 1.4.x on xwiki.org and it was working fine when I said I had fixed it and it's now failing.. Any idea? Can we fix the page?
Vincent, the page displays fine using the /view/ action (the default one). It fails only with /viewrev/, so I'd say the page works fine under normal conditions. I don't know how Jonas got that link, but it shouldn't be used. -- http://purl.org/net/sergiu/
On Jul 20, 2008, at 2:43 PM, Sergiu Dumitriu wrote:
Vincent Massol wrote:
On Jul 20, 2008, at 1:15 AM, Sergiu Dumitriu wrote:
Vincent Massol wrote:
Hi Jonas,
Thanks for noticing this. The problem was that we modified the name of the XWikiSyntax page in our SVN source tree (it's now XWikiSyntax.xml) and we hadn't changed that page's content. To be more precise, the page you're looking at is generated automatically from the XWikiSyntax page located in our SVN repo. The reason is that we want to ensure we bundle the exact same syntax page both on xwiki.org and in XE.
It's working fine now.
Actually not, the error is still there, but only for that link, which uses the wrong action (/viewrev/ instead of /view/). It's a NPE caused by the fact that viewrev needs a version number, which isn't given in the request. The problem line is:
String docRevision = context.get("rev").toString();
I don't get it. The version is still 1.4.x on xwiki.org and it was working fine when I said I had fixed it and it's now failing.. Any idea? Can we fix the page?
Vincent, the page displays fine using the /view/ action (the default one). It fails only with /viewrev/, so I'd say the page works fine under normal conditions. I don't know how Jonas got that link, but it shouldn't be used.
ok my bad, I was using a URL suggested by firefox and didn't notice it had viewrev (I had probably clicked on a link in your first email about this problem...). Thanks -Vincent
participants (3)
-
Jonas von Malottki -
Sergiu Dumitriu -
Vincent Massol