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.
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.
> NullPointerException thrown from GearmanClientImpl.shutdownNow
> Status in Gearman Java:
> 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:
> at org.gearman.client.GearmanClientImpl.shutdownNow(GearmanClientImpl.java:482)
> at org.gearman.client.GearmanClientImpl.shutdown(GearmanClientImpl.java:454)