After a long time searching and trying I’m asking now for help:
My situation:
- I’ve a jquery/openlayers-app which allows the user to create simple
geoemtries with attributes over WFS-T… - I’m running on debian6 with tomcat6(:80-iptables) and geoserver
2.1.3(jetty:8181). All cross domain issues between tomcat and geoserver are solved with a simple jsp-proxy - The users can view all my wfs-layers without any problem and are able
do create simple geometries
My problem:
- Users creating more complex geometries are not able to save it over
wfs-t. More complex means that the resulting XML-POST content length
exceeds approx. 2100 characters. POST’s with e.g. 2000 characters are
inserted successfully. - I’ve digged into the tomcat-server settings and disabled all limits
(maxHTTPHeaderSize,maxSavePostSize,…) and also elevated the
maxpostsize in the geoserver-jetty webserver –> NO EFFECT - Following the response error message when a user creates more complex
geometries:
org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x0) was found in the element content of the document. An invalid XML character (Unicode: 0x0) was found in the element content of the document.
- I’ve no idea why my XML POST request is causing an Unicode-error everytime i add one more vertex to a geometry which i successfully inserted before.
- my request and response code:
successful POST request headers
not successful POST request headers
I’m very happy for any hint how to solve my problem!
Thanks in advance,
Cheers Hubert
Better late than never 🙂
Code below works for large geometries (at least for me)
Oh YEAH this is code for simple jsp proxy