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 15706 - IllegalStateException thrown when removing file from explorer
Summary: IllegalStateException thrown when removing file from explorer
Status: CLOSED DUPLICATE of bug 15795
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P1 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-09-20 15:30 UTC by Jan Lahoda
Modified: 2008-12-22 15:48 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IllegalStateException thrown. (2.59 KB, text/plain)
2001-09-20 15:31 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2001-09-20 15:30:06 UTC
I was removing file (opened in editor and modified) from explorer and attached
IllegalStateException occured.
My build is 200109200100.
Comment 1 Jan Lahoda 2001-09-20 15:31:39 UTC
Created attachment 2623 [details]
IllegalStateException thrown.
Comment 2 Jan Zajicek 2001-09-21 08:21:26 UTC
CCing myself.
Comment 3 Jesse Glick 2001-09-23 18:20:54 UTC
This is duplicate of a bug which just got assigned to me (P3,
curiously) and which I reassigned to the editor. Can't remember the #
offhand.
Comment 4 Jan Zajicek 2001-09-24 11:17:46 UTC
*** Issue 15813 has been marked as a duplicate of this issue. ***
Comment 5 Jan Zajicek 2001-09-24 11:23:03 UTC
Yarda and Vita discussed this and the resolution was, that this should
be fixed in data systems by returning the node or by returning new
dummy/void node. It is P1 because this exception occurs in many
modules and we cannot guarantee that after isValid will be the
dataobject valid - someone can still invalidate it in multithreading
environment.
Comment 6 Vitezslav Stejskal 2001-09-24 12:43:06 UTC
I will apply the change with *void node* as a hot fix, but this need 
wider discussion on openide-dev (I'll try to start it).
Comment 7 Vitezslav Stejskal 2001-09-24 16:22:21 UTC
After some investigation I found that this problem was 
resolved by fixing issue #15795. In fact this wasn't caused by race 
conditions but missing validity check in 
...editor.DORegistryListener.addSavedSourcesToParserDB ().

It doesn't mean that throwing ISE from getNodeDelegate() called on 
invalidated DO shouldn't be changed in the future, but at least for 
now this restrictive approach helps us to discover problems caused by 
missing checks like this one. Problems casued by race conditions 
theoreticaly exist but they seem occur rarely if whatever (at least 
all similar issues were resolved by adding reasonable validity 
checks).

*** This issue has been marked as a duplicate of 15795 ***
Comment 8 Jan Zajicek 2001-09-25 08:33:37 UTC
Vito, can you check also duplicated issue #15813. If it need to be
fixed in EJB, let me know. Thanks.
Comment 9 Quality Engineering 2003-07-01 16:02:44 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified
Comment 10 Quality Engineering 2003-07-01 16:37:20 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.