[Seasar-user:6031] s2DaoでDaoのテストでエラー

satoh [E-MAIL ADDRESS DELETED]
2007年 2月 5日 (月) 20:27:19 JST


佐藤徹太郎です。お世話になっております。



Dolteng 0.16.1でChuraProject(Teeda+S2Dao)を作り、DaoをJUnitでテストしたとこ
ろ、

エラーがでます。

障害トレースには下記のように表示されます。



org.seasar.framework.exception.SQLRuntimeException: [ESSR0071]SQLで例外
(ErrorCode=90067, SQLState=90067)が発生しました。理由は
org.h2.jdbc.JdbcSQLException: Connection is broken [90067-30]

              at
org.seasar.extension.jdbc.util.DataSourceUtil.getConnection(DataSourceUtil.j
ava:38)

              at
org.seasar.dao.impl.DaoMetaDataImpl.initialize(DaoMetaDataImpl.java:191)

              at
org.seasar.dao.impl.DaoMetaDataFactoryImpl.createDaoMetaData(DaoMetaDataFact
oryImpl.java:140)

              at
org.seasar.dao.impl.DaoMetaDataFactoryImpl.getDaoMetaData(DaoMetaDataFactory
Impl.java:109)

              at
org.seasar.dao.interceptors.S2DaoInterceptor.invoke(S2DaoInterceptor.java:51
)

              at
book.chura.dao.BookInfoDao$$EnhancedByS2AOP$$e1dac2$$MethodInvocation$$findB
ookPosition0.proceed(MethodInvocationClassGenerator.java)

              at
org.seasar.framework.aop.interceptors.TraceInterceptor.invoke(TraceIntercept
or.java:59)

              at
book.chura.dao.BookInfoDao$$EnhancedByS2AOP$$e1dac2$$MethodInvocation$$findB
ookPosition0.proceed(MethodInvocationClassGenerator.java)

              at
book.chura.dao.BookInfoDao$$EnhancedByS2AOP$$e1dac2.findBookPosition(BookInf
oDao$$EnhancedByS2AOP$$e1dac2.java)

              at
book.chura.dao.ReturnBookDaoTest.testFindBookPosition(ReturnBookDaoTest.java
:36)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

              at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

              at java.lang.reflect.Method.invoke(Method.java:585)

              at junit.framework.TestCase.runTest(TestCase.java:164)

              at
org.seasar.framework.unit.S2FrameworkTestCase.doRunTest(S2FrameworkTestCase.
java:305)

              at
org.seasar.extension.unit.S2TestCase.doRunTest(S2TestCase.java:92)

              at
org.seasar.framework.unit.S2FrameworkTestCase.runBare(S2FrameworkTestCase.ja
va:190)

              at junit.framework.TestResult$1.protect(TestResult.java:106)

              at
junit.framework.TestResult.runProtected(TestResult.java:124)

              at junit.framework.TestResult.run(TestResult.java:109)

              at junit.framework.TestCase.run(TestCase.java:120)

              at junit.framework.TestSuite.runTest(TestSuite.java:230)

              at junit.framework.TestSuite.run(TestSuite.java:225)

              at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3T
estReference.java:128)

              at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:3
8)

              at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu
nner.java:460)

              at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu
nner.java:673)

              at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.
java:386)

              at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner
.java:196)

Caused by: org.h2.jdbc.JdbcSQLException: Connection is broken [90067-30]

              at org.h2.message.Message.getSQLException(Message.java:67)

              at org.h2.message.Message.getSQLException(Message.java:49)

              at org.h2.message.Message.getSQLException(Message.java:88)

              at org.h2.engine.SessionRemote.checkClosed(SessionRemote.java:
231)

              at org.h2.engine.SessionRemote.connect(SessionRemote.java:203)

              at org.h2.engine.SessionRemote.<init>(SessionRemote.java:150)

              at
org.h2.engine.SessionRemote.createSession(SessionRemote.java:145)

              at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:897)

              at org.h2.Driver.connect(Driver.java:52)

              at
java.sql.DriverManager.getConnection(DriverManager.java:525)

              at
java.sql.DriverManager.getConnection(DriverManager.java:171)

              at
org.seasar.extension.dbcp.impl.XADataSourceImpl.getXAConnection(XADataSource
Impl.java:95)

              at
org.seasar.extension.dbcp.impl.XADataSourceImpl.getXAConnection(XADataSource
Impl.java:85)

              at
org.seasar.extension.dbcp.impl.ConnectionPoolImpl.createConnection(Connectio
nPoolImpl.java:200)

              at
org.seasar.extension.dbcp.impl.ConnectionPoolImpl.checkOut(ConnectionPoolImp
l.java:162)

              at
org.seasar.extension.dbcp.impl.DataSourceImpl.getConnection(DataSourceImpl.j
ava:46)

              at
org.seasar.extension.jdbc.util.DataSourceUtil.getConnection(DataSourceUtil.j
ava:36)

              ... 29 more



コンソールには下記が表示されます。



DEBUG 2007-02-05 19:46:34,656 [main] クラス
(book.chura.dao.BookInfoDao[bookInfoDao])のコンポーネント定義を登録します

DEBUG 2007-02-05 19:46:34,718 [main] クラス
(book.chura.dao.RentInfoDao[rentInfoDao])のコンポーネント定義を登録します

DEBUG 2007-02-05 19:46:34,750 [main] BEGIN
book.chura.dao.BookInfoDao#findBookPosition(039911174)

DEBUG 2007-02-05 19:46:37,812 [main] END
book.chura.dao.BookInfoDao#findBookPosition(039911174) Throwable:org.seasar.
framework.exception.SQLRuntimeException: [ESSR0071]SQLで例外
(ErrorCode=90067, SQLState=90067)が発生しました。理由は
org.h2.jdbc.JdbcSQLException: Connection is broken [90067-30]



どなたか、このエラーの対処方法をご存知の方おられませんでしょうか?

宜しくお願いいたします。



-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: http://ml.seasar.org/archives/seasar-user/attachments/20070205/2b11d1b5/attachment.html 


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