[xwiki-users] error 4001 in 4 (newbie)

Robin Fernandes rewbs.soal at gmail.com
Mon Dec 4 23:02:02 CET 2006


Obelisco, don't forget to use the history feature to check previous
versions, then do view code to see what has changed. This line is
wrong in the same way:
1.1 Noticias (<a href="$blogcatdoc.getURL(">Edit Categories</a>)

Should be:
1.1 Noticias <font size="-2">(<a
href="$blogcatdoc.getURL("inline")">Edit Categories</a>)</font>

It looks like all the lines like this were broken:
<tag attriube="$velocityFunction("param")" />
becoming:
<tag attriube="$velocityFunction(" />

I checked and it's the wysiwyg editor that does this. Is this a bug in
the wysiwyg editor,
or should the default menu document use quotes in a more conventional manner?
For example, this does not break:
<tag attriube="$velocityFunction('param')" />

Cheers,
Robin


On 04/12/06, jeremi joslin <jeremi at xwiki.com> wrote:
> on this line, you remove a part :
> .1 Bienvenido <a href="$mdoc.getURL("><img border="0"
> src="$xwiki.getSkinFile(" alt="Edit Menu" /></a>
>
> it should be :
> 1.1 Bienvenue <a href="$mdoc.getURL("edit")"><img
> src="$xwiki.getSkinFile("editPage.gif")" border="0" alt="Editer le
> Menu" /></a>
>
>
> jeremi
>
> On 12/4/06, Obelisco <obeliscus at gmail.com> wrote:
> > This is the code.
> >
> > deporcali.xwiki.com
> >
> > thanks....
> >
> > ----------------------------------------------
> > <div class="left">
> >
> > #set($mdoc = $xwiki.getDocument("XWiki.Menu"))
> >
> > 1.1 Bienvenido <a href="$mdoc.getURL("><img border="0"
> > src="$xwiki.getSkinFile(" alt="Edit Menu" /></a>
> >
> > Comparte toda la información que tengas sobre nuestro equipo. &iexcl;Su
> > participación es muy importante!
> >
> > </div>
> > <div class="left">
> > 1.1 Índice
> >
> > * [Banco de Conocimientos> Main.KnowledgeBase]
> > * [Álbum de Fotos>Photos.WebHome]
> > * [Documentación>Doc.WebHome]
> > * [Calendario de Eventos>Main.EventCalendar]
> > * [Presentaciones>Main.Presentations]
> >
> > </div>
> > <div class="left">
> >
> > #set($blogcatdoc = $xwiki.getDocument("Blog.Categories"))
> >
> > 1.1 Noticias (<a href="$blogcatdoc.getURL(">Edit Categories</a>)
> >
> > #set($catdoc = $xwiki.getDocument("Blog.Categories "))
> > #foreach($catobj in $catdoc.getObjects("Blog.Categories"))
> > #set($catname = $catdoc.display("name","view",$catobj))
> > #if($catname!="")
> >
> >
> > * [${catname}>Blog.Category ?category=${catname}]
> >
> >
> > #end
> > #end
> >
> > </div>
> > <div class="left">
> > 1.1 Añada una noticia
> >
> > #includeTopic("XWiki.XWikiCommonJavascript")
> >
> > </div>
> >
> >
> >  On 12/4/06, jeremi joslin <jeremi at xwiki.com> wrote:
> > > Hi,
> > >
> > > not so much, the only thing i can tell you is that you have an error
> > > line 5, column 53.
> > >
> > > send the code if you don't find.
> > >
> > > jeremi
> > >
> > > On 12/4/06, Obelisco < obeliscus at gmail.com> wrote:
> > > > Hi, i was trying to edit my menu and I have made a mistake somewhere
> > cause I
> > > > got this in the sidebar...
> > > >
> > > >
> > > >
> > > > Error number 4001 in 4: Error while parsing velocity page Main.WebHome
> > > > Wrapped Exception: Encountered "0" at line 5, column 53. Was expecting
> > one
> > > > of: "," … ")" … <WHITESPACE> ...
> > > >
> > > > com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while
> > parsing
> > > > velocity page Main.WebHome Wrapped Exception: Encountered "0" at line 5,
> > > > column 53. Was expecting one of: "," … ")" … <WHITESPACE> ...
> > > >
> > > > at
> > > > com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate
> > (XWikiVelocityRenderer.java:152)
> > > > at
> > > >
> > com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:108)
> > > > at com.xpn.xwiki.render.XWikiRenderingEngine.renderText
> > > > (XWikiRenderingEngine.java :204) at
> > > > com.xpn.xwiki.XWiki.include(XWiki.java:2181) at
> > > > com.xpn.xwiki.api.XWiki.includeForm(XWiki.java:541) at
> > > > sun.reflect.GeneratedMethodAccessor100.invoke(Unknown
> > > > Source) 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:267)
> > > > at
> > > >
> > org.apache.velocity.runtime.parser.node.ASTMethod.execute
> > > > (ASTMethod.java:197) at
> > > >
> > org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
> > > > at
> > > >
> > org.apache.velocity.runtime.parser.node.ASTReference.render
> > (ASTReference.java:220)
> > > > at
> > org.apache.velocity.runtime.parser.node.ASTBlock.render
> > > > (ASTBlock.java:55) at
> > > >
> > org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70)
> > > > at
> > > >
> > org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
> > > > at
> > > >
> > org.apache.velocity.runtime.parser.node.SimpleNode.render
> > > > (SimpleNode.java:230) at
> > > >
> > org.apache.velocity.runtime.parser.node.ASTIfStatement.render
> > (ASTIfStatement.java:89)
> > > > at
> > > >
> > org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
> > > > at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate
> > > > (XWikiVelocityRenderer.java :244) at
> > > >
> > com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:146)
> > > > at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:985) at
> > > > com.xpn.xwiki.web.Utils.parseTemplate(Utils.java :98)
> > at
> > > >
> > com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:148)
> > > > at
> > > >
> > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> > > > at
> > > > org.apache.struts.action.RequestProcessor.process
> > (RequestProcessor.java
> > > > :226) at
> > > >
> > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> > > > at
> > > >
> > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> > > > at
> > > >
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> > > > at javax.servlet.http.HttpServlet.service
> > > > (HttpServlet.java:802) at
> > > >
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> > (ApplicationFilterChain.java:252)
> > > > at
> > > >
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> > > > at
> > com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter
> > > > (SetCharacterEncodingFilter.java :127) at
> > > >
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> > > > at
> > > >
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java
> > > > :173) at
> > > >
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> > > > at
> > > >
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> > > > at org.apache.catalina.core.StandardHostValve.invoke
> > > > (StandardHostValve.java:126) at
> > > >
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> > > > at
> > > >
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> > :107)
> > > > at org.apache.catalina.connector.CoyoteAdapter.service
> > > > (CoyoteAdapter.java:148) at
> > > >
> > org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
> > > > at
> > > > org.apache.jk.common.HandlerRequest.invoke
> > (HandlerRequest.java:282)
> > > > at
> > > >
> > org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java
> > > > :754) at
> > > >
> > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
> > > > at
> > > >
> > org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
> > > > at
> > > >
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> > > > (ThreadPool.java:684) at java.lang.Thread.run (Thread.java:595)
> > > >
> > > > Wrapped Exception:
> > > >
> > > > org.apache.velocity.exception.ParseErrorException:
> > > > Encountered "0" at line 5, column 53. Was expecting one of: "," … ")" …
> > > > <WHITESPACE> ...
> > > >
> > > > at
> > > >
> > com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:214)
> > > > at
> > > >
> > com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java
> > :146)
> > > > at com.xpn.xwiki.render.XWikiVelocityRenderer.render
> > > > (XWikiVelocityRenderer.java:108) at
> > > >
> > com.xpn.xwiki.render.XWikiRenderingEngine.renderText(XWikiRenderingEngine.java:204)
> > > > at com.xpn.xwiki.XWiki.include (XWiki.java:2181) at
> > > > com.xpn.xwiki.api.XWiki.includeForm(XWiki.java:541) at
> > > > sun.reflect.GeneratedMethodAccessor100.invoke(Unknown
> > > > Source) 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:267) at
> > > >
> > org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197)
> > > > at
> > > >
> > org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
> > > > at
> > > >
> > org.apache.velocity.runtime.parser.node.ASTReference.render
> > > > (ASTReference.java:220) at
> > > >
> > org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
> > > > at
> > > >
> > org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70)
> > > > at
> > org.apache.velocity.runtime.parser.node.ASTBlock.render
> > > > (ASTBlock.java:55) at
> > > >
> > org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
> > > > at
> > > >
> > org.apache.velocity.runtime.parser.node.ASTIfStatement.render
> > (ASTIfStatement.java:89)
> > > > at
> > > >
> > org.apache.velocity.runtime.parser.node.SimpleNode.render
> > > > (SimpleNode.java:230) at
> > > >
> > com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java
> > :244)
> > > > at
> > > >
> > com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:146)
> > > > at com.xpn.xwiki.XWiki.parseTemplate (XWiki.java:985)
> > at
> > > > com.xpn.xwiki.web.Utils.parseTemplate(Utils.java :98)
> > at
> > > >
> > com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:148)
> > > > at
> > > >
> > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java
> > > > :421) at
> > > > org.apache.struts.action.RequestProcessor.process
> > (RequestProcessor.java:226)
> > > > at
> > > >
> > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> > > > at
> > > >
> > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java
> > > > :397) at
> > > >
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> > > > at
> > > >
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > > at
> > > >
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> > (ApplicationFilterChain.java
> > > > :252) at
> > > >
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> > > > at
> > > >
> > com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java
> > :127)
> > > > at
> > > >
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> > > > (ApplicationFilterChain.java:202) at
> > > >
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java
> > :173)
> > > > at
> > > >
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> > > > at org.apache.catalina.core.StandardContextValve.invoke
> > > > (StandardContextValve.java:178) at
> > > >
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> > > > at
> > > >
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> > > > at org.apache.catalina.core.StandardEngineValve.invoke
> > > > (StandardEngineValve.java:107) at
> > > >
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> > > > at
> > > >
> > org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
> > > > at org.apache.jk.common.HandlerRequest.invoke
> > > > (HandlerRequest.java:282) at
> > > >
> > org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
> > > > at
> > > > org.apache.jk.common.ChannelSocket.processConnection
> > (ChannelSocket.java:684)
> > > > at
> > > >
> > org.apache.jk.common.ChannelSocket$SocketConnection.runIt
> > > > (ChannelSocket.java:876) at
> > > >
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java
> > :684)
> > > > at java.lang.Thread.run(
> > > >
> > > > WHAT IS THIS, CAN YOU GUYS PLEASE HELP ME FIX IT?
> > > >
> > > > THANKS.
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > You receive this message as a subscriber of the
> > xwiki-users at objectweb.org
> > > > mailing list.
> > > > To unsubscribe:
> > > > mailto:xwiki-users-unsubscribe at objectweb.org
> > > > For general help: mailto:sympa at objectweb.org?subject=help
> > > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > jeremi
> > >
> > >
> > > --
> > > You receive this message as a subscriber of the xwiki-users at objectweb.org
> > mailing list.
> > > To unsubscribe: mailto:
> > xwiki-users-unsubscribe at objectweb.org
> > > For general help: mailto:sympa at objectweb.org?subject=help
> > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> > >
> > >
> > >
> >
> >
> >
> > --
> > You receive this message as a subscriber of the xwiki-users at objectweb.org
> > mailing list.
> > To unsubscribe:
> > mailto:xwiki-users-unsubscribe at objectweb.org
> > For general help: mailto:sympa at objectweb.org?subject=help
> > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >
> >
> >
>
>
> --
> jeremi
>
>
> --
> You receive this message as a subscriber of the xwiki-users at objectweb.org mailing list.
> To unsubscribe: mailto:xwiki-users-unsubscribe at objectweb.org
> For general help: mailto:sympa at objectweb.org?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>




More information about the users mailing list