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.GeneratedMethodAccessor855.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:500)
at ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:913)
at ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:54)
at ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:122)
at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1603)
at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1603)
at ognl.ASTProperty.getValueBody(ASTProperty.java:96)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:171)

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.