users@jersey.java.net

[Jersey] Re: Request disappearing into HttpUrlConnection

From: Eric Stein <steine_at_locustec.com>
Date: Wed, 2 Apr 2014 13:10:32 +0000

I finally figured it out. There was a headless version of eclipse running on my machine. My guess is it was somehow in the middle of running a JerseyTest, so that server was holding the port that JerseyTest runs on. Killing that process solved the problem.

Thanks,
Eric Stein

-----Original Message-----
From: Marek Potociar [mailto:marek.potociar_at_oracle.com]
Sent: Wednesday, April 02, 2014 5:33 AM
To: users_at_jersey.java.net
Subject: [Jersey] Re: Request disappearing into HttpUrlConnection

Did you do any changes in your JDK installation? Also, can you try Jersey 2.7?

Marek

On 31 Mar 2014, at 21:27, Eric Stein <steine_at_locustec.com> wrote:

> Today all my integration tests stopped working. They just sat and spun. I'm using JUnit 4 test cases extending JerseyTest with Jersey 2.4.
>
> A little debugging identified the stack trace:
>
> Thread [main] (Suspended (breakpoint at line 379 in HttpURLConnection))
> HttpURLConnection(HttpURLConnection).getResponseCode() line: 379
> HttpUrlConnector._apply(ClientRequest) line: 316
> HttpUrlConnector.apply(ClientRequest) line: 216
> ClientRuntime.invoke(ClientRequest) line: 217
> JerseyInvocation$1.call() line: 655
> JerseyInvocation$1.call() line: 652
> Errors.process(Callable<T>, boolean) line: 315
> Errors.process(Producer<T>, boolean) line: 297
> Errors.process(Producer<T>) line: 228
> RequestScope.runInScope(Producer<T>) line: 422
> JerseyInvocation.invoke() line: 652
> JerseyInvocation$Builder.method(String) line: 387
> JerseyInvocation$Builder.get() line: 291
>
> For some reason, getResponseCode() is no longer returning *on my local machine*. It was returning last week. It still returns on our build server. It still returns on my coworker's machine. Does anybody have any idea as to what might be going wrong? I'm not even really sure where to start trying to debug this one.
>
> Thanks,
> Eric