# RPC methods between Client and Gateway

**URL:** <https://forum.inductiveautomation.com/t/rpc-methods-between-client-and-gateway/11076>\
**Category:** 3rd Party Modules\
**Created:** [January 20, 2016, 6:10pm UTC](https://forum.inductiveautomation.com/t/rpc-methods-between-client-and-gateway/11076 "2016-01-20T18:10:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![benoit](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@benoit](https://forum.inductiveautomation.com/u/benoit)\
**Post date:** [January 20, 2016, 6:10pm UTC](https://forum.inductiveautomation.com/t/rpc-methods-between-client-and-gateway/11076/1 "2016-01-20T18:10:51Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 20, 2016, 7:33pm UTC](https://forum.inductiveautomation.com/t/rpc-methods-between-client-and-gateway/11076/2 "2016-01-20T19:33:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![benoit](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@benoit](https://forum.inductiveautomation.com/u/benoit)\
**Post date:** [January 21, 2016, 8:11am UTC](https://forum.inductiveautomation.com/t/rpc-methods-between-client-and-gateway/11076/3 "2016-01-21T08:11:26Z")

</div>

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 !
