Re: [deegree-devel] a bug in org.deegree_impl.services.wfs.configuration.ConfigurationFactory
OSGeo project deegree
Brought to you by:
deegreesfadmin,
tfr
From: Andreas P. <po...@la...> - 2004-02-23 09:29:55
|
tom deegree schrieb: > > hi > It is not a bug in strictly. it makes the deegree users too > difficulty to find the configuration error (such as the Mastable > name spelling error) for database store. It's the better to check the > return value after getting ColumnTypes information from Database Server. > if it return null, deegree should tell the users clearly that the table > name spelling error or something others error not throw only > NULLPointerException. I almost spent half an hours to find the > configuration error(table name spelling error). > > > private static FeatureType[] createFeatureTypes( NodeList nl, > Connection con, int type ) > throws Exception { > > > HashMap columnTypes = dbAccess.getColumnTypesAsInt( > table.getName(), > null ); > //calvin added on 2004/2/20,to report clear error > message > if (columnTypes==null) > throw new Exception("fail to get table > metadata(featureType) or invalid table name:"+table.getName()); > //2004/2/20 end > > Iterator it = columnTypes.keySet().iterator(); > > } > Hi Calvin, thanx for your suggestion. The code is changed like that. best regards ANDREAS -- Dr. Andreas Poth l a t / l o n Fitzke/Fretter/Poth GbR Meckenheimer Allee 176 53115 Bonn phone ++49 +228 73-2838 fax -2153 e-mail mailto:po...@la... www http://www.lat-lon.de |