ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Wiedmann" <jochen.wiedm...@gmail.com>
Subject Re: Failed to instantiate class MyHanlder
Date Wed, 21 Jun 2006 07:39:13 GMT
On 6/21/06, Han, Zhi (Zhi) <zhihan@lucent.com> wrote:

> Does MyHanlder need init? No constructor method for this class.

It must be instantiable via

    test.MyHanider.class.newInstance();

The requirements are, in essence,

- the class must be public
- the class must not be abstract
- the class must have a public constructor with no arguments (the
  so-called default constructor), or no constructors at all (which
  creates a default constructor automatically)

You can easily verify that this is the case by adding the above line
of code to a main method. If it doesn't work, then the problem is not
with Apache XML-RPC.


Jochen

-- 
Whenever you find yourself on the side of the
majority, it is time to pause and reflect.
(Mark Twain)

---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-user-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-user-help@ws.apache.org


Mime
View raw message