[akabana-user:110] Re: ほぼ同時リクエスト?したときに例外が発生します

jun funakura [E-MAIL ADDRESS DELETED]
2007年 4月 5日 (木) 12:47:03 JST


山本(hirossy)さん

ふなくら(nod)です。
ご報告ありがとうございます。m(__)m

S2Flex2 1.0.0とのことでしたので、HotDeployを行う際に
diconファイルの変更をする必要があります。
http://www.noridon.net/weblogs/archives/2007/03/s2flex2hotdeplo.html

具体的にはamf3_remoting.diconにある

<component class="org.seasar.flex2.rpc.remoting.service.impl.RemotingServiceLocatorImpl"
/>
を
<component
class="org.seasar.flex2.rpc.remoting.service.impl.RemotingServiceLocatorOnHotDeployImpl">
に変更します。

その上でHotDeployにした場合はいかがでしょうか。

S2Flex2のHotDeployについては以下のようになっています。

S2Flex2 1.0.0 - diconファイルの変更必要あり。
           HotDeploy時sessionを利用するケースに例外が発生する
S2Flex2 1.0.1 - HotDeploy時diconファイル変更の必要なし。
          HotDeploy時sessionを利用するケースに例外が発生する
S2Flex2 1.x-SNAPSHOT  - HotDeploy時session利用でも問題なし

