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 148416 - Exception in the orthogonal router.
Summary: Exception in the orthogonal router.
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Class (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Trey Spiva
URL:
Keywords:
Depends on:
Blocks: 101417
  Show dependency tree
 
Reported: 2008-09-25 18:48 UTC by Trey Spiva
Modified: 2008-10-06 19:58 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 Trey Spiva 2008-09-25 18:48:50 UTC
When I reverse engineer the UML core source code I get an exception when creating a diagram that contains all of the model elements in the metamodel 
package and its children.

The exception is in the orthogonal router.
Comment 1 Trey Spiva 2008-09-25 18:54:27 UTC
The problem is that the link to self logic uses the orthogonal router.  Because of other issues with the orthogonal router the answer is to replace the use of the 
orthogonal router with a custom router that can only be used to route a link to self.
Comment 2 Trey Spiva 2008-09-25 19:03:12 UTC
The exception is:

java.lang.AssertionError
	at org.netbeans.modules.visual.router.OrthogonalSearchRouterCore.search(OrthogonalSearchRouterCore.java:184)
	at org.netbeans.modules.visual.router.OrthogonalSearchRouterCore.route(OrthogonalSearchRouterCore.java:107)
	at org.netbeans.modules.visual.router.OrthogonalSearchRouter.routeConnection(OrthogonalSearchRouter.java:163)
	at org.netbeans.api.visual.widget.ConnectionWidget.calculateRouting(ConnectionWidget.java:527)
	at org.netbeans.modules.visual.layout.ConnectionWidgetLayout.layout(ConnectionWidgetLayout.java:109)
	at org.netbeans.api.visual.widget.Widget.layout(Widget.java:1350)
	at org.netbeans.api.visual.widget.Widget.layout(Widget.java:1342)
	at org.netbeans.api.visual.widget.LayerWidget.layout(LayerWidget.java:86)
	at org.netbeans.api.visual.widget.Widget.layout(Widget.java:1342)
	at org.netbeans.api.visual.widget.Scene.layoutScene(Scene.java:312)
	at org.netbeans.api.visual.widget.Scene.validate(Scene.java:393)
	at org.netbeans.api.visual.widget.SceneComponent.setBounds(SceneComponent.java:110)
	at javax.swing.OverlayLayout.layoutContainer(OverlayLayout.java:216)
Comment 3 Trey Spiva 2008-09-25 19:24:04 UTC
The exception is:

java.lang.AssertionError
	at org.netbeans.modules.visual.router.OrthogonalSearchRouterCore.search(OrthogonalSearchRouterCore.java:184)
	at org.netbeans.modules.visual.router.OrthogonalSearchRouterCore.route(OrthogonalSearchRouterCore.java:107)
	at org.netbeans.modules.visual.router.OrthogonalSearchRouter.routeConnection(OrthogonalSearchRouter.java:163)
	at org.netbeans.api.visual.widget.ConnectionWidget.calculateRouting(ConnectionWidget.java:527)
	at org.netbeans.modules.visual.layout.ConnectionWidgetLayout.layout(ConnectionWidgetLayout.java:109)
	at org.netbeans.api.visual.widget.Widget.layout(Widget.java:1350)
	at org.netbeans.api.visual.widget.Widget.layout(Widget.java:1342)
	at org.netbeans.api.visual.widget.LayerWidget.layout(LayerWidget.java:86)
	at org.netbeans.api.visual.widget.Widget.layout(Widget.java:1342)
	at org.netbeans.api.visual.widget.Scene.layoutScene(Scene.java:312)
	at org.netbeans.api.visual.widget.Scene.validate(Scene.java:393)
	at org.netbeans.api.visual.widget.SceneComponent.setBounds(SceneComponent.java:110)
	at javax.swing.OverlayLayout.layoutContainer(OverlayLayout.java:216)
Comment 4 Trey Spiva 2008-09-25 19:28:47 UTC
The fix for this issue also solves our problem for the issue 148114.  I can not close the issue 148114 because the problem for 148114 is now in a different 
implementation that belongs to the visual library.
Comment 5 Sergey Petrov 2008-09-25 19:32:24 UTC
instead of orthogonal router usage we may need to use direct router+bend points.
Comment 6 Trey Spiva 2008-09-25 19:33:17 UTC
Fixed

http://hg.netbeans.org/uml-main/rev/17e596e05903
Comment 7 Trey Spiva 2008-09-26 18:31:09 UTC
Reviewed
Comment 8 Peter Lam 2008-10-06 19:58:48 UTC
verified in build 20081006.