Hello,

   Environment: XWiki iteratively upgraded 2.2 -> 2.3 -> 2.4 -> 2.6 ->
3.0RC1 (there might have been minor version upgrade in-between)
   After having upgraded to XWiki 3.0RC1, Tooltip macro (
http://extensions.xwiki.org/xwiki/bin/view/Extension/Tooltip+Macro ) stopped
working throwing the error shown below.
   I've checked several other macros - they still work.
   Should I log a bug in Jira for the macro or this can be fixed somehow?



> Failed to execute the [velocity] macro
> org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate
> Velocity Macro for content [(%class="tooltipHint
> #if($!xcontext.macro.params.display-icon == false) withoutIcon#end"
> $!hintStyles%)#if("$!xcontext.macro.params.id" !=
> "")(%class="tooltipLabelId hidden"%)$!xcontext.macro.params.id#else{{html
> clean=false}}$!xcontext.macro.params.label{{/html}}#end(%class="tooltip
> hidden" $!tooltipStyles %)$xcontext.macro.content(%class="tooltipEvent
> hidden"%)$tooltipEvent]
>     at
> org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:124)
>     at
> org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:47)
>     at
> org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:303)
>     at
> org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:199)
>     at
> org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:57)
>     at
> org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:184)
>     at
> org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:129)
>     at
> org.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacro.execute(DefaultWikiMacro.java:213)
>     at
> org.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacro.execute(DefaultWikiMacro.java:57)
>     at
> org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:184)
>     at
> org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:129)
>     at
> org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
>     at
> com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7605)
>     at
> com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7554)
>     at
> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:836)
>     at
> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:785)
>     at
> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:879)
>     at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:556)
>     at sun.reflect.GeneratedMethodAccessor530.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.doInvoke(UberspectImpl.java:395)
>     at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
>     at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
>     at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
>     at
> org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
>     at
> org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
>     at
> org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
>     at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
>     at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
>     at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
>     at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
>     at
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:188)
>     at
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:153)
>     at
> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
>     at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1890)
>     at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1828)
>     at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:848)
>     at sun.reflect.GeneratedMethodAccessor284.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.doInvoke(UberspectImpl.java:395)
>     at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
>     at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
>     at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
>     at
> org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
>     at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
>     at
> org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
>     at
> org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
>     at
> org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
>     at
> org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
>     at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
>     at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
>     at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
>     at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
>     at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
>     at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
>     at
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:188)
>     at
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:153)
>     at
> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
>     at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1941)
>     at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1860)
>     at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:154)
>     at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226)
>     at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:117)
>     at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
>     at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
>     at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
>     at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>     at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>     at
> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>     at
> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>     at
> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>     at
> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>     at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>     at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>     at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>     at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>     at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>     at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>     at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
>     at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>     at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>     at java.lang.Thread.run(Thread.java:619)
> Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate
> content with id [unknown namespace]
>     at
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:197)
>     at
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:153)
>     at
> org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:117)
> ... 97 more
> Caused by: org.apache.velocity.runtime.parser.ParseException: Lexical
> error: org.apache.velocity.runtime.parser.TokenMgrError: Lexical error
>     at line 1, column 336. Encountered: "%" (37), after : ""
>     at org.apache.velocity.runtime.parser.Parser.parse(Parser.java:136)
>     at
> org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1226)
>     at
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:181)
> ... 99 more
> 

Regards,
  Roman

--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Tooltip-macro-not-working-after-upgrade-to-3-0RC1-tp6219747p6219747.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to