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 92208

Summary: Handle properly when computer is not connected to network
Product: ide Reporter: Jiri Skrivanek <jskrivanek>
Component: LoggerAssignee: Jaroslav Tulach <jtulach>
Status: VERIFIED FIXED    
Severity: blocker Keywords: T9Y
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Stack trace
Thread dump from automated tests.

Description Jiri Skrivanek 2007-01-10 13:20:01 UTC
Empty UI Gestures Collector dialog is repeatedly opened when the computer is not
connected to network. It even causes deadlocks when running automated tests. You
should somehow handle state when it cannot connect to desired location. IMO, it
should ignore it silently in such case. To reproduce:

- unplug your network cable
- start IDE
- cause an Exception in IDE (e.g. in build 200701091900 open Tools|Options and
click Editor category)
- now you can see empty UI Gestures dialog and if you click Cancel button it
appears again. Also SocketException is printed out to console.
Comment 1 Jiri Skrivanek 2007-01-10 13:20:43 UTC
Created attachment 37218 [details]
Stack trace
Comment 2 Jiri Skrivanek 2007-01-10 13:21:18 UTC
Created attachment 37219 [details]
Thread dump from automated tests.
Comment 3 Jaroslav Tulach 2007-01-10 15:06:38 UTC
Works for me on my linux, maybe duplicated of issue 91999. Please check 
tomorrow and possibly tell me on which platform it misbehaves, I guess the 
actual exception thrown on bad connection is different on different OSes/JDKs 
and I need to catch all variants...
Comment 4 Jiri Skrivanek 2007-01-11 09:55:35 UTC
Now it works for me on windows, but while testing it throws
NoRouteToHostException on Linux 2.4.21-37.EL, JDK1.6.0-rc-b95, build 200701101900:

WARNING [org.netbeans.modules.uihandler.Installer]:
http://logger.netbeans.org/nonav/welcome/error.html
java.net.NoRouteToHostException: No route to host
at java.net.PlainSocketImpl.socketConnect(Native Method)

http://ffjqa.czech/automatedtests/xtest/netbeans_dev/200701101900/qa-functional_validation/qa-linux-perf_1/testrun_070111-022427/logs/web_jsf_qa-functional.log
Comment 5 Jaroslav Tulach 2007-01-11 11:02:55 UTC
Ok, special handling for NoRouteToHostException:

/shared/data/ccvs/repository/logger/uihandler/src/org/netbeans/modules/uihandler/Installer.java,v  
<--  Installer.java
new revision: 1.41; previous revision: 1.40
Comment 6 Jiri Skrivanek 2007-01-12 08:17:50 UTC
Seems to be fixed at all possible configurations. Thanks.