ConcurrentModificationException in notifyListeners

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Mudit Wahal

ConcurrentModificationException in notifyListeners

Post by Mudit Wahal » Thu Jul 18, 2002 9:51 pm

David,

Hi ! I was trying something and I got this error message. I posted notifyListeners from my dataset after I dynamically updated it. The version is still 0.8.1. I've not upgraded as you know I've extended lots of classes and the dont have the time to sit down redo lots of changes.

----------------------------------
Uncaught exception:
java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:444)
at java.util.AbstractList$Itr.next(AbstractList.java:417)
at com.jrefinery.data.AbstractDataset.notifyListeners(Unknown Source)
at mydefhilow.updateDB(mydefhilow.java:399)
-----------------------------------

thanks

mudit

David Gilbert

Re: ConcurrentModificationException in notifyListeners

Post by David Gilbert » Fri Jul 19, 2002 9:15 am

Hi Mudit,

One of the tasks on my to-do list is to look at multi-threading issues. Another developer pointed out that the notification mechanism isn't thread safe...I need to learn more about this and fix the problem. Of course, any pointers are welcome.

Regards,

DG.

Locked