java.util.NoSuchElementException

Hibernate JIRA | Emmanuel Bernard | 2 years ago
  1. 0

    Most likely due to an empty List<LuceneWork> being passed. I could not spot where such an empty list would be passed by the upper stack. From Matt: {code} Running my usual local test, I constantly see the following issues on my master node and my JMS queue's freeze during the persistence of an entity and pretty much always during reindexing. 15:06:14,724 ERROR [stderr] (Hibernate Search sync consumer thread for index com.acme.User) Exception in thread "Hibernate Search sync consumer thread for index com.acme.User" java.util.NoSuchElementException 15:06:14,725 ERROR [stderr] (Hibernate Search sync consumer thread for index com.acme.User) at java.util.ArrayList$Itr.next(ArrayList.java:834) 15:06:14,725 ERROR [stderr] (Hibernate Search sync consumer thread for index com.acme.User) at org.hibernate.search.backend.impl.lucene.ChangesetList$WorkIterator.next(ChangesetList.java:85) 15:06:14,725 ERROR [stderr] (Hibernate Search sync consumer thread for index com.acme.User) at org.hibernate.search.backend.impl.lucene.ChangesetList$WorkIterator.next(ChangesetList.java:61) 15:06:14,725 ERROR [stderr] (Hibernate Search sync consumer thread for index com.acme.User) at org.hibernate.search.backend.impl.lucene.ChangesetList.copyToList(ChangesetList.java:98) 15:06:14,725 ERROR [stderr] (Hibernate Search sync consumer thread for index com.acme.User) at org.hibernate.search.backend.impl.lucene.SyncWorkProcessor$Consumer.applyChangesets(SyncWorkProcessor.java:147) 15:06:14,725 ERROR [stderr] (Hibernate Search sync consumer thread for index com.acme.User) at org.hibernate.search.backend.impl.lucene.SyncWorkProcessor$Consumer.run(SyncWorkProcessor.java:138) 15:06:14,725 ERROR [stderr] (Hibernate Search sync consumer thread for index com.acme.User) at java.lang.Thread.run(Thread.java:744) {code}

    Hibernate JIRA | 2 years ago | Emmanuel Bernard
    java.util.NoSuchElementException
  2. 0

    Most likely due to an empty List<LuceneWork> being passed. I could not spot where such an empty list would be passed by the upper stack. From Matt: {code} Running my usual local test, I constantly see the following issues on my master node and my JMS queue's freeze during the persistence of an entity and pretty much always during reindexing. 15:06:14,724 ERROR [stderr] (Hibernate Search sync consumer thread for index com.acme.User) Exception in thread "Hibernate Search sync consumer thread for index com.acme.User" java.util.NoSuchElementException 15:06:14,725 ERROR [stderr] (Hibernate Search sync consumer thread for index com.acme.User) at java.util.ArrayList$Itr.next(ArrayList.java:834) 15:06:14,725 ERROR [stderr] (Hibernate Search sync consumer thread for index com.acme.User) at org.hibernate.search.backend.impl.lucene.ChangesetList$WorkIterator.next(ChangesetList.java:85) 15:06:14,725 ERROR [stderr] (Hibernate Search sync consumer thread for index com.acme.User) at org.hibernate.search.backend.impl.lucene.ChangesetList$WorkIterator.next(ChangesetList.java:61) 15:06:14,725 ERROR [stderr] (Hibernate Search sync consumer thread for index com.acme.User) at org.hibernate.search.backend.impl.lucene.ChangesetList.copyToList(ChangesetList.java:98) 15:06:14,725 ERROR [stderr] (Hibernate Search sync consumer thread for index com.acme.User) at org.hibernate.search.backend.impl.lucene.SyncWorkProcessor$Consumer.applyChangesets(SyncWorkProcessor.java:147) 15:06:14,725 ERROR [stderr] (Hibernate Search sync consumer thread for index com.acme.User) at org.hibernate.search.backend.impl.lucene.SyncWorkProcessor$Consumer.run(SyncWorkProcessor.java:138) 15:06:14,725 ERROR [stderr] (Hibernate Search sync consumer thread for index com.acme.User) at java.lang.Thread.run(Thread.java:744) {code}

    Hibernate JIRA | 2 years ago | Emmanuel Bernard
    java.util.NoSuchElementException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. rp 1 times, last 2 weeks ago
  2. jank12ultra 3 times, last 2 months ago
  3. Plato2000 5 times, last 6 months ago
10 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.NoSuchElementException

    No message provided

    at java.util.ArrayList$Itr.next()
  2. Java RT
    ArrayList$Itr.next
    1. java.util.ArrayList$Itr.next(ArrayList.java:834)
    1 frame
  3. Hibernate Search Engine
    SyncWorkProcessor$Consumer.run
    1. org.hibernate.search.backend.impl.lucene.ChangesetList$WorkIterator.next(ChangesetList.java:85)
    2. org.hibernate.search.backend.impl.lucene.ChangesetList$WorkIterator.next(ChangesetList.java:61)
    3. org.hibernate.search.backend.impl.lucene.ChangesetList.copyToList(ChangesetList.java:98)
    4. org.hibernate.search.backend.impl.lucene.SyncWorkProcessor$Consumer.applyChangesets(SyncWorkProcessor.java:147)
    5. org.hibernate.search.backend.impl.lucene.SyncWorkProcessor$Consumer.run(SyncWorkProcessor.java:138)
    5 frames
  4. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:744)
    1 frame