2042 Mq Error Code
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about
Mq Error Code 2030
Stack Overflow the company Business Learn more about hiring developers or posting ads with mq error code 2035 us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a mq error code 2195 community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up IBM WebSphere MQ 2042 error up vote 1 down vote favorite I have the following http://www.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.tro.doc/q041130_.htm code: int openOptions = MQC.MQOO_INQUIRE + MQC.MQOO_FAIL_IF_QUIESCING + MQC.MQOO_INPUT_SHARED; Which when executed, I am getting an error: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2042 MQJE001: Completion Code 2, Reason 2042 This happens while connecting my Java program with WebSphere MQ. Please note that the queue property is set as input shared. All help appreciated. java websphere-mq share|improve this question edited Dec 20 '12 at 4:56 Perception 55k7101136 asked Dec 20 http://stackoverflow.com/questions/13965468/ibm-websphere-mq-2042-error '12 at 4:44 abhinav 2216 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted Although the queue may be set to DEFSOPT(SHARED), this is only a default. It does not prevent a program from opening it with exclusive use. In particular, transmission queues for non-cluster channels, the command queue and other queues used by MQ system components are opened with exclusive use, regardless of the queue's default setting. Similarly, monitoring programs often open the event queues for exclusive use to ensure that other programs do not compete for messages and result in missed critical events. Is it one of the event or XMit queues? If so, you may not be able to remove the error without stopping the channel or monitoring agent. If it is a user-defined queue, use the DISPLAY QSTATUS command to see which process has it open for exclusive input, then disconnect that process. Here is an example: C:\Users\T.Rob>runmqsc QM75 5724-H72 (C) Copyright IBM Corp. 1994, 2011. ALL RIGHTS RESERVED. Starting MQSC for queue manager QM75. dis qs(system.admin.command.queue) all 1 : dis qs(system.admin.command.queue) type(handle) all AMQ8450: Display queue status details. QUEUE(SYSTEM.ADMIN.COMMAND.QUEUE) TYPE(HANDLE) APPLDESC(WebSphere MQ Command Server) APPLTAG(here MQ 7.5\bin\amqpcsea.exe) APPLTYPE(SYSTEM) BROWSE(NO) CHANNEL( ) CONNAME( ) ASTATE(NONE) HSTATE(ACTIVE) INPUT(EXCL) INQUIRE(YES) OUTPUT(NO) PID(
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of http://stackoverflow.com/questions/25630602/websphere-mq-error-with-reason-code-2042-on-a-get this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up mq error Websphere MQ - error with reason code 2042 on a get up vote 2 down vote favorite We're getting an intermittent error on a ImqQueue::get( ImqMsg &, ImqGetMessageOptions & ); call with reason code 2042, which Should Not Happen™ based on the Websphere documentation; we should only get that reason code on an open. Would this error indicate that the server could not mq error code open a queue on its side, or does it indicate that there's a problem in our client? What is the best way to handle this error? Right now we just log that it occurs, but it's happening a lot. Unfortunately I'm not well-versed in Websphere MQ; I'm kind of picking this up as I go, so I don't have all the terminology correct. Our client is written in C++ linking against libmq 6.0.2.4 and running on SLES-10. I don't know the particulars for the server other than it's running version 7.1. We're requesting an upgrade to bring our side up-to-date. We have multiple instances of the client running concurrently; all are using the same request queue, but each is creating its own dynamic reply queue with MQOO_INPUT_EXCLUSIVE + MQOO_INPUT_FAIL_IF_QUIESCING. c++ websphere-mq suse share|improve this question asked Sep 2 '14 at 19:10 John Bode 59.4k858107 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote If the queue is not already open, the ImqQueue::get method will implicitly open the queue for you. This will end up with the MQOO_INPUT_AS_Q_DEF option being used which will therefor