Steps to reproduce:

      1) Create a new page
      2) Enter in Wikimarkup mode and use the following code:

      {multimedia}
      {multimedia}
      

      Save the page and you'll be granted with a System error with the following stacktrace:

       java.lang.RuntimeException: Error rendering template for decorator root
          at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:205)
      
      caused by: java.lang.RuntimeException: Error rendering template for decorator page
          at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:205)
      
      caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getDisplayableLabel' in class com.atlassian.confluence.plugin.descriptor.web.model.ConfluenceWebLabel threw exception com.atlassian.core.exception.InfrastructureException: Error occurred rendering template content at template/includes/menu-macros.vm[line 137, column 36]
          at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
      
      caused by: com.atlassian.core.exception.InfrastructureException: Error occurred rendering template content
          at com.atlassian.confluence.util.velocity.VelocityUtils.getRenderedContent(VelocityUtils.java:123)
      
      caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getLatestVersionsOfAttachments' in class com.atlassian.confluence.pages.Page threw exception net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection at getRenderedContent[line 1, column 15]
          at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
      
      caused by: net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection
          at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:201)
      
      caused by: net.sf.hibernate.HibernateException: collection was evicted
          at net.sf.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:3303) 
      

      Workaround

      Edit the page using this documentation to remove the offending macro.

            [CONFSERVER-26158] Multimedia macro causes system error

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2897830 ] New: CONFSERVER Bug Workflow v4 [ 2992378 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2789746 ] New: JAC Bug Workflow v3 [ 2897830 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2733141 ] New: JAC Bug Workflow v2 [ 2789746 ]
            Owen made changes -
            Symptom Severity Original: Major [ 14431 ] New: Severity 2 - Major [ 15831 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2398502 ] New: JAC Bug Workflow [ 2733141 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2296429 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2398502 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2232127 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2296429 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2191827 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2232127 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1928467 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2191827 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1738348 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1928467 ]

              Unassigned Unassigned
              rgadami Rodrigo Girardi Adami
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: