[Seasar-user:20414] Re: 【S2Dao-CodeGen】自動生成したDAOのfindメソッドで例外発生

Takeshi Motegi [E-MAIL ADDRESS DELETED]
2010年 12月 8日 (水) 20:53:24 JST


大中(せと)さま

ご返信ありがとうございます!

codegen-libについては、他のライブラリと同様にWEB-INF/libの下に
置いているので大丈夫だとは思いますが。。。それでも誤作動させる
要因が何かあるのかも、ということですね。

ちなみに、S2関連のライブラリは以下を使用しています。
・s2-dao-1.0.51.jar
・s2-dao-tiger-1.0.51.jar
・s2-extension-2.4.43.jar
・s2-framework-2.4.43.jar
・s2-tiger-2.4.43.jar
・codegen-lib-0.4.1.jar

※例外の全文は以下になります。
===============
2010-12-08 20:38:24,187 [http-8080-1] DEBUG 
org.seasar.framework.aop.interceptors.TraceInterceptor - END 
example.dao.DepartmentDao#getAllDepartment() 
Throwable:org.seasar.dao.MethodSetupFailureRuntimeException: 
[EDAO0019]example.dao.DepartmentDaoのfindメソッドの初期化時に例外が発生しました。理由はorg.seasar.dao.MethodSetupFailureRuntimeException: 
[EDAO0019]example.dao.DepartmentCoreのfindメソッドの初期化時に例外が発生しました。理由はorg.seasar.extension.jdbc.ColumnNotFoundRuntimeException: [ESSR0068]テーブル 
(department)のカラム(condition)が見つかりません
2010-12-08 20:38:24,187 [http-8080-1] WARN 
org.apache.struts.action.RequestProcessor - 処理できない例外がスローされました: class org.seasar.dao.MethodSetupFailureRuntimeException
2010/12/08 20:38:24 org.apache.catalina.core.StandardWrapperValve invoke
致命的: サーブレット action のServlet.service()が例外を投げました
org.seasar.extension.jdbc.ColumnNotFoundRuntimeException: [ESSR0068]テーブル(department)のカラム(condition)が見つかりません
 at 
org.seasar.dao.impl.BeanMetaDataImpl.convertFullColumnName(BeanMetaDataImpl.java:223)
 at 
org.seasar.dao.impl.DaoMetaDataImpl.createAutoSelectSql(DaoMetaDataImpl.java:875)
 at 
org.seasar.dao.impl.DaoMetaDataImpl.setupNonQuerySelectMethodByArgs(DaoMetaDataImpl.java:796)
 at 
org.seasar.dao.impl.DaoMetaDataImpl.setupNonQuerySelectMethodByAuto(DaoMetaDataImpl.java:752)
 at 
org.seasar.dao.impl.DaoMetaDataImpl.setupSelectMethodByAuto(DaoMetaDataImpl.java:723)
 at 
org.seasar.dao.impl.DaoMetaDataImpl.setupMethodByAuto(DaoMetaDataImpl.java:389)
 at 
org.seasar.dao.impl.DaoMetaDataImpl.setupMethod(DaoMetaDataImpl.java:216)
 at 
org.seasar.dao.impl.DaoMetaDataImpl.setupMethodByInterfaces(DaoMetaDataImpl.java:342)
 at 
org.seasar.dao.impl.DaoMetaDataImpl.setupMethod(DaoMetaDataImpl.java:201)
 at 
org.seasar.dao.impl.DaoMetaDataImpl.setupMethod(DaoMetaDataImpl.java:187)
 at 
org.seasar.dao.impl.DaoMetaDataImpl.setupSqlCommand(DaoMetaDataImpl.java:171)
 at org.seasar.dao.impl.DaoMetaDataImpl.initialize(DaoMetaDataImpl.java:162)
 at 
org.seasar.dao.impl.DaoMetaDataFactoryImpl.createDaoMetaData(DaoMetaDataFactoryImpl.java:167)
 at 
org.seasar.dao.impl.DaoMetaDataFactoryImpl.getDaoMetaData(DaoMetaDataFactoryImpl.java:131)
 at 
org.seasar.dao.interceptors.S2DaoInterceptor.invoke(S2DaoInterceptor.java:51)
 at 
org.seasar.dao.pager.PagerS2DaoInterceptorWrapper.invoke(PagerS2DaoInterceptorWrapper.java:71)
 at 
example.dao.DepartmentDao$$EnhancedByS2AOP$$e9927a$$MethodInvocation$$getAllDepartment4.proceed(MethodInvocationClassGenerator.java)
 at 
org.seasar.framework.aop.interceptors.TraceInterceptor.invoke(TraceInterceptor.java:73)
 at 
example.dao.DepartmentDao$$EnhancedByS2AOP$$e9927a$$MethodInvocation$$getAllDepartment4.proceed(MethodInvocationClassGenerator.java)
 at 
example.dao.DepartmentDao$$EnhancedByS2AOP$$e9927a.getAllDepartment(DepartmentDao$$EnhancedByS2AOP$$e9927a.java)
 at example.action.HelloWorldAction.execute(HelloWorldAction.java:29)
 at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at example.filter.EncodingFileter.doFilter(EncodingFileter.java:21)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
 at 
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
 at 
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)
 at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527)
 at java.lang.Thread.run(Thread.java:595)

以上、よろしくお願いいたします。

茂木




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