IBM Support

JR55739: STRING CONCATENATION WITH VARIABLES IN JAVASCRIPT THROWS AN EXCEPTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • String concatenation of variables within JavaScript might cause
    an exception similar to the following exception:
    
    Internal Script error
    com.lombardisoftware.core.TeamWorksRuntimeException: Exception
    during converting JavaScript to TWObject. The conversion of obj
    org.mozilla.javascript.NativeObject to TWObject is not valid.
    
    Reason:
    Java Class org.mozilla.javascript.ConsString is not registered
    as supported class for the SymbolTable
    
    For example
    
    function Concat(s1, s2, s3)
    {
        return s1 + s2 + s3;
    }
    var s1 = Concat("test", "1", "2");
    var s2 = Concat("test", "3", "4");
    

Local fix

  • Modify the return value by adding an explicit toString() method:
    
    return (s1 + s2 + s3).toString();
    

Problem summary

  • The problem was introduced with the a new version of the Rhino
    JavaScript engine (1.74) in IBM BPM V8.5.7.0.
    

Problem conclusion

  • A fix that ensures the code that uses the Rhino engine can
    handle the changes introduced with version 1.74 will be included
    in an upcoming IBM BPM V8.5.7.0 cumulative maintenance vehicle.
    
    To determine whether the cumulative fix is available and
    download it if it is, complete the following steps on Fix
    Central:
    
    1. Select IBM Business Process Manager with your edition from
      the product selector, the installed version to the fix pack
      level, and your platform, and then click Continue.
    
    2. Select Text, enter ?cumulative fix?, and click Continue.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR55739

  • Reported component name

    BPM ADVANCED

  • Reported component ID

    5725C9400

  • Reported release

    857

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-04-21

  • Closed date

    2016-05-19

  • Last modified date

    2016-05-19

  • 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

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSFTDH","label":"IBM Business Process Manager Standard"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"857","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
31 August 2023