Pivotal Knowledge Base

Follow

ManagementExceptions are Thrown While Creating Multiple Gateway Receivers in One Member

Environment

GemFire 7.0 and above

Symptom

When trying to create multiple Gateway receivers in one member, in order to receive messages from multiple Gateway senders, like this cache.xml snippet:

<gateway-receiver start-port="1530" end-port="1549" />
<gateway-receiver start-port="1550" end-port="1569" />
<gateway-receiver start-port="1570" end-port="1589" />
<gateway-receiver start-port="1590" end-port="1609" />

, the following ManagementExceptions are logged:

[warning 2014/03/03 12:11:23.221 UTC abc.gopivotal.com-39021 <localhost-startStop-1> tid=0x15] com.gemstone.gemfire.management.ManagementException: javax.management.InstanceAlreadyExistsException: GemFire:service=GatewayReceiver, type=Member, member=abc.gopivotal.com-39021
    at com.gemstone.gemfire.management.internal.MBeanJMXAdapter.registerMBean (MBeanJMXAdapter.java:113)
    at com.gemstone.gemfire.management.internal. SystemManagementService. registerInternalMBean(SystemManagementService.java:393)
    at com.gemstone.gemfire.management.internal.beans.ManagementAdapter. handleGatewayReceiverCreate(ManagementAdapter.java:554)
    at com.gemstone.gemfire.management.internal.beans.ManagementListener. handleEvent(ManagementListener.java:136)
        :

Cause

The GemFire raises ManagementExceptions is raised because you can only configure one gateway receiver per member, as documented in the "start gateway-receiver" section of the User's Guide, see:

Resolution

Create only one gateway receiver per member. (However, multiple Gateway senders are allowed.)

Comments

Powered by Zendesk