2012-03-01 9 views
-2

WebSphere 7.0およびJava 6で以下のエラーが発生する理由は何ですか?WebSphere 7:WebServiceException:エラー:セッションの維持は有効ですが、セッション・プロパティー(Cookies、Over-written URL)は返されません

Error: Maintain Session is enabled but none of the session properties 
(Cookies, Over-written URL) are returned for web service program when 
SESSION_MAINTAIN_PROPERTY set to true on client side. 
+0

今後、質問を投稿する前に、あなたのエラーをGoogleに_attempt_してください。 –

答えて

0

hereからの情報によると:

エラーの説明

呼び出しを行うサービスを 使用している場合 については、WebSphere Application Serverおよび機能パックを使用して次の例外が発生したWebサービスときWebサービスプロキシを設定した後にサーバに送信します。

最初のサービスコールでは常に新しいHTTPセッションを作成する必要があります。 2番目の呼び出しは最初の呼び出しからセッションを使用する必要があります。

問題は、2回目の呼び出しでサーバがもうセッションのクッキーを返さないことです。 クライアントプロキシは、返し

[03.09.08 13:49:31:892 CEST] 0000000a ExceptionFact 1 
org.apache.axis2.jaxws.ExceptionFactory 
createWebServiceException Create 
Exception: 

javax.xml.ws.WebServiceException: Error: Maintain Session is enabled but none of the session properties (Cookies, Over-written URL) are returned. 
at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:178) 
at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:79) 
at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:125) 
at org.apache.axis2.jaxws.BindingProvider.setupSessionContext(BindingProvider.java:172) 

問題の概要

**************************************************************** 
* USERS AFFECTED: All users of WebSphere Application Server * 
*     Feature Pack for JAX-WS Web Services that * 
*     use cookies.        * 
**************************************************************** 
* PROBLEM DESCRIPTION: JAX-WS does not allow session cookie * 
*      sharing between client     * 
*      BindingProvider instances for   * 
*      synchronous proxy invocations   * 
**************************************************************** 
* RECOMMENDATION:            * 
**************************************************************** 
JAX-WS does not allow session sharing between the client 
BindingProvider instances for synchronous proxy invocations. 
JAX-RPC did allow session cookie sharing between clients. 

問題の結論

JAX-WS同期プロキシコードを修正しましたし、今 は、クライアントBindingProvider 間のセッション共有をサポートしていますインスタンス。

JAX-WSは、クライアントアプリケーションが 1 BindingProviderの要求コンテキストからセッションクッキーをコピーして、効果的に がセッションを共有するために、別の BindingProviderインスタンスの要求コンテキストの上に置くことができます。

このAPARの修正は、現在 fixpack 6.1.0.25および7.0.0.1に含まれています。お届け情報については アップデートページをご覧ください: http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980

関連する問題