db-fluteでBehaviorのメソッドを叩くと以下のエラーが出ます。。。
Exception in thread "main" org.dbflute.exception.IllegalBehaviorStateException: Look! Read the message below. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Not found the invoker of behavior command in the behavior! [Advice] Please confirm the definition of the set-upper at your component configuration of DBFlute. It is precondition that 'createSelectListCBCommand()' needs the invoker instance. [Behavior] Behavior for member [Attribute] behaviorCommandInvoker : null behaviorSelector : null * * * * * * * * * */ at org.dbflute.bhv.AbstractBehaviorReadable.assertBehaviorCommandInvoker(AbstractBehaviorReadable.java:1591) at org.dbflute.bhv.AbstractBehaviorReadable.createSelectListCBCommand(AbstractBehaviorReadable.java:1460) at org.dbflute.bhv.AbstractBehaviorReadable.delegateSelectList(AbstractBehaviorReadable.java:1386) at org.dbflute.bhv.AbstractBehaviorReadable.helpSelectEntityInternally(AbstractBehaviorReadable.java:212) at org.dbflute.bhv.AbstractBehaviorReadable.doSelectEntity(AbstractBehaviorReadable.java:188) at com.relational_tweets.dbflute.bsbhv.BsMemberBhv.doSelectByPK(BsMemberBhv.java:175) at com.relational_tweets.dbflute.bsbhv.BsMemberBhv.doSelectOptionalByPK(BsMemberBhv.java:179) at com.relational_tweets.dbflute.bsbhv.BsMemberBhv.facadeSelectByPK(BsMemberBhv.java:171) at com.relational_tweets.dbflute.bsbhv.BsMemberBhv.selectByPK(BsMemberrBhv.java:167)
コードはこちらです。
java
1 MemberBhv memberBhv = new MemberBhv(); 2 MemberCB cb = new MemberCB(); 3 cb.query().setId_Equal(1); 4 memberBhv.selectByPK(1); //ここでエラー
利用しているのは
mysql Ver 14.14 Distrib 5.5.44, for debian-linux-gnu (x86_64) using readline 6.3
jdk1.8.0_51
db-flute 1.1.0-sp7
DIコンテナの設定に guiceをを指定しました。
これを選んだ理由としてはDIコンテナをを利用しない場合のオススメだったからです。。
一つ予想としては
[Advice]に 'createSelectListCBCommand()' needs the invoker instance.
とあるので、DIコンテナ関係を何もしていないのが原因かと考えましたが、
何をどうすればいいのかがわからず手をつけれていないのが現状です
ここまで、ReplaceSchema とクラスのregenerateは何度か行い成功していますので、
DBへの接続が出来ないのでは無いと考えています。
よろしくお願いします。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。