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.
I was not able to add a class to my Matisse palette, because the class did not have a no-argument public constructor. (I know that this was the reason, because I hacked into the BeanInstaller.java class to provide more information.) After I corrected my class, BeanInstaller still displayed the same error message. The original state seems to be cached within the %netbeans_default_userdir%\var\cache\mdrstorage directory, and even reinstalling NetBeans 5.5 (Build 070510) was unsuccessful in clearing that cache. (Note: this issue could be similar to bug 71476.) Work-around: I was able to add the corrected class to my palette after I deleted the mdrstorage subdirectory and re-started the IDE.
Note: search the attached source file for three asterisks (***) for (non-internationalized) code that could be the basis for an enhancement to provide additional specific error reporting from the BeanInstaller.isDeclaredAsJavaBean() method.
Created attachment 42282 [details] suggested BeanInstaller error reporting enhancement
Sorry, the similar bug mentioned above should have been bug 71416, not 71476.
lheidt: note that mdr was removed in upcoming 6.0 so the second part of bug will be probably not reproducible. Reassigning to form for evaluation
Created attachment 42329 [details] BeanIstaller suggestion, upgraded to NB6
Yes, I've just found that the caching problem does not exist in 6.0 Milestone 9. Please search my new attachment for three asterisks (***) for my BeanInstaller suggestion upgraded to NB6.
The suggested improvement has been implemented. Modified files: /cvs/form/src/org/netbeans/modules/form/palette/BeanInstaller.java,v new revision: 1.82; previous revision: 1.81 /cvs/form/src/org/netbeans/modules/form/palette/Bundle.properties,v new revision: 1.55; previous revision: 1.54