Direct link to fix
APAR status
Closed as program error.
Error description
After you set the <client-time-zone-has-precedence> configuration property to true and run JavaScript, such as a new tw.object.Date().format("MM/dd/yy");, inside a heritage human service, you get a NullPointerException similar to the following example: [3/21/18 7:35:50:172 PDT] 000003b8 EJBWorkflowMa E com.lombardisoftware.server.ejb.workflow.EJBWorkflowManagerBean doResumeWorkflowEngine CWLLG0594E: An exception occurred while initializing the runnable thread. Error: {0} com.lombardisoftware.core.TeamWorksRuntimeException: [TeamworksException name='new tw.object.Date().format("MM/dd/yy");', message='Internal Script error: java.lang.NullPointerException', line=1, pos=0 nested=<none>] . . . Caused by: java.lang.NullPointerException at com.lombardisoftware.core.script.js.objects.TWDateSCR.getCurrent TimeZone(TWDateSCR.java:650) at com.lombardisoftware.core.script.js.objects.TWDateSCR.jsFunction _format(TWDateSCR.java:405) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) . . . PRODUCTS AFFECTED IBM Business Process Manager (BPM) IBM BPM Express IBM Business Automation Workflow
Local fix
Problem summary
You receive the NullPointerException because Business Automation Workflow tries to get the time zone from the user preference of the execution context, but the user preference is not set.
Problem conclusion
A future release of IBM Business Automation Workflow will include a fix that checks each step to make sure the return value is not null. If the user preference is null, the server-side time zone is used. As a result, you will no longer receive a NullPointerException.
Temporary fix
Comments
APAR Information
APAR number
JR60426
Reported component name
BPM ADVANCED
Reported component ID
5725C9400
Reported release
I00
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2018-12-11
Closed date
2019-01-17
Last modified date
2019-01-17
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
RI00 PSY
UP
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS8JB4","label":"IBM Business Automation Workflow"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"18.0.0.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
17 January 2019