[Bug 741] New: Fails to create a shortcut if the resource is local

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Wed Jun 1 13:19:34 PDT 2011


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=741

           Summary: Fails to create a shortcut if the resource is local
           Product: IcedTea-Web
           Version: hg
          Platform: all
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: NetX
        AssignedTo: omajid at redhat.com
        ReportedBy: smohammad at redhat.com
                CC: unassigned at icedtea.classpath.org


Exception thrown:

----------------------------
java.lang.IllegalArgumentException:
file:/home/smohammad/Desktop/Test/Sample.jnlp is not a cacheable resource
        at
net.sourceforge.jnlp.cache.CacheUtil.getCacheFile(CacheUtil.java:297)
        at
net.sourceforge.jnlp.util.XDesktopEntry.getContentsAsReader(XDesktopEntry.java:77)
        at
net.sourceforge.jnlp.util.XDesktopEntry.installDesktopLauncher(XDesktopEntry.java:168)
        at
net.sourceforge.jnlp.util.XDesktopEntry.createDesktopShortcut(XDesktopEntry.java:141)
        at
net.sourceforge.jnlp.runtime.ApplicationInstance.addMenuAndDesktopEntries(ApplicationInstance.java:151)
        at
net.sourceforge.jnlp.runtime.ApplicationInstance.initialize(ApplicationInstance.java:139)
        at net.sourceforge.jnlp.Launcher.launchApplet(Launcher.java:652)
        at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:886)

----------------------------
Fails to create a shortcut if the resource is local but the applet still runs
after the exception is thrown.

I have attached a reproducer. After downloading and extracting it, edit
Sample.jpnl and change: (within jnlp element)
 codebase="file:///home/smohammad/Desktop/Test/"
to
 codebase="file://[PATH TO THE EXTRACTED DIRECTORY]/Test/"

After that has been changed, just run "javaws Sample.jnlp" within terminal and
you should see the exception.


-- 
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the distro-pkg-dev mailing list