IBM Support

JR44646: CONCURRENCY PROBLEM WITH READTEXT API CAN CAUSE BPD INSTANCE FAILURES

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If you are using the readText api to read the contents of a
    managed file, you can get a failure if multiple threads access
    the same file:
    
    2011-12-01 13:19:12,443 [ThreadPool worker thread #8] ERROR
    com.lombardisoftware.core.script.js.TWManagedFileScriptable  -
    Caught exception trying to read data for managed file 'Test
    Design.xsl'
    java.io.IOException: The process cannot access the file because
    another process has locked a portion of the file.
     at java.io.FileInputStream.readBytes(Native Method)
     at java.io.FileInputStream.read(FileInputStream.java:191)
     at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025)
     at org.apache.commons.io.IOUtils.copy(IOUtils.java:999)
     at
    com.lombardisoftware.core.script.js.TWManagedFileScriptable.jsFu
    nction_readText(TWManagedFileScriptable.java:85)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    

Local fix

  • None known
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Applications using the JavaScript API       *
    *                  readText().                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: An IOException occurs when reading      *
    *                      the same file simultaneously.           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When running multiple tasks in parallel and invoking
    file.readText() API simultaneously will cause an IOException
    to be thrown.  Multiple threads attempt to access the same
    file on the file system and fails due to the file being locked
    to a different process.  A similar error may be seen in the
    logs:
    ERROR
    com.lombardisoftware.core.script.js.TWManagedFileScriptable  -
    Caught exception trying to read data for managed file 'Test
    Design.xsl'
    java.io.IOException: The process cannot access the file because
    another process has locked a portion of the file.
    at java.io.FileInputStream.readBytes(Native Method)
    at java.io.FileInputStream.read(FileInputStream.java:191)
    

Problem conclusion

  • Code changes have been made to properly handle the synchronize
    call to the managed file.  An interim fix is available on
    7.5.1.0 and 7.5.1.1. The fix will be integrated into the next
    fix pack.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR44646

  • Reported component name

    BPM ADVANCED

  • Reported component ID

    5725C9400

  • Reported release

    751

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-11-05

  • Closed date

    2013-09-09

  • Last modified date

    2013-09-09

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

    IC80126

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

Fix information

  • Fixed component name

    BPM ADVANCED

  • Fixed component ID

    5725C9400

Applicable component levels

  • R750 PSY

       UP

[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSFTN5","label":"IBM Business Process Manager Advanced"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.1"}]

Document Information

Modified date:
06 October 2021