Gateway Tag Change Event Stopped Working

Hi Everyone,

I have a project with three gateway tag change events that no longer work. I noticed when I save the project I get this error:

java.lang.IllegalArgumentException: missing event subscriber for an annotated method. Is com.inductiveautomation.ignition.gateway.script.GatewaySystemUtilities@2611d161 registered?
at com.google.common.eventbus.SubscriberRegistry.unregister(SubscriberRegistry.java:109)

The screen is fully functional I can see the PLC tags changing but the gateway event is not triggering like it used to. These events used to work just fine. I don’t know what changed.

1 Like

Post the full stack trace here as preformatted text, see Wiki - how to post code on this forum.

If possible, also post your code for the event, redacted as necessary, again as preformatted text to help others troubleshoot.

Exactly which Ignition version are you using, and have you restarted the gateway since the problem started happening?

You (and/or @bmeyers) should contact our support department so they can start an official investigation - there's evidently something wrong here, although apparently pretty rare.

I was forced to restart because the gateway event scripts weren’t firing. I am on the phone with tech support now.

I missed your question. We are running 8.1.35.

java.lang.IllegalArgumentException: missing event subscriber for an annotated method. Is com.inductiveautomation.ignition.gateway.script.GatewaySystemUtilities@2611d161 registered?
at com.google.common.eventbus.SubscriberRegistry.unregister(SubscriberRegistry.java:109)
at com.google.common.eventbus.EventBus.unregister(EventBus.java:254)
at com.inductiveautomation.ignition.gateway.project.ProjectScriptManager.unregisterEventBus(ProjectScriptManager.java:107)
at com.inductiveautomation.ignition.gateway.project.ProjectScriptLifecycle.createScriptConfig(ProjectScriptLifecycle.java:269)
at com.inductiveautomation.ignition.gateway.project.ProjectScriptLifecycle.startupScriptConfig(ProjectScriptLifecycle.java:235)
at com.inductiveautomation.ignition.gateway.project.ProjectScriptLifecycle.restartScriptConfig(ProjectScriptLifecycle.java:231)
at com.inductiveautomation.ignition.gateway.project.ProjectScriptLifecycle.onResourcesModified(ProjectScriptLifecycle.java:733)
at com.inductiveautomation.ignition.gateway.project.ProjectLifecycle$LifecycleResourceListener.resourcesModified(ProjectLifecycle.java:176)
at com.inductiveautomation.ignition.common.project.AbstractProject.notifyResourceListeners(AbstractProject.java:351)
at com.inductiveautomation.ignition.common.project.AbstractProject.updateEffectiveState(AbstractProject.java:153)
at com.inductiveautomation.ignition.common.project.RuntimeProject.applyChange(RuntimeProject.java:274)
at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory$1.lambda$updateOrStartAffectedProjects$5(ProjectLifecycleFactory.java:185)
at java.base/java.util.ArrayList.forEach(Unknown Source)
at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory$1.updateOrStartAffectedProjects(ProjectLifecycleFactory.java:165)
at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory$1.projectUpdated(ProjectLifecycleFactory.java:143)
at com.inductiveautomation.ignition.gateway.project.BaseProjectManager.doProjectUpdatedNotification(BaseProjectManager.java:1055)
at com.inductiveautomation.ignition.gateway.project.BaseProjectManager.lambda$fireProjectUpdated$25(BaseProjectManager.java:1005)
at com.inductiveautomation.ignition.gateway.project.BaseProjectManager.lambda$submitToQueue$22(BaseProjectManager.java:983)
at com.inductiveautomation.ignition.common.util.ExecutionQueue$PollAndExecute.run(ExecutionQueue.java:239)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)