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 26192

Summary: IDE won't restart if shut down with Java Sources selected in Tools | Options
Product: platform Reporter: _ tboudreau <tboudreau>
Component: -- Other --Assignee: Jiri Rechtacek <jrechtacek>
Status: VERIFIED WORKSFORME    
Severity: blocker CC: jglick
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 20699, 27025    
Bug Blocks:    
Attachments: log file

Description _ tboudreau 2002-08-01 17:43:52 UTC
Throws an exception on startup that a node (Java
Source) not under the root (Options) cannot be
selected.  Note this bug is intermittently
reproducible - a second restart often succeeds,
and a third fails
again (some kind of race condition?).  Attaching
log file.
Comment 1 _ tboudreau 2002-08-01 17:44:22 UTC
Created attachment 6980 [details]
log file
Comment 2 Tomas Hurka 2002-08-13 19:00:37 UTC
It looks to me like problem with Option dialog. Feel free to reassign
back if I am wrong.
Comment 3 _ ttran 2002-08-30 20:17:06 UTC
Tim, you're running 3.4 beta3.  Please try it with the 3.4 final.

I remember a similar bug was fixed in the past, don't remember when
though.
Comment 4 Jiri Rechtacek 2002-08-31 08:10:43 UTC
Unhappily this can appear in nb3.4 final. The problem is that Java
Sources (or some others nodes) is removed from hierarchy between a
node is obtained and a node is selected; a node is refreshed and has
not any parent. Maybe, DataObject representing node is invalidated,
but set valid on false is not called at all.
Comment 5 _ tboudreau 2002-08-31 09:56:48 UTC
This bug strikes me as P1 or P2, not P3 - doing a perfectly normal
thing leaves the IDE un-restartable or intermittently non-restartable.
That's pretty serious.

And do we know what other nodes may have this problem?
Comment 6 Jesse Glick 2002-08-31 15:26:43 UTC
Seems to be triggered by the fix of issue #20699, though OptionsAction
is still IMHO at fault for not checking what nodes it is setting the
selection to before setting it. It would be interesting to know why
this node is getting recreated - I have no idea - but in the meantime
OptionsAction can avoid the actual error by checking all nodes in the
node selection to confirm they are beneath the root node.
Comment 7 Jesse Glick 2002-08-31 15:28:07 UTC
Something we would want to fix, I think. P2 does sound more appropriate.

Workaround is presumably to delete $userdir/system/Windows/ or at
least part of it.
Comment 8 Jiri Rechtacek 2002-09-02 14:39:41 UTC
commited a workaround in OptionsAction. The nodes are checked if are
under root before are selected, if not that a warning is logged.
(rev.1.42 /cvs/core/src/org/netbeans/core/actions/OptionsAction.java)
Comment 9 Jaroslav Tulach 2002-09-05 13:49:58 UTC
Jiri, you can remove the workaround.
Comment 10 Jiri Rechtacek 2002-09-10 10:35:25 UTC
The heart of problem (issue 27025) was fixed. I'm going to remove
workaround from trunk. I close as works for me.
Comment 11 Jiri Rechtacek 2002-09-10 10:37:08 UTC
remove 3.4.1_candidate
Comment 12 Jiri Rechtacek 2002-09-16 15:37:44 UTC
the workaround was removed
Comment 13 Jesse Glick 2002-09-29 15:29:49 UTC
*** Issue 27565 has been marked as a duplicate of this issue. ***
Comment 14 Jiri Rechtacek 2002-12-05 14:45:34 UTC
*** Issue 29302 has been marked as a duplicate of this issue. ***
Comment 15 Marian Mirilovic 2003-07-29 10:09:10 UTC
verified - it works fine in [nb_dev](20030728)