FIX: WJView Hangs with CPU Usage at 100% Using 315x VMs (223355)



The information in this article applies to:

  • Microsoft Visual J++ 6.0
  • Microsoft virtual machine
  • Microsoft SDK for Java 3.1

This article was previously published under Q223355

SYMPTOMS

Running the below program causes the Microsoft virtual machine (Microsoft VM) to use 100 percent of the CPU's processing capacity. This process will hang the PC until it is terminated.

CAUSE

This is due to a bug found in builds 315x of the Microsoft VM's exception-handling logic.

RESOLUTION

Download and install the latest Microsoft VM. For more information, visit the following Microsoft Web site:

STATUS

Microsoft has confirmed that this is a bug in Microsoft Win32 virtual machine Version 315x.

MORE INFORMATION

Steps to Reproduce Behavior

Compile and run the following code. On machines with virtual machines that contain this bug, the CPU usage on the machine will go to 100% and the Microsoft VM will hang. However, on a machine with a fixed virtual machine, the string "java.lang.Exception" will be output and the program will exit immediately.
public class Test
{
 public static void main( String [] args )
 {
    Integer i = new Integer( 6 );
    synchronized( i )
    {
      if (true)
        throw new NullPointerException();
    }
 }
}
				

REFERENCES

For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:


Modification Type:MajorLast Reviewed:6/14/2006
Keywords:kbbug kbfix kbVJ600fix KB223355