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 126958 - ClassCastException when moving lifeline
Summary: ClassCastException when moving lifeline
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Sequence (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ jyothivasa
URL:
Keywords:
: 129707 130725 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-08 01:09 UTC by Peter Lam
Modified: 2008-03-21 21:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-02-08 01:09:33 UTC
- open a previously created sequence diagram
- create a lifeline or actor lifeline or DnD a lifeline from project tree to the diagram
- move the lifeline
Result, the following exception popped up.

java.lang.ClassCastException: org.netbeans.modules.uml.drawingarea.UMLDiagramTopComponent cannot be cast to
org.netbeans.modules.uml.drawingarea.SQDDiagramTopComponent
	at org.netbeans.modules.uml.diagrams.actions.sqd.LifelineMoveProvider.movementFinished(LifelineMoveProvider.java:73)
	at org.netbeans.modules.uml.diagrams.actions.sqd.LifelineMoveAction.mouseReleased(LifelineMoveAction.java:92)
	at org.netbeans.api.visual.widget.SceneComponent$Operator$3.operate(SceneComponent.java:553)
	at org.netbeans.api.visual.widget.SceneComponent.processLocationOperator(SceneComponent.java:268)
	at org.netbeans.api.visual.widget.SceneComponent.mouseReleased(SceneComponent.java:155)
	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)
[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 1 Sergey Petrov 2008-02-08 06:50:23 UTC
sqd persistence may be incomplete yet, am I right? but can take a look what I can do from my side
Comment 2 Sergey Petrov 2008-02-08 06:51:10 UTC
Peter, did you see trackbar in opened diagram? It looks like wrong top component is used when diagram is opened.
Comment 3 Peter Lam 2008-02-08 07:37:26 UTC
Just looked at it again. No trackbar in the reopened diagram.
Comment 4 Sergey Petrov 2008-02-08 10:01:36 UTC
Jyothi, can you evaluate if this feature (loading of sqd) is complete or not
Comment 5 _ jyothivasa 2008-02-08 18:03:40 UTC
This feature is work in progress. It will be ready by the end of sprint2.
Comment 6 Sergey Petrov 2008-03-20 18:28:41 UTC
*** Issue 129707 has been marked as a duplicate of this issue. ***
Comment 7 _ jyothivasa 2008-03-21 00:18:26 UTC
Fixed and integrated.
Comment 8 Sergey Petrov 2008-03-21 00:53:43 UTC
*** Issue 130725 has been marked as a duplicate of this issue. ***
Comment 9 Peter Lam 2008-03-21 21:49:38 UTC
verified in build 20080320.