[Seasar-user:16548] Re: [sa-struts-1.0.4-sp3][s2jdbc][Help]複数のデータソース利用時のS2AbstractService<T>内でjdbcManagerのNullPointerException対応法をご教授下さい。
Koichi Kobayashi
[E-MAIL ADDRESS DELETED]
2008年 12月 24日 (水) 20:00:25 JST
$B>.NS(B (koichik) $B$G$9!%(B
Date: Wed, 24 Dec 2008 19:17:35 +0900
From: $B>.LnED?.G7(B <[E-MAIL ADDRESS DELETED]>
To: [E-MAIL ADDRESS DELETED]
Subject: [Seasar-user:16547] [sa-struts-1.0.4-sp3][s2jdbc][Help]$BJ#?t$N%G!<%?%=!<%9MxMQ;~$N(BS2AbstractService<T>$BFb$G(BjdbcManager$B$N(BNullPointerException$BBP1~K!$r$465<x2<$5$$!#(B
> $B-#(BAbstractService<ENTITY>$BCf$N([E-MAIL ADDRESS DELETED]$B;XDj!'(B
> public abstract class MysqlAbstractService<ENTITY> extends S2AbstractService<ENTITY> {
> @Binding("mysqlJbcManager")
> protected JdbcManager jdbcManager;
Java $B$G$O%U%#!<%k%I$N%*!<%P!<%i%$%I$O$G$-$^$;$s!%(B
$B$3$N(B jdbcManager $B$O?F%/%i%9$G$"$k(B AbstractService $B$N(B
jdbcManager $B$H$OJL$N%U%#!<%k%I$G$"$j!$?F%/%i%9$N(B
jdbcManager $B$r1#$7$F$7$^$$$^$9!%(B
$B$=$N$?$a!$(BAbstractService $B$N(B jdbcManager $B$K$O(B
$B2?$b(B DI $B$5$l$J$$$3$H$K$J$j$^$9!%(B
setter $B%a%=%C%I$rDj5A$7$F!$$=$3$K%"%N%F!<%7%g%s$r(B
$B;XDj$7$F$/$@$5$$!%(B
@Resource(name="mysqlJbcManager")
public void setJdbcManager(JdbcManager jdbcManager) {
this.jdbcManager = jdbcManager;
}
http://s2container.seasar.org/2.4/ja/s2jdbc_service.html#$BJ#?t$N%G!<%?%=!<%9(B
--
<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 メーリングリストの案内