Subject: | MBean retrieval fails due to path-like structure |
I'm attaching some files to this ticket. The first is jmx_results.txt.
This file shows all the ouput from running this agent URL with the
formatted_list option on request:
http://{path to agent}/j4p-agent/list/WebSphere/
Based on the output, let's say I want to get the thread pool information
for a particular JVM. Here's the MBean for that section:
cell=ubuntu64Cell01,mbeanIdentifier=cells/ubuntu64Cell01/nodes/ubuntu64Node01/servers/perfdata/server.xml#ThreadPool_1242503522873,name=ORB.thread.pool,node=ubuntu64Node01,platform=dynamicproxy,process=perfdata,spec=1.0,type=ThreadPool,version=6.1.0.23
As you can see, the mbeanIdentifier is listed in a path type format.
This completely messes up retrieval. I've also attached the stacktrace
called jmx_results-stacktrace.txt.
I've tried using quotes, brackets, slashes, everything to make the
request take the mbeanIdentifier's path slashes, but nothing is working.
I can only access a WebSphere mbeanIdentifier that does not contain a
path-like structure and not many of them do.
Any ideas?
Subject: | jmx_results.txt |
Message body is not shown because it is too large.
Subject: | jmx_results-stacktrace.txt |
{"stacktrace":"java.lang.IllegalArgumentException: Map key cell=ubuntu64Cell01,mbeanIdentifier=cells is unknown for map {J2EEName=j4p-agent,J2EEServer=perfdata,Server=perfdata,cell=ubuntu64Cell01,j2eeType=J2EEApplication,mbeanIdentifier=cells\/ubuntu64Cell01\/applications\/j4p-agent.ear\/deployments\/j4p-agent\/deployment.xml#ApplicationDeployment_1243085047669,name=j4p-agent,node=ubuntu64Node01,platform=dynamicproxy,process=perfdata,spec=1.0,type=J2EEApplication,version=6.1.0.23={op={isStatisticsProvider={args=[], desc= ...\n\tat org.cpan.jmx4perl.converter.MapHandler.handle(Unknown Source)\n\tat org.cpan.jmx4perl.converter.AttributeToJsonConverter.prepareForJson(Unknown Source)\n\tat org.cpan.jmx4perl.converter.MapHandler.handle(Unknown Source)\n\tat org.cpan.jmx4perl.converter.AttributeToJsonConverter.prepareForJson(Unknown Source)\n\tat org.cpan.jmx4perl.converter.AttributeToJsonConverter.convertToJson(Unknown Source)\n\tat org.cpan.jmx4perl.AgentServlet.handle(Unknown Source)\n\tat org.cpan.jmx4perl.AgentServlet.doGet(Unknown Source)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:743)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:856)\n\tat com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1143)\n\tat com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:591)\n\tat com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:481)\n\tat com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3453)\n\tat com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)\n\tat com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:815)\n\tat com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1466)\n\tat com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:119)\n\tat com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)\n\tat com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)\n\tat com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)\n\tat com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)\n\tat com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)\n\tat com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)\n\tat com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)\n\tat com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)\n\tat com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)\n\tat com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)\n\tat com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)\n\tat com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)\n\tat com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)\n","error":"java.lang.IllegalArgumentException: Map key cell=ubuntu64Cell01,mbeanIdentifier=cells is unknown for map {J2EEName=j4p-agent,J2EEServer=perfdata,Server=perfdata,cell=ubuntu64Cell01,j2eeType=J2EEApplication,mbeanIdentifier=cells\/ubuntu64Cell01\/applications\/j4p-agent.ear\/deployments\/j4p-agent\/deployment.xml#ApplicationDeployment_1243085047669,name=j4p-agent,node=ubuntu64Node01,platform=dynamicproxy,process=perfdata,spec=1.0,type=J2EEApplication,version=6.1.0.23={op={isStatisticsProvider={args=[], desc= ...","status":400}