SignalMethod function not getting executed

I am facing an issue where @SignalMethod of my workflow is not getting executed.
Here is what my workflow looks like

public interface FeedWorkflow {

    void execute(final WorkflowRequest request);

    void processingComplete(final Summary summary);

public class FeedWorkflowImpl implements FeedWorkflow {

    private Summary summary = null;

    private final FeedWorkflowActivities activities;

    public FeedWorkflowImpl() {
        activities = Workflow.newActivityStub(FeedWorkflowActivities.class, <activityOptions>);

    public Summary execute(@NonNull final WorkflowRequest request) {
        try {

            Workflow.await(() -> this.summary != null);

            return summary;
        } catch (final Throwable t) {
            logger.error("Error executing workflow: ", t);
            throw t;

    public void processingComplete(@Nonnull final Summary summary) {"Received completion signal with '{}'", summary);
        this.summary = summary;

and this is how i am signalling the workflow from a different module (not part of the workflow)

final FeedWorkflow workflow = 

The signalling completes successfully and in the UI i can see that the workflow has been signalled (WorkflowExecutionSignaled). But dont see the log statement inside my signal method (processingComplete method) being executed and also because of this the workflow is stuck in the await block

Any idea what i am missing?

I am also seeing the following error in the logs which i think i related

io.temporal.internal.sync.DestroyWorkflowThreadError: null at io.temporal.internal.sync.WorkflowThreadContext.lambda$destroy$597e554$1( ~[pservice-1.0.jar:?] at io.temporal.internal.sync.WorkflowThreadContext.mayBeEvaluate( ~[pservice-1.0.jar:?] at io.temporal.internal.sync.WorkflowThreadContext.yield( ~[pservice-1.0.jar:?] at io.temporal.internal.sync.WorkflowThreadImpl.yield( ~[pservice-1.0.jar:?] at io.temporal.internal.sync.WorkflowThread.await( ~[pservice-1.0.jar:?] at io.temporal.internal.sync.SyncWorkflowContext.await( ~[pservice-1.0.jar:?]

Never catch Throwable in the workflow code. The SDK uses Error subclasses to perform thread cleanup. Change your code to catch Exception instead.

@maxim Thanks, that explains why i am seeing the error log, however as you can see i am re-throwing the throwable so i m guessing that is not root cause of the issue.

Also to give you some context the reason i was logging throwable in my code was because previously i was incorrectly trying to get a workflow stub(outside a workflow) by doing:
Since the above function when invoked outside a workflow throws an error instead of an exception, it took me a while to realize what the issue was. In order to get visibility into such errors while setting this up i decided to log them before re-throwing.

What version of Temporal are you using? I’m not able to reproduce this problem on my laptop.

our temporal server and client java library both are on 1.0.0

After a bunch of debugging i figured out the issue was because of deserialization of Summary object:

public class Summary {
    private int totalItems;
    private ErrorCode code;

    public Optional<ErrorCode> getErrorCode() {
        return Optional.ofNullable(code);

This gets serialized fine and posted to the workflow as:

{totalItems:100, code:{value:null,empty:true,present:false}

But the deserialization back to the object fails. I was able to get it fixed by setting @JsonAutoDetect correctly

Anyways what made this difficult to debug was that there were no exceptions messages in the logs. Is there any way i can tap these internal exception/error messages into log4j?

Never mind, I think this is what i am looking for :

This is the log output I’m getting for unparsable signal:

08:25:47.652 [signal waitForName] ERROR i.t.i.sync.SyncWorkflowContext - Failure deserializing signal input for "waitForName" at eventId 5. Dropping it.
io.temporal.common.converter.DataConverterException: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `io.temporal.samples.hello.HelloSignal$SignalArg` (although at least one Creator exists): cannot deserialize from Object value (no delegate- or property-based Creator)
 at [Source: (byte[])"{"name":"World"}"; line: 1, column: 2]
	at io.temporal.common.converter.JacksonJsonPayloadConverter.fromData(
	at io.temporal.common.converter.DefaultDataConverter.fromPayload(
	at io.temporal.common.converter.DataConverter.arrayFromPayloads(
	at io.temporal.internal.sync.SyncWorkflowContext.lambda$registerSignal$3ac69c8f$1(
	at io.temporal.internal.sync.SyncWorkflowContext.signal(
	at io.temporal.internal.sync.WorkflowExecuteRunnable.processSignal(
	at io.temporal.internal.sync.SyncWorkflow.lambda$handleSignal$2(
	at io.temporal.internal.sync.WorkflowThreadImpl$
	at java.util.concurrent.Executors$
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `io.temporal.samples.hello.HelloSignal$SignalArg` (although at least one Creator exists): cannot deserialize from Object value (no delegate- or property-based Creator)
 at [Source: (byte[])"{"name":"World"}"; line: 1, column: 2]
	at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(
	at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(
	at com.fasterxml.jackson.databind.DeserializationContext.handleMissingInstantiator(
	at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(
	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(
	at io.temporal.common.converter.JacksonJsonPayloadConverter.fromData(
	... 13 common frames omitted