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 59261 - IllegalSE: PropertiesLocaleNode firing property change for non included property
Summary: IllegalSE: PropertiesLocaleNode firing property change for non included property
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Properties (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Marian Petras
URL:
Keywords: RANDOM
: 47273 54238 61101 79090 79338 81041 81832 86729 115822 (view as bug list)
Depends on:
Blocks: 31553
  Show dependency tree
 
Reported: 2005-05-26 01:16 UTC by Peter Zavadsky
Modified: 2007-09-18 15:19 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IllegalStateException (3.41 KB, text/plain)
2005-05-26 01:16 UTC, Peter Zavadsky
Details
IllegalStateException (8.08 KB, text/plain)
2005-08-30 14:22 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Zavadsky 2005-05-26 01:16:20 UTC
1) Open properties file
2) On locale node choose Add property
3) the IllegalStateExcpetion is shown (see attachment)
Comment 1 Peter Zavadsky 2005-05-26 01:16:54 UTC
Created attachment 22311 [details]
IllegalStateException
Comment 2 Marian Petras 2005-05-26 08:47:41 UTC
I am not able to reproduce it. Could you please provide a more subtle
description of the steps to reproduce?

For example, I do not understand what exactly you mean with "Open preperties
file". Do you mean "double-click on the node" or "right-click on the node and
choose 'Open'" or just "expand the node"?

Does the node contain just one locale node or multiple locale nodes?

Thanks.
Comment 3 Jiri Prox 2005-08-30 14:21:02 UTC
I've into it too in 4.2 dev build 20050830. 
I think it's RANDOM bug, I've got it by several ways but I wasn't able to
reproduce it.

I can provide exact step whai I did, but they are probably useless.
1) create new property file
2) add locale cs_CZ
3) select locale node in explorer
4) customize locale
5) add new key
-> ISE in the console

Right after deleting the locale node I've got it again, but I am not able to
reporoduce it any more.
I am attaching also stacktrace bacause it is slightly different from that which
was attached originally to this issue.
Comment 4 Jiri Prox 2005-08-30 14:22:49 UTC
Created attachment 24356 [details]
IllegalStateException
Comment 5 Marian Petras 2005-09-19 12:23:45 UTC
This IllegalStateException is thrown under various conditions:
 - as described in this issue
 - as described in issue #47273 (after deleting a locale)
 - as described in issue #54238
 - after saving a properties file

The illegal PropertyChangeEvents are fired for the following properties:
  "valid"
  "modified"
Comment 6 Marian Petras 2005-09-19 12:25:40 UTC
*** Issue 47273 has been marked as a duplicate of this issue. ***
Comment 7 Marian Petras 2005-09-19 12:26:31 UTC
*** Issue 54238 has been marked as a duplicate of this issue. ***
Comment 8 Max Sauer 2006-04-14 13:08:37 UTC
I have reproduced this, seems to be random. Happened when editing main.class
item inside project's properties file.

Old TM, changing to TBD.

-------------
NetBeans IDE Dev (Build 200604131800)
1.6.0-beta2; Java HotSpot(TM) Client VM 1.6.0-beta2-b76
SunOS version 5.10 running on sparc
en (nb); ISO646-US
Comment 9 Marian Petras 2006-07-04 11:27:57 UTC
This happens frequently in NB 6.0 dev.
Comment 10 Marian Petras 2006-07-04 11:29:39 UTC
*** Issue 61101 has been marked as a duplicate of this issue. ***
Comment 11 Marian Petras 2006-07-04 11:30:47 UTC
*** Issue 79338 has been marked as a duplicate of this issue. ***
Comment 12 Tomas Pavek 2006-07-04 15:13:04 UTC
*** Issue 79090 has been marked as a duplicate of this issue. ***
Comment 13 Jiri Skrivanek 2006-07-25 08:29:37 UTC
*** Issue 81041 has been marked as a duplicate of this issue. ***
Comment 14 Jiri Skrivanek 2006-07-25 08:32:44 UTC
Someone should finally fix it. Cannot be applied the similar fix as for the
issue 42158?
Comment 15 Marian Petras 2007-02-15 10:19:44 UTC
*** Issue 86729 has been marked as a duplicate of this issue. ***
Comment 16 Marian Petras 2007-02-15 10:19:51 UTC
*** Issue 81832 has been marked as a duplicate of this issue. ***
Comment 17 Maros Sandor 2007-09-06 13:26:29 UTC
Stop firing change events for properties not present in the node.

Checking in FileEntryNode.java;
/shared/data/ccvs/repository/properties/src/org/netbeans/modules/properties/FileEntryNode.java,v  <--  FileEntryNode.java
new revision: 1.25; previous revision: 1.24
Comment 18 Marian Petras 2007-09-18 15:19:48 UTC
*** Issue 115822 has been marked as a duplicate of this issue. ***