This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 8283 - It cann't debugg of hostname=(none), java.net.UnknownHostException:(none) appears in warning dialog
Summary: It cann't debugg of hostname=(none), java.net.UnknownHostException:(none) app...
Status: CLOSED WONTFIX
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 major (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-11-08 16:41 UTC by dmladek
Modified: 2001-07-20 20:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dmladek 2000-11-08 16:41:17 UTC
[1143CE]
jdk1.3.0-fcs SUN
linux 2.2.12-20smp
===================

DebuggerProblem:

Today I've discoverd user ugly behaviour of debagger in general.

Situation:
I always work using network and my linux always obtain the host name
from DHCP. Today happend network was broken and my computer
couldn't obtain its name.
so its hostname was (none).

IDE was able to work (why not if I don't use any network point to work
with IDE).
But I could't debugg anymore I receive warning with Incoretct Configuration.

Content of "Incorect Configuration" dialog was:

Exception while starting debugger:
Cannot start process {java.home} {/}..{/}bin{/}java.
java.net.UnknownHostException:(none)

And chooices:
Configure
Cancel

No record's in ide.log.

I wasn't able to configure it (I'm not advanced in such this things, no help)
I know that it's possible to do remote debugging and in this case
I think the such behaviour is necessery.

The misstake could be at my side, but IMHO why it disturbed me
with such  type of problem about hostname. I'm a user who just want
to debugg my simply application: No network, no special thing are used here.
I cannot handle network configuration on linux and so on. And Why I should know
it how if I want debugg only my local app?
Comment 1 dmladek 2001-01-19 16:16:59 UTC
Today I was using [NBdev-106]

jdk1.3_01 SUN

linux rh70

==============================



This bug still exist.

Unfortunetally, it doesn't print any StackTrace. Only UnknownHostException

is thrown and you're ask for configuration of debugger.

Again, NO RECORDS in ide.log



But I can give you instruction how to simulate Network error:

-------------------------------------------------------------

So, before you start your X session

became as root and edit /etc/hosts

Here, comment line where is localhost mentioned like 127.0.0.....  localhost....

Then type following command:

hostname "(none)"

To verify if this is correct

type only:

hostname



it will display:

(none)



After that you can start your X session and do everything as ususaly doing...

runide

open some program, eg. clock from tutorial

try to run it. I suppose it will

then set braikpoints and start debugger.



but you'll receive mentioned Exception.



Pls,if you are able to build in any debug printing and stacktracing

it will help me/you to find where is problem.



But IMHO: as I said already:

For a small, NO-NETWORK application Why it tries call some method from

package net ?

Is it neccesseary?
Comment 2 Jan Stola 2001-01-22 12:05:59 UTC
BUG also appears in version : FFJ20
Comment 3 S Sloan 2001-02-10 04:27:59 UTC
Yes I have the same problem too.
linux 2.2.17mdk
jdk1.3.0_01, forte 2.0

All other parts of ide function as expected. That is internal/external
compilation/execution. So I assume my paths are setup right.

In the user space...
1. open the source editor to some source to debug
2. press the attatch to vm icon on ide
3. enter hostname and port number
4. debugger output window opens then a configuration error window opens.Error is
"connection refused".
5. that's it.

If I do the above as root, I still get "connection refused" errors.

I've set classic to true. jpda is default debugger, no spaces in path names. I
tried passing -Xrunjdwp:server=n,address=8000 to vm via two methods. First, from
the runide script. The script would crash with that parm. It would not crash
with the -Xdebug parm. Second via the debugger properties box from the ide. The
parms passed but port 8000 wasn't open/defined.

Another scenario...
1. open source editor to debug
2. press "step into" icon on ide
3. output window opens and configuration error window opens. This time though
the error is "UnknownHostException" along with my hostname.

I run dhcp. No firewall.

I wonder if this is a config problem rather than a bug. I've done everything I
can do on my own. I've searched knowledge bases, asked community questions,
asked for installation support and searched through documentation. I read the
jpda config doc and followed the solaris example of using a socket to attatch to
vm. Nothing works.

I haven't been successful in telling the vm which port to run on, and the
Xrunjdwp parm either crashed the ide or was just ignored depending on which
method I used to get the parm passed to the vm.

Some linux documentation would be helpful as there is very little regarding
linux and the ide.
Comment 4 S Sloan 2001-02-10 09:19:59 UTC
I came up with a solution that solves this problem. Lookup "jpda, linux and
dhcp" in the community discussion forum. But I thought that dhcp was dynamic.
Manually entering host info is static. Thus if my IP changes my ip address and
hostname, my debugger wont work any more until I change my static config. So is
this a bug or is this how the ide was designed to work. Perhaps I don't
understand enough about dhcp.
Comment 5 Jan Chalupa 2001-03-12 09:04:39 UTC
Version: 'Dev' -> 3.2
Comment 6 Jan Chalupa 2001-05-05 21:32:49 UTC
Target milestone -> 3.3
Comment 7 Marian Petras 2001-06-08 17:38:49 UTC
Some explanation of the problem is described in a comment to issue #12312
(the comment was added on 2001-06-08). Maybe some workaround is possible.
Or at least an error dialog should be displayed instead of throwing an exception.
Comment 8 mvatkina 2001-06-08 19:40:59 UTC
I have the same problem with Solaris 7.

The following solution works but awfully slows down the IDE:

As a root change line in /etc/hosts:
	from
192.129.100.100  generic  loghost
	to
192.129.100.100  <my_host>  loghost
Comment 9 Marian Petras 2001-06-19 13:39:04 UTC
This is not a real bug. If hostname is "(none)" then the computer's
configuration is bad and there is no way how debugger can solve this. See
http://forte.sun.com/cgi-bin/WebX?14@194.drXYaVMEbVe^1@.ee7698f for more
information.

What was buggy is that an exception was displayed instead of some better error
message. A more suitable error message is now displayed.