|
From: Patrick Y. <kc...@ce...> - 2005-08-31 03:56:11
|
We used reflection API to load the delivery handler. And InstantiationException is thrown only when Class.newInstance() is called. According to JavaDoc of J2SE: |InstantiationException <http://java.sun.com/j2se/1.4.2/docs/api/java/lang/InstantiationException.html>| - if this |Class| represents an abstract class, an interface, an array class, a primitive type, or void; or if the class has no nullary constructor; or if the instantiation fails for some other reason. So is your custom delivery handler having a default constructor (i.e. a constructor with no argument)? ..p Regards, Patrick Yee Center for E-Commerce Infrastructure Development Making E-Commerce Everyday Commerce Wahid Muhammad wrote: > David, > > > > Thanks for your quick reply... this issue is really getting on my > nerves!!! > > > > Anyway... I have checked the location of the Jar and it is in the > correct place... I have tested this by renaming my handler in the > properties file and a "Class Not Found" error occurred. So I know the > handler is being picked off, I just cant understand why it wont > initialize. > > > > Thanks > > > > Wahid > > > > ------------------------------------------------------------------------ > > *From:* da...@dr... [mailto:da...@dr...] > *Sent:* 30 August 2005 13:18 > *To:* ebx...@li... > *Cc:* 'ebx...@li...' > *Subject:* RE: [ebxmlms-general] Cannot load Delivery Handler > > > > Wahid, > > > > Is the JAR file for your delivery handler in the right place? > > > > See the examples for handlers: > > http://ebs.mardep.gov.hk/xmldg/doc/XMLDG-TIR.pdf > > > > DW > > > -------- Original Message -------- > Subject: [ebxmlms-general] Cannot load Delivery Handler > From: Wahid Muhammad <wa...@ph...> > Date: Tue, August 30, 2005 6:19 am > To: "'ebx...@li...'" > <ebx...@li...> > > I have tried to change the deliveryHandler in the MSH Properties > file but I > get the following message in the logs: > > Initialization error - Cannot load application delivery handler > Exception: java.lang.InstantiationException > Message: hk.hku.cecid.phoenix.message.handler.DeliveryHandler > > > Can anyone help with this? > > Thanks > > Wahid > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > ebxmlms-general mailing list > ebx...@li... > https://lists.sourceforge.net/lists/listinfo/ebxmlms-general > > ------------------------------------------------------- SF.Net email > is Sponsored by the Better Software Conference & EXPO September 19-22, > 2005 * San Francisco, CA * Development Lifecycle Practices Agile & > Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ ebxmlms-general > mailing list ebx...@li... > https://lists.sourceforge.net/lists/listinfo/ebxmlms-general > |