APAR status
Closed as program error.
Error description
PROBLEM: When adding Labor Assignments to a Crew via MIF and the labor code does not exist in Labor application, the status of the message is ERROR but there is only an empty error message in Message Tracking application. In Message Reprocessing the error message "A programming error resulted in a null pointer exception" instead of BMXAA4134E - LABORCODE did not validate like in the systemout logs. STEPS TO REPRODUCE: Tested using maxdemo data. 1.) Create a new Object Structure with only AMCREW and AMCREWLABUNRESTRICTED objects Relationship = AMCREWLABUNRESTRICTED Inbound Processing Class: com.ibm.tivoli.maximo.amcrew.app.MaxAMCrewProcess Name it and Save 2.) Create an Enterprise Service based on object structure created Name it and Save Add the Enterprise Service to an External System and save it. 3.) Import a XML file to add labor assignment to a crew but make sure you have an invalid value for LABORCODE field: <?xml version="1.0" encoding="UTF-8"?> <SyncZXQCREWUPDATE event="1" maximoVersion="7 6 20190514-1348 V7611-365" messageID="7808116261362067986161" baseLanguage="EN" transLanguage="EN" creationDateTime="2021-07-12T17:30:06-07:00" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.ibm.com/maximo"> <ZXQCREWUPDATESet> <AMCREW action="AddChange"> <AMCREW>TEST</AMCREW> <AMCREWTYPE>TEST</AMCREWTYPE> <CALNUM/> <CONTRACTNUM/> <CREWWORKGROUP/> <DESCRIPTION/> <ENDLOCATION/> <ENDLOCSITEID/> <LBSDATAFROMWO>0</LBSDATAFROMWO> <LBSINTERVAL xsi:nil="true"/> <LBSLABORBASED>0</LBSLABORBASED> <ORATE xsi:nil="true"/> <ORGID>EAGLENA</ORGID> <RATE changed="1">0.0</RATE> <REVISIONNUM xsi:nil="true"/> <SHIFTNUM/> <STARTLOCATION/> <STARTLOCSITEID/> <STATUS maxvalue="ACTIVE">ACTIVE</STATUS> <STATUSDATE>2021-07-13T17:22:35-07:00</STATUSDATE> <VENDOR/> <WORKLOCATION/> <WORKSITE/> <AMCREWLABUNRESTRICTED> <CONTRACTNUM changed="1"/> <CRAFT changed="1">TIER2</CRAFT> <EFFECTIVEDATE changed="1">2021-07-12T17:23:37-07:00</EFFECTIVEDATE> <ENDDATE changed="1">2021-07-30T17:23:00-07:00</ENDDATE> <LABORCODE changed="1">123321</LABORCODE> <ORIGENDDATE xsi:nil="true"/> <POSITION changed="1">DRIVER</POSITION> <RETURNDATE xsi:nil="true"/> <SKILLLEVEL/> <TOLABORCODE/> <VENDOR changed="1"/> </AMCREWLABUNRESTRICTED> </AMCREW> </ZXQCREWUPDATESet> </SyncZXQCREWUPDATE> RESULTS: Message Reprocessing showing "A programming error resulted in a null pointer exception." instead of error message like in import preview or logs "BMXAA4134E - LABORCODE did not validate." EXPECTED RESULT: BMXAA4134E - LABORCODE did not validate. PRODUCT VERSION: Tivoli's process automation engine 7.6.1.1 IBM Tpae Integration Framework 7.6.1.1
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * * All users using Crews and MIF * **************************************************************** * PROBLEM DESCRIPTION: * * CREW UPDATE WITH INVALID LABOR CODE VIA MIF SHOWS "NULL * * POINTER EXCEPTION" INSTEAD OF ERROR MESSAGE * **************************************************************** * RECOMMENDATION: * * CREW UPDATE WITH INVALID LABOR CODE VIA MIF SHOWS "NULL * * POINTER EXCEPTION" INSTEAD OF ERROR MESSAGE * ****************************************************************
Problem conclusion
Fixed the code to throw a meaningful message instead of a null pointer exception
Temporary fix
Comments
APAR Information
APAR number
IJ34299
Reported component name
MAXIMO ASST MGM
Reported component ID
5724R46AM
Reported release
761
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2021-08-06
Closed date
2021-10-21
Last modified date
2021-10-21
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
MAXIMO
Fix information
Fixed component name
MAXIMO ASST MGM
Fixed component ID
5724R46AM
Applicable component levels
[{"Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSLKT6","label":"Maximo Asset Management"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"761"}]
Document Information
Modified date:
22 October 2021