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 108755 - Exception wehn Add operation from WS designer
Summary: Exception wehn Add operation from WS designer
Status: RESOLVED DUPLICATE of bug 113092
Alias: None
Product: webservices
Classification: Unclassified
Component: Designer (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: bhate
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2007-07-03 13:57 UTC by Jaroslav Pospisil
Modified: 2007-08-20 17:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (59.30 KB, text/plain)
2007-07-03 13:58 UTC, Jaroslav Pospisil
Details
new messages.log (208.77 KB, text/plain)
2007-08-13 18:19 UTC, Jaroslav Pospisil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Pospisil 2007-07-03 13:57:36 UTC
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.
Comment 1 Jaroslav Pospisil 2007-07-03 13:58:31 UTC
Created attachment 44669 [details]
messages.log
Comment 2 bhate 2007-07-12 19:24:39 UTC
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.
Comment 3 Jaroslav Pospisil 2007-07-23 14:35:44 UTC
VERIFIED
Comment 4 Jaroslav Pospisil 2007-08-13 18:03:31 UTC
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)
Comment 5 Jaroslav Pospisil 2007-08-13 18:17:26 UTC
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.
Comment 6 Jaroslav Pospisil 2007-08-13 18:19:22 UTC
Created attachment 46525 [details]
new messages.log
Comment 7 Jaroslav Pospisil 2007-08-14 17:45:34 UTC
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.
Comment 8 bhate 2007-08-18 01:34:27 UTC
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.


Comment 9 David Kaspar 2007-08-20 09:46:57 UTC
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.
Comment 10 bhate 2007-08-20 17:30:19 UTC
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 ***