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 168026 - IllegalArgumentException: object is not an instance of declaring class
Summary: IllegalArgumentException: object is not an instance of declaring class
Status: RESOLVED INCOMPLETE
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-02 11:59 UTC by bartvdc
Modified: 2009-08-01 09:17 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 13087


Attachments
stacktrace (2.56 KB, text/plain)
2009-07-02 12:00 UTC, bartvdc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bartvdc 2009-07-02 11:59:55 UTC
Build: NetBeans IDE 6.7 Beta (Build 200904242137)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Windows XP, 5.1, x86

User Comments:
GUEST: swingx in gui-editor -> properties

bartvdc: Use a subclass of jxtitledseparator

drhoden: Attempted to set property on custom JavaBeans Component by using the drop down in the Properties field.  The drop down did show the correct options, but when attempting to select it (javax.persistence.Query) the IDE didn't like it.

GUEST: Dunno



Stacktrace: 
java.lang.IllegalArgumentException: object is not an instance of declaring class
        at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:0)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.netbeans.modules.form.RADProperty.getTargetValue(RADProperty.java:111)
        at org.netbeans.modules.form.FormProperty.checkCurrentValue(FormProperty.java:995)
Comment 1 bartvdc 2009-07-02 12:00:00 UTC
Created attachment 84295 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-07-02 12:00:05 UTC
This issue already has 14 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=13087
Comment 3 Jan Stola 2009-07-20 15:56:36 UTC
I am sorry, I am not able to reproduce this issue and the attached exception is not sufficient to track the problem 
down. Could you, please, provide more details? It would be ideal to described exact steps to reproduce. Thank you in 
advance.
Comment 4 locked 2009-08-01 09:12:31 UTC
Just had the problem again:
Once in a while a self written java Bean reports this error. Maybe because I've corrupted it.
After reverting all changes the error remains (!?).
Clean & Build and removing/re-adding the bean to my GUI Component didn'T solve the problem.
Finally I renamed the Bean (MyBean -> MyBean1) readded the bean and suddenly it works again.

Maybe there was an important step between, but renaming _seemed_ to solve the problem.
Comment 5 locked 2009-08-01 09:17:52 UTC
OKay, renaming definatly solves the problem.
After being happy that renaming to MyBean1 solved the issue I again did clean & build and renamed back MyBean1 -> MyBean.
And the errors in the Beans-properties editor showed up again. 
Removed the bean from the GUI Component, 
renamed MyBean -> MyBean3, 
Clean & Build,
dragged MyBean3.java from the Projects view into my GUI Component,
everything fine again.

Is this a kind of caching issue?