<div dir="ltr">I checked the xml passed to geoserver, there is no suspect at all.<div><br></div><div><br></div><div style>Here is it:</div><div style><br></div><font color="#ff0000"><a href="http://caas.sg">http://caas.sg</a> /geoserver/wfs/DescribeFeatureType&version=1.1.0&typename=CAAS:feature" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"><br>
<wfs:Insert><br><feature:feature xmlns:feature="<a href="http://caas.sg">http://caas.sg</a>"><br><feature:the_geom><br><gml:GeometryCollection xmlns:gml="<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>" srsName="EPSG:4326"><br>
<gml:geometryMember><br><gml:Point srsName="EPSG:4326"><gml:pos>92 -12</gml:pos></gml:Point><br></gml:geometryMember><br><gml:geometryMember><br><gml:Point srsName="EPSG:4326"><br>
<gml:pos>70 -12</gml:pos><br></gml:Point><br></gml:geometryMember><br></gml:GeometryCollection><br></feature:the_geom><br><feature:mapid>2052525f-80da-4f6e-83c0-cc9b87bdf218</feature:mapid><br>
<feature:versionname>versionName</feature:versionname><br><feature:strokecolor>#EE9900</feature:strokecolor><br><feature:defaultstrokewidth>3</feature:defaultstrokewidth><br><feature:selectedstrokewidth>4</feature:selectedstrokewidth><br>
<feature:strokedashstyle>solid</feature:strokedashstyle><br><feature:fillcolor>#F8D699</feature:fillcolor><br><feature:geometrytype>arrow</feature:geometrytype><br></feature:feature><br>
</wfs:Insert><br></wfs:Transaction></font></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 31, 2013 at 1:13 PM, Matt Priour <span dir="ltr"><<a href="mailto:mpriour@kestrelcomputer.com" target="_blank">mpriour@kestrelcomputer.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="im">
<br>
<div>On 01/30/2013 10:16 PM, 杨华杰 wrote:<br>
</div>
<blockquote type="cite"><font color="#ff0000">org.geoserver.wfs.WFSException:
Error performing insert: java.lang.String cannot be cast to
com.vividsolutions.jts.geom.Geometry</font></blockquote>
<br></div>
That line is the key to determining what went wrong. You have a
string representation of a geometry that is unparsable by the WFS
server. The error message doesn't give any more details than that
unfortunately. However, since you are using Geoserver, if you have
admin access to the server, you can change the logging to GeoTools
Developer logging and get as much detail as possible. Just make sure
and NEVER EVER leave the server in that logging mode in a production
machine.<br>
<br>
Hope that helps<span class="HOEnZb"><font color="#888888"><br>
<br>
Matt Priour<br>
<br>
</font></span></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br></blockquote></div><br></div>