また現在リリースしているflex2_exampleは、
s2servletでみたところnomalModeになっていました。
(http://localhost:8080/flex2_example/s2servlet?command=list)

SmartDeployに必要なファイル構成になっていなかったようです。m(__)m
Dolteng v.0.17以降で作成されるs2flex2のファイル構成
http://www.gihyo.co.jp/magazines/wdpress/support/Vol37
にあるBlankプロジェクトを参考にdiconファイルを見直してみていただけますでしょうか。

お手数をおかけいたします。
よろしくお願いいたします。

--
ふなくら(nod)




07/04/05 に hiroshi yamamoto<[E-MAIL ADDRESS DELETED]> さんは書きました:
> 少し進展がありましたので報告します。
>
> Doltengで生成されるs2container.diconの中をコメントアウト
>
> <!--    <include condition="#ENV == 'ut'" path="hotdeploy.dicon"/>      -->
> <!--    <include condition="#ENV != 'ut'" path="cooldeploy.dicon"/>     -->
>
> で、app.diconには、s2flex2サンプルに真似て、
>
> <include condition="#ENV != 'ut'" path="flex2_example-cooldeploy.dicon"/>
>
> を記述。
>
> env.txtで、「ut」以外にしてflex2_example-cooldeploy.diconの設定を見に行くように変更
>
> これで前述例外が発生しなくなりました。
>
> 今まで、例外が発生する場合の設定は、env.txtに「ut」と書いていたので、HOTDeployになっていたと思います。
>
>
> 未だSMARTDeployの中身を知りませんで、これ以上は何も掴めていないのですが、
> SMARTDeployに関係するようです。
>
> 取り急ぎ報告でした。
>
>
>
> 07/04/03 に hiroshi yamamoto<[E-MAIL ADDRESS DELETED]> さんは書きました:
> > お世話になっております
> > 山本(hirossy)です。
> >
> > 私もふなくらさん同様、足し算サンプルをベースにDataGridを追加したところ、
> > 例外が発生しませんでした。
> >
> > でも手元のプログラムでは100%発生していますので、
> > すこしこちらで調べてみます。
> >
> > また少し時間下さい。。。
> >
> >
> > 07/03/31 に jun funakura<[E-MAIL ADDRESS DELETED]> さんは書きました:
> > > hirossyさん
> > >
> > > ふなくら(nod)です。
> > > こんばんは。
> > >
> > > ファイル受け取りました。ありがとうございました。
> > >
> > > プロジェクトをimportして動作確認したところ
> > > ボタンクリックやcreationCompleteでサーバアクセス
> > > するところが動作しませんでした。
> > >
> > > 頂いたメールからs2flex2_exampleにあるadd.mxml + add_script.as
> > > をもとにcreationCompleteとDataGridのinitializeを追加しました。
> > >
> > > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
> > > > xmlns:s2="http://www.seasar.org/s2flex2/mxml" xmlns="*"
> > > > layout="absolute" creationComplete="calculate();">
> > >
> > > > <mx:DataGrid x="10" y="40" height="110" initialize="calculate();">
> > >
> > > #これであっていますでしょうか?
> > >
> > > しかしながら上記では再現しませんでした。(>.<)
> > > 同様にs2flex2-example(2.4HotDeploy構成)でも再現せず
> > > calculateが2回正常に呼び出されていました。
> > >
> > > mxml  + AS3のコードで上記と異なるところがありましたら
> > > おしえていただけますでしょうか。
> > >
> > > お手数をおかけいたします。
> > > どうぞよろしくお願いいたします。
> > >
> > >
> > > --
> > > ふなくら(nod)
> > >
> > >
> > >
> > > 07/03/29 に hiroshi yamamoto<[E-MAIL ADDRESS DELETED]> さんは書きました:
> > > > お世話になっております。
> > > > hirossy(やまもと)です。
> > > >
> > > > かなり時間が経ってしまいましたが、
> > > >
> > > > サンプルを作成し、
> > > > ふなくらさん宛に送らせていただきました。
> > > >
> > > > ApplicationタグのcreationCompleteと
> > > > DataGridタグのinitiallizeにて
> > > > 同じファンクションを呼び出した場合に発生しました。
> > > >
> > > >
> > > > お手数をお掛けしますが宜しくお願いいたします。
> > > >
> > > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
> > > > xmlns:s2="http://www.seasar.org/s2flex2/mxml" xmlns="*"
> > > > layout="absolute" creationComplete="calculate();">
> > > >
> > > > ・・・
> > > >
> > > > <mx:DataGrid x="10" y="40" height="110" initialize="calculate();">
> > > >
> > > > ・・・
> > > >
> > > > function calclate()にて、Remotingしています。
> > > >
> > > >
> > > >
> > > >
> > > > 07/03/02 に jun funakura<[E-MAIL ADDRESS DELETED]> さんは書きました:
> > > > > hirossyさん
> > > > >
> > > > > ふなくら(nod)です。
> > > > > こんばんは。
> > > > >
> > > > > 報告ありがとうございます。
> > > > > もし、再現できるような簡単なものがあれば
> > > > > いただけますでしょうか。
> > > > >
> > > > >
> > > > > いづれにしても、調べてみます。
> > > > > 取り急ぎご連絡まで。
> > > > >
> > > > >
> > > > > --
> > > > > ふなくら
> > > > >
> > > > > 07/03/01 に hiroshi yamamoto<[E-MAIL ADDRESS DELETED]> さんは書きました:
> > > > > > いつもお世話になっております。hirossyと申します。
> > > > > >
> > > > > > mxml画面初期処理(init()など)で、
> > > > > > あらかじめコンボボックスやDatagridの値を入れておきたい!
> > > > > > ってゆうパターンがよくあると思うのですが、
> > > > > >
> > > > > > 同じRemotingServiceクラス・同じメソッドに、ほぼ同時に2回リクエストした場合、
> > > > > > 以下のような例外が出ません??
> > > > > >
> > > > > > 1回のリクエストなら例外が出ないのですが。
> > > > > > そして、そもそもそんな作り方をしている私も問題アリですが(汗
> > > > > >
> > > > > > AS側はCairngormです。
> > > > > > S2Flex2は1.0.0です。
> > > > > >
> > > > > > 私のサーバーリクエストの方法が間違っているのか、なにか回避策があるのか・・・
> > > > > > なにも掴めておりません。
> > > > > >
> > > > > > すみませんが、この件についてアドバイス宜しくお願いいたします。
> > > > > >
> > > > > > DEBUG 2007-03-01 18:16:26,158 [http-8080-Processor23]
> > > > > > クラス(jp.co.***.service.impl.ItemsectionServiceImpl[itemsectionService])のコンポーネント定義を登録します
> > > > > > ERROR 2007-03-01 18:16:26,251 [http-8080-Processor23] getMetaDef
> > > > > > java.lang.UnsupportedOperationException: getMetaDef
> > > > > >         at org.seasar.framework.container.impl.SimpleComponentDef.getMetaDef(SimpleComponentDef.java:298)
> > > > > >         at org.seasar.flex2.rpc.remoting.service.impl.RemotingServiceLocatorImpl.hasRemotingServiceMetadata(RemotingServiceLocatorImpl.java:41)
> > > > > >         at org.seasar.flex2.rpc.remoting.service.impl.RemotingServiceLocatorImpl.canRegisterService(RemotingServiceLocatorImpl.java:48)
> > > > > >         at org.seasar.flex2.rpc.remoting.service.impl.RemotingServiceLocatorImpl.isSupportService(RemotingServiceLocatorImpl.java:101)
> > > > > >         at org.seasar.flex2.rpc.remoting.service.impl.AbstractRemotingServiceInvokerImpl.supports(AbstractRemotingServiceInvokerImpl.java:74)
> > > > > >         at org.seasar.flex2.rpc.remoting.service.impl.RemotingServiceInvokerChooserImpl.chooseInvoker(RemotingServiceInvokerChooserImpl.java:36)
> > > > > >         at org.seasar.flex2.rpc.remoting.message.processor.impl.MessageBodyProcessorImpl.processBody(MessageBodyProcessorImpl.java:96)
> > > > > >         at org.seasar.flex2.rpc.remoting.message.processor.impl.MessageBodyProcessorImpl.process(MessageBodyProcessorImpl.java:65)
> > > > > >         at org.seasar.flex2.rpc.remoting.message.processor.impl.MessageProcessorImpl.process(MessageProcessorImpl.java:64)
> > > > > >         at org.seasar.flex2.rpc.remoting.processor.impl.RemotingMessageProcessorImpl.process(RemotingMessageProcessorImpl.java:49)
> > > > > >         at org.seasar.flex2.rpc.remoting.RemotingGateway.doPost(RemotingGateway.java:55)
> > > > > >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> > > > > >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > > > >         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> > > > > >         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> > > > > >         at org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:63)
> > > > > >         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> > > > > >         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> > > > > >         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> > > > > >         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> > > > > >         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> > > > > >         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> > > > > >         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> > > > > >         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> > > > > >         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> > > > > >         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> > > > > >         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> > > > > >         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> > > > > >         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> > > > > >         at java.lang.Thread.run(Thread.java:595)
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > -----------------------------------------------------------
> > > > > >  [E-MAIL ADDRESS DELETED] (Hiroshi Yamamoto)
> > > > > >  http://d.hatena.ne.jp/hirossy1977/
> > > > > > -----------------------------------------------------------
> > > > > > _______________________________________________
> > > > > > akabana-user mailing list
> > > > > > [E-MAIL ADDRESS DELETED]
> > > > > > https://ml.seasar.org/mailman/listinfo/akabana-user
> > > > > >
> > > > > _______________________________________________
> > > > > akabana-user mailing list
> > > > > [E-MAIL ADDRESS DELETED]
> > > > > https://ml.seasar.org/mailman/listinfo/akabana-user
> > > > >
> > > >
> > > >
> > > > --
> > > > -----------------------------------------------------------
> > > >  [E-MAIL ADDRESS DELETED] (Hiroshi Yamamoto)
> > > >  http://d.hatena.ne.jp/hirossy1977/
> > > > -----------------------------------------------------------
> > > > _______________________________________________
> > > > akabana-user mailing list
> > > > [E-MAIL ADDRESS DELETED]
> > > > https://ml.seasar.org/mailman/listinfo/akabana-user
> > > >
> > > _______________________________________________
> > > akabana-user mailing list
> > > [E-MAIL ADDRESS DELETED]
> > > https://ml.seasar.org/mailman/listinfo/akabana-user
> > >
> >
> >
> > --
> > [E-MAIL ADDRESS DELETED]={
> > -----------------------------------------------------------
> >  [E-MAIL ADDRESS DELETED] (Hiroshi Yamamoto)
> >  http://d.hatena.ne.jp/hirossy1977/
> > -----------------------------------------------------------
> > }
> > [E-MAIL ADDRESS DELETED]={
> >  ---------------------------------------
> >  [E-MAIL ADDRESS DELETED]
> >  (Hiroshi Yamamoto)
> >
> > gd | genephics design, Inc.
> > 06.6532.9900 06.6532.9901
> > http://www.genephics.co.jp/
> > ----------------------------------------
> > }
> >
>
>
> --
> -----------------------------------------------------------
>  [E-MAIL ADDRESS DELETED] (Hiroshi Yamamoto)
>  http://d.hatena.ne.jp/hirossy1977/
> -----------------------------------------------------------
> _______________________________________________
> akabana-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/akabana-user
>


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