Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0030083 | Openbravo ERP | 09. Financial management | public | 2015-06-03 16:29 | 2015-06-03 16:30 | |||||||
Reporter | alostale | |||||||||||
Assigned To | Triage Omni OMS | |||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | |||||||
Status | new | Resolution | open | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0030083: TestCosting fails adding one-to-many relationship to M_LandedCost | |||||||||||
Description | TestCosting fails if a dal bag (one to many relationship) is added to M_LandedCost having a name that is alphabetically prior to LandedCostCost. As explained in issue 0029947 Hibernate loads on refresh first bag of the entity, this test assumes this bag is LandedCostCost, if a new bag is added before this one the test fails due to this assumption. | |||||||||||
Steps To Reproduce | There are 2 ways to reproduce it: 1.a. Install attached module or 1.b. Apply proposed patch for issue 0029947 After any of these steps: 2. run org.openbravo.test.costing.TestCosting.testCostingLC300 -> following exception is thrown: 49874 [main] ERROR org.hibernate.LazyInitializationException - failed to lazily initialize a collection of role: LandedCost.landedCostCostList, no session or session was closed org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: LandedCost.landedCostCostList, 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.get(PersistentBag.java:445) at org.openbravo.test.costing.TestCosting.testCostingLC300(TestCosting.java:5386) | |||||||||||
Proposed Solution | When refreshing landedCost variable don't assume LandedCostCostList is going to be refreshed but force it refreshal | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2015-06-03 16:29 | alostale | New Issue | ||||||||||
2015-06-03 16:29 | alostale | Assigned To | => Triage Finance | |||||||||
2015-06-03 16:29 | alostale | Modules | => Core | |||||||||
2015-06-03 16:29 | alostale | Triggers an Emergency Pack | => No | |||||||||
2015-06-03 16:30 | alostale | Relationship added | blocks 0029947 | |||||||||
2015-06-03 16:30 | alostale | Issue Monitored: alostale |
There are no notes attached to this issue. |