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.
NetBeans IDE 6.0 Beta 2 (Build 200710181000) XP JDK1.6.03 This may not belong to designer, just starting here. I noticed that the exception reporter has captured reports from Aug, Sep, and Oct but is "uncategorized" hence no bug was ever filed. See: http://statistics.netbeans.org/exceptions/detail.do?id=1474 for several scenarios. to reproduce 1. clean userdir 2. create vw ee5 project. page 1 is in design view but blank (no components dropped). 3. from the drop down locator, switch to the start page >exception to log java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location at java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1800) at java.awt.Component.getLocationOnScreen(Component.java:1774) at javax.swing.plaf.basic.BasicToolBarUI$Handler.mouseDragged(BasicToolBarUI.java:1176) at java.awt.Component.processMouseMotionEvent(Component.java:6086) at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3283) at java.awt.Component.processEvent(Component.java:5807) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4410) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4003) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2429) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) [catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
I can't reproduce this case. Also do those other cases indicate that it happens when switching between other windows than start page and the designer? Only thing which is for sure, is that it is about some toolbar component (see the stack trace), just don't know which one.
Not limited to navigating to start page, but thta is frequent. See the statistics link for other scenarios: sometimes if faces-config.xml is navigated to...designer to java source..
Ah, so not always is the designer involved. It means, that it might be about other toolbar (the designer one is same like any other views), passing to window sys.
pzavadsky, why winsys? Do you see one single winsys class in the call stack? Me not...I think it's not right that core team is automatically made responsible for all exceptions coming from Swing. Anyway passing to Standa, perhaps he can do something with this. Krystyna, on which platforms it happens? I see "XP" in your report but "OS" field is set to "All"?!
> Not limited to navigating to start page, but thta is frequent. See the > statistics link for other scenarios: sometimes if faces-config.xml is > navigated to...designer to java source.. my understanding is that it happens when switching from vwp editor to other windows - not just the start page. please evaluate at your end first.
*** Issue 119159 has been marked as a duplicate of this issue. ***
My understanding is that it is not connected to the visual web designer (see also the duplicate issue, there are faces config editors, not the designer). Also the only toolbar designer provides is the one window system uses (via TopComponent#getToolbarRepresentation, .. see visualweb/designer/jsf/../JsfTopComponent.getToolbarRepresentation). I.e. it is in control of winsys after it is passed to it. There doesn't seem to be anything special in its implementation. Passing back to window sys.
> My understanding is that it is not connected to the visual web designer (see also the duplicate issue, there are faces > config editors, not the designer). yes, i was thinking that the user switched from designer to config editor but that's probably just my poor command of english:) anyway, as winsys doesn't do anything special for designer when switching topcomponents it'll be a bit hard to fix
i'm sorry but i wasn't able to reproduce this issue. pls try to provide better steps to reproduce
I'm sorry but I keep seeing this and just easily reproduced this on XP, This is what I did: 1. create a plain web application project (lets call it WebApp1) 2. create a visual web project ee5 (lets call it Web App2) 3. added a page to WebApp1 project (cascading style sheet) 4. click on web. xml from project view WebApp1/Configuration Files to open that page (start to switch now using page locator; maybe that is a factor) 5. next select page1 tab (of WebApp2) and context menu on background and select Page Navigation which loads faces-config.xml in multiviewer 6. using page locator, switch to index.jsp >Got the exception In this scenario, start page was not one of the pages in the list as I had unchecked the page but perhaps it had something to do with the fact that there were 5 pages in multiviewer, and not all the tabs could fit into the viewport. etBeans IDE Dev (Build 200710220000) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02 java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location at java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1800) at java.awt.Component.getLocationOnScreen(Component.java:1774) at javax.swing.plaf.basic.BasicToolBarUI$Handler.mouseReleased(BasicToolBarUI.java:1162) at java.awt.Component.processMouseEvent(Component.java:6038) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) at java.awt.Component.processEvent(Component.java:5803) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4410) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2429) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) [catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
And I just reproduced it again on NetBeans IDE Dev (Build 200710231200) using just a plain web project, opening the web.xml, switching between it and the start page.
many thanks for the extra info but i still can't reproduce this bug
And you are using the same JDK 1.6.0_3 ?
just to make sure i'm reproducing your steps correctly - the 'dropdown page locator' is the 'down-arrow' button at the upper right corner of the editor area, right?
*** Issue 122025 has been marked as a duplicate of this issue. ***
Encountered it many times. Usually have many profiler snapshots opened and use drop-down to switch between them and other windows.
*** Issue 129756 has been marked as a duplicate of this issue. ***
Build: NetBeans IDE 6.0 (Build 200711261600) VM: Java HotSpot(TM) Client VM, 10.0-b19 OS: Windows XP, 5.1, x86 User Comments:
Created attachment 59767 [details] stacktrace
moving opened issues from TM <= 6.1 to TM=Dev
This issue has already 20 duplicates
Build: NetBeans IDE 6.1 (Build 200804211638) VM: Java HotSpot(TM) Client VM, 1.6.0_02-b05, Java(TM) SE Runtime Environment, 1.6.0_02-b05 OS: Windows XP, 5.1, x86 User Comments:
Created attachment 60811 [details] stacktrace
Created attachment 61348 [details] stacktrace
Created attachment 62095 [details] stacktrace
Created attachment 63310 [details] stacktrace
wild shot fix attempt - please reopen if still reproducible 5a97a0852d78
Integrated into 'main-golden', available in build *200808010201* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/5a97a0852d78 User: S. Aubrecht <saubrecht@netbeans.org> Log: #119409 - mouseReleased events sometime sent to non-showing components
Reopening - reproduced in NetBeans IDE Dev (Build 200810150201) http://statistics.netbeans.org/exceptions/detail.do?id=128943
*** Issue 157731 has been marked as a duplicate of this issue. ***
*** Issue 158435 has been marked as a duplicate of this issue. ***
Build: NetBeans IDE Dev (Build 200812180001) VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location at java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1828) at java.awt.Component.getLocationOnScreen(Component.java:1802) at javax.swing.plaf.basic.BasicToolBarUI$Handler.mouseReleased(BasicToolBarUI.java:1162) at java.awt.Component.processMouseEvent(Component.java:6134) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) at java.awt.Component.processEvent(Component.java:5899)
Created attachment 77055 [details] stacktrace
Build: NetBeans IDE 6.7 RC3 (Build 200906142201) 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: trying to copy-paste from a JPanel to another a few components Stacktrace: java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location at java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1943) at java.awt.Component.getLocationOnScreen(Component.java:1917) at javax.swing.plaf.basic.BasicToolBarUI$Handler.mouseReleased(BasicToolBarUI.java:1162) at java.awt.Component.processMouseEvent(Component.java:6263) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6028)
Created attachment 83798 [details] stacktrace
Build: NetBeans IDE 6.7 (Build 200906241340) VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04 OS: Windows XP, 5.1, x86 User Comments: running profiler on a Java web app. Stacktrace: java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location at java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1896) at java.awt.Component.getLocationOnScreen(Component.java:1870) at javax.swing.plaf.basic.BasicToolBarUI$Handler.mouseReleased(BasicToolBarUI.java:1162) at java.awt.Component.processMouseEvent(Component.java:6216) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) at java.awt.Component.processEvent(Component.java:5981)
Created attachment 84204 [details] stacktrace
This issue already has 204 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=516
Build: NetBeans IDE 6.7.1 (Build 200907230233) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Windows Vista, 6.0, x86 User Comments: Stacktrace: java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location at java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1943) at java.awt.Component.getLocationOnScreen(Component.java:1917) at javax.swing.plaf.basic.BasicToolBarUI$Handler.mouseReleased(BasicToolBarUI.java:1162) at java.awt.Component.processMouseEvent(Component.java:6263) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6028)
Created attachment 86853 [details] stacktrace
can QE help with reproducing this issue pls?
i still can't reproduce this problem but probable cause is that the popup list showing all opened documents reacts to mouse_pressed events and hides itself at that time. so when user clicks into the list then mouse_released event *may* be forwarded to the component below the popup list. and if the timing is 'right' that component might be hidden before that even because the popup switched to a different document. i tried fixing this in core-main d8d500e647b0
*** Issue 165327 has been marked as a duplicate of this issue. ***
Integrated into 'main-golden', will be available in build *200909111401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/d8d500e647b0 User: S. Aubrecht <saubrecht@netbeans.org> Log: #119409 - opened documents popup list should react to mouse-clicked events instead of mouse-pressed