Applies to:
Ephesoft Version before 4.5

Component:

Field Value Change Script

Occurrence:

Rare / Not frequent

Issue:
Batch Instance goes to error state with ConcurrentModificationException during execution of field change value script

 

Sample Exception Stack Trace:

4.1.3.0 Windows Server 2012 R2 2018-04-24 11:59:17,247 ERROR http-apr-8080-exec-15 com.ephesoft.dcma.script.ScriptExecutor –

java.util.ConcurrentModificationException

       at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)

       at java.util.ArrayList$Itr.next(ArrayList.java:851)

       at com.sun.xml.bind.v2.runtime.reflect.Lister$CollectionLister$1.next(Lister.java:284)

       at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:135)

       at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)

       at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:332)

       at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:698)

       at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:152)

 

Solution: 
This is a known issue for Ephesoft version before 4.5 where in very few scenario’s the field value change Script used to get executed more than once putting the batch into Error State and hence throwing ConcurrentModificationException. The occurrence of batches failing due to this should not be high and is also fixed and addressed in Ephesoft Transact 4500. Kindly upgrade to 4500 if you want the issue to be fixed.

Was this article helpful to you?

Abhishek Jain