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

Solution Verified - Updated -

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-detection is set to true
  • Agent configuration property rhq.communications.multicast-detector.enabled is set to true
  • 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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In