[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[equinox-dev] Ruby XMLRPC client for the XMLRPC JMX Connector
|
I am trying to connect to the JMX XMLRPC connector using a ruby client
and am running into issues. I am using the following code:
require "xmlrpc/client"
server = XMLRPC::Client.new( "localhost", "/", "8119")
begin
result = server.call("getMBeanCount")
puts "Found #{result} bean(s)"
rescue XMLRPC::FaultException => e
puts "Error: "
puts e.faultCode
puts e.faultString
end
I get a Fault code of 0, and the equinox console spits out the following trace.
osgi> Nov 11, 2007 1:36:54 AM
org.apache.xmlrpc.server.XmlRpcStreamServer execute
SEVERE: execute: Error while performing request
java.lang.NullPointerException
at org.apache.xmlrpc.server.XmlRpcServerWorker.execute(XmlRpcServerWorker.java:43)
at org.apache.xmlrpc.server.XmlRpcServer.execute(XmlRpcServer.java:83)
at org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:182)
at org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:103)
at org.apache.xmlrpc.webserver.XmlRpcServlet.doPost(XmlRpcServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:616)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at org.eclipse.equinox.jmx.server.internal.xmlrpc.XMLRPCMBeanServerAdapter$InternalHttpServiceServlet.service(XMLRPCMBeanServerAdapter.java:142)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
at org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:677)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Anyone have any suggestions? I would love to be able to use this
festure to allow any XMLRPC capable language to interact with the JMX
server.