Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic When I draw a NOde , this exception comes out. (Read 1620 times)
gamjaradio
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 42
Joined: Jul 16th, 2010
When I draw a NOde , this exception comes out.
Aug 23rd, 2010 at 7:55am
Print Post  
Exception in thread "AWT-EventQueue-0" java.util.NoSuchElementException
at java.util.AbstractList$Itr.next(Unknown Source)
at com.mindfusion.diagramming.Diagram.b(Unknown Source)
at com.mindfusion.diagramming.Diagram.a(Unknown Source)
at com.mindfusion.diagramming.DiagramView.a(Unknown Source)
at com.mindfusion.diagramming.DiagramView.paintComponent(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(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)
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: When I draw a NOde , this exception comes out.
Reply #1 - Aug 23rd, 2010 at 8:14am
Print Post  
It looks like thread synchronization issue, an item disappearing from the collection while it's being iterated. The control is not thread safe, and if you need to modify the diagram outside of the Swing UI thread, use SwingUtilities.invokeAndWat to do that.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint