eclipse-ee4j / eclipse-ee4j/jersey

NoSuchElementException occasionally thrown when using PostInvocationInterceptor

Open
#4,544 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

Using Jersey 2.30.1, after adding a PosInvocationInterceptor, I occasionally see the following exception. I believe I am not doing anything non-standard. Looks like a race/threading issue possibly?

Caused by: java.util.NoSuchElementException
at java.util.ArrayList$Itr.next(ArrayList.java:862)
at org.glassfish.jersey.client.InvocationInterceptorStages$PostInvocationInterceptorStage.afterRequestWithException(InvocationInterceptorStages.java:200)
at org.glassfish.jersey.client.InvocationInterceptorStages$PostInvocationInterceptorStage.afterRequest(InvocationInterceptorStages.java:244)
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:307)
at org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$1(JerseyInvocation.java:623)
at org.glassfish.jersey.internal.Errors.process(Errors.java:292)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.