IBM Support

JR44619: CAPITAL LETTERS IN USERNAME WHEN HUMAN TASK IS ALLOCATED TO LIST PRODUCES NULLPOINTEREXCEPTION (NPE)

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Capital letters in username when human task is allocated to
    list of users produces a NullPointerException (NPE)
    .
    Problem description
    Steps to reproduce:
    1. Import TWX attached to this PMR
    2. Create user with username "test1" - be careful, DO NOT
    capitalize
    any letter in username while creating this user in internal BPM
    user
    repository 3. Start "ListOfUsersTest" BPD
    
    It produces Null Pointer Exception without starting BPD.
    
    Steps which will fix NPE:
    1. Change "Init list" script, and decapitalize first letter of
    username like:
     tw.local.listOfUsers.insertIntoList(0, "test1");
    2. Start "ListOfUsersTest" BPD
    
    It is normally startable now
    
    Another check:
    1. Change "Init list" script, and write in non-existing
    username, like:
     tw.local.listOfUsers.insertIntoList(0, "dummyUser");
    2. Start "ListOfUsersTest" BPD
    
    Error message is understandable now, saying that user doesn't
    exist.
    
    Another check:
    1. Create user "test2" in BPM internal user repository 2. Change
    "Init list" script, by putting 2 users in list, like:
     tw.local.listOfUsers.insertIntoList(0, "test1");
     tw.local.listOfUsers.insertIntoList(1, "Test2"); 2. Start
    "ListOfUsersTest" BPD
    
    Which doesn't produce previously reported NPE.
    (See attached file: Test_App_7 - v1.0.twx)
    .
    .-------------------------------------------------
    Caused by: java.lang.NullPointerException
    
    at com.lombardisoftware.core.script.js.TaskAddressHelper.
    resolveAddressFromAddressList(TaskAddressHelper.java:185)
    
    at com.lombardisoftware.core.script.js.TaskAddressHelper.
    resolveAddressFromList(TaskAddressHelper.java:116)
    
    at
    com.lombardisoftware.core.script.js.TaskAddressHelper.resolveAdd
    ress(TaskAddressHelper.java:79)
    
    at
    com.lombardisoftware.bpd.component.flowcomponent.activity.worker
    .
    BPDActivityWorker.resolveSendToAdHocUserGroup(BPDActivityWorker.
    java:1700)
    
    at
    com.lombardisoftware.bpd.component.flowcomponent.activity.worker
    .
    BPDActivityWorker.resolveTaskSendToList(BPDActivityWorker.java:1
    554)
    
    at
    com.lombardisoftware.bpd.component.flowcomponent.activity.worker
    .BPDActivityWorker.resolveSendTo(BPDActivityWorker.java:995)
    
    at
    com.lombardisoftware.bpd.component.flowcomponent.activity.worker
    .
    BPDActivityWorker.createTask(BPDActivityWorker.java:687)
    
    at
    com.lombardisoftware.bpd.component.flowcomponent.activity.worker
    .
    BPDActivityWorker.executeImplementation(BPDActivityWorker.java:4
    82)
    
    at
    com.lombardisoftware.bpd.component.flowcomponent.activity.worker
    .
    BPDActivityWorker.doWork(BPDActivityWorker.java:262)
    
    at
    com.lombardisoftware.bpd.runtime.engine.FlowObjectExecutionTreeN
    ode.doWork(FlowObjectExecutionTreeNode.java:364)
    

Local fix

  • Don't capitalize letters in username.
    

Problem summary

  • Problem Description:
    
    Non existing user name (here Capitalizing letters in user name)
    when human task is allocated to list of users produces NPE
    
    Problem Conclusion:
    
    If an user name for task assignment does not exist an error is
    logged in SystemOut.log and reported by Process Designer.
    Sample SystemOut.log
     CWLLG0326E: A deliverException has
    occurred.com.lombardisoftware.core.TeamWorksException:
     Unable to process user list, it is invalid or contains invalid
    value(s): tw.local.listOfUsers, ...
    

Problem conclusion

  • problem will be fixed wit V8011
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR44619

  • Reported component name

    BPM ADVANCED

  • Reported component ID

    5725C9400

  • Reported release

    801

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-11-05

  • Closed date

    2013-01-08

  • Last modified date

    2015-05-25

  • APAR is sysrouted FROM one or more of the following:

    JR44529

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    BPM STANDARD

  • Fixed component ID

    5725C9500

Applicable component levels

  • R801 PSY

       UP

[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSFTDH","label":"IBM Business Process Manager Standard"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0.1"}]

Document Information

Modified date:
06 October 2021