Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8152066

java/net/httpclient/ManyRequests.java failed with java.util.concurrent.CompletionException: java.util.NoSuchElementException

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      windows

      Description

      This is intermittent. Observed once in Jigsaw nightly testing. Observed another instance in 9 dev nightly. Both failures are on Windows

      Please refer to the test output:
      ----------messages:(3/122)----------
      command: main ManyRequests
      reason: User specified action: run main/othervm ManyRequests
      elapsed time (seconds): 5.855
      ----------System.out:(0/0)----------
      ----------System.err:(24/1842)----------
      java.util.concurrent.CompletionException: java.util.NoSuchElementException
      at java.util.concurrent.CompletableFuture.encodeThrowable(java.base@9-ea/CompletableFuture.java:302)
      at java.util.concurrent.CompletableFuture.completeThrowable(java.base@9-ea/CompletableFuture.java:308)
      at java.util.concurrent.CompletableFuture.uniCompose(java.base@9-ea/CompletableFuture.java:1021)
      at java.util.concurrent.CompletableFuture$UniCompose.tryFire(java.base@9-ea/CompletableFuture.java:986)
      at java.util.concurrent.CompletableFuture.postComplete(java.base@9-ea/CompletableFuture.java:508)
      at java.util.concurrent.CompletableFuture.complete(java.base@9-ea/CompletableFuture.java:2014)
      at java.net.http.Http1Exchange.lambda$sendBodyAsync$5(java.httpclient@9-ea/Http1Exchange.java:267)
      at java.net.http.ExecutorWrapper.lambda$execute$1(java.httpclient@9-ea/ExecutorWrapper.java:80)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-ea/ThreadPoolExecutor.java:1158)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-ea/ThreadPoolExecutor.java:632)
      at java.lang.Thread.run(java.base@9-ea/Thread.java:804)
      Caused by: java.util.NoSuchElementException
      at java.util.LinkedList.removeFirst(java.base@9-ea/LinkedList.java:274)
      at java.util.LinkedList.remove(java.base@9-ea/LinkedList.java:689)
      at ManyRequests$RequestLimiter.requestComplete(ManyRequests.java:165)
      at ManyRequests.lambda$test$2(ManyRequests.java:100)
      at java.util.concurrent.CompletableFuture.uniCompose(java.base@9-ea/CompletableFuture.java:1012)
      ... 8 more

        Attachments

          Activity

            People

            • Assignee:
              michaelm Michael McMahon
              Reporter:
              xiaofeya Xiaofeng Yang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: