The NSK test
nsk/jdi/VMMismatchException/VMMismatchException001
fails because something isn't returned by the VM that it expects:
# ERROR: Unexpected exception: java.lang.ArrayIndexOutOfBoundsException: 0
java.lang.ArrayIndexOutOfBoundsException: 0
at java.util.Arrays$ArrayList.get(Arrays.java:2875)
at nsk.jdi.VMMismatchException.VMMismatchException001.VMMismatchException
001.doThreadReferenceStop(VMMismatchException001.java:398)
at nsk.jdi.VMMismatchException.VMMismatchException001.VMMismatchException
001.checkThreadReferenceStop(VMMismatchException001.java:391)
at nsk.jdi.VMMismatchException.VMMismatchException001.VMMismatchException
001.main(VMMismatchException001.java:812)
The failing test holds a reference to a thread with only static java method frames. The test has an instance of java.lang.Exception in a static field of one of the classes in the frames of the thread. However, the class is never found by the FollowReferences call.
Before the perm gen removal, this class was found when the context class loader of the thread was traversed. The class would be found in the ClassLoader.classes Vector. This vector is not populated anymore, so the class is not found.
nsk/jdi/VMMismatchException/VMMismatchException001
fails because something isn't returned by the VM that it expects:
# ERROR: Unexpected exception: java.lang.ArrayIndexOutOfBoundsException: 0
java.lang.ArrayIndexOutOfBoundsException: 0
at java.util.Arrays$ArrayList.get(Arrays.java:2875)
at nsk.jdi.VMMismatchException.VMMismatchException001.VMMismatchException
001.doThreadReferenceStop(VMMismatchException001.java:398)
at nsk.jdi.VMMismatchException.VMMismatchException001.VMMismatchException
001.checkThreadReferenceStop(VMMismatchException001.java:391)
at nsk.jdi.VMMismatchException.VMMismatchException001.VMMismatchException
001.main(VMMismatchException001.java:812)
The failing test holds a reference to a thread with only static java method frames. The test has an instance of java.lang.Exception in a static field of one of the classes in the frames of the thread. However, the class is never found by the FollowReferences call.
Before the perm gen removal, this class was found when the context class loader of the thread was traversed. The class would be found in the ClassLoader.classes Vector. This vector is not populated anymore, so the class is not found.
- duplicates
-
JDK-7197269 NPG: FollowReferences has no ClassLoader -> Class link to follow
- Resolved