|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQQueueManager creation problem |
« View previous topic :: View next topic » |
Author |
Message
|
belas |
Posted: Tue Oct 31, 2006 12:44 pm Post subject: MQQueueManager creation problem |
|
|
Newbie
Joined: 31 Oct 2006 Posts: 3
|
I have XP with SP2, IBM RSA, WS 6.0, and Websphere MQ 6.0 with refresh pack 6.0.2.
I created a mqm with listener, channel ( server-conn), and a local queue.
I'd like to put a msg into the queue.
everything is set and up and running.
when my code reaches the mqm creation part :
qMgr = new MQQueueManager ("qName");
my program gives no exception, no reason code and don't stop running.
like a freeze, something is running background, but no answer.
All I can do is to terminate the process.
so , what's wrong?
tnx,
Belas |
|
Back to top |
|
 |
belas |
Posted: Tue Oct 31, 2006 1:02 pm Post subject: MQQueueManager creation problem2 |
|
|
Newbie
Joined: 31 Oct 2006 Posts: 3
|
I have just caught an exeption :
QJE001: An MQException occurred: Completion Code 2, Reason 2195
MQJE007: IO error reading message data
MQJE001: An MQException occurred: Completion Code 2, Reason 2195
MQJE018: Protocol error - unexpected segment type received
MQJE001: An MQException occurred: Completion Code 2, Reason 2195
MQJE018: Protocol error - unexpected segment type received
exeption.
Error in queue manager connect....
QMGR Name : null
CC : 2
RC : 2195
com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2195
MQJE018: Protocol error - unexpected segment type received
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:221)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:318)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:338)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:84)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:168)
at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:773)
at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:698)
at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:658)
at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:154)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:452)
at hu.bme.mit.rgproject.logika.AnyagRaktar.connectMQ1(AnyagRaktar.java:124)
at hu.bme.mit.rgproject.logika.AnyagRaktar.<init>(AnyagRaktar.java:33)
at hu.bme.mit.rgproject.logika.AnyagRaktar.main(AnyagRaktar.java:92)
Caused by: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2195
MQJE018: Protocol error - unexpected segment type received
at com.ibm.mq.MQv6InternalCommunications.establishChannel(MQv6InternalCommunications.java:710)
at com.ibm.mq.MQv6InternalCommunications.initialize(MQv6InternalCommunications.java:219)
at com.ibm.mq.MQv6InternalCommunications.<init>(MQv6InternalCommunications.java:112)
at com.ibm.mq.MQSESSIONClient.MQCONNX(MQSESSIONClient.java:1337)
at com.ibm.mq.MQSESSIONClient.MQCONN(MQSESSIONClient.java:1246)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:193)
... 12 more
RC : 2195 ====> MQRC_UNEXPECTED_ERROR
The call was rejected because an unexpected error occurred.
Any idea? |
|
Back to top |
|
 |
Vitor |
Posted: Wed Nov 01, 2006 12:46 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
If there's a 2195 there should be a matching entry in the queue manager log and/or an FDC file generated. These should give you more of an idea what's happening (Tip - Google for the Probe Id in the FDC).
If all else fails, IBM will ask for these items if you raise a PMR. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
belas |
Posted: Wed Nov 01, 2006 12:57 am Post subject: |
|
|
Newbie
Joined: 31 Oct 2006 Posts: 3
|
I actually find something:
If i do comments as shows below everything works fine.
How can it be possible?
String hostName = "localhost";
String channel = "CH4";
String qManager = "QMQ4";
String qName = "SimpleQueue";
// MQEnvironment.hostname = hostName; !!
// MQEnvironment.channel = channel; !!
MQEnvironment.port = Integer.parseInt("1414");
MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY,
MQC.TRANSPORT_MQSERIES);
qMGR = new MQQueueManager(qManager);
so channel and hostname are not set |
|
Back to top |
|
 |
Vitor |
Posted: Wed Nov 01, 2006 1:18 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Accept my Java is rather dodgy but,
The 2nd (working) example looks like it's doing a server side (bindings) connection, rather than clienting onto the queue mamanger. This points to a problem with the client definition and/or libraries.
I'd still be interested in what the log said for the 2195. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kevinf2349 |
Posted: Wed Nov 01, 2006 5:34 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Quote: |
Error in queue manager connect....
QMGR Name : null
|
I'm guessing but I would think that a 'null' queue manager name isn't a good thing, especially if you don't have an assigned default on the box that is running the code. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|