Query method: @Override public String queryGreeting() { return greeting.get(); } where greeting is private WorkflowLocal<String> greeting = WorkflowLocal.withInitial(() -> "hello"); When a client calls queryGreeting SDK fails with: Caused by: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: java.lang.Error: Called from non workflow or workflow callback thread