IBM Support

PI31520: APPLICATION CRASHED DURING START UP WITH ERROR: JAVA.UTIL.CONCURRENTMODIFICATIONEXCEPTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • (THIS FIX IS INCOMPLETE. PLEASE ALSO GET FIX FROM PI43584)
    
    Tested with Nexus 5 device, Android 4.4.2. Also happens with
    Nexus 7 with Android 4.3
    
    Part of the log:
    
    D/CordovaNetworkManager(31075): Connection Extra Info: "IBM"
    E/AndroidRuntime(31075): FATAL EXCEPTION: main
    E/AndroidRuntime(31075): Process: com.TestApp, PID: 31075
    E/AndroidRuntime(31075):
    java.util.ConcurrentModificationException
    E/AndroidRuntime(31075): at
    java.util.HashMap$HashIterator.nextEntry(HashMap.java:806)
    E/AndroidRuntime(31075): at
    java.util.HashMap$ValueIterator.next(HashMap.java:838)
    E/AndroidRuntime(31075): at
    org.apache.cordova.PluginManager.postMessage(PluginManager.java:
    271)
    E/AndroidRuntime(31075): at
    org.apache.cordova.CordovaWebView.postMessage(CordovaWebView.jav
    a:528)
    E/AndroidRuntime(31075): at
    org.apache.cordova.App$1.run(App.java:78)
    E/AndroidRuntime(31075): at
    android.os.Handler.handleCallback(Handler.java:733)
    E/AndroidRuntime(31075): at
    android.os.Handler.dispatchMessage(Handler.java:95)
    E/AndroidRuntime(31075): at
    android.os.Looper.loop(Looper.java:136)
    E/AndroidRuntime(31075): at
    android.app.ActivityThread.main(ActivityThread.java:5017)
    E/AndroidRuntime(31075): at
    java.lang.reflect.Method.invokeNative(Native Method)
    E/AndroidRuntime(31075): at
    java.lang.reflect.Method.invoke(Method.java:515)
    E/AndroidRuntime(31075): at
    com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(Zygot
    eInit.java:779)
    E/AndroidRuntime(31075): at
    com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    E/AndroidRuntime(31075): at
    dalvik.system.NativeStart.main(Native Method)
    
    Full Log:
    
    https://rtcmobile.francelab.fr.ibm.com:9443/qm/service/com.ibm.r
    qm.planning.service.internal.rest.IAttachmentRestService/_aO_agY
    L3EeS-UovH2TaL-Q?attach=0
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Android users who are getting                                *
    * ConcurrentModificationException when using Cordova plugins.  *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Cordova application will sometimes crash with                *
    * ConcurrentModificationException on start up. Plugins execute *
    * on a non-UI thread by default, and if a plugin calls         *
    * "getPlugin()" while the UI thread is dispatching an          *
    * onMessage (or one of the various other plugin functions) the *
    * application will crash because of the race condition.        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * -                                                            *
    ****************************************************************
    

Problem conclusion

  • Adding a null entry for each plugin that hasn't started yet.
    
    After installing the iFix, rebuild the Android application and
    redeploy.
    (THIS FIX IS INCOMPLETE. PLEASE ALSO GET FIX FROM PI43584)
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI31520

  • Reported component name

    WL/MFPF CONSUME

  • Reported component ID

    5725I4301

  • Reported release

    620

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-12-14

  • Closed date

    2015-07-29

  • Last modified date

    2015-07-29

  • 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

    WL/MFPF CONSUME

  • Fixed component ID

    5725I4301

Applicable component levels

  • R620 PSY

       UP

  • R630 PSY

       UP

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"620","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
14 October 2021