JON agent fails to communicate with server when server auto-detection is enabled and another agent is already registered with the same name or address
Issue
- agent IllegalStateException: sender object not sending commands
-
Error when running an agent:
java.lang.IllegalStateException: The sender object is currently not sending commands now. -
Exception caught while executing server discovery scan
WARN [InventoryManager.discovery-1] (rhq.core.pc.inventory.AutoDiscoveryExecutor)- Exception caught while executing server discovery scan. java.lang.IllegalStateException: The sender object is currently not sending commands now. Command not sent: [Command: type=[remotepojo]; cmd-in-response=[false]; config=[{rhq.timeout=1800000, rhq.send-throttle=true}]; params=[{invocation=NameBasedInvocation[mergeInventoryReport], targetInterfaceName=org.rhq.core.clientapi.server.discovery.DiscoveryServerService}]] -
Resource activation or upgrade failed with an exception
ERROR [main] (rhq.core.pc.inventory.InventoryManager)- Resource activation or upgrade failed with an exception. An attempt to merely activate the resources will be made now. java.lang.IllegalStateException: The sender object is currently not sending commands now. Command not sent: [Command: type=[remotepojo]; cmd-in-response=[false]; config=[{rhq.timeout=1800000, rhq.send-throttle=true}]; params=[{invocation=NameBasedInvocation[mergeInventoryReport], targetInterfaceName=org.rhq.core.clientapi.server.discovery.DiscoveryServerService}]] -
Agent is unable to issue commands
- Not able to communicate with server
Environment
- Red Hat JBoss Operations Network (ON) 3.1
- Agent is being registered or re-configured
- Agent configuration property
rhq.agent.server-auto-detectionis set totrue - Agent configuration property
rhq.communications.multicast-detector.enabledis set totrue - Another agent is already registered with the same agent name, agent bind address, or agent bind port
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.