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.
[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?
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?
BUG also appears in version : FFJ20
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.
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.
Version: 'Dev' -> 3.2
Target milestone -> 3.3
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.
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
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.