#707 Random ConcurrentModificationException

1.0.x
closed-wont-fix
General (896)
5
2007-01-18
2007-01-15
No

At runtime I randomly get a java.util.ConcurrentModificationException from the AWT thread. Different stack traces occur (2 included in attachment).

Note: My application directly modifies a DefaultCategoryDataset object that is already assigned to a graph.

Discussion

  • Alexander Stockinger

    Logged In: YES
    user_id=700755
    Originator: YES

    Mistake: 2nd Exception in file is not a ConcurrentModificationException. Seems to be related to some concurrency issues in the code as well though. My best guess would be that some drawing code is not entirely thread safe in regards to accessing collections.

     
  • David Gilbert

    David Gilbert - 2007-01-18
    • assigned_to: nobody --> mungady
    • status: open --> closed-wont-fix
     
  • David Gilbert

    David Gilbert - 2007-01-18

    Logged In: YES
    user_id=112975
    Originator: NO

    > Note: My application directly modifies a DefaultCategoryDataset object that is already assigned to a graph.

    JFreeChart doesn't synchronise multiple threads, so you need to ensure that the chart is not being drawn at the same time you update the dataset in a different thread.

     

Log in to post a comment.