"Failed to initialize JMS Message Queue: authentication failed" error during the adapter startup while working with Local EMS server and confirm required field enabled for the Subscription and Request-Response service.

"Failed to initialize JMS Message Queue: authentication failed" error during the adapter startup while working with Local EMS server and confirm required field enabled for the Subscription and Request-Response service.

book

Article ID: KB0083927

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for SAP Solutions 7.x

Description

Issue : "Failed to initialize JMS Message Queue: authentication failed" during adapter startup while working with a local EMS server and the "Confirm" required field is enabled for the Subscription and Request-Response service. The following error will occur even if the authentication parameters for a local EMS server is provided in the configured session being used by the adapter.

#######Error String#######
2017 Jun 09 13:42:24:547 GMT +0530 R3AdapterConfiguration Error [Adapter] AER3-970243 Failed to initialize JMS Message Queue: authentication failed 
2017 Jun 09 13:42:24:547 GMT +0530 R3AdapterConfiguration Info [Adapter] AER3-000082 Successful initialization of Adapter 

#######################


When the "Confirm" required field is enabled for the Subscription and Request-Response service, in order to publish the IDoc confirmation message report once the SAP system receives the IDoc, a publisher endpoint needs to be created which will be used by the adapter to publish the message report. 

If you are using JMS as the transport and it does not have Authentication enabled for your local EMS server, the destination queue/topic required for publishing the message report will be created successfully upon startup. 

If you have authentication enabled for your local EMS server, then the error will be seen during the adapter startup because the destination queue/topic required for publishing the message report will not be created.

Issue/Introduction

"Failed to initialize JMS Message Queue: authentication failed" error during adapter startup when working with a local EMS server and the confirm required field is enabled for the Subscription and Request-Response service.

Environment

All

Resolution

In order to resolve this issue and ensure that the message report queue/topic is created successfully during the adapter startup, add the following properties in your adapter/instance tra file.

​#######
adr3.msgReportQueue.userName < Username >
adr3.msgReportQueue.password < Password >
#######