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 217823 - Exception on IDE shutdown
Summary: Exception on IDE shutdown
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-04 14:48 UTC by Jiri Skrivanek
Modified: 2012-11-02 16:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace. (1.56 KB, text/plain)
2012-09-04 14:48 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-09-04 14:48:27 UTC
Created attachment 123887 [details]
Stack trace.

InterruptedException is thrown while shutting IDE down. To reproduce:

- create web project with GlassFish server
- run project
- close IDE and exception is thrown in error dialog which dismiss after while. Attached stack trace is from messages.log

  Product Version         = NetBeans IDE Dev (Build 201209040947) (#0d4d205be056)
  Operating System        = Windows 7 version 6.1 running on amd64
  Java; VM; Vendor        = 1.7.0_06; Java HotSpot(TM) 64-Bit Server VM 23.2-b09; Oracle Corporation
Comment 1 TomasKraus 2012-11-02 14:36:09 UTC
WARNING [glassfish]: Caught InterruptedException: ...
There is
                     Thread.sleep(LOG_REFRESH_DELAY);
on FetchLogLocal.java:209 and related catch block was already changed:

            } catch (InterruptedException ie) {
                Logger.log(Level.INFO,
                        "Caught InterruptedException: " + ie.getMessage());
                Thread.currentThread().interrupt();
                return TaskState.COMPLETED;
            } catch (InterruptedIOException ie) {
                Logger.log(Level.INFO,
                        "Caught InterruptedIOException: " + ie.getMessage());
                Thread.currentThread().interrupt();
                return TaskState.COMPLETED;
            } catch (IOException ioe) {
                if (taksExecute) {
                    Logger.log(Level.WARNING, "Caught IOException: ", ioe);
                    return TaskState.FAILED;
                } else {
                    Logger.log(Level.INFO,
                            "Caught IOException: " + ioe.getMessage());
                    return TaskState.COMPLETED;
                }
            }

Now WARNING log level is only for IOException when task execution is not being terminated.

I can't profide changeset now because this was fixed long time ago.
Jiri, please verify last existing build that it's OK now.
Comment 2 Jiri Skrivanek 2012-11-02 16:06:42 UTC
I haven't seen the exception in recent builds.