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

If JavaWS is started from a UNC path, Java Web Start will sometimes crash

XMLWordPrintable

    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      JRE 1.6.0_3

      ADDITIONAL OS VERSION INFORMATION :
      Windows XP SP2 or SP 3

      A DESCRIPTION OF THE PROBLEM :
      I just worked with server saved profiles under Windows (XP). If the user is not an Administrator user and the java web start is started from a UNC path, then the program is downloaded into the cache, but it crashes when starting the application.
      If however using the same JNLP file, is started from a local drive (or mapped path) then the application starts correctly. I can also achieve this fix, by making a short cut to the JNLP file and changing the "execute in" directory to a local/mapped drive instead of the UNC path.

      The error seemed to stem from starting the Java WebStart via Internet Explorer, the JNLP was temporarily saved into a UNC path.....

      The bug apparently didn't occur when using Firefox..but according to my understanding that would depend on how firefox and the server based profiles are setup.

      I forgot to mention some neat side effects:
      *The application is downloaded and appears in the Java Web Start application list. If it is started from here - it runs. (Even though the Cache was in the UNC path)
      *if a short cut is created on the Desktop, then it crashed, because the Desktop shortcut was located on the server. (UNC Path start)
      *if the short cut was copied to the quick launch then the application worked, because it was started from the local drive (The Server profile was setup for an odd mix of local copied profile + direct network access)
      *I noticed that this bug affected my application, but it didn't affect more simple Java Web Start applications from the Java Tutorials. That might be because they have a simple JNLP without any dependancies, only use 1 JAR file or something else....

      It would be nice if Sun Microsystems would look into this.

      I hope the bug is now Reproducable for you.

      What is fantastic is that Java WebStart produces no log/trace when this crash happens - I love it! At least give us a sensible error in the log when that is switched on!

      It would be great to have a registry /fix for this.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      see description

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Java Web Start application to start, even when executed in a UNC path. Especially considering the application downloads and installs...
      ACTUAL -
      Java Web Start applications crash with no log

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      No errors that I could find. I had turned on all traces + logs for Java Web Start - but the files were empty.

      REPRODUCIBILITY :
      This bug can be reproduced often.

      CUSTOMER SUBMITTED WORKAROUND :
      Creating a shortcut to a DOS batch file, which starts the Java Web Start javaws.exe on a local drive. The DOS batch file then looks like this:
      javaws http://thisismyserver/thisismyapplication.jnlp
      execute in "C:\".
      This shortcut can then be located in the UNC Path.

            ngthomas Thomas Ng (Inactive)
            igor Igor Nekrestyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: