JDK-4991603 : PIT19: Can not launch any jnlp application from http://javaweb/..... in IE
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2004-02-10
  • Updated: 2004-11-10
  • Resolved: 2004-11-10
Description
Any windows platform.
Build: j2re-1_5_0-fcs-bin-b99-windows-i586-04_feb_2004.exe

Can not launch any jnlp application from http://javaweb/..... in IE.
Try to launch any jnlp application from http://javaweb/... (try this for example: http://javaweb.sfbay/~ngthomas/notepad/notepad.jnlp)
You will get:
Java Web Start - Invalid Argument Error:

java.io.FileNotFoundException: C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5\SBDOUVBA\notepad[1].jnlp (The system cannot find the file specified)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(Unknown Source)
	at java.io.FileInputStream.<init>(Unknown Source)
	at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
	at com.sun.javaws.Main.launchApp(Unknown Source)
	at com.sun.javaws.Main.main(Unknown Source)

Same application you can lauch from any other location with out a problem:

http://java.sun.com/products/javawebstart/demos.html.

Looks like web server configuration issue.


###@###.### 2004-07-20

Same problem reported by a CAP member:

J2SE Version (please include all output from java -version flag):
  java version "1.5.0-beta3"
  Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b58)
  Java HotSpot(TM) Client VM (build 1.5.0-beta3-b58, mixed mode, sharing)

Does this problem occur on J2SE 1.3.x or 1.4.x?  Yes / No (pick one)
  No


Operating System Configuration Information (be specific):
  Windows 2000 build 5.00.2195 Service Pack 4


Hardware Configuration Information (be specific):
 Dell Optiplex GX270 P4 3.2Ghz 1gig ram


Bug Description:
  Error using latest IE6 to launch any Web Start application.  

  Java Web Start - Invalid Argument Error - Unable to launch the specified
  application

  An error occurred while launching/running the application.

Category: Invalid Argument Error

Could not load file/URL specified: C:\Documents and Settings\pchung\Local
Settings\Temporary Internet Files\Content.IE5\MQRY534E\draw[1].jnlp

java.io.FileNotFoundException: C:\Documents and Settings\pchung\Local
Settings\Temporary Internet Files\Content.IE5\MQRY534E\draw[1].jnlp (The
system cannot find the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown
Source)
        at com.sun.javaws.Main.launchApp(Unknown Source)
        at com.sun.javaws.Main.main(Unknown Source)


Steps to Reproduce (be specific):
  Error using latest IE6 to launch any Web Start application.  
  Try sun's example:

   http://java.sun.com/products/javawebstart/apps/remoteApps.html

  Click on any of the links and the error occurs.

  The file it is requesting does not exist in IE's temporary cache directory.

  Using Mozilla Firefox 0.92, the link works fine.  


Comments
EVALUATION The problem might be related to web-server setup; or just IE related problem. On a same machine that failed on IE, try with netscape or mozilla and it will work fine This problem had been discussed on the forum too; it's not a new problem introduced in tiger. Few weeks ago I spent sometime to hunt down the root cause, but no luck so far yet. Further investigation is needed. Since this problem is not always reproduceable (very much depends on machine and web-server setup), I am going to make it a p3 for now. ###@###.### 2004-02-09 submitted labmanager ticket for this problem: http://labmanager.sfbay/labqtool/labmanager.pl?nextfn=Detail&id=2004030091 ###@###.### 2004-03-08 ----------- note: problem is in the webserver setup - and it also occurs on sqeweb.sfbay. webserver setting of no-cache causes modern versions of IE to invoke java web start with non-existing file "xxxx[1].jnlp". same problem occurs running any other helper application (like realplayer) from these servers. ###@###.### 2004-05-25 ----------------------------- this is often a web-server setup problem, because of the no-cache directive is enabled. Disabling the no-cache directive on the webserver for *.jnlp file seems to fix the problem. we will document this in the javawebstart FAQ: This problem is specific to Internet Explorer. Although this can be caused by a full cache, or turning off the cache in IE, it is usually caused by a no-cache directive coming from either the web server or the proxy server. IE will honor this directive, and not write the jnlp file to disk, so Java Web Start cannot find it. This frequently happens when upgrading a tomcat based server. Later versions set the no-cache directive by default for any resource that is within a security-constraint in web.xml. Try taking the relevant URI out of the security constraint in web.xml. ###@###.### 2004-07-20 Documented in the faq: http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/faq.html#220 closing the bug as not a bug, since the problem is really caused by server side setup and IE ###@###.### 2004-11-10 00:32:25 GMT
10-11-2004