REST API error: ENGINE-03051 There was an exception while invoking the TaskListener. Message: 'ENGINE-09008 Exception while instantiating class '': ENGINE-09017 Cannot load class

Hi,
I have an issue when try to complete a user task with REST API.
The error message:

Cannot complete task 37c82887-b74a-11ec-b31e-080027519d8d: ENGINE-03051 There was an exception while invoking the TaskListener. Message: 'ENGINE-09008 Exception while instantiating class ‘’: ENGINE-09017 Cannot load class ‘’: ’

It has the same when try to complete from TaskLisk dashboard.

How do I solve or investigate the problem?

@bwidyasanyata How do you configure the task listener in the user task??

Also could you post the signature of the class?? Do you have any class level annotations?

Hi @aravindhrs, No task listener in my user task. It’s a plain user task which will be completed through a normal REST API method.

After I rechecked in my model, there was an “incomplete/premature Java Task Listener definition” which I added on next user task (after user task raised the error) which might this problem occurred.

Thank you!

Hi, could you elaborate on what was wrong on your model?
From time to time I have this issue, even in classes / processes that were previously working. Can’t find anything wrong.