I got Martin's "TestServer" example working, and then I went on to try
and make a "non-XmlRpcHandler" handler, hoping it would perform the
object introspection as explained in the server how-to. My test client
keeps giving me this odd error I can't seem to get rid of:
Class org.apache.xmlrpc.Invoker can not access a member of class
TestHandler with modifiers "public"
This error is actually thrown by the XML-RPC web server. Here's the
code for TestHandler:
class TestHandler
{
public String testerror() throws Exception
{
System.err.println("TestServer: executing " + "testerror");
throw new XmlRpcException(20, "this is an error");
}
}
I set up the handler in "public static void main" like this:
TestHandler testHandler = new TestHandler();
webServer.addHandler("test", testHandler);
Clearly, the method is being found because when I call "test.testerror"
from the client, I get that error, but if I change the call to use any
other name, it throws a "method not found" sort of error.
Why is the Invoker (I think that's who is throwing the error) throwing
an error and complaining about the testerror method being public? Isn't
is supposed to be public?
Sean O'Dell
- Re: Activity Ryan Hoegg
- Re: Activity Ryan Hoegg
- Re: Activity sean
- Re: Activity Martin Redington
- Re: Activity Ryan Hoegg
- Re: Activity sean
- Re: Activity Ryan Hoegg
- Re: Activity Martin Redington
- Re: Activity Ryan Hoegg
- Re: Activity Martin Redington
- Re: Handler Trouble sean
- Re: Handler Trouble Martin Redington
- List archive Danny Angus
- Re: Handler Trouble sean
- Re: Handler Trouble Martin Redington
- Re: Handler Trouble sean
- Re: Activity sean
- Re: Activity Ryan Hoegg
- Re: Activity Nicolas RAOUL
- Re: Activity Douglas Reames
- Re: Activity Ryan Hoegg
