#142 Alert and Graph Failure if ObjectName is quoted

open
nobody
None
5
2007-01-18
2007-01-18
Stephanie
No

I am using Jmanage 2.0 beta.
My MBean ObjectNames do contain quotes, for example.

type=Server,serverType=Testing,name="Name1",host=localhost,port=8581

This occurs from the main jmanage web page after logging in. I select my application.
If i then select Add Graph or Add Alert,
it fails with the following exception.

Jan 17, 2007 9:51:12 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnN
ull=true
Jan 17, 2007 9:51:16 AM org.jmanage.webui.JManageExceptionHandler execute
SEVERE: unknown exception
java.lang.RuntimeException: javax.management.MalformedObjectNameException: Unter
minated key property part
at org.jmanage.core.management.ObjectName.<init>(ObjectName.java:40)
at org.jmanage.webui.actions.config.ShowAttributesAction.execute(ShowAtt
ributesAction.java:56)
at org.jmanage.webui.actions.BaseAction.execute(BaseAction.java:41)
at org.jmanage.webui.JManageRequestProcessor.processActionPerform(JManag
eRequestProcessor.java:93)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:142
0)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358
)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
onHandler.java:294)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
67)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
Context.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
197)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
Caused by: javax.management.MalformedObjectNameException: Unterminated key prope
rty part
at javax.management.ObjectName.construct(ObjectName.java:465)
at javax.management.ObjectName.<init>(ObjectName.java:1304)
at org.jmanage.core.management.ObjectName.<init>(ObjectName.java:37)
... 21 more

Discussion


Log in to post a comment.