# Strange Activity Type not registered errors

**URL:** <https://community.temporal.io/t/strange-activity-type-not-registered-errors/4950>\
**Category:** Community Support\
**Tags:** java-sdk\
**Created:** [June 13, 2022, 1:18pm UTC](https://community.temporal.io/t/strange-activity-type-not-registered-errors/4950 "2022-06-13T13:18:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![maki\_XIE](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maki_xie/32/2040_2.png) [@maki\_XIE](https://community.temporal.io/u/maki_XIE)\
**Post date:** [June 13, 2022, 1:18pm UTC](https://community.temporal.io/t/strange-activity-type-not-registered-errors/4950/1 "2022-06-13T13:18:54Z")

</div>

```auto
java.lang.IllegalArgumentException: Activity Type "SendApproverTaskStatusEventEnd" is not registered with a worker. Known types are: CancelApproverTask, SubmitApproverTask, CreateApproverTask 
io.temporal.internal.activity.POJOActivityTaskHandler.handle(POJOActivityTaskHandler.java:110)
io.temporal.internal.worker.ActivityWorker$TaskHandlerImpl.handle(ActivityWorker.java:208)
io.temporal.internal.worker.ActivityWorker$TaskHandlerImpl.handle(ActivityWorker.java:166)
io.temporal.internal.worker.PollTaskExecutor.lambda$process$0(PollTaskExecutor.java:93)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
java.base/java.lang.Thread.run(Thread.java:829)

```

But actually the activities are registered.

```auto
        worker.registerActivitiesImplementations(approverActivitiesImpl)
        worker.registerActivitiesImplementations(executionActivitiesImpl)
        worker.registerActivitiesImplementations(statusActivitiesImpl) // this one
        worker.registerActivitiesImplementations(localActivitiesImpl)

```

And the logs say the retry help the activity succeed.

```auto
mock ApprovalStatusActivitiesImpl.sendApproverTaskStatusEventEnd(), taskID : 1e7d7a91-56a4-340f-98b1-8a69870a55bf
mock ApprovalStatusActivitiesImpl.sendApproverTaskStatusEventStart(), taskID: cf88f866-67cd-345b-a445-cc069ff59a5e
2022-06-13T21:07:57,389 [Activity Executor taskQueue="tp_queue_approval", namespace="default": 10] DEBUG temporal.ApprovalExecutionActivitiesImpl - [CORRELATION_ID=] - [Normal Activity]: createApprovalExecutionData
mock ApprovalStatusActivitiesImpl.sendApproverTaskStatusEventStart(), taskID: e2f87539-bb80-367e-b2f9-dae89d87386d
mock ApprovalStatusActivitiesImpl.sendApproverTaskStatusEventEnd(), taskID : e2f87539-bb80-367e-b2f9-dae89d87386d

```

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [June 13, 2022, 2:28pm UTC](https://community.temporal.io/t/strange-activity-type-not-registered-errors/4950/2 "2022-06-13T14:28:47Z")

</div>

Looks as you might have some worker that does not have the activity registered that is listening on the same activity task queue. Check to make sure all workers have this activity registered.

---

<div class="post-metadata">

**Author:** ![maki\_XIE](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maki_xie/32/2040_2.png) [@maki\_XIE](https://community.temporal.io/u/maki_XIE)\
**Post date:** [June 14, 2022, 9:00am UTC](https://community.temporal.io/t/strange-activity-type-not-registered-errors/4950/3 "2022-06-14T09:00:42Z")

</div>

Hey. I have pasted the evidence that all are registered. Could you take a second look at the second and third paragraph?

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [June 14, 2022, 1:55pm UTC](https://community.temporal.io/t/strange-activity-type-not-registered-errors/4950/4 "2022-06-14T13:55:39Z")

</div>

I read your whole message.

> java.lang.IllegalArgumentException: Activity Type “SendApproverTaskStatusEventEnd” is not registered with a worker. Known types are: CancelApproverTask, SubmitApproverTask, CreateApproverTask

This is when a worker picks up the activity task and says it does not have it registered. If the activity still completes it most likely means that it was retried (server puts the task back on the tq) and another worker that polls on same tq and does have it registered picked it up and completed it.

You can see the number of pollers on the tq that this activity is supposed to execute on via tctl, for example:

`tctl tq desc --tq <tq_name>`

and see if there is some old worker polling on it that might not have the activity registered.

If you are getting this inside a test, can you show your test? If not, you can also look at your workflow history (please share) and see what could be going on.
