Re: [xwiki-users] Tooltip macro not working after upgrade to 3.0RC1

2011-03-30 Thread Vincent Massol

On Mar 30, 2011, at 3:46 PM, Vincent Massol wrote:

> 
> On Mar 30, 2011, at 3:38 PM, Raluca Stavro wrote:
> 
>> Hello,
>> 
>> On Wed, Mar 30, 2011 at 2:42 PM, Elena-Oana Tabaranu <
>> oana.tabar...@xwiki.com> wrote:
>> 
>>> Hi,
>>> 
>>> Edit the macro code on http://>> server>/xwiki/bin/edit/XWiki/Tooltip?editor=object and try replacing
>>> $xcontext.macro.content with ${xcontext.macro.content}
>>> 
>>> Hope this helps,
>>> Oana
>>> 
>>> On 03/29/2011 06:52 PM, coldserenity wrote:
 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?
>>> 
>> 
>> Because the Tooltip Macro is an extension, it is not bundled with XWiki.
>> This is why, using Jira is not a solution.
> 
> This is not quite correct. Contributions also have their own jira issue.

here: http://jira.xwiki.org/jira/secure/BrowseProjects.jspa#10070

-Vincent

> 
> What happens here is that this macro's sources are probably not in xwiki's 
> contrib svn repository. That's the choice of the author of the code to decide 
> where he puts his source code. The recommendation is to put it in XWiki's 
> contrib repo to make it easy for several people to work on it.
> 
> See http://contrib.xwiki.org for more details.
> 
> Thanks
> -Vincent
> 
>> 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
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Tooltip+Macro (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
> 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 Sou

Re: [xwiki-users] Tooltip macro not working after upgrade to 3.0RC1

2011-03-30 Thread Vincent Massol

On Mar 30, 2011, at 3:38 PM, Raluca Stavro wrote:

> Hello,
> 
> On Wed, Mar 30, 2011 at 2:42 PM, Elena-Oana Tabaranu <
> oana.tabar...@xwiki.com> wrote:
> 
>> Hi,
>> 
>> Edit the macro code on http://> server>/xwiki/bin/edit/XWiki/Tooltip?editor=object and try replacing
>> $xcontext.macro.content with ${xcontext.macro.content}
>> 
>> Hope this helps,
>> Oana
>> 
>> On 03/29/2011 06:52 PM, coldserenity wrote:
>>> 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?
>> 
> 
> Because the Tooltip Macro is an extension, it is not bundled with XWiki.
> This is why, using Jira is not a solution.

This is not quite correct. Contributions also have their own jira issue.

What happens here is that this macro's sources are probably not in xwiki's 
contrib svn repository. That's the choice of the author of the code to decide 
where he puts his source code. The recommendation is to put it in XWiki's 
contrib repo to make it easy for several people to work on it.

See http://contrib.xwiki.org for more details.

Thanks
-Vincent

> 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
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Tooltip+Macro (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
 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$Ve

Re: [xwiki-users] Tooltip macro not working after upgrade to 3.0RC1

2011-03-30 Thread Roman Muntyanu
That worked perfectly!
Thanks Oana!

-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of 
Elena-Oana Tabaranu
Sent: Wednesday, March 30, 2011 2:42 PM
To: users@xwiki.org
Subject: Re: [xwiki-users] Tooltip macro not working after upgrade to 3.0RC1

Hi,

Edit the macro code on http:///xwiki/bin/edit/XWiki/Tooltip?editor=object and try replacing 
$xcontext.macro.content with ${xcontext.macro.content}

Hope this helps,
Oana

On 03/29/2011 06:52 PM, coldserenity wrote:
> 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.A

Re: [xwiki-users] Tooltip macro not working after upgrade to 3.0RC1

2011-03-30 Thread Raluca Stavro
Hello,

On Wed, Mar 30, 2011 at 2:42 PM, Elena-Oana Tabaranu <
oana.tabar...@xwiki.com> wrote:

> Hi,
>
> Edit the macro code on http:// server>/xwiki/bin/edit/XWiki/Tooltip?editor=object and try replacing
> $xcontext.macro.content with ${xcontext.macro.content}
>
> Hope this helps,
> Oana
>
> On 03/29/2011 06:52 PM, coldserenity wrote:
> > 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?
>

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
http://extensions.xwiki.org/xwiki/bin/view/Extension/Tooltip+Macro (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
> >> 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.

Re: [xwiki-users] Tooltip macro not working after upgrade to 3.0RC1

2011-03-30 Thread Elena-Oana Tabaranu
Hi,

Edit the macro code on http:///xwiki/bin/edit/XWiki/Tooltip?editor=object and try replacing 
$xcontext.macro.content with ${xcontext.macro.content}

Hope this helps,
Oana

On 03/29/2011 06:52 PM, coldserenity wrote:
> 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(XWi

[xwiki-users] Tooltip macro not working after upgrade to 3.0RC1

2011-03-29 Thread coldserenity
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.