JAVA.UTIL.CONCURRENTMODIFICATIONEXCEPTION IN AF:TABLE USED ALONG WITH DBSEQUENCE (Doc ID 2301449.1)

Last updated on AUGUST 28, 2017

Applies to:

Oracle JDeveloper - Version 12.2.1.0.0 to 12.2.1.2.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

An ADF 12.2.1 application has Bounded Taskflow which is composed by a View Activity which invokes a "Commit" method-call activity.

The View Activity is implemented by a page using an af:table component with validation checks enabled based upon an Entity Object which has an attribute of type DBSequence.

During new records creation through "CreateInsert" data binding operation, enforcing the validation check to fail and then entering the correct values in the page, when attempting to commit any eventual new record an exception is reported by the application.

 

ERROR
------
The following exception is logged server-side

oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.util.ConcurrentModificationException, msg=null
at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:438)
at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:500)
at oracle.adf.model.binding.DCControlBinding.reportException(DCControlBinding.java:207)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.reportException(JUCtrlActionBinding.java:2137)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1774)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2371)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:803)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:414)

.....

Caused by: java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)
at java.util.ArrayList$Itr.next(ArrayList.java:851)
at org.apache.myfaces.trinidad.model.CollectionModel.fireRowKeyChange(CollectionModel.java:364)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.keyChanged(FacesCtrlHierBinding.java:1212)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.dataChanged(FacesCtrlHierBinding.java:1225)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$ModelDataChangeListener.dataChanged(FacesCtrlHierBinding.java:1624)
at oracle.binding.util.DataChangeMultiCaster.dataChanged(DataChangeMultiCaster.java:80)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.createAndNotifyKeyChangedDCE(JUCtrlHierNodeBinding.java:3632)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.isEventForMyRowAndRaiseDCE(JUCtrlHierNodeBinding.java:1360)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.eventForMyRow(JUCtrlHierNodeBinding.java:1333)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.updateRow(JUCtrlValueBinding.java:420)
at oracle.jbo.uicli.binding.JUIteratorBinding.notifyUpdateEvent(JUIteratorBinding.java:377)
at oracle.adf.model.binding.DCIteratorBinding.rowUpdated(DCIteratorBinding.java:1381)
at oracle.jbo.common.RowSetHelper.fireRowUpdated(RowSetHelper.java:250)
at oracle.jbo.server.ViewRowSetIteratorImpl.fireRowUpdated(ViewRowSetIteratorImpl.java:3892)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyRowUpdated(ViewRowSetIteratorImpl.java:3499)
at oracle.jbo.server.ViewRowSetImpl.notifyRowUpdated(ViewRowSetImpl.java:2379)
at oracle.jbo.server.ViewObjectImpl.notifyRowUpdated(ViewObjectImpl.java:14036)
at oracle.jbo.server.ViewObjectImpl.notifyRowUpdated(ViewObjectImpl.java:13974)
at oracle.jbo.server.ViewObjectImpl.afterRowUpdate(ViewObjectImpl.java:15847)
at oracle.jbo.server.ViewObjectImpl.sourceChanged(ViewObjectImpl.java:16074)
at oracle.jbo.server.EntityCache.sendEvent(EntityCache.java:1702)
at oracle.jbo.server.EntityCache.sendEventForSharedTrans(EntityCache.java:1710)
at oracle.jbo.server.EntityCache.deliverEntityEvent(EntityCache.java:1733)
at oracle.jbo.server.EntityCache.notifyColumnAndBlgChange(EntityCache.java:1776)
at oracle.jbo.server.EntityImpl.notifyAttributesChanged(EntityImpl.java:8162)
at oracle.jbo.server.EntityImpl.notifyAttributesChanged(EntityImpl.java:8143)
at oracle.jbo.server.EntityImpl.notifyAttributesAndBlgChanged(EntityImpl.java:8152)
at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:4128)
at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:3920)
at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:2269)
at de.robotron.sea4.model.common.entities.auswertung.ReportsEOImpl.setId(ReportsEOImpl.java:310)
at de.robotron.sea4.model.common.entities.auswertung.ReportsEOImpl.setIdIfNotExist(ReportsEOImpl.java:26)
at de.robotron.sea4.framework.SeaViewWithTriggerEntityImpl.doDML(SeaViewWithTriggerEntityImpl.java:78)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:7488) 

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms