I am processing some data in a java program and putting data to the queue using a put operation. I have a connection created to the MQ using the following parameters - QueueManagerName,HostName,TCP/IP Port,ServerConnectionChannel,CCSID ,queueName and Encoding.
Issue is that i get the following error message when i try to put data to MQ .
Strange thing about this is that the error is thrown only for the first put attempt in a period of time,All subsequent attempts are successful. Do you know why this might be? I see a related post here.I have no access to MQ Admin stuff.I wanted to highlight the intermittency in this issue to see if we can pinpoint a root cause for this scenario?
[ADA.600.1055] Exception caught Get : Unable to put message to queue <<QueueName>> on <<QueManagerName>>; condition code is "2", reason code is "2195".Completion Code 2, Reason 2195 Unable to put message to queue <<QueueName>> on <<QueManagerName>>; condition code is "2", reason code is "2195". (Linked Exception:Completion Code 2, Reason 2195)
Here is the MQ Java Trace for this issue
**11:20:41** [1590765641717] Thread: HTTP Handler <<IP Address>>, Object: com.ibm.mq.MQInternalCommunications@6574210e <== send() exit
**11:20:41** [1590765641717] Thread: HTTP Handler <<IP Address>>, Object: com.ibm.mq.MQInternalCommunications@6574210e ==> receive() entry
**11:20:41** [1590765641717] Thread: HTTP Handler <<IP Address>>, Object: com.ibm.mq.MQInternalCommunications@6574210e <== receive (via exception)() exit
**11:20:41** [1590765641717] Thread: HTTP Handler <<IP Address>>, Object: com.ibm.mqservices.MQInternalException ==> MQInternalException constructor() entry
**11:20:41** [1590765641717] Thread: HTTP Handler <<IP Address>>, Object: com.ibm.mqservices.MQInternalException <== MQException private constructor() exit
**11:20:41** [1590765641717] Thread: HTTP Handler <<IP Address>> <== MQSESSIONClient::MQPUT() exit
**11:20:41** [1590765641717] Thread: HTTP Handler <<IP Address>>, Object: com.ibm.mq.MQException: Completion Code 2, Reason 2195 ==> MQException constructor: CC = 2 RC = 2195 thrown by com.ibm.mq.MQQueue@5d644fb4() entry
**11:20:41** [1590765641717] Thread: HTTP Handler <<IP Address>>, Object: com.ibm.mq.MQException: Completion Code 2, Reason 2195 <== MQException constructor() exit
**11:20:41** [1590765641717] Thread: HTTP Handler <<IP Address>>, Object: com.ibm.mq.MQQueueManager@991a6f4 ==> errorOccurred() entry
**11:20:41** [1590765641718] Thread: HTTP Handler <<IP Address>> ==> ReasonCodeInfo::getReasonCodeCategory() entry
**11:20:41** [1590765641718] Thread: HTTP Handler <<IP Address>> <== ReasonCodeInfo::getReasonCodeCategory() exit
Here is the QueueManager Error for this issue
12:55:43 - Process(16266.47933) User(mqm) Program(amqrmppa) AMQ9259: Connection timed out from host '<<IP_ADDRESS>>'. EXPLANATION: A connection from host '<<IP_ADDRESS>>' over TCP/IP timed out. ACTION: Check to see why data was not received in the expected time. Correct the problem. Reconnect the channel, or wait for a retrying channel to reconnect itself.