I am having trouble getting the schema from a FeatureStore on my GeoServer, i
have the following code -

String getCapabilities =
"...service=WFS&request=GetCapabilities&VERSION=1.0.0";
Map params = new HashMap();
params.put("WFSDataStoreFactory.GET_CAPABILITIES_URL", getCapabilities);

DataStore ds = DataStoreFinder.getDataStore(params);
Transaction update = new DefaultTransaction("update");

FeatureSource features = ds.getFeatureSource(ds.getTypeNames()[38]);
//matches to valid type
FeatureStore store = (FeatureStore)features;

FeatureType type = store.getSchema();

When the last line of code runs it hangs and i get a load of
IllegalStateException's through, saying "Already Connected" and i am not
sure why?

Hopefully somebody might be able to point me in the right direction.

Regards
-- 
View this message in context: 
http://n2.nabble.com/IllegalStateException-getting-schema-tp3946860p3946860.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to