|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Error connecting to MQServer5.3 on Aix5.1 from win client |
« View previous topic :: View next topic » |
Author |
Message
|
naylak |
Posted: Thu May 20, 2004 2:13 am Post subject: Error connecting to MQServer5.3 on Aix5.1 from win client |
|
|
Apprentice
Joined: 08 Feb 2003 Posts: 47
|
Hi All!
I am trying to connect to a Queue Manager on AIX 5.1 using IBM websphere 5.3 from a windows MQ client. I am getting the following error which was captured using trace:
03:17:48 [1085046468437] Thread: main, Object: com.ibm.mq.MQQueueManager@fabe9 ==> MQManagedObject constructor() entry
03:17:48 [1085046468453] Thread: main, Object: com.ibm.mq.MQQueueManager@fabe9 @(#) javabase/com/ibm/mq/MQManagedObject.java, java, j5304, j5304-L030506.2 03/05/02 15:09:29
03:17:48 [1085046468453] Thread: main, Object: com.ibm.mq.MQQueueManager@fabe9 <== MQManagedObject constructor() exit
03:17:48 [1085046468453] Thread: main, Object: com.ibm.mq.MQQueueManager@fabe9 ==> MQQueueManager constructor() entry
03:17:48 [1085046468453] Thread: main, Object: com.ibm.mq.MQQueueManager@fabe9 javabase/com/ibm/mq/MQQueueManager.java, java, j5304, j5304-L030506.2 03/05/02 15:10:37 @(#) 1.61.2.1
03:17:48 [1085046468453] Thread: main Class: *** BuildInfo *** WebSphere MQ classes for Java (5.304)
03:17:48 [1085046468453] Thread: main Class: *** BuildInfo *** j5304-G030613.1 (Production)
03:17:48 [1085046468453] Thread: main, Object: com.ibm.mq.MQQueueManager@fabe9 ==> construct() entry
03:17:48 [1085046468453] Thread: main ==> MQQueueManager::obtainBaseMQQueueManager (Java 1.1 version() entry
03:17:48 [1085046468453] Thread: main ==> MQEnvironment::getDefaultProperty - transport() entry
03:17:48 [1085046468453] Thread: main <== MQEnvironment::getDefaultProperty - transport() exit
03:17:48 [1085046468453] Thread: main ==> MQEnvironment::getDefaultProperty - hostname() entry
03:17:48 [1085046468453] Thread: main <== MQEnvironment::getDefaultProperty - hostname() exit
03:17:48 [1085046468468] Thread: main, Object: com.ibm.mq.MQClientManagedConnectionFactoryJ11@360be0 ==> MQClientManagedConnectionFactoryJ11 constructor() entry
03:17:48 [1085046468468] Thread: main ==> MQEnvironment::getDefaultProperty - hostname() entry
03:17:48 [1085046468468] Thread: main <== MQEnvironment::getDefaultProperty - hostname() exit
03:17:48 [1085046468468] Thread: main ==> MQEnvironment::getDefaultProperty - port() entry
03:17:48 [1085046468468] Thread: main <== MQEnvironment::getDefaultProperty - port() exit
03:17:48 [1085046468468] Thread: main ==> MQEnvironment::getDefaultProperty - channel() entry
03:17:48 [1085046468468] Thread: main <== MQEnvironment::getDefaultProperty - channel() exit
03:17:48 [1085046468468] Thread: main ==> MQEnvironment::getDefaultProperty - CCSID() entry
03:17:48 [1085046468468] Thread: main <== MQEnvironment::getDefaultProperty - CCSID() exit
03:17:48 [1085046468468] Thread: main, Object: com.ibm.mq.MQClientManagedConnectionFactoryJ11@360be0 <== MQClientManagedConnectionFactoryJ11 constructor() exit
03:17:48 [1085046468484] Thread: main ==> Uninitialized object::ClientConnectionRequestInfo constructor() entry
03:17:48 [1085046468484] Thread: main ==> MQEnvironment::getDefaultProperty - connectOptions() entry
03:17:48 [1085046468484] Thread: main <== MQEnvironment::getDefaultProperty - connectOptions() exit
03:17:48 [1085046468484] Thread: main ==> MQEnvironment::getDefaultProperty - securityExit() entry
03:17:48 [1085046468484] Thread: main <== MQEnvironment::getDefaultProperty - securityExit() exit
03:17:48 [1085046468484] Thread: main ==> MQEnvironment::getDefaultProperty - receiveExit() entry
03:17:48 [1085046468484] Thread: main <== MQEnvironment::getDefaultProperty - receiveExit() exit
03:17:48 [1085046468484] Thread: main ==> MQEnvironment::getDefaultProperty - sendExit() entry
03:17:48 [1085046468484] Thread: main <== MQEnvironment::getDefaultProperty - sendExit() exit
03:17:48 [1085046468484] Thread: main ==> MQEnvironment::getDefaultProperty - userID() entry
03:17:48 [1085046468484] Thread: main <== MQEnvironment::getDefaultProperty - userID() exit
03:17:48 [1085046468484] Thread: main ==> MQEnvironment::getDefaultProperty - password() entry
03:17:48 [1085046468484] Thread: main <== MQEnvironment::getDefaultProperty - password() exit
03:17:48 [1085046468484] Thread: main ==> MQEnvironment::getDefaultProperty - SPI() entry
03:17:48 [1085046468484] Thread: main <== MQEnvironment::getDefaultProperty - SPI() exit
03:17:48 [1085046468484] Thread: main ==> MQEnvironment::getDefaultProperty - SSL Cipher Suite() entry
03:17:48 [1085046468484] Thread: main <== MQEnvironment::getDefaultProperty - SSL Cipher Suite() exit
03:17:48 [1085046468484] Thread: main ==> MQEnvironment::getDefaultProperty - SSL Peer Name() entry
03:17:48 [1085046468484] Thread: main <== MQEnvironment::getDefaultProperty - SSL Peer Name() exit
03:17:48 [1085046468484] Thread: main ==> MQEnvironment::getDefaultProperty - SSL CertStores() entry
03:17:48 [1085046468484] Thread: main <== MQEnvironment::getDefaultProperty - SSL CertStores() exit
03:17:48 [1085046468484] Thread: main ==> MQEnvironment::getDefaultProperty - SSL Socket Factory() entry
03:17:48 [1085046468484] Thread: main <== MQEnvironment::getDefaultProperty - SSL Socket Factory() exit
03:17:48 [1085046468484] Thread: main ==> MQEnvironment::getDefaultProperty - Local Address Property() entry
03:17:48 [1085046468484] Thread: main <== MQEnvironment::getDefaultProperty - Local Address Property() exit
03:17:48 [1085046468484] Thread: main, Object: com.ibm.mq.ClientConnectionRequestInfo@0 <== ClientConnectionRequestInfo constructor() exit
03:17:48 [1085046468484] Thread: main, Object: com.ibm.mq.MQSimpleConnectionManager@2d3ba4 ==> allocateConnection() entry
03:17:48 [1085046468484] Thread: main, Object: com.ibm.mq.ManagedConnectionStore@26b249 ==> chooseOne() entry
03:17:48 [1085046468500] Thread: main, Object: com.ibm.mq.ManagedConnectionStore@26b249 <== chooseOne() exit
03:17:48 [1085046468500] Thread: main, Object: com.ibm.mq.StoredManagedConnection@5224ee ==> StoredManagedConnection constructor() entry
03:17:48 [1085046468500] Thread: main, Object: com.ibm.mq.MQClientManagedConnectionFactoryJ11@360be0 ==> _createManagedConnection() entry
03:17:48 [1085046468515] Thread: main, Object: com.ibm.mq.MQManagedConnectionJ11@2ffc70 ==> MQManagedConnection constructor() entry
03:17:48 [1085046468546] Thread: main, Object: com.ibm.mq.MQSESSIONClient@38df17 ==> setThreadAccess() entry
03:17:48 [1085046468546] Thread: main, Object: com.ibm.mq.MQSESSIONClient@38df17 Default multi-thread access will be used.
03:17:48 [1085046468546] Thread: main, Object: com.ibm.mq.MQSESSIONClient@38df17 <== setThreadAccess() exit
03:17:48 [1085046468546] Thread: main ==> MQSESSIONClient::MQCONN() entry
03:17:48 [1085046468546] Thread: main Class: MQSESSIONClient javabase/com/ibm/mq/MQSESSIONClient.java, java, j5304, j5304-G030516 03/05/13 15:11:26 @(#) 1.57.1.2
03:17:48 [1085046468546] Thread: main Class: MQSESSIONClient Queue Manager = 'SBINGWQM'
03:17:48 [1085046468546] Thread: main ==> MQSESSION::setStringToLength() entry
03:17:48 [1085046468546] Thread: main <== MQSESSION::setStringToLength() exit
03:17:48 [1085046468593] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 ==> Constructor() entry
03:17:48 [1085046468593] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 javabase/com/ibm/mq/MQInternalCommunications.java, java, j5304, j5304-L030506.2 03/05/02 15:09:21 @(#) 1.76.1.1
03:17:48 [1085046468593] Thread: main ==> MQSESSION::setStringToLength() entry
03:17:48 [1085046468593] Thread: main <== MQSESSION::setStringToLength() exit
03:17:48 [1085046468593] Thread: main ==> MQSESSION::setStringToLength() entry
03:17:48 [1085046468593] Thread: main <== MQSESSION::setStringToLength() exit
03:17:48 [1085046468609] Thread: main ==> FWHelper::decodeLocalAddress() entry
03:17:48 [1085046468609] Thread: main <== FWHelper::decodeLocalAddress() exit
03:17:48 [1085046468609] Thread: main ==> FWHelper::decodePort() entry
03:17:48 [1085046468609] Thread: main Class: FWHelper Port type: START_PORT
03:17:48 [1085046468609] Thread: main <== FWHelper::decodePort() exit
03:17:48 [1085046468609] Thread: main ==> FWHelper::decodePort() entry
03:17:48 [1085046468609] Thread: main Class: FWHelper Port type: END_PORT
03:17:48 [1085046468609] Thread: main <== FWHelper::decodePort() exit
03:17:48 [1085046468609] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 Firewall properties:
03:17:48 [1085046468609] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 fw_localip: null
03:17:48 [1085046468609] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 fw_pstart: 0
03:17:48 [1085046468609] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 fw_pend: 0
03:17:48 [1085046468609] Thread: main ==> MQSESSION::setStringToLength() entry
03:17:48 [1085046468609] Thread: main <== MQSESSION::setStringToLength() exit
03:17:48 [1085046468609] Thread: main ==> MQSESSION::setStringToLength() entry
03:17:48 [1085046468609] Thread: main <== MQSESSION::setStringToLength() exit
03:17:48 [1085046468609] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 userID = ' '
03:17:48 [1085046468609] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 longUserID = ' '
03:17:48 [1085046468609] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 Queue Manager = 'SBINGWQM '
03:17:48 [1085046468609] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 Connection handle = 5
03:17:48 [1085046468609] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 CCSID = 819
03:17:48 [1085046468609] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 ==> createSocketConnection() entry
03:17:48 [1085046468609] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 Connecting to 10.27.5.100 on port 1417
03:17:48 [1085046468968] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 <== createSocketConnection() exit
03:17:48 [1085046468968] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 ==> establishChannel() entry
03:17:48 [1085046468968] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 ==> buildInitialData() entry
03:17:48 [1085046468968] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 FAP level 255
03:17:48 [1085046468968] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 Sending IDFlags2 with distLists flag set...
03:17:48 [1085046468968] Thread: main ==> MQSESSION::setStringToLength() entry
03:17:48 [1085046468968] Thread: main <== MQSESSION::setStringToLength() exit
03:17:48 [1085046468968] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 <== buildInitialData() exit
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 sending TST_INITIAL_DATA
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 ==> send() entry
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 TSH type = 1
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 Control flags = 1
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 Message data follows:
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 Data trace, 102 bytes of data follow:
0000: 4944 2020 ff25 0000 0000 0032 0000 7ffe ID .%.....2....
0010: 0640 0000 3b9a c9ff 5359 5354 454d 2e44 .@..;...SYSTEM.D
0020: 4546 2e53 5652 434f 4e4e 2020 0100 0333 EF.SVRCONN ...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 ......
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 Sending data, 102 bytes of msg data remain
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 Last segment of message
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 ==> writeTSH() entry
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 <== writeTSH() exit
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 ==> invokeSendExit() entry
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 Data passed to exit follows:
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 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 5359 5354 454d 2e44 4546 2e53 ;...SYSTEM.DEF.S
0040: 5652 434f 4e4e 2020 0100 0333 2020 2020 VRCONN ...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 ..
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 No user send exit was invoked
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 <== invokeSendExit() exit
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 <== send() exit
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 receiving server reply
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 ==> receive() entry
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 ==> receiveBytes() entry
03:17:48 [1085046468984] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 Waiting for data on input stream.
03:17:49 [1085046469265] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 EOFException caught in receiveBytes
03:17:49 [1085046469265] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 java.io.EOFException
03:17:49 [1085046469328] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data ==> MQException constructor(cc, rc, source, msgid)() entry
03:17:49 [1085046469328] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data javabase/com/ibm/mq/MQException.java, java, j5304, j5304-L030506.2 03/05/02 15:09:05 @(#) 1.48.1.1
03:17:49 [1085046469328] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data cc = 2
03:17:49 [1085046469328] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data rc = 2009
03:17:49 [1085046469328] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data source = null
03:17:49 [1085046469328] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data msgId = 48
03:17:49 [1085046469328] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data Explanation is 'MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data'
03:17:49 [1085046469328] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data <== MQException constructor() exit
03:17:49 [1085046469343] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data ==> MQInternalException constructor (cc, rc, msgId)() entry
03:17:49 [1085046469343] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data @(#) javabase/com/ibm/mqservices/MQInternalException.java, java, j5304, j5304-L030506.2 03/05/02 15:14:20
03:17:49 [1085046469343] Thread: main, Object: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data <== MQInternalException constructor() exit
03:17:49 [1085046469343] Thread: main, Object: com.ibm.mq.MQInternalCommunications@385c1 <== receiveBytes() exit
03:17:49 [1085046469343] Thread: main Class: MQSESSIONClient MQException occurred whilst connecting
03:17:49 [1085046469343] Thread: main <== MQSESSIONClient::MQCONN() exit
03:17:49 [1085046469343] Thread: main, Object: com.ibm.mq.MQManagedConnectionJ11@2ffc70 <== MQManagedConnection constructor (via exception)() exit
03:17:49 [1085046469343] Thread: main, Object: com.ibm.mq.MQManagedConnectionJ11@2ffc70 Flowing exception message from pCause
03:17:49 [1085046469343] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data ==> MQException constructor(cc, rc, source, MQException)() entry
03:17:49 [1085046469343] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data javabase/com/ibm/mq/MQException.java, java, j5304, j5304-L030506.2 03/05/02 15:09:05 @(#) 1.48.1.1
03:17:49 [1085046469343] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data cc = 2
03:17:49 [1085046469343] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data rc = 2009
03:17:49 [1085046469343] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data source = com.ibm.mq.MQManagedConnectionJ11@2ffc70
03:17:49 [1085046469343] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data msgId = 48
03:17:49 [1085046469343] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data insrt1 = 'null'
03:17:49 [1085046469343] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data insrt2 = 'null'
03:17:49 [1085046469343] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data Explanation is 'MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data'
03:17:49 [1085046469343] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data <== MQException constructor(cc, rc, source, MQException)() exit
03:17:49 [1085046469343] Thread: main ==> ReasonCodeInfo::getResourceExceptionClass() entry
03:17:49 [1085046469343] Thread: main <== ReasonCodeInfo::getResourceExceptionClass() exit
03:17:49 [1085046469343] Thread: main, Object: com.ibm.mq.MQClientManagedConnectionFactoryJ11@360be0 <== _createManagedConnection (via exception)() exit
03:17:49 [1085046469359] Thread: main, Object: com.ibm.mq.MQSimpleConnectionManager@2d3ba4 <== allocateConnection() exit
03:17:49 [1085046469359] Thread: main <== MQQueueManager::obtainBaseMQQueueManager (Java 1.1 version)() exit
03:17:49 [1085046469359] Thread: main, Object: com.ibm.mq.MQQueueManager@fabe9 <== construct() exit
03:17:49 [1085046469359] Thread: main, Object: com.ibm.mq.MQQueueManager@fabe9 <== MQQueueManager constructor() exit
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
The code I have written is as follows:
import com.ibm.mq.*; // Include the MQ package
import java.io.*;
import java.lang.*;
public class MQPutDemo{
private MQQueueManager qMgr;
private String qmgrName = "SBINGWQM";
private String queueName = "TEST";
public static void main (String args[]) {
MQPutDemo mySample = new MQPutDemo();
mySample.start();
}
public void start() {
try {
try {
FileOutputStream traceFile = new FileOutputStream("myapp.trc");
MQEnvironment.hostname = "10.27.5.100";
MQEnvironment.port = 1417;
MQEnvironment.channel="
MQEnvironment.enableTracing(4,traceFile);
}
catch (IOException ex) {
// couldn't open the file,
// trace to System.err instead
MQEnvironment.enableTracing(4);
}
System.out.println("mqdb2log started...");
qMgr = new MQQueueManager(qmgrName);
System.out.println("After connecting to the queue manager");
int openOptions = MQC.MQOO_OUTPUT;
MQQueue myQueue = qMgr.accessQueue(queueName, openOptions,
null, null, null);
System.out.println("After opening the queue>>>");
/******************************************************/
/* Create a DB2 XA DataSource that we will use as the */
/* place to perform database updates. */
/******************************************************/
/****************************************************/
/* Set up a new message with a format of string and */
/* write the user input to it. */
/****************************************************/
MQMessage myMessage = new MQMessage();
myMessage.writeString("Hai Babul");
myMessage.format = MQC.MQFMT_STRING;
MQPutMessageOptions pmo = new MQPutMessageOptions();
pmo.options = pmo.options | MQC.MQPMO_SYNCPOINT;
myQueue.put(myMessage, pmo);
System.out.println("After putting the message into the queue>>>");
qMgr.commit();
myQueue.close();
qMgr.disconnect();
}
catch (MQException ex) {
System.out.println("An MQ error occurred: " + ex.completionCode + " " +
ex.reasonCode);
ex.printStackTrace();
}
catch (java.io.IOException ex) {
System.out.println("Java.io exception: " + ex);
}
System.out.println("mqputDemo finished...");
}
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Thanks in advance for resolving the problem.
with regards
naylak |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu May 20, 2004 2:52 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Two simple steps to resolve your own problems yourself.
- Check the manuals for the Reason Code you are getting
Code: |
2009 X'07D9' MQRC_CONNECTION_BROKEN
Connection to the queue manager has been lost. This can occur because the queue manager has ended. If the call is an MQGET call with the MQGMO_WAIT option, the wait has been canceled. All connection and object handles are now invalid.
For WebSphere MQ client applications, it is possible that the call did complete successfully, even though this reason code is returned with a CompCode of MQCC_FAILED.
Corrective action: Applications can attempt to reconnect to the queue manager by issuing the MQCONN or MQCONNX call. It may be necessary to poll until a successful response is received.
On z/OS for CICS applications, it is not necessary to issue the MQCONN or MQCONNX call, because CICS applications are connected automatically.
Any uncommitted changes in a unit of work should be backed out. A unit of work that is coordinated by the queue manager is backed out automatically.
|
Use the search function on this site to see if other people have had and solved your problem - searching for "Java" and "2009" for example
_________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
naylak |
Posted: Thu May 20, 2004 4:17 am Post subject: |
|
|
Apprentice
Joined: 08 Feb 2003 Posts: 47
|
Hi Jeff!
The steps mentioned by you were already performed. The interesting thing is that it is able to connect when the server is on windows. Hence the error was captured using trace and posted.
Thanks and regards
naylak |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu May 20, 2004 4:37 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
naylak wrote: |
The steps mentioned by you were already performed. |
So, based on reading at least some of the many many results of searching for 2009 in the Java/JMS forum here, you - double-checked that you were specifying your channel name correctly, and that it is a SVRCONN channel
- you checked your server to see if there were additional error messages in it's logs
- you checked that you were using a recent CSD level of MQSeries and the java APIs
- you confirmed that you had any needed SSL settings corrrect
- checked that there were otherwise no network issues between your client and the server
And several other things?
The code you posted doesn't appear to set the channel property, but your traces show that you are trying to connect to SYSTEM.DEF.SVRCONN. Did you change your code before you posted it?
Also, your code has some comments about a DB2 XA Datasource. You do know that you can't do coordinated transactions using a plain MQSeries Client, right? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
naylak |
Posted: Thu May 20, 2004 8:37 pm Post subject: |
|
|
Apprentice
Joined: 08 Feb 2003 Posts: 47
|
Hi Jeff!
As you have guessed, before executing the code I have changed it and gave the channel name as SYSTEM.DEF.SVRCONN. Some comments regarding DB2 are appearing as I have taken some existing code and removed unnecessary things. In fact there are no DB transactions. Once again I want to stress on the fact that I am successfully able to connect when the MQ server is on windows. Also I am able to connect when MQ server is on Sun Solaris. I am facing the problem when MQ Server is on AIX5.1 with MQServer5.3 and CSD patch 6 applied on it.
Thanks and regards
naylak |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri May 21, 2004 10:12 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Check your port setting on the connection. It must match the listener port on the remote queue manager.
I had the same kind of error when I thought I had the listener running on port 1417 when I had started it on port 1517 instead. (Fat finger error.)
Hope it helps.
F.J. |
|
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
|
|
|
|