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 69857

Summary: A java.lang.IllegalArgumentException exception has occurred while using the Border Editor
Product: platform Reporter: cdea <cdea>
Component: ExplorerAssignee: Stanislav Aubrecht <saubrecht>
Status: RESOLVED WONTFIX    
Severity: blocker CC: issues, jchalupa, pnejedly
Priority: P3 Keywords: RANDOM
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: exception occured while clicking on elipse in property window to set border for a JPanel
A slightly instrumented log of the problem, that explains it.

Description cdea 2005-12-05 02:52:39 UTC
This occured while clicking on the elipse for setting the boder of a JPanel in
the property window.


A java.lang.IllegalArgumentException exception has occurred




Details below:


-------------------------------------------------------------------------------
>Log Session: Sunday, December 4, 2005 8:50:23 PM EST
>System Info: 
  Product Version         = NetBeans IDE 5.0 Beta 2 (Build 200511141730)
  Operating System        = Windows 2000 version 5.0 running on x86
  Java; VM; Vendor; Home  = 1.4.2_08; Java HotSpot(TM) Client VM 1.4.2_08-b03;
Sun Microsystems Inc.; C:\opt\local\jdk\jre
  System Locale; Encoding = en_US (nb); Cp1252
  Home Dir.; Current Dir. = C:\Documents and Settings\cdea; E:\Program
Files\netbeans-5.0beta2
  Installation; User Dir. = E:\Program Files\netbeans-5.0beta2\nb5.0;E:\Program
Files\netbeans-5.0beta2\ide6;E:\Program
Files\netbeans-5.0beta2\enterprise2;E:\Program
Files\netbeans-5.0beta2\harness;E:\Program Files\netbeans-5.0beta2\platform6;
C:\Documents and Settings\cdea\.netbeans\5.0beta2
  Boot & Ext. Classpath   =
C:\opt\local\jdk\jre\lib\rt.jar;C:\opt\local\jdk\jre\lib\i18n.jar;C:\opt\local\jdk\jre\lib\sunrsasign.jar;C:\opt\local\jdk\jre\lib\jsse.jar;C:\opt\local\jdk\jre\lib\jce.jar;C:\opt\local\jdk\jre\lib\charsets.jar;C:\opt\local\jdk\jre\classes;C:\opt\local\jdk\jre\lib\ext\dnsns.jar;C:\opt\local\jdk\jre\lib\ext\ldapsec.jar;C:\opt\local\jdk\jre\lib\ext\localedata.jar;C:\opt\local\jdk\jre\lib\ext\sunjce_provider.jar
  Application Classpath   = E:\Program
Files\netbeans-5.0beta2\platform6\lib\boot.jar;E:\Program
Files\netbeans-5.0beta2\platform6\lib\org-openide-modules.jar;E:\Program
Files\netbeans-5.0beta2\platform6\lib\org-openide-util.jar;C:\opt\local\jdk\lib\dt.jar;C:\opt\local\jdk\lib\tools.jar
  Startup Classpath       = E:\Program
