net.sf.hibernate.HibernateException: collection was evicted

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Atlassian JIRA by Vladimir, 1 year ago
collection was evicted
via Atlassian JIRA by Jens-S. Vöckler, 1 year ago
collection was evicted
via Atlassian JIRA by Jens Schumacher, 1 year ago
collection was evicted
via Atlassian JIRA by Tobias Anstett (K15t Software), 1 year ago
collection was evicted
via Atlassian JIRA by Libor Tvrdik, 1 year ago
collection was evicted
via Atlassian JIRA by Jens Schumacher, 1 year ago
collection was evicted
net.sf.hibernate.HibernateException: collection was evicted
at net.sf.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:3307)
at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:195)
at net.sf.hibernate.collection.PersistentCollection.read(PersistentCollection.java:71)
at net.sf.hibernate.collection.Bag.size(Bag.java:232)
at com.atlassian.confluence.pages.actions.AbstractPageAction.getNumberOfAttachmentsAsString(AbstractPageAction.java:324)
at com.atlassian.confluence.pages.actions.AbstractPageAction.getWebInterfaceContext(AbstractPageAction.java:305)
at com.atlassian.confluence.pages.actions.AbstractCreateAndEditPageAction.getWebInterfaceContext(AbstractCreateAndEditPageAction.java:514)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecutor.java:142)
at org.apache.velocity.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:533)
at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:198)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:507)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:155)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.