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 177688 - PropertyEditorManager.findEditor(Properties.class)==null despite o.n.beaninfo.editors.PropertiesEditor
Summary: PropertyEditorManager.findEditor(Properties.class)==null despite o.n.beaninfo...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 188472 190221 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-26 09:22 UTC by FrantaM
Modified: 2010-12-10 06:14 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 162976


Attachments
stacktrace (6.20 KB, text/plain)
2009-11-26 09:22 UTC, FrantaM
Details
stacktrace (3.37 KB, text/plain)
2009-12-18 04:27 UTC, FrantaM
Details
stacktrace (5.81 KB, text/plain)
2010-01-19 06:06 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FrantaM 2009-11-26 09:22:12 UTC
This bug was originally marked as duplicate of bug 135868, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 200911251400)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Windows 7, 6.1, amd64

User Comments:
FrantaM: Clicked the 'Misc' tab in options. Exception emerged before switching to the tab. The tab content isn't displayed at all, but the tab button is highlighted. After closing the Options dialog, I can't open it again (an exception pops up).



Stacktrace: 
java.lang.IllegalArgumentException: Property editor org.openide.explorer.propertysheet.PropUtils$NoPropertyEditorEditor@72a1bd2 for property org.apache.tools.ant.module.AntCustomizer$2@7d5da132 does not support a custom editor.
        at org.openide.explorer.propertysheet.CustomEditorDisplayer.setPropertyEditor(CustomEditorDisplayer.java:144)
        at org.openide.explorer.propertysheet.CustomEditorDisplayer.getPropertyEditor(CustomEditorDisplayer.java:124)
        at org.openide.explorer.propertysheet.CustomEditorDisplayer.getCustomEditor(CustomEditorDisplayer.java:115)
        at org.openide.explorer.propertysheet.CustomEditorDisplayer.getComponent(CustomEditorDisplayer.java:344)
        at org.openide.explorer.propertysheet.PropertyPanel.installDisplayerComponent(PropertyPanel.java:464)
        at org.openide.explorer.propertysheet.PropertyPanel.addNotify(PropertyPanel.java:707)
Comment 1 FrantaM 2009-11-26 09:22:16 UTC
Created attachment 91734 [details]
stacktrace
Comment 2 FrantaM 2009-11-26 09:40:45 UTC
Ok, it's the "Open Sourceless Java Classes" plugin, available on Latest Development Build UC.
Do you have a component for it, or is it a third-party plugin?
Comment 3 FrantaM 2009-12-18 04:27:11 UTC
Created attachment 92748 [details]
stacktrace

Occured after choosing one tab in the Tools | Options dialog. I'm not sure which one, because now the exception shows everytime I want to open the dialog (ie. after clicking the Tools|Options menu item).
Comment 4 FrantaM 2009-12-18 04:44:17 UTC
He, it seems something doesn't like me.
Because I'm now using 6.8 with brand new userdir, I can say it's not the sourceless classes plugin. At least not the last exception.
Comment 5 Exceptions Reporter 2010-01-07 07:30:33 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=162976
Comment 6 Exceptions Reporter 2010-01-19 06:06:38 UTC
Created attachment 93409 [details]
stacktrace

I was looking through the editor options, and switched to (I think) the misc options.
Comment 7 Jesse Glick 2010-04-16 22:36:39 UTC
The Ant module has:

propertiesProperty = new PropertySupport.ReadWrite<Properties>("properties", Properties.class, null, null) {...}
...
new PropertyPanel(propertiesProperty, PropertyPanel.PREF_CUSTOM_EDITOR)

which is supposed to load PropertiesEditor, but I guess it doesn't find it for some reason. (CoreBridgeImpl.doRegisterPropertyEditors is responsible for setting up the search path.)

I cannot reproduce, and have no clue how to do so. So improving the exception message so the next time it happens it may be possible to diagnose (though PropertyEditorManager.findEditor silently swallows any exceptions when loading classes!): core-main #f69ca860ba20
Comment 8 Quality Engineering 2010-04-18 04:18:13 UTC
Integrated into 'main-golden', will be available in build *201004180201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f69ca860ba20
User: Jesse Glick <jglick@netbeans.org>
Log: Diagnostics for #177688.
Comment 9 Jesse Glick 2010-09-20 20:05:54 UTC
*** Bug 188472 has been marked as a duplicate of this bug. ***
Comment 10 Jesse Glick 2010-09-20 20:11:59 UTC
Richer diagnostics show that the context class loader for the event thread is set to the module loader for web.jsf.editor. FaceletsLibrarySupport._findLibraries is the apparent culprit: it tries to reset the CCL to originalLoader, but this is getClass().getClassLoader() rather than Thread.currentThread().ccl!
Comment 11 Jesse Glick 2010-09-20 22:09:39 UTC
*** Bug 190221 has been marked as a duplicate of this bug. ***
Comment 12 Marek Fukala 2010-12-09 15:00:06 UTC
fixed in web-main#f4c63569f169

I'm sorry Jesse for wasting your time... for such silly bug.
Comment 13 Jesse Glick 2010-12-09 15:11:28 UTC
Just happy to see it fixed! Unfortunate that the symptom was so far removed from the cause.
Comment 14 Quality Engineering 2010-12-10 06:14:53 UTC
Integrated into 'main-golden', will be available in build *201012100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f4c63569f169
User: Marek Fukala <mfukala@netbeans.org>
Log: #177688 - PropertyEditorManager.findEditor(Properties.class)==null despite o.n.beaninfo.editors.PropertiesEditor