Files\netbeans-5.0beta2\platform6\core\core.jar;E:\Program
Files\netbeans-5.0beta2\platform6\core\org-openide-filesystems.jar;E:\Program
Files\netbeans-5.0beta2\nb5.0\core\org-netbeans-upgrader.jar;E:\Program
Files\netbeans-5.0beta2\nb5.0\core\locale\core_nb.jar;E:\Program
Files\netbeans-5.0beta2\ide6\core\org-netbeans-modules-utilities-cli.jar
-------------------------------------------------------------------------------
Turning on modules:
	org.openide.util [6.5.1 200511141730]
	org.openide.modules [6.4.1 200511141730]
	org.openide.filesystems [6.3.1 200511141730]
	org.netbeans.modules.queries/1 [1.6.1 200511141730]
	org.netbeans.modules.projectapi/1 [1.8.1 200511141730]
	org.openide.awt [6.6.1 200511141730]
	org.openide.dialogs [6.3.1 200511141730]
	org.openide.nodes [6.6.1 200511141730]
	org.openide.windows [6.4.1 200511141730]
	org.openide.options [6.3.1 200511141730]
	org.openide.text [6.8.1 200511141730]
	org.openide.explorer [6.4.1 1 200511141730]
	org.openide.actions [6.4.1 200511141730]
	org.openide.loaders [5.8.1 200511141730]
	org.netbeans.tasklistapi/1 [1.19.1.7 7 200511141730]
	org.netbeans.bootstrap/1 [2.2.1 200511141730]
	org.netbeans.core.startup/1 [1.4.1 200511141730]
	org.netbeans.swing.plaf [1.4.1 200511141730]
	org.netbeans.core/2 [3.1.1.1 200511141730]
	org.netbeans.modules.settings/1 [1.9.1 200511141730]
	org.netbeans.api.progress/1 [1.3.1 200511141730]
	org.openide.io [1.8.1 200511141730]
	org.openide.execution [1.7.1 200511141730]
	org.netbeans.core.output2/1 [1.6.1.1 1 200511141730]
	org.netbeans.core.execution/1 [1.8.1 200511141730]
	org.netbeans.modules.autoupdate/1 [2.15.1 200511141730]
	org.netbeans.modules.editor.util/1 [1.7.1 200511141730]
	org.netbeans.modules.editor.mimelookup/1 [1.2.1 200511141730]
	org.netbeans.modules.editor.fold/1 [1.4.1 200511141730]
	org.netbeans.modules.editor.lib/1 [1.8.1.1 1 200511141730]
	org.openidex.util/3 [3.8.1 200511141730]
	org.netbeans.modules.editor.settings/1 [1.3.1 200511141730]
	org.netbeans.modules.editor.settings.storage/1 [1.3.1 200511141730]
	org.netbeans.modules.editor/3 [1.25.1.1 200511141730]
	org.netbeans.modules.editor.completion/1 [1.5.1 200511141730]
	org.netbeans.api.java/1 [1.9.1 200511141730]
	org.openide.src [1.7.1 200511141730]
	org.netbeans.modules.java.editor.lib/1 [1.3.1 200511141730]
	org.netbeans.modules.classfile/1 [1.16.1 200511141730]
	javax.jmi.reflect/1 [1.6.1 200511141730]
	org.netbeans.jmi.javamodel/2 [1.20.1 200511141730]
	org.netbeans.api.mdr/1 [1.3.1 200511141730]
	javax.jmi.model/1 [1.6.1 200511141730]
	org.netbeans.modules.jmiutils/1 [1.4.1.2 2 200511141730]
	org.netbeans.modules.mdr/1 [1.4.1.2.2 2 200511141730]
	org.netbeans.modules.javacore/1 [1.16.1.2.2 200511141730]
	org.netbeans.modules.editor.codetemplates/1 [1.1.1 200511141730]
	org.netbeans.modules.java.editor/1 [1.3.1 200511141730]
	org.netbeans.modules.editor.plain.lib/1 [1.2.1 200511141730]
	org.netbeans.modules.editor.plain/1 [1.2.1 200511141730]
	org.netbeans.spi.viewmodel/2 [1.8.1 200511141730]
	org.netbeans.api.debugger/1 [1.6.1 200511141730]
	org.netbeans.api.debugger.jpda/2 [2.3.1 200511141730]
	org.netbeans.modules.debugger.jpda/2 [1.15.1 200511141730]
	org.jdesktop.layout/1 [1.2.1 0.9 200511141730]
	org.netbeans.api.xml/1 [1.11.1 200511141730]
	org.netbeans.spi.navigator/1 [1.1.1 200511141730]
	org.netbeans.libs.formlayout/1 [1.1.1 1 200511141730]
	org.netbeans.modules.options.api/0 [1.1.1 200511141730]
	org.apache.tools.ant.module/3 [3.23.1.1 1 200511141730]
	org.netbeans.modules.projectuiapi/1 [1.12.1.5 5 200511141730]
	org.netbeans.modules.project.ant/1 [1.11.1 200511141730]
	org.netbeans.modules.ant.freeform/1 [1.9.1 200511141730]
	org.netbeans.modules.java.platform/1 [1.6.1 200511141730]
	org.netbeans.modules.favorites/1 [1.10.1 200511141730]
	org.netbeans.core.ui/1 [1.8.1 200511141730]
	org.netbeans.modules.xml.core/2 [1.10.1.4 4 200511141730]
	org.netbeans.modules.xml.catalog/2 [1.9.1.4.4 4 200511141730]
	org.netbeans.modules.masterfs/1 [1.6.1 200511141730]
	org.netbeans.modules.projectui [1.6.1.5 200511141730]
	org.netbeans.modules.editor.errorstripe.api/1 [2.1.1.1 1 200511141730]
	org.netbeans.modules.java/1 [1.24.1.2.2.2 2 200511141730]
	org.netbeans.modules.project.libraries/1 [1.12.1 200511141730]
	org.netbeans.modules.java.project/1 [1.7.1 200511141730]
	org.netbeans.modules.java.freeform/1 [1.4.1 200511141730]
	org.netbeans.api.web.webmodule [1.5.1 200511141730]
	org.netbeans.modules.web.freeform [1.3.1 200511141730]
	org.netbeans.modules.beans/1 [1.16.1 200511141730]
	org.netbeans.modules.properties/1 [1.16.1 200511141730]
	org.netbeans.modules.properties.syntax/1 [1.16.1 200511141730]
	org.netbeans.modules.websvc.jaxrpc16/1 [1.1.1 200511141730]
	org.netbeans.modules.javahelp/1 [2.7.1 200511141730]
	org.netbeans.modules.db/0 [1.14.1.3 3 200511141730]
	org.netbeans.modules.db.core [1.1.1 200511141730]
	org.netbeans.modules.db.sql.editor [1.1.1.3 200511141730]
	org.netbeans.modules.ant.browsetask [1.10.1 200511141730]
	org.netbeans.modules.websvc.clientapi [1.3.1 200511141730]
	org.netbeans.spi.debugger.ui/1 [2.7.1 200511141730]
	org.netbeans.modules.debugger.jpda.ui/1 [1.4.1 200511141730]
	org.netbeans.modules.debugger.jpda.ant [1.6.1 200511141730]
	org.netbeans.core.multiview/1 [1.7.1 200511141730]
	org.netbeans.modules.junit/2 [2.18.1 200511141730]
	org.netbeans.modules.java.j2seproject [1.5.1.42 42 200511141730]
	org.netbeans.libs.commons_logging/1 [1.2.1 1.0.4 200511141730]
	org.netbeans.modules.schema2beans/1 [1.13.1 200511141730]
	org.netbeans.libs.xerces/1 [1.7.1 2.6.2 200511141730]
	org.netbeans.modules.j2ee.dd/1 [1.6.1.2 2 200511141730]
	org.netbeans.modules.j2ee.dd.webservice [1.2.1 200511141730]
	org.netbeans.modules.websvc.websvcapi [1.3.1 200511141730]
	org.netbeans.modules.editor.hints/1 [1.8.1.1 1 200511141730]
	org.netbeans.modules.j2eeapis/1 [1.5.1 200511141730]
	org.netbeans.modules.j2eeserver/4 [1.12.1 200511141730]
	org.netbeans.modules.j2ee.common/1 [1.3.1 200511141730]
	org.netbeans.modules.dbschema/1 [1.6.1.3.3 3 200511141730]
	org.netbeans.modules.j2ee.api.ejbmodule [1.3.1 200511141730]
	org.netbeans.modules.j2ee.ejbcore [1.3.1 200511141730]
	org.netbeans.modules.j2ee.ejbjarproject [1.3.1 200511141730]
	org.netbeans.modules.tomcat5/1 [1.6.1 200511141730]
	org.netbeans.core.ide/1 [1.8.1 200511141730]
	org.netbeans.modules.refactoring/1 [1.14.1.3.2 3 200511141730]
	org.netbeans.modules.apisupport.ant [2.28.1 200511141730]
	org.netbeans.modules.xml.tax/2 [1.10.1.4.4 4 200511141730]
	org.netbeans.modules.apisupport.project [1.10.1.5.4 5 200511141730]
	org.netbeans.modules.apisupport.refactoring [1.1.1.5 200511141730]
	org.netbeans.modules.xml.tools/2 [1.10.1.4.4.4 4 200511141730]
	org.netbeans.modules.j2ee.sun.dd/1 [1.4.1 200511141730]
	org.netbeans.modules.jmxri/1 [1.1.1 1 200511141730]
	org.netbeans.modules.j2ee.sun.appsrv/1 [1.2.1 1 200511141730]
	org.netbeans.modules.j2ee.sun.ddui/1 [1.5.1 200511141730]
	org.netbeans.lib.cvsclient/1 [1.13.1 200511141730]
	org.netbeans.modules.updatecenters/1 [1.5.1 200511141730]
	org.netbeans.modules.editor.bookmarks/1 [1.2.1 200511141730]
	org.netbeans.modules.html.editor.lib/1 [1.3.1 200511141730]
	org.netbeans.modules.html.editor/1 [1.3.1 200511141730]
	org.netbeans.modules.servletapi24/1 [2.5.1 2.4 200511141730]
	org.netbeans.modules.web.jspparser/2 [2.4.1 200511141730]
	org.netbeans.modules.editor.structure/1 [1.10.1.1 1 200511141730]
	org.netbeans.modules.xml.text/2 [1.10.1.4.4 4 200511141730]
	org.netbeans.modules.web.core.syntax/1 [1.21.1.4 200511141730]
	org.netbeans.modules.web.struts/1 [1.1.1.1 1 200511141730]
	org.netbeans.modules.utilities/1 [1.20.1 200511141730]
	org.netbeans.modules.tomcat5.bundled/1 [1.5.1 200511141730]
	org.netbeans.modules.web.project [1.3.1 200511141730]
	org.netbeans.modules.j2ee.earproject [1.4.1 200511141730]
	org.netbeans.modules.i18n/1 [1.19.1 200511141730]
	org.netbeans.modules.tasklist.core/2 [1.36.1.16.7 16 200511141730]
	org.netbeans.modules.suggestions_framework/2 [1.14.1.9.16.7 9 200511141730]
	org.netbeans.modules.servletapi/1 [1.8.1 200511141730]
	org.netbeans.modules.httpserver/2 [2.4.1.42 42 200511141730]
	org.netbeans.modules.xsl/1 [1.10.1.4 200511141730]
	org.netbeans.modules.welcome/1 [1.9.1 200511141730]
	org.netbeans.modules.tasklist.docscan/2 [1.22.1.9.16.7 200511141730]
	org.netbeans.spi.palette/0 [1.4.1 200511141730]
	org.netbeans.modules.form/2 [1.18.1 1 200511141730]
	org.netbeans.modules.clazz/1 [1.18.1 200511141730]
	org.netbeans.modules.web.examples/1 [1.4.1 200511141730]
	org.netbeans.modules.java.hints/1 [1.9.1.1 1 200511141730]
	org.netbeans.modules.websvc.registry [1.2.1 200511141730]
	org.netbeans.modules.websvc.core [1.4.1.1.4.4 1 200511141730]
	org.netbeans.modules.xml.multiview/1 [1.3.1.2 2 200511141730]
	org.netbeans.modules.web.core/1 [1.24.1.42.2 42 200511141730]
	org.netbeans.modules.j2ee.refactoring/1 [1.4.1.42.1 200511141730]
	org.netbeans.modules.css/2 [1.10.1 200511141730]
	org.netbeans.modules.j2ee.debug/1 [1.2.1 200511141730]
	org.netbeans.modules.web.monitor/1 [1.14.1 200511141730]
	org.netbeans.modules.diff/1 [1.14.1.42 42 200511141730]
	org.netbeans.modules.j2ee.sun.appsrv81/1 [1.0.1.1.1.4 1 200511141730]
	org.netbeans.libs.jsch/1 [1.3.1 0.1.23 200511141730]
	org.netbeans.swing.tabcontrol [1.5.1 200511141730]
	org.netbeans.modules.html/1 [1.18.1 200511141730]
	org.netbeans.modules.versioning/1 [1.2.1.1 1 200511141730]
	org.netbeans.core.windows/2 [2.6.1.1 200511141730]
	org.netbeans.modules.extbrowser/1 [1.8.1 200511141730]
	org.netbeans.modules.usersguide/1 [1.18.1 200511141730]
	org.netbeans.modules.web.debug/1 [2.7.1 200511141730]
	org.netbeans.modules.web.jsf/1 [1.1.1.1 1 200511141730]
	org.netbeans.modules.web.jstl11/1 [2.5.1 1.1.2 200511141730]
	org.netbeans.modules.j2ee.genericserver [1.3.1 200511141730]
	org.netbeans.modules.defaults/1 [1.1.1 200511141730]
	org.netbeans.upgrader [4.4.1 200511141730]
	org.netbeans.modules.j2ee.platform/1 [1.2.1 200511141730]
	org.netbeans.modules.java.examples/1 [1.4.1 200511141730]
	org.netbeans.modules.editor.errorstripe/2 [2.1.1.1.1 1 200511141730]
	org.netbeans.modules.options.editor/1 [1.1.1 200511141730]
	org.netbeans.modules.websvc.dev/1 [1.4.1.1 200511141730]
	org.netbeans.modules.j2ee.ant [1.6.1 200511141730]
	org.netbeans.modules.java.j2seplatform/1 [1.5.1.2 2 200511141730]
	org.netbeans.modules.j2ee.blueprints/1 [1.8.1 200511141730]
	org.netbeans.modules.javadoc/1 [1.17.1 200511141730]
	org.netbeans.modules.xml.schema/1 [1.10.1.4 200511141730]
	org.netbeans.modules.j2ee.ddloaders/1 [1.5.1.2.2.4 200511141730]
	org.netbeans.modules.j2ee.jboss4/1 [1.3.1 200511141730]
	org.netbeans.modules.i18n.form/2 [1.17.1 200511141730]
	org.netbeans.modules.versioning.system.cvss/1 [1.6.1.1.42.1 1 200511141730]
	org.netbeans.modules.java.navigation/1 [1.1.1 200511141730]
	org.netbeans.modules.image/1 [1.16.1 200511141730]
	org.netbeans.modules.j2ee.ejbfreeform [1.5.1 200511141730]
	org.netbeans.modules.j2ee.weblogic9/1 [1.3.1 200511141730]
	org.netbeans.modules.ant.debugger/1 [1.6.1.1 200511141730]
	org.netbeans.modules.apisupport.feedreader/1 [1.1.1 200511141730]
	org.netbeans.modules.ant.grammar/1 [1.13.1 200511141730]
	org.netbeans.modules.utilities.project/1 [1.4.1 200511141730]
