MQ: An MQException occurred: Completion Code 2, Reason 2009

Error Log:

 

MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009
MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009
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
    at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:242)
    at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:276)
    at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:296)
    at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:80)
   .......................
    at com.ibm.rfidic.test.utils.mq.RFIDICMQDataSource.clearQueue(RFIDICMQDataSource.java:209)
    at com.ibm.rfidic.test.mdm.fvt.testcases.FVT_PEDIGREE_EVENTS_SRV_0055.testFVT_PEDIGREE_EVENTS_SRV_0055(FVT_PEDIGREE_EVENTS_SRV_0055.java:81)
    ........................
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: 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
    at com.ibm.mq.MQInternalCommunications.establishChannel(MQInternalCommunications.java:1544)
    at com.ibm.mq.MQInternalCommunications.<init>(MQInternalCommunications.java:523)
    at com.ibm.mq.MQSESSIONClient.MQCONN(MQSESSIONClient.java:1316)
    at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:218)
    ... 36 more
MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009
MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009
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
    at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:242)
    ..............
    at com.ibm.rfidic.test.utils.mq.RFIDICMQDataSource.connect(RFIDICMQDataSource.java:173)
    at com.ibm.rfidic.test.utils.mq.RFIDICMQDataSource.write(RFIDICMQDataSource.java:103)
    at com.ibm.rfidic.test.utils.mq.RFIDICMQDataSource.write(RFIDICMQDataSource.java:149)
    at com.ibm.rfidic.test.mdm.fvt.testcases.FVT_PEDIGREE_EVENTS_SRV_0055.testFVT_PEDIGREE_EVENTS_SRV_0055(FVT_PEDIGREE_EVENTS_SRV_0055.java:82)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:615)
    at junit.framework.TestCase.runTest(TestCase.java:154)
   .......................
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: 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
    at com.ibm.mq.MQInternalCommunications.establishChannel(MQInternalCommunications.java:1544)
    at com.ibm.mq.MQInternalCommunications.<init>(MQInternalCommunications.java:523)
    at com.ibm.mq.MQSESSIONClient.MQCONN(MQSESSIONClient.java:1316)
    at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:218)
    ... 36 more

restoreMasterDatafor_partnerPrivate:
     [echo] basedir = /home/tsadmin/hxlin/vobs/RFIDICTest/fvt/cdlsrc/com.ibm.rfidic.test.config9.1
     [echo] HOME=/home/tsadmin
     [echo] Using Oracle

 

 

It seems that the problem can be solved by practice 2.  What a good news!

 

 

Official Detail Document:

 

http://www-01.ibm.com/support/docview.wss?uid=swg21226703
http://eai.ittoolbox.com/groups/technical-functional/mqseries-l/mqje001-an-mqexception-occurred-completion-code-2-reason-2009-689165

 

 

 

Practices:

 

2. http://hi.baidu.com/faq0/blog/item/c707cc23006e5c569922ed26.html

linked exception: 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


/var/mqm/qmgrs/TS!QUEUE!MANAGER/qm.ini
qm.ini

   Log:

   LogPrimaryFiles=3

   LogSecondaryFiles=2

   LogFilePages=1024

   LogType=CIRCULAR

   LogBufferPages=17

   LogPath=/var/mqm/log/WNMS3_QM/

   LogWriteIntegrity=TripleWrite

Service:

   Name=AuthorizationService

   EntryPoints=9

ServiceComponent:

   Service=AuthorizationService

   Name=MQSeries.UNIX.auth.service

   Module=/opt/mqm/lib/amqzfu

   ComponentDataSize=0

 

#add below parameters


CHANNELS:

   MaxChannels = 600

   MaxActiveChannels = 600

TuningParameters:

   IPCCECSetSize=4000000

   IPCCExtensionSize=128000

TCP:

   KeepAlive=Yes

   ListenerBacklog=200


It's better to restart MQ before you expect.

 

 

 

1.  http://www.itpub.net/695157.html

 MQ

unix  qm.ini
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp
System Admin/Configuring WebSphere MQ/Configuring WebSphere MQ /Changing queue manager configuration information /Channels


CHANNELS  qm.ini
MaxChannels=100|number
 100
MaxActiveChannels=MaxChannels_value
 MaxChannels



1. stop QueueManager
2. tune or add the channel paramaters within channel section of qm.ini
  (   MaxChannels MaxActiveChannels 500)
3. start QueueManager,
4. ok,

qm.ini :
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp
System Admin/Configuring WebSphere MQ/Configuring WebSphere MQ /Changing configuration information on UNIX systems/ Queue manager configuration files, qm.ini )


Channels:
   MaxChannels=500
   MaxActiveChannels=500
   MQIBindType=STANDARD

 

 

3.

 

Mismatching CSD on various platforms should not cause any problems.

Since you got a 2009 error, that means you've gotten farther than
if you got 2058 and 2059, or 2035 authorization problems. You have
successfully connected and then lost the connection. It is false
to say that you did not connect even if the error code occurred
during the MQConn.

You should be looking in the logs on both sides. Host and server.
This may not or may not yield any insite.

2009 is not uncommon for client connections. Innevitably a network
goes down, a line, modem, router etc is flaky or broken, if a
connection to a queue manager has been made then the line drops
"for a client you would see 2009". If the line is totally gone, you
would not see 2009 on a subsequent attempt. Your program should
be changed to try again when a 2009 occurs, in a loop perhaps 5
times.

If some host process resets or closes and opens the client
connection all connected clients would get a 2009. There are many
cases of this issue going back over 5 years. One Guy was getting it after 98 connections.

Change your code and be happy.

当您遇到 "svn ra_serf: An error occurred during SSL communication" 这样的错误信息时,通常是在使用Subversion (SVN)通过Serf库进行版本控制操作过程中,SSL连接遇到了问题。这可能是由于以下几个原因: 1. SSL证书不信任:Subversion需要一个有效的SSL/TLS证书来进行安全通信。如果服务器的证书不是受信任的权威机构签发的,客户端可能会拒绝连接。 2. 客户端证书设置不当:如果您需要提供客户端证书(如企业内部环境),确保证书路径配置正确,并且权限设置允许访问。 3. 网络问题:网络连接不稳定、防火墙规则阻止或代理设置未配置可能导致连接失败。 4. SVN版本兼容性:如果不是最新版本的Subversion和Serf,可能存在已知的安全漏洞或不支持某些SSL特性。 5. Serf自身的问题:Serf是一个用于轻量级HTTP/HTTPS的库,如果它存在bug或与特定版本的Subversion有冲突,也可能引发此错误。 解决这个问题的步骤包括: 1. 检查SSL证书是否有效并添加到您的信任存储中。 2. 调整客户端证书设置和密码,确保它们可以正常工作。 3. 确保网络连接稳定,检查防火墙和代理设置。 4. 更新Subversion和Serf到最新版本,修复潜在的兼容性问题。 5. 如果问题依然存在,尝试禁用SSL验证(但仅限于测试环境,生产环境中不建议这样做): ```sh svn checkout --no-auth-cache --trust-server-cert https://your-repo-url ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值