Letractively / micrite

Automatically exported from code.google.com/p/micrite
GNU General Public License v3.0
1 stars 0 forks source link

AutoTest org.gaixie.micrite.crm.action.UserActionTest Error #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. 进如项目的根目录
2. mvn test

What is the expected output? What do you see instead?

15:00:07,093  WARN JDBCExceptionReporter:77 - SQL Error: 0, SQLState: null
15:00:07,094 ERROR JDBCExceptionReporter:78 - Cannot create
PoolableConnectionFactory (Failed to start database
'/usr/local/workspace/gaixie/micrite/modules/micrite-common/target/micrite_db',
see the next exception for details.)
15:00:07,095  WARN JDBCExceptionReporter:77 - SQL Error: 0, SQLState: null
15:00:07,096 ERROR JDBCExceptionReporter:78 - Cannot create
PoolableConnectionFactory (Failed to start database
'/usr/local/workspace/gaixie/micrite/modules/micrite-common/target/micrite_db',
see the next exception for details.)
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 3.027 sec
<<< FAILURE!

Original issue reported on code.google.com by bit...@gmail.com on 5 Mar 2009 at 7:10

GoogleCodeExporter commented 8 years ago
bug原因:
嵌入式derby本身只允许一个连接访问。
bug分析:
在项目install的时候,common模块在test阶段运行maven-sql插件进行
建库等操作,此时已经打开了一个
数据库连接,但没有关闭。当crm模块在test阶段运行测试用例�
��时候又试图打开一个数据库连接,这时就会
报exception,描述说数据库实例已经存在。
修改办法:
在common模块的pom中的maven-sql配置中加入了关闭数据库连接操��
�。

Original comment by xingzhao...@gmail.com on 11 Mar 2009 at 3:33

GoogleCodeExporter commented 8 years ago

Original comment by bit...@gmail.com on 20 Mar 2009 at 12:42

GoogleCodeExporter commented 8 years ago

Original comment by bit...@gmail.com on 20 Mar 2009 at 12:43

GoogleCodeExporter commented 8 years ago

Original comment by bit...@gmail.com on 20 Mar 2009 at 12:57

GoogleCodeExporter commented 8 years ago
test {{{issue-1}}}

Original comment by bit...@gmail.com on 26 Mar 2009 at 3:39

GoogleCodeExporter commented 8 years ago
issue:2

Original comment by bit...@gmail.com on 26 Mar 2009 at 3:41

GoogleCodeExporter commented 8 years ago
[issue:2 test issue link]

Original comment by bit...@gmail.com on 26 Mar 2009 at 3:43

GoogleCodeExporter commented 8 years ago
issue 2

Original comment by bit...@gmail.com on 26 Mar 2009 at 3:45

GoogleCodeExporter commented 8 years ago

Original comment by bit...@gmail.com on 25 May 2009 at 10:45