RPC methods between Client and Gateway

I’m trying to make RPC calls between Client and Gateway.
I followed the manual, but it did not worked.
In the Client I added the alarm-notification-common library because without the ModuleMeta.MODULE_ID was not resolved.
With this adding it compile.

I see the method is called from the Client but I get an exception :
Exception in thread “AWT-EventQueue-2” java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy16.clearAccumulatedDose(Unknown Source)

Caused by: com.inductiveautomation.ignition.client.gateway_interface.GatewayException: com.inductiveautomation.ignition.alarming.AlarmNotificationGatewayHook$AlarmNotificationRPCImpl.clearAccumulatedDose(java.lang.String)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.newGatewayException(GatewayInterface.java:328)

Caused by: java.lang.NoSuchMethodException: com.inductiveautomation.ignition.alarming.AlarmNotificationGatewayHook$AlarmNotificationRPCImpl.clearAccumulatedDose(java.lang.String)
at java.lang.Class.getMethod(Class.java:1786)

Is there any library missing ?

Ignition can’t find the method you’re calling: clearAccumulatedDose(java.lang.String)
Is this a method in your module? If so, you shouldn’t be using the alarm notification module’s ID. You need to use your own ID.

It works !

The module Id to put there is the moduleID that is in the module.xml file
It works fine for me !

Thank you for your help !