ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexIBM MQ API Supportgetting MQRC 2538 when connecting to Queue manager

Post new topicReply to topic
getting MQRC 2538 when connecting to Queue manager View previous topic :: View next topic
Author Message
ankurlodhi
PostPosted: Wed Jul 20, 2022 7:24 pm Post subject: getting MQRC 2538 when connecting to Queue manager Reply with quote

Master

Joined: 19 Oct 2010
Posts: 266

Hi All,

I am trying to run mq2qf utility to perform a get, put , browse operations from my application. but i am getting MQRC 2358 host not available every time. while the MQ API's in the same pipeline are running fine.

Thanks
Ankur


Last edited by ankurlodhi on Thu Jul 21, 2022 8:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jul 21, 2022 4:51 am Post subject: Re: getting MQRC 2358 when connecting to Queue manager Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20593
Location: LI,NY

ankurlodhi wrote:
Hi All,

I am trying to run mq2qf utility to perform a get, put , browse operations from my application. but i am getting MQRC 2358 host not available every time. while the MQ API's in the same pipeline are running fine.

Thanks
Ankur

Something seems to be wrong with your code:
Code:
mqrc 2358

      2358  0x00000936  MQRC_NEXT_OFFSET_ERROR

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
bruce2359
PostPosted: Thu Jul 21, 2022 6:07 am Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9232
Location: US: west coast, almost. Otherwise, enroute.

What is mq2qf utility?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
I have no preferred pronouns, but I do have preferred adjectives, namely: brilliant and handsome.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Thu Jul 21, 2022 3:14 pm Post subject: Re: getting MQRC 2358 when connecting to Queue manager Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2399
Location: Melbourne, Australia

ankurlodhi wrote:
Hi All,
I am trying to run mq2qf utility to perform a get, put , browse operations from my application. but i am getting MQRC 2358 host not available every time. while the MQ API's in the same pipeline are running fine.
Thanks
Ankur

MQRC 2358 (edit: 2538) covers a multitude of sins related to your app connecting to the queue manager. Look in the MQ error log on the application side, it will contain the low level error message. Note that MQ uses TCP/IP Sockets. The error probably relates to the socket connect function being unable to resolve the host name that you provided.

You can test the MQ connection using the amqscnxc program. This will eliminate or confirm your app code or configuration as a contributor to the issue.
_________________
Glenn


Last edited by gbaddeley on Sun Jul 24, 2022 3:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
ankurlodhi
PostPosted: Thu Jul 21, 2022 8:57 pm Post subject: Reply with quote

Master

Joined: 19 Oct 2010
Posts: 266

Please pardon me the Error is MQRC 2538.
Back to top
View user's profile Send private message
hughson
PostPosted: Fri Jul 22, 2022 2:53 am Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1780
Location: Bay of Plenty, New Zealand

Look in the amqerr01.log on the machine where your application is running and find the error message that gives you more information about why you are getting MQRC_HOST_NOT_AVAILABLE.

What do you mean by "MQ API's in the same pipeline are running fine" - what is a pipeline in this context?

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
gbaddeley
PostPosted: Sun Jul 24, 2022 3:13 pm Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2399
Location: Melbourne, Australia

ankurlodhi wrote:
Please pardon me the Error is MQRC 2538.

Even I read it as 2538 This is the one of the most common RC when MQ Clients are first configured.
_________________
Glenn
Back to top
View user's profile Send private message
ankurlodhi
PostPosted: Wed Jul 27, 2022 9:25 pm Post subject: Reply with quote

Master

Joined: 19 Oct 2010
Posts: 266

hughson wrote:
Look in the amqerr01.log on the machine where your application is running and find the error message that gives you more information about why you are getting MQRC_HOST_NOT_AVAILABLE.

What do you mean by "MQ API's in the same pipeline are running fine" - what is a pipeline in this context?

Cheers,
Morag


BY MQI API in the pipeline i mean, the rest API calls, which are being ran from a different directory are working fine.
Back to top
View user's profile Send private message
hughson
PostPosted: Wed Jul 27, 2022 9:47 pm Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1780
Location: Bay of Plenty, New Zealand

ankurlodhi wrote:
hughson wrote:
Look in the amqerr01.log on the machine where your application is running and find the error message that gives you more information about why you are getting MQRC_HOST_NOT_AVAILABLE.

What do you mean by "MQ API's in the same pipeline are running fine" - what is a pipeline in this context?

Cheers,
Morag


BY MQI API in the pipeline i mean, the rest API calls, which are being ran from a different directory are working fine.

The REST API is using an HTTP connection to get to the MQ WebServer. The MQ WebServer is then making MQ API calls with a locally bound connection the queue manager.

From what you have described, your failing application is a client application and is not managing to successfully make its network connection. As mentioned earlier, if you look in the AMQERR01.LOG you will see the possible reasons why that you should check, things like "is the listener running" and so on.

The two routes in are very different, so just because one is working does not imply that the other route should also work. It requires different things to be set up.

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ API Supportgetting MQRC 2538 when connecting to Queue manager
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.