WebSphere Extended Deployment, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows, z/OS

クライアント呼び出しの問題

launchclient

エラー:
launchclient c:¥was¥base51¥installedApps¥Cell¥WPFKeyBasedPartitionSample.ear 
-CCproviderURL=corbaloc::localhost:9813

IBM WebSphere Application Server, Release 5.1
J2EE Application Client Tool
Copyright IBM Corp., 1997-2003
WSCL0012I: Processing command line arguments.
WSCL0013I: Initializing the J2EE Application Client Environment.
WSCL0035I: Initialization of the J2EE Application Client Environment
has completed.
WSCL0014I: Invoking the Application Client class com.ibm.websphere.wpf.client.
WPFKeyBasedPartitionClient
WSCL0100E: Exception received: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
        (NativeMethodAccessorImpl.java:85)
        at sun.reflect.NativeMethodAccessorImpl.invoke
        (NativeMethodAccessorImpl.java:58)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:60)
        at java.lang.reflect.Method.invoke(Method.java:391)
        at com.ibm.websphere.client.applicationclient.launchClient.
createContainerAndLaunchApp(launchClient.java:638)
        at com.ibm.websphere.client.applicationclient.launchClient.
main(launchClient.java:425)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
        (NativeMethodAccessorImpl.java:85)
        at sun.reflect.NativeMethodAccessorImpl.invoke
        (NativeMethodAccessorImpl.java:58)
        at sun.reflect.DelegatingMethodAccessorImpl.
invoke(DelegatingMethodAccessorImpl.java:60)
        at java.lang.reflect.Method.invoke(Method.java:391)
        at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:189)
Caused by: com.ibm.websphere.naming.CannotInstantiateObjectException:
Exception occurred while the JNDI NamingManager wa
s processing a javax.naming.Reference object.
[Root exception is javax.naming.CommunicationException: A communication
failure occurred while attempting to obtain an initial context with the
provider URL: "corbaloc::localhost:9813".  Make sure that any bootstrap address
information in the URL is correct and that the target name server is running.
A bootstrap address with no port specification defaults to port 2809.
Possible causes other than an incorrect bootstrap address or unavailable name server 
include the network environment and workstation network configuration.
[Root exception is org.omg.CORBA.COMM_FAILURE: WRITE_ERROR_SEND_1  
vmcid: 0x49421000  minor code: 50  completed: No]]
        at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt
       (Helpers.java:931)
        at com.ibm.ws.naming.urlbase.UrlContextHelper.processBoundObjectForLookup
(UrlContextHelper.java:152)
        at com.ibm.ws.naming.java.javaURLContextRoot.processBoundObjectForLookup
(javaURLContextRoot.java:398)
        at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup
        (UrlContextImpl.java:1278)
        at com.ibm.ws.naming.java.javaURLContextRoot.
        lookup(javaURLContextRoot.java:196)
        at com.ibm.ws.naming.java.javaURLContextRoot.
        lookup(javaURLContextRoot.java:137)
        at javax.naming.InitialContext.lookup(InitialContext.java:361)
        at com.ibm.websphere.wpf.client.WPFKeyBasedPartitionClient.main
(WPFKeyBasedPartitionClient.java:110)
        ... 13 more

考えられる原因

説明

すべての区画が活動状態になるまでには、 数分かかるのが一般的です。 開発段階では、活動状態にする区画の数をかなり少なくし、 サーバーから「Open for e-busines」と通知されたらすぐに作業に取りかかれるようにしておく というシナリオがよく見られます。

しかし、区画数が増えるにつれて、クラスター全体のメンバー数も増え、 実稼働環境関連の作業も始まります。区画数が多い場合にはすべての区画が 活動状態になるまでに数分かかることもある、という点に注意することが大切です。 重要なシナリオでは、区画をできる限り多く用意し、さらにある区画のトレース・ラインを 出力するという場合があります。この結果、パフォーマンスが大きな影響を受けることがあります。 この場合のデフォルト・ケースでは、WPF 区画の状況に関するメッセージは出力しません。

ユーザーは、パフォーマンスに影響を及ぼすことなく、トレース仕様である WPFSTATUS を使用可能に設定できます。 これを使用可能にすると、活動状態になるとき、 またはその他の重要なライフ・サイクル・イベントが発生したときに、 区画ごとにメッセージが出力されます。 実稼働環境の準備を進めている場合には、区画化機能の特定のインプリメンテーションで このトレースを有効にし、起動時間の記録に通常どのくらいかかるのかを予測できます。 このトレースは、実動シナリオではなく実動前の文書生成に使用するか、あるいは 区画がいつ活動状態になるか、またはいつ活動状態にすればよいかが分からないというような 実動時の問題を解決するために使用することをお勧めします。 例えば、クラスターの名前が「cluster」の場合、すべてのノードに対して トレース仕様を設定するには、次のコマンドを使用します。
wpfadmin setTraceSpec perm WPFSTATUS=all=enabled -c cluster
次のような出力が得られます。
wsadmin -lang jython -f wpfadmin.pty setTraceSpec perm WPFSTATUS=all=enabled
--c cluster
WASX7209I: Connected to process "Deployment Manager" on node CellManager
using SOAP connector;
The type of process is: DeploymentManager
WPFC0065I: Cluster set to cluster
WPFC0059I: Setting trace to WPFSTATUS=all=enabled
for Server cluster_member_1
(cells/Cell/nodes/NodeA/servers/cluster_member_1:server.xml#Server_1)
WPFC0059I: Setting trace to WPFSTATUS=all=enabled for Server cluster_member_2
(cells/Cell/nodes/NodeA/servers/cluster_member_2:server.xml#Server_1)
WPFC0059I: Setting trace to WPFSTATUS=all=enabled for Server cluster_member_3
(cells/Cell/nodes/NodeA/servers/cluster_member_3:server.xml#Server_1)
クラスター・メンバーでトレースが使用可能になると、以後、区画ごとにログ・ディレクトリーに トレース・エントリーが記録されます (他の情報も記録されます。前掲のテキストでは情報をフィルタリングしています)。トレースのスナップショットの例を次に示します。
[10/14/04 11:53:53:287 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing
cluster for partition PK000002 is successfully created and open for e-Business at
this server.
[10/14/04 11:53:53:647 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing
cluster for partition PK000001 is successfully created and open for e-Business at
this server.
[10/14/04 11:53:54:639 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing
cluster for partition PK000004 is successfully created and open for e-Business at
this server.
[10/14/04 11:53:55:600 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing
cluster for partition PK000008 is successfully created and open for e-Business at
this server.
[10/14/04 11:53:56:041 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing
cluster for partition PK000003 is successfully created and open for e-Business at
this server.
[10/14/04 11:53:56:091 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing
cluster for partition PK000005 is successfully created and open for e-Business at
this server.
[10/14/04 11:53:56:241 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing
cluster for partition PK000010 is successfully created and open for e-Business at
this server.
[10/14/04 11:53:56:411 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing
cluster for partition PK000006 is successfully created and open for e-Business at
this server.
[10/14/04 11:53:56:692 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing
cluster for partition PK000007 is successfully created and open for e-Business at
this server.
[10/14/04 11:53:56:732 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing
cluster for partition PK000009 is successfully created and open for e-Business at
this server.
この例では、最後の区画の開始時刻が 11:53:56 になっています。一方、サーバー側のログ・エントリーは次のようになっています。
10/14/04 11:53:47:649 CDT] 719092f5 WsServer      A WSVR0001I:
Server cluster_member_2 open for e-business
この場合、アプリケーション・サーバーが開始したのが 11:53:47 で、最後の区画が活動状態になり、クラスターに登録されて要求を受け取れるようになったのが 11:53:56 です。つまり、10 個の区画で約 9 秒を要しています。これは一般規則ではありません。開始ポリシーが大きく影響するほか、サーバー開始の順序や タイミングに応じて開始手順が異なるからです。重要なのは、クライアント側から区画がアクセス可能になるまで、クライアント要求は拒否されるという点です。



Related reference
問題解決

Reference topic    

Terms of Use | Feedback Last updated: Mar 20, 2006 12:35:11 PM EST
http://publib.boulder.ibm.com/infocenter/wxdinfo/v6r0/index.jsp?topic=?topic=/com.ibm.websphere.xd.doc/info/WPF51/rwpflaunchclient.html

© Copyright IBM 2005, 2006. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)