Author |
Message
|
shubhrajit_c |
Posted: Fri Nov 02, 2001 3:15 am Post subject: |
|
|
 Novice
Joined: 01 Nov 2001 Posts: 14 Location: India
|
Hi,
I am new to MQSeries and on a learning phase.I have installed MQ Series for NT , created and started QueueManager , created a message queue and put enabled it. However whenever I am trying to put a message to the queue from my java client in the same machine, I am getting a MQSeries error 2085. I tried to use the sample qbrowser that comes with the product to browse my queue , I am getting the same error.
What may be the reason ????????
_________________ Shubhrajit Chatterjee
http://shubhra.4mg.com
http://hum-sab.8m.net |
|
Back to top |
|
 |
venkat kurra |
Posted: Fri Nov 02, 2001 6:13 am Post subject: |
|
|
 Master
Joined: 18 Oct 2001 Posts: 245 Location: Bloomington , IL
|
2085 reason code for "unable to open queue for output".Verify your queue name is correct.mqseries objects are case sensitive so check uppercase and lower case.this queue should be local queue to this queue manager. |
|
Back to top |
|
 |
shubhrajit_c |
Posted: Sun Nov 04, 2001 10:43 pm Post subject: |
|
|
 Novice
Joined: 01 Nov 2001 Posts: 14 Location: India
|
I have checked and found out that it is not a problem due to case sensitive nature of the qmgr and queue. And I have defined the queue as qlocal, so it is not that problem too.
I have picked up the error log.It looks something like this....
11/05/01 11:35:56
AMQ9208: Error on receive from host 'localhost (127.0.0.1)'.
EXPLANATION:
An error occurred receiving data from 'localhost (127.0.0.1)' over TCP/IP. This
may be due to a communications failure.
ACTION:
Record the TCP/IP return code 10054 (X'2746') and tell the systems
administrator.
_________________ Shubhrajit Chatterjee
http://shubhra.4mg.com
http://hum-sab.8m.net |
|
Back to top |
|
 |
shubhrajit_c |
Posted: Sun Nov 04, 2001 11:43 pm Post subject: |
|
|
 Novice
Joined: 01 Nov 2001 Posts: 14 Location: India
|
Well I think I have solved the problem. I have defined my qmgr and queue both in lower case. However when I was trying to connect(using lower case name) , the qmgr name in lower case was accepted by the system BUT the queue name was not understood ny the system giving a 2085 exception. When I changed the client code and used queue name in upper case, it worked !!!!
Is this a bug ??????????????
_________________ Shubhrajit Chatterjee
http://shubhra.4mg.com
http://hum-sab.8m.net |
|
Back to top |
|
 |
bduncan |
Posted: Mon Nov 05, 2001 10:42 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Shubhrajit,
This probably isn't a bug. If you created the local queue within runmqsc, then more than likely, when you gave the queue name, although you typed it in lower case, the behavior of runmqsc is to upper-case everything you type unless you enclose it in ticks... In other words, if you issue the following command:
DEFINE QLOCAL(testq)
The actual name of the queue will be "TESTQ" and if you application tries to connect to "testq" it will get an error. If you want to force lower case, you need to issue:
DEFINE QLOCAL('testq')
To determine this on your current setup, go into the queue manager that is hosting the queue, issue:
DIS QLOCAL(*)
and locate your queue on the list. If you see it appear as uppercase, then this is definitely what happened...
_________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
bigdavem |
Posted: Mon Nov 05, 2001 10:28 pm Post subject: |
|
|
 Acolyte
Joined: 16 Sep 2001 Posts: 69 Location: Sydney, Australia
|
Can I just add that it is very wise to only use upper case when naming your MQ objects. |
|
Back to top |
|
 |
bduncan |
Posted: Tue Nov 06, 2001 10:20 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
I agree. It's less of a headache to administer when it's all uniform...
_________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
shubhrajit_c |
Posted: Thu Nov 08, 2001 2:22 am Post subject: |
|
|
 Novice
Joined: 01 Nov 2001 Posts: 14 Location: India
|
|
Back to top |
|
 |
|