[Seasar-user:12727] dbfluteでのDBアクセスについて
[E-MAIL ADDRESS DELETED]
[E-MAIL ADDRESS DELETED]
2008年 2月 3日 (日) 22:51:11 JST
お世話になります。田村と申します。
DBfliuteの設定の件でお伺いしたいのですが、
jdbc.bat,generate.batを実行して自動生成されたクラスを利用して
DBfluteでデータアクセスを実行してもNullpointerが出力されます。
色々試してみましたがどうしても実行できません。
お力添えをお願いいたします。
★環境
teeda + s2dao
S2dao 1.0.47
dbflute 0.62
DB;postgres8.2
ApplicationServer:Tomcat5.5
★appdicon
<!--<include path="dao.dicon"/>-->
<include path="dbflute.dicon"/>
★<component name="xaDataSource"
class="org.seasar.extension.dbcp.impl.XADataSourceImpl">
<property name="driverClassName">
"org.postgresql.Driver"
</property>
<property name="URL">
<!-- "jdbc:postgresql://localhost/teeda-sns"-->
"jdbc:postgresql://localhost/postgres"
</property>
<property name="user">"postgres"</property>
<property name="password">"agnie"</property>
</component>
★Bhvの実行部分(Pageクラス(MainPage.java))
public ProfilesBhv bhv;
中略…
final ProfilesCB cb = new ProfilesCB();
//全件検索
final ListResultBean<Profiles> a = bhv.selectList(cb);
★エラーメッセージ
java.lang.NullPointerException
at tknnnnnn.web.main.MainPage.doProfile(MainPage.java:49)
at tknnnnnn.web.main.MainPage$$EnhancedByS2AOP$$1d9ddba.$$doProfile$$invokeSuperMethod$$(MainPage$$EnhancedByS2AOP$$1d9ddba.java)
at tknnnnnn.web.main.MainPage$$EnhancedByS2AOP$$1d9ddba$$MethodInvocation$$doProfile2.proceed(MethodInvocationClassGenerator.java)
at org.seasar.extension.tx.DefaultTransactionCallback.execute(DefaultTransactionCallback.java:58)
at org.seasar.extension.tx.adapter.JTATransactionManagerAdapter.required(JTATransactionManagerAdapter.java:65)
at org.seasar.extension.tx.RequiredInterceptor.invoke(RequiredInterceptor.java:41)
at tknnnnnn.web.main.MainPage$$EnhancedByS2AOP$$1d9ddba$$MethodInvocation$$doProfile2.proceed(MethodInvocationClassGenerator.java)
at org.seasar.framework.aop.interceptors.ThrowsInterceptor.invoke(ThrowsInterceptor.java:77)
at tknnnnnn.web.main.MainPage$$EnhancedByS2AOP$$1d9ddba$$MethodInvocation$$doProfile2.proceed(MethodInvocationClassGenerator.java)
at org.seasar.framework.aop.interceptors.TraceInterceptor.invoke(TraceInterceptor.java:73)
at tknnnnnn.web.main.MainPage$$EnhancedByS2AOP$$1d9ddba$$MethodInvocation$$doProfile2.proceed(MethodInvocationClassGenerator.java)
at tknnnnnn.web.main.MainPage$$EnhancedByS2AOP$$1d9ddba.doProfile(MainPage$$EnhancedByS2AOP$$1d9ddba.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.seasar.framework.util.MethodUtil.invoke(MethodUtil.java:93)
at org.seasar.framework.beans.impl.BeanDescImpl.invoke(BeanDescImpl.java:213)
at org.seasar.teeda.extension.html.impl.HtmlComponentInvokerImpl.invoke(HtmlComponentInvokerImpl.java:159)
at org.seasar.teeda.extension.html.impl.HtmlActionListener.processAction(HtmlActionListener.java:62)
at javax.faces.component.UICommand.broadcast(UICommand.java:149)
at org.seasar.teeda.extension.component.html.THtmlCommandButton.broadcast(THtmlCommandButton.java:61)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:192)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:117)
at org.seasar.teeda.core.lifecycle.impl.InvokeApplicationPhase.executePhase(InvokeApplicationPhase.java:29)
at org.seasar.teeda.core.lifecycle.AbstractPhase.execute(AbstractPhase.java:57)
at org.seasar.teeda.core.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:97)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.seasar.framework.container.hotdeploy.HotdeployFilter.doFilter(HotdeployFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:77)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:69)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Unknown Source)
よろしくお願いいたします。
_________________________________________________________________
「初音ミク」の妹分「鏡音リン」をLive Search で画像検索!
http://search.live.com/images/results.aspx?q=%E9%8F%A1%E9%9F%B3%E3%83%AA%E3%83%B3&FORM=MGDEAA
-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: http://ml.seasar.org/archives/seasar-user/attachments/20080203/0a577675/attachment-0001.html
Seasar-user メーリングリストの案内