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 109545 - property value equals "Error getting property value"
Summary: property value equals "Error getting property value"
Status: RESOLVED DUPLICATE of bug 72802
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-12 18:27 UTC by jesdisciple
Modified: 2007-09-07 14:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
the message log, which the IDE told me to include (507.77 KB, text/plain)
2007-07-12 18:32 UTC, jesdisciple
Details
source for troubling form (6.96 KB, text/plain)
2007-07-15 00:07 UTC, jesdisciple
Details
troubling form (I guess 'Plain text' is appropriate.) (5.92 KB, text/plain)
2007-07-15 00:10 UTC, jesdisciple
Details
My messages.log file (1.07 MB, text/plain)
2007-07-16 19:42 UTC, vovtz
Details
The problematic form; please note how StringItem's with index 2 and 5 have not been updated in the code (22.50 KB, application/octet-stream)
2007-07-16 19:51 UTC, vovtz
Details
The source file belonging to the form (19.17 KB, text/plain)
2007-07-16 19:52 UTC, vovtz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jesdisciple 2007-07-12 18:27:52 UTC
On the visual editor, my JTable had minimumSize, maximumSize, and preferredSize values of "Error getting property value"
in red.  Neither left click nor edit is allowed.  After resizing the JTable, minimumSize and maximumSize resumed  proper
operation, but preferredSize is still disabled.  I'm using Source view to edit my form because Design lacks some
capabilities (such as content, header, and column-/row-dimension editing for JTable and support for BoxLayout.Y_AXIS).
Comment 1 jesdisciple 2007-07-12 18:32:03 UTC
Created attachment 45032 [details]
the message log, which the IDE told me to include
Comment 2 Tomas Pavek 2007-07-13 09:45:29 UTC
Could you also attach the entire form where this happens? I suspect the JTable must be configured certain way to cause
this problem. It does not normally happen if I just add a JTable to a form. Thanks
Comment 3 jesdisciple 2007-07-15 00:07:53 UTC
Created attachment 45103 [details]
source for troubling form
Comment 4 jesdisciple 2007-07-15 00:10:29 UTC
Created attachment 45104 [details]
troubling form (I guess 'Plain text' is appropriate.)
Comment 5 jesdisciple 2007-07-15 00:14:30 UTC
The values are no longer giving me trouble.  I have altered the class, but hopefully the context will give some clue as
to the cause.  I believe I was using Design when the trouble occurred.  Shortly after submitting the issue, all three
fields did it again and I found no solution, later closing the IDE.
Comment 6 jesdisciple 2007-07-15 00:39:09 UTC
Also, I found how to edit the JTable's content, header, and column/row dimensions.
Comment 7 Tomas Pavek 2007-07-16 16:29:59 UTC
So the problem just appeared and disappeared, not tied to particular setup/content of the form? I.e. is not there after
you restart the IDE, you must do "something" to make it happen.
Comment 8 vovtz 2007-07-16 19:40:15 UTC
The same happens to me, but on a Mac, using NB 5.0 (Mac OS X 10.3 can only use JVM 1.4).

I'm not using any tables in my form, but the "IllegalStateException: Error getting property value" happened to me after editing JComboBox properties. I 
restarted the form from scratch, because this error prevents the form editor from saving any changes. But after reopening the new project and editing 
some properties of the combo boxes, both of them ended up showing this problem again.

The first time I had copied the second combo box from the first, so I thought that was causing the problem, but the second time around I created both of 
them (actually _all_ widgets, because I didn't trust the form editor anymore) as new items.
Comment 9 vovtz 2007-07-16 19:42:41 UTC
Created attachment 45156 [details]
My messages.log file
Comment 10 vovtz 2007-07-16 19:51:28 UTC
Created attachment 45159 [details]
The problematic form; please note how StringItem's with index 2 and 5 have not been updated in the code
Comment 11 vovtz 2007-07-16 19:52:51 UTC
Created attachment 45160 [details]
The source file belonging to the form
Comment 12 vovtz 2007-07-16 20:08:54 UTC
In my case only 'minimumSize' and 'preferredSize' have the problem. Resizing doesn't do any good.

@tpavek: After restarting the IDE, nothing has changed, said properties are still red and uneditable in 'Design' mode.

Since I don't see anything special with the combo boxes in the form's XML file, I have no idea whatsoever how to go about resolving this.
Comment 13 vovtz 2007-07-16 20:17:43 UTC
Sorry, was under the impression that I could set platform, OS etc. separately just for my comments... adjusted. Please read version '5.0' as '>= 5.0' ;)
Comment 14 Tomas Pavek 2007-07-17 09:17:48 UTC
We know about the problems with combo box (see issue 72802), but the fact it can happen also with JTable was new. I
wanted to know as much as possible about how to reproduce the JTable problem.

With the combo box it seems it helps not to set the content in the GUI builder (i.e. reset the 'model' property to
default), write the model code manually.
Comment 15 jesdisciple 2007-07-22 17:37:14 UTC
Yes, all properties are fine on restart.  I just returned from summer camp and will try to pay attention to the values
as to when they mess up.
Comment 16 Tomas Pavek 2007-09-07 14:08:41 UTC
I think this is the same problem as issue 72802 - uninstalling ComponentUI due to failure in JComponent serialization.
Here the offending component is JTableHeader. Should be fixed now (for 6.0).

*** This issue has been marked as a duplicate of 72802 ***