Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0024842 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| defect | [Openbravo ERP] A. Platform | minor | have not tried | 2013-09-27 15:44 | 2013-09-30 21:40 | |||
| Reporter | alostale | View Status | public | |||||
| Assigned To | alostale | |||||||
| Priority | immediate | Resolution | fixed | Fixed in Version | 3.0MP28 | |||
| Status | closed | Fix in branch | Fixed in SCM revision | 9c7cda930438 | ||||
| Projection | none | ETA | none | Target Version | 3.0MP28 | |||
| OS | Any | Database | Any | Java version | ||||
| OS Version | Database version | Ant version | ||||||
| Product Version | SCM revision | |||||||
| Merge Request Status | ||||||||
| Review Assigned To | shankarb | |||||||
| OBNetwork customer | No | |||||||
| Web browser | ||||||||
| Modules | Core | |||||||
| Support ticket | ||||||||
| Regression level | Production - Confirmed Stable | |||||||
| Regression date | 2013-01-21 | |||||||
| Regression introduced in release | ||||||||
| Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/d64833c3f0c1e44ad1b055af00e6217101d56ff8 [^] | |||||||
| Triggers an Emergency Pack | No | |||||||
| Summary | 0024842: custom query selector raises LazyInitializationException | |||||||
| Description | Under 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 Solution | Workaround: 1. @additional_filters@ should always be included in HQL 2. Even if not included, selector popup can be used | |||||||
| Tags | No 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 (viewer) 2013-09-30 10:57 |
Code reviewed and verified in pi changeset cf9005633e4f. |
|
(0061499) hudsonbot (viewer) 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 | OBNetwork customer | => No |
| 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 |