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

Occasional ConcurrentModificationException in dataTable #1299

Closed
cnsgithub opened this issue Apr 6, 2016 · 2 comments
Closed

Occasional ConcurrentModificationException in dataTable #1299

cnsgithub opened this issue Apr 6, 2016 · 2 comments
Labels
🐞 defect Bug...Something isn't working Resolution: Invalid Issue or pull request is not valid in the latest version

Comments

@cnsgithub
Copy link
Contributor

Hi, i noticed this exception. However i can't say how it is reproduced for now. May happen when using the sort feature.

java.util.ConcurrentModificationException at java.util.ArrayList.sort(ArrayList.java:1456) at java.util.Collections.sort(Collections.java:175) at org.primefaces.component.datatable.feature.SortFeature.singleSort(SortFeature.java:148) at org.primefaces.component.datatable.feature.SortFeature.encode(SortFeature.java:106) at org.primefaces.component.datatable.DataTableRenderer.encodeEnd(DataTableRenderer.java:80) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:920) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863) at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:582) at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183) at org.primefaces.component.api.UIData.visitTree(UIData.java:827) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)

Environment: PrimeFaces 5.3.10 + 2.2.13 @ WildFly10 Final

@tandraschko
Copy link
Member

That would mean that multiple threads are accessing your ArrayList - we can't avoid that on PF level.

@tandraschko tandraschko added 🐞 defect Bug...Something isn't working Resolution: Invalid Issue or pull request is not valid in the latest version labels Apr 6, 2016
@tandraschko
Copy link
Member

If you have a sample to replicate without multiple threads, please come back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 defect Bug...Something isn't working Resolution: Invalid Issue or pull request is not valid in the latest version
Projects
None yet
Development

No branches or pull requests

2 participants