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

Draggable applet restart from desktop fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6u10
    • deploy
    • x86
    • linux

      FULL PRODUCT VERSION :
      6u10 b32

      ADDITIONAL OS VERSION INFORMATION :
      Linux jenny 2.6.24-19-generic #1 SMP Wed Aug 20 22:56:21 UTC 2008 i686 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      Using the sample draggable applet example at https://jdk6.dev.java.net/plugin2/ the desktop icon is created.

      When executing the desktop icon this output is received:

      java.net.MalformedURLException: no protocol: "file://///home/jamesu/.java/deployment/cache/6.0/21/49f35ad5-607a6371"
      at java.net.URL.<init>(Unknown Source)
      at java.net.URL.<init>(Unknown Source)
      at java.net.URL.<init>(Unknown Source)
      at sun.plugin2.applet.viewer.JNLP2Viewer.run(Unknown Source)
      at sun.plugin2.applet.viewer.JNLP2Viewer.main(Unknown Source)
      Exception in thread "main" java.lang.NullPointerException
      at sun.plugin2.applet.viewer.JNLP2Viewer.run(Unknown Source)
      at sun.plugin2.applet.viewer.JNLP2Viewer.main(Unknown Source)


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Set Firefox 3 to use libnpjp2.so from java 6u10 b32. Drag the applet at https://jdk6.dev.java.net/plugin2/ out of the window and allow the desktop icon to be created.

      Close the browser and the applet.

      Double-click on the icon and note that the applet does not restart.

      View the icon properties and execute the command at a command prompt to receive the MalformedURLException.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I was expecting the applet to restart.
      ACTUAL -
      The applet failed to restart.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :

      java.net.MalformedURLException: no protocol: "file://///home/jamesu/.java/deployment/cache/6.0/21/49f35ad5-607a6371"
      at java.net.URL.<init>(Unknown Source)
      at java.net.URL.<init>(Unknown Source)
      at java.net.URL.<init>(Unknown Source)
      at sun.plugin2.applet.viewer.JNLP2Viewer.run(Unknown Source)
      at sun.plugin2.applet.viewer.JNLP2Viewer.main(Unknown Source)
      Exception in thread "main" java.lang.NullPointerException
      at sun.plugin2.applet.viewer.JNLP2Viewer.run(Unknown Source)
      at sun.plugin2.applet.viewer.JNLP2Viewer.main(Unknown Source)


      REPRODUCIBILITY :
      This bug can be reproduced always.

            hdongorcl Hao Dong (Inactive)
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: