Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 49659

Summary: Debugger won't start
Product: [Eclipse Project] JDT Reporter: Daniel Spiewak <djspiewak>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: nBergner
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Daniel Spiewak CLA 2004-01-07 18:24:26 EST
I'm afraid the debugger won't start most of the time because the gethostname()
method or something like that returned an error that the resource was
temporarily unavalible.  It couldn't connect with the VM.  I've had this problem
on Win32 and Carbon as well and with 2.1 on linux additionally.  Never had a
problem with 2.0 on Win32 though.
Comment 1 Darin Wright CLA 2004-01-07 22:11:43 EST
Please provide more details. What error message do you receive?
Comment 2 Daniel Spiewak CLA 2004-01-12 23:33:46 EST
Here's the actual error message it spits out to the Console.  Oh, one more
thing: This only happens when I'm offline.  This might not be a problem for
those of you blessed with an always on, but I'm not quite as lucky.

Error [11] in gethostbyname() call!
err:: Resource temporarily unavailable
Socket transport failed to init.
Transport dt_socket failed to initialize, rc = -1
FATAL ERROR in native method: No transports initialized
Comment 3 Darin Wright CLA 2004-01-13 10:32:25 EST
This looks like a TCP configuration problem.

*** This bug has been marked as a duplicate of 6437 ***
Comment 4 Daniel Spiewak CLA 2004-01-16 23:18:22 EST
Would you mind giving me a heads up on how to fix it?  I'm running RH 9 Eclipse
3 M5.  Incidentally, I actually had it working for a while with M1, but then it
inexplicably quit.  I might of reinstalled the OS somewhere in there, but I
always use the same configuration for the install.  So, any thoughts on how to
fix it?
Comment 5 Darin Wright CLA 2004-01-19 09:42:48 EST
Here's the hint from the referenced bug report - windows specific, but perhaps 
you can try the equivalent in linux:

> I found a solution to the timeout problem on my machine [I was getting a
> gethostbyname() error].
>
> On windows NT:
>   open c:\winnt\system32\drivers\etc\hosts
>
>   add the line
>
>   127.0.0.1       127.0.0.1
>
> (This should trick the socket libraries to resolve 127.0.0.1 to 127.0.0.1
> !!!)
>
> restart eclipse.

Comment 6 Darin Wright CLA 2004-01-22 22:00:11 EST

*** This bug has been marked as a duplicate of 6437 ***
Comment 7 Darin Wright CLA 2004-04-19 10:29:04 EDT
*** Bug 59070 has been marked as a duplicate of this bug. ***