]
Darran Lofthouse reassigned JBAS-7060:
--------------------------------------
Assignee: (was: Darran Lofthouse)
Unable to set attributes for MBeans with quoted object name
-----------------------------------------------------------
Key: JBAS-7060
URL:
https://issues.jboss.org/browse/JBAS-7060
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: JMX/Web Console
Affects Versions: JBossAS-5.1.0.GA
Reporter: Jeff Mesnil
While integration JBoss Messaging 2.0.0.Beta3 to AS 5.1.0.GA, I found an issue when I
want to update attributes for one of our MBeans which has a quoted ObjectName. The
ObjectName is not properly encoded by the Servlet and an exception is thrown by the MBean
registry which claims the mbean is not registered.
The ObjectName is: module=JMS,name="DLQ",type=Queue
- the *name* value is quoted
When I display this mbean in the jmx console, the corresponding form to update the
attributes has a field:
<input type="hidden" name="name"
value="org.jboss.messaging:module=JMS,type=Queue,name="DLQ"" />
The quotes of the ObjectNames are not properly encoded which results in a bogus object
name when applying changes:
0:57:16,082 ERROR [[HtmlAdaptor]] "Servlet.service()" pour la servlet
HtmlAdaptor a genere une exception
javax.management.InstanceNotFoundException:
org.jboss.messaging:module=JMS,type=Queue,name= is not registered.
at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:526)
at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:675)
at org.jboss.jmx.adaptor.control.Server.setAttributes(Server.java:172)
at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet$5.run(HtmlAdaptorServlet.java:403)
at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet$5.run(HtmlAdaptorServlet.java:401)
at java.security.AccessController.doPrivileged(Native Method)
at
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.setAttributes(HtmlAdaptorServlet.java:399)
at
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.updateAttributes(HtmlAdaptorServlet.java:259)
at
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:102)
at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:86)
This bug prevents to update many MBeans required to managed properly JBoss Messaging when
it is integrated in the AS.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: