我运行JUnit测试时有时会遇到此错误.
我并不是在问这个错误是什么.我只是想知道java VM分叉时它意味着什么?
我们从shell脚本执行独立的java程序,有一个comman脚本提到类路径,路径等.在这个通用脚本中,我们现在添加了几个类路径,字符数超过9000.它在测试中工作正常ENV.它会在生产中引起任何问题吗?在linux中设置classpath有什么限制吗?命令行输入的最大字符数是多少...
这可能看起来与 SO 上的某些内容重复,但是我已经查看了this、this、this和this但还没有找到有效的解决方案。
我遇到的问题是我在 jenkins 上为非现有测试套件收到此错误。以下是 jenkins ant 构建日志中打印的错误;
compile-tests-run:
[junit] Testsuite: com.smartstream.control.engine.validation.Batch-With-Multiple-Tests
[junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
[junit]
[junit] Testcase: null took 0 sec
[junit] Caused an ERROR
[junit] Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
[junit] junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in …Run Code Online (Sandbox Code Playgroud)