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?
>
>
Actually, what I said below is not entirely correct, that code would be getMessage( ); pl(GearmanPacke tMagic. REQ, pe.WORK_ EXCEPTION, pl.generatePack etData( jobHandle, getBytes( ))));
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.
> fireEvent(new GearmanPacketIm
> GearmanPacketTy
> GearmanPacketIm
> message.
> ...
> Is your executeFunction correctly returning a GearmanJobResult?
>
>