-
Bug
-
Resolution: Low Engagement
-
Medium
-
None
-
5.0
-
1
-
Severity 2 - Major
-
5
-
Since 5.7 we are experiencing Hibernate Session exceptions when accessing CEOs in a Job context (<job /> module in plugin.xml)
ERROR [scheduler_Worker-3] [sf.hibernate.proxy.LazyInitializer] initializeWrapExceptions Exception initializing proxy net.sf.hibernate.HibernateException: Could not initialize proxy - the owning Session was closed ... at com.atlassian.confluence.core.ConfluenceEntityObject.getCreatorName(ConfluenceEntityObject.java:27)
The documentation says:
At a minimum, the module class must implement Quartz's Job interface, but for access to Confluence's objects and database you should extend com.atlassian.quartz.jobs.AbstractJob.
But simply extending AbstractJob is not enough. There is no transaction management automatically applied in this case.
- duplicates
-
CONFSERVER-21435 Jobs that extend AbstractJob throw LazyInitializationException anyway
-
- Closed
-
[CONFSERVER-35465] AbstractJob should take care of transaction management as suggested by it's documentation
QA Demo Status | New: Not Needed [ 14332 ] | |
QA Kickoff Status | New: Not Needed [ 14236 ] | |
Resolution | New: Low Engagement [ 10300 ] | |
Status | Original: Gathering Impact [ 12072 ] | New: Closed [ 6 ] |
Labels | Original: 3rd-party affects-server database/hibernate | New: 3rd-party affects-server cleanup-seos-fy25 database/hibernate |
UIS | Original: 1 | New: 5 |
UIS | Original: 5 | New: 1 |
UIS | Original: 6 | New: 5 |
UIS | Original: 7 | New: 6 |
UIS | Original: 6 | New: 7 |
UIS | Original: 7 | New: 6 |
UIS | Original: 6 | New: 7 |
UIS | Original: 4 | New: 6 |