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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0029093
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 04. Warehouse managementmajorhave not tried2015-02-27 14:162015-03-25 08:50
ReporterumartirenaView Statuspublic 
Assigned Toumartirena 
PriorityurgentResolutionfixedFixed in Version3.0PR15Q2
StatusclosedFix in branchFixed in SCM revision643bf6486d11
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToSandrahuguet
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0029093: [Cost Adjustments] org.hibernate.LazyInitializationException error while calculating BOM Product Cost

Descriptionorg.hibernate.LazyInitializationException error is obtained while calculating BOM Product Cost.

This is the error obtained:

ERROR org.openbravo.costing.CostingBackground - failed to lazily initialize a collection of role: ManufacturingProductionLine.materialMgmtMaterialTransactionList, no session or session was closed
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: ManufacturingProductionLine.materialMgmtMaterialTransactionList, 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.costing.CostingAlgorithm.getBOMProductCost(CostingAlgorithm.java:493)
    at org.openbravo.costing.CostingAlgorithm.getTransactionCost(CostingAlgorithm.java:141)
    at org.openbravo.costing.AverageAlgorithm.getTransactionCost(AverageAlgorithm.java:45)
    at org.openbravo.costing.CostingServer.process(CostingServer.java:104)
    at org.openbravo.costing.CostingBackground.doExecute(CostingBackground.java:105)
    at org.openbravo.service.db.DalBaseProcess.execute(DalBaseProcess.java:80)
    at org.openbravo.scheduling.DefaultJob.execute(DefaultJob.java:58)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Steps To ReproduceWe have an environment of a client in which this problem happens. As the scenario is quite complex to reproduce in live.builds, it is possible to reproduce on that environment.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 00291893.0PR15Q1.2 closedumartirena [Cost Adjustments] org.hibernate.LazyInitializationException error while calculating BOM Product Cost 

-  Notes
(0075064)
hgbot (developer)
2015-03-02 10:30

Repository: erp/devel/pi
Changeset: 643bf6486d11c3ef4124a34b60652b45b85b7992
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Fri Feb 27 14:51:17 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/643bf6486d11c3ef4124a34b60652b45b85b7992 [^]

Fixes bug 29093: LazyInitializationException avoided calculating BOM prod. cost

prodLine has been reloaded in case cost calculation of previous BOM Product has cleared the session.

---
M src/org/openbravo/costing/CostingAlgorithm.java
---
(0075109)
hudsonbot (developer)
2015-03-02 20:31

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/9d659cacae03 [^]
Maturity status: Test
(0075953)
Sandrahuguet (developer)
2015-03-25 08:50

Code review + testing OK

- Issue History
Date Modified Username Field Change
2015-02-27 14:16 umartirena New Issue
2015-02-27 14:16 umartirena Assigned To => Sandrahuguet
2015-02-27 14:16 umartirena Modules => Core
2015-02-27 14:16 umartirena Triggers an Emergency Pack => No
2015-02-27 14:16 umartirena Assigned To Sandrahuguet => umartirena
2015-03-02 10:30 hgbot Checkin
2015-03-02 10:30 hgbot Note Added: 0075064
2015-03-02 10:30 hgbot Status new => resolved
2015-03-02 10:30 hgbot Resolution open => fixed
2015-03-02 10:30 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/643bf6486d11c3ef4124a34b60652b45b85b7992 [^]
2015-03-02 20:31 hudsonbot Checkin
2015-03-02 20:31 hudsonbot Note Added: 0075109
2015-03-09 09:21 umartirena Status resolved => new
2015-03-09 09:21 umartirena Resolution fixed => open
2015-03-09 09:22 umartirena Status new => scheduled
2015-03-09 09:22 umartirena Status scheduled => resolved
2015-03-09 09:22 umartirena Fixed in Version => pi
2015-03-09 09:22 umartirena Resolution open => fixed
2015-03-25 08:50 Sandrahuguet Review Assigned To => Sandrahuguet
2015-03-25 08:50 Sandrahuguet Note Added: 0075953
2015-03-25 08:50 Sandrahuguet Status resolved => closed
2015-03-25 08:50 Sandrahuguet Fixed in Version pi => 3.0PR15Q2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker