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 250769 - InterruptedException at java.lang.Object.wait
Summary: InterruptedException at java.lang.Object.wait
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: matthias42
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-27 14:34 UTC by wjdhamilton
Modified: 2015-03-11 04:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 214763


Attachments
stacktrace (1005 bytes, text/plain)
2015-02-27 14:34 UTC, wjdhamilton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wjdhamilton 2015-02-27 14:34:17 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b18
OS: Windows 7

User Comments:
wjdhamilton: I had used the psf macro to generate a private static final variable whilst running an app in the background

GUEST: querying a large table, and then canceling the query due to it taking too long to show the results




Stacktrace: 
java.lang.InterruptedException
   at java.lang.Object.wait(Object.java:0)
   at java.lang.Object.wait(Object.java:502)
   at java.awt.EventQueue.invokeAndWait(EventQueue.java:1301)
   at java.awt.EventQueue.invokeAndWait(EventQueue.java:1282)
   at org.openide.util.Mutex.doEventAccess(Mutex.java:1409)
   at org.openide.util.Mutex.writeAccess(Mutex.java:387)
Comment 1 wjdhamilton 2015-02-27 14:34:19 UTC
Created attachment 152280 [details]
stacktrace
Comment 2 matthias42 2015-03-07 12:51:55 UTC
Thank you for your report! I could not reproduce the problem, but the analysis is clear - the sequence:

- A DB query is running
- The data is fetched
- To visualize the data it is passed to a swing  component, that needs to be done on the EDT
- The fetching task waits for access to the EDT

And while waiting for access it gets interrupted. Here lies the problem in that the coding does not expect that interrupt.

A fix was committed as:

http://hg.netbeans.org/core-main/rev/d6aadf637433

If possible please check if you can verify this fix when the corresponding nightly is produced.
Comment 3 Quality Engineering 2015-03-11 04:06:29 UTC
Integrated into 'main-silver', will be available in build *201503110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d6aadf637433
User: Matthias Blaesing <matthias42@netbeans.org>
Log: #250769: Unify/check Mutex.Event usage and use SwingUtilities.invokeLater where interrupts are expected