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 /decorators/includes/page-metadata.vm[line 7, column 53]

Atlassian JIRA | Shawn Cranford [Atlassian] | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    h3. Summary Unable to Access Pages In Confluence. Only affects some instances. h3. Environment - Confluence 1000.85.0 h3. Steps to Reproduce # Attempt to Access Pages in Confluence h3. Expected Results Page loads without error h3. Actual Results Stack Trace is generated and displays the following message on screen: {noformat}Cause java.lang.RuntimeException: Error rendering template for decorator root at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:163) caused by: java.lang.RuntimeException: Error rendering template for decorator page at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:163) 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 /decorators/includes/page-metadata.vm[line 7, column 53] 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. Notes Does not appear to be a Macro or Page Content issue as some pages with a similar layout and content in the same instance load without issues h3. Partial Workaround If a User has Edit Permissions and the Page's Page ID is known, the Page can be accessed using the Edit Mode URL: {{https://HOST.atlassian.net/wiki/pages/editpage.action?pageId=########}}

    Atlassian JIRA | 9 months ago | Shawn Cranford [Atlassian]
    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 /decorators/includes/page-metadata.vm[line 7, column 53]
  2. 0

    h3. Summary Unable to Access Pages In Confluence. Only affects some instances. h3. Environment - Confluence 1000.85.0 h3. Steps to Reproduce # Attempt to Access Pages in Confluence h3. Expected Results Page loads without error h3. Actual Results Stack Trace is generated and displays the following message on screen: {noformat}Cause java.lang.RuntimeException: Error rendering template for decorator root at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:163) caused by: java.lang.RuntimeException: Error rendering template for decorator page at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:163) 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 /decorators/includes/page-metadata.vm[line 7, column 53] 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. Notes Does not appear to be a Macro or Page Content issue as some pages with a similar layout and content in the same instance load without issues h3. Partial Workaround If a User has Edit Permissions and the Page's Page ID is known, the Page can be accessed using the Edit Mode URL: {{https://HOST.atlassian.net/wiki/pages/editpage.action?pageId=########}}

    Atlassian JIRA | 9 months ago | Shawn Cranford [Atlassian]
    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 /decorators/includes/page-metadata.vm[line 7, column 53]
  3. 0

    Chat history - A system error has occurred

    GitHub | 3 years ago | sniadek
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'canView' in class com.atlassian.confluence.security.PermissionHelper threw exception java.lang.IllegalArgumentException: Could not check permissions for michals no suitable delegate found. at template/includes/macros.vm[line 1308, column 39]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

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

    atlassian.com | 1 year ago
    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]
  6. 0

    h5. Steps to Reproduce # Change system locale to Turkish # Go to {{Dashboard -> Administration -> View Global Permissions}} # Edit Permissions You will get a System Error page with something like this {code} org.apache.velocity.exception.MethodInvocationException: Invocation of method 'canSetPermissionOnGroup' in class com.atlassian.confluence.security.actions.EditGlobalPermissionsAction threw exception java.lang.IllegalArgumentException: Unknown global permission: profileattachments at /admin/permissions/editglobalperms.vm[line 53, column 52] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) caused by: java.lang.IllegalArgumentException: Unknown global permission: profileattachments at com.atlassian.confluence.security.administrators.EditGlobalPermissionsAdministrator.canSetPermissionOnGroup(EditGlobalPermissionsAdministrator.java:100) {code} \\ h5. Findings || Confluence Version || Remark || | 3.1, 3.1.1, 3.1.2, 3.2 | Tested and affected | | 2.10.4, 3.0.0_01, 3.0.1, 3.0.2 | Unable to test due to [CONF-17160] | \\ h5. Workaround Cited from [CONF-7168|http://jira.atlassian.com/browse/CONF-7168?focusedCommentId=67700&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_67700] {quote} As a work-around, please pass these arguments to your JVM by adding them to JAVA_OPTS in setenv.bat: -Duser.country=EN -Duser.language=en {quote}

    Atlassian JIRA | 7 years ago | Husein Alatas [Atlassian]
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'canSetPermissionOnGroup' in class com.atlassian.confluence.security.actions.EditGlobalPermissionsAction threw exception java.lang.IllegalArgumentException: Unknown global permission: profileattachments at /admin/permissions/editglobalperms.vm[line 53, column 52]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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 /decorators/includes/page-metadata.vm[line 7, column 53]

      at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException()
    2. Apache Velocity
      ASTMethod.handleInvocationException
      1. org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
      1 frame