Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 93290 invoked from network); 11 Nov 2004 23:10:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Nov 2004 23:10:52 -0000 Received: (qmail 11280 invoked by uid 500); 11 Nov 2004 23:10:52 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 11240 invoked by uid 500); 11 Nov 2004 23:10:51 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 11227 invoked by uid 500); 11 Nov 2004 23:10:51 -0000 Received: (qmail 11223 invoked by uid 99); 11 Nov 2004 23:10:51 -0000 Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 11 Nov 2004 15:10:51 -0800 Received: (qmail 93266 invoked by uid 1510); 11 Nov 2004 23:10:50 -0000 Date: 11 Nov 2004 23:10:50 -0000 Message-ID: <20041111231050.93265.qmail@minotaur.apache.org> From: arminw@apache.org To: db-ojb-cvs@apache.org Subject: cvs commit: db-ojb/src/java/org/apache/ojb/broker/metadata RepositoryXmlHandler.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N arminw 2004/11/11 15:10:50 Modified: src/java/org/apache/ojb/broker/metadata RepositoryXmlHandler.java Log: add null-check for super-class attribute add error when parsing exception occur Revision Changes Path 1.65 +3 -4 db-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryXmlHandler.java Index: RepositoryXmlHandler.java =================================================================== RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryXmlHandler.java,v retrieving revision 1.64 retrieving revision 1.65 diff -u -r1.64 -r1.65 --- RepositoryXmlHandler.java 26 Oct 2004 15:27:40 -0000 1.64 +++ RepositoryXmlHandler.java 11 Nov 2004 23:10:50 -0000 1.65 @@ -250,10 +250,9 @@ } // set if extends - // set row-reader attribute String extendsAtt = atts.getValue(RepositoryTags.getTagById(EXTENDS)); if (isDebug) logger.debug(" " + RepositoryTags.getTagById(EXTENDS) + ": " + extendsAtt); - if (extendsAtt != null) + if (checkString(extendsAtt)) { m_CurrentCLD.setSuperClass(extendsAtt); } @@ -979,7 +978,7 @@ } catch (Exception ex) { - // logger.error(ex); + logger.error("Exception while read metadata", ex); if(ex instanceof MetadataException) throw (MetadataException)ex; else throw new MetadataException("Exception when reading metadata information,"+ " please check your repository.xml file", ex); --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org