Skip to end of metadata
Go to start of metadata

Hi,

I am trying to get Theme Builder to render a few menulinks in Confluence 3.0 and I get the following java exception thrown in the Confluence log:

2009-08-25 14:34:18,275 ERROR [http-8080-5] [renderer.v2.components.MacroRendererComponent] processMacro Unexpected error formatting macro: menulink
java.lang.ArrayIndexOutOfBoundsException: 1
        at com.adaptavist.confluence.builder.macros.menus.MenuLinkMacro.execute(MenuLinkMacro.java:218)
        at com.atlassian.renderer.v2.macro.ResourceAwareMacroDecorator.execute(ResourceAwareMacroDecorator.java:45)
        at com.atlassian.renderer.v2.components.MacroRendererComponent.executeMacro(MacroRendererComponent.java:196)
        at com.atlassian.renderer.v2.components.MacroRendererComponent.processMacro(MacroRendererComponent.java:154)
        at com.atlassian.renderer.v2.components.MacroRendererComponent.makeMacro(MacroRendererComponent.java:58)
        at com.atlassian.renderer.v2.components.WikiContentRendererHandler.handleMacro(WikiContentRendererHandler.java:18)
        at com.atlassian.renderer.v2.WikiMarkupParser.makeMacro(WikiMarkupParser.java:120)
        ......

Any idea what could be causing this?

  • No labels

3 Comments

  1. What version of Builder are you using?

    1. Unknown User (chrisroush)

      Sorry, I should have added more details. I am using version 3.3.5-conf210.

    2. Unknown User (chrisroush)

      I found that this was an issue with the aliases within the macro. For example I created an alias called 'importdoc'. I know the actual URL attached to the alias works, but it causes the menu item to dissappear. If I change the action within the macro to something else like

      Unknown macro: {menuitem}

      , the link will show up. It only seems to be a problem with aliases.

      Thoughts?