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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0024842
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2013-09-27 15:442013-09-30 21:40
ReporteralostaleView Statuspublic 
Assigned Toalostale 
PriorityimmediateResolutionfixedFixed in Version3.0MP28
StatusclosedFix in branchFixed in SCM revision9c7cda930438
ProjectionnoneETAnoneTarget Version3.0MP28
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toshankarb
Web browser
ModulesCore
Regression levelProduction - Confirmed Stable
Regression date2013-01-21
Regression introduced in release
Regression introduced by commithttps://code.openbravo.com/erp/devel/pi/rev/d64833c3f0c1e44ad1b055af00e6217101d56ff8 [^]
Triggers an Emergency PackNo
Summary

0024842: custom query selector raises LazyInitializationException

DescriptionUnder some circumstances custom query selectors can throw a LazyInitializationException when trying to get records in drop downs list.
Steps To Reproduce- Create a new Custom Query Selector WITHOUT @additional_filters@ and ensuring the resultset it will be obtained in >100 records
- Add some fields to this selector
- Associate it to a column
- Try to open drop down list for that selector. This exception is thrown:
1f923ef8 9170494 [http-8080-12] ERROR org.openbravo.client.kernel.KernelUtils - failed to lazily initialize a collection of role: OBUISEL_Selector.oBUISELSelectorFieldList, no session or session was closed
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: OBUISEL_Selector.oBUISELSelectorFieldList, 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.userinterface.selector.CustomQuerySelectorDatasource.getData(CustomQuerySelectorDatasource.java:142)
Proposed SolutionWorkaround:
  1. @additional_filters@ should always be included in HQL
  2. Even if not included, selector popup can be used
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0061453)
hgbot (developer)
2013-09-27 15:51

Repository: erp/devel/pi
Changeset: 9c7cda930438ab886a3cb54091ffaacf5e2eecd4
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Sep 27 15:49:39 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/9c7cda930438ab886a3cb54091ffaacf5e2eecd4 [^]

fixed bug 24842: custom query selector raises LazyInitializationException

---
M modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/CustomQuerySelectorDatasource.java
---
(0061472)
shankarb (reporter)
2013-09-30 10:57

Code reviewed and verified in pi changeset cf9005633e4f.
(0061499)
hudsonbot (developer)
2013-09-30 21:40

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/efb12cdf8699 [^]

Maturity status: Test

- Issue History
Date Modified Username Field Change
2013-09-27 15:44 alostale New Issue
2013-09-27 15:44 alostale Assigned To => alostale
2013-09-27 15:44 alostale Modules => Core
2013-09-27 15:44 alostale Triggers an Emergency Pack => No
2013-09-27 15:47 alostale Review Assigned To => shankarb
2013-09-27 15:47 alostale Regression level => Production - Confirmed Stable
2013-09-27 15:47 alostale Regression date => 2013-01-21
2013-09-27 15:47 alostale Regression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/d64833c3f0c1e44ad1b055af00e6217101d56ff8 [^]
2013-09-27 15:51 hgbot Checkin
2013-09-27 15:51 hgbot Note Added: 0061453
2013-09-27 15:51 hgbot Status new => resolved
2013-09-27 15:51 hgbot Resolution open => fixed
2013-09-27 15:51 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9c7cda930438ab886a3cb54091ffaacf5e2eecd4 [^]
2013-09-30 10:57 shankarb Note Added: 0061472
2013-09-30 10:57 shankarb Status resolved => closed
2013-09-30 10:57 shankarb Fixed in Version => 3.0MP28
2013-09-30 21:40 hudsonbot Checkin
2013-09-30 21:40 hudsonbot Note Added: 0061499


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker