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 113674 - java.lang.InterruptedException when hitting OK on editor properties.
Summary: java.lang.InterruptedException when hitting OK on editor properties.
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Options (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: RANDOM
: 116909 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-23 23:03 UTC by _ pcw
Modified: 2007-11-05 13:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Snapshot of warning dialog. (8.51 KB, image/png)
2007-08-23 23:04 UTC, _ pcw
Details
stack trace (includes console messages at top as well) (5.42 KB, text/plain)
2007-08-23 23:04 UTC, _ pcw
Details
messages.log for the affected IDE session. (85.67 KB, application/octet-stream)
2007-08-24 20:17 UTC, _ pcw
Details
new messages.log from 8/27 build. (34.67 KB, text/plain)
2007-08-28 00:47 UTC, _ pcw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ pcw 2007-08-23 23:03:55 UTC
This exception has been occurring for the last several weeks on new builds w/ new user dirs.
I build a new IDE from source (cluster.properties=j2ee) Probably could use nightly build, I don't know, I like dogfood :o

Run IDE w/ new userdir.
Bring up the Tools | Options dialog.
On Editor | General page, case sensitive code completion = true
On Fonts/Colors | Syntax page, I select language = java, then annotation use = orange, annotation declaration = orange,
parameter use = custom (purple = 153,0,204), parameter declaration = custom (purple = 153,0,204)
Then I hit OK.

And I get a popup box titled "Warning" that says "Editors/text/x-properties/properties.xml".
I also get a java.lang.InterruptedException in the log, possibly related to saving the properties to disk (But they do
appear to be saved ok.)
Comment 1 _ pcw 2007-08-23 23:04:19 UTC
Created attachment 47224 [details]
Snapshot of warning dialog.
Comment 2 _ pcw 2007-08-23 23:04:49 UTC
Created attachment 47225 [details]
stack trace (includes console messages at top as well)
Comment 3 Vitezslav Stejskal 2007-08-24 15:48:21 UTC
Umm, seems to work fine my dev build. Anyway, could you please attach whole <userdir>/var/log/messages.log? Thanks
Comment 4 _ pcw 2007-08-24 20:17:01 UTC
Created attachment 47352 [details]
messages.log for the affected IDE session.
Comment 5 _ pcw 2007-08-24 20:21:50 UTC
I attached the messages.log as requested.

It is possible this is an artifact of an incremental build and therefore invalid, I'm not certain yet.  I have seen it
several times as mentioned above, but this morning I did a clean build of the same sources and cannot reproduce it.  I
will keep an eye out what the circumstances are that I see this if I see it again.

If this is a real bug, I do not agree with the P4 priority.  It is very disconcerting for the user to see exceptions
during a save operation.  It is reasonable to assume that corruption or other damage has occurred in such cases.
Comment 6 Vitezslav Stejskal 2007-08-27 12:39:41 UTC
I appreciate your reasoning, but since the problem can't reliably be reproduced and there is no apparent damage done
when it happens the priority is P3 at the best.

I'm afraid I don't really understand what the exception means, looking at StreamPool didn't help much. The exception is
thrown when reloading editor settings after saving it first and it looks like the file is still somehow locked. It also
looks like that the exception is only informational, when printed the code resumes without further crash. I'm
reassigning it to Filesystem guys to get some advise. Please reassign back if there is anything we should (should not)
do in the editor. Thanks.
Comment 7 _ pcw 2007-08-28 00:42:49 UTC
I received this error again:

New clean dev build (not incremental).  New user dir.  Exact steps to reproduce aa originally described (except I picked
a different custom color [153,0,153]).

I'm running on an AMD dual core box.  Could this be a race condition required two or more CPU's to reproduce?
Comment 8 _ pcw 2007-08-28 00:47:36 UTC
Created attachment 47545 [details]
new messages.log from 8/27 build.
Comment 9 _ pcw 2007-08-28 00:48:28 UTC
This later reproduction was on JDK 5.  Previous incarnations were on JDK 6, so JDK appears to be irrelevant.
Comment 10 rmatous 2007-09-13 14:06:42 UTC
the exception just says that you cannot read from stream because  output stream is still open even after some delay. In
other words FS ensures r/w exclusivity . Probably not closed OS
Comment 11 Vitezslav Stejskal 2007-09-27 13:43:33 UTC
*** Issue 116909 has been marked as a duplicate of this issue. ***
Comment 12 Vitezslav Stejskal 2007-10-16 19:05:11 UTC
Should be better now.

Checking in editor/src/org/netbeans/modules/editor/options/BaseOptions.java;
/cvs/editor/src/org/netbeans/modules/editor/options/BaseOptions.java,v  <--  BaseOptions.java
new revision: 1.155; previous revision: 1.154
done
Checking in editor/libsrc/org/netbeans/editor/Settings.java;
/cvs/editor/libsrc/org/netbeans/editor/Settings.java,v  <--  Settings.java
new revision: 1.75; previous revision: 1.74
done