IBM Support

WebSphere MQ と WebSphere Application Server 7.0.0.5 を使用している場合
MQJE001: Completion Code '2', Reason '2495' が発生

Troubleshooting


Problem

WebSphere Application Server 7.0.0.5 を使用している場合、以下のエラーが SystemErr.log に出力されることがあります。 ... SystemErr R com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2495'. ... SystemErr R MQJE001: Completion Code '2', Reason '2495'. MQ 戻りコード 2495 は以下の短縮名を示します。 $ mqrc 2495 2495 0x000009bf MQRC_MODULE_NOT_FOUND SystemOut.log には以下が出力されます。 ... FfdcProvider I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /usr/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/ffdc/server1_6880688_09.10.19_04.52.57.1421628786892879991737.txt com.ibm.ejs.jms.JMSRegistration.installBundle 571 [10/19/09 4:52:57:283 EDT] 00000000 JMSRegistrati E WMSG1603E: An internal error occurred. It was not possible to register the WebSphere MQ JMS client with the application server due to exception org.osgi.framework.BundleException: An error occurred trying to read the bundle at org.eclipse.osgi.internal.baseadaptor.BundleInstall.begin(BundleInstall.java:94) at org.eclipse.osgi.framework.internal.core.Framework.installWorkerPrivileged(Framework.java:823) FFDC ファイルに主要な情報が含まれます。 ... FFDC Exception:org.osgi.framework.BundleException SourceId:com.ibm.ejs.jms.JMSRegistration.installBundle ProbeId:571 Reporter:com.ibm.ejs.jms.JMSRegistrationHelper@2e822e82 org.osgi.framework.BundleException: An error occurred trying to read the bundle at org.eclipse.osgi.internal.baseadaptor.BundleInstall.begin(BundleInstall.java:94) ... Caused by: java.io.IOException: The directory "/usr/IBM/WebSphere/AppServer/profiles/AppSrv01/configuration/org.eclipse.osgi/bundles/131/1" could not be created at org.eclipse.osgi.internal.baseadaptor.BundleInstall.begin(BundleInstall.java:68) ... 41 more

Cause

この事象は WebSphere Application Server に最新の fix pack を適用した後に発生します。
maintenance level 7.0.0.0 からこれ以降のレベルにプロファイルを移行する際、WebSphere MQ リソース・アダプターの構成を調整するため、手順の最後に以下のスクリプトが実行されます。
/usr/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/osgiCfgInit.sh

詳細は以下のページをご参照ください。
http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.soafep.multiplatform.doc/info/ae/ae/tmm_mig.html
WebSphere Application Server Version 7.0
Adjusting the WebSphere MQ resource adapter configuration when migrating profiles between maintenance level 7.0.0.0 and later levels

このスクリプトは構成を初期化し、以下のサブディレクトリである org.eclipse.osgi の所有者/所有グループをスクリプトの実行ユーザーである "root" に変更します。
/usr/IBM/WebSphere/AppServer/profiles/AppSrv01/configuration

$ ls -l                                                                  
drwxr-xr-x    3 mqm      mqm       4096 Oct 20 00:18  org.eclipse.core.runtime
drwxr-xr-x    3 root     system     256 Oct 20 00:18  org.eclipse.osgi
drwxr-xr-x    3 mqm      mqm        256 Oct 20 00:18  org.eclipse.update


その他:
このシナリオにおいて、ユーザー "mqm" は最初のシステムタスクの実行に使用され、その結果ファイルの所有者が "mqm:mqm"となります。次に、スクリプトはユーザー "root" から実行され、更新されたファイルの所有者は "root:system" に変更されます。この後、アプリケーション・サーバーがユーザー "mqm" で開始すると、ファイル所有者の混在が問題を引き起こします。

全てのシステム管理タスクとアプリケーション・サーバーがユーザー "root" で開始すれば、ファイル所有者の矛盾は起こりません。

Resolving The Problem

以下ディレクトリのサブディレクトリ org.eclipse.osgi で、ファイルの所有者/所有グループを WebSphere Application Server 環境でのプロセス実行プロパティに指定しているユーザーに変更してください。
/usr/IBM/WebSphere/AppServer/profiles/AppSrv01/configuration

この例では所有者/所有グループは "mqm" です。

$ ls -l                                                                  
drwxr-xr-x    3 mqm      mqm       4096 Oct 20 00:18  org.eclipse.core.runtime
drwxr-xr-x    3 mqm      mqm        256 Oct 20 00:18  org.eclipse.osgi
drwxr-xr-x    3 mqm      mqm        256 Oct 20 00:18  org.eclipse.update


原文: Flash (Alert) : 1410038
MQJE001: Completion Code '2', Reason '2495' when using WebSphere Application Server 7.0.0.5 with WebSphere MQ
※ 最新の情報は原文をご参照いただくことをお勧めいたします。

【お問合せ先】
技術的な内容に関しては、サービス契約のもと IBM テクニカル・サポートにお問い合わせください。
IBM テクニカル・サポート お問合せ先

[{"Product":{"code":"SSFKSJ","label":"WebSphere MQ"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Configuration","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.5;7.1;7.0.1;7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21648118