Mq Error Code 2046
MQ V6 FROM A JAVA APPLICATION USING THE MQ V701 JAVA COMPONENT. z/os A fix is available Obtain the fix for this APAR. Subscribe You can track all active APARs for this component. APAR status Closed as unreproducible in next release. Error description If a Java application is configured to use the MQ Java component at the 7.0.1 level, and it attempts to connect to an MQ V6 queue manager, then the connect can fail with 2046 (MQRC_OPTIONS_ERROR). com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2046' ('MQRC_OPTIONS_ERROR'). Local fix Problem summary **************************************************************** * USERS AFFECTED: All users of Websphere MQ for z/OS Version 6 * * Release 0. * **************************************************************** * PROBLEM DESCRIPTION: An MQ Java application using the MQ * * V701 Java classes to connect to an MQ * * V6 queue manager, fails to connect to * * the queue manager with reason code * * 2046 (MQRC_OPTIONS_ERROR). * **************************************************************** * RECOMMENDATION: * **************************************************************** A Java application uses the MQ Java or MQ JMS interfaces to access an MQ version 6 queue manager. If the application is configured to use the MQ version 7.0.1 Java classes, then the parameters used by the MQ Java code to connect to the queue manager are not recognized as valid by the MQ V6 connect processing. This causes the connect to fail with reason code 2046 - MQRC_OPTIONS_ERROR. The failure results in a com.ibm.mq.MQException being thrown. com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2046' ('MQRC_OPTIONS_ERROR'). For JMS applications, a JMSException is passed to the application. com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ0018: JMSWMQ0018: Failed to connect to queue manager 'XXXX' with connection mode 'Bindings' and host name 'localhost(1414)'. Problem conclusion Temporary fix Comments The connection logic in CSQBCON has been altered to allow the parameters passed by the MQ V7.0.1 Java interface. APAR Information APAR numberPM17997 Reported component
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 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 6.2 million programmers, just like you, helping each other. Join them; http://www.ibm.com/support/docview.wss?uid=swg1PM17997 it only takes a minute: Sign up MQException 2046 error when getting messages from MQ queue up vote -1 down vote favorite I am trying to get the messages from one local queue. I have initialized the queue manager , local queue from which I am supposed to fetch the messages . Open Input options used for local queue int http://stackoverflow.com/questions/37781894/mqexception-2046-error-when-getting-messages-from-mq-queue openInputOptions = MQC.MQOO_OUTPUT ; MQQueue outputQueue=queueManager.accessQueue(remoteQueue, openInputOptions); and get message options is MQGetMessageOptions gmo=new MQGetMessageOptions(); gmo.options=MQC.MQGMO_WAIT | MQC.MQGMO_BROWSE_FIRST; gmo.matchOptions=MQC.MQMO_NONE; When I execute this I am getting com.ibm.mq.MQException: Completion Code 2, Reason 2036 error . Which states MQRC_NOT_OPEN_FOR_BROWSE So I tried to use the below open option , int openInputOptions = MQC.MQOO_OUTPUT | MQC.MQOO_BROWSE; When I try with this , it gives me error code Completion code 2, Reason 2046 error . java mq getmessage share|improve this question edited Jun 14 at 19:24 DVA 8319 asked Jun 13 at 4:37 sharath Yogananda 1615 1 This is not Twitter. Write your titles in English, not hashtags. –Raedwald Jun 13 at 8:37 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote Is the queue actually local to the queue manager or are you trying to open a 'Remote Queue'. Because if it was a 'Local Queue' then the 'MQC.MQOO_BROWSE' option would work. share|improve this answer answered Jun 14 at 18:48 Roger 2,76354 add a comment| Your Answer draft saved draft discarded Sign u
RSS Feed - WebSphere MQ Support RSS Feed - https://www.imwuc.org/blog/ibm-websphere-mq-reason-code-list-/-mq-reason-codes-/-websphere-mq-error-codes-/-mq-error-messages Message Broker Support
MQSeries.net Forum Index » IBM MQ API Support » MQJE001: Completion Code 2, Reason 2046 MQJE001: Completion Code 2, Reason 2046 « View previous topic :: View next topic » Author Message mastanr Posted: Fri Jul 29, 2005 6:46 am Post subject: MQJE001: Completion Code 2, Reason 2046 NoviceJoined: 21 Jul 2005Posts: mq error 10 Hello: I am trying to put a message onto a queue and I am getting the above error. My program is REQUEST/REPLY type. Below are the options I am setting. If I take out MQC.MQPMO_NEW_MSG_ID from the GMO options it works. So, if I don't use MQC.MQPMO_NEW_MSG_ID how I can get reply a message for my request? int openOptions = MQC.MQOO_OUTPUT | MQC.MQOO_FAIL_IF_QUIESCING mq error code ; MQQueue queue = qMgr.accessQueue(requestQueue, openOptions, null, null, null); MQPutMessageOptions pmo = new MQPutMessageOptions(); pmo.options = pmo.options + MQC.MQPMO_NEW_MSG_ID ; MQMessage outMsg = new MQMessage(); outMsg.format = MQC.MQFMT_STRING ; outMsg.messageFlags = MQC.MQMT_REQUEST ; outMsg.replyToQueueName = replyToQueue; outMsg.replyToQueueManagerName = replyToQueueManager ; String msgString = "DSIMK66017360040SP@RAK "; outMsg.writeString(msgString); queue.put(outMsg, pmo); Thanks, Mastan Reddy. Back to top JT Posted: Fri Jul 29, 2005 6:58 am Post subject: PadawanJoined: 27 Mar 2003Posts: 1564Location: Hartford, CT. From the Using Java manual, section titled 'Restrictions and variations for core classes' Quote: MQPMO_* values The following MQPMO_* values are not supported by all queue managers, and their use might throw MQException from an MQQueue.put() or an MQQueueManager.put(): MQPMO_NEW_MESSAGE_ID MQPMO_NEW_CORREL_ID MQPMO_LOGICAL_ORDER Back to top mastanr Posted: Fri Jul 29, 2005 7:53 am Post subject: NoviceJoined: 21 Jul 2005Posts: 10 Thanks for your note. So, the request/reply works even if I don't specify these options? JT wrote: From the Using Java manual, section titled 'Restrictions and variations for core classes' Quote: MQPMO_* values The following MQPMO_* values are not supported by all queue managers, and their use might throw MQException from an MQQueue.put() or an MQQueueManager.put(): MQPMO_NEW_MESSAGE_ID MQPMO_NEW_CORREL_ID MQPMO_LBlog IBM Websphere MQ Reason code list / mq reason codes / websphere mq error codes / mq error messages Karthick Karthikeyan MQRC_* (Reason Codes) MQRC_NONE 0 X'00000000' MQRC_APPL_FIRST 900 X'00000384' MQRC_APPL_LAST 999 X'000003E7' MQRC_ALIAS_BASE_Q_TYPE_ERROR 2001 X'000007D1' MQRC_ALREADY_CONNECTED 2002 X'000007D2' MQRC_BACKED_OUT 2003 X'000007D3' MQRC_BUFFER_ERROR 2004 X'000007D4' MQRC_BUFFER_LENGTH_ERROR 2005 X'000007D5' MQRC_CHAR_ATTR_LENGTH_ERROR 2006 X'000007D6' MQRC_CHAR_ATTRS_ERROR 2007 X'000007D7' MQRC_CHAR_ATTRS_TOO_SHORT 2008 X'000007D8' MQRC_CONNECTION_BROKEN 2009 X'000007D9' MQRC_DATA_LENGTH_ERROR 2010 X'000007DA' MQRC_DYNAMIC_Q_NAME_ERROR 2011 X'000007DB' MQRC_ENVIRONMENT_ERROR 2012 X'000007DC' MQRC_EXPIRY_ERROR 2013 X'000007DD' MQRC_FEEDBACK_ERROR 2014 X'000007DE' MQRC_GET_INHIBITED 2016 X'000007E0' MQRC_HANDLE_NOT_AVAILABLE 2017 X'000007E1' MQRC_HCONN_ERROR 2018 X'000007E2' MQRC_HOBJ_ERROR 2019 X'000007E3' MQRC_INHIBIT_VALUE_ERROR 2020 X'000007E4' MQRC_INT_ATTR_COUNT_ERROR 2021 X'000007E5' MQRC_INT_ATTR_COUNT_TOO_SMALL 2022 X'000007E6' MQRC_INT_ATTRS_ARRAY_ERROR 2023 X'000007E7' MQRC_SYNCPOINT_LIMIT_REACHED 2024 X'000007E8' MQRC_MAX_CONNS_LIMIT_REACHED 2025 X'000007E9' MQRC_MD_ERROR 2026 X'000007EA' MQRC_MISSING_REPLY_TO_Q 2027 X'000007EB' MQRC_MSG_TYPE_ERROR 2029 X'000007ED' MQRC_MSG_TOO_BIG_FOR_Q 2030 X'000007EE' MQRC_MSG_TOO_BIG_FOR_Q_MGR 2031 X'000007EF' MQRC_NO_MSG_AVAILABLE 2033 X'000007F1' MQRC_NO_MSG_UNDER_CURSOR 2034 X'000007F2' MQRC_NOT_AUTHORIZED 2035 X'000007F3' MQRC_NOT_OPEN_FOR_BROWSE 2036 X'000007F4' MQRC_NOT_OPEN_FOR_INPUT 2037 X'000007F5' MQRC_NOT_OPEN_FOR_INQUIRE 2038 X'000007F6' MQRC_NOT_OPEN_FOR_OUTPUT 2039 X'000007F7' MQRC_NOT_OPEN_FOR_SET 2040 X'000007F8' MQRC_OBJECT_CHANGED 2041 X'000007F9' MQRC_OBJECT_IN_USE 2042 X'000007FA' MQRC_OBJECT_TYPE_ERROR 2043 X'000007FB' MQRC_OD_ERROR 2044 X'000007FC' MQRC_OPTION_NOT_VALID_FOR_TYPE 2045 X'000007FD' MQRC_OPTIONS_ERROR 2046 X'000007FE' MQRC_PERSISTENCE_ERROR 2047 X'000007FF' MQRC_PERSISTENT_NOT_ALLOWED 2048 X'00000800' MQRC_PRIORITY_EXCEEDS_MAXIMUM 2049 X'00000801' MQRC_PRIORITY_ERROR 2050 X'00000802' MQRC_PUT_INHIBITED 2051 X'00000803' MQRC_Q_DELETED 2052 X'00000804' MQRC_Q_FULL 2053 X'00000805' MQRC_Q_NOT_EMPTY 2055 X'00000807' MQRC_Q_SPACE_NOT_AVAILABLE 2056 X'00000808' MQRC_Q_TYPE_ERROR 2057 X'00000809' MQRC_Q_MGR_NAME_ERROR 2058 X'0000080A' MQRC_Q_MGR_NOT_AVAILABLE 2059 X'0000080B' MQRC_REPORT_OPTIONS_ERROR 2061 X'0000080D' MQRC_SECOND_MARK_NOT_ALLOWED 2062 X'0000080E' MQRC_SECURITY_ERROR 2063 X'0000080F' MQRC_SELECTOR_COUNT_ERROR 2065 X'00000811' MQRC_SELECTOR_LIMIT_EXCEEDED 2066 X'00000812' MQRC_SELECTOR_