{"id":15417,"date":"2018-05-24T05:21:25","date_gmt":"2018-05-24T12:21:25","guid":{"rendered":"https:\/\/ephesoft.com\/docs\/?p=15417"},"modified":"2022-04-01T09:58:48","modified_gmt":"2022-04-01T16:58:48","slug":"java-util-concurrentmodificationexception","status":"publish","type":"post","link":"https:\/\/ephesoft.com\/docs\/java-util-concurrentmodificationexception\/","title":{"rendered":"Batch Errors with ConcurrentModificationException"},"content":{"rendered":"

Applies to: <\/strong>Ephesoft Transact prior to 4.5.0.0<\/span>
\nResolved in:\u00a0<\/strong>Ephesoft Transact 4.5.0.0<\/span><\/p>\n

Issue<\/strong><\/span><\/h2>\n

Batch Instance goes to error state with ConcurrentModificationException<\/code> when executing the field change value script<\/span><\/p>\n

Sample Exception Stack Trace:<\/span><\/p>\n

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-\r\n<\/span>java.util.ConcurrentModificationException<\/pre>\n
 \u00a0\u00a0\u00a0\u00a0\u00a0 at\u00a0java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 at\u00a0java.util.ArrayList$Itr.next(ArrayList.java:851)\r\n \u00a0\u00a0\u00a0\u00a0\u00a0 at com.sun.xml.bind.v2.runtime.reflect.Lister$CollectionLister$1.next(Lister.java:284)\r\n \u00a0\u00a0\u00a0\u00a0\u00a0 at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:135)\r\n \u00a0\u00a0\u00a0\u00a0\u00a0 at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)\r\n \u00a0\u00a0\u00a0\u00a0\u00a0 at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:332)\r\n \u00a0\u00a0\u00a0\u00a0\u00a0 at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:698)\r\n \u00a0\u00a0\u00a0\u00a0\u00a0 at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:152)<\/span><\/pre>\n

\u00a0<\/b>This is a known issue for Ephesoft versions prior to 4.5.0.0, in which very few scenarios the field value change script would run multiple times, putting the batch into error and throwing the ConcurrentModificationException<\/code>. This has a low impact on batch instance processing. <\/span><\/span><\/p>\n

To resolve this issue, upgrade to Transact 4.5.0.0 or above.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

Applies to: Ephesoft Transact prior to 4.5.0.0 Resolved in:\u00a0Ephesoft Transact 4.5.0.0 Issue Batch Instance goes to error state with ConcurrentModificationException […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12365],"tags":[1331,12409,227,12408],"yoast_head":"\nBatch Errors with ConcurrentModificationException | Ephesoft Docs<\/title>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Batch Errors with ConcurrentModificationException\" \/>\n<meta property=\"og:description\" content=\"Applies to: Ephesoft Transact prior to 4.5.0.0 Resolved in:\u00a0Ephesoft Transact 4.5.0.0 Issue Batch Instance goes to error state with ConcurrentModificationException […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ephesoft.com\/docs\/java-util-concurrentmodificationexception\/\" \/>\n<meta property=\"og:site_name\" content=\"Ephesoft Docs\" \/>\n<meta property=\"article:published_time\" content=\"2018-05-24T12:21:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-01T16:58:48+00:00\" \/>\n<meta name=\"author\" content=\"ephesoftadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@philbigleap\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ephesoftadmin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ephesoft.com\/docs\/java-util-concurrentmodificationexception\/\",\"url\":\"https:\/\/ephesoft.com\/docs\/java-util-concurrentmodificationexception\/\",\"name\":\"Batch Errors with ConcurrentModificationException | Ephesoft Docs\",\"isPartOf\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/#website\"},\"datePublished\":\"2018-05-24T12:21:25+00:00\",\"dateModified\":\"2022-04-01T16:58:48+00:00\",\"author\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/f6870520017fe62f92eecf86e6974339\"},\"breadcrumb\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/java-util-concurrentmodificationexception\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ephesoft.com\/docs\/java-util-concurrentmodificationexception\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ephesoft.com\/docs\/java-util-concurrentmodificationexception\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ephesoft.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Batch Errors with ConcurrentModificationException\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ephesoft.com\/docs\/#website\",\"url\":\"https:\/\/ephesoft.com\/docs\/\",\"name\":\"Ephesoft Docs\",\"description\":\"Intelligent Document Processing Made Easy\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ephesoft.com\/docs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/f6870520017fe62f92eecf86e6974339\",\"name\":\"ephesoftadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/82b86e45639b5940e8d71b0f251ebe57?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/82b86e45639b5940e8d71b0f251ebe57?s=96&r=g\",\"caption\":\"ephesoftadmin\"},\"sameAs\":[\"https:\/\/twitter.com\/philbigleap\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Batch Errors with ConcurrentModificationException | Ephesoft Docs","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"Batch Errors with ConcurrentModificationException","og_description":"Applies to: Ephesoft Transact prior to 4.5.0.0 Resolved in:\u00a0Ephesoft Transact 4.5.0.0 Issue Batch Instance goes to error state with ConcurrentModificationException […]","og_url":"https:\/\/ephesoft.com\/docs\/java-util-concurrentmodificationexception\/","og_site_name":"Ephesoft Docs","article_published_time":"2018-05-24T12:21:25+00:00","article_modified_time":"2022-04-01T16:58:48+00:00","author":"ephesoftadmin","twitter_card":"summary_large_image","twitter_creator":"@philbigleap","twitter_misc":{"Written by":"ephesoftadmin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ephesoft.com\/docs\/java-util-concurrentmodificationexception\/","url":"https:\/\/ephesoft.com\/docs\/java-util-concurrentmodificationexception\/","name":"Batch Errors with ConcurrentModificationException | Ephesoft Docs","isPartOf":{"@id":"https:\/\/ephesoft.com\/docs\/#website"},"datePublished":"2018-05-24T12:21:25+00:00","dateModified":"2022-04-01T16:58:48+00:00","author":{"@id":"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/f6870520017fe62f92eecf86e6974339"},"breadcrumb":{"@id":"https:\/\/ephesoft.com\/docs\/java-util-concurrentmodificationexception\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ephesoft.com\/docs\/java-util-concurrentmodificationexception\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ephesoft.com\/docs\/java-util-concurrentmodificationexception\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ephesoft.com\/docs\/"},{"@type":"ListItem","position":2,"name":"Batch Errors with ConcurrentModificationException"}]},{"@type":"WebSite","@id":"https:\/\/ephesoft.com\/docs\/#website","url":"https:\/\/ephesoft.com\/docs\/","name":"Ephesoft Docs","description":"Intelligent Document Processing Made Easy","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ephesoft.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/f6870520017fe62f92eecf86e6974339","name":"ephesoftadmin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/82b86e45639b5940e8d71b0f251ebe57?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/82b86e45639b5940e8d71b0f251ebe57?s=96&r=g","caption":"ephesoftadmin"},"sameAs":["https:\/\/twitter.com\/philbigleap"]}]}},"_links":{"self":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts\/15417"}],"collection":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/comments?post=15417"}],"version-history":[{"count":3,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts\/15417\/revisions"}],"predecessor-version":[{"id":50682,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts\/15417\/revisions\/50682"}],"wp:attachment":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/media?parent=15417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/categories?post=15417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/tags?post=15417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}