Hi everyone
I just started to use geotools.
What I've done so far is to connect to a Oracle spatial database. The
connection is successfull.
When I'm trying to get a FeatureSource object with the following code:
FeatureSource featureSource = dataStore.getFeatureSource( "MyTypeName");
It returns the following stack trace:
Exception in thread "main" java.lang.NoSuchMethodError:
org.geotools.factory.CommonFactoryFinder.getAttributeTypeFactory(Lorg/geotools/factory/Hints;)Lorg/geotools/feature/AttributeTypeFactory;
at
org.geotools.feature.AttributeTypeFactory.defaultInstance(AttributeTypeFactory.java:46)
at
org.geotools.feature.AttributeTypeFactory.newAttributeType(AttributeTypeFactory.java:126)
at
org.geotools.data.jdbc.JDBC1DataStore.buildAttributeType(JDBC1DataStore.java:1290)
at
org.geotools.data.oracle.OracleDataStore.buildAttributeType(OracleDataStore.java:191)
at
org.geotools.data.jdbc.JDBC1DataStore.buildSchema(JDBC1DataStore.java:1183)
at
org.geotools.data.jdbc.FeatureTypeHandler.getFeatureTypeInfo(FeatureTypeHandler.java:197)
at
org.geotools.data.jdbc.FeatureTypeHandler.getSchema(FeatureTypeHandler.java:165)
at
org.geotools.data.jdbc.JDBC1DataStore.getSchema(JDBC1DataStore.java:320)
at
org.geotools.data.oracle.OracleDataStore.getFeatureSource(OracleDataStore.java:440)
at
org.geotools.demo.gui.MySpatialMap.createConnection(MySpatialMap.java:313)
//This line translates to: FeatureSource featureSource =
dataStore.getFeatureSource( "MyTypeName");
at org.geotools.demo.gui.MySpatialMap.showMap(MySpatialMap.java:233)
at org.geotools.demo.gui.MySpatialMap.main(MySpatialMap.java:109)
The type name does exist since it is returned with a
dataStore.getTypeNames() call.
I'm running Java1.6, geotools 2.5 on windows XP
I did read a 2006 post regarding 1.6 compilation problems for
geoserver...Don't know my java platform might be the problem.
Can anyone confirm this or had a similar problem/sollution?
Thank you
Alwyn
--
View this message in context:
http://n2.nabble.com/creating-featuresource-from-oracle-spatial-tp2422971p2422971.html
Sent from the geotools-devel mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel