[Seasar-user:17432] Re: [S2Container][SAStruts] セッション格納の値について

Shinzo SAITO [E-MAIL ADDRESS DELETED]
2009年 5月 13日 (水) 16:37:30 JST


齊藤新三です。

> これは [Seasar-user:17333] と同件で,Seasar2.4.35
> 固有の問題です.
> https://www.seasar.org/issues/browse/CONTAINER-361
>
> これより前のバージョンおよび次にリリースされる
> バージョンでは発生しません.
> 必要であれば以下の SNAPSHOT を使用してください.

SNAPSHOTで確認しました。これで、今まで通りの書き方ができます。
ありがとうございました。


2009/05/13 16:00 Koichi Kobayashi <[E-MAIL ADDRESS DELETED]>:
> 小林 (koichik) です.
>
> Date:    Wed, 13 May 2009 15:30:38 +0900
> From:    Shinzo SAITO <[E-MAIL ADDRESS DELETED]>
> To:      [E-MAIL ADDRESS DELETED]
> Subject: [Seasar-user:17428] Re: [S2Container][SAStruts] セッション格納の値について
>
>> これと同じようなコードをSAStrutsで組むと、
>>
>> @Resource
>> public HttpSession httpSession;
>>
>> @Resource
>> public HttpServletRequest httpServletRequest;
>>
>> UserValue userValue = (UserValue) httpSession.getAttribute("UserValue");
>> httpSession.invalidate();
>> httpSession = httpServletRequest.getSession();
>> httpSession .setAttribute("UserValue", userValue);
>>
>> となると思うのですが、これで実行すると以下の例外が発生します。
>>
>> java.lang.IllegalStateException: getAttributeNames: セッションは既に無効化されています
>
> これは [Seasar-user:17333] と同件で,Seasar2.4.35
> 固有の問題です.
> https://www.seasar.org/issues/browse/CONTAINER-361
>
> これより前のバージョンおよび次にリリースされる
> バージョンでは発生しません.
> 必要であれば以下の SNAPSHOT を使用してください.
>
> http://maven.seasar.org/maven2-snapshot/org/seasar/container/s2-framework/2.4.36-SNAPSHOT/s2-framework-2.4.36-20090428.100656-3.jar
> http://maven.seasar.org/maven2-snapshot/org/seasar/container/s2-extension/2.4.36-SNAPSHOT/s2-extension-2.4.36-20090428.100656-2.jar
> http://maven.seasar.org/maven2-snapshot/org/seasar/container/s2-tiger/2.4.36-SNAPSHOT/s2-tiger-2.4.36-20090428.101143-2.jar
>
>
> --
> <component name="koichik">
>    <property name="fullName">"Koichi Kobayashi"</property>
>    <property name="email">"[E-MAIL ADDRESS DELETED]"</property>
>    <property name="blog">"http://d.hatena.ne.jp/koichik"</property>
> </component>
>
> _______________________________________________
> Seasar-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-user
>



-- 
***********************
       齊藤  新三
E-mail [E-MAIL ADDRESS DELETED]
***********************


Seasar-user メーリングリストの案内