Hi,
I’ve little problems using the GetFeatures’s service and I’m configure the Demo application using my shapefile. But when I use the follow XML:
<wfs:GetFeature service=“WFS” version=“1.0.0”
outputFormat=“GML2”
xmlns:topp=“http://www.openplans.org/topp”
xmlns:wfs=“http://www.opengis.net/wfs”
xmlns:ogc=“http://www.opengis.net/ogc”
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=“http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd”>
<wfs:Query typeName=“topp:sjc_roads”>
ogc:Filter
<ogc:FeatureId fid=“sjc_roads.1”/>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
I got the below error message:
…
problem with FeatureResults: org.geotools.data.DataSourceException: Could not peek ahead at org.geotools.data.FilteringFeatureReader.hasNext(FilteringFeatureReader.java:125) at org.geotools.data.MaxFeatureReader.hasNext(MaxFeatureReader.java:77) at org.geotools.data.DefaultFeatureResults.getCount(DefaultFeatureResults.java:208) at org.vfny.geoserver.responses.wfs.FeatureResponse.execute(FeatureResponse.java:285) at org.vfny.geoserver.responses.wfs.FeatureResponse.execute(FeatureResponse.java:142) at org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java:365) at org.vfny.geoserver.servlets.AbstractService.doPost(AbstractService.java:296) at org.vfny.geoserver.servlets.wfs.WfsDispatcher.doResponse(WfsDispatcher.java:220) at
…
Caused by: org.geotools.feature.IllegalAttributeException: expected com.vividsolutions.jts.geom.MultiLineString , but got com.vividsolutions.jts.geom.LineString at org.geotools.feature.DefaultFeature.setAttribute(DefaultFeature.java:203) at org.geotools.feature.DefaultFeature.setAttributes(DefaultFeature.java:232) at org.geotools.feature.DefaultFeature.(DefaultFeature.java:82) at org.geotools.feature.DefaultFeatureType.create(DefaultFeatureType.java:140) at org.geotools.data.FIDFeatureReader.readFeature(FIDFeatureReader.java:120) at org.geotools.data.FIDFeatureReader.next(FIDFeatureReader.java:89) at org.geotools.data.FilteringFeatureReader.hasNext(FilteringFeatureReader.java:117) … 47 more Caused by: java.lang.IllegalArgumentException: com.vividsolutions.jts.geom.LineString is not an acceptable class for the_geom as it is not assignable from class com.vividsolutions.jts.geom.MultiLineString at org.geotools.feature.DefaultAttributeType.validate(DefaultAttributeType.java:344) at org.geotools.feature.DefaultFeature.setAttribute(DefaultFeature.java:200)
What’s going on?
Victor Amano Izawa
FVE - IP&D
Phone.:(12)3947-1155