Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011684Openbravo ERPA. Platformpublic2009-12-08 14:582009-12-11 00:00
mtaal 
mtaal 
urgentmajoralways
closedfixed 
5
pi 
pi 
Core
No
0011684: LazyInitializationException when exporting ADTreeNode in REST webservice
When running the WSReadTest a LazyInitializationException is thrown because the DAL XML converter clears the session during the xml conversion. The session clearing is needed to prevent high-memory usage.

The exception:
org.hibernate.LazyInitializationException: could not initialize proxy - no Session Caused by: could not initialize proxy - no Session

During processing the datascroller also export the 'added' objects before clearing the session.
No tags attached.
Issue History
2009-12-08 14:58mtaalNew Issue
2009-12-08 14:58mtaalAssigned To => mtaal
2009-12-08 16:42mtaalSummaryLazyInitializationException when exporting ADTreeNode as a webservice => LazyInitializationException when exporting ADTreeNode in REST webservice
2009-12-08 16:44hgbotCheckin
2009-12-08 16:44hgbotNote Added: 0022546
2009-12-08 16:44hgbotStatusnew => resolved
2009-12-08 16:44hgbotResolutionopen => fixed
2009-12-08 16:44hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9acedbca193d5ad0ef156d370fab782770c96410 [^]
2009-12-10 13:00iperdomoNote Added: 0022635
2009-12-10 13:00iperdomoStatusresolved => closed
2009-12-11 00:00anonymoussf_bug_id0 => 2912326

Notes
(0022546)
hgbot   
2009-12-08 16:44   
Repository: erp/devel/pi
Changeset: 9acedbca193d5ad0ef156d370fab782770c96410
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Dec 08 16:41:52 2009 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/9acedbca193d5ad0ef156d370fab782770c96410 [^]

fixes issue 11684: LazyInitializationException when exporting ADTreeNode in REST webservice

---
M src/org/openbravo/dal/xml/EntityXMLConverter.java
---
(0022635)
iperdomo   
2009-12-10 13:00   
Tested on pi @ rev 8cc92d933061