net.sf.hibernate.HibernateException: collection was evicted

Atlassian JIRA | Rodrigo Girardi Adami [Atlassian] | 4 years ago
  1. 0

    This page returns an error when visiting it on CAC after the 4.0 upgrade: [Using the Documentation Theme|http://confluence.atlassian.com/display/DOC/Using+the+Documentation+Theme]. {noformat} java.lang.RuntimeException: Error rendering template for decorator root at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:203) caused by: java.lang.RuntimeException: Error rendering template for decorator page at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:203) 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) {noformat}

    Atlassian JIRA | 5 years ago | Matt Ryall
    net.sf.hibernate.HibernateException: collection was evicted
  2. 0

    h2.Steps to reproduce: 1) Create a new page 2) Enter in Wikimarkup mode and use the following code: {code} {multimedia} {multimedia} {code} Save the page and you'll be granted with a System error with the following stacktrace: {code} 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) {code} h2.Workaround Edit the page using [this documentation|https://confluence.atlassian.com/x/eID9CQ] to remove the offending macro.

    Atlassian JIRA | 4 years ago | Rodrigo Girardi Adami [Atlassian]
    net.sf.hibernate.HibernateException: collection was evicted
  3. 0

    h2.Steps to reproduce: 1) Create a new page 2) Enter in Wikimarkup mode and use the following code: {code} {multimedia} {multimedia} {code} Save the page and you'll be granted with a System error with the following stacktrace: {code} 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) {code} h2.Workaround Edit the page using [this documentation|https://confluence.atlassian.com/x/eID9CQ] to remove the offending macro.

    Atlassian JIRA | 4 years ago | Rodrigo Girardi Adami [Atlassian]
    net.sf.hibernate.HibernateException: collection was evicted
  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
    net.sf.hibernate.HibernateException: collection was evicted
  6. 0

    When attempting to rename a page by editing at http://extranet.atlassian.com/pages/editpage.action?pageId=620691550 then typing in a new name and clicking save, the attached error page is thrown. Cause: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'hasChildren' in class com.atlassian.confluence.pages.Page threw exception class net.sf.hibernate.LazyInitializationException : Failed to lazily initialize a collection at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:309) 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:3305) Stack Trace: [hide] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'hasChildren' in class com.atlassian.confluence.pages.Page threw exception class net.sf.hibernate.LazyInitializationException : Failed to lazily initialize a collection at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:309) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:357) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:135) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271) at org.apache.velocity.runtime.directive.Parse.render(Parse.java:232) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94) at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:159) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271) at org.apache.velocity.Template.merge(Template.java:296) at com.opensymphony.webwork.dispatcher.VelocityResult.doExecute(VelocityResult.java:91) at com.atlassian.xwork.results.ProfiledVelocityResult.doExecute(ProfiledVelocityResult.java:21) at com.opensymphony.webwork.dispatcher.WebWorkResultSupport.execute(WebWorkResultSupport.java:116) ...

    Atlassian JIRA | 9 years ago | David Soul [Atlassian]
    net.sf.hibernate.HibernateException: collection was evicted

    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. net.sf.hibernate.HibernateException

      collection was evicted

      at net.sf.hibernate.impl.SessionImpl.initializeCollection()
    2. net.sf.hibernate
      SessionImpl.initializeCollection
      1. net.sf.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:3303)
      1 frame