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

PIT: Import with silent option of javaws throws HeadlessException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • 6
    • 6
    • deploy
    • generic
    • generic

      PIT: Import with silent option of javaws throws HeadlessException

      Tested OS : Windows, Solaris
      Tested Build : mustang pit build 39
      Build Location : /net/sqesvr-nfs.sfbay/global/nfs/deployment5/pit_builds

      Steps to reproduce :

      1. Install mustang jre pit build 39
      2. Clear cache
      3. Launch Java Control Panel
      4. Change the network settings to "Direct Connection" or give the wrong proxy server
      5. Enable logging, tracing and show applet life cycle exceptions in Java Control Panel
      6. Launch draw application using ./javaws -import -silent http://java.sun.com/products/javawebstart/apps/draw.jnlp
      7. In windows, go to <User Home directory>/Sun/Java/Deployment/log folder
      In Solaris, go to <user home directory>/.java/Deployment/log
      8. View .trace file ( eg., javaws42528.trace )

      The following exception occurs :

      java.awt.HeadlessException
              at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
              at java.awt.Window.<init>(Unknown Source)
              at java.awt.Frame.<init>(Unknown Source)
              at java.awt.Frame.<init>(Unknown Source)
              at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(Unknown Source)
              at javax.swing.SwingUtilities.getSharedOwnerFrame(Unknown Source)
              at javax.swing.JDialog.<init>(Unknown Source)
              at javax.swing.JDialog.<init>(Unknown Source)
              at com.sun.deploy.ui.DialogTemplate.<init>(Unknown Source)
              at com.sun.deploy.ui.UIFactory$3.execute(Unknown Source)
              at com.sun.javaws.ui.JavawsSysRun.delegate(Unknown Source)
      .
      .
      .

      It is giving the proper message "Unable to launch the application" when the application is launched using ./javaws -import http://java.sun.com/products/javawebstart/apps/draw.jnlp
      or ./javaws -silent http://java.sun.com/products/javawebstart/apps/draw.jnlp
      ###@###.### 2005-05-25 09:45:02 GMT
      ###@###.### 2005-05-26 06:05:06 GMT

            herrick Andy Herrick (Inactive)
            mnarayansunw Malathi Narayanan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: