Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Arrow creation - exception (Read 3557 times)
koosala
Full Member
***
Offline


Java Happens

Posts: 136
Joined: May 13th, 2007
Arrow creation - exception
Aug 13th, 2007 at 2:32am
Print Post  
Hi,

When dragging a new arrow for the first time, the following exception is thrown:

Exception in thread "AWT-EventQueue-1" java.lang.ArrayIndexOutOfBoundsException: 23
at com.mindfusion.jdiagram.RoutingGrid.markObstacles(RoutingGrid.java:209)
at com.mindfusion.jdiagram.RoutingGrid.allocate(RoutingGrid.java:90)
at com.mindfusion.jdiagram.Arrow.doRoute(Arrow.java:3174)
at com.mindfusion.jdiagram.Arrow.updateCreate(Arrow.java:579)
at com.mindfusion.jdiagram.InteractionState.update(InteractionState.java:142)
at com.mindfusion.jdiagram.FlowChart$MouseMonitor.mouseDragged(FlowChart.java:1052)

at java.awt.AWTEventMulticaster.mouseDragged(Unknown Source)
at java.awt.AWTEventMulticaster.mouseDragged(Unknown Source)
at java.awt.Component.processMouseMotionEvent(Unknown Source)
at javax.swing.JComponent.processMouseMotionEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


I had the following attributes set against the flowchart:

flowChart.setArrowStyle(ArrowStyle.Cascading);
flowChart.setRouteArrows(true);
flowChart.setSnapToAnchor(SnapToAnchor.OnCreateOrModify);
flowChart.getRoutingOptions().setTriggerRerouting(
RerouteArrows.WhileCreating);
flowChart.setCanvasBehavior(new BPMNBehavior(flowChart));

Also, please note that this problem did not occur all the time. It happened around two or three times.

I cannot reproduce the problem anymore.

I have put it up here just so you have a reference to it. Maybe it can tip you off to something?

I will let you know if I can consistently reproduce it sometime down the line.


Thanks,
Praveen
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow creation - exception
Reply #1 - Aug 13th, 2007 at 11:31am
Print Post  
Were there any rotated boxes in the diagram when that happened?

Stoyan
  
Back to top
 
IP Logged
 
koosala
Full Member
***
Offline


Java Happens

Posts: 136
Joined: May 13th, 2007
Re: Arrow creation - exception
Reply #2 - Aug 13th, 2007 at 11:33pm
Print Post  
No, I have actually inherited from Box to create my custom classes. These classes have rotation handle turned off.

Praveen
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow creation - exception
Reply #3 - Aug 14th, 2007 at 5:28am
Print Post  
Have you overridden any of the getBounds() or getRotatedBounds() methods?
  
Back to top
 
IP Logged
 
koosala
Full Member
***
Offline


Java Happens

Posts: 136
Joined: May 13th, 2007
Re: Arrow creation - exception
Reply #4 - Aug 14th, 2007 at 6:41am
Print Post  
No, neither of those methods are overriden.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint