Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-38084

Error when visiting pages with JIRA integrations, caused by duplicate AppLinks keys

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Summary

      When visiting a page in Confluence with JIRA Issues Macro, a stack trace will be seen.

      Environment

      Confluence 5.9.0-OD-57-010

      Steps to Reproduce

      1. Visit or create a page on the instance with JIRA Issues macro.
      2. Instead of page loading, you receive below stack trace.

      Expected Results

      Generally page should load without problem.

      Actual Results

       java.lang.RuntimeException: Error rendering template for decorator root
          at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:202)
      
      caused by: java.lang.RuntimeException: Error rendering template for decorator page
          at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:202)
      
      caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getDisplayableItems' in class com.atlassian.confluence.plugin.descriptor.web.ConfluenceWebInterfaceManager threw exception net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection at template/includes/menu-macros.vm[line 125, column 45]
          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:3332)

      Workaround

      Raise a support request in the Atlassian Cloud project at support.atlassian.com to have Support apply the fix to your instance. No downtime is required.

        1. screenshot-1.png
          13 kB
          Ian Wells

          Form Name

            [CONFSERVER-38084] Error when visiting pages with JIRA integrations, caused by duplicate AppLinks keys

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2879605 ] New: CONFSERVER Bug Workflow v4 [ 3003357 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2786421 ] New: JAC Bug Workflow v3 [ 2879605 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2716612 ] New: JAC Bug Workflow v2 [ 2786421 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2372885 ] New: JAC Bug Workflow [ 2716612 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2257308 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2372885 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2208543 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2257308 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2154271 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2208543 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1940919 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2154271 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1744482 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1940919 ]
            jonah (Inactive) made changes -
            Description Original: h3. Summary
            When visiting a page in Confluence with JIRA Issues Macro, a stack trace will be seen.


            h3. Environment
            Confluence 5.9.0-OD-57-010

            h3. Steps to Reproduce
            # Visit or create a page on the instance with JIRA Issues macro.
            # Instead of page loading, you receive below stack trace.

            h3. Expected Results
            Generally page should load without problem.

            h3. Actual Results
            {noformat}
             java.lang.RuntimeException: Error rendering template for decorator root
                at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:202)

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

            caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getDisplayableItems' in class com.atlassian.confluence.plugin.descriptor.web.ConfluenceWebInterfaceManager threw exception net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection at template/includes/menu-macros.vm[line 125, column 45]
                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:3332){noformat}
             

            h3.Workaround
            Raise a support request in the Atlassian Cloud project at [support.atlassian.com|https://support.atlassian.com] to have Support apply the fix to your instance. No downtime is required.
            New: {panel:bgColor=#e7f4fa}
              *NOTE:* This bug report is for *Confluence Server*. Using *Confluence Cloud*? [See the corresponding bug report|http://jira.atlassian.com/browse/CONFCLOUD-38084].
              {panel}

            h3. Summary
            When visiting a page in Confluence with JIRA Issues Macro, a stack trace will be seen.


            h3. Environment
            Confluence 5.9.0-OD-57-010

            h3. Steps to Reproduce
            # Visit or create a page on the instance with JIRA Issues macro.
            # Instead of page loading, you receive below stack trace.

            h3. Expected Results
            Generally page should load without problem.

            h3. Actual Results
            {noformat}
             java.lang.RuntimeException: Error rendering template for decorator root
                at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:202)

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

            caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getDisplayableItems' in class com.atlassian.confluence.plugin.descriptor.web.ConfluenceWebInterfaceManager threw exception net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection at template/includes/menu-macros.vm[line 125, column 45]
                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:3332){noformat}
             

            h3.Workaround
            Raise a support request in the Atlassian Cloud project at [support.atlassian.com|https://support.atlassian.com] to have Support apply the fix to your instance. No downtime is required.

              qphan Quan Phan
              smackie@atlassian.com Shannon S
              Affected customers:
              3 This affects my team
              Watchers:
              23 Start watching this issue

                Created:
                Updated:
                Resolved: