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 Java / JMSMQException occured. Reason 2009

Post new topicReply to topic Goto page 1, 2  Next
MQException occured. Reason 2009 View previous topic :: View next topic
Author Message
My_Quest
PostPosted: Sun Aug 14, 2005 2:17 pm Post subject: MQException occured. Reason 2009 Reply with quote

Novice

Joined: 07 May 2005
Posts: 24

hi all

I am trying to address an error along with one of our developers who is working with MQ.
This is what he has to say:

So I am attempting to connect to the new MQ box from another host via the MQ direct java libraries (no jms involved yet). I am getting the following error:
MQJE001: An MQException occurred: Completion code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009
MQJE001: Completion Code 2, Reason 2009

I seem to remember getting something similar when I first started working with my own MQ setup here, and it turned out to be a configuration problem. Just to compare notes, I was defining setup like this:

define qlocal (UNI.CVG.PAT.SYNC.TO.TOROL) SHARE put(enabled) get(enabled) usage(normal)
define qlocal (UNI.CVG.BATCH.PAT.SYNC.TO.TOROL) SHARE put(enabled) get(enabled) usage(normal)
define qlocal (TRL.QTE.PAT.SYNC.TO.UNIF) SHARE put(enabled) get(enabled) usage(normal)
define qlocal (TRL.QTE.BATCH.PAT.SYNC.TO.UNIF) SHARE put(enabled) get(enabled) usage(normal)
define channel (‘TO.MUNICVGDMQ01’) CHLTYPE(SVRCONN) TRPTYPE(TCP) MCAUSER(‘ ’)

(from with in runmqsc)

I don’t claim to understand all of that but it did work.

Here’s a snippet of my code, which, even if you don’t understand java much, you can tell what I am using for the qmanager, channel, host names:

MQEnvironment.hostname = “xxx01.xx.mqplus.com”;
MQEnvironment.channel = “QMGRNEW01.QMGRNEW02”;

try {
// create a connection to the queue manager
this.qMgr = new MQQueueManager(this.qManager);

I dont even get the point of trying to open a queue… its complaining while trying to contact the qmanager.

any ideas?

I hope I can get an answer(corrections or suggestions if any) which I can recommend to my developer. Appreciate your help.

Thanks in advance.
Back to top
View user's profile Send private message
fschofer
PostPosted: Sun Aug 14, 2005 2:36 pm Post subject: Reply with quote

Knight

Joined: 02 Jul 2001
Posts: 524
Location: Mainz, Germany

Hi,

Code:
MQEnvironment.channel = "QMGRNEW01.QMGRNEW02";

wants to use a server-to-server connection


use your server connection channel instead
Code:
MQEnvironment.channel = "TO.MUNICVGDMQ01";


Greetings
Frank
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Sun Aug 14, 2005 3:17 pm Post subject: Reply with quote

Grand High Poobah

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

and remember to specify your port if it is not the default 1414
Back to top
View user's profile Send private message Send e-mail
My_Quest
PostPosted: Mon Aug 15, 2005 6:37 am Post subject: code 2009 Reply with quote

Novice

Joined: 07 May 2005
Posts: 24

still having the same issue. Here's the debug logs turned all the way up: It is a lot of useless stuff, but if you follow closely, you can see what is going on. BTW, this code is something I got from IBM (I don't remember where), and I can use it successfully against the MQ setup I did myself some months ago. -- that is, I am pretty sure this is a workable test. Only thing I can think of so far is authentication... is it only allowing connections from certain IP addresses? Is it expecting a certain username/password? (I tried mqm/mqm, as well as no username/password at all but that didn't help).

any ideas?


09:34:45 [1124112885622] Thread: main, Object: com.ibm.mq.MQQueueManager@d80be3 ==> MQManagedObject constructor() entry
09:34:45 [1124112885631] Thread: main, Object: com.ibm.mq.MQQueueManager@d80be3 @(#) common/javabase/com/ibm/mq/MQManagedObject.java, java, j530, j530-L020820 02/08/20 12:25:48
09:34:45 [1124112885632] Thread: main, Object: com.ibm.mq.MQQueueManager@d80be3 <== MQManagedObject constructor() exit
09:34:45 [1124112885638] Thread: main, Object: com.ibm.mq.MQQueueManager@d80be3 ==> MQQueueManager constructor() entry
09:34:45 [1124112885639] Thread: main, Object: com.ibm.mq.MQQueueManager@d80be3 common/javabase/com/ibm/mq/MQQueueManager.java, java, j530, j530-L021003 02/10/01 15:03:42 @(#) 1.56.2.2
09:34:45 [1124112885642] Thread: main Class: *** BuildInfo *** WebSphere MQ classes for Java (5.300)
09:34:45 [1124112885643] Thread: main Class: *** BuildInfo *** j530-L021008 (Production)
09:34:45 [1124112885643] Thread: main, Object: com.ibm.mq.MQQueueManager@d80be3 ==> construct() entry
09:34:45 [1124112885644] Thread: main ==> MQQueueManager::obtainBaseMQQueueManager (Java 1.1 version() entry
09:34:45 [1124112885644] Thread: main ==> MQEnvironment::getDefaultProperty - transport() entry
09:34:45 [1124112885645] Thread: main <== MQEnvironment::getDefaultProperty - transport() exit
09:34:45 [1124112885646] Thread: main ==> MQEnvironment::getDefaultProperty - hostname() entry
09:34:45 [1124112885646] Thread: main <== MQEnvironment::getDefaultProperty - hostname() exit
09:34:45 [1124112885661] Thread: main, Object: com.ibm.mq.MQClientManagedConnectionFactoryJ11@13c1b02 ==> MQClientManagedConnectionFactoryJ11 constructor() entry
09:34:45 [1124112885662] Thread: main ==> MQEnvironment::getDefaultProperty - hostname() entry
09:34:45 [1124112885662] Thread: main <== MQEnvironment::getDefaultProperty - hostname() exit
09:34:45 [1124112885663] Thread: main ==> MQEnvironment::getDefaultProperty - port() entry
09:34:45 [1124112885663] Thread: main <== MQEnvironment::getDefaultProperty - port() exit
09:34:45 [1124112885664] Thread: main ==> MQEnvironment::getDefaultProperty - channel() entry
09:34:45 [1124112885664] Thread: main <== MQEnvironment::getDefaultProperty - channel() exit
09:34:45 [1124112885665] Thread: main ==> MQEnvironment::getDefaultProperty - CCSID() entry
09:34:45 [1124112885666] Thread: main <== MQEnvironment::getDefaultProperty - CCSID() exit
09:34:45 [1124112885666] Thread: main, Object: com.ibm.mq.MQClientManagedConnectionFactoryJ11@13c1b02 <== MQClientManagedConnectionFactoryJ11 constructor() exit
09:34:45 [1124112885671] Thread: main ==> Uninitialized object::ClientConnectionRequestInfo constructor() entry
09:34:45 [1124112885671] Thread: main ==> MQEnvironment::getDefaultProperty - connectOptions() entry
09:34:45 [1124112885672] Thread: main <== MQEnvironment::getDefaultProperty - connectOptions() exit
09:34:45 [1124112885672] Thread: main ==> MQEnvironment::getDefaultProperty - securityExit() entry
09:34:45 [1124112885673] Thread: main <== MQEnvironment::getDefaultProperty - securityExit() exit
09:34:45 [1124112885673] Thread: main ==> MQEnvironment::getDefaultProperty - receiveExit() entry
09:34:45 [1124112885674] Thread: main <== MQEnvironment::getDefaultProperty - receiveExit() exit
09:34:45 [1124112885675] Thread: main ==> MQEnvironment::getDefaultProperty - sendExit() entry
09:34:45 [1124112885675] Thread: main <== MQEnvironment::getDefaultProperty - sendExit() exit
09:34:45 [1124112885676] Thread: main ==> MQEnvironment::getDefaultProperty - userID() entry
09:34:45 [1124112885678] Thread: main <== MQEnvironment::getDefaultProperty - userID() exit
09:34:45 [1124112885679] Thread: main ==> MQEnvironment::getDefaultProperty - password() entry
09:34:45 [1124112885680] Thread: main <== MQEnvironment::getDefaultProperty - password() exit
09:34:45 [1124112885680] Thread: main ==> MQEnvironment::getDefaultProperty - SPI() entry
09:34:45 [1124112885681] Thread: main <== MQEnvironment::getDefaultProperty - SPI() exit
09:34:45 [1124112885681] Thread: main ==> MQEnvironment::getDefaultProperty - SSL Cipher Suite() entry
09:34:45 [1124112885682] Thread: main <== MQEnvironment::getDefaultProperty - SSL Cipher Suite() exit
09:34:45 [1124112885682] Thread: main ==> MQEnvironment::getDefaultProperty - SSL Peer Name() entry
09:34:45 [1124112885683] Thread: main <== MQEnvironment::getDefaultProperty - SSL Peer Name() exit
09:34:45 [1124112885683] Thread: main ==> MQEnvironment::getDefaultProperty - SSL CertStores() entry
09:34:45 [1124112885685] Thread: main <== MQEnvironment::getDefaultProperty - SSL CertStores() exit
09:34:45 [1124112885685] Thread: main ==> MQEnvironment::getDefaultProperty - SSL Socket Factory() entry
09:34:45 [1124112885686] Thread: main <== MQEnvironment::getDefaultProperty - SSL Socket Factory() exit
09:34:45 [1124112885687] Thread: main, Object: com.ibm.mq.ClientConnectionRequestInfo@0 <== ClientConnectionRequestInfo constructor() exit
09:34:45 [1124112885687] Thread: main, Object: com.ibm.mq.MQSimpleConnectionManager@ef5502 ==> allocateConnection() entry
09:34:45 [1124112885688] Thread: main, Object: com.ibm.mq.ManagedConnectionStore@b61fd1 ==> chooseOne() entry
09:34:45 [1124112885690] Thread: main, Object: com.ibm.mq.ManagedConnectionStore@b61fd1 <== chooseOne() exit
09:34:45 [1124112885695] Thread: main, Object: com.ibm.mq.StoredManagedConnection@12f0999 ==> StoredManagedConnection constructor() entry
09:34:45 [1124112885696] Thread: main, Object: com.ibm.mq.MQClientManagedConnectionFactoryJ11@13c1b02 ==> _createManagedConnection() entry
09:34:45 [1124112885701] Thread: main, Object: com.ibm.mq.MQManagedConnectionJ11@65a77f ==> MQManagedConnection constructor() entry
09:34:45 [1124112885722] Thread: main, Object: com.ibm.mq.MQSESSIONClient@91cee ==> setThreadAccess() entry
09:34:45 [1124112885722] Thread: main, Object: com.ibm.mq.MQSESSIONClient@91cee Default multi-thread access will be used.
09:34:45 [1124112885723] Thread: main, Object: com.ibm.mq.MQSESSIONClient@91cee <== setThreadAccess() exit
09:34:45 [1124112885724] Thread: main ==> MQSESSIONClient::MQCONN() entry
09:34:45 [1124112885724] Thread: main Class: MQSESSIONClient common/javabase/com/ibm/mq/MQSESSIONClient.java, java, j530, j530-L021003 02/10/01 16:52:34 @(#) 1.46.1.4
09:34:45 [1124112885727] Thread: main Class: MQSESSIONClient Queue Manager = 'QMGRNEW01'
09:34:45 [1124112885727] Thread: main ==> MQSESSION::setStringToLength() entry
09:34:45 [1124112885728] Thread: main <== MQSESSION::setStringToLength() exit
09:34:45 [1124112885761] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 ==> Constructor() entry
09:34:45 [1124112885762] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 common/javabase/com/ibm/mq/MQInternalCommunications.java, java, j530, j530-L021003 02/09/30 17:08:19 @(#) 1.56.2.3
09:34:45 [1124112885763] Thread: main ==> MQSESSION::setStringToLength() entry
09:34:45 [1124112885763] Thread: main <== MQSESSION::setStringToLength() exit
09:34:45 [1124112885764] Thread: main ==> MQSESSION::setStringToLength() entry
09:34:45 [1124112885765] Thread: main <== MQSESSION::setStringToLength() exit
09:34:45 [1124112885766] Thread: main ==> MQSESSION::setStringToLength() entry
09:34:45 [1124112885766] Thread: main <== MQSESSION::setStringToLength() exit
09:34:45 [1124112885767] Thread: main ==> MQSESSION::setStringToLength() entry
09:34:45 [1124112885767] Thread: main <== MQSESSION::setStringToLength() exit
09:34:45 [1124112885770] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 userID = ' '
09:34:45 [1124112885770] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 longUserID = ' '
09:34:45 [1124112885771] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Queue Manager = 'QMGRNEW01 '
09:34:45 [1124112885772] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Connection handle = 5
09:34:45 [1124112885772] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 CCSID = 819
09:34:45 [1124112885775] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 ==> createSocketConnection() entry
09:34:45 [1124112885775] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Connecting to xxx001.dev.mediaxx.com on port 1414
09:34:45 [1124112885834] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 <== createSocketConnection() exit
09:34:45 [1124112885835] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 ==> establishChannel() entry
09:34:45 [1124112885836] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 ==> buildInitialData() entry
09:34:45 [1124112885836] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 FAP level 255
09:34:45 [1124112885837] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Sending IDFlags2 with distLists flag set...
09:34:45 [1124112885837] Thread: main ==> MQSESSION::setStringToLength() entry
09:34:45 [1124112885839] Thread: main <== MQSESSION::setStringToLength() exit
09:34:45 [1124112885840] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 <== buildInitialData() exit
09:34:45 [1124112885840] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 sending TST_INITIAL_DATA
09:34:45 [1124112885841] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 ==> send() entry
09:34:45 [1124112885841] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 TSH type = 1
09:34:45 [1124112885842] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Control flags = 1
09:34:45 [1124112885843] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Message data follows:
09:34:45 [1124112885843] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Data trace, 102 bytes of data follow:

0000: 4944 2020 ff25 0000 0000 0032 0000 7ffe ID .%.....2....
0010: 0640 0000 3b9a c9ff 4d43 334d 4e44 4d51 .@..;...QMGRNEW
0020: 3031 5143 3351 4444 4d51 3031 0100 0333 01QMGRNEW02...3
0030: 2020 2020 2020 2020 2020 2020 2020 2020
0040: 2020 2020 2020 2020 2020 2020 2020 2020
0050: 2020 2020 2020 2020 2020 2020 2020 2020
0060: 0000 0001 0000 ......

09:34:45 [1124112885846] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Sending data, 102 bytes of msg data remain
09:34:45 [1124112885847] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Last segment of message
09:34:45 [1124112885847] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 ==> writeTSH() entry
09:34:45 [1124112885848] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 <== writeTSH() exit
09:34:45 [1124112885849] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 ==> invokeSendExit() entry
09:34:45 [1124112885849] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Data passed to exit follows:
09:34:45 [1124112885850] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Data trace, 130 bytes of data follow:

0000: 5453 4820 0000 0082 0101 3100 0000 0000 TSH ......1.....
0010: 0000 0000 0000 0111 0333 0000 4944 2020 .........3..ID
0020: ff25 0000 0000 0032 0000 7ffe 0640 0000 .%.....2.....@..
0030: 3b9a c9ff 4d43 334d 4e44 4d51 3031 5143 ;...QMGRNEW01QM
0040: 3351 4444 4d51 3031 0100 0333 2020 2020 GRNEW02...3
0050: 2020 2020 2020 2020 2020 2020 2020 2020
0060: 2020 2020 2020 2020 2020 2020 2020 2020
0070: 2020 2020 2020 2020 2020 2020 0000 0001 ....
0080: 0000 ..

09:34:45 [1124112885853] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 No user send exit was invoked
09:34:45 [1124112885854] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 <== invokeSendExit() exit
09:34:45 [1124112885855] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 <== send() exit
09:34:45 [1124112885855] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 receiving server reply
09:34:45 [1124112885856] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 ==> receive() entry
09:34:45 [1124112885857] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 ==> receiveBytes() entry
09:34:45 [1124112885858] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Waiting for data on input stream.
09:34:45 [1124112885870] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Receiving 36 bytes of data.
09:34:45 [1124112885871] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 ==> invokeReceiveExit() entry
09:34:45 [1124112885872] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Data passed to receive exit follows:
09:34:45 [1124112885872] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Data trace, 36 bytes of data follow:

0000: 5453 4820 0000 0024 0105 0a00 0000 0000 TSH ...$........
0010: 0000 0000 0000 0111 0333 0000 0000 0008 .........3......
0020: 0000 0002 ....

09:34:45 [1124112885875] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 No user receive exit was invoked
09:34:45 [1124112885876] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 <== invokeReceiveExit() exit
09:34:45 [1124112885876] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 ==> readTSH() entry
09:34:45 [1124112885877] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Segment type = 5
09:34:45 [1124112885877] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Control flags = 10
09:34:45 [1124112885878] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Encoding = 0
09:34:45 [1124112885879] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 <== readTSH() exit
09:34:45 [1124112885879] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Data received.
09:34:45 [1124112885882] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Received message data follows:
09:34:45 [1124112885882] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Data trace, 8 bytes of data follow:

0000: 0000 0008 0000 0002 ........

09:34:45 [1124112885884] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 <== receiveBytes() exit
09:34:45 [1124112885884] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 <== receive() exit
09:34:45 [1124112885885] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 server sent TCF_CLOSE_CHANNEL on initial connect:err code = 2
09:34:45 [1124112885886] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 ==> close() entry
09:34:45 [1124112885886] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 ==> sendStatus() entry
09:34:45 [1124112885887] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 status = 8
09:34:45 [1124112885888] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 errCode = 0
09:34:45 [1124112885888] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 ==> send() entry
09:34:45 [1124112885889] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 TSH type = 5
09:34:45 [1124112885889] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Control flags = 8
09:34:45 [1124112885890] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Sending data, 0 bytes of msg data remain
09:34:45 [1124112885894] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Last segment of message
09:34:45 [1124112885895] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 ==> writeTSH() entry
09:34:45 [1124112885895] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 <== writeTSH() exit
09:34:45 [1124112885896] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 ==> invokeSendExit() entry
09:34:45 [1124112885896] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Data passed to exit follows:
09:34:45 [1124112885897] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 Data trace, 28 bytes of data follow:

0000: 5453 4820 0000 001c 0105 3800 0000 0000 TSH ......8.....
0010: 0000 0000 0000 0111 0333 0000 .........3..

09:34:45 [1124112885898] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 No user send exit was invoked
09:34:45 [1124112885899] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 <== invokeSendExit() exit
09:34:45 [1124112885900] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 <== send() exit
09:34:45 [1124112885900] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 <== sendStatus() exit
09:34:45 [1124112885901] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 <== close() exit
09:34:45 [1124112885902] Thread: main, Object: com.ibm.mq.MQInternalCommunications@1edc073 <== establishChannel (via exception)() exit
09:34:45 [1124112885998] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 ==> MQException constructor(cc, rc, source, msgid, insrt)() entry
09:34:46 [1124112886001] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 common/javabase/com/ibm/mq/MQException.java, java, j530, j530-L020820 02/08/09 13:29:42 @(#) 1.39
09:34:46 [1124112886002] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 cc = 2
09:34:46 [1124112886003] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 rc = 2009
09:34:46 [1124112886003] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 source = null
09:34:46 [1124112886004] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 msgId = 57
09:34:46 [1124112886004] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 insrt = '2009'
MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009
09:34:46 [1124112886005] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 Explanation is 'MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009'
09:34:46 [1124112886006] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 <== MQException constructor() exit
09:34:46 [1124112886006] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 ==> MQInternalException constructor (cc, rc, msgId, insrt)() entry
09:34:46 [1124112886007] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 @(#) common/javabase/com/ibm/mqservices/MQInternalException.java, java, j530, j530-L020820 02/08/20 12:32:40
09:34:46 [1124112886008] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 <== MQException private constructor() exit
09:34:46 [1124112886008] Thread: main Class: MQSESSIONClient MQException occurred whilst connecting
09:34:46 [1124112886010] Thread: main <== MQSESSIONClient::MQCONN() exit
09:34:46 [1124112886010] Thread: main, Object: com.ibm.mq.MQManagedConnectionJ11@65a77f <== MQManagedConnection constructor (via exception)() exit
09:34:46 [1124112886011] Thread: main, Object: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2009 ==> MQException constructor(cc, rc, source)() entry
09:34:46 [1124112886012] Thread: main, Object: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2009 common/javabase/com/ibm/mq/MQException.java, java, j530, j530-L020820 02/08/09 13:29:42 @(#) 1.39
09:34:46 [1124112886013] Thread: main, Object: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2009 cc = 2
09:34:46 [1124112886015] Thread: main, Object: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2009 rc = 2009
09:34:46 [1124112886016] Thread: main, Object: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2009 source = com.ibm.mq.MQManagedConnectionJ11@65a77f
MQJE001: Completion Code 2, Reason 2009
09:34:46 [1124112886017] Thread: main, Object: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2009 <== MQException constructor() exit
09:34:46 [1124112886021] Thread: main ==> ReasonCodeInfo::getResourceExceptionClass() entry
09:34:46 [1124112886026] Thread: main <== ReasonCodeInfo::getResourceExceptionClass() exit
09:34:46 [1124112886055] Thread: main, Object: com.ibm.mq.MQClientManagedConnectionFactoryJ11@13c1b02 <== _createManagedConnection (via exception)() exit
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Aug 15, 2005 6:38 am Post subject: Re: code 2009 Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

My_Quest wrote:
still having the same issue.


Did you switch from trying to connect to a Server channel to properly trying to connect to a Server Connection Channel?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
My_Quest
PostPosted: Mon Aug 15, 2005 6:52 am Post subject: error code 2009 Reply with quote

Novice

Joined: 07 May 2005
Posts: 24

well, that channel (TO.MUNICVSDMQ01) is defined on redtail.medisxx.com, which is the OTHER MQ server that I had set up for testing purposes. It's not something I have defined locally. But if the channel "QMGRNEW01QMGRNEW02" is meant ONLY for server to server connections (ONLY between XXX001.dev.mediaxx.com and xxxxx05), maybe that's the missing piece.

That is, maybe I need another channel to be defined for my connections to the server? It's a guess.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Aug 15, 2005 7:06 am Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Client connections can only be made to channels that are chltype(SVRCONN).

I suspect that both TO.MUNICVSDMQ01 and QMGRNEW01QMGRNEW02 are chltype(SERVER).

Try SYSTEM.DEFAULT.SVRCONN.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
vennela
PostPosted: Mon Aug 15, 2005 9:53 am Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Quote:
Only thing I can think of so far is authentication...

Then you would get 2035 and not 2009.
It's not authorization issue.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jefflowrey
PostPosted: Mon Aug 15, 2005 9:57 am Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

vennela wrote:
Quote:
Only thing I can think of so far is authentication...

Then you would get 2035 and not 2009.
It's not authorization issue.

You might get a 2009 from a channel exit that decided to close the channel rather than return a 2035.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
My_Quest
PostPosted: Mon Aug 15, 2005 9:58 am Post subject: error 2009 Reply with quote

Novice

Joined: 07 May 2005
Posts: 24

Hi Jeff,

it turns out to be SYSTEM.DEF.SVRCONN, but yes! it worked!

thanks!

But... on to the next problem: When I use the queue "MH.QM.BILTRN.RECEIVE.QUEUE", which is defined as a local queue, I can access it just fine, but when I use "MH.QM.BILTRN.INPUT.QUEUE", which is defined as a remote queue, I get this:

An MQSeries error occurred : Completion code 2 Reason code 2045
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2045
Back to top
View user's profile Send private message
vennela
PostPosted: Mon Aug 15, 2005 10:01 am Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Maybe you are opening the queue for get.
What are your openoptions?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jefflowrey
PostPosted: Mon Aug 15, 2005 10:01 am Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can only get from qlocals.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
My_Quest
PostPosted: Mon Aug 15, 2005 10:01 am Post subject: error code 2009 Reply with quote

Novice

Joined: 07 May 2005
Posts: 24

I think I take it back. I was opening the remote queue (the queue I *send* messages with) with the following options:

MQC.MQOO_INPUT_AS_Q_DEF + MQC.MQOO_OUTPUT

if I remove MQC.MQOO_INPUT_AS_Q_DEF, then I can connect to the queue, and place a message on it.


So, is this queue(remote) configured to be "write only", so to speak?(As its a remote queue and with default options.put & get enabled)
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Aug 15, 2005 10:03 am Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can only open qlocals for input.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
vennela
PostPosted: Mon Aug 15, 2005 10:07 am Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

jefflowrey wrote:
You can only open qlocals for input.

Isn't it for only OUTPUT

Note sure, but definitely only to PUT and not to GET.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:
Post new topicReply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum IndexIBM MQ Java / JMSMQException occured. Reason 2009
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.