Product: Confluence
Environment
| Operating System | |
|---|---|
| Affect Version/s | 2.5.7 |
| JVM | |
| Database | MySQL 4.1.x |
| Application Server | Tomcat 5.5.x |
Error Message
N/A - slow loading times when users browse in Confluence.
Symptom
related error message (may or may not appear depending on Hibernate caching setting)
Cause: net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no session or session was closed at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:209)
Diagnostics/Test
Run page profiling and review logs to understand loading times for requests. Also check "Hibernate cache = true" setting is enabled or not.
if Hibernate cache is set to false, then slow load time is expected as permissions checking queries are not cached and a requests are constantly sent and retrieved.
If Hibernate cache is enabled (true) then it will cause the above error message.
Root Cause
Bug reported in CONF-9434 and related to CONF-9195
Solution
apply the patched atlassian-user.jar file attached to those two issues.
