Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0022764
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformcriticalalways2013-01-10 11:412013-01-10 20:31
ReporteralostaleView Statuspublic 
Assigned Toalostale 
PriorityurgentResolutionfixedFixed in Version3.0MP19
StatusclosedFix in branchFixed in SCM revisiond67e4d8ad581
ProjectionnoneETAnoneTarget Version3.0MP20
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToAugustoMauch
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0022764: cannot open any window

DescriptionWhen 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.
Steps To ReproduceIn 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)
...
TagsNo tags attached.
Attached Files? file icon 19033.export [^] (1,648 bytes) 2013-01-10 12:08

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0029910 closedplatform exporting grid to csv can fail if audit fields are included 

-  Notes
(0055452)
alostale (manager)
2013-01-10 12:08

attached fix as pi is currently frozen
(0055453)
hgbot (developer)
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 (manager)
2013-01-10 15:46

Code reviewed and verified in pi@d67e4d8ad581
(0055475)
hudsonbot (developer)
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

- Issue History
Date Modified Username Field Change
2013-01-10 11:41 alostale New Issue
2013-01-10 11:41 alostale Assigned To => alostale
2013-01-10 11:41 alostale Modules => Core
2013-01-10 11:41 alostale Triggers an Emergency Pack => No
2013-01-10 11:51 alostale Review Assigned To => AugustoMauch
2013-01-10 12:00 alostale Description Updated View Revisions
2013-01-10 12:00 alostale Severity major => critical
2013-01-10 12:08 alostale File Added: 19033.export
2013-01-10 12:08 alostale Note Added: 0055452
2013-01-10 12:36 hgbot Checkin
2013-01-10 12:36 hgbot Note Added: 0055453
2013-01-10 12:36 hgbot Status new => resolved
2013-01-10 12:36 hgbot Resolution open => fixed
2013-01-10 12:36 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d67e4d8ad5815a5eb14a429b95ae072eab18ee15 [^]
2013-01-10 15:46 AugustoMauch Note Added: 0055463
2013-01-10 15:46 AugustoMauch Status resolved => closed
2013-01-10 15:46 AugustoMauch Fixed in Version => 3.0MP19
2013-01-10 20:31 hudsonbot Checkin
2013-01-10 20:31 hudsonbot Note Added: 0055475
2015-11-10 15:27 alostale Relationship added related to 0029910


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker