-
Bug
-
Resolution: Obsolete
-
Major
-
JBossAS-5.1.0.GA
-
None
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.