[Seasar-user:11465] Re: [Teeda] Tomcat 複数台構成で画面遷移できない場合がある
Junichi Kato
[E-MAIL ADDRESS DELETED]
2007年 11月 5日 (月) 19:00:35 JST
ひがさん、
加藤です。
> だとすると、Scope関連のセッションのレプリケーションが
> うまくいっていないのでは、ないでしょうか。
> レプリケーションが行われているかログを確認してください。
ちょっと、まだ何もわからないのですが、ホストAでずーっと画面遷移できていて、とあるタイミングでホストBに切り替わった
先に、遷移できないので、その前後のsession_idを調べてみました。このような調べ方でよかったでしょうか?
的外れでしたら、恐縮ですが、ログの切り出し方のアドバイスをいただけませんでしょうか?
ホストAの最後のログ
DEBUG 2007-11-05 18:53:53,891 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,897 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,897 [TP-Processor3] update s2session set value = '[[E-MAIL ADDRESS DELETED]', last_access = '2007-11-05 18.53.53' where session_id = 'c0a81899066b27f3545778e747afb' and name = 'javax.faces.internal.scope.SubApplicationScope'
DEBUG 2007-11-05 18:53:53,900 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,900 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,900 [TP-Processor3] update s2session set value = '[[E-MAIL ADDRESS DELETED]', last_access = '2007-11-05 18.53.53' where session_id = 'c0a81899066b27f3545778e747afb' and name = 'paymentSessionDto'
DEBUG 2007-11-05 18:53:53,903 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,903 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,903 [TP-Processor3] update s2session set value = '[[E-MAIL ADDRESS DELETED]', last_access = '2007-11-05 18.53.53' where session_id = 'c0a81899066b27f3545778e747afb' and name = 'enableCart'
DEBUG 2007-11-05 18:53:53,906 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,906 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,907 [TP-Processor3] update s2session set value = '[[E-MAIL ADDRESS DELETED]', last_access = '2007-11-05 18.53.53' where session_id = 'c0a81899066b27f3545778e747afb' and name = 'userAccountDto'
DEBUG 2007-11-05 18:53:53,909 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,909 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,910 [TP-Processor3] update s2session set value = '[[E-MAIL ADDRESS DELETED]', last_access = '2007-11-05 18.53.53' where session_id = 'c0a81899066b27f3545778e747afb' and name = 'userShoppingCartDto'
DEBUG 2007-11-05 18:53:53,912 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,912 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,913 [TP-Processor3] update s2session set value = '[[E-MAIL ADDRESS DELETED]', last_access = '2007-11-05 18.53.53' where session_id = 'c0a81899066b27f3545778e747afb' and name = 'org.seasar.teeda.core.lifecycle.impl.RestoreViewPhase.VIEW_ID_LRU'
DEBUG 2007-11-05 18:53:53,915 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,915 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,916 [TP-Processor3] update s2session set value = '[[E-MAIL ADDRESS DELETED]', last_access = '2007-11-05 18.53.53' where session_id = 'c0a81899066b27f3545778e747afb' and name = 'javax.faces.request.charset'
DEBUG 2007-11-05 18:53:53,918 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,918 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,919 [TP-Processor3] update s2session set value = '[[E-MAIL ADDRESS DELETED]', last_access = '2007-11-05 18.53.53' where session_id = 'c0a81899066b27f3545778e747afb' and name = 'javax.faces.internal.scope.PageScope'
DEBUG 2007-11-05 18:53:53,921 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,921 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,922 [TP-Processor3] update s2session set value = '[[E-MAIL ADDRESS DELETED]', last_access = '2007-11-05 18.53.53' where session_id = 'c0a81899066b27f3545778e747afb' and name = 'javax.faces.internal.scope.RedirectScope'
DEBUG 2007-11-05 18:53:53,924 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
DEBUG 2007-11-05 18:53:53,927 [TP-Processor3] tx=[FormatId=4360, GlobalId=1194253815081/1296, BranchId=]
ホストBで画面遷移がミスったときのログ
DEBUG 2007-11-05 18:53:55,669 [TP-Processor5] tx=[FormatId=4360, GlobalId=1194253802458/2300, BranchId=]
DEBUG 2007-11-05 18:53:55,672 [TP-Processor5] tx=[FormatId=4360, GlobalId=1194253802458/2300, BranchId=]
DEBUG 2007-11-05 18:53:55,672 [TP-Processor5] select name, value from s2session where session_id = 'c0a81899066b27f3545778e747afb'
DEBUG 2007-11-05 18:53:55,685 [TP-Processor5] tx=[FormatId=4360, GlobalId=1194253802458/2300, BranchId=]
DEBUG 2007-11-05 18:53:55,686 [TP-Processor5] tx=[FormatId=4360, GlobalId=1194253802458/2300, BranchId=]
DEBUG 2007-11-05 18:53:55,691 [TP-Processor5]
** before *****************************************: /view/example/example.html
Request class=org.seasar.extension.httpsession.S2HttpServletRequestWrapper, instance=[E-MAIL ADDRESS DELETED]
RequestedSessionId=c0a81899066b27f3545778e747afb
REQUEST_URI=/example/view/example/example.html, SERVLET_PATH=/view/cart/example.html
CharacterEncoding=UTF-8, ContentLength=175, ContentType=application/x-www-form-urlencoded, Locale=ja, Locales=ja, Scheme=http, isSecure=false
SERVER_PROTOCOL=HTTP/1.1, REMOTE_ADDR=218.219.158.105, REMOTE_HOST=218.219.158.105, SERVER_NAME=admin.example.com, SERVER_PORT=80
ContextPath=/example, REQUEST_METHOD=POST, QUERY_STRING=null, PathInfo=null, RemoteUser=null
Session SessionId=c0a81899066b27f3545778e747afb
Session :: CreationTime=1194256435666, LastAccessedTime=1194256435666, MaxInactiveInterval=2147483647
[param]_id91:menuForm/view/example/example.html=_id91:menuForm
[param]_id91:menuForm:jumpGlobal_globalUserSupport-header=
[request]org.apache.myfaces.component.html.util.ExtensionFilter.doFilterCalled=true
[cookie]JSESSIONID=FEDD2AE830FE6FC468AFE93E8AC26A59.tomcat2
[cookie]S2SESSIONID=c0a81899066b27f3545778e747afb
[header]Cache-Control=no-cache
<snip>
[request]previousViewId=/view/example/example.html
[cookie]JSESSIONID=FEDD2AE830FE6FC468AFE93E8AC26A59.tomcat2
[cookie]S2SESSIONID=c0a81899066b27f3545778e747afb
[session]enableCart=false
[session]javax.faces.internal.scope.PageScope={null={org.seasar.teeda.extension.Condition={_id91:menuForm:isNotMerchandise=true, layoutChildBody:isMerchandise-goods=false, _id20:menuForm:isNotMerchandise=true, isNotAuthed=true, _id20:menuForm:isMerchandise=false, layoutChildBody:isNotExistCartItem-1=true, isAuthed=false, layoutChildBody:isExistCartItem=false, layoutChildBody:isMerchandise-postage=false, _id91:menuForm:isMerchandise=false}}}
[session]javax.faces.internal.scope.RedirectScope={null={}}
[session]javax.faces.internal.scope.SubApplicationScope={}
[session]javax.faces.request.charset=UTF-8
> >
> > 環境がデータセンター上のSolaris10なのでブレイクを当てれないです。
> > ローカルのWindows環境で、Tomcatを複数台立ててデバッグしてみたほうが
> > よいでしょうか?
> >
> はい。
> 後、Ajaxが関係していないか調べてみてもいいかもしれません。
画面遷移の際にはAjaxは関係していないのですが、調べる必要ありますでしょうか?
よろしくお願いいたします。
───────────────────────────────
株式会社 グランテック
代表取締役社長
加藤 潤一 Junichi Kato
〒154-0012
東京都世田谷区駒沢2-16-1 サンドー駒沢ビル4F
TEL 050-5538-2383 FAX 03-3487-7211
HP : http://www.grandtech.jp/
BLOG : http://d.hatena.ne.jp/j5ik2o/
E-MAIL : [E-MAIL ADDRESS DELETED]
Seasar-user メーリングリストの案内