IBM Support

JR60762: ASSIGNING JAVASCRIPT ARRAYS OF SOME PRIMITIVE NUMERIC TYPES FAILS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When you try to create an array in the script implicitly, the
    array isn't created for integers, decimals, or Booleans.
    
    You might see the following stack trace:
    
    [2/25/19 11:23:41:701 CET] 0000027f AbstractTWSym E
    com.lombardisoftware.core.script.js.AbstractTWSymbolTableScripta
    ble put CWLLG0391E: An update operation failed.
    
    com.lombardisoftware.core.TeamWorksRuntimeException:
    com.lombardisoftware.core.TeamWorksException: Type mismatch.
    Value "org.mozilla.javascript.NativeArray@ab2e018f" must be
    array. Java class found: org.mozilla.javascript.NativeArray
                   at
    com.lombardisoftware.core.TeamWorksRuntimeException.asTeamWorksR
    untimeException(TeamWorksRuntimeException.java:88)
                   at
    com.lombardisoftware.server.core.SymbolTable.assertValidType(Sym
    bolTable.java:530)
                   at
    com.lombardisoftware.server.core.SymbolTable.set(SymbolTable.jav
    a:458)
                   at
    com.lombardisoftware.core.script.js.AbstractTWSymbolTableScripta
    ble.put(AbstractTWSymbolTableScriptable.java:260)
                   at
    org.mozilla.javascript.ScriptableObject.putProperty(ScriptableOb
    ject.java:2348)
                   at
    org.mozilla.javascript.ScriptRuntime.setObjectProp(ScriptRuntime
    .java:1598)
                   at
    org.mozilla.javascript.ScriptRuntime.setObjectProp(ScriptRuntime
    .java:1592)
                   at
    org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.jav
    a:1248)
                   at
    org.mozilla.javascript.Interpreter.interpret(Interpreter.java:81
    5)
                   at
    org.mozilla.javascript.InterpretedFunction.call(InterpretedFunct
    ion.java:109)
                   at
    org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.j
    ava:394)
                   at
    com.lombardisoftware.core.script.JavaScriptContextFactory.doTopC
    all(JavaScriptContextFactory.java:192)
                   at
    org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.jav
    a:3091)
                   at
    org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunct
    ion.java:120)
                   at
    com.lombardisoftware.core.script.js.JSScript.exec(JSScript.java:
    78)
                   at
    com.lombardisoftware.core.script.js.JavaScriptRunner$2.execute(J
    avaScriptRunner.java:293)
                   at
    com.lombardisoftware.core.script.js.PreparedScope.executeWithSco
    pe(PreparedScope.java:222)
                   at
    com.lombardisoftware.core.script.js.JavaScriptRunner.execute(Jav
    aScriptRunner.java:291)
                   at
    com.lombardisoftware.core.script.js.JavaScriptRunner.evalScript(
    JavaScriptRunner.java:402)
                   at
    com.lombardisoftware.component.common.workflow.ExecutionContext$
    1.call(ExecutionContext.java:741)
                   at
    com.lombardisoftware.component.common.workflow.ExecutionContext$
    1.call(ExecutionContext.java:739)
                   at
    com.lombardisoftware.component.common.workflow.ExecutionContext.
    doWithParams(ExecutionContext.java:875)
                   at
    com.lombardisoftware.component.common.workflow.ExecutionContext.
    evalScript(ExecutionContext.java:739)
                   at
    com.lombardisoftware.component.common.workflow.ExecutionContext.
    evalScript(ExecutionContext.java:733)
                   at
    com.lombardisoftware.component.common.workflow.ExecutionJob.doJS
    PreAssignment(ExecutionJob.java:903)
                   at
    com.lombardisoftware.component.common.workflow.ExecutionJob.doPr
    eAssignment(ExecutionJob.java:805)
                   at
    com.lombardisoftware.component.common.workflow.ExecutionJob.doJo
    b(ExecutionJob.java:425)
    .....
    Caused by: com.lombardisoftware.core.TeamWorksException: Type
    mismatch. Value "org.mozilla.javascript.NativeArray@ab2e018f"
    must be array. Java class found:
    org.mozilla.javascript.NativeArray
                   at
    com.lombardisoftware.client.persistence.TWClass.assertValidArray
    Value(TWClass.java:759)
                   at
    com.lombardisoftware.server.core.SymbolTable.assertValidType(Sym
    bolTable.java:527)
                   ... 132 more```
    
    PRODUCTS AFFECTED
    IBM Business Process Manager (BPM)
    IBM BPM Express
    IBM Business Automation Workflow
    

Local fix

  • Create the array by using new tw.object.listOf.<primative
    type>();
    

Problem summary

  • No additional information is available.
    

Problem conclusion

  • A fix that enables the creation of arrays for integers,
    decimals, and Booleans will be available in a future release of
    IBM Business Automation Workflow.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR60762

  • Reported component name

    BPM

  • Reported component ID

    5737A5700

  • Reported release

    I00

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-03-01

  • Closed date

    2019-04-09

  • Last modified date

    2025-07-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

    BUS AUTO WORKFL

  • Fixed component ID

    5737H4100

Applicable component levels

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS8JB4","label":"IBM Business Automation Workflow"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"18.0.0.0","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Document Information

Modified date:
14 July 2025