“Forked Java VM exited abnormally” error from junit tests

前端 未结 17 1762
[愿得一人]
[愿得一人] 2020-12-08 18:22

I have a java junit test that passes when run alone on a development machine. We also have a hudson job which runs all the tests, invoked via ant, on a Mac OS X 10.4 node wi

17条回答
  •  鱼传尺愫
    2020-12-08 19:27

    In my case it's an uncaught exception in a static initializer/method/block inside a class.

    Specifically I had one class calling a static method in another class and it was triggering a NumberFormatException.

    BTW adding "showoutput=true" to the task in build.xml did not help troubleshoot. Since the static block is one of the first things to run, the JVM was blowing up before it could output anything at all.

提交回复
热议问题