IBM Support

JR64196: STACKOVERFLOWEXCEPTION OCCURS IF TRACE IS ENABLED AND BPMRESTREQUEST IS USED IN A SCRIPT TASK

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

  • If you use BPMRESTRequest within a script activity and enable
    trace for the classes ScriptableJSONUtil and
    BPMRESTRequestScriptable a StackoverflowException occurs:
    
    [10/6/21 0:16:20:429 CEST] 000000bb
    .lombardisoftware.server.ejb.workflow.EJBWorkflowManagerBean E
    An exception occurred in Service Flow with name "sf_1". Details:
    com.lombardisoftware.component.common.workflow.WorkflowProcessIt
    emException: An exception occurred in activity "Script Task" of
    "Service Flow" with name "sf_1". Task instance id "Task.353".
    Details: "Runtime error in script ("Process: 'sf_1' ProcessItem:
    'Script Task' Type: 'ITEM'" -1:-1). Internal Script error:
    java.lang.StackOverflowError
    ".
        at
    com.lombardisoftware.component.common.workflow.ExecutionJob.crea
    teWorkflowProcessItemException(ExecutionJob.java:670)
        at
    com.lombardisoftware.component.common.workflow.ExecutionJob.doJo
    b(ExecutionJob.java:525)
        at
    com.lombardisoftware.server.ejb.workflow.EJBWorkflowManagerBean.
    doResumeWorkflowEngine(EJBWorkflowManagerBean.java:1602)
        at
    com.lombardisoftware.server.ejb.workflow.EJBWorkflowManagerBean.
    doResumeWorkflowEngine(EJBWorkflowManagerBean.java:717)
        at
    com.lombardisoftware.server.ejb.workflow.EJBWorkflowManagerBean.
    resumeTask(EJBWorkflowManagerBean.java:374)
        at
    com.lombardisoftware.server.ejb.workflow.EJBWorkflowManagerBean.
    resumeTask(EJBWorkflowManagerBean.java:338)
        at
    com.lombardisoftware.server.ejb.workflow.EJSLocalStatefulEJBWork
    flowManager_9907b2e2.resumeTask(EJSLocalStatefulEJBWorkflowManag
    er_9907b2e2.java)
        at
    com.ibm.bpm.rest.impl.service.ServiceRunner$EJBWorkflowManagerWr
    apper.resumeTask(ServiceRunner.java:691)
        at
    com.ibm.bpm.rest.impl.service.ServiceRunner$TaskRunner.runServic
    e(ServiceRunner.java:1383)
        at
    com.ibm.bpm.rest.impl.service.StartActionHandler.handleActionGet
    Model(StartActionHandler.java:362)
        at
    com.ibm.bpm.rest.impl.playback.ServicePlaybackResourceImpl.creat
    eServicePlayback(ServicePlaybackResourceImpl.java:141)
        at
    com.ibm.bpm.rest.impl.playback.ServicePlaybackResource.createSer
    vicePlayback(ServicePlaybackResource.java:115)
        ....
        Caused by: java.lang.StackOverflowError
        at
    com.lombardisoftware.core.script.js.BPMRESTRequestScriptable.toS
    tring(BPMRESTRequestScriptable.java:303)
        at
    java.text.MessageFormat.subformat(MessageFormat.java:1291)
        at java.text.MessageFormat.format(MessageFormat.java:876)
        at java.text.Format.format(Format.java:168)
        at java.text.MessageFormat.format(MessageFormat.java:852)
        at
    com.ibm.ws.logging.internal.impl.BaseTraceFormatter.formatMessag
    e(BaseTraceFormatter.java:301)
        at
    com.ibm.ws.logging.internal.impl.BaseTraceFormatter.formatVerbos
    eMessage(BaseTraceFormatter.java:373)
        at
    com.ibm.ws.logging.internal.impl.BaseTraceService.publishTraceLo
    gRecord(BaseTraceService.java:1055)
        at
    com.ibm.ws.logging.internal.impl.BaseTraceService.publishLogReco
    rd(BaseTraceService.java:1026)
        at
    com.ibm.ws.logging.internal.impl.BaseTraceService$2.publish(Base
    TraceService.java:285)
        at java.util.logging.Logger.log(Logger.java:749)
        at
    com.ibm.ws.logging.internal.WsLogger.log(WsLogger.java:138)
        at
    com.ibm.ws.logging.internal.WsLogger.logp(WsLogger.java:336)
        at
    com.ibm.ws.logging.internal.WsLogger.entering(WsLogger.java:443)
        at
    com.lombardisoftware.core.script.js.util.ScriptableJSONUtil.getP
    ropertyAsJSONObject(ScriptableJSONUtil.java:45)
        at
    com.lombardisoftware.core.script.js.BPMRESTRequestScriptable.get
    Headers(BPMRESTRequestScriptable.java:214)
        at
    com.lombardisoftware.core.script.js.BPMRESTRequestScriptable.toS
    tring(BPMRESTRequestScriptable.java:307)
        ....
    
    
    PRODUCTS AFFECTED
    IBM Business Automation Workflow
    IBM Cloud Pak for Business Automation
    

Local fix

  • Disable the trace for either ScriptableJSONUtil or
    BPMRESTRequestScriptable by setting the trace specification to
    WLE.wle_js_impl.ScriptableJSONUtil=info or
    WLE.wle_js_impl.BPMRESTRequestScriptable=info.
    

Problem summary

  •   No additional information is available.
    
      PRODUCTS AFFECTED
      IBM Business Automation Workflow
      IBM Cloud Pak for Business Automation
    

Problem conclusion

  • A fix is available or will be available that prevents the
    StackOverflowException.
    

Temporary fix

  • Not applicable.
    

Comments

APAR Information

  • APAR number

    JR64196

  • Reported component name

    BUS AUTO WORKFL

  • Reported component ID

    5737H4100

  • Reported release

    L00

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-10-06

  • Closed date

    2021-11-18

  • Last modified date

    2021-11-18

  • 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

[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS8JB4","label":"IBM Business Automation Workflow"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"21.0.2"}]

Document Information

Modified date:
19 November 2021