java.util.ConcurrentModificationException: The ContentList supporting the FilterList this iterator is processing has been modified by something other than this Iterator.

javatalks.ru | 4 months ago
  1. 0

    javatalks.ru / Ошибка java.util.ConcurrentModificationException

    javatalks.ru | 4 months ago
    java.util.ConcurrentModificationException: The ContentList supporting the FilterList this iterator is processing has been modified by something other than this Iterator.
  2. 0

    Why do removeContent(), removeChild(), and detach() not work?

    Stack Overflow | 3 years ago | Jona
    java.util.ConcurrentModificationException: The ContentList supporting the FilterList this iterator is processing has been modified by something other than this Iterator.
  3. 0

    XML-Element komplett löschen

    java-forum.org | 4 months ago
    java.util.ConcurrentModificationException: The ContentList supporting the FilterList this iterator is processing has been modified by something other than this Iterator.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NF-e: Status do Serviço - WebService 2.0

    com.br | 12 months ago
    java.util.ConcurrentModificationException: The current node has been removed using a method other than Iterator#remove()
  6. 0

    While using {{SimpleNaiveBayesClassifier}} on a very large index (all Italian Wikipedia articles) I see the following code triggering a {{ConcurrentModificationException}} when evicting the {{Query}} from the {{LRUCache}}. {code} BooleanQuery booleanQuery = new BooleanQuery(); BooleanQuery subQuery = new BooleanQuery(); for (String textFieldName : textFieldNames) { subQuery.add(new BooleanClause(new TermQuery(new Term(textFieldName, word)), BooleanClause.Occur.SHOULD)); } booleanQuery.add(new BooleanClause(subQuery, BooleanClause.Occur.MUST)); booleanQuery.add(new BooleanClause(new TermQuery(new Term(classFieldName, c)), BooleanClause.Occur.MUST)); //... TotalHitCountCollector totalHitCountCollector = new TotalHitCountCollector(); indexSearcher.search(booleanQuery, totalHitCountCollector); return totalHitCountCollector.getTotalHits(); {code} this is the complete stacktrace: {code} java.util.ConcurrentModificationException: Removal from the cache failed! This is probably due to a query which has been modified after having been put into the cache or a badly implemented clone(). Query class: [class org.apache.lucene.search.BooleanQuery], query: [#text:panoram #cat:1356] at __randomizedtesting.SeedInfo.seed([B6513DEC3681FEF5:138235BE33532634]:0) at org.apache.lucene.search.LRUQueryCache.evictIfNecessary(LRUQueryCache.java:285) at org.apache.lucene.search.LRUQueryCache.putIfAbsent(LRUQueryCache.java:268) at org.apache.lucene.search.LRUQueryCache$CachingWrapperWeight.scorer(LRUQueryCache.java:569) at org.apache.lucene.search.ConstantScoreWeight.scorer(ConstantScoreWeight.java:82) at org.apache.lucene.search.Weight.bulkScorer(Weight.java:137) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:560) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:367) at org.apache.lucene.classification.SimpleNaiveBayesClassifier.getWordFreqForClass(SimpleNaiveBayesClassifier.java:288) at org.apache.lucene.classification.SimpleNaiveBayesClassifier.calculateLogLikelihood(SimpleNaiveBayesClassifier.java:248) at org.apache.lucene.classification.SimpleNaiveBayesClassifier.assignClassNormalizedList(SimpleNaiveBayesClassifier.java:169) at org.apache.lucene.classification.SimpleNaiveBayesClassifier.assignClass(SimpleNaiveBayesClassifier.java:125) at org.apache.lucene.classification.WikipediaTest.testItalianWikipedia(WikipediaTest.java:126) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1627) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:836) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:872) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:886) at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46) at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:49) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:798) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:458) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:845) at com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:747) at com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:781) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:792) at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:42) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39) at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:54) at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48) at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65) at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365) at java.lang.Thread.run(Thread.java:745) {code} The strange thing is that the above doesn't happen if I change the last lines of the above piece of code to not use the {{TotalHitCountsCollector}}: {code} return indexSearcher.search(booleanQuery, 1).totalHits; {code}

    Apache's JIRA Issue Tracker | 2 years ago | Tommaso Teofili
    java.util.ConcurrentModificationException: Removal from the cache failed! This is probably due to a query which has been modified after having been put into the cache or a badly implemented clone(). Query class: [class org.apache.lucene.search.BooleanQuery], query: [#text:panoram #cat:1356] at __randomizedtesting.SeedInfo.seed([B6513DEC3681FEF5:138235BE33532634]:0)

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.util.ConcurrentModificationException

      The ContentList supporting the FilterList this iterator is processing has been modified by something other than this Iterator.

      at org.jdom2.ContentList$FilterListIterator.checkConcurrent()
    2. JDOM
      ContentList$FilterListIterator.next
      1. org.jdom2.ContentList$FilterListIterator.checkConcurrent(ContentList.java:1309)
      2. org.jdom2.ContentList$FilterListIterator.next(ContentList.java:1357)
      3. org.jdom2.ContentList$FilterListIterator.next(ContentList.java:1260)
      3 frames
    3. easetest
      TestCatalog$4.actionPerformed
      1. easetest.TestNumberCatalog.deleteAllTest(TestNumberCatalog.java:365)
      2. easetest.TestCatalog$4.actionPerformed(TestCatalog.java:226)
      2 frames
    4. Java RT
      JOptionPane.showOptionDialog
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
      6. java.awt.Component.processMouseEvent(Component.java:6525)
      7. javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
      8. java.awt.Component.processEvent(Component.java:6290)
      9. java.awt.Container.processEvent(Container.java:2234)
      10. java.awt.Component.dispatchEventImpl(Component.java:4881)
      11. java.awt.Container.dispatchEventImpl(Container.java:2292)
      12. java.awt.Component.dispatchEvent(Component.java:4703)
      13. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
      14. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
      15. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
      16. java.awt.Container.dispatchEventImpl(Container.java:2278)
      17. java.awt.Window.dispatchEventImpl(Window.java:2739)
      18. java.awt.Component.dispatchEvent(Component.java:4703)
      19. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
      20. java.awt.EventQueue.access$400(EventQueue.java:97)
      21. java.awt.EventQueue$3.run(EventQueue.java:697)
      22. java.awt.EventQueue$3.run(EventQueue.java:691)
      23. java.security.AccessController.doPrivileged(Native Method)
      24. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
      25. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
      26. java.awt.EventQueue$4.run(EventQueue.java:719)
      27. java.awt.EventQueue$4.run(EventQueue.java:717)
      28. java.security.AccessController.doPrivileged(Native Method)
      29. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
      30. java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
      31. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      32. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      33. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
      34. java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
      35. java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
      36. java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
      37. java.security.AccessController.doPrivileged(Native Method)
      38. java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
      39. java.awt.Dialog.show(Dialog.java:1084)
      40. javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:869)
      40 frames
    5. easetest
      TestCatalog$3.actionPerformed
      1. easetest.TestCatalog$3.actionPerformed(TestCatalog.java:209)
      1 frame
    6. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
      6. java.awt.Component.processMouseEvent(Component.java:6525)
      7. javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
      8. java.awt.Component.processEvent(Component.java:6290)
      9. java.awt.Container.processEvent(Container.java:2234)
      10. java.awt.Component.dispatchEventImpl(Component.java:4881)
      11. java.awt.Container.dispatchEventImpl(Container.java:2292)
      12. java.awt.Component.dispatchEvent(Component.java:4703)
      13. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
      14. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
      15. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
      16. java.awt.Container.dispatchEventImpl(Container.java:2278)
      17. java.awt.Window.dispatchEventImpl(Window.java:2739)
      18. java.awt.Component.dispatchEvent(Component.java:4703)
      19. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
      20. java.awt.EventQueue.access$400(EventQueue.java:97)
      21. java.awt.EventQueue$3.run(EventQueue.java:697)
      22. java.awt.EventQueue$3.run(EventQueue.java:691)
      23. java.security.AccessController.doPrivileged(Native Method)
      24. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
      25. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
      26. java.awt.EventQueue$4.run(EventQueue.java:719)
      27. java.awt.EventQueue$4.run(EventQueue.java:717)
      28. java.security.AccessController.doPrivileged(Native Method)
      29. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
      30. java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
      31. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      32. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      33. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      34. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      35. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      36. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      36 frames