Duplicate :
|
----------System.err:(17/1221)---------- java.lang.RuntimeException: Test ERROR java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1 at ClhsdbFindPC.testFindPC(ClhsdbFindPC.java:155) at ClhsdbFindPC.main(ClhsdbFindPC.java:167) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127) at java.base/java.lang.Thread.run(Thread.java:832) Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1 at ClhsdbFindPC.testFindPC(ClhsdbFindPC.java:118) ... 7 more From this code: String[] parts = output.split("LingeredAppWithTrivialMain.main"); String[] tokens = parts[1].split(" "); so looks like the split failed, most likely due to the output being empty.