顯示具有 JAVA(3RD) 標籤的文章。 顯示所有文章
顯示具有 JAVA(3RD) 標籤的文章。 顯示所有文章

2020年12月13日 星期日

MQ connection is terminating with error code 2009

某次系統升級IBM MQ Server從7升到9
新的Channel採用加密連線,一連線就出2009的錯誤
如果採不加密連線可以正常
後來發現是AP Client端的MQ Driver的jar檔沒有換成新版的
都不是以下六種原因@@


https://www.ibm.com/support/pages/mq-connection-terminating-error-code-2009

Problem

MQ connection is terminating with error code 2009.

Cause

The connection may be broken for a number of different reasons. The 2009 return code indicates that something prevented a successful connection to the Queue Manager. The most common causes for this are the following are:

1. A firewall that is terminating the connection
2. An IOException that causes the socket to be closed
3. An explicit action to cause the socket to be closed by one end
4. The queue manager is offline
5. The maximum number of channels allowed by the queue manager are open
6. A configuration problem in the Queue Connection Factory (QCF)

2012年7月14日 星期六

java.lang.IncompatibleClassChangeError: net/sf/cglib/core/DebuggingClassWriter

Initialization of bean failed; nested exception is java.lang.IncompatibleClassChangeError: net/sf/cglib/core/DebuggingClassWriter

原本用cglib-3.0.jar
換成cglib-2.2.2.jar就OK了

2011年10月14日 星期五

log4j進階應用

過濾不同的Level:org.apache.log4j.varia.levelrangefilter

過濾字串(比如過濾哪種Exception才輸出):org.apache.log4j.varia.StringMatchFilter
發送email通知:org.apache.log4j.net.SMTPAppender

ref:
http://wiki.apache.org/logging-log4j/Log4jXmlFormat