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 77572 - Exceptions while closing all documents
Summary: Exceptions while closing all documents
Status: VERIFIED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords: RANDOM
: 66986 78955 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-08 13:25 UTC by Jiri Skrivanek
Modified: 2008-12-22 12:15 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack traces (2.47 KB, text/plain)
2006-06-08 13:26 UTC, Jiri Skrivanek
Details
Another IndexOutOfBoundsException stack trace. (2.59 KB, text/plain)
2006-06-14 10:17 UTC, Jiri Skrivanek
Details
NPE stacktrace (1.40 KB, text/plain)
2006-09-27 11:31 UTC, Lukas Hasik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2006-06-08 13:25:49 UTC
NullPointerException and BadLocationException are thrown very often during
commit validation suite. It happens when test is closing all documents opened in
editor. I was able to reproduce it manually but I don't have exact steps. It
seems that scanning has to be in progress when you call 'Close All Documents'
action.

Build 20060608-0933, WindowsXP, JDK1.5.0_06.
Comment 1 Jiri Skrivanek 2006-06-08 13:26:54 UTC
Created attachment 30892 [details]
Stack traces
Comment 2 Jiri Skrivanek 2006-06-14 10:17:54 UTC
Created attachment 31041 [details]
Another IndexOutOfBoundsException stack trace.
Comment 3 Jan Becicka 2006-06-14 14:34:00 UTC
org.openide.text issue I guess.
Comment 4 Petr Nejedly 2006-06-26 15:11:27 UTC
Hmm, both exceptions show they occured under document's read lock, that means
that the document was emptied during close w/o write lock somehow...
Comment 5 Petr Nejedly 2006-06-27 16:14:10 UTC
*** Issue 66986 has been marked as a duplicate of this issue. ***
Comment 6 Antonin Nebuzelsky 2006-09-22 15:48:58 UTC
Petre, any chance to do something about this now? 5.5?
Comment 7 Lukas Hasik 2006-09-27 11:31:19 UTC
Created attachment 34569 [details]
NPE stacktrace
Comment 8 Lukas Hasik 2006-09-27 11:32:10 UTC
the NPE appeared when I closed only one document in 5.5 060920 build
Comment 9 Petr Nejedly 2006-09-27 13:09:43 UTC
Yes, it can probably happen if you just modify it and then quickly close, I guess.
The problem was there even in 5.0, no change in that area. Updating version.
Comment 10 Jiri Skrivanek 2007-08-27 12:57:16 UTC
*** Issue 78955 has been marked as a duplicate of this issue. ***
Comment 11 Petr Nejedly 2007-09-20 15:30:40 UTC
Rare enough and risky fix, potentially -> P3, future.
Comment 12 Antonin Nebuzelsky 2008-04-17 15:15:40 UTC
Reassigning to new module owner mslama.
Comment 13 mslama 2008-10-09 13:17:05 UTC
Closing as this are was changed a lot. Please reopen if it happens again.
Comment 14 Jiri Skrivanek 2008-10-09 14:04:40 UTC
Verified.