APAR status
Closed as program error.
Error description
When using the connector framework to develop custom java connectors for IBM Integration Bus or App Connect Enterprise the properties representing a connector's configuration are only added to the connector during the call to initialise(). If the properties are accessed using the getProperty() method during the constructor of a connector then a NullPointerException is caused for example: IIB[107633]: IBM Integration Bus v100020 (RABBITMQ_TEST.default) [Thread 107824] (Msg 2/2) BIP13051E: Error occurred in common connector 'TestRabbitMQ_RabbitMQOutput': 'java.lang.NullPointerException' Additionally it is not clearly documented that properties should not be accessed until after initialisation.
Local fix
Problem summary
**************************************************************** USERS AFFECTED: All users of IBM Integration Bus v10 and App Connect Enterprise v11 or higher using customer java connectors. Platforms affected: MultiPlatform **************************************************************** PROBLEM DESCRIPTION: <span style="background-color:rgb(255, 255, 255)">When using the connector framework to develop custom java </span><span style="background-color:rgb(255, 255, 255)">connectors for IBM Integration Bus or App Connect Enterprise the </span><span style="background-color:rgb(255, 255, 255)">properties representing a connector's configuration are only </span><span style="background-color:rgb(255, 255, 255)">added to the connector during the call to initialise(). If the </span><span style="background-color:rgb(255, 255, 255)">properties are accessed using the getProperty() method during </span><span style="background-color:rgb(255, 255, 255)">the constructor of a connector then a NullPointerException is </span><span style="background-color:rgb(255, 255, 255)">caused for example: </span> <span style="background-color:rgb(255, 255, 255)"> </span> <span style="background-color:rgb(255, 255, 255)">IIB[107633]: IBM Integration Bus v100020 (RABBITMQ_TEST.default) </span><span style="background-color:rgb(255, 255, 255)">[Thread 107824] (Msg 2/2) BIP13051E: Error occurred in common </span><span style="background-color:rgb(255, 255, 255)">connector 'TestRabbitMQ_RabbitMQOutput': </span><span style="background-color:rgb(255, 255, 255)">'java.lang.NullPointerException' </span> <span style="background-color:rgb(255, 255, 255)"> </span> <span style="background-color:rgb(255, 255, 255)">Additionally it is not clearly documented that properties should </span><span style="background-color:rgb(255, 255, 255)">not be accessed until after initialisation. </span>
Problem conclusion
The connector framework has been modified such that calls to getProperty() will return null if made from the constructor of a connector. --------------------------------------------------------------- The fix is targeted for delivery in the following PTFs: Version Maintenance Level v11.0 11.0.0.20 v12.0 12.0.7.0 The latest available maintenance can be obtained from: http://www-01.ibm.com/support/docview.wss?rs=849&uid=swg27006041 If the maintenance level is not yet available,information on its planned availability can be found on: http://www-1.ibm.com/support/docview.wss?rs=849&uid=swg27006308 ---------------------------------------------------------------
Temporary fix
Comments
APAR Information
APAR number
IT41210
Reported component name
INTEGRATION BUS
Reported component ID
5724J0540
Reported release
A00
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2022-06-14
Closed date
2022-10-07
Last modified date
2022-10-07
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
INTEGRATION BUS
Fixed component ID
5724J0540
Applicable component levels
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNQK6","label":"IBM Integration Bus"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.0","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
08 October 2022