IBM Support

JR61998: CALLING THE GET /REST/BPM/WLE/V1/GROUP/{GROUPNAMEORID} REST AI RETURNS HTTP 500 IF A GROUP ID DOESN'T EXIST

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.

Direct link to fix

 

APAR status

  • Closed as program error.

Error description

  • The group details call (/rest/bpm/wle/v1/group/{groupNameOrID})
    returns HTTP 500, if the group id does not exist.
    
    The following exception occurs in the SystemOut:
    [2/12/20 11:04:14:017 CET] 000006c9 RestHelper    W
    java.lang.NullPointerException
    
    com.lombardisoftware.client.delegate.BusinessDelegateException:
    java.lang.NullPointerException
     at
    com.lombardisoftware.client.delegate.BusinessDelegateException.a
    sBusinessDelegateException(BusinessDelegateException.java:46)
    ...
    Caused by: java.lang.NullPointerException
     at
    com.lombardisoftware.server.core.GroupCore.getGroup(GroupCore.ja
    va:464)
     at
    com.lombardisoftware.server.core.GroupCore.getGroup(GroupCore.ja
    va:410)
     at
    com.lombardisoftware.server.ejb.psapi.UserGroupAPIFacadeCore.fin
    dUserGroupById(UserGroupAPIFacadeCore.java:78)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    ...
    
    If a non-existing group name is entered, the call returns HTTP
    404 (NON EXISTENT) like expected.
    

Local fix

  • The following alternatives can be used:
    a) group details with group name as argument
    /rest/bpm/wle/v1/group/{groupNameOrID}
    b) list all groups
    /rest/bpm/wle/v1/groups
    

Problem summary

  • The response of HTTP Status 500 (internal server) is returned
    because calling the GET /rest/bpm/wle/v1/group/{groupNameOrID}
    REST API with a group ID that doesn't exists results in a
    NullPointerException that is reported as an internal server
    error.
    

Problem conclusion

  • A fix is available or will be available that prevents the
    NullPointerException to ensure a 404 NOT FOUND response code is
    returned.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR61998

  • 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

    2020-02-12

  • Closed date

    2020-03-16

  • Last modified date

    2020-03-16

  • 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":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS8JB4","label":"IBM Business Automation Workflow"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"19.0.0.1","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
22 June 2020