JBoss ON agent fails to fully connect to server due to NoSuchMethodError

Solution Unverified - Updated -

Issue

  • Agent cannot connect to server
  • I can not get the agent connected to JON server
  • Agent fails to connect to server and the following warning appears in the agent log every minute:

    WARN  [RHQ Server Polling Thread] (enterprise.communications.command.client.ServerPollingThread)- {ServerPollingThread.server-offline}The server has gone offline; client has been told to stop sending commands
    
  • The following log message appears in the agent debug log:

    DEBUG [RHQ Server Polling Thread] (enterprise.communications.command.client.ServerPollingThread)- {ServerPollingThread.server-poll-failure}Failed to successfully poll the server. This is normally due to the server not being up yet. You can usually ignore this message since it will be tried again later, however, you should ensure this failure was not really caused by a misconfiguration. Cause: java.lang.NoSuchMethodError:org.rhq.core.pc.PluginContainerConfiguration.setDisabledResourceTypes(Ljava/util/List;)V
    
  • Agent fails to connect to server and throws java.lang.NoSuchMethodError or java.lang.NoClassDefFoundError exceptions.

  • Server log reveals that the same agent keeps connecting every minute:

    2013-03-26 13:56:34,416 INFO  [org.rhq.enterprise.server.core.CoreServerServiceImpl] Agent [My JON Agent][4.4.0.JON312GA(1472d79)] would like to connect to this server
    2013-03-26 13:56:34,537 INFO  [org.rhq.enterprise.server.core.CoreServerServiceImpl] Agent [My JON Agent] has connected to this server at Tue Mar 26 13:56:34 CET 2013
    2013-03-26 13:57:34,568 INFO  [org.rhq.enterprise.server.core.CoreServerServiceImpl] Agent [My JON Agent][4.4.0.JON312GA(1472d79)] would like to connect to this server
    2013-03-26 13:57:34,733 INFO  [org.rhq.enterprise.server.core.CoreServerServiceImpl] Agent [My JON Agent] has connected to this server at Tue Mar 26 13:57:34 CET 2013
    2013-03-26 13:58:34,767 INFO  [org.rhq.enterprise.server.core.CoreServerServiceImpl] Agent [My JON Agent][4.4.0.JON312GA(1472d79)] would like to connect to this server
    2013-03-26 13:58:35,067 INFO  [org.rhq.enterprise.server.core.CoreServerServiceImpl] Agent [My JON Agent] has connected to this server at Tue Mar 26 13:58:35 CET 2013
    2013-03-26 13:59:35,113 INFO  [org.rhq.enterprise.server.core.CoreServerServiceImpl] Agent [My JON Agent][4.4.0.JON312GA(1472d79)] would like to connect to this server
    2013-03-26 13:59:35,301 INFO  [org.rhq.enterprise.server.core.CoreServerServiceImpl] Agent [My JON Agent] has connected to this server at Tue Mar 26 13:59:35 CET 2013
    

Environment

  • Red Hat JBoss Operations Network (ON) 3.1.2, 3.2
  • JBoss ON agent installed and configured to connect to server

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.