Hi,
yes that was a problem, I figured it out little bit later. Thank you for
response.
Why this case is not handled, I know that it maybe is not in standard but it
can be very useful in the real life? This way I have to put my functions
return
some dummy boolean values.
Thanks again.
Regards,
Dejan
----- Original Message -----
From: "Stan Berka" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 26, 2002 5:48 PM
Subject: Re: Calling methods without parameters
> 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
>
> Stan Berka Programmer Annalyst
> Portland, OR Pope & Talbot
> (503) 552-4315 Fax (503) 2202726
>