我有一個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