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