Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-15138

ConcurrentModificationException error when log in with a new user

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 10.1, 9.11.3
    • Old Core
    • None
    • Windows 10 Pro 64 bit, Edge 16, using a local instance XWiki 9.11.3 on MySQL 5.7
    • Unknown

    Description

      STEPS TO REPRODUCE

      1. Create a fresh XWiki instance
      2. Login as Admin
      3. Create a new user (e.g. U1)
      4. Log in as U1

      EXPECTED RESULTS

      The user just created (e.g. U1) is logged in without any errors.

      ACTUAL RESULTS

      Sometimes, in the console, a Solr Indexer error is displayed, having the following stacktrace:

       2018-03-22 09:39:27,205 [XWiki Solr index thread] ERROR o.x.s.s.i.DefaultSolrIndexer   - Failed to process entry [INDEX xwiki:XWiki.U1()] 
      org.xwiki.search.solr.internal.api.SolrIndexerException: Failed to get input Solr document for entity 'xwiki:XWiki.U1()'
      	at org.xwiki.search.solr.internal.metadata.AbstractSolrMetadataExtractor.getSolrDocument(AbstractSolrMetadataExtractor.java:140)
      	at org.xwiki.search.solr.internal.DefaultSolrIndexer.getSolrDocument(DefaultSolrIndexer.java:504)
      	at org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:411)
      	at org.xwiki.search.solr.internal.DefaultSolrIndexer.run(DefaultSolrIndexer.java:377)
      	at java.lang.Thread.run(Unknown Source)
      Caused by: java.util.ConcurrentModificationException: null
      	at java.util.ArrayList$Itr.checkForComodification(Unknown Source)
      	at java.util.ArrayList$Itr.next(Unknown Source)
      	at org.xwiki.search.solr.internal.metadata.DocumentSolrMetadataExtractor.setObjects(DocumentSolrMetadataExtractor.java:199)
      	at org.xwiki.search.solr.internal.metadata.DocumentSolrMetadataExtractor.setExtras(DocumentSolrMetadataExtractor.java:186)
      	at org.xwiki.search.solr.internal.metadata.DocumentSolrMetadataExtractor.setFieldsInternal(DocumentSolrMetadataExtractor.java:135)
      	at org.xwiki.search.solr.internal.metadata.AbstractSolrMetadataExtractor.getSolrDocument(AbstractSolrMetadataExtractor.java:133)
      	... 4 common frames omitted 

      It is to be mentioned that the error does not occur every time a user is created and logged in with after creating a new instance.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: