|
追加自己レスです。
JDBC.diconのHSQLDBに関する箇所を以下のように変更したら connection is broken は発生しなくなりました。 ちなみにJDBC.diconのHSQLDBに関する抜粋箇所は以下です。 <!-- for HSQLDB --> <component name="xaDataSource" class="org.seasar.extension.dbcp.impl.XADataSourceImpl"> <property name="driverClassName"> "org.hsqldb.jdbcDriver" </property> <property name="URL"> "jdbc:hsqldb:mem:." </property> <property name="user">"sa"</property> <property name="password">""</property> </component>
が、また新たに以下のエラーが発生しました。 log4j:WARN No appenders could be found for logger (org.seasar.framework.container.factory.S2ContainerFactory). log4j:WARN Please initialize the log4j system properly. Exception in thread "main" org.seasar.framework.exception.SQLRuntimeException: [ESSR0072]SQLで例外(SQL=[SELECT * FROM emp], Message=[[ESSR0072]SQLで例外(SQL=[SELECT * FROM emp], Message=[Table not found in statement [SELECT * FROM emp]], ErrorCode=-22, SQLState=S0002)が発生しました : [SQLで例外(Message=[Table not found in statement [SELECT * FROM emp]], ErrorCode=-22, SQLState=S0002)が発生しました。], [Table not found in statement [SELECT * FROM emp]], ErrorCode=-22, SQLState=S0002)が発生しました at org.seasar.extension.jdbc.util.ConnectionUtil.prepareStatement(ConnectionUtil.java:92) at org.seasar.extension.jdbc.impl.BasicStatementFactory.createPreparedStatement(BasicStatementFactory.java:39) at org.seasar.extension.jdbc.impl.ConfigurableStatementFactory.createPreparedStatement(ConfigurableStatementFactory.java:67) at org.seasar.extension.jdbc.impl.BasicHandler.prepareStatement(BasicHandler.java:171) at org.seasar.extension.jdbc.impl.BasicSelectHandler.prepareStatement(BasicSelectHandler.java:232) at org.seasar.extension.jdbc.impl.BasicSelectHandler.execute(BasicSelectHandler.java:208) at org.seasar.extension.jdbc.impl.BasicSelectHandler.execute(BasicSelectHandler.java:184) at org.seasar.extension.jdbc.impl.BasicSelectHandler.execute(BasicSelectHandler.java:177) at src.Main.main(Main.java:30) Caused by: org.seasar.framework.exception.SSQLException: [ESSR0072]SQLで例外(SQL=[SELECT * FROM emp], Message=[Table not found in statement [SELECT * FROM emp]], ErrorCode=-22, SQLState=S0002)が発生しました at org.seasar.extension.dbcp.impl.ConnectionWrapperImpl.wrapException(ConnectionWrapperImpl.java:544) at org.seasar.extension.dbcp.impl.ConnectionWrapperImpl.prepareStatement(ConnectionWrapperImpl.java:162) at org.seasar.extension.jdbc.util.ConnectionUtil.prepareStatement(ConnectionUtil.java:90) ... 8 more Caused by: java.sql.SQLException: Table not found in statement [SELECT * FROM emp] at org.hsqldb.jdbc.Util.throwError(Unknown Source) at org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source) at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source) at org.seasar.extension.dbcp.impl.ConnectionWrapperImpl.prepareStatement(ConnectionWrapperImpl.java:158) ... 9 more
以上、何らかご教示いただけると助かります。 宜しくお願い致します。
|