Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0030083 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
defect | [Openbravo ERP] 09. Financial management | minor | have not tried | 2015-06-03 16:29 | 2015-06-03 16:30 | |||||||
Reporter | alostale | View Status | public | |||||||||
Assigned To | Triage Omni OMS | |||||||||||
Priority | normal | Resolution | open | Fixed in Version | ||||||||
Status | new | Fix in branch | Fixed in SCM revision | |||||||||
Projection | none | ETA | none | Target Version | ||||||||
OS | Any | Database | Any | Java version | ||||||||
OS Version | Database version | Ant version | ||||||||||
Product Version | SCM revision | |||||||||||
Review Assigned To | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
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 | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | ||||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
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 |
Copyright © 2000 - 2009 MantisBT Group |