Error: Local Activity Worker is not started, no activities were registered

Hello,
I’m trying to setup a temporal workflow using spring boot.
I’ve defined activities as beans, etc. Basically was following the examples from temporal git.

Workflow starts, but throws following errors in logs:

2024-02-22 14:31:53.674 EET|ERROR  i.t.i.worker.PollerOptions     - uncaught exception
java.lang.RuntimeException: Failure processing workflow task. WorkflowId=t1708605092478, RunId=f9d1cafe-3487-43b5-9141-16c611fe0620, Attempt=4
	at io.temporal.internal.worker.WorkflowWorker$TaskHandlerImpl.wrapFailure(WorkflowWorker.java:404)
	at io.temporal.internal.worker.WorkflowWorker$TaskHandlerImpl.wrapFailure(WorkflowWorker.java:261)
	at io.temporal.internal.worker.PollTaskExecutor.lambda$process$0(PollTaskExecutor.java:110)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.IllegalStateException: Local Activity Worker is not started, no activities were registered
	at io.temporal.internal.worker.LocalActivityWorker$LocalActivityDispatcherImpl.dispatch(LocalActivityWorker.java:213)
	at io.temporal.internal.replay.ReplayWorkflowRunTaskHandler.processLocalActivityRequests(ReplayWorkflowRunTaskHandler.java:320)
	at io.temporal.internal.replay.ReplayWorkflowRunTaskHandler.handleWorkflowTask(ReplayWorkflowRunTaskHandler.java:166)
	at io.temporal.internal.replay.ReplayWorkflowTaskHandler.handleWorkflowTaskWithQuery(ReplayWorkflowTaskHandler.java:133)
	at io.temporal.internal.replay.ReplayWorkflowTaskHandler.handleWorkflowTask(ReplayWorkflowTaskHandler.java:98)
	at io.temporal.internal.worker.WorkflowWorker$TaskHandlerImpl.handleTask(WorkflowWorker.java:413)
	at io.temporal.internal.worker.WorkflowWorker$TaskHandlerImpl.handle(WorkflowWorker.java:320)
	at io.temporal.internal.worker.WorkflowWorker$TaskHandlerImpl.handle(WorkflowWorker.java:261)
	at io.temporal.internal.worker.PollTaskExecutor.lambda$process$0(PollTaskExecutor.java:105)
	... 3 common frames omitted

Any ideas what could go wrong?

Hi @Volodymyr_Konoval

Local Activity Worker is not started, no activities were registered

it seems the activity implementation is not registered to the worker

I’ve defined activities as beans, etc. Basically was following the examples from temporal git.

Can you check if you are either:

Antonio