JDK-4924226 : PIT: Can not launch jnlp application via 127.0.0.1 address on the web server
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2003-09-17
  • Updated: 2003-10-10
  • Resolved: 2003-10-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 tigerFixed
Related Reports
Relates :  
Description
Can not launch jnlp application via 127.0.0.1 address on the web server.
All platforms.
Build: any Tiger build (/net/koori.sfbay/p/jdk03/jdk/1.5.0/all), starting from 
build 18.
Steps to reproduce:
- deploy any jnlp application in local http server
- try to download via: javaws http://127.0.0.1/path_to_application/test.jnlp
- exception coming:
java.io.IOException
	at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.jav
a:722)
	at com.sun.javaws.net.BasicNetworkLayer.doRequest(Unknown Source)
	at com.sun.javaws.net.BasicNetworkLayer.doGetRequest(Unknown Source)
	at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(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)
Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: 
http://127.0.0.1:8080/nathanJavawsDev/ext_service/test_01.jnlp
	at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.jav
a:939)
	at 
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
	... 6 more
	
This is a regression starting from build18 (build17 is fine) 
/net/koori.sfbay/p/jdk03/jdk/1.5.0/all


Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b24
14-06-2004

EVALUATION I am reasigning this to net group based on the following: If I configure java web start with both 1.4.0 and tiger (deployment nightly build 9/28) and run tomcat on my ultra (gdisun.east) and attempt to access apps in my tomcat setup: 1.) if I load an app with <j2se version=1.4+ href="..."/> I will get the error shown. In this case it will be running java 1.5.0 when it tries to download. (1.4+ results in the latest configured java at least 1.4) 2.) If I load the same app except with j2se version=1.4* href="..."/> It runs fine. (1.4* forces it to use some 1.4 version, in this case 1.4.0 is configured) ###@###.### 2003-09-20 ------------------------------------ One change that happened in b18 is that we now force all http transactions to go through the proxy (when a proxy is set). Formerly, if the connect attempt through a proxy failed, then we retried with a direct connection. This behavior was not documented, and was surprising in many respects. The particular problem here is that the address 127.0.0.1 will never be accessible via a proxy (hence the 500 error from the proxy). I think the original behavior where we retry directly was wrong and the correct thing to do, is to specify 127.0.0.1 in the list of non proxy hosts. ###@###.### 2003-09-23 We will put in the special casing of loopback addresses to keep backward compatibility. ###@###.### 2003-10-07
23-09-2003