United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6613334 JDK.Deploy.Plugin2: Connect to local HOSTNAME (Lookup)
JDK-6613334 : JDK.Deploy.Plugin2: Connect to local HOSTNAME (Lookup)

Details
Type:
Bug
Submit Date:
2007-10-05
Status:
Closed
Updated Date:
2010-04-04
Project Name:
JDK
Resolved Date:
2007-12-18
Component:
deploy
OS:
generic
Sub-Component:
plugin
CPU:
generic
Priority:
P3
Resolution:
Duplicate
Affected Versions:
6u5
Fixed Versions:
7

Related Reports
Backport:
Duplicate:

Sub Tasks

Description
I found the odd thing, why it's not working now,
but worked before ..

I had a misconfigured 'HOSTNAME' in my /etc/hosts file,
i.e. my laptop with hostname 'ebony' had an hard entry in 
/etc/hosts which was just wrong.

The plugin seems to try to make a connection to HOSTNAME,
instead of 'localhost', which would always work.

+++

kbr:
Note that the code 
(src/plugin/share/classes/sun/plugin2/message/transport/SocketTransport.java) 
is already using InetAddress.getLocalHost(), which must be doing this 
lookup internally. I'm not sure what the correct workaround is (i.e., 
whether "127.0.0.1" is guaranteed to work, or whether we should pass in 
"localhost", etc.)

+++

Seems like, getLocalHost() is not using 'localhost' ..

Well, for our purposes, using 'localhost' on all unix machines should be good enough,
since it is mandatory .. right ?

We also could use unix domain sockets .. if they are supported within Java.

Let's see ..

                                    

Comments
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/deployment_data/6u5/6613334.0
                                     
2007-12-18



Hardware and Software, Engineered to Work Together