|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Error Opening queue manager 2 2009 |
« View previous topic :: View next topic » |
Author |
Message
|
tony4ever |
Posted: Thu Jan 04, 2007 2:55 am Post subject: Error Opening queue manager 2 2009 |
|
|
Newbie
Joined: 19 Dec 2006 Posts: 7
|
Dear all,
I am working on a mq utility, and I use client mode to connect the queueManager, but I always faild with below error,so any suggestion?
" 05:46:05:[1167903965777] 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 javabase/com/ibm/mq/MQException.java, java, j5306, j5306-L031211 03/12/11 10:35:52 @(#) 1.50.1.1
05:46:05:[1167903965777] 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
05:46:05:[1167903965777] 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
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 source = null
05:46:05:[1167903965777] 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
05:46:05:[1167903965777] 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' "
my code:import java.io.IOException;
import com.ibm.mq.MQC;
import com.ibm.mq.MQEnvironment;
import com.ibm.mq.MQException;
import com.ibm.mq.MQMessage;
import com.ibm.mq.MQPutMessageOptions;
import com.ibm.mq.MQQueue;
import com.ibm.mq.MQQueueManager;
public class MQueueMessageSender{
private String iQueue = null;
private String iQmgr = null;
private MQQueueManager qMgr = null;
private MQQueue myQueue = null;
private MQMessage myMessage = null;
public MQueueMessageSender(String qmanager, String queue) {
iQueue = queue;
iQmgr = qmanager;
init();
}
public void init() {
MQEnvironment.hostname = "130.22.102.38";
MQEnvironment.channel = "HK028.HK038.001";
MQEnvironment.port = 11028;
// MQEnvironment.userID = "mq";
// MQEnvironment.password = "123";
try {
MQEnvironment.enableTracing(3, new java.io.FileOutputStream(
"trace.log"));
} catch (Exception e) {
}
MQException.log = null;
try {
if (iQmgr != null) {
qMgr = new MQQueueManager(iQmgr);
System.out.println("qMgr is: " + iQmgr);
} else {
qMgr = new MQQueueManager("");
}
try {
int openOptions = MQC.MQOO_INPUT_AS_Q_DEF | MQC.MQOO_OUTPUT;
myQueue = qMgr.accessQueue(iQueue, openOptions, null, null,
null);
} catch (MQException ex) {
System.err.println("Error opening queue " + ex.completionCode
+ " " + ex.reasonCode);
}
} catch (MQException ex) {
System.err.println("Error opening queue manager "
+ ex.completionCode + " " + ex.reasonCode);
}
}
public void stop() {
try {
try {
myQueue.close();
} catch (MQException ex) {
System.err.println("Error opening queue " + ex.completionCode
+ " " + ex.reasonCode);
}
qMgr.disconnect();
} catch (MQException ex) {
System.err.println("Error opening queue manager "
+ ex.completionCode + " " + ex.reasonCode);
}
}
public synchronized void send(String message) {
try {
if (message.length() > 0) {
myMessage = new MQMessage();
myMessage.messageId = null;
myMessage.correlationId = null;
myMessage.writeString(message);
myMessage.format = MQC.MQFMT_STRING;
MQPutMessageOptions pmo = new MQPutMessageOptions();
pmo.options = MQC.MQPMO_LOGICAL_ORDER | MQC.MQPMO_SYNCPOINT;
myQueue.put(myMessage, pmo);
myMessage.clearMessage();
qMgr.commit();
System.out.println("Message: " + message + "will be send");
}
} catch (MQException ex) {
System.err.println("Error putting message onto queue "
+ ex.completionCode + " " + ex.reasonCode);
} catch (IOException ex) {
System.err.println("IOException");
}
}
}
[b]Any suggestion I do really appreciate![/b] _________________ Tony
____________
SAP HSBC |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Jan 04, 2007 3:12 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Specify the transport in the MQ.Environment.
Read the MQ Client Manual  _________________ MQ & Broker admin |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jan 04, 2007 3:19 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
FJ - This is not JMS code, I don't think the MQEnvironment needs the transport set.
tony4ever - you've got a very common return code. There's been lots of discussion on what to do when it is received.
But the code you posted could not have produced the error messages you posted. Those are JMS errors and you did not post JMS code.  _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
tony4ever |
Posted: Thu Jan 04, 2007 3:20 am Post subject: |
|
|
Newbie
Joined: 19 Dec 2006 Posts: 7
|
fjb_saper wrote: |
Specify the transport in the MQ.Environment.
Read the MQ Client Manual  |
Thanks so much fjb_saper, but can you elaborate a little bit? coz I am new to mq, so how to specify the transport and read the mq client manual?Many thanks! _________________ Tony
____________
SAP HSBC |
|
Back to top |
|
 |
