Skip to content

ConcurrentModificationException in addPoint() #8

@danhallin

Description

@danhallin

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions