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 » General Discussion » [Solved]2085 Error when accessing a Queue

Post new topic  Reply to topic
 [Solved]2085 Error when accessing a Queue « View previous topic :: View next topic » 
Author Message
jmeier
PostPosted: Fri Aug 30, 2002 8:50 am    Post subject: [Solved]2085 Error when accessing a Queue Reply with quote

Apprentice

Joined: 30 Aug 2002
Posts: 46
Location: Minneapolis

I am building a Visual Basic application that is accessing a local persistent queue using the following code:

Set MQQueueMgr = MQSess.AccessQueueManager("QM_mpclarifydev") '

Set GetMQQueue = MQQueueMgr.AccessQueue("default", _
MQAX200.MQ.MQOO_BROWSE Or MQAX200.MQ.MQOO_INQUIRE)

The program connects to the queue manager, but when I try to access the queue ‘default’, I receive a 2085 MQRC_UNKNOWN_OBJECT_NAME error. The queue name is in the correct case and there don’t seem to be any spaces. This code worked fine on my local machine, which has a local QM and queue, but when it is moved to a server with the QM and queue also local, it doesn’t. Any thoughts would be appreciated.
_________________
Joe Meier


Last edited by jmeier on Wed Mar 05, 2003 1:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
mgrabinski
PostPosted: Sun Sep 01, 2002 9:14 pm    Post subject: Reply with quote

Master

Joined: 16 Oct 2001
Posts: 246
Location: Katowice, Poland

Make sure the queue realy exits within the queue manager you are accessing. Try to display the queue attributes in runmqsc or MQExplorer.
_________________
Marcin Grabinski <><
Back to top
View user's profile Send private message
jmeier
PostPosted: Tue Sep 03, 2002 6:21 am    Post subject: Reply with quote

Apprentice

Joined: 30 Aug 2002
Posts: 46
Location: Minneapolis

The queue seems to exist when I look at it thru the MQ Series explorer. The properties are the same as what I have set on my development server which doesnt seem to have any issues with reading messages from the queue. It is a persistent queue, and I can put a message to it using the explorer.
_________________
Joe Meier
Back to top
View user's profile Send private message
mgrabinski
PostPosted: Tue Sep 03, 2002 8:55 pm    Post subject: Reply with quote

Master

Joined: 16 Oct 2001
Posts: 246
Location: Katowice, Poland

Is it possible that there is any character as the third parameter (queue manager name) of the call? Then MQSeries would try to open a queue belonging to this nonexistent queue manager.
_________________
Marcin Grabinski <><
Back to top
View user's profile Send private message
jmeier
PostPosted: Wed Sep 04, 2002 6:02 am    Post subject: Reply with quote

Apprentice

Joined: 30 Aug 2002
Posts: 46
Location: Minneapolis

But wouldnt I receive a 2058 error for a non existent Queue Manager? I seem to be connecting to the queue manager just fine...

I just tried specifying the QM name in the AccessQueue command and it still gave me the error...
_________________
Joe Meier
Back to top
View user's profile Send private message
jmeier
PostPosted: Mon Sep 09, 2002 5:19 am    Post subject: Reply with quote

Apprentice

Joined: 30 Aug 2002
Posts: 46
Location: Minneapolis

One other wrinkle in this is that the queue I am trying to read is in a clustered environment. The development environment isn't clustered and seems to work fine. Is there anything I need to consider when working with a clustered environment? Are the calls to open a QM and read a queue the same?
_________________
Joe Meier
Back to top
View user's profile Send private message
mrlinux
PostPosted: Mon Sep 09, 2002 8:59 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

Is the queue you are trying to read queue that is on another box ???
If so you cannot do MQGET's to remotes queues on other boxs.
Unless you are using client code, but your message doesnt seem to indicate that
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
jmeier
PostPosted: Tue Sep 10, 2002 4:12 am    Post subject: Reply with quote

Apprentice

Joined: 30 Aug 2002
Posts: 46
Location: Minneapolis

The queue is on the same box as the Queue Manager and code that is trying to read from the queue.
_________________
Joe Meier
Back to top
View user's profile Send private message
mrlinux
PostPosted: Tue Sep 10, 2002 9:08 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

Then there is somethingwrong with the queue name or queue definition.

Are you sure the case matchs ????
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
jmeier
PostPosted: Tue Sep 10, 2002 12:05 pm    Post subject: Reply with quote

Apprentice

Joined: 30 Aug 2002
Posts: 46
Location: Minneapolis

the mystery has been solved!! I was attempting to run the application using Visual Basic from my pc with the code residing on the server. I had a drive mapped to the server. When I would run the code it would error out. When I actually physically ran the code from the server it would work properly. Thanks to all who responded to this thread!
_________________
Joe Meier
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 » General Discussion » [Solved]2085 Error when accessing a Queue
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.