Skip to end of metadata
Go to start of metadata

Hello-

We are currently using Confluence 3.2 with the latest Theme Builder plugin. When we attempt to go to a mail archive page for an individually archived e-mail, an error results that appears to be associated with Theme Builder. Here is a snippet of the error message:

---------------------
java.lang.RuntimeException: Error rendering template for decorator root
at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:211)

caused by: java.lang.RuntimeException: Error rendering template for decorator mail
at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:211)

caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'format' in class com.atlassian.confluence.util.GeneralUtil threw exception java.lang.StackOverflowError at templates/builder/theme/mail.vmdline 120, column 54
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:351)

caused by: java.lang.StackOverflowError
at com.atlassian.confluence.util.GeneralUtil.format(GeneralUtil.java:151)

-------------------

This appears to be a bug in Theme Builder causing a conflict in the rendering engine when the mail archive function is used. Can you provide any advice or an estimate on when this could be patched?

Thank you

Rob Fox
University of Notre Dame

  • No labels

14 Comments

  1. What version of builder are you using?

  2. Also, can you go into general config and paste me a copy of your default date format?

  3. Unknown User (rfox2@nd.edu)

    We are using Theme Builder version 4.0.2

    Here is the date information from our General Config:

    Time Format: h:mm a (5:12 PM)
    Day Format: MMM dd (Jul 09)
    Date Time Format: MMM dd, yyyy HH:mm (Jul 09, 2010 17:12)
    Date Format: MMM dd, yyyy (Jul 09, 2010)

    Thanks for your help

    1. Hmm ... and the date on the mail that you are trying to view is?

      I should probably tell you that the line in question is:

      <td>$generalUtil.format($mail.creationDate)</td>
      

      Hardly rocket science (you would think) and totally out of builder's control - $generalUtil is atlassian's GeneralUtil class & $mail comes from $helper.mail (as it does in the default theme)

      The only thing I can think could cause a recursion like this is that the date object has been corrupted :s

      What happens when you uninstall builder?

      1. Unknown User (rfox2)

        The mail function works just fine outside of theme builder layouts. If we view archived mail in one of the Atlassian supplied templates, it works.

        This seems to happen with all of the emails archived in our system. If we try to view any of them within theme builder, this error results. Any template outside of theme builder does not have this issue.

        Are you saying then that the date format could be throwing things off?

        1. Possibly, however the date formats you have set look like the confluence default values ... I'm afraid that detailed investigation of this problem within a reasonable timeframe will require a support contract.

          We will look into it eventually, however that will only happen when we have enough free time to devote to it :s

          1. Unknown User (rfox2)

            Alain thank you for the help you offered anyway. That's much appreciated. Perhaps we should look into a support contract if we continue to use the Theme Builder. It's a real bummer for us that this is broken.

      2. Unknown User (heerdegen)

        This is definitively NOT out of builder's control ... simply replace the above line with the correct one (taken from Atlassian's mail.vmd) and you're done !

        <td>$action.dateFormatter.formatDateTime($mail.creationDate)</td>
        
  4. Unknown User (gpdeoude)

    Hello,

    We are testing the theme builder plugin right now to see if it would fulfill our needs and we are having the same problem.
    Is there a way how we could bypass this issue in the meantime?
    I am quite new to theme builder but I was looking at using a different standard theme for the email archive because then my email works well.
    Is there a way to link a theme to a page (email archive) or something like that?

    We should be able to find something because otherwise theme builder is not an option for us. We use quite a lot of email within confluence.

    Thanks a lot for your feedback.

    regards,
    Geert-Peter

    1. Which version of Confluence & Theme Builder are you using?

      I've just tested Confluence 3.3.1 & TB 4.1.3 and don't see any date formatting problems.

      If you are using 3.3, it may also be worth trying the latest early access release - I've switched the date formatting in mail.vmd as suggested by Marcus. Although this is for Confluence 3.3 - we'll backport this to the 4.0.x branch (for Confluence 3.1/3.2) at a later date when we get time.

      1. Unknown User (gpdeoude)

        We are on 3.1.1 (confluence).
        I will first upgrade and check the result.

        Thanks for your reply.

        Have a great day.
        Geert-Peter.

      2. Unknown User (hberndt@bid-system.de)

        Hi Mark,

        I updated to Confluence 3.3.1 and after a try to 3.3.3. I get the same error. I use TB 4.1.3. How can I upgrade to the early access?

        Lind regards,

        Holger

        1. Unknown User (kbrophy)

          Hi Holger,

          The early access builds are available from here:

          These builds will need to be manually installed.

          Regards,
          Keith

        2. Unknown User (kbrophy)

          Hi Holger,

          It is worth noting that we now have a 4.2-RC1 early access release that addresses a number of issues, including Confluence 3.3.x/3.4.x compatibility:

          Regards,
          Keith