Malformed or unsupported HTML
  <default package>
  ^
 Full HTML string:<default package>
*********** Exception occurred ************ at 9:26 PM on Dec 4, 2005
java.lang.IllegalArgumentException: A node selection cannot contain nodes
(EtchedBorder) not underneath the root ().
	at org.openide.explorer.ExplorerManager.checkUnderRoot(ExplorerManager.java:488)
	at org.openide.explorer.ExplorerManager.access$300(ExplorerManager.java:52)
	at
org.openide.explorer.ExplorerManager$1AtomicSetSelectedNodes.checkArgumentIsValid(ExplorerManager.java:194)
	at
org.openide.explorer.ExplorerManager$1AtomicSetSelectedNodes.run(ExplorerManager.java:246)
	at org.openide.util.Mutex.readAccess(Mutex.java:261)
	at org.openide.explorer.ExplorerManager.setSelectedNodes(ExplorerManager.java:253)
	at org.netbeans.modules.form.editors2.BorderEditor$2.run(BorderEditor.java:323)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
[catch] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
	at java.awt.Dialog$1.run(Dialog.java:540)
	at java.awt.Dialog.show(Dialog.java:561)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:800)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:843)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:831)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1146)
	at org.openide.util.Mutex.readAccess(Mutex.java:183)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:816)
	at
