Operating System - HP-UX
1820636 Members
1867 Online
109626 Solutions
New Discussion юеВ

MQueue API returns MQRC_UNEXPECTED_ERROR.

 
Saurav Narain
Occasional Contributor

MQueue API returns MQRC_UNEXPECTED_ERROR.

Hi All,
We have an application running on HPUX that uses MQueue v5.2 libraries. This was working fine in the development environment but MQueue API gives the following error "MQRC_UNEXPECTED_ERROR" when we try running the application at the client site.

The Client has an MQueue v5.2 client installed on an HPUX machine. We are exporting the following line "export MQSERVER=S_xyzstp2/TCP/xyzstp2" before running the executable that calls the MQueue API.

We are able to ping the machine "xyzstp2" after putting the name "xyzstp2" in /etc/hosts directory. The IBM websphere MQueue v5.3 server has been installed on the machine "xyzstp2".

Any inputs on what we may be missing out will be of great help.

Thank you.
3 REPLIES 3
John Kittel
Trusted Contributor

Re: MQueue API returns MQRC_UNEXPECTED_ERROR.

The "Messages" manual says, in part, for this error, "check the applications parameter list to ensure ... correct number of parameters is being passed, data pointers and storage keys are valid, ..."

Also, the documentation says to set the MQSERVER variable with the ip address of the MQ server, not the name, and a port number is required, like this:

export MQSERVER=CHANNEL1/TCP/'server-address(port)'

Also, there is a test program that comes with the client, usually in /opt/mqm/samp/bin/, called amqsputc. The "Quick Beginnings" manual describes how to use it to test the client installation.

- John
Saurav Narain
Occasional Contributor

Re: MQueue API returns MQRC_UNEXPECTED_ERROR.

Hi,
We had tried export MQSERVER=CHANNEL1/TCP/'server-address(port)' but we got the same error as mentioned earlier.

Can you please elaborate on the following -> The "Messages" manual says, in part, for this error, "check the applications parameter list to ensure ... correct number of parameters is being passed, data pointers and storage keys are valid, ..."

Thanks
John Kittel
Trusted Contributor

Re: MQueue API returns MQRC_UNEXPECTED_ERROR.

There is not much else useful in the description of that message.

You should be able to view the manual here:
http://publibfp.boulder.ibm.com/epubs/html/amqzao04/amqzao04tfrm.htm

There does not appear to be a v5.2 specific manual; I found a 5.1 and a 5.3. You can search for other documents, and get downloadable PDFs, here: http://www-306.ibm.com/software/integration/mqfamily/library/manualsa/index.html

I really think you're going to need the port in the MQSERVER specification.

Don't neglect the client verification procedure described in the Quick Beginnings manual, PDF here: http://www.elink.ibmlink.ibm.com/public/applications/publications/cgibin/pbi.cgi?CTY=US&FNC=SRX&PBL=GC34-6077-01

- John