IBM Support

JR49178: CONCURRENTMODIFICATIONEXCEPTION IS THROWN WHEN CALLING "execute()" METHOD OF TWSERVICE.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When you invoke the TWService.execute(Map inputParams) method,
    it fails with following ConcurrentModificationException:
    
    Caused by: java.util.ConcurrentModificationException
    at
    java.util.HashMap$AbstractMapIterator.checkConcurrentMod(HashMap
    .java:191)
    at
    java.util.HashMap$AbstractMapIterator.makeNext(HashMap.java:196)
    at java.util.HashMap$KeyIterator.next(HashMap.java:269)
    at
    com.lombardisoftware.core.script.js.TWServiceScriptablejsFunctio
    n_execute(TWServiceScriptable.java:181)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:60)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
    at
    org.mozilla.javascript.FunctionObject.call(FunctionObject.java:4
    67)
    at
    org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.jav
    a:3330)
    at
    org.mozilla.javascript.Interpreter.interpret(Interpreter.java:24
    87)
    at
    org.mozilla.javascript.InterpretedFunction.call(InterpretedFunct
    ion.java:164)
    at
    org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.j
    ava:398)
    at
    org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.jav
    a:3070)
    at
    org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunct
    ion.java:175)
    at
    com.lombardisoftware.core.script.js.JSScript.exec(JSScript.java:
    60)
    at
    com.lombardisoftware.core.script.js.JavaScriptRunner$2.execute(J
    avaScriptRunner.java:253)
    at
    com.lombardisoftware.core.script.js.PreparedScope.executeWithSco
    pe(PreparedScope.java:205)
    at
    com.lombardisoftware.core.script.js.JavaScriptRunner.execute(Jav
    aScriptRunner.java:251)
    ... 61 more
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM BPM Advanced, Standard, and Express     *
    ****************************************************************
    * PROBLEM DESCRIPTION: You receive the                         *
    *                      ConcurrentModificationException when    *
    *                      you invoke the TWService.execute(Map    *
    *                      inputparams) JavaScript API.            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    You receive the ConcurrentModificationException because the
    input HashMap was being modified. Entries were being added
    with a new key and removed with the original key while the
    TWService.execute() API was iterating through its key set.
    

Problem conclusion

  • A fix is available that ensures the TWService.execute(Map
    inputParams) API copies all the objects of the input HashMap,
    including the objects that the input parameter refers to,
    which ensures that executing the API is isolated from changes
    that the application might be making to the objects that were
    passed into the API. Then the fix iterates through the
    HashMap, which allows the caller to modify the input HashMap
    without affecting the execution of the API.
    
    On Fix Central (http://www.ibm.com/support/fixcentral), search
    for JR49178:
    1. Select the product group, product, installed version, and
    platform, and click Continue.
    2. Select APAR or SPR, enter JR49178, and click Continue.
    
    When downloading fix packages, ensure that you also download
    the readme file for each fix. Review each readme file for
    additional installation instructions and information about the
    fix.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR49178

  • Reported component name

    BPM STANDARD

  • Reported component ID

    5725C9500

  • Reported release

    751

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-01-28

  • Closed date

    2014-03-13

  • Last modified date

    2014-03-13

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    BPM STANDARD

  • Fixed component ID

    5725C9500

Applicable component levels

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSFTDH","label":"IBM Business Process Manager Standard"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.1","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
13 March 2014