Author |
Message
|
super |
Posted: Sun Jul 25, 2004 10:24 pm Post subject: Fail to publish message on Sun Solaris (urgent) |
|
|
Newbie
Joined: 25 Jul 2004 Posts: 5
|
Hi,
We are using Websphere MQ client 5.3. I tried to run a sample pub/sub program in a solaris machine, the subscriber can be started successfully. But the publisher failed with the following exception:
JMS Exception: com.ibm.mq.jms.NoBrokerResponseException: MQJMS5053: *** No broker response. Please ensure that the broker is running. ***
Linked exception: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2046
I tested the publisher on a Windows 2000 pc, it is successful. I think there is no problem with the broker...
Any idea for this? Pls help.
Paul
|
|
Back to top |
|
 |
kirani |
Posted: Sun Jul 25, 2004 10:29 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Quote: |
2046: MQRC_OPTIONS_ERROR
The Options parameter or field contains options that are not valid, or a combination of options that is not valid.
For the MQOPEN , MQCLOSE , MQXCNVC , mqBagToBuffer, mqBufferToBag, mqCreateBag, and mqExecute calls, Options is a separate parameter on the call.
This reason also occurs if the parameter pointer is not valid. (It is not always possible to detect parameter pointers that are not valid; if not detected, unpredictable results occur.)
For the MQBEGIN , MQCONNX , MQGET , MQPUT , and MQPUT1 calls, Options is a field in the relevant options structure (MQBO, MQCNO, MQGMO, or MQPMO).
Corrective action: Specify valid options. Check the description of the Options parameter or field to determine which options and combinations of options are valid. If multiple options are being set by adding the individual options together, ensure that the same option is not added twice.
|
_________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
super |
Posted: Mon Jul 26, 2004 12:15 am Post subject: |
|
|
Newbie
Joined: 25 Jul 2004 Posts: 5
|
Hi,
Where is these options set in? The pub/sub samples that I'm running are written in JMS.
Pls can you help? I'm a new comer in MQ...
Paul |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Jul 26, 2004 7:17 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Well, I've never seen a 2046 error from JMS. Which sample are you running? Has it ever worked? What version of the code are you running? Are you running the MA0C broker? Do you have the most recent copy of it? |
|
Back to top |
|
 |
super |
Posted: Mon Jul 26, 2004 8:52 pm Post subject: |
|
|
Newbie
Joined: 25 Jul 2004 Posts: 5
|
Hi,
It works well in a windows 2000 machine...
bower5932 wrote: |
Well, I've never seen a 2046 error from JMS. Which sample are you running? Has it ever worked? What version of the code are you running? Are you running the MA0C broker? Do you have the most recent copy of it? |
|
|
Back to top |
|
 |
bower5932 |
Posted: Tue Jul 27, 2004 6:12 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I saw your comment that it works on Windows but not on Solaris. I'd still like to know:
Which sample are you running? Has it ever worked (on the Solaris)? What version of the code (including CSD) are you running? Are you running the MA0C broker? Do you have the most recent copy of it? |
|
Back to top |
|
 |
super |
Posted: Sun Aug 01, 2004 11:03 pm Post subject: |
|
|
Newbie
Joined: 25 Jul 2004 Posts: 5
|
After I updated the jar files in java/lib, it works!
bower5932 wrote: |
I saw your comment that it works on Windows but not on Solaris. I'd still like to know:
Which sample are you running? Has it ever worked (on the Solaris)? What version of the code (including CSD) are you running? Are you running the MA0C broker? Do you have the most recent copy of it? |
|
|
Back to top |
|
 |
bower5932 |
Posted: Mon Aug 02, 2004 6:00 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
You were probably running with a mismatch of the WMQ JMS jar files. They used to ship with other products and it was easily possible to get ones that weren't in sync. |
|
Back to top |
|
 |
|