Comment 10 for bug 609300

Revision history for this message
Eric Lambert (elambert) wrote : Re: [Bug 609300] Re: Received IOException while driving IO on session GearmanJobServerSession

Actually, what I said below is not entirely correct, that code would be
executed if a null result were returned or an exception was encountered
Eric Lambert wrote:
> Wilton, the code in your stack trace would only be invoked if the
> executeFunction for your job returned a Null result
>
> try {
> result = executeFunction();
> } catch (Exception e) {
> thrown = e;
> }
> if (result == null) {
> String message = thrown == null ? "function returned null result" :
> thrown.getMessage();
> fireEvent(new GearmanPacketImpl(GearmanPacketMagic.REQ,
> GearmanPacketType.WORK_EXCEPTION,
> GearmanPacketImpl.generatePacketData(jobHandle,
> message.getBytes())));
> ...
> Is your executeFunction correctly returning a GearmanJobResult?
>
>