Hello,
On Wed, Mar 30, 2011 at 2:42 PM, Elena-Oana Tabaranu <
oana.tabaranu(a)xwiki.com> wrote:
Because the Tooltip Macro is an extension, it is not bundled with XWiki.
This is why, using Jira is not a solution. Anyone can contribute to
extensions, so each time you have a fix for a piece of code, you can update
the extension accordingly. In this particular case, the Tooltip Macro code
has been updated on
(v1.2.1:
small update to fix velocity parsing error), so you can just download it and
re-import it into your wiki. Oana is right, the issue that you have comes
from the way $xcontext.macro.content is being parsed.
Raluca.
> 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<http://xcontext.macro.params.id#else%7B%7Bhtml>
>
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-t…
Sent from the XWiki- Users mailing list archive
at
Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users