Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6608640
Votes 0
Synopsis 6u3: applets and jnlp applications that requires proxy to load cannot be loaded
Category java_deployment:download
Reported Against b13
Release Fixed 6u3(b05)
State 10-Fix Delivered, bug
Priority: 1-Very High
Related Bugs 6607614 , 6608448 , 6611456
Submit Date 25-SEP-2007
Description
This actually exposed another more serious problem in my DNS cached applet fix:

6594007: cached applets subject to DNS rebinding

When we write the cache entry to the disk, we do a InetAddress.getByName(hostname) to look up the IP of the codebase host.   In the current implementation, if getByName throws UnknownHostException, the write to cache will fail and the applet cannot be loaded.

We should just catch and ignore the exception instead.

This will happen to machines where proxy is needed to access some special hosts.  (e.g in our lab machines, you can only access Internet via proxy.  So basically now in these lab machines, you cannot load any applets from the internet)

Office machines cannot be used to reproduce this problem, because we now have direct Internet access, and we can access both Intranet and Internet hosts without any proxy.
Posted Date : 2007-09-25 00:01:39.0
Work Around
N/A
Evaluation
we should ignore the unkownhostexception thrown from getbyname when writing the cache entry
Posted Date : 2007-09-25 00:02:43.0

the problem can only be reproduced on machines that needs proxy to connect to the internet.  to make sure the machine is in such configuration, first check that you need proxy settings in web browser to go to java.sun.com; second, open command prompt to go a "ping java.sun.com", it should fail.

here is the lab machine networking settings that can be used to reproduce the problem:

Windows IP Configuration

        Host Name . . . . . . . . . . . . : honkong
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Hybrid
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No
        DNS Suffix Search List. . . . . . : sfbay.sun.com

Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . : sfbay.sun.com
        Description . . . . . . . . . . . : Intel(R) PRO/100 VE Network Connecti
on
        Physical Address. . . . . . . . . : 00-0C-F1-85-2D-55
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 10.5.26.135
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 10.5.26.1
        DNS Servers . . . . . . . . . . . : 129.145.155.32
                                            129.145.155.42
        Primary WINS Server . . . . . . . : 129.145.155.130
        Secondary WINS Server . . . . . . : 129.145.155.131
Posted Date : 2007-09-25 18:49:33.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang