Return-Path: Delivered-To: apmail-jakarta-hivemind-user-archive@www.apache.org Received: (qmail 17290 invoked from network); 2 May 2005 14:10:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 May 2005 14:10:13 -0000 Received: (qmail 46452 invoked by uid 500); 2 May 2005 14:11:39 -0000 Delivered-To: apmail-jakarta-hivemind-user-archive@jakarta.apache.org Received: (qmail 46247 invoked by uid 500); 2 May 2005 14:11:37 -0000 Mailing-List: contact hivemind-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: hivemind-user@jakarta.apache.org Delivered-To: mailing list hivemind-user@jakarta.apache.org Received: (qmail 46232 invoked by uid 99); 2 May 2005 14:11:37 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of johan@kawoo.co.uk designates 217.71.122.144 as permitted sender) Received: from ts2-144.twistspace.com (HELO ts2-144.twistspace.com) (217.71.122.144) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 02 May 2005 07:11:37 -0700 Received: from localhost.localdomain (localhost [127.0.0.1]) by ts2-144.twistspace.com (8.13.4/8.13.4/Debian-1) with ESMTP id j42EA819027817 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 2 May 2005 16:10:09 +0200 To: hivemind-user@jakarta.apache.org Subject: Re: Descriptor validation References: <000801c54dc7$329f52a0$6601a8c0@carmani600m> <1115032570.29740.223.camel@igorl> <1115039607.29739.227.camel@igorl> Message-ID: Date: Mon, 02 May 2005 16:10:42 +0200 From: "Johan Lindquist" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In-Reply-To: <1115039607.29739.227.camel@igorl> User-Agent: Opera M2/8.0 (Linux, build 1095) X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N You can use the "StrictErrorHandler" when creating your servvice (as a property of the builder factory parameters in the hivemodule for your service). This willt thrown an exception instead of simply logging the error. Cheers, johan On Mon, 02 May 2005 15:13:26 +0200, Igor Laberov wrote: > Is it possible make validation programatically, like calling validate() > function and/or throw an (optional) exception on processModule() / > getService()? > Should I open JIRA on this request? > > On Mon, 2005-05-02 at 15:08, Johan Lindquist wrote: >> Igor, hivemind should already be reporting errors like the ones you are >> describing - down to the line in the XML that contains the bad element >> ... >> >> Look in your logs for something like this: >> >> org.apache.hivemind.ApplicationRuntimeException: Class test.XYZ does not >> contain a property named 'foo'. >> >> If not, it is probably a bug and if you wouldn't mind raising an issue >> in >> the jira about so someone will have a look . >> >> Johan >> >> On Mon, 02 May 2005 13:16:10 +0200, Igor Laberov >> wrote: >> >> > Hi all, >> > Is it possible to perform validation of defined descriptor? >> > Here some problematic flows: >> > 1) At registry construct time: References to another modules are wrong >> > 2) At service construction time: Service implementation class doesn't >> > have setter method according to declared property in , for >> > example. >> > >> > Thank you, >> > Igor Laberov >> > Qlusters, Inc. >> > >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org >> > For additional commands, e-mail: hivemind-user-help@jakarta.apache.org >> > >> > >> >> >> >> -- >> you too? >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: hivemind-user-help@jakarta.apache.org > > -- you too? --------------------------------------------------------------------- To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: hivemind-user-help@jakarta.apache.org