[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlrpc-user
Subject:    Re: Failed to instantiate class MyHanlder
From:       "Jochen Wiedmann" <jochen.wiedmann () gmail ! com>
Date:       2006-06-21 7:39:13
Message-ID: e75283b10606210039h2fdfb54dxe05d689c2a95c6d8 () mail ! gmail ! com
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic