Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8375447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:10:48+00:00 2026-06-09T15:10:48+00:00

I am developing a System and it has ArrayList that access in several places(inserting,

  • 0

I am developing a System and it has ArrayList that access in several places(inserting, removing and updates the values). Due to access of ArrayList in several places when i run the program it gives Concurrent update error.

Instead of ArrayList I can use Vector because Vector is synchronized. But if i use Vector will It be cause to decrease the performance of the system? Give me Ideas. How I can solve this issue?

This is part of the exception I get:

].[localhost].[/uckt].[Faces Servlet]] (http-127.0.0.1-8080-144) 
Servlet.service() for servlet Faces Servlet threw exception: java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(Unknown Source) [:1.7.0_02]
at java.util.ArrayList$Itr.next(Unknown Source) [:1.7.0_02] 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T15:10:50+00:00Added an answer on June 9, 2026 at 3:10 pm

    There is one more thing: Your ConcurrentModificationException might not spawn from an actual concurrent modification through two Threads. There is another possible reason:

    While iterating over the ArrayList, you might delete an element. If you try this

    Object o = iterator.next()
    if(someCondition)
        arrayList.remove(o)
    

    in a single Thread, you will get a ConcurrentModificationException. In that case you will have to use ListIterator and it’s remove method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing the server part of a system that has to send messages to
I am currently developing a system that has need for a session time out
I'm developing a system that has different types of users. Based upong their role,
I am developing for a system that has an interactive telnet management console. Requirements
I'm developing an ASP.NET system that has two different 'tiers' of roles. The main
I am developing a system that has folders, groups and permissions. Permissions determine what
I'm developing a system in which I have an entity 'program' which has some
I'm developing a system (with Rails 2.3.2, Ruby 1.8.7-p72) that has a sizable reporting
I am developing a simple system that has unlimited categories and items in each
I am developing a simple system that has small reporting services. The reporting services

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.