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 Index » IBM MQ API Support » MQRC_HANDLE_NOT_AVAILABLE

Post new topic  Reply to topic
 MQRC_HANDLE_NOT_AVAILABLE « View previous topic :: View next topic » 
Author Message
deepak sharma
PostPosted: Wed Jul 11, 2007 9:07 pm    Post subject: MQRC_HANDLE_NOT_AVAILABLE Reply with quote

Newbie

Joined: 11 Jul 2007
Posts: 1

Hi Gurus,
I am facing this error "MQRC_HANDLE_NOT_AVAILABLE".
If the number of message exceeds 256 then it throws this error.


Regards,
Deepak
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jul 12, 2007 12:45 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

From the Info Centre:

Quote:
2017 (X'07E1')MQRC_HANDLE_NOT_AVAILABLE

Explanation:
An MQOPEN or MQPUT1 call was issued, but the maximum number of open handles allowed for the current task has already been reached. Be aware that when a distribution list is specified on the MQOPEN or MQPUT1 call, each queue in the distribution list uses one handle.

Completion Code:
MQCC_FAILED

Programmer Response:
Check whether the application is issuing MQOPEN calls without corresponding MQCLOSE calls. If it is, modify the application to issue the MQCLOSE call for each open object as soon as that object is no longer needed.

Also check whether the application is specifying a distribution list containing a large number of queues that are consuming all of the available handles. If it is, increase the maximum number of handles that the task can use, or reduce the size of the distribution list. The maximum number of open handles that a task can use is given by the MaxHandles queue manager attribute.


I'd do what the programmer response says as that's the most likely cause - 256 is the default value of the MaxHandles attribute mentioned above.

You need to fix it; it's a bad programming style. Any of the sample code will give you clues.

Any Moderator - this is probably best in the API section.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQRC_HANDLE_NOT_AVAILABLE
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.