If nullpointer error happen in jobhandler,no incident send


#1

if null pointer error in job handler ,io.zeebe.client.impl.subscription.JobRunnableFactory#executeJob will get null as fail command message, so workflow instance will pending at that job without incident.

but if we wrap null pointer exception by RuntimeException, than that job will fail with incident after exhausting retry times.

so i guess null error message will cause something wrong, please confirm it


#2

Hi @aximo, did you test this? My expectation is that a failure with no error message causes a retry on the broker, and after exhaustion of retry attempts, an incident is raised. If it is not, that would be a bug.


#3

yes, i already test it. but it may be not a bug, and just a attention when implementing JobHandler.


#4

That’s a bug. Thanks for finding this.

I opened an issue and submitted a PR: https://github.com/zeebe-io/zeebe/issues/2564