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

Appletviewer in debug mode creates several appletviewer processes (on Linux)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None

      Description

      ======================
      Test.java File
      =====================
      import java.applet.*;
      import java.awt.*;
      import java.awt.event.*;
      import java.awt.datatransfer.*;
      import java.io.*;
      import java.net.*;
      import java.util.*;
      import java.security.*;

      public class Test extends Applet
      {
              public void init()
              {
                      test0();
              }

              private void test0()
              {
                      URL url = getCodeBase ();
                      System.out.println ("getCodeBase is : " + getCodeBase() );
                      System.out.println ("getDocumentBase is : " + getDocumentBase() );
              }
      }



      =====================
      Test.html File
      =====================
      <html>
      <body>
      This is testing an applet.
      <applet code=Test.class width="10" height="10">
      </applet>
      </body>
      </html>

      =================================================================

      When I run appletviewer in debug mode on Red Hat Linux 7.1, it creates several
      appletviewer process. But the same thing in other platforms like solaris or
      windows platform creates only one process.

      Here is the output which I got on Redhat Linux 7.1


      [sp129054@javasoft77 surendra]$ appletviewer -J-version
      java version "1.4.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
      Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
      [sp129054@javasoft77 surendra]$
      [sp129054@javasoft77 surendra]$ ps -aef | grep java
      [sp129054@javasoft77 surendra]$
      [sp129054@javasoft77 surendra]$ ps -aef | grep appletviewer
      [sp129054@javasoft77 surendra]$
      [sp129054@javasoft77 surendra]$ cd av-test
      [sp129054@javasoft77 av-test]$ appletviewer -debug file:/net/sqindia/export/disk03/tools/surendra/av-test/Test.html << EOF &
      > run
      > EOF
      [1] 4621
      [sp129054@javasoft77 av-test]$ Initializing jdb ...
      > run sun.applet.Main file:/net/sqindia/export/disk03/tools/surendra/av-test/Test.html
      > Input stream closed.

      VM Started: Warning: Cannot convert string "<Key>Escape,_Key_Cancel" to type VirtualBinding
      Warning: Cannot convert string "<Key>Home,_Key_Begin" to type VirtualBinding
      Warning: Cannot convert string "<Key>F1,_Key_Help" to type VirtualBinding
      Warning: Cannot convert string "Shift<Key>F10,_Key_Menu" to type VirtualBinding
      Warning: Cannot convert string "<Key>F10,Shift_Key_Menu" to type VirtualBinding
      Warning: Cannot convert string "<Key>KP_Enter,_Key_Execute" to type VirtualBinding
      Warning: Cannot convert string "Alt<Key>Return,Alt_Key_KP_Enter" to type VirtualBinding
      getCodeBase is : file:/net/sqindia/export/disk03/tools/surendra/av-test/
      getDocumentBase is : file:/net/sqindia/export/disk03/tools/surendra/av-test/Test.html

      [sp129054@javasoft77 av-test]$ ps -aef | grep java
      sp129054 4664 1287 0 17:15 pts/1 00:00:00 grep java
      [sp129054@javasoft77 av-test]$ ps -aef | grep appletviewer
      sp129054 4621 1287 2 17:15 pts/1 00:00:00 appletviewer -debug file:/net/sq
      sp129054 4622 4621 0 17:15 pts/1 00:00:00 appletviewer -debug file:/net/sq
      sp129054 4623 4622 0 17:15 pts/1 00:00:00 appletviewer -debug file:/net/sq
      sp129054 4624 4622 0 17:15 pts/1 00:00:00 appletviewer -debug file:/net/sq
      sp129054 4625 4622 0 17:15 pts/1 00:00:00 appletviewer -debug file:/net/sq
      sp129054 4626 4622 0 17:15 pts/1 00:00:00 appletviewer -debug file:/net/sq
      sp129054 4627 4622 0 17:15 pts/1 00:00:00 appletviewer -debug file:/net/sq
      sp129054 4628 4622 0 17:15 pts/1 00:00:00 appletviewer -debug file:/net/sq
      sp129054 4629 4622 0 17:15 pts/1 00:00:00 appletviewer -debug file:/net/sq
      sp129054 4631 4622 0 17:15 pts/1 00:00:00 appletviewer -debug file:/net/sq
      sp129054 4632 4622 0 17:15 pts/1 00:00:00 appletviewer -debug file:/net/sq
      sp129054 4634 4622 0 17:15 pts/1 00:00:00 appletviewer -debug file:/net/sq
      sp129054 4635 4622 0 17:15 pts/1 00:00:00 appletviewer -debug file:/net/sq
      sp129054 4645 4622 0 17:15 pts/1 00:00:00 appletviewer -debug file:/net/sq
      sp129054 4646 4622 0 17:15 pts/1 00:00:00 appletviewer -debug file:/net/sq
      sp129054 4647 4622 0 17:15 pts/1 00:00:00 appletviewer -debug file:/net/sq
      sp129054 4648 4622 0 17:15 pts/1 00:00:00 appletviewer -debug file:/net/sq
      sp129054 4649 4622 0 17:15 pts/1 00:00:00 appletviewer -debug file:/net/sq
      sp129054 4666 1287 0 17:16 pts/1 00:00:00 grep appletviewer
      [sp129054@javasoft77 av-test]$

        Attachments

          Activity

            People

            • Assignee:
              ehawkessunw Eric Hawkes (Inactive)
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: