I don't think it likes the "name=" portion of the mbean name. That needs
a value. I'm not sure why it doesn't have a value but maybe it's having
trouble parsing the ear file name "srh-businesscore-ear.ear". That
should be valid I think, but perhaps the "ear" in name part is causing a
problem. maybe rename the ear and see if that solves the problem. If
so, please let us know as that's probably a bug.
If not, let us at least know the RHQ and app server version you're
working with.
On 1/16/2012 2:27 PM, Herbert de Borba wrote:
Hello all, it's my first post to this list, don't know if this is the
right place for the question, but I can't find any references to this
issue on the web, so there it goes...
I have a RHQ server that's already working with several agents and is
monitoring some EJBs/EARs between other resources. But when I try to
start this specific agent the log reports this error (agent.log):
<pre>
2012-01-16 16:09:59,818 WARN [ResourceContainer.invoker.daemon-1]
(org.rhq.plugins.jbossas.JBossASServerComponent)- Could not establish
connection to the JBoss AS instance [11] times for resource
[/usr/local/jboss/server/default]
org.mc4j.ems.connection.EmsConnectException:
java.io.StreamCorruptedException:
javax.management.MalformedObjectNameException:
jboss.j2ee:ear=srh-businesscore-ear.ear,jar=srh-businesscore-ejb-1.5.3-SNAPSHOT.jar,name=,service=EJB3
is not a valid ObjectName. Invalid key/value data name
at
org.mc4j.ems.impl.jmx.connection.support.providers.proxy.GenericMBeanServerProxy.invoke(GenericMBeanServerProxy.java:156)
at $Proxy55.queryNames(Unknown Source)
at
org.mc4j.ems.impl.jmx.connection.DConnection.loadSynchronous(DConnection.java:138)
...
</pre>
The agent then is unable to report the correctly running JBossAS to
the RHQ server and it shows it as if the JBossAS is down, what is not
the case since the AS is up and the services it serves are working.
If I undeploy this EAR the problem disapear.
Does someone has any tips on what's going on? What's that name it is
expecting?
Regards.
--
Herbert Mattei de Borba
herbertdeborba(a)gmail.com <mailto:herbertdeborba@gmail.com>
_______________________________________________
rhq-users mailing list
rhq-users(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/rhq-users