Custom plugin issue which gets healed by model redeploy? Why?

Hi!

We’ve made a custom plugin that intercepts tasks START/END events and notifies third-party endpoints about that. For security reasons plugin has to get security token for particular endpoint and include it to the notification request headers. It looks like nothing very special out there.

But after registering plugin and reboot Camunda (is it necessary btw?) we’re getting this error from the plugin class:

and process halts on intermediate throw event (which instantiates non-interrupting event subprocess) like this:

no, any Camunda exceptions thrown or any other warnings occurred.

But things get better just after same model redeploy. Everything works ok, no exceptions from plugin throws, and execution tokens go from throw event to the proper next wait-state (task).

My question is where to dig? Why model redeploy could solve this issue and how it could be connected?

Camunda 7.11 runned shared in Tomcat

regards,
–Leo