ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Rall <...@finemaltcoding.com>
Subject Re: Calling methods without parameters
Date Fri, 26 Jul 2002 18:57:38 GMT
Let us know if this works for you.  Either way, if you could send the
strack trace you were getting, that would be useful.  It would be nice
to improve that error message.

Stan Berka <sberka@poptal.com> writes:

> Your problem is about the function return value rather then no
> parameters.  Make the restart() function return something and you
> should be fine be fine.
> 
> 
> At 03:53 PM 7/26/2002 +0200, you wrote:
> >Hi,
> >I got a problem trying to call a Java method without parameters through
> >XmlRpcClient class.
> >
> >Here is a little code example and exception I get.
> >
> >Code:
> >
> >XmlRpcClient xmlrpc = new XmlRpcClient("http://localhost:25252/RPC2");
> >xmlrpc.execute("SnmpCollector.restart", new Vector());
> >
> >
> >// this is a function definition
> >public void restart() {
> >     // do the work here
> >}
> >
> >Exception:
> >org.apache.xmlrpc.XmlRpcException: java.lang.RuntimeException: null value
> >not supported by XML-RPC


-- 

Daniel Rall <dlr@finemaltcoding.com>

Mime
View raw message