Maven 测试未完成

发布于 2024-11-15 21:07:38 字数 12307 浏览 2 评论 0原文

当我运行 MVN测试 Maven 成功运行所有测试,然后进入等待无限循环 我在任务管理器中看到一个 java 进程,我必须在 maven 返回并显示此错误消息

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:33.949s
[INFO] Finished at: Fri Jun 17 14:50:01 EDT 2011
[INFO] Final Memory: 5M/247M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
4:test (default-test) on project EDIFileHandling: There are test failures.
[ERROR]
[ERROR] Please refer to c:\code\target\surefire-reports for the individual test
results.

之前终止它,感谢任何帮助。

谢谢

R

<代码> C:\Users\Raghuveer.Rao>jstack 7256 2011-06-17 15:24:55 完整线程转储 Java HotSpot(TM) 客户端 VM(20.0-b11 混合模式,共享):

"Thread-2" prio=6 tid=0x03ed3000 nid=0x14d0 等待监视器条目 [0x04ddf00 0] java.lang.Thread.State:BLOCKED(在对象监视器上) 在 org.hsqldb.Session.close(来源未知) - 等待锁定<0x23ba76f0> (一个 org.hsqldb.Session) 在 org.hsqldb.SessionManager.closeAllSessions(来源未知) - 锁定<0x292ce828> (一个 org.hsqldb.SessionManager) 在 org.hsqldb.Database.close(来源未知) 在 org.hsqldb.StatementCommand.getResult(来源未知) 在 org.hsqldb.StatementCommand.execute(来源未知) 在 org.hsqldb.Session.executeCompiledStatement(来源未知) 在 org.hsqldb.Session.executeDirectStatement(来源未知) 在 org.hsqldb.Session.execute(来源未知) - 锁定<0x23b8efe8> (一个 org.hsqldb.Session) 在 org.hsqldb.jdbc.JDBCStatement.fetchResult(来源未知) 在 org.hsqldb.jdbc.JDBCStatement.execute(来源未知) - 锁定<0x23b90f30> (一个 org.hsqldb.jdbc.JDBC 语句) 在 org.springframework.jdbc.datasource.embedded.AbstractEmbeddedDatabase 配置器.shutdown(AbstractEmbeddedDatabaseConfigurer.java:42) 在 org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory。 shutdownDatabase(EmbeddedDatabaseFactory.java:184) 在 org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactoryB ean.destroy(EmbeddedDatabaseFactoryBean.java:57) 在 org.springframework.beans.factory.support.DisposableBeanAdapter.destr oy(DisposableBeanAdapter.java:184) 在 org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.destroyBean(DefaultSingletonBeanRegistry.java:487) 在 org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.destroySingleton(DefaultSingletonBeanRegistry.java:463) 在 org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.destroySingletons(DefaultSingletonBeanRegistry.java:431) - 锁定<0x2951f1c0> (一个java.util.LinkedHashMap) 在 org.springframework.context.support.AbstractApplicationContext.destro yBeans(AbstractApplicationContext.java:1048) 在 org.springframework.context.support.AbstractApplicationContext.doClos e(AbstractApplicationContext.java:1022) 在 org.springframework.context.support.AbstractApplicationContext$3.run( AbstractApplicationContext.java:940)

