JDK-8071897 : JRE 8U25 and 8u31 b32 cannot launch Java Web Start with proxy pac but works fine for 7u67
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 8u31
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-01-29
  • Updated: 2016-03-09
  • Resolved: 2015-02-04
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.
JDK 7 JDK 8 JDK 9
7u76Fixed 8u40Fixed 9 b52Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
The method PACFunctionImpl.myIpAddress() always returns loop back address, (i.e. 127.0.0.1) instead of real value due to lack of permission
Fix:
 - PACFunctionImpl.myIpAddress() should be executed inside doPrivileged block
 - It is necessary to explicitly cast the results returned by PACFunctionImpl.myIpAddress() and PACFunctionImpl.dnsResolve() to JavaScript strings, since Rhino script engine "doesn't like" Java String
Comments
Please note: this fix is based on JDK-8061648; take it into account during porting.
16-02-2015

Problem description: The method PACFunctionImpl.myIpAddress() always returns loop back address, (i.e. 127.0.0.1) instead of real value due to lack of permission Fix: - PACFunctionImpl.myIpAddress() should be executed inside doPrivileged block - It is necessary to explicitly cast the results returned by PACFunctionImpl.myIpAddress() and PACFunctionImpl.dnsResolve() to JavaScript strings, since Rhino script engine "doesn't like" Java String
03-02-2015

Steps to reproduce: 1. Deploy an proxy.pac like this: function FindProxyForURL(url, host) { var ip = myIpAddress(); if(isInNet(ip, "10.162.0.0", "255.255.0.0")) { return "PROXY www-proxy.us.oracle.com:80"; } return "DIRECT"; } 2. Launch Java Web Start application, e.g. http://docs.oracle.com/javase/tutorialJWS/samples/uiswing/GridBagLayoutDemoProject/GridBagLayoutDemo.jnlp Expected result: Java Web Start application is launched successfully and "PROXY www-proxy.us.oracle.com:80" proxy is used Actual result: Java Web Start application is NOT launched and "DIRECT" proxy is used.
03-02-2015