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.
Build 20070703000 - full,JDK1.6.0_02,Windows Vista 1) Start IDE with clean userdir 2) Create new EJB module and add web service 3) In ws designer add operation (default) and click O.K. ERROR: Exception will appear (attaching messages.log) NOTICE: This is the same case as in issue 106384, but in EJB module and with different exception.
Created attachment 44669 [details] messages.log
I am not able to reproduce this bug. i will mark it as fixed (106384 was marked fixed verified). Pl reopen if it is reproducible with exact steps.
VERIFIED
Reproduced in build 200708130000. Reopening as regression. java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793) at java.util.HashMap$KeyIterator.next(HashMap.java:828) at org.netbeans.api.visual.widget.Scene.validate(Scene.java:375) at org.netbeans.api.visual.widget.SceneComponent.processLocationOperator(SceneComponent.java:262) at org.netbeans.api.visual.widget.SceneComponent.mouseMoved(SceneComponent.java:153) at java.awt.AWTEventMulticaster.mouseMoved(AWTEventMulticaster.java:312) at java.awt.Component.processMouseMotionEvent(Component.java:6083) 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:3999) 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) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) 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)
Now a I see this exception after I hit downarrow of operation in designer (after I closed the original exception window and continued to work). java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at java.util.Collections$UnmodifiableList.get(Collections.java:1154) at org.netbeans.modules.websvc.design.view.layout.LeftRightLayout.layout(LeftRightLayout.java:50) at org.netbeans.api.visual.widget.Widget.layout(Widget.java:1063) at org.netbeans.api.visual.widget.Widget.layout(Widget.java:1055) at org.netbeans.api.visual.widget.Widget.layout(Widget.java:1055) at org.netbeans.api.visual.widget.Widget.layout(Widget.java:1055) at org.netbeans.api.visual.widget.Widget.layout(Widget.java:1055) at org.netbeans.api.visual.widget.Widget.layout(Widget.java:1055) at org.netbeans.api.visual.widget.Widget.layout(Widget.java:1055) at org.netbeans.api.visual.widget.LayerWidget.layout(LayerWidget.java:64) at org.netbeans.api.visual.widget.Widget.layout(Widget.java:1055) at org.netbeans.api.visual.widget.Scene.layoutScene(Scene.java:287) at org.netbeans.api.visual.widget.Scene.validate(Scene.java:373) at org.netbeans.api.visual.widget.SceneComponent.processLocationOperator(SceneComponent.java:262) at org.netbeans.api.visual.widget.SceneComponent.mouseExited(SceneComponent.java:141) at java.awt.Component.processMouseEvent(Component.java:6044) 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.trackMouseEnterExit(Container.java:4103) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3968) 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) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) 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) This exception keeps reopening again and again,so I must close the IDE. I'll attach messages.log and raising priority to P2 again.
Created attachment 46525 [details] new messages.log
This issue is rather random,but on other hand I've seen the first exception in at least half of cases I used WS Designer. Mostly it occurs when I start with clean userdir,create Web application,add web service and add operation with at least one parameter (could be default). I'm filing second exception as different issue - 112786,since I just reproduced it on safe case and it seems to be unconnected to first one.I'm also decreasing priority to P3 again.
Second exception is fixed, but first exception occurs randomly. Maybe it is a synchronization issue. When I call scene.validate it should finish synchronously. but is doesn't. I think i need David Kaspar's opinion on this.
The ConcurrentModificationException is happening on a line with "Scene.repaintWidgets" field is used, therefore I assume it is caused by modification of a scene/widgets structure/properties outside of AWT-thread. The IndexOutOfBoundsException is happening in LeftRightLayout which I cannot find in the "websvc/design" module in the NetBeans CVS therefore I cannot help you with it.
I will change the servicemodel listener code to execute in awt thread. however another P2 bug 113092 is opened. so will mark this as dup and will fix 113092 instead. *** This issue has been marked as a duplicate of 113092 ***