TIBCO ActiveMatrix BusinessWorks MQPut activity failing with error MQRC_NOT_AUTHORIZED

TIBCO ActiveMatrix BusinessWorks MQPut activity failing with error MQRC_NOT_AUTHORIZED

book

Article ID: KB0079847

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for IBM MQ 7.6.0

Description

While using MQ Plugin, Even though we are able to successfully connect to queue manager, The process with activity MQPut might fail with below error:
==============================================================================
<?xml version = "1.0" encoding = "UTF-8"?>
<ns0:ErrorReport xmlns:ns0 = "http://www.tibco.com/pe/EngineTypes">
    <StackTrace>Job-12000 Error in [MqWrite.process/WebSphere MQ Put Activity]
Failed to create destination "BW.CSS.CRR.EVT.FEEDER.Q":MQRC_NOT_AUTHORIZED
    at com.tibco.plugin.bwmq.impl.MqClient.openDest(MqClient.java:294)
    at com.tibco.plugin.bwmq.impl.MqClient.init(MqClient.java:241)
    at com.tibco.plugin.bwmq.impl.MqClient.&lt;init>(MqClient.java:149)
    at com.tibco.plugin.bwmq.MqPutActivity.eval(MqPutActivity.java:247)
    at com.tibco.pe.plugin.Activity.eval(Unknown Source)
    at com.tibco.pe.core.TaskImpl.eval(Unknown Source)
    at com.tibco.pe.core.Job.a(Unknown Source)
    at com.tibco.pe.core.Job.k(Unknown Source)
    at com.tibco.pe.core.JobDispatcher$JobCourier.a(Unknown Source)
    at com.tibco.pe.core.JobDispatcher$JobCourier.run(Unknown Source)
    </StackTrace>
    <Msg>Failed to create destination "BW.CSS.CRR.EVT.FEEDER.Q":MQRC_NOT_AUTHORIZED</Msg>
    <FullClass>com.tibco.plugin.bwmq.exception.BwmqException</FullClass>
    <Class>BwmqException</Class>
    <ProcessStack>MqWrite.process/WebSphere MQ Put Activity</ProcessStack>
    <MsgCode>BWMQ-100222</MsgCode>
    <Data>
        <ns1:BwmqException xmlns:ns1 = "http://schemas.tibco.com/bw/plugins/bwmq/5.0/bwmqExceptions">
            <msg>Failed to create destination "BW.CSS.CRR.EVT.FEEDER.Q":MQRC_NOT_AUTHORIZED</msg>
            <msgCode>BWMQ-100222</msgCode>
            <errorMessage>Failed to create destination "BW.CSS.CRR.EVT.FEEDER.Q":MQRC_NOT_AUTHORIZED</errorMessage>
            <mqCompCode>2</mqCompCode>
            <mqReasonCode>2035</mqReasonCode>
        </ns1:BwmqException>
    </Data>
</ns0:ErrorReport>
===============================================================================

Environment

All OS All Platforms

Resolution

Check the level of context support selected under the advanced tab. There are three levels each requiring escalating levels of authorization on the queue manager.

1. Default
2. Identity Context
3. All Context

If you don't need access to the fields enabled by the various levels of context support then simply select the upper one (Default).  

The activity defaults to All Context which is the highest level of support requiring the highest authorization for backward compatibility purposes. This should resolve the issue.

Issue/Introduction

TIBCO ActiveMatrix BusinessWorks MQPut activity failing with error MQRC_NOT_AUTHORIZED.