[Seasar-user:20228] Re: バッチアプリでトランザクションが有効にならない

高橋 伸弘 [E-MAIL ADDRESS DELETED]
2010年 10月 7日 (木) 20:44:13 JST


$B5WJ]$5$s(B

$BAaB.$N%l%9$"$j$,$H$&$4$6$$$^$7$?!#(B

$B$4;XE&$NDL$j(BNew$B$7$F$$$?%5!<%S%9%/%i%9$r(B
getcomportnent$B$7$?$i%H%i%s%6%/%7%g%s$,M-8z$K$J$j$^$7$?!#(B

dbfulte$B$K%5%s%W%k$,$"$k$N$O5$$E$-$^$;$s$G$7$?!#(B

$B$"$j$,$H$&$4$6$$$^$7$?!#(B

> $B5WJ](B(jflute)$B$G$9!#(B
> 
> $B$*$O$h$&$4$6$$$^$9!"9b66$5$s(B
> 
> > ? ? ? ?private static int mainProcedure(){
> > ? ? ? ? ? ? ? ?Sample01ServiceImpl service = new Sample01ServiceImpl();
> > ? ? ? ? ? ? ? ?service.hogeInsert(container);
> > ? ? ? ? ? ? ? ?return service.hogeSelectList(container);
> > ? ? ? ?}
> 
> $B$3$3$G!"(BService$B%/%i%9$,(B new $B$5$l$F$$$k$N$G!"(B
> $B!V(BS2Container$B4IM}30$N%3%s%]!<%M%s%H!W$K$J$C$F$$$k(B
> $B$+$i%H%i%s%6%/%7%g%s(BAOP$B$,8z$$$F$$$J$$$h$&$K;W$($^$9!#(B
> Service$B%/%i%9$b(BContainer$B$+$i<hF@$9$k7A$K$7$F(B
> $B;n$7$F$_$k$HNI$$$H;W$$$^$9!#(B
> 
> $B%P%C%A%"%W%j$G$7$?$i!"(Bdbflute-basic-example $B$N(B
> src/test/java/com/.../basic/batch$BG[2<$K%5%s%W%k$,(B
> $B$"$j$^$9$N$G(B($B%H%i%s%6%/%7%g%s;H$C$F$^$9(B)$B!"(B
> $B$3$&$$$&$H$-$K8+Hf$Y$F$_$k$H2r7h$7$d$9$$$+$b(B
> $B$J$N$G$<$R$4;29M2<$5$$!#(B
> 
> 2010/10/7 $B9b66!!?-90(B <[E-MAIL ADDRESS DELETED]>:
> > $B=i$a$F%"%C%W$5$;$F$$$?$@$-$9!#(B
> > $B9b66$H?=$7$^$9!#$h$m$7$/$*4j$$CW$7$^$9!#(B
> >
> > $B8=:_!"(BS2+dbflute$B$G(BJava$B%P%C%A%"%W%j%1!<%7%g%s$N%5%s%W%k$r:[E-MAIL ADDRESS DELETED]$7$F$$$^$9!#(B
> >
> > $B%5!<%S%9C10L$G%H%i%s%6%/%7%g%s$[E-MAIL ADDRESS DELETED]$j$?$$$H;W$C$F$*$j$^$9$,!"(B
> > customaizer.dicon$B$N(Bservicecustomaizer$B$K(BrequiredTxCustomizer$B$[E-MAIL ADDRESS DELETED]$7$F$b%H%i%s(B
> > $B%6%/%7%g%s$,(B
> > $B8z$$$F$$$J$$46$8$G$9!#(B
> >
> > $B5/F0;~$N%m%0$r$_$F$b!V%H%i%s%6%/%7%g%s$,3+;O$5$l$^$7$?!W$N%a%C%;!<%8$,=P$F$-$^(B
> > $B$;$s!#(B
> > $[E-MAIL ADDRESS DELETED]}%3%M%/%7%g%s$N<hF@$N:]$N(Btx$B$b(Bnull$B$J$N$G!"%H%i%s%6%/%7%g%s$,M-8z$K$J$C$F$$$J(B
> > $B$$$H;W$o$l$^$9!#(B
> >
> > $B=hM}$H$7$F$O#1%5!<%S%9%/%i%9$K(Binsert$B$H(Bselect$B$N%a%=%C%I$r:[E-MAIL ADDRESS DELETED]$7!"(B
> > Insert$B%a%=%C%I(B
> > $B#1!%(Binsert
> > $B#2!%(Binsert
> > select$B%a%=%C%I(B
> > select
> > $B$N=g$K<B9T$7$F$$$^$9!#(B
> >
> > $B#12sL\$N(Binsert$B$H#22sL\$N(Binsert$B$OF1$8%G!<%?$rEPO?$7#22sL\$G%(%i!<$H$J$k$h$&$K$7(B
> > $B$F$$$^$9$,!"(B
> > $B#12sL\$K(Binsert$B$5$l$?%G!<%?$,%m!<%k%P%C%/$5$l$^$;$s!#(B
> > $B?'!9!"@_Dj$rJQ$($F$_$^$7$?$,!">e<j$/$$$-$^$;$s!#(B
> > $B2?$+$*$+$7$J$3$H$r$7$F$*$j$^$9$G$7$g$&$+!)(B
> > $B$4;XE&$$$?$@$1$l$P9,$$$G$9!#(B
> > $B$h$m$7$/$*4j$$$7$^$9!#(B
> >
> >
> > $B3+H/4D6-(B
> > ECLIPSE 3.4
> > JDK6-20
> > S2 ?2.4.40
> > dbflute 0.9.6
> >
> > <$B%=!<%9(B>
> > $B-!<g=hM}(B
> > public class Main {
> > ? ? ? ?private static S2Container container;
> > ? ? ? ?private static AccessContext context;
> > ? ? ? ?private static final int FAIL_SHURYO_CODE = 1;
> > ? ? ? ?private static final String USER_ID = "BATCH";
> > ? ? ? ?private static final String PROCESS_ID = "SAMPLE";
> > ? ? ? ?private static final String S2PATH = "app.dicon";
> > ? ? ? ?/**
> > ? ? ? ? * @param args
> > ? ? ? ? */
> > ? ? ? ?public static void main(String[] args) {
> > ? ? ? ? ? ? ? ?int SUCCESS_SHURYO_CODE = 0;
> > ? ? ? ? ? ? ? ?try {
> > ? ? ? ? ? ? ? ? ? ? ? ?// $B%7%9%F%`$N=i4|=hM}(B
> > ? ? ? ? ? ? ? ? ? ? ? ?container = S2ContainerFactory.create(S2PATH);
> > ? ? ? ? ? ? ? ? ? ? ? ?container.init();
> > ? ? ? ? ? ? ? ? ? ? ? ?new CommonShori().eaInit(context, new Timestamp(System.currentTimeMillis())
> > ?, USER_ID, PROCESS_ID);
> > ? ? ? ? ? ? ? ? ? ? ? ?// $B=i4|=hM}(B
> > ? ? ? ? ? ? ? ? ? ? ? ?initializeProcedure();
> > ? ? ? ? ? ? ? ? ? ? ? ?// $B<g=hM}(B
> > ? ? ? ? ? ? ? ? ? ? ? ?SUCCESS_SHURYO_CODE = mainProcedure();
> > ? ? ? ? ? ? ? ?} catch (Exception e){
> > ? ? ? ? ? ? ? ? ? ? ? ?e.printStackTrace();
> > ? ? ? ? ? ? ? ? ? ? ? ?// $B%7%9%F%`$N=*N;=hM}(B
> > ? ? ? ? ? ? ? ? ? ? ? ?System.exit(FAIL_SHURYO_CODE);
> > ? ? ? ? ? ? ? ?} finally {
> > ? ? ? ? ? ? ? ? ? ? ? ?// $B%7%9%F%`$N=*N;=hM}(B
> > ? ? ? ? ? ? ? ? ? ? ? ?new CommonShori().eaTerm(container);
> > ? ? ? ? ? ? ? ?}
> > ? ? ? ? ? ? ? ?// $[E-MAIL ADDRESS DELETED]>o=*N;%a%C%;!<%8(B
> > ? ? ? ? ? ? ? ?System.exit(SUCCESS_SHURYO_CODE);
> > ? ? ? ?}
> > ? ? ? ?private static void initializeProcedure(){
> > ? ? ? ?}
> > ? ? ? ?private static int mainProcedure(){
> > ? ? ? ? ? ? ? ?Sample01ServiceImpl service = new Sample01ServiceImpl();
> > ? ? ? ? ? ? ? ?service.hogeInsert(container);
> > ? ? ? ? ? ? ? ?return service.hogeSelectList(container);
> > ? ? ? ?}
> > }
> > $B-"%5!<%S%9(B
> > public class Sample01ServiceImpl implements Sample01Service {
> > ? ? ? ?private static final String MSG_LEVEL_INFO="INFO";
> > ? ? ? ?public Sample01ServiceImpl(){}
> > ? ? ? ?@Override
> > ? ? ? ?public int hogeSelectList(S2Container container) {
> > ? ? ? ? ? ? ? ?hogehogeMasterBhv hogehogeMasterBhv = (hogehogeMasterBhv)container.getCompon
> > ent(hogehogeMasterBhv.class);
> > ? ? ? ? ? ? ? ?hogehogeMasterCB cb = new hogehogeMasterCB();
> > ? ? ? ? ? ? ? ?cb.query().sethogehogeid_Equal("00001");
> >
> > ? ? ? ? ? ? ? ?ListResultBean<hogehogeMaster> listResultBean = hogehogeMasterBhv.selectList
> > (cb);
> >
> > ? ? ? ? ? ? ? ?System.out.println(listResultBean.size());
> > ? ? ? ? ? ? ? ?if (listResultBean.size() > 0) {
> > ? ? ? ? ? ? ? ? ? ? ? ?return 0;
> > ? ? ? ? ? ? ? ?}
> > ? ? ? ? ? ? ? ?return -1;
> > ? ? ? ?}
> > ? ? ? ?@Override
> > ? ? ? ?public void hogeInsert(S2Container container) {
> > ? ? ? ? ? ? ? ?hogehogeMasterBhv hogehogeMasterBhv = (hogehogeMasterBhv)container.getCompon
> > ent(hogehogeMasterBhv.class);
> > ? ? ? ? ? ? ? ?hogehogeMaster hogehogeMaster = new hogehogeMaster();
> > ? ? ? ? ? ? ? ?hogehogeMaster.sethogehogeid("11111");
> > ? ? ? ? ? ? ? ?hogehogeMaster.setDocid("33333");
> > ? ? ? ? ? ? ? ?hogehogeMasterBhv.insert(hogehogeMaster);
> >
> > ? ? ? ? ? ? ? ?hogehogeMaster.sethogehogeid("11111");
> > ? ? ? ? ? ? ? ?hogehogeMaster.setDocid("33333");
> > ? ? ? ? ? ? ? ?hogehogeMasterBhv.insert(hogehogeMaster);
> > ? ? ? ?}
> > }
> >
> > $B-#(Bconvention.dicon
> > <components>
> > ? ? ? ?<component class="org.seasar.framework.convention.impl.NamingConventionImpl">
> > ? ? ? ? ? ? ? ?<initMethod name="addRootPackageName">
> > ? ? ? ? ? ? ? ? ? ? ? ?<arg>"org.hoge.sampleBatch"</arg>
> > ? ? ? ? ? ? ? ?</initMethod>
> > ? ? ? ?</component>
> > </components>
> >
> > $B-$(Bcreater.dicon
> > <components>
> > ?<include path="customizer.dicon"/>
> > ?<include path="convention.dicon"/>
> > ?<component name="daoCreator" class="org.seasar.framework.container.creator.D
> > aoCreator"/>
> > ?<component name="dtoCreator" class="org.seasar.framework.container.creator.D
> > toCreator"/>
> > ?<component name="dxoCreator" class="org.seasar.framework.container.creator.D
> > xoCreator"/>
> > ?<component name="interceptorCreator" class="org.seasar.framework.container.c
> > reator.InterceptorCreator"/>
> > ?<component name="logicCreator" class="org.seasar.framework.container.creator
> > .LogicCreator"/>
> > ?<component name="serviceCreator" class="org.seasar.framework.container.creat
> > or.ServiceCreator"/>
> > </components>
> >
> > $B-%(Bcustomizer.dicon
> > <components>
> > ?<include path="default-customizer.dicon"/>
> > ?<component name="serviceCustomizer"
> > ? ?class="org.seasar.framework.container.customizer.CustomizerChain">
> > ? ?<initMethod name="addCustomizer">
> > ? ? ?<arg>requiredTxCustomizer</arg>
> > ? ?</initMethod>
> > ?</component>
> > ?<component name="logicCustomizer" class="org.seasar.framework.container.cust
> > omizer.CustomizerChain">
> > ? ?<initMethod name="addCustomizer">
> > ? ? ?<arg>traceCustomizer</arg>
> > ? ?</initMethod>
> > ?</component>
> > ?<component name="daoCustomizer" class="org.seasar.framework.container.custom
> > izer.CustomizerChain">
> > ? ?<initMethod name="addCustomizer">
> > ? ? ?<arg>traceCustomizer</arg>
> > ? ?</initMethod>
> > ? ?<initMethod name="addCustomizer">
> > ? ? ?<arg>s2DaoCustomizer</arg>
> > ? ?</initMethod>
> > ?</component>
> > ?<component name="dxoCustomizer" class="org.seasar.framework.container.custom
> > izer.CustomizerChain">
> > ? ?<initMethod name="addCustomizer">
> > ? ? ?<arg>traceCustomizer</arg>
> > ? ?</initMethod>
> > ? ?<initMethod name="addCustomizer">
> > ? ? ?<arg>s2DxoCustomizer</arg>
> > ? ?</initMethod>
> > ?</component>
> > ?<component name="csvCustomizer" class="org.seasar.framework.container.custom
> > izer.CustomizerChain"/>
> > </components>
> >
> > $B-&(Bjdbc.dicon
> > <components namespace="jdbc">
> > ? ? ? ?<include path="jta.dicon"/>
> > ? ? ? ?<include path="jdbc-extension.dicon"/>
> > ? ? ? ?<component class="org.seasar.extension.jdbc.impl.BasicResultSetFactory"/>
> > ? ? ? ?<component class="org.seasar.extension.jdbc.impl.ConfigurableStatementFactory
> > ">
> > ? ? ? ? ? ? ? ?<arg>
> > ? ? ? ? ? ? ? ? ? ? ? ?<component class="org.seasar.extension.jdbc.impl.BasicStatementFactory"/>
> > ? ? ? ? ? ? ? ?</arg>
> > ? ? ? ? ? ? ? ?<property name="fetchSize">100</property>
> > ? ? ? ?</component>
> > ? ? ? ?<!-- for Oracle -->
> > ? ? ? ?<component name="xaDataSource"
> > ? ? ? ? ? ? ? ?class="org.seasar.extension.dbcp.impl.XADataSourceImpl">
> > ? ? ? ? ? ? ? ?<property name="driverClassName">
> > ? ? ? ? ? ? ? ? ? ? ? ?"oracle.jdbc.driver.OracleDriver"
> > ? ? ? ? ? ? ? ?</property>
> > ? ? ? ? ? ? ? ?<property name="URL">
> > ? ? ? ? ? ? ? ? ? ? ? ?"jdbc:oracle:thin:@k-Tsuzurano:1521:xe"
> > ? ? ? ? ? ? ? ?</property>
> > ? ? ? ? ? ? ? ?<property name="user">"TEST"</property>
> > ? ? ? ? ? ? ? ?<property name="password">"TEST"</property>
> > ? ? ? ?</component>
> >
> > ? ? ? ?<component name="connectionPool"
> > ? ? ? ? ? ? ? ?class="org.seasar.extension.dbcp.impl.ConnectionPoolImpl">
> > ? ? ? ? ? ? ? ?<property name="timeout">600</property>
> > ? ? ? ? ? ? ? ?<property name="maxPoolSize">3</property>
> > ? ? ? ? ? ? ? ?<property name="allowLocalTx">true</property>
> > ? ? ? ? ? ? ? ?<destroyMethod name="close"/>
> > ? ? ? ?</component>
> >
> > ? ? ? ?<component name="dataSource"
> > ? ? ? ? ? ? ? ?class="org.seasar.extension.dbcp.impl.DataSourceImpl"
> > ? ? ? ?/>
> > </components>
> >
> > <$B<B9T%m%0(B>
> > 2010/10/06 13:15:28.290, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=cooldeplo
> > y.dicon, Logger.java:231
> > 2010/10/06 13:15:28.410, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=cooldep
> > loy.dicon, Logger.java:231
> > 2010/10/06 13:15:28.440, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=app.dicon
> > , Logger.java:231
> > 2010/10/06 13:15:28.461, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=conventio
> > n.dicon, Logger.java:231
> > 2010/10/06 13:15:28.531, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=convent
> > ion.dicon, Logger.java:231
> > 2010/10/06 13:15:28.551, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=aop.dicon
> > , Logger.java:231
> > 2010/10/06 13:15:28.651, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=aop.dic
> > on, Logger.java:231
> > 2010/10/06 13:15:28.651, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=app_aop.d
> > icon, Logger.java:231
> > 2010/10/06 13:15:28.711, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=app_aop
> > .dicon, Logger.java:231
> > 2010/10/06 13:15:28.711, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=dbflute.d
> > icon, Logger.java:231
> > 2010/10/06 13:15:28.731, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=j2ee.dico
> > n, Logger.java:231
> > 2010/10/06 13:15:28.751, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=jta.dicon
> > , Logger.java:231
> > 2010/10/06 13:15:28.821, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=jta.dic
> > on, Logger.java:231
> > 2010/10/06 13:15:28.821, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=jdbc.dico
> > n, Logger.java:231
> > 2010/10/06 13:15:28.851, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=jdbc-exte
> > nsion.dicon, Logger.java:231
> > 2010/10/06 13:15:28.881, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=jdbc-ex
> > tension.dicon, Logger.java:231
> > 2010/10/06 13:15:29.001, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=jdbc.di
> > con, Logger.java:231
> > 2010/10/06 13:15:29.021, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=j2ee.di
> > con, Logger.java:231
> > 2010/10/06 13:15:29.622, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=dbflute
> > .dicon, Logger.java:231
> > 2010/10/06 13:15:29.632, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=dxo.dicon
> > , Logger.java:231
> > 2010/10/06 13:15:29.642, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=dxo-built
> > in-converters.dicon, Logger.java:231
> > 2010/10/06 13:15:29.712, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=dxo-bui
> > ltin-converters.dicon, Logger.java:231
> > 2010/10/06 13:15:29.712, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=dxo-tiger
> > -converters.dicon, Logger.java:231
> > 2010/10/06 13:15:29.742, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=dxo-tig
> > er-converters.dicon, Logger.java:231
> > 2010/10/06 13:15:29.752, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=dxo.dic
> > on, Logger.java:231
> > 2010/10/06 13:15:29.782, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=app.dic
> > on, Logger.java:231
> > 2010/10/06 13:15:29.782, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=cooldeplo
> > y-autoregister.dicon, Logger.java:231
> > 2010/10/06 13:15:29.802, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=customize
> > r.dicon, Logger.java:231
> > 2010/10/06 13:15:29.812, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=default-c
> > ustomizer.dicon, Logger.java:231
> > 2010/10/06 13:15:29.822, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=std-custo
> > mizer.dicon, Logger.java:231
> > 2010/10/06 13:15:29.843, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=std-custo
> > mizer-tiger.dicon, Logger.java:231
> > 2010/10/06 13:15:29.853, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=std-cus
> > tomizer-tiger.dicon, Logger.java:231
> > 2010/10/06 13:15:29.883, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=std-cus
> > tomizer.dicon, Logger.java:231
> > 2010/10/06 13:15:29.893, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=default
> > -customizer.dicon, Logger.java:231
> > 2010/10/06 13:15:29.913, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=customi
> > zer.dicon, Logger.java:231
> > 2010/10/06 13:15:29.913, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$9!#(Bpath=creator.d
> > icon, Logger.java:231
> > 2010/10/06 13:15:29.933, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=creator
> > .dicon, Logger.java:231
> > 2010/10/06 13:15:29.953, DEBUG [main], S2Container$B$r:[E-MAIL ADDRESS DELETED]$7$^$7$?!#(Bpath=cooldep
> > loy-autoregister.dicon, Logger.java:231
> > 2010/10/06 13:15:30.003, INFO ?[main], ...Initializing DBFlute components!, DB
> > FluteInitializer.java:28
> > 2010/10/06 13:15:30.003, INFO ?[main], ...Initializing DBFlute components!, DB
> > FluteInitializer.java:28
> > 2010/10/06 13:15:30.023, INFO ?[main], ...Closing the sqlLogRegistry., TnSqlLo
> > gRegistry.java:145
> > 2010/10/06 13:15:30.023, INFO ?[main], ...Closing the sqlLogRegistry., TnSqlLo
> > gRegistry.java:145
> > 2010/10/06 13:15:30.043, INFO ?[main], ...Locking the configuration of DBFlute
> > !, DBFluteConfig.java:307
> > 2010/10/06 13:15:30.043, INFO ?[main], ...Locking the configuration of DBFlute
> > !, DBFluteConfig.java:307
> > 2010/10/06 13:15:30.143, DEBUG [main], $B%/%i%9(B(org.hoge.sampleBatch.service.imp
> > l.Sample01ServiceImpl[sample01Service])$B$N%3%s%]!<%M%s%HDj5A$rEPO?$7$^$9(B, Logge
> > r.java:231
> > 2010/10/06 13:15:30.774, DEBUG [main], ...Setting up column columns of hogehog
> > e_MASTER before INSERT!, ImplementedCommonColumnAutoSetupper.java:107
> > 2010/10/06 13:15:30.774, DEBUG [main], ...Setting up column columns of hogehog
> > e_MASTER before INSERT!, ImplementedCommonColumnAutoSetupper.java:107
> > 2010/10/06 13:15:30.924, DEBUG [main], ...Initializing sqlExecution for the ke
> > y 'hogehoge_MASTER:insert(hogehogeMaster)', XLog.java:38
> > 2010/10/06 13:15:30.924, DEBUG [main], ...Initializing sqlExecution for the ke
> > y 'hogehoge_MASTER:insert(hogehogeMaster)', XLog.java:38
> > 2010/10/06 13:15:31.715, DEBUG [main], $BJ*M}E*$J%3%M%/%7%g%s$r<hF@$7$^$7$?(B, Log
> > ger.java:231
> > 2010/10/06 13:15:31.775, DEBUG [main], $[E-MAIL ADDRESS DELETED]}E*$J%3%M%/%7%g%s$r<hF@$7$^$7$?!#(Btx=
> > null, Logger.java:231
> > 2010/10/06 13:15:31.825, DEBUG [main], $[E-MAIL ADDRESS DELETED]}E*$J%3%M%/%7%g%s$rJD$8$^$7$?!#(Btx=nu
> > ll, Logger.java:231
> > 2010/10/06 13:15:31.865, DEBUG [main], SqlExecution Initialization Cost: [00m0
> > 0s941ms], XLog.java:38
> > 2010/10/06 13:15:31.865, DEBUG [main], SqlExecution Initialization Cost: [00m0
> > 0s941ms], XLog.java:38
> > 2010/10/06 13:15:31.865, DEBUG [main], /======================================
> > ======================================, XLog.java:38
> > 2010/10/06 13:15:31.865, DEBUG [main], /======================================
> > ======================================, XLog.java:38
> > 2010/10/06 13:15:31.865, DEBUG [main],
> > ? ? ? ? ? ? ? hogehogeMasterBhv.insert(), XLog.java:38
> > 2010/10/06 13:15:31.865, DEBUG [main],
> > ? ? ? ? ? ? ? hogehogeMasterBhv.insert(), XLog.java:38
> > 2010/10/06 13:15:31.865, DEBUG [main],
> > ? ? ? ? ? ? ? ======================/, XLog.java:38
> > 2010/10/06 13:15:31.865, DEBUG [main],
> > ? ? ? ? ? ? ? ======================/, XLog.java:38
> > 2010/10/06 13:15:31.895, DEBUG [main], Sample01ServiceImpl.hogeInsert():41 ->
> > ..., XLog.java:38
> > 2010/10/06 13:15:31.895, DEBUG [main], Sample01ServiceImpl.hogeInsert():41 ->
> > ..., XLog.java:38
> > 2010/10/06 13:15:31.895, DEBUG [main], $[E-MAIL ADDRESS DELETED]}E*$J%3%M%/%7%g%s$r<hF@$7$^$7$?!#(Btx=
> > null, Logger.java:231
> > 2010/10/06 13:15:31.936, DEBUG [main],
> > insert into hogehoge_MASTER (hogehogeID, DOCID, INS_DATE_TIME, INS_USER_CODE,
> > INS_PROCESS, UPD_DATE_TIME, UPD_USER_CODE, UPD_PROCESS, VERSION_NO)
> > ?values ('11111', '33333', timestamp '2010-10-06 13:15:30.674', 'BATCH', 'SAMP
> > LE', timestamp '2010-10-06 13:15:30.674', 'BATCH', 'SAMPLE', 0), QLog.java:38
> > 2010/10/06 13:15:31.936, DEBUG [main],
> > insert into hogehoge_MASTER (hogehogeID, DOCID, INS_DATE_TIME, INS_USER_CODE,
> > INS_PROCESS, UPD_DATE_TIME, UPD_USER_CODE, UPD_PROCESS, VERSION_NO)
> > ?values ('11111', '33333', timestamp '2010-10-06 13:15:30.674', 'BATCH', 'SAMP
> > LE', timestamp '2010-10-06 13:15:30.674', 'BATCH', 'SAMPLE', 0), QLog.java:38
> > org.seasar.dbflute.exception.EntityAlreadyExistsException: Look! Read the mess
> > age below.
> > /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> > The entity already exists on the database!
> >
> > [Advice]
> > Please confirm the primary key whether it already exists on the database.
> > And confirm the unique constraint for other columns.
> >
> > [SQLState]
> > 23000
> >
> > [ErrorCode]
> > 1
> >
> > [SQLException]
> > org.seasar.framework.exception.SSQLException
> > [ESSR0072]SQL$B$GNc30(B(SQL=[insert into hogehoge_MASTER (hogehogeID, DOCID, INS_D
> > ATE_TIME, INS_USER_CODE, INS_PROCESS, UPD_DATE_TIME, UPD_USER_CODE, UPD_PROCES
> > S, VERSION_NO)
> > ?values (?, ?, ?, ?, ?, ?, ?, ?, ?)], Message=[1], ErrorCode=23000, SQLState={
> > 3})$B$,H/@8$7$^$7$?(B
> >
> > [NextException]
> > java.sql.SQLException
> > ORA-00001: $B0l0U@)Ls(B(TEST.hogehoge_MASTER_PK)$B$KH?$7$F$$$^$9(B
> >
> > [Behavior]
> > Sample01ServiceImpl.hogeInsert():41 -> hogehogeMasterBhv.insert()...
> >
> > [Statement]
> > org.seasar.extension.jdbc.impl.PreparedStatementWrapper
> >
> > [Display SQL]
> > insert into hogehoge_MASTER (hogehogeID, DOCID, INS_DATE_TIME, INS_USER_CODE,
> > INS_PROCESS, UPD_DATE_TIME, UPD_USER_CODE, UPD_PROCESS, VERSION_NO)
> > ?values ('11111', '33333', timestamp '2010-10-06 13:15:30.674', 'BATCH', 'SAMP
> > LE', timestamp '2010-10-06 13:15:30.674', 'BATCH', 'SAMPLE', 0)
> > * * * * * * * * * */
> > ? ? ? ?at org.seasar.dbflute.resource.SQLExceptionHandler.throwEntityAlreadyExistsEx
> > ception(SQLExceptionHandler.java:132)
> > ? ? ? ?at org.seasar.dbflute.resource.SQLExceptionHandler.handleSQLException(SQLExce
> > ptionHandler.java:55)
> > ? ? ? ?at org.seasar.dbflute.s2dao.sqlhandler.TnBasicHandler.handleSQLException(TnBa
> > sicHandler.java:235)
> > ? ? ? ?at org.seasar.dbflute.s2dao.sqlhandler.TnBasicHandler.executeUpdate(TnBasicHa
> > ndler.java:275)
> > ? ? ? ?at org.seasar.dbflute.s2dao.sqlhandler.TnAbstractAutoHandler.execute(TnAbstra
> > ctAutoHandler.java:87)
> > ? ? ? ?at org.seasar.dbflute.s2dao.sqlhandler.TnAbstractAutoHandler.execute(TnAbstra
> > ctAutoHandler.java:69)
> > ? ? ? ?at org.seasar.dbflute.s2dao.sqlcommand.TnInsertAutoDynamicCommand.execute(TnI
> > nsertAutoDynamicCommand.java:64)
> > ? ? ? ?at org.seasar.dbflute.bhv.core.BehaviorCommandInvoker.executeSql(BehaviorComm
> > andInvoker.java:321)
> > ? ? ? ?at org.seasar.dbflute.bhv.core.BehaviorCommandInvoker.dispatchInvoking(Behavi
> > orCommandInvoker.java:175)
> > ? ? ? ?at org.seasar.dbflute.bhv.core.BehaviorCommandInvoker.invoke(BehaviorCommandI
> > nvoker.java:141)
> > ? ? ? ?at org.seasar.dbflute.bhv.AbstractBehaviorReadable.invoke(AbstractBehaviorRea
> > dable.java:886)
> > ? ? ? ?at org.hogehoge.sample.dbflute.bsbhv.BshogehogeMasterBhv.delegateInsert(Bshog
> > ehogeMasterBhv.java:492)
> > ? ? ? ?at org.hogehoge.sample.dbflute.bsbhv.BshogehogeMasterBhv.insert(BshogehogeMas
> > terBhv.java:269)
> > ? ? ? ?at org.hoge.sampleBatch.service.impl.Sample01ServiceImpl.hogeInsert(Sample01S
> > erviceImpl.java:41)
> > ? ? ? ?at org.hoge.sampleBatch.sample01.Main.mainProcedure(Main.java:67)
> > ? ? ? ?at org.hoge.sampleBatch.sample01.Main.main(Main.java:44)
> > Caused by: org.seasar.framework.exception.SSQLException: [ESSR0072]SQL$B$GNc30(B(S
> > QL=[insert into hogehoge_MASTER (hogehogeID, DOCID, INS_DATE_TIME, INS_USER_CO
> > DE, INS_PROCESS, UPD_DATE_TIME, UPD_USER_CODE, UPD_PROCESS, VERSION_NO)
> > ?values (?, ?, ?, ?, ?, ?, ?, ?, ?)], Message=[1], ErrorCode=23000, SQLState={
> > 3})$B$,H/@8$7$^$7$?(B
> > ? ? ? ?at org.seasar.extension.jdbc.impl.PreparedStatementWrapper.wrapException(Prep
> > aredStatementWrapper.java:72)
> > ? ? ? ?at org.seasar.extension.jdbc.impl.PreparedStatementWrapper.wrapException(Prep
> > aredStatementWrapper.java:67)
> > ? ? ? ?at org.seasar.extension.jdbc.impl.PreparedStatementWrapper.executeUpdate(Prep
> > aredStatementWrapper.java:91)
> > ? ? ? ?at org.seasar.dbflute.s2dao.sqlhandler.TnBasicHandler.executeUpdate(TnBasicHa
> > ndler.java:273)
> > ? ? ? ?... 12 more
> > Caused by: java.sql.SQLException: ORA-00001: $B0l0U@)Ls(B(TEST.hogehoge_MASTER_PK)
> > $B$KH?$7$F$$$^$9(B
> >
> > $BE:IU%U%!%$%k(B
> >
> >
> > _______________________________________________
> > Seasar-user mailing list
> > [E-MAIL ADDRESS DELETED]
> > https://ml.seasar.org/mailman/listinfo/seasar-user
> >
> >
> _______________________________________________
> Seasar-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-user

      _/_/     $B9b66!!?-90(B(Nobuhiro Takahashi,)$B!#!&(B:*:$B!&!,(B'$B!z(B,$B!#!&(B:*:$B!&!,(B'$B!y(B
     _/_/       $B7HBS!'(B090-9376-2353
    _/_/        Nifty ID FZF00121
   _/_/         E-mail  <[E-MAIL ADDRESS DELETED]>
  _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/



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