Groups
Groups
Sign in
Groups
Groups
Facebook4J J
Conversations
About
Send feedback
Help
GAE/JでOAuthAuthorizationのクラス変数httpがぬるぽ
47 views
Skip to first unread message
xfan
unread,
Feb 4, 2013, 6:54:29 AM
2/4/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Facebook4J J
はじめまして。本日MLに参加させていただきました。
facebook4j、まだ使い始めたところですが、非常に助かります。
---
GAE/J上で利用していると、
OAuthAuthorizationのクラス変数httpが、たまにnullになってぬるぽします。
1. Facebookオブジェクトをセッションに格納(一旦シリアライズされる)
2. しばらくアクセスしないでいるとサーバインスタンスが落ちる、クラス変数も消える
3. またアクセスしてセッションからFacebookオブジェクトを復元、クラスも新たにロードされる
こういう流れだと思います。
普通の運用のフローでこれが問題になることはあんまりないと思うんですが、
開発中で、パーミッション追加して再ログインとか色々やっていると、
なんだかよくここでひっかかるのです。
変数httpを使うところに、nullだったら再構築、
みたいなロジックをくわえていただけると助かります。
Ryuji Yamashita
unread,
Feb 5, 2013, 10:43:25 AM
2/5/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to facebo...@googlegroups.com
こんにちは、開発者の山下です。
ご提案ありがとうございます。
Twitter4Jとも見比べて検討してみます。
2013年2月4日月曜日 20時54分29秒 UTC+9 xfan:
Reply all
Reply to author
Forward
0 new messages