Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0024842 | Openbravo ERP | A. Platform | public | 2013-09-27 15:44 | 2013-09-30 21:40 |
Reporter | alostale | ||||
Assigned To | alostale | ||||
Priority | immediate | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | 3.0MP28 | Fixed in Version | 3.0MP28 | ||
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 | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|