"Thread-1" prio=6 tid=0x03ed2c00 nid=0x1fe0 等待监视器条目 [0x04d8f00 0] java.lang.Thread.State:BLOCKED(在对象监视器上) 在 org.hsqldb.SessionManager.closeAllSessions(来源未知) - 等待锁定<0x292ce828> (一个 org.hsqldb.SessionManager) 在 org.hsqldb.Database.close(来源未知) 在 org.hsqldb.StatementCommand.getResult(来源未知) 在 org.hsqldb.StatementCommand.execute(来源未知) 在 org.hsqldb.Session.executeCompiledStatement(来源未知) 在 org.hsqldb.Session.executeDirectStatement(来源未知) 在 org.hsqldb.Session.execute(来源未知) - 锁定<0x23ba76f0> (一个 org.hsqldb.Session) 在 org.hsqldb.jdbc.JDBCStatement.fetchResult(来源未知) 在 org.hsqldb.jdbc.JDBCStatement.execute(来源未知) - 锁定<0x23ba9568> (一个 org.hsqldb.jdbc.JDBC 语句) 在 org.springframework.jdbc.datasource.embedded.AbstractEmbeddedDatabase 配置器.shutdown(AbstractEmbeddedDatabaseConfigurer.java:42) 在 org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory。 shutdownDatabase(EmbeddedDatabaseFactory.java:184) 在 org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactoryB ean.destroy(EmbeddedDatabaseFactoryBean.java:57) 在 org.springframework.beans.factory.support.DisposableBeanAdapter.destr oy(DisposableBeanAdapter.java:184) 在 org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.destroyBean(DefaultSingletonBeanRegistry.java:487) 在 org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.destroySingleton(DefaultSingletonBeanRegistry.java:463) 在 org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.destroySingletons(DefaultSingletonBeanRegistry.java:431) - 锁定<0x2910d510> (一个java.util.LinkedHashMap) 在 org.springframework.context.support.AbstractApplicationContext.destro yBeans(AbstractApplicationContext.java:1048) 在 org.springframework.context.support.AbstractApplicationContext.doClos e(AbstractApplicationContext.java:1022) 在 org.springframework.context.support.AbstractApplicationContext$3.run( AbstractApplicationContext.java:940)

“低内存检测器”守护进程 prio=6 tid=0x01bdac00 nid=0x1eb0 可运行 [0x000000 00] java.lang.Thread.State:可运行

“C1 CompilerThread0”守护进程 prio=10 tid=0x01bc8400 nid=0x18e8 等待条件 在 [0x00000000] java.lang.Thread.State:可运行

“附加监听器”守护进程 prio=10 tid=0x01bc5400 nid=0x1ac0 等待条件 [0x00000000] java.lang.Thread.State:可运行

“信号调度程序”守护进程 prio=10 tid=0x01bc2400 nid=0x1fbc 可运行 [0x0000000 0] java.lang.Thread.State:

Object.wait() 中的可运行“终结器”守护进程 prio=8 tid=0x01bbb800 nid=0x1c00 [0x03cdf000 ] java.lang.Thread.State:等待(在对象监视器上) 在 java.lang.Object.wait(本机方法) - 等待<0x290702b0> (java.lang.ref.ReferenceQueue$Lock) 在 java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118) - 锁定<0x290702b0> (java.lang.ref.ReferenceQueue$Lock) 在 java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134) 在 java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

“引用处理程序”守护进程 prio=10 tid=0x01bba000 nid=0x810 在 Object.wait() [0x 03c8f000] java.lang.Thread.State:等待(在对象监视器上) 在 java.lang.Object.wait(本机方法) - 等待<0x29070340> (java.lang.ref.Reference$Lock) 在 java.lang.Object.wait(Object.java:485) 在 java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) - 锁定<0x29070340> (java.lang.ref.Reference$Lock)

“main”prio=6 tid=0x00e29800 nid=0x1e20 in Object.wait() [0x001bf000] java.lang.Thread.State:等待(在对象监视器上) 在 java.lang.Object.wait(本机方法) - 等待<0x294c4300> (一个 org.springframework.context.support.Abstrac tApplicationContext$3) 在 java.lang.Thread.join(Thread.java:1186) - 锁定<0x294c4300> (一个 org.springframework.context.support.AbstractApp licationContext$3) 在 java.lang.Thread.join(Thread.java:1239) 在 java.lang.ApplicationShutdownHooks.runHooks(ApplicationShutdownHooks. 爪哇:79) 在 java.lang.ApplicationShutdownHooks$1.run(ApplicationShutdownHooks.jav 答:24) 在 java.lang.Shutdown.runHooks(Shutdown.java:79) 在 java.lang.Shutdown.sequence(Shutdown.java:123) 在 java.lang.Shutdown.exit(Shutdown.java:168) - 锁定<0x38b53ef8> (java.lang.Shutdown 的 java.lang.Class) 在 java.lang.Runtime.exit(Runtime.java:90) 在 java.lang.System.exit(System.java:904) 在 org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j ava:986)

“VM Thread” prio=10 tid=0x01b7e400 nid=0x1e10 runnable

“VM 定期任务线程” prio=10 tid=0x01bec800 nid=0x1bac 等待条件

JNI 全局引用:1776

发现一个 Java 级死锁:

“Thread -2”: 等待锁定监视器 0x0467c1cc(对象 0x23ba76f0,org.hsqldb.Session), 由“Thread-1”持有 “线程1”: 等待锁定监视器 0x01bbf56c(对象 0x292ce828,一个 org.hsqldb.SessionMan 老化), 的“Thread-2”Java 堆栈信息保存

它由上面列出的线程

: “Thread-2”: 在 org.hsqldb.Session.close(来源未知) - 等待锁定<0x23ba76f0> (一个 org.hsqldb.Session) 在 org.hsqldb.SessionManager.closeAllSessions(来源未知) - 锁定<0x292ce828> (一个 org.hsqldb.SessionManager) 在 org.hsqldb.Database.close(来源未知) 在 org.hsqldb.StatementCommand.getResult(来源未知) 在 org.hsqldb.StatementCommand.execute(来源未知) 在 org.hsqldb.Session.executeCompiledStatement(来源未知) 在 org.hsqldb.Session.executeDirectStatement(来源未知) 在 org.hsqldb.Session.execute(来源未知) - 锁定<0x23b8efe8> (一个 org.hsqldb.Session) 在 org.hsqldb.jdbc.JDBCStatement.fetchResult(来源未知) 在 org.hsqldb.jdbc.JDBCStatement.execute(来源未知) - 锁定<0x23b90f30> (一个 org.hsqldb.jdbc.JDBC 语句) 在 org.springframework.jdbc.datasource.embedded.AbstractEmbeddedDatabase 配置器.shutdown(AbstractEmbeddedDatabaseConfigurer.java:42) 在 org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory。 shutdownDatabase(EmbeddedDatabaseFactory.java:184) 在 org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactoryB ean.destroy(EmbeddedDatabaseFactoryBean.java:57) 在 org.springframework.beans.factory.support.DisposableBeanAdapter.destr oy(DisposableBeanAdapter.java:184) 在 org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.destroyBean(DefaultSingletonBeanRegistry.java:487) 在 org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.destroySingleton(DefaultSingletonBeanRegistry.java:463) 在 org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.destroySingletons(DefaultSingletonBeanRegistry.java:431) - 锁定<0x2951f1c0> (一个java.util.LinkedHashMap) 在 org.springframework.context.support.AbstractApplicationContext.destro yBeans(AbstractApplicationContext.java:1048) 在 org.springframework.context.support.AbstractApplicationContext.doClos e(AbstractApplicationContext.java:1022) 在 org.springframework.context.support.AbstractApplicationContext$3.run( AbstractApplicationContext.java:940) “线程1”: 在 org.hsqldb.SessionManager.closeAllSessions(来源未知) - 等待锁定<0x292ce828> (一个 org.hsqldb.SessionManager) 在 org.hsqldb.Database.close(来源未知) 在 org.hsqldb.StatementCommand.getResult(来源未知) 在 org.hsqldb.StatementCommand.execute(来源未知) 在 org.hsqldb.Session.executeCompiledStatement(来源未知) 在 org.hsqldb.Session.executeDirectStatement(来源未知) 在 org.hsqldb.Session.execute(来源未知) - 锁定<0x23ba76f0> (一个 org.hsqldb.Session) 在 org.hsqldb.jdbc.JDBCStatement.fetchResult(来源未知) 在 org.hsqldb.jdbc.JDBCStatement.execute(来源未知) - 锁定<0x23ba9568> (一个 org.hsqldb.jdbc.JDBC 语句) 在 org.springframework.jdbc.datasource.embedded.AbstractEmbeddedDatabase 配置器.shutdown(AbstractEmbeddedDatabaseConfigurer.java:42) 在 org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory。 shutdownDatabase(EmbeddedDatabaseFactory.java:184) 在 org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactoryB ean.destroy(EmbeddedDatabaseFactoryBean.java:57) 在 org.springframework.beans.factory.support.DisposableBeanAdapter.destr oy(DisposableBeanAdapter.java:184) 在 org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.destroyBean(DefaultSingletonBeanRegistry.java:487) 在 org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.destroySingleton(DefaultSingletonBeanRegistry.java:463) 在 org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.destroySingletons(DefaultSingletonBeanRegistry.java:431) - 锁定<0x2910d510> (一个java.util.LinkedHashMap) 在 org.springframework.context.support.AbstractApplicationContext.destro yBeans(AbstractApplicationContext.java:1048) 在 org.springframework.context.support.AbstractApplicationContext.doClos e(AbstractApplicationContext.java:1022) 在 org.springframework.context.support.AbstractApplicationContext$3.run( AbstractApplicationContext.java:940)

发现 1 个死锁。

C:\Users\Raghuveer.Rao>

<代码>

When i run a
mvn test
Maven runs all the tests successfully and then goes on a wait infinite loop
I see a java process in the task manager and I have to kill it before maven returns with this error message

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:33.949s
[INFO] Finished at: Fri Jun 17 14:50:01 EDT 2011
[INFO] Final Memory: 5M/247M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
4:test (default-test) on project EDIFileHandling: There are test failures.
[ERROR]
[ERROR] Please refer to c:\code\target\surefire-reports for the individual test
results.

Any help appreciated.

Thanks

R


C:\Users\Raghuveer.Rao>jstack 7256
2011-06-17 15:24:55
Full thread dump Java HotSpot(TM) Client VM (20.0-b11 mixed mode, sharing):

"Thread-2" prio=6 tid=0x03ed3000 nid=0x14d0 waiting for monitor entry [0x04ddf00
0]
java.lang.Thread.State: BLOCKED (on object monitor)
at org.hsqldb.Session.close(Unknown Source)
- waiting to lock <0x23ba76f0> (a org.hsqldb.Session)
at org.hsqldb.SessionManager.closeAllSessions(Unknown Source)
- locked <0x292ce828> (a org.hsqldb.SessionManager)
at org.hsqldb.Database.close(Unknown Source)
at org.hsqldb.StatementCommand.getResult(Unknown Source)
at org.hsqldb.StatementCommand.execute(Unknown Source)
at org.hsqldb.Session.executeCompiledStatement(Unknown Source)
at org.hsqldb.Session.executeDirectStatement(Unknown Source)
at org.hsqldb.Session.execute(Unknown Source)
- locked <0x23b8efe8> (a org.hsqldb.Session)
at org.hsqldb.jdbc.JDBCStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.JDBCStatement.execute(Unknown Source)
- locked <0x23b90f30> (a org.hsqldb.jdbc.JDBCStatement)
at org.springframework.jdbc.datasource.embedded.AbstractEmbeddedDatabase
Configurer.shutdown(AbstractEmbeddedDatabaseConfigurer.java:42)
at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory.
shutdownDatabase(EmbeddedDatabaseFactory.java:184)
at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactoryB
ean.destroy(EmbeddedDatabaseFactoryBean.java:57)
at org.springframework.beans.factory.support.DisposableBeanAdapter.destr
oy(DisposableBeanAdapter.java:184)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.destroyBean(DefaultSingletonBeanRegistry.java:487)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.destroySingleton(DefaultSingletonBeanRegistry.java:463)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.destroySingletons(DefaultSingletonBeanRegistry.java:431)
- locked <0x2951f1c0> (a java.util.LinkedHashMap)
at org.springframework.context.support.AbstractApplicationContext.destro
yBeans(AbstractApplicationContext.java:1048)
at org.springframework.context.support.AbstractApplicationContext.doClos
e(AbstractApplicationContext.java:1022)
at org.springframework.context.support.AbstractApplicationContext$3.run(
AbstractApplicationContext.java:940)

"Thread-1" prio=6 tid=0x03ed2c00 nid=0x1fe0 waiting for monitor entry [0x04d8f00
0]
java.lang.Thread.State: BLOCKED (on object monitor)
at org.hsqldb.SessionManager.closeAllSessions(Unknown Source)
- waiting to lock <0x292ce828> (a org.hsqldb.SessionManager)
at org.hsqldb.Database.close(Unknown Source)
at org.hsqldb.StatementCommand.getResult(Unknown Source)
at org.hsqldb.StatementCommand.execute(Unknown Source)
at org.hsqldb.Session.executeCompiledStatement(Unknown Source)
at org.hsqldb.Session.executeDirectStatement(Unknown Source)
at org.hsqldb.Session.execute(Unknown Source)
- locked <0x23ba76f0> (a org.hsqldb.Session)
at org.hsqldb.jdbc.JDBCStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.JDBCStatement.execute(Unknown Source)
- locked <0x23ba9568> (a org.hsqldb.jdbc.JDBCStatement)
at org.springframework.jdbc.datasource.embedded.AbstractEmbeddedDatabase
Configurer.shutdown(AbstractEmbeddedDatabaseConfigurer.java:42)
at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory.
shutdownDatabase(EmbeddedDatabaseFactory.java:184)
at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactoryB
ean.destroy(EmbeddedDatabaseFactoryBean.java:57)
at org.springframework.beans.factory.support.DisposableBeanAdapter.destr
oy(DisposableBeanAdapter.java:184)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.destroyBean(DefaultSingletonBeanRegistry.java:487)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.destroySingleton(DefaultSingletonBeanRegistry.java:463)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.destroySingletons(DefaultSingletonBeanRegistry.java:431)
- locked <0x2910d510> (a java.util.LinkedHashMap)
at org.springframework.context.support.AbstractApplicationContext.destro
yBeans(AbstractApplicationContext.java:1048)
at org.springframework.context.support.AbstractApplicationContext.doClos
e(AbstractApplicationContext.java:1022)
at org.springframework.context.support.AbstractApplicationContext$3.run(
AbstractApplicationContext.java:940)

"Low Memory Detector" daemon prio=6 tid=0x01bdac00 nid=0x1eb0 runnable [0x000000
00]
java.lang.Thread.State: RUNNABLE

"C1 CompilerThread0" daemon prio=10 tid=0x01bc8400 nid=0x18e8 waiting on conditi
on [0x00000000]
java.lang.Thread.State: RUNNABLE

"Attach Listener" daemon prio=10 tid=0x01bc5400 nid=0x1ac0 waiting on condition
[0x00000000]
java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" daemon prio=10 tid=0x01bc2400 nid=0x1fbc runnable [0x0000000
0]
java.lang.Thread.State: RUNNABLE

"Finalizer" daemon prio=8 tid=0x01bbb800 nid=0x1c00 in Object.wait() [0x03cdf000
]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x290702b0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
- locked <0x290702b0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=10 tid=0x01bba000 nid=0x810 in Object.wait() [0x
03c8f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x29070340> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:485)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
- locked <0x29070340> (a java.lang.ref.Reference$Lock)

"main" prio=6 tid=0x00e29800 nid=0x1e20 in Object.wait() [0x001bf000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x294c4300> (a org.springframework.context.support.Abstrac
tApplicationContext$3)
at java.lang.Thread.join(Thread.java:1186)
- locked <0x294c4300> (a org.springframework.context.support.AbstractApp
licationContext$3)
at java.lang.Thread.join(Thread.java:1239)
at java.lang.ApplicationShutdownHooks.runHooks(ApplicationShutdownHooks.
java:79)
at java.lang.ApplicationShutdownHooks$1.run(ApplicationShutdownHooks.jav
a:24)
at java.lang.Shutdown.runHooks(Shutdown.java:79)
at java.lang.Shutdown.sequence(Shutdown.java:123)
at java.lang.Shutdown.exit(Shutdown.java:168)
- locked <0x38b53ef8> (a java.lang.Class for java.lang.Shutdown)
at java.lang.Runtime.exit(Runtime.java:90)
at java.lang.System.exit(System.java:904)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:986)

"VM Thread" prio=10 tid=0x01b7e400 nid=0x1e10 runnable

"VM Periodic Task Thread" prio=10 tid=0x01bec800 nid=0x1bac waiting on condition

JNI global references: 1776

Found one Java-level deadlock:

"Thread-2":
waiting to lock monitor 0x0467c1cc (object 0x23ba76f0, a org.hsqldb.Session),
which is held by "Thread-1"
"Thread-1":
waiting to lock monitor 0x01bbf56c (object 0x292ce828, a org.hsqldb.SessionMan
ager),
which is held by "Thread-2"

Java stack information for the threads listed above:

"Thread-2":
at org.hsqldb.Session.close(Unknown Source)
- waiting to lock <0x23ba76f0> (a org.hsqldb.Session)
at org.hsqldb.SessionManager.closeAllSessions(Unknown Source)
- locked <0x292ce828> (a org.hsqldb.SessionManager)
at org.hsqldb.Database.close(Unknown Source)
at org.hsqldb.StatementCommand.getResult(Unknown Source)
at org.hsqldb.StatementCommand.execute(Unknown Source)
at org.hsqldb.Session.executeCompiledStatement(Unknown Source)
at org.hsqldb.Session.executeDirectStatement(Unknown Source)
at org.hsqldb.Session.execute(Unknown Source)
- locked <0x23b8efe8> (a org.hsqldb.Session)
at org.hsqldb.jdbc.JDBCStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.JDBCStatement.execute(Unknown Source)
- locked <0x23b90f30> (a org.hsqldb.jdbc.JDBCStatement)
at org.springframework.jdbc.datasource.embedded.AbstractEmbeddedDatabase
Configurer.shutdown(AbstractEmbeddedDatabaseConfigurer.java:42)
at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory.
shutdownDatabase(EmbeddedDatabaseFactory.java:184)
at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactoryB
ean.destroy(EmbeddedDatabaseFactoryBean.java:57)
at org.springframework.beans.factory.support.DisposableBeanAdapter.destr
oy(DisposableBeanAdapter.java:184)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.destroyBean(DefaultSingletonBeanRegistry.java:487)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.destroySingleton(DefaultSingletonBeanRegistry.java:463)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.destroySingletons(DefaultSingletonBeanRegistry.java:431)
- locked <0x2951f1c0> (a java.util.LinkedHashMap)
at org.springframework.context.support.AbstractApplicationContext.destro
yBeans(AbstractApplicationContext.java:1048)
at org.springframework.context.support.AbstractApplicationContext.doClos
e(AbstractApplicationContext.java:1022)
at org.springframework.context.support.AbstractApplicationContext$3.run(
AbstractApplicationContext.java:940)
"Thread-1":
at org.hsqldb.SessionManager.closeAllSessions(Unknown Source)
- waiting to lock <0x292ce828> (a org.hsqldb.SessionManager)
at org.hsqldb.Database.close(Unknown Source)
at org.hsqldb.StatementCommand.getResult(Unknown Source)
at org.hsqldb.StatementCommand.execute(Unknown Source)
at org.hsqldb.Session.executeCompiledStatement(Unknown Source)
at org.hsqldb.Session.executeDirectStatement(Unknown Source)
at org.hsqldb.Session.execute(Unknown Source)
- locked <0x23ba76f0> (a org.hsqldb.Session)
at org.hsqldb.jdbc.JDBCStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.JDBCStatement.execute(Unknown Source)
- locked <0x23ba9568> (a org.hsqldb.jdbc.JDBCStatement)
at org.springframework.jdbc.datasource.embedded.AbstractEmbeddedDatabase
Configurer.shutdown(AbstractEmbeddedDatabaseConfigurer.java:42)
at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory.
shutdownDatabase(EmbeddedDatabaseFactory.java:184)
at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactoryB
ean.destroy(EmbeddedDatabaseFactoryBean.java:57)
at org.springframework.beans.factory.support.DisposableBeanAdapter.destr
oy(DisposableBeanAdapter.java:184)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.destroyBean(DefaultSingletonBeanRegistry.java:487)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.destroySingleton(DefaultSingletonBeanRegistry.java:463)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.destroySingletons(DefaultSingletonBeanRegistry.java:431)
- locked <0x2910d510> (a java.util.LinkedHashMap)
at org.springframework.context.support.AbstractApplicationContext.destro
yBeans(AbstractApplicationContext.java:1048)
at org.springframework.context.support.AbstractApplicationContext.doClos
e(AbstractApplicationContext.java:1022)
at org.springframework.context.support.AbstractApplicationContext$3.run(
AbstractApplicationContext.java:940)

Found 1 deadlock.

C:\Users\Raghuveer.Rao>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

左秋 2024-11-22 21:07:38

Maven Surefire 插件默认会生成一个新进程来运行测试。这可能就是您要杀死的进程。当 Maven 注意到其子进程被中断时,它可能会假设测试失败。

查看 /target/surefire-reports 进行确认。为了帮助我们诊断问题,您可以做的是找到确定的进程 ID(您要杀死的进程 ID)并运行:

$ jstack ID

Stack dump 将告诉您导致测试挂起的原因。

Maven surefire plugin by default spawns a new process to run the tests. This is probably the process you are killing. When maven notices its child process was interrupted, it probably assummes that the tests failed.

Have a look at /target/surefire-reports for confirmation. What you can do to help us diagnose the problem is to find the surefire process id (the one you are killing) and run:

$ jstack ID

Stack dump will tell you what is causing the test to hung.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文