IBM Support

JR45889: JAVA.LANG.STACKOVERFLOWERROR OCCURS WHEN VARIABLE TYPED DEFINED AS ANY

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When defining a variable of type ANY and is not a list or array,
    the code loops until a StackOverflowError occurs.
    
    Caused by: java.lang.StackOverflowError
     at
    com.lombardisoftware.core.VariableObjectSerializer.serializeInte
    rnal(VariableObjectSerializer.java:112)
     at
    com.lombardisoftware.core.VariableObjectSerializer.serializeInte
    rnal(VariableObjectSerializer.java:206)
     at
    com.lombardisoftware.core.VariableObjectSerializer.serializeInte
    rnal(VariableObjectSerializer.java:206)
    ......
    ......
    ......
    
     at
    com.lombardisoftware.core.VariableObjectSerializer.serializeInte
    rnal(VariableObjectSerializer.java:206)
     at
    com.lombardisoftware.core.VariableObjectSerializer.serialize(Var
    iableObjectSerializer.java:76)
     at com.lombardisoftware.core.TWObject.toXML(TWObject.java:512)
     at
    com.lombardisoftware.core.script.js.TWObjectScriptable.toXML(TWO
    bjectScriptable.java:128)
     at
    com.lombardisoftware.core.script.js.TWObjectScriptable.toString(
    TWObjectScriptable.java:90)
     at
    com.lombardisoftware.core.script.js.TWObjectScriptable.getString
    Value(TWObjectScriptable.java:559)
     at
    com.lombardisoftware.core.script.js.TWObjectScriptable.getDefaul
    tValue(TWObjectScriptable.java:569)
     at
    org.mozilla.javascript.ScriptRuntime.toString(ScriptRuntime.java
    :724)
     at
    org.mozilla.javascript.ScriptRuntime.add(ScriptRuntime.java:2570
    )
     at
    org.mozilla.javascript.Interpreter.do_add(Interpreter.java:4669)
     at
    org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.jav
    a:2958)
     at
    org.mozilla.javascript.Interpreter.interpret(Interpreter.java:24
    87)
     at
    org.mozilla.javascript.InterpretedFunction.call(InterpretedFunct
    ion.java:164)
     at
    org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.j
    ava:398)
     at
    org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.jav
    a:3070)
     at
    org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunct
    ion.java:175)
     at
    com.lombardisoftware.core.script.js.JSScript.exec(JSScript.java:
    60)
     at
    com.lombardisoftware.core.script.js.JavaScriptRunner$2.execute(J
    avaScriptRunner.java:256)
     at
    com.lombardisoftware.core.script.js.PreparedScope.executeWithSco
    pe(PreparedScope.java:204)
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Applications with variables defined as ANY  *
    *                  type.                                       *
    ****************************************************************
    * PROBLEM DESCRIPTION: StackOverflowError may occur when       *
    *                      process variables are defined as ANY    *
    *                      type.                                   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When defining a variable of type ANY and is not a list or
    array, a StackOverflowError may occur when reading the
    variable. During serialization/deserialization the code flow
    enters an infinite loop trying to match the TWObject type and
    terminates with a StackOverflowError.
    

Problem conclusion

  • Code changes have been made to properly assign the object type
    to mitigate the recurrsive behavior. An interim fix will be
    available on v8.0.1.0.  This fix will also be integrated into
    the next release.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR45889

  • Reported component name

    BPM ADVANCED

  • Reported component ID

    5725C9400

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-03-01

  • Closed date

    2013-03-27

  • Last modified date

    2015-12-31

  • 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 ADVANCED

  • Fixed component ID

    5725C9400

Applicable component levels

  • R800 PSY

       UP

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

Document Information

Modified date:
08 January 2022