Comment 7 for bug 689330

Revision history for this message
Eric Lambert (elambert) wrote : Re: [Bug 689330] Re: NullPointerException thrown from GearmanClientImpl.shutdownNow

Well one thing I did notice was that was using HashMap to hold the sessions and HashMap is not thread safe, but not sure that is the cause.

Eric

On Dec 14, 2010, at 12:58 PM, Omry Yadan <email address hidden> wrote:

> Hi Eric,
> Can you elaborate?
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/689330
>
> Title:
> NullPointerException thrown from GearmanClientImpl.shutdownNow
>
> Status in Gearman Java:
> New
>
> Bug description:
> While stress testing my gearman worker, I bumped into the following exceptions:
>
> 1. RejectedExecutionException with the message "No servers registered with client"
> if I catch this one and try to close the client in order to start a new one and retry, I get:
>
> 2.java.lang.NullPointerException
> at org.gearman.client.GearmanClientImpl.shutdownNow(GearmanClientImpl.java:482)
> at org.gearman.client.GearmanClientImpl.shutdown(GearmanClientImpl.java:454)
>
>