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 38226 - Exception when save file
Summary: Exception when save file
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 40062 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-18 20:33 UTC by _ viendu
Modified: 2005-07-11 13:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The exception when save (2.29 KB, text/plain)
2003-12-18 20:34 UTC, _ viendu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ viendu 2003-12-18 20:33:45 UTC
When I clicked save on the save icon, I got the
above exception. (not often error, but once awhile).
Comment 1 _ viendu 2003-12-18 20:34:26 UTC
Created attachment 12637 [details]
The exception when save
Comment 2 Peter Zavadsky 2004-01-08 14:23:24 UTC
It should have been some problem with activated nodes. 
I never experienced it. Closing as worksforme.

If you experience it, please reopen, and try to put here the case,
when it happened. It is important to know what windows were activated,
what sources modified, etc.
Comment 3 _ viendu 2004-01-09 16:11:59 UTC
Here's how to reproduce the error:

Create a GUI form (Such as jpanel).  Set to null layout and drop 3 or
4 components into it.  Save everything.  Next, go to the source tab,
and enter 1 space but do not save.  Next go to the form tab.  Then
click on one of the components you just droped into the form (wich was
not selected before).  What I expected at this point is the 2 save
buttons on the tool bar (1 button is to save the file, while the 2nd
button is to save all files) both enabled.  Now, click on the 1st
button once.  This will make the 2nd button disabled, but the 1st
button is still enabled somehow.  Now, click on it again will pop up
the exception (consistently).
Comment 4 Peter Zavadsky 2004-01-12 13:12:07 UTC
Yes, I see, I can reproduce it too. Thanks. I'll look at it closer now.
Comment 5 Peter Zavadsky 2004-01-12 14:47:05 UTC
It is a problem with RADComponentNode, passing to form where it belongs.

I investigated following.

Try this (like the original test case):

1) create form with Null Layout
2) put there two buttons
3) save all, button 1 is selected
4) switch to source, make some change (not connected to button
sources, no-harmful one, just space)
5) switch back to form
6) now you can see the difference, when you switch between the buttons
you see the action is enabled for the originaly unselected one and
disabled for the originaly selected.

That's wrong, it should be disabled for both I guess, anyway it should
be same for both.

I investigated more, and found out that lookup of those nodes (both
RACCOmponentNode's) differs that for the one which is enabled it
contain lookup delegating to editor support and for the second one
not, thus the node claims at one moment is has save cookie.
But when the cookie actually disappears, it probably doesn't fire
appropriate change.

Anyway it is needed to investigate in form, it is quite clumsy. 
Comment 6 Tomas Pavek 2004-02-12 17:49:11 UTC
Should be fixed together with the issue 39982.
Comment 7 Tomas Pavek 2004-02-13 09:40:55 UTC
*** Issue 40062 has been marked as a duplicate of this issue. ***
Comment 8 Marek Grummich 2005-07-11 13:17:58 UTC
Verified