question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NoSuchElementException (when loading change)

See original GitHub issue

Addition information: This happens after 16 hours without shutting down IntelliJ and trying to fetch new gerrit changes. It first doesn’t show changes (empty list) and after changing the filter (selecting different Owner in the list) it throws this exception.

Plugin version: 0.9.7.6-142

IntelliJ version: IntelliJ IDEA 15.0.2 IU-143.1184

OS: Linux 3.13.0-79-generic

Java: Oracle Corporation 1.8.0_74

Exception:

java.util.NoSuchElementException
    at java.util.ArrayList$Itr.next(ArrayList.java:854)
    at com.google.common.collect.Iterators.getOnlyElement(Iterators.java:297)
    at com.google.common.collect.Iterables.getOnlyElement(Iterables.java:289)
    at com.urswolfer.gerrit.client.rest.http.changes.ChangeApiRestClient.get(ChangeApiRestClient.java:158)
    at com.urswolfer.intellij.plugin.gerrit.rest.GerritUtil$12.get(GerritUtil.java:401)
    at com.urswolfer.intellij.plugin.gerrit.rest.GerritUtil$12.get(GerritUtil.java:390)
    at com.urswolfer.intellij.plugin.gerrit.rest.GerritUtil$18$1.run(GerritUtil.java:635)
    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
    at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:126)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:365)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)

(Received as exception report.)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
uwolfercommented, Apr 14, 2019

Fixed in one of the last releases (fix included in gerrit-rest-java-client).

0reactions
uwolfercommented, Feb 11, 2018

Questions for everyone who can reproduce this issue:

  1. Are you using a HTTP password set in Gerrit web UI settings?
  2. If not, can you please try to do so and use these credentials? Does that help?
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix java.util.NoSuchElementException in Java?
NoSuchElementException : It is the child class of RuntimeException and hence it is an unchecked exception.
Read more >
Selenium Webdriver : Getting NoSuchElementException after ...
I switch from window A to window B.When i try to perform an action on window B,it throws No such element exception.I am...
Read more >
How to Fix the No Such Element Exception in Java - Rollbar
The NoSuchElementException in Java can be thrown by various accessor methods to indicate that the element being requested does not exist.
Read more >
Everything you need to know about NoSuchElementException ...
NoSuchElementException is one of the most common exceptions in Selenium WebDriver, and it is thrown when an HTML element cannot be found. A ......
Read more >
What is `NoSuchElementException` in Selenium-Python?
It's possible that the source code of the webpage may have been changed since the last time you accessed it. Change your code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found