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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0027903
TypeCategorySeverityReproducibilityDate SubmittedLast Update
design defect[Openbravo ERP] 02. Master data managementminoralways2014-10-17 14:212022-02-01 08:08
ReportercaristuView Statuspublic 
Assigned ToTriage Platform Base 
PriorityhighResolutionopenFixed 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

0027903: Not possible to assign a characteristic subset having a tab under the [Characteristic Configuration] tab

DescriptionIs not possible to assign a characteristic subset having a tab under the Characteristic Configuration tab.

The table used by this new tub must have a reference to the m_product_ch_conf table. (Attached table definition as example)

The following error is raised in the log: collection owner not associated with session.

This error is thrown because of the removal operations performed in the onUpdate event of the ProductCharacteristicEventHandler
Steps To Reproduce1) Create the attached table
2) Define it in the application dictionary
3) Create a new tab under the "Characteristic Configuration" tab in the [Product] window (level number 3)
4) Recompile and Restart Tomcat
5) As group admin. Go to the [Product Characteristic] window and create a new variant characteristic with a subset with one value at least.
6) Go to the [Product] window. Create a new generic product. Navigate to the [Characteristics] tab and assign the characteristic created in step 5). Save the record.
7) Check that there are values in [Characteristic Configuration] tab created in step 5.
8) Now, in the [Characteristics] tab tries to assign a subset value in "Characteristic subset" field and try to save the record.
TagsNo tags attached.
Attached Files? file icon tableExample.sql [^] (1,138 bytes) 2014-10-17 14:22

- Relationships Relation Graph ] Dependency Graph ]
related to design defect 0024287 closedplatform Event Handler runs 2 times when the change is made by another Event Handler 

-  Notes
(0071593)
inigosanchez (developer)
2014-11-12 11:06

It seems that the error occurred when it tries to do flush operations after ProductCharacteristicEventHandler. The following error is raised in the log:


988530 [http-8080-2] ERROR org.hibernate.AssertionFailure - an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
org.hibernate.AssertionFailure: collection owner not associated with session: ProductCharacteristicConf.sUPSALARYList
    at org.hibernate.engine.Collections.processDereferencedCollection(Collections.java:110)
    at org.hibernate.engine.Collections.processUnreachableCollection(Collections.java:62)
    at org.hibernate.event.def.AbstractFlushingEventListener.flushCollections(AbstractFlushingEventListener.java:241)
    at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:100)
    at org.hibernate.event.def.DefaultDirtyCheckEventListener.onDirtyCheck(DefaultDirtyCheckEventListener.java:54)
    at org.hibernate.impl.SessionImpl.isDirty(SessionImpl.java:1202)
    at org.openbravo.service.json.DefaultJsonDataService.update(DefaultJsonDataService.java:663)
    at org.openbravo.service.datasource.DefaultDataSourceService.update(DefaultDataSourceService.java:179)
    at org.openbravo.service.datasource.DataSourceServlet.doPut(DataSourceServlet.java:812)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:640)
    at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:225)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:449)
    at org.openbravo.client.kernel.BaseKernelServlet.callServiceInSuper(BaseKernelServlet.java:92)
    at org.openbravo.client.kernel.BaseKernelServlet.service(BaseKernelServlet.java:63)
..........
(0073847)
alostale (manager)
2015-01-28 10:11

The problem is how DAL/Hibernate manages these events. Proper fix requires refactoring these kernel pieces adding a big risk.

Meanwhile workaround:
-Remove "link to parent" flag from new table in AD
-Set the FK contraint in DB as delete on cascade
(0073848)
alostale (manager)
2015-01-28 10:18

Setting to feedback awaiting for proposed workaround acceptance.

If affected, this issue should be moved to design defect.
(0074072)
jonalegriaesarte (reporter)
2015-02-04 11:51

Accepted, so moved to design defect

- Issue History
Date Modified Username Field Change
2014-10-17 14:21 caristu New Issue
2014-10-17 14:21 caristu Assigned To => AugustoMauch
2014-10-17 14:21 caristu Modules => Core
2014-10-17 14:21 caristu Triggers an Emergency Pack => No
2014-10-17 14:21 caristu Issue Monitored: networkb
2014-10-17 14:22 caristu Summary Not possible to assign a characteristic subset having a tab under the Characteristic Configuration tab => Not possible to assign a characteristic subset having a tab under the [Characteristic Configuration] tab
2014-10-17 14:22 caristu Description Updated View Revisions
2014-10-17 14:22 caristu File Added: tableExample.sql
2014-10-17 14:25 caristu Resolution time => 1416351600
2014-10-17 14:25 caristu Target Version => 3.0PR15Q1
2014-10-17 14:25 caristu Steps to Reproduce Updated View Revisions
2014-10-17 14:48 heccam Issue Monitored: heccam
2014-10-22 08:54 alostale Assigned To AugustoMauch => inigosanchez
2014-11-11 17:44 caristu Steps to Reproduce Updated View Revisions
2014-11-12 10:54 inigosanchez Steps to Reproduce Updated View Revisions
2014-11-12 11:06 inigosanchez Note Added: 0071593
2014-11-12 11:12 inigosanchez Assigned To inigosanchez => Sandrahuguet
2014-11-12 11:12 inigosanchez Category A. Platform => 02. Master data management
2014-12-22 12:33 vmromanos Target Version 3.0PR15Q1 => 3.0PR15Q2
2015-01-21 18:14 aferraz Assigned To Sandrahuguet => AugustoMauch
2015-01-27 10:26 alostale Relationship added related to 0024287
2015-01-28 10:11 alostale Note Added: 0073847
2015-01-28 10:18 alostale Note Added: 0073848
2015-01-28 10:18 alostale Assigned To AugustoMauch => jonalegriaesarte
2015-01-28 10:18 alostale Status new => feedback
2015-02-04 11:51 jonalegriaesarte Resolution time 1416351600 =>
2015-02-04 11:51 jonalegriaesarte Note Added: 0074072
2015-02-04 11:51 jonalegriaesarte Assigned To jonalegriaesarte => alostale
2015-02-04 11:51 jonalegriaesarte Status feedback => new
2015-02-04 11:51 jonalegriaesarte Type defect => design defect
2015-02-04 11:51 jonalegriaesarte Target Version 3.0PR15Q2 =>
2017-04-10 14:35 alostale Assigned To alostale => platform
2022-02-01 08:08 alostale Assigned To platform => Triage Platform Base


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker