我有一个java junit测试,在开发机器上单独运行时通过。我们还有一个hudson作业,它在Java 1.5的Mac OS X 10.4节点上运行通过ant调用的所有测试。该测试是通过在哈德森构建直到最近,但现在(有没有相关的代码更改)一个测试失败每次,出现以下错误:“分叉的Java虚拟机异常退出”来自junit测试的错误
错误消息
Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
堆栈跟踪
junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
谷歌搜索显示许多其他人似乎遇到了同样的问题,但在那里我找不到任何答案。
也许提供完整的堆栈跟踪。 – 2009-12-05 22:24:00
帕斯卡尔:没有完整的堆栈跟踪。 我仍然没有找到答案,但我们已经通过将hudson作业移至运行OS X 10.5和Java 1.6的不同Mac来解决此问题。这个问题没有在这个设置上表现出来。 – Alb 2010-05-31 21:16:12
该项目不会碰巧使用JMock,并声明了javaagent参数,对吧? – yihtserns 2011-04-14 14:43:55