Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4906075

appletviewer hangs from menu Applet>Reload

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.2
    • deploy
    • x86
    • windows_xp



      Name: gm110360 Date: 08/13/2003


      FULL PRODUCT VERSION :
      D:\j2sdk1.4.2\demo\applets\Animator>java -version
      java version "1.4.2"
      Java(TM) 2 Runtime Environment, Standard Edition (build
      Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)

      FULL OS VERSION :
      Windows XP Professional 5.1.2600 Service Pack 1 build 2600

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      System Type X86-based PC
      Processor x86 Family 6 Model 7 Stepping 0 AuthenticAMD ~1008 Mhz
      BIOS Version/Date Award Software, Inc. ASUS A7V266-E ACPI BIOS Rev 1011, 20/08/2002
      SMBIOS Version 2.3


      A DESCRIPTION OF THE PROBLEM :
      This happens on the new J2SE SDK 1.4.2 release, running the tool from a DOS console in XP.

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      APPLETVIEWER menu option: Applet>RELOAD - CAUSES TOOL TO CLOSE AND HANG at the dos prompt.
      The process exists, but it won't return to prompt, it just hangs.
      I've pasted below (Steps to Reproduce) one of the rare cases when i did get an exception - actual first time - after a long hang (minutes).
      = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =


      I'm also running the 1.4.1. SDK without any problems.
      - - - - - - - - - - - - - - - - - - - - - - - - - - -

      May be relevant for reproduction:
      - - - - - - - - - - - - - - - - -
      I've recently uninstalled the 1.4.1_02(b03?) JRE - prior to installing JRE 1.4.2.

      I've manually deleted any folders left after uninstallation and reboot - there was one file in a folder - just the name that? I think it did say applet somewhere. It was just a single file in a folder left after uninstallation of 1.4.1 (b03?) JRE (is this relevant?)

      1.4.1_02-b06 Appletviewer runs fine with the SDK's personal JRE on a different folder.

      My environment variables at the prompt below:

      D:\j2sdk1.4.2>echo %PATH%
      C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\AliasWavefront\Maya 4.5 Personal Learning Edition\bin;D:\j2sdk1.4.2\bin;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\AliasWavefront\Maya 4.5 Personal Learning Edition\bin;

      D:\j2sdk1.4.2>echo %CLASSPATH%
      %CLASSPATH%;.;D:\j2sdk1.4.2\lib\tools.jar;D:\j2sdk1.4.2;

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      D:\j2sdk1.4.2\demo\applets\Animator>java -version
      java version "1.4.2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-
      Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)

      D:\j2sdk1.4.2\demo\applets\Animator>dir
       Volume in drive D is HARD_2
       Volume Serial Number is D0ED-8BF3

       Directory of D:\j2sdk1.4.2\demo\applets\Animator

      08/07/2003 05:00 AM <DIR> .
      08/07/2003 05:00 AM <DIR> ..
      08/07/2003 05:00 AM 7,152 Animation.class
      08/07/2003 05:00 AM 538 AnimationFrame.class
      08/07/2003 05:00 AM 10,278 Animator.class
      08/07/2003 05:00 AM 28,853 Animator.java
      08/07/2003 05:00 AM <DIR> audio
      08/07/2003 05:00 AM 1,355 DescriptionFrame.class
      08/07/2003 05:00 AM 860 example1.html
      08/07/2003 05:00 AM 828 example2.html
      08/07/2003 05:00 AM 908 example3.html
      08/07/2003 05:00 AM 854 example4.html
      08/07/2003 05:00 AM <DIR> images
      08/07/2003 05:00 AM 222 ParseException.class
                    10 File(s) 51,848 bytes
                     4 Dir(s) 1,947,582,464 bytes free

      D:\j2sdk1.4.2\demo\applets\Animator>appletviewer example1.html
      java.lang.NullPointerException
              at Animation.loadAnimationMedia(Animator.java:574)
              at Animation.init(Animator.java:503)
              at Animator.init(Animator.java:281)
              at sun.applet.AppletPanel.run(AppletPanel.java:353)
              at java.lang.Thread.run(Thread.java:534)

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Expected for applet to reload in appletviewer without tool exiting.
      ACTUAL -
      1. Appletviewer closes.
      2. Command prompt will not return to prompt.
      3. Usually continues to hang for several minutes.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      java.lang.NullPointerException
              at Animation.loadAnimationMedia(Animator.java:574)
              at Animation.init(Animator.java:503)
              at Animator.init(Animator.java:281)
              at sun.applet.AppletPanel.run(AppletPanel.java:353)
              at java.lang.Thread.run(Thread.java:534)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      D:\j2sdk1.4.2\demo\applets\Animator>appletviewer example1.html
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Not Available.
      (Incident Review ID: 190796)
      ======================================================================

            zgu Zhengyu Gu
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: