Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConcurrentModificationException in addPoint() #8

Open
danhallin opened this issue Aug 22, 2012 · 0 comments
Open

ConcurrentModificationException in addPoint() #8

danhallin opened this issue Aug 22, 2012 · 0 comments

Comments

@danhallin
Copy link

Caused by: java.util.ConcurrentModificationException
at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:390)
at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:401)
at java.util.AbstractCollection.addAll(AbstractCollection.java:333)
at java.util.LinkedHashSet.(LinkedHashSet.java:169)
at com.invient.vaadin.charts.InvientCharts$Series.getPoints(InvientCharts.java:3173)
at com.invient.vaadin.charts.InvientCharts$DateTimeSeries.getPoints(InvientCharts.java:3647)
at com.invient.vaadin.charts.InvientCharts$DateTimeSeries.updatePointXValuesIfNotPresent(InvientCharts.java:3682)
at com.invient.vaadin.charts.InvientCharts$Series.addPoint(InvientCharts.java:3147)
at com.invient.vaadin.charts.InvientCharts$DateTimeSeries.addPoint(InvientCharts.java:3607)

The copying in getPoints may need to be made thread-safe? I'm guessing that 'points' are modified while the copy is made in getPoints(InvientCharts.java:3173).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant