Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022764Openbravo ERPA. Platformpublic2013-01-10 11:412013-01-10 20:31
alostale 
alostale 
urgentcriticalalways
closedfixed 
5
 
3.0MP203.0MP19 
AugustoMauch
Core
No
0022764: cannot open any window
When the very first action done after restarting tomcat is to print a csv with any audit field from a window that was locally cached in browser, it is not possible to open any non cached window.

This affects to all users till tomcat is restarted.
In an enviroment with *no* modules in development:
1. clean browser cache
2. open any generated window (i.e Sales Order)
3. restart tomcat
4. login again in same browser and open same window (Sales Order) before opening any other one
5. in grid mode show audit fields (i.e. Creation Date)
6. export grid to csv
7. open any other window (i.e. Sales Invoice) -> error is raisen

*in ui popup is seen with this message:
Error occured: freemarker.template.TemplateModelException: get(tabView) failed on instance of org.openbravo.client.application.window.StandardWindowComponent

*in tomcat log:
ERROR org.hibernate.LazyInitializationException - failed to lazily initialize a collection of role: ADElement.aDElementTrlList, no session or session was closed
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: ADElement.aDElementTrlList, no session or session was closed
    at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:383)
    at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:375)
    at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:368)
    at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:111)
    at org.hibernate.collection.PersistentBag.iterator(PersistentBag.java:272)
    at org.openbravo.client.application.window.OBViewUtil.getLabel(OBViewUtil.java:68)
    at org.openbravo.client.application.window.OBViewUtil.getLabel(OBViewUtil.java:63)
    at org.openbravo.client.application.window.OBViewFieldHandler$OBViewFieldAudit.getLabel(OBViewFieldHandler.java:580)
...
No tags attached.
related to defect 0029910 closed platform exporting grid to csv can fail if audit fields are included 
? 19033.export (1,648) 2013-01-10 12:08
https://issues.openbravo.com/file_download.php?file_id=5883&type=bug
Issue History
2013-01-10 11:41alostaleNew Issue
2013-01-10 11:41alostaleAssigned To => alostale
2013-01-10 11:41alostaleModules => Core
2013-01-10 11:41alostaleTriggers an Emergency Pack => No
2013-01-10 11:51alostaleReview Assigned To => AugustoMauch
2013-01-10 12:00alostaleDescription Updatedbug_revision_view_page.php?rev_id=4256#r4256
2013-01-10 12:00alostaleSeveritymajor => critical
2013-01-10 12:08alostaleFile Added: 19033.export
2013-01-10 12:08alostaleNote Added: 0055452
2013-01-10 12:36hgbotCheckin
2013-01-10 12:36hgbotNote Added: 0055453
2013-01-10 12:36hgbotStatusnew => resolved
2013-01-10 12:36hgbotResolutionopen => fixed
2013-01-10 12:36hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d67e4d8ad5815a5eb14a429b95ae072eab18ee15 [^]
2013-01-10 15:46AugustoMauchNote Added: 0055463
2013-01-10 15:46AugustoMauchStatusresolved => closed
2013-01-10 15:46AugustoMauchFixed in Version => 3.0MP19
2013-01-10 20:31hudsonbotCheckin
2013-01-10 20:31hudsonbotNote Added: 0055475
2015-11-10 15:27alostaleRelationship addedrelated to 0029910

Notes
(0055452)
alostale   
2013-01-10 12:08   
attached fix as pi is currently frozen
(0055453)
hgbot   
2013-01-10 12:36   
Repository: erp/devel/pi
Changeset: d67e4d8ad5815a5eb14a429b95ae072eab18ee15
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Jan 09 09:37:30 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/d67e4d8ad5815a5eb14a429b95ae072eab18ee15 [^]

fixed bug 22764: cannot open any window

It was failing because of lazy initialization when OBViewUtil was
invoked before opening any window.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewFieldHandler.java
---
(0055463)
AugustoMauch   
2013-01-10 15:46   
Code reviewed and verified in pi@d67e4d8ad581
(0055475)
hudsonbot   
2013-01-10 20:31   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/67a6d258fb63 [^]

Maturity status: Test