<div dir="ltr"><div style>Here is someone encounter the same problem a long time ago, but it was not resolved.</div><a href="http://osgeo-org.1560.n6.nabble.com/Geometry-Collection-gml-parsing-failed-td3790014.html">http://osgeo-org.1560.n6.nabble.com/Geometry-Collection-gml-parsing-failed-td3790014.html</a><br>
<div><br></div><div><br></div><div style>After I enabled the log, I got this: <font color="#ff0000">2013-01-31 13:33:01,933 DEBUG [org.geotools.xml] - Could not find declaration for: {<a href="http://www.opengis.net/gml}GeometryCollection">http://www.opengis.net/gml}GeometryCollection</a>. Checking if containing type declares a single particle.</font></div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 31, 2013 at 1:19 PM, 杨华杰 <span dir="ltr"><<a href="mailto:yhjhoo@gmail.com" target="_blank">yhjhoo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">And how to "<span style="font-family:arial,sans-serif;font-size:13px">change the logging to GeoTools Developer logging", can you give me some guide. The log which I provide is getting from geoserver </span></div>
<div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 31, 2013 at 1:17 PM, 杨华杰 <span dir="ltr"><<a href="mailto:yhjhoo@gmail.com" target="_blank">yhjhoo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">I checked the xml passed to geoserver, there is no suspect at all.<div><br></div><div><br></div><div>Here is it:</div><div><br></div><font color="#ff0000"><a href="http://caas.sg" target="_blank">http://caas.sg</a> /geoserver/wfs/DescribeFeatureType&amp;version=1.1.0&amp;typename=CAAS:feature" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"><br>


<wfs:Insert><br><feature:feature xmlns:feature="<a href="http://caas.sg" target="_blank">http://caas.sg</a>"><br><feature:the_geom><br><gml:GeometryCollection xmlns:gml="<a href="http://www.opengis.net/gml" target="_blank">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"><div><div>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>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div>
    <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><font color="#888888"><br>
    <br>
    Matt Priour<br>
    <br>
  </font></span></div>


<br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">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>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>