TIBCO ActiveMatrix Adapter for SAP is stuck at 'shutting down' status when stop from TIBCO Administrator

TIBCO ActiveMatrix Adapter for SAP is stuck at 'shutting down' status when stop from TIBCO Administrator

book

Article ID: KB0079081

calendar_today

Updated On:

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

Description

When stop the TIBCO ActiveMatrix Adapter for SAP application from TIBCO Administrator, the application status would be stuck at 'Shutting Down' and application process will keep alive

The The TIBCO ActiveMatrix Adapter for SAP is based on TIBCO Adapter SDK.  TIBCO Adapter SDK would create the Session objects upon startup. The Session object encapsulates transport information. When a stop commend received, TIBCO Adapter SDK would firstly try to stop the internal event loops so that it stop receiving messages from Enterprise Message Service(EMS) or Rendezvous(RV). 

When using the EMS session, if application failed to create the topic/queue due to EMS's queue/topic permission setting, and got following error: 
JMS error: "Not allowed to create destination". 
The the Session object would be in an invalid status, and it can not receive messages from EMS. However the TIBCO ActiveMatrix(R) Adapter for SAP would not fail and stop for such error, and we can see the following log indicates TIBCO ActiveMatrix(R) Adapter for SAP start successfully:
Info [Adapter] AER3-000082 Successful initialization of Adapter 

When stop this application from Administrator via a 'stop' command, TIBCO ActiveMatrix(R) Adapter for SAP application would be stuck at 'Shutting Down' and the process can not be killed automatically.

Environment

All supported systems

Resolution

If TIBCO ActiveMatrix(R) Adapter for SAP application is stuck at 'Shutting Down' status, check application log if "JMS error: "Not allowed to create destination"" error exists, if yes, Fix the Queue/Topic permission first.

Issue/Introduction

TIBCO ActiveMatrix Adapter for SAP is stuck at 'shutting down' status when stop from TIBCO Administrator