IBM Support

JR64243: TASK STAYS IN RECEIVED STATUS AFTER TASK HAS BEEN CLOSED

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • You see this issue intermittently when REST API
    "/rest/bpm/wle/v1/coachflow/instancedata" fails to claim the
    task implicitly.
    You may see the following stack trace in log file.
    
    [8/16/21 16:54:48:877 SAST] 00025c92 TaskDAO       E
    com.lombardisoftware.server.ejb.persistence.dao.TaskDAO
    assignTask Failed to update PO Task.2764194796, query details:
    updateSql: update LSW_TASK set LAST_MODIFIED_DATETIME = ?,
    USER_ID = ?, GROUP_ID = ? where TASK_ID = ?  and USER_ID = ?
    and GROUP_ID = ?  and LAST_MODIFIED_DATETIME = ?
    columns: [LAST_MODIFIED_DATETIME, USER_ID, GROUP_ID, TASK_ID,
    USER_ID, GROUP_ID, LAST_MODIFIED_DATETIME]
    values: [2021-08-16 16:54:48.834, 409910, -378488, 2764194796,
    -1, 378488, 2021-08-16 16:54:48.431]
    
    com.lombardisoftware.core.ConcurrentModificationException:
    Failed to update PO Task.2764194796, query details:
    updateSql: update LSW_TASK set LAST_MODIFIED_DATETIME = ?,
    USER_ID = ?, GROUP_ID = ? where TASK_ID = ?  and USER_ID = ?
    and GROUP_ID = ?  and LAST_MODIFIED_DATETIME = ?
    columns: [LAST_MODIFIED_DATETIME, USER_ID, GROUP_ID, TASK_ID,
    USER_ID, GROUP_ID, LAST_MODIFIED_DATETIME]
    values: [2021-08-16 16:54:48.834, 409910, -378488, 2764194796,
    -1, 378488, 2021-08-16 16:54:48.431]
        at
    com.lombardisoftware.server.ejb.persistence.dao.UnversionedPODAO
    .doUpdate(UnversionedPODAO.java:1085)
        at
    com.lombardisoftware.server.ejb.persistence.dao.TaskDAO.assignTa
    sk(TaskDAO.java:392)
        at
    com.lombardisoftware.server.ejb.api.TaskAPICore.assignTask(TaskA
    PICore.java:162)
    ...
        at
    com.lombardisoftware.server.ejb.psapi.TaskAPIFacadeCore.assignTa
    sk(TaskAPIFacadeCore.java:61)
    ...
        at
    com.ibm.bpm.rest.impl.task.TaskResource.claim(TaskResource.java:
    1061)
    ...
        at
    com.ibm.bpm.rest.impl.coachflow.InstanceDataResource.getInstance
    Data(InstanceDataResource.java:199)
    
    [8/16/21 16:54:48:962 SAST] 00025731 CFEController E
    com.ibm.bpm.coachflow.servlet.CFEControllerServlet
    finishTaskWithException Task.2764194796 / BPDInstance.9396099 /
    User.409910: Error: The server responded with an error code 500
    when accessing the url
    "/rest/bpm/wle/v1/coachflow/instancedata". Contact your system
    administrator.
    
    [8/16/21 16:57:07:351 SAST] 00026ac3 tokenTrace    1
    com.lombardisoftware.bpd.component.flowcomponent.activity.worker
    .notification.TaskActivityCompletedNotification creating
    notification TaskActivityCompletionNotification for token:
    BPDToken(bpdInstanceId=BpmnInstanceId(9396099), tokenId=135,
    locationId =
    BPDObjectIdImpl(f9559933-5600-4ce7-82dc-e9a119e33b26))
    
    [8/16/21 16:57:07:384 SAST] 00026ac3 RoutingAPIFac E
    CWLLG2229E: An exception occurred in an EJB call.  Error: Cannot
    resume the BPD Instance with Id "BPDInstance.9396099". The
    previous resume completed with errors.
    
    com.lombardisoftware.bpd.runtime.engine.quartz.BPDIncorrectExecu
    tionStatus: Cannot resume the BPD Instance with Id
    "BPDInstance.9396099". The previous resume completed with
    errors.
        at
    com.lombardisoftware.bpd.runtime.engine.util.BPDEngineUtils.asse
    rtProperExecutionStatus(BPDEngineUtils.java:1229)
        at
    com.lombardisoftware.server.ejb.psapi.RoutingAPIFacadeCore$1.doE
    xecuteDuringLock(RoutingAPIFacadeCore.java:196)
    ...
        at
    com.lombardisoftware.server.ejb.psapi.RoutingAPIFacadeCore.compl
    eteTaskAndResumeImmediately(RoutingAPIFacadeCore.java:223)
    ...
    
    PRODUCTS AFFECTED
    IBM Business Automation Workflow
    

Local fix

Problem summary

  • The issue is caused by concurrency race condition, allowing the
    task to be claimed by the same user via another REST API
    invocation..
    

Problem conclusion

  • A fix is available or will be available that ensures the task
    moving to Closed status when this task finishes.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR64243

  • Reported component name

    BUS AUTO WORKFL

  • Reported component ID

    5737H4100

  • Reported release

    J00

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-10-08

  • Closed date

    2021-11-03

  • 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":"19.0.0.1","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Document Information

Modified date:
14 July 2025