Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021300Openbravo ERPA. Platformpublic2012-08-03 10:082012-08-22 11:21
shuehner 
marvintm 
normalminorsometimes
closedfixed 
5
3.0MP13 
3.0MP15 
AugustoMauch
Core
No
0021300: ConcurrentModificationException in ApplicationDictionaryCachedStructures can be found sometimes in erp logfiles
When checking logfiles of online demo the following problem can be seen sometimes:

java.util.ConcurrentModificationException
        at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:390)
        at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:409)
        at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:408)
        at org.hibernate.util.IdentityMap.entrySet(IdentityMap.java:206)
        at org.hibernate.engine.BatchFetchQueue.getCollectionBatch(BatchFetchQueue.java:178)
        at org.hibernate.loader.collection.BatchingCollectionInitializer.initialize(BatchingCollectionInitializer.java:73)
        at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:627)
        at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:83)
        at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1863)
        at org.hibernate.collection.AbstractPersistentCollection.forceInitialization(AbstractPersistentCollection.java:479)
        at org.hibernate.Hibernate.initialize(Hibernate.java:417)
        at org.openbravo.client.application.window.ApplicationDictionaryCachedStructures.initializeReference(ApplicationDictionaryCachedStructures.java:156)
        at org.openbravo.client.application.window.ApplicationDictionaryCachedStructures.initializeColumn(ApplicationDictionaryCachedStructures.java:144)
        at org.openbravo.client.application.window.ApplicationDictionaryCachedStructures.getColumnsOfTable(ApplicationDictionaryCachedStructures.java:122)
        at org.openbravo.client.application.window.org$jboss$weld$bean-flat-ManagedBean-class_org$openbravo$client$application$window$ApplicationDictionaryCachedStr
        at org.openbravo.client.application.window.FormInitializationComponent.getADColumnList(FormInitializationComponent.java:1616)
        at org.openbravo.client.application.window.FormInitializationComponent.setSessionValues(FormInitializationComponent.java:1047)
        at org.openbravo.client.application.window.FormInitializationComponent.setSessionVariablesInParent(FormInitializationComponent.java:774)
        at org.openbravo.client.application.window.FormInitializationComponent.execute(FormInitializationComponent.java:209)
        at org.openbravo.client.kernel.BaseActionHandler.execute(BaseActionHandler.java:71)
        at org.openbravo.client.kernel.KernelServlet.processActionRequest(KernelServlet.java:193)
        at org.openbravo.client.kernel.KernelServlet.doGet(KernelServlet.java:104)
        at org.openbravo.client.kernel.KernelServlet.doPost(KernelServlet.java:177)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
-
No tags attached.
Issue History
2012-08-03 10:08shuehnerNew Issue
2012-08-03 10:08shuehnerAssigned To => marvintm
2012-08-03 10:08shuehnerModules => Core
2012-08-20 17:37hgbotCheckin
2012-08-20 17:37hgbotNote Added: 0051396
2012-08-20 17:37hgbotStatusnew => resolved
2012-08-20 17:37hgbotResolutionopen => fixed
2012-08-20 17:37hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c10f4c521f4a05c8977d58faf5729d7d87f768ed [^]
2012-08-22 11:21AugustoMauchClosed by => AugustoMauch
2012-08-22 11:21AugustoMauchNote Added: 0051455
2012-08-22 11:21AugustoMauchStatusresolved => closed
2012-08-22 11:21AugustoMauchFixed in Version => 3.0MP15

Notes
(0051396)
hgbot   
2012-08-20 17:37   
Repository: erp/devel/pi
Changeset: c10f4c521f4a05c8977d58faf5729d7d87f768ed
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Mon Aug 20 16:55:03 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c10f4c521f4a05c8977d58faf5729d7d87f768ed [^]

Fixed issue 21300. Synchronized initialization of DAL objects to prevent concurrent modification exception

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/ApplicationDictionaryCachedStructures.java
---
(0051455)
AugustoMauch   
2012-08-22 11:21   
Code reviewed and verified in pi@8a09d93b4149