JBoss ON Agent fails to successfully parse the plugin descriptor found in rhq-platform-plugin-4.12.0.JON330GA.jar

Solution Verified - Updated -

Issue

  • As I want to register the agent by running the rhq-agent.sh, I got following errors:
...
RHQ 4.12.0.JON330GA [e347f77] (Mon Nov 17 20:23:34 CET 2014)
The agent is waiting for plugins to be downloaded...
Failed to start the agent
java.lang.RuntimeException: Cannot initialize the plugin container
        at org.rhq.core.pc.plugin.PluginManager.<init>(PluginManager.java:191)
        at org.rhq.core.pc.PluginContainer.initialize(PluginContainer.java:290)
        at org.rhq.enterprise.agent.AgentMain.startPluginContainer(AgentMain.java:2066)
        at org.rhq.enterprise.agent.AgentMain.start(AgentMain.java:757)
        at org.rhq.enterprise.agent.AgentMain.main(AgentMain.java:461)
Caused by: java.lang.IllegalArgumentException: Plugin [Platforms] is required by plugins [[Apache, Augeas]] but it does not exist in the dependency graph yet
        at org.rhq.core.clientapi.agent.metadata.PluginDependencyGraph.getDeepDependencies(PluginDependencyGraph.java:329)
        at org.rhq.core.clientapi.agent.metadata.PluginDependencyGraph.getDeepDependencies(PluginDependencyGraph.java:342)
        at org.rhq.core.clientapi.agent.metadata.PluginDependencyGraph.getDeepDependencies(PluginDependencyGraph.java:342)
        at org.rhq.core.clientapi.agent.metadata.PluginDependencyGraph.getDeploymentOrder(PluginDependencyGraph.java:245)
        at org.rhq.core.pc.plugin.PluginManager.<init>(PluginManager.java:169)
        ... 4 more
Agent will be restarted soon to see if the failure condition cleared up
...
  • Agent fails to register with the server and logs the following error:
2014-11-27 14:47:14,378 ERROR [main] (rhq.core.clientapi.descriptor.AgentPluginDescriptorUtil)- Validation fatal error while parsing [rhq-platform-plugin-4.12.0.JON330GA.jar:META-INF/rhq-plugin.xml] at line 18, column 165: cvc-enumeration-valid: Value 'Killiseconds' is not facet-valid with respect to enumeration '[none, percentage, bits, kilobits, megabits, gigabits, terabits, petabits, bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, epoch_milliseconds, epoch_seconds, jiffys, nanoseconds, microseconds, milliseconds, seconds, minutes, hours, days, kelvin, celsius, fahrenheit]'. It must be a value from the enumeration.
2014-11-27 14:47:14,379 ERROR [main] (rhq.core.pc.plugin.PluginManager)- Plugin at [file:/opt/jboss/jon/rhq-agent/plugins/rhq-platform-plugin-4.12.0.JON330GA.jar] could not be loaded and will therefore not be deployed.
org.rhq.core.clientapi.agent.PluginContainerException: Could not successfully parse the plugin descriptor [META-INF/rhq-plugin.xml] found in plugin jar at [file:/opt/jboss/jon/rhq-agent/plugins/rhq-platform-plugin-4.12.0.JON330GA.jar].
    at org.rhq.core.clientapi.descriptor.AgentPluginDescriptorUtil.loadPluginDescriptorFromUrl(AgentPluginDescriptorUtil.java:398)
    at org.rhq.core.pc.plugin.PluginManager.<init>(PluginManager.java:153)
    at org.rhq.core.pc.PluginContainer.initialize(PluginContainer.java:290)
    at org.rhq.enterprise.agent.AgentMain.startPluginContainer(AgentMain.java:2066)
    at org.rhq.enterprise.agent.AgentMain.start(AgentMain.java:757)
    at org.rhq.enterprise.agent.AgentMain.main(AgentMain.java:461)
Caused by: org.rhq.core.clientapi.agent.PluginContainerException: [Warning] javax.xml.bind.UnmarshalException: [Warning] null
    ... 6 more
Caused by: org.rhq.core.util.exception.WrappedRemotingException: [Warning] null
    at org.rhq.core.util.exception.WrappedRemotingException.getCause(WrappedRemotingException.java:121)
    at java.lang.Throwable.printStackTraceAsCause(Throwable.java:543)
...
  • Receive error like "Plugin [Platforms] is required by plugins [[Apache, Augeas]] but it does not exist in the dependency graph yet"

Environment

  • Red Hat JBoss Operations Network (JON) 3.3.0
  • Java 1.6.0_85 or earlier
  • Java 1.7.0_75 or earlier
  • Java 1.8.0_31 or earlier
  • JBoss ON agent RHQ-4.12.0.JON330GA

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.