IBM Support

JR55739: STRING CONCATENATION WITH VARIABLES IN JAVASCRIPT THROWS AN EXCEPTION

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

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

  • R857 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":"857","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
19 May 2016