tony4ever |
Posted: Thu Jan 04, 2007 3:24 am Post subject: |
|
|
Newbie
Joined: 19 Dec 2006 Posts: 7
|
jefflowrey wrote: |
FJ - This is not JMS code, I don't think the MQEnvironment needs the transport set.
tony4ever - you've got a very common return code. There's been lots of discussion on what to do when it is received.
But the code you posted could not have produced the error messages you posted. Those are JMS errors and you did not post JMS code.  |
Hi,jefflowrey,
you can fine code:
try {
MQEnvironment.enableTracing(3, new java.io.FileOutputStream(
"trace.log"));
} catch (Exception e) {
}
those errors are caputured from the trace.log file! and you want to see the full content?
05:46:05:[1167903965402] Thread: main, Object: com.ibm.mq.MQQueueManager@1aaa14a ==> MQManagedObject constructor() entry
05:46:05:[1167903965418] Thread: main, Object: com.ibm.mq.MQQueueManager@1aaa14a @(#) javabase/com/ibm/mq/MQManagedObject.java, java, j5306, j5306-L031211 03/12/11 10:35:24
05:46:05:[1167903965418] Thread: main, Object: com.ibm.mq.MQQueueManager@1aaa14a <== MQManagedObject constructor() exit
05:46:05:[1167903965418] Thread: main, Object: com.ibm.mq.MQQueueManager@1aaa14a ==> MQQueueManager constructor() entry
05:46:05:[1167903965418] Thread: main, Object: com.ibm.mq.MQQueueManager@1aaa14a javabase/com/ibm/mq/MQQueueManager.java, java, j5306, j5306-L031211 03/12/11 10:38:10 @(#) 1.62.1.1
05:46:05:[1167903965418] Thread: main Class: *** BuildInfo *** WebSphere MQ classes for Java (5.306)
05:46:05:[1167903965418] Thread: main Class: *** BuildInfo *** j5306-07-040429 (Production)
05:46:05:[1167903965418] Thread: main, Object: com.ibm.mq.MQQueueManager@1aaa14a ==> construct() entry
05:46:05:[1167903965418] Thread: main ==> MQQueueManager::obtainBaseMQQueueManager (Java 1.1 version() entry
05:46:05:[1167903965418] Thread: main ==> MQEnvironment::getDefaultProperty - transport() entry
05:46:05:[1167903965418] Thread: main <== MQEnvironment::getDefaultProperty - transport() exit
05:46:05:[1167903965418] Thread: main ==> MQEnvironment::getDefaultProperty - hostname() entry
05:46:05:[1167903965418] Thread: main <== MQEnvironment::getDefaultProperty - hostname() exit
05:46:05:[1167903965434] Thread: main, Object: com.ibm.mq.MQClientManagedConnectionFactoryJ11@183f74d ==> MQClientManagedConnectionFactoryJ11 constructor() entry
05:46:05:[1167903965434] Thread: main ==> MQEnvironment::getDefaultProperty - hostname() entry
05:46:05:[1167903965434] Thread: main <== MQEnvironment::getDefaultProperty - hostname() exit
05:46:05:[1167903965434] Thread: main ==> MQEnvironment::getDefaultProperty - port() entry
05:46:05:[1167903965434] Thread: main <== MQEnvironment::getDefaultProperty - port() exit
05:46:05:[1167903965434] Thread: main ==> MQEnvironment::getDefaultProperty - channel() entry
05:46:05:[1167903965434] Thread: main <== MQEnvironment::getDefaultProperty - channel() exit
05:46:05:[1167903965434] Thread: main ==> MQEnvironment::getDefaultProperty - CCSID() entry
05:46:05:[1167903965434] Thread: main <== MQEnvironment::getDefaultProperty - CCSID() exit
05:46:05:[1167903965434] Thread: main, Object: com.ibm.mq.MQClientManagedConnectionFactoryJ11@183f74d <== MQClientManagedConnectionFactoryJ11 constructor() exit
05:46:05:[1167903965434] Thread: main ==> Uninitialized object::ClientConnectionRequestInfo constructor() entry
05:46:05:[1167903965434] Thread: main ==> MQEnvironment::getDefaultProperty - connectOptions() entry
05:46:05:[1167903965434] Thread: main <== MQEnvironment::getDefaultProperty - connectOptions() exit
05:46:05:[1167903965434] Thread: main ==> MQEnvironment::getDefaultProperty - securityExit() entry
05:46:05:[1167903965434] Thread: main <== MQEnvironment::getDefaultProperty - securityExit() exit
05:46:05:[1167903965434] Thread: main ==> MQEnvironment::getDefaultProperty - receiveExit() entry
05:46:05:[1167903965434] Thread: main <== MQEnvironment::getDefaultProperty - receiveExit() exit
05:46:05:[1167903965434] Thread: main ==> MQEnvironment::getDefaultProperty - sendExit() entry
05:46:05:[1167903965434] Thread: main <== MQEnvironment::getDefaultProperty - sendExit() exit
05:46:05:[1167903965434] Thread: main ==> MQEnvironment::getDefaultProperty - userID() entry
05:46:05:[1167903965434] Thread: main <== MQEnvironment::getDefaultProperty - userID() exit
05:46:05:[1167903965434] Thread: main ==> MQEnvironment::getDefaultProperty - password() entry
05:46:05:[1167903965434] Thread: main <== MQEnvironment::getDefaultProperty - password() exit
05:46:05:[1167903965434] Thread: main ==> MQEnvironment::getDefaultProperty - SPI() entry
05:46:05:[1167903965434] Thread: main <== MQEnvironment::getDefaultProperty - SPI() exit
05:46:05:[1167903965434] Thread: main ==> MQEnvironment::getDefaultProperty - SSL Cipher Suite() entry
05:46:05:[1167903965434] Thread: main <== MQEnvironment::getDefaultProperty - SSL Cipher Suite() exit
05:46:05:[1167903965434] Thread: main ==> MQEnvironment::getDefaultProperty - SSL Peer Name() entry
05:46:05:[1167903965434] Thread: main <== MQEnvironment::getDefaultProperty - SSL Peer Name() exit
05:46:05:[1167903965434] Thread: main ==> MQEnvironment::getDefaultProperty - SSL CertStores() entry
05:46:05:[1167903965434] Thread: main <== MQEnvironment::getDefaultProperty - SSL CertStores() exit
05:46:05:[1167903965434] Thread: main ==> MQEnvironment::getDefaultProperty - SSL Socket Factory() entry
05:46:05:[1167903965434] Thread: main <== MQEnvironment::getDefaultProperty - SSL Socket Factory() exit
05:46:05:[1167903965434] Thread: main ==> MQEnvironment::getDefaultProperty - Local Address Property() entry
05:46:05:[1167903965434] Thread: main <== MQEnvironment::getDefaultProperty - Local Address Property() exit
05:46:05:[1167903965434] Thread: main, Object: com.ibm.mq.ClientConnectionRequestInfo@0 <== ClientConnectionRequestInfo constructor() exit
05:46:05:[1167903965434] Thread: main, Object: com.ibm.mq.MQSimpleConnectionManager@1a679b7 ==> allocateConnection() entry
05:46:05:[1167903965434] Thread: main, Object: com.ibm.mq.ManagedConnectionStore@80f4cb ==> chooseOne() entry
05:46:05:[1167903965434] Thread: main, Object: com.ibm.mq.ManagedConnectionStore@80f4cb <== chooseOne() exit
05:46:05:[1167903965449] Thread: main, Object: com.ibm.mq.StoredManagedConnection@1e0bc08 ==> StoredManagedConnection constructor() entry
05:46:05:[1167903965449] Thread: main, Object: com.ibm.mq.MQClientManagedConnectionFactoryJ11@183f74d ==> _createManagedConnection() entry
05:46:05:[1167903965449] Thread: main, Object: com.ibm.mq.MQManagedConnectionJ11@127734f ==> MQManagedConnection constructor() entry
05:46:05:[1167903965465] Thread: main, Object: com.ibm.mq.MQSESSIONClient@b66cc ==> setThreadAccess() entry
05:46:05:[1167903965465] Thread: main, Object: com.ibm.mq.MQSESSIONClient@b66cc Default multi-thread access will be used.
05:46:05:[1167903965465] Thread: main, Object: com.ibm.mq.MQSESSIONClient@b66cc <== setThreadAccess() exit
05:46:05:[1167903965465] Thread: main ==> MQSESSIONClient::MQCONN() entry
05:46:05:[1167903965465] Thread: main Class: MQSESSIONClient javabase/com/ibm/mq/MQSESSIONClient.java, java, j5306, j5306-L031230 03/12/19 16:52:00 @(#) 1.63.1.6
05:46:05:[1167903965465] Thread: main Class: MQSESSIONClient Queue Manager = 'DQMCIBMHK028'
05:46:05:[1167903965465] Thread: main ==> MQSESSION::setStringToLength() entry
05:46:05:[1167903965465] Thread: main <== MQSESSION::setStringToLength() exit
05:46:05:[1167903965481] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 ==> Constructor() entry
05:46:05:[1167903965481] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 javabase/com/ibm/mq/MQInternalCommunications.java, java, j5306, j5306-L031211 03/12/11 10:36:06 @(#) 1.82.1.1
05:46:05:[1167903965481] Thread: main ==> MQSESSION::setStringToLength() entry
05:46:05:[1167903965481] Thread: main <== MQSESSION::setStringToLength() exit
05:46:05:[1167903965481] Thread: main ==> MQSESSION::setStringToLength() entry
05:46:05:[1167903965481] Thread: main <== MQSESSION::setStringToLength() exit
05:46:05:[1167903965481] Thread: main ==> FWHelper::decodeLocalAddress() entry
05:46:05:[1167903965481] Thread: main <== FWHelper::decodeLocalAddress() exit
05:46:05:[1167903965481] Thread: main ==> FWHelper::decodePort() entry
05:46:05:[1167903965496] Thread: main Class: FWHelper Port type: START_PORT
05:46:05:[1167903965496] Thread: main <== FWHelper::decodePort() exit
05:46:05:[1167903965496] Thread: main ==> FWHelper::decodePort() entry
05:46:05:[1167903965496] Thread: main Class: FWHelper Port type: END_PORT
05:46:05:[1167903965496] Thread: main <== FWHelper::decodePort() exit
05:46:05:[1167903965496] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 Firewall properties:
05:46:05:[1167903965496] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 fw_localip: null
05:46:05:[1167903965496] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 fw_pstart: 0
05:46:05:[1167903965496] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 fw_pend: 0
05:46:05:[1167903965496] Thread: main ==> MQSESSION::setStringToLength() entry
05:46:05:[1167903965496] Thread: main <== MQSESSION::setStringToLength() exit
05:46:05:[1167903965496] Thread: main ==> MQSESSION::setStringToLength() entry
05:46:05:[1167903965496] Thread: main <== MQSESSION::setStringToLength() exit
05:46:05:[1167903965496] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 userID = ' '
05:46:05:[1167903965496] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 longUserID = ' '
05:46:05:[1167903965496] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 Queue Manager = 'DQMCIBMHK028 '
05:46:05:[1167903965496] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 Connection handle = 5
05:46:05:[1167903965496] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 CCSID = 819
05:46:05:[1167903965496] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 ==> createSocketConnection() entry
05:46:05:[1167903965496] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 Connecting to 130.22.102.38 on port 11028
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 <== createSocketConnection() exit
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 ==> establishChannel() entry
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 ==> buildInitialData() entry
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 FAP level 255
05:46:05:[1167903965574] Thread: main ==> MQSESSION::setStringToLength() entry
05:46:05:[1167903965574] Thread: main <== MQSESSION::setStringToLength() exit
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 <== buildInitialData() exit
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 sending TST_INITIAL_DATA
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 ==> send() entry
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 TSH type = 1
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 Control flags = 1
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 Sending data, 102 bytes of msg data remain
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 Last segment of message
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 ==> writeTSH() entry
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 <== writeTSH() exit
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 ==> invokeSendExit() entry
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 No user send exit was invoked
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 <== invokeSendExit() exit
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 <== send() exit
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 receiving server reply
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 ==> receive() entry
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 ==> receiveBytes() entry
05:46:05:[1167903965574] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 Waiting for data on input stream.
05:46:05:[1167903965762] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 Receiving 36 bytes of data.
05:46:05:[1167903965762] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 ==> invokeReceiveExit() entry
05:46:05:[1167903965762] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 No user receive exit was invoked
05:46:05:[1167903965762] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 <== invokeReceiveExit() exit
05:46:05:[1167903965762] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 ==> readTSH() entry
05:46:05:[1167903965762] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 Segment type = 5
05:46:05:[1167903965762] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 Control flags = 10
05:46:05:[1167903965762] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 Encoding = 0
05:46:05:[1167903965762] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 <== readTSH() exit
05:46:05:[1167903965762] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 Data received.
05:46:05:[1167903965762] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 <== receiveBytes() exit
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 <== receive() exit
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 server sent TCF_CLOSE_CHANNEL on initial connect:err code = 2
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 ==> close() entry
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 ==> sendStatus() entry
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 status = 8
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 errCode = 0
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 ==> send() entry
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 TSH type = 5
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 Control flags = 8
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 Sending data, 0 bytes of msg data remain
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 Last segment of message
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 ==> writeTSH() entry
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 <== writeTSH() exit
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 ==> invokeSendExit() entry
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 No user send exit was invoked
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 <== invokeSendExit() exit
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 <== send() exit
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 <== sendStatus() exit
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 <== close() exit
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQInternalCommunications@750159 <== establishChannel (via exception)() exit
05:46:05:[1167903965777] 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
05:46:05:[1167903965777] 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 javabase/com/ibm/mq/MQException.java, java, j5306, j5306-L031211 03/12/11 10:35:52 @(#) 1.50.1.1
05:46:05:[1167903965777] 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
05:46:05:[1167903965777] 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
05:46:05:[1167903965777] 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
05:46:05:[1167903965777] 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
05:46:05:[1167903965777] 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'
05:46:05:[1167903965777] 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'
05:46:05:[1167903965777] 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
05:46:05:[1167903965777] 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
05:46:05:[1167903965777] 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 @(#) javabase/com/ibm/mqservices/MQInternalException.java, java, j5306, j5306-L031211 03/12/11 10:55:37
05:46:05:[1167903965777] 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
05:46:05:[1167903965777] Thread: main Class: MQSESSIONClient MQException occurred whilst connecting
05:46:05:[1167903965777] Thread: main <== MQSESSIONClient::MQCONN() exit
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQManagedConnectionJ11@127734f <== MQManagedConnection constructor (via exception)() exit
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQManagedConnectionJ11@127734f Flowing exception message from pCause
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQException: 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, MQException)() entry
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 javabase/com/ibm/mq/MQException.java, java, j5306, j5306-L031211 03/12/11 10:35:52 @(#) 1.50.1.1
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 cc = 2
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 rc = 2009
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 source = com.ibm.mq.MQManagedConnectionJ11@127734f
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 msgId = 57
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 insrt1 = '2009'
05:46:05:[1167903965777] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009 insrt2 = 'null'
05:46:05:[1167903965793] Thread: main, Object: com.ibm.mq.MQException: 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'
05:46:05:[1167903965793] Thread: main, Object: com.ibm.mq.MQException: 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, MQException)() exit
05:46:05:[1167903965793] Thread: main ==> ReasonCodeInfo::getResourceExceptionClass() entry
05:46:05:[1167903965793] Thread: main <== ReasonCodeInfo::getResourceExceptionClass() exit
05:46:05:[1167903965793] Thread: main, Object: com.ibm.mq.MQClientManagedConnectionFactoryJ11@183f74d <== _createManagedConnection (via exception)() exit
05:46:05:[1167903965793] Thread: main, Object: com.ibm.mq.MQSimpleConnectionManager@1a679b7 <== allocateConnection() exit
05:46:05:[1167903965793] Thread: main <== MQQueueManager::obtainBaseMQQueueManager (Java 1.1 version)() exit
05:46:05:[1167903965793] Thread: main, Object: com.ibm.mq.MQQueueManager@1aaa14a <== construct() exit
05:46:05:[1167903965793] Thread: main, Object: com.ibm.mq.MQQueueManager@1aaa14a <== MQQueueManager constructor() exit
05:46:05:[1167903965809] Thread: main, Object: com.ibm.mq.MQMessage@17f1ba3 ==> MQMD constructor() entry
05:46:05:[1167903965809] Thread: main, Object: com.ibm.mq.MQMessage@17f1ba3 @(#) javabase/com/ibm/mq/MQMD.java, java, j5306, j5306-L031211 03/12/11 10:37:08
05:46:05:[1167903965809] Thread: main, Object: com.ibm.mq.MQMessage@17f1ba3 <== MQMD constructor() exit
05:46:05:[1167903965809] Thread: main, Object: com.ibm.mq.MQMessage@17f1ba3 ==> MQMessage constructor() entry
05:46:05:[1167903965809] Thread: main, Object: com.ibm.mq.MQMessage@17f1ba3 javabase/com/ibm/mq/MQMessage.java, java, j5306, j5306-L031211 03/12/11 10:37:23 @(#) 1.35.1.1
05:46:05:[1167903965809] Thread: main, Object: com.ibm.mq.MQMessage@17f1ba3 <== MQMessage constructor() exit
05:46:05:[1167903965809] Thread: main, Object: com.ibm.mq.MQMessage@17f1ba3 ==> writeString() entry
05:46:05:[1167903965809] Thread: main Class: getDefaultCCSID 819
05:46:05:[1167903965809] Thread: main, Object: com.ibm.mq.MQMessage@17f1ba3 ==> getCharacterSetString() entry
05:46:05:[1167903965809] Thread: main, Object: com.ibm.mq.MQMessage@17f1ba3 Mapped 819 -> ISO8859_1
05:46:05:[1167903965809] Thread: main, Object: com.ibm.mq.MQMessage@17f1ba3 <== getCharacterSetString() exit
05:46:05:[1167903965809] Thread: main, Object: com.ibm.mq.MQMessage@17f1ba3 <== writeString() exit
05:46:05:[1167903965824] Thread: main, Object: com.ibm.mq.MQPutMessageOptions@15a3d6b ==> MQPutMessageOptions constructor() entry
05:46:05:[1167903965824] Thread: main, Object: com.ibm.mq.MQPutMessageOptions@15a3d6b @(#) javabase/com/ibm/mq/MQPutMessageOptions.java, java, j5306, j5306-L031211 03/12/11 10:37:57
05:46:05:[1167903965824] Thread: main, Object: com.ibm.mq.MQPutMessageOptions@15a3d6b <== MQPutMessageOptions constructor() exit _________________ Tony
____________
SAP HSBC |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jan 04, 2007 3:24 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
You'll find the Clients manual (and all the others) at:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp
(a fact which even a browse of this forum would have revealed).
This & the Java manual will explain exactly what you need to establish a client connection. A search of the forum will also give you common causes of a 2009, one of the more often experienced return codes. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Jan 04, 2007 3:35 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
|
Back to top |
|
 |
tony4ever |
Posted: Thu Jan 04, 2007 4:10 am Post subject: |
|
|
Newbie
Joined: 19 Dec 2006 Posts: 7
|
fjb_saper wrote: |
Specify the transport in the MQ.Environment.
Read the MQ Client Manual  |
fjb_saper,
Still not work! En... any more suggestion? (add : MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY,
MQC.TRANSPORT_MQSERIES_CLIENT
); ) _________________ Tony
____________
SAP HSBC |
|
Back to top |
|
 |
tony4ever |
Posted: Thu Jan 04, 2007 4:12 am Post subject: |
|
|
Newbie
Joined: 19 Dec 2006 Posts: 7
|
Vitor wrote: |
You'll find the Clients manual (and all the others) at:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp
(a fact which even a browse of this forum would have revealed).
This & the Java manual will explain exactly what you need to establish a client connection. A search of the forum will also give you common causes of a 2009, one of the more often experienced return codes. |
Thanks Vitor! _________________ Tony
____________
SAP HSBC |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jan 04, 2007 4:16 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
tony4ever wrote: |
any more suggestion? |
If you search the forum, you'll find a myriad of situations in which you can get a 2009. Many of which have nothing to do with code. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jan 04, 2007 4:20 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
FJ - setting Transport in the base client only FORCES the decision to use a client transport. It's not required. The way his code is written, the only choice available from what's been set in MQEnvironment is a client connection, so it won't be able to connect any other way - particularly if there isn't a server installed on the same machine.
tony4ever - it makes no sense to me that that trace would produce MQJE errors like that - but I'll take your word for it that it does.
Regardless, a 2009 is a very common error, and probably has nothing to do with your code. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
tony4ever |
Posted: Sun Jan 07, 2007 5:57 pm Post subject: |
|
|
Newbie
Joined: 19 Dec 2006 Posts: 7
|
Thank you all guys! Finally it can be through create new Server channel fix the error, just like what you said, there is nothing can do for code!
Thanks again! _________________ Tony
____________
SAP HSBC |
|
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
|
|
|
|