org.openide.explorer.propertysheet.CustomEditorAction.actionPerformed(CustomEditorAction.java:301)
	at org.openide.explorer.propertysheet.SheetTable.editCellAt(SheetTable.java:962)
	at
javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.adjustFocusAndSelection(BasicTableUI.java:510)
	at
javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.mousePressed(BasicTableUI.java:494)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:222)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221)
	at java.awt.Component.processMouseEvent(Component.java:5097)
	at
org.openide.explorer.propertysheet.SheetTable.processMouseEvent(SheetTable.java:696)
	at java.awt.Component.processEvent(Component.java:4897)
	at java.awt.Container.processEvent(Container.java:1569)
	at java.awt.Component.dispatchEventImpl(Component.java:3615)
	at java.awt.Container.dispatchEventImpl(Container.java:1627)
	at java.awt.Component.dispatchEvent(Component.java:3477)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3195)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
	at java.awt.Container.dispatchEventImpl(Container.java:1613)
	at java.awt.Window.dispatchEventImpl(Window.java:1606)
	at java.awt.Component.dispatchEvent(Component.java:3477)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Comment 1 cdea 2005-12-05 02:55:14 UTC
Created attachment 27540 [details]
exception occured while clicking on elipse in property window to set border for a JPanel
Comment 2 Petr Nejedly 2005-12-08 15:14:06 UTC
Probably timing issue although quite easily reproducible.
Create a form, add a JPanel, select it, change border to EtchedBorder, press OK,
invoke border editor again. Keep pressing cancel and invoking it again until the
exception comes.
Comment 3 Petr Nejedly 2005-12-08 15:23:45 UTC
Created attachment 27674 [details]
A slightly instrumented log of the problem, that explains it.
Comment 4 Petr Nejedly 2005-12-08 15:39:07 UTC
Please find attached a part of enhanced log that traces the problem to the
property sheeet code.
The log is a consequence of a single click on the "..." button.
Note the two calls to setRootContext with identity of each node uncovered.
The first call is coupled with invokeLatered update of selected node, which
occurs after the second call to setRootContext (=later).

(The node is selected properly, because the second call has its invokeLater as
well).

On the stack traces, you can see that first path goes through
SheetTable.processMouseEvent:660 -> onCustomEditorButton,
the second through SheetTable.processMouseEvent:688 -> super.processME
Comment 5 Stanislav Aubrecht 2007-01-10 11:34:39 UTC
thanx for the evaluation but i don't know how to fix this bug. the property
sheet doesn't do anything illegal in this case, imho

any ideas anybody?
Comment 6 Stanislav Aubrecht 2008-11-21 09:48:33 UTC
see my last comment
Comment 7 Quality Engineering 2009-11-02 11:03:42 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX