Name: md23716 Date: 01/22/2001
UNEXPECTED INTERNAL EXCEPTION when requesting thread info using JPDA.
(Demonstrated using jdb for simplicity):
Test case:
---------------------------------------------
class WorkerThread extends java.lang.Thread
{
public void run()
{
System.out.println("run");
}
}
public class TestJDI
{
public static void main(String[] args)
{
WorkerThread wt = new WorkerThread();
wt.start();
}
}
---------------------------------------------
1. Start jdb (which uses the new JPDA) on TestJDI:
jdb TestJDI
2. Set breakpoint on entry to main method:
stop in TestJDI.main
3. Run
run
4. Check thread information (OK):
threads
5. Move past thread creation:
next
6. Check thread information (Unexpected JDWP Error: 10):
threads
7. Move past thread creation:
next
8. Check thread information (OK):
threads
Targeted FCS Release
SOLARIS JDK 1.3.1
======================================================================
- duplicates
-
JDK-4378978 exception: GetAllThreads returns not yet running thread / GetThreadStatus chokes
-
- Closed
-