Hi David, David Adler wrote: > I'm having problems getting the existing junit tests to run. I suspect > there may be a problem with the version of 'geoapi-nogenerics' that is > built against vs runtime. > > The following is part of the Java stack trace: > > java.lang.NoSuchMethodError: > org.opengis.feature.simple.SimpleFeatureType.getAttribute(I)Lorg/opengis/feature/type/AttributeDescriptor; > at > org.geotools.feature.simple.SimpleFeatureBuilder.add(SimpleFeatureBuilder.java:127) > at > org.geotools.feature.simple.SimpleFeatureBuilder.add(SimpleFeatureBuilder.java:152) > at > org.geotools.feature.DefaultFeatureType.create(DefaultFeatureType.java:210) > at > org.geotools.data.jdbc.JDBCFeatureReader.readFeature(JDBCFeatureReader.java:125) > at > org.geotools.data.jdbc.JDBCFeatureReader.next(JDBCFeatureReader.java:88) > at > org.geotools.data.jdbc.JDBCFeatureWriter.next(JDBCFeatureWriter.java:82) > at > org.geotools.data.InProcessLockingManager$1.next(InProcessLockingManager.java:311) > at > org.geotools.data.db2.DB2FeatureWriterTest.testRemove(DB2FeatureWriterTest.java:63) Yeah... seems like you might have an old geoapi jar on teh classpath. Are you running in eclipse? I would do a mvn eclipse:eclispe again... you might just want to remove any geoapi jars from your maven repository as well to make sure you get the latest one.
> > Also, FeatureCollection and Feature are being flagged as 'deprecated'. > Is org.geotools.feature.Feature no longer the right one to use? Yup. in 2.5 the old feature model will be deprecated... and code will be encouraged to use the geoapi interfaces. I am still working on the migration docs... so until they are there i would not worry too much about it and just continue to use old feature classes for now. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Geotools-devel mailing list > Geotools-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-devel > > !DSPAM:4007,46a8d28846453668746562! > -- Justin Deoliveira The Open Planning Project http://topp.openplans.org ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel