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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0030083
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 09. Financial managementminorhave not tried2015-06-03 16:292015-06-03 16:30
ReporteralostaleView Statuspublic 
Assigned ToTriage Omni OMS 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0030083: TestCosting fails adding one-to-many relationship to M_LandedCost

DescriptionTestCosting 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 ReproduceThere 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 SolutionWhen refreshing landedCost variable don't assume LandedCostCostList is going to be refreshed but force it refreshal
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks design defect 0029947 acknowledgedTriage Platform Base Wrong query launched when OBDal.getInstance.getSession.refresh(Object) 

-  Notes
There are no notes attached to this issue.

- 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
Powered by Mantis Bugtracker