{"id":661,"date":"2016-03-10T14:28:44","date_gmt":"2016-03-10T13:28:44","guid":{"rendered":"http:\/\/hannes.enjoys.it\/blog\/?p=661"},"modified":"2016-03-10T16:55:10","modified_gmt":"2016-03-10T15:55:10","slug":"wfs-t-on-geoserver","status":"publish","type":"post","link":"https:\/\/hannes.enjoys.it\/blog\/2016\/03\/wfs-t-on-geoserver\/","title":{"rendered":"WFS-T on Geoserver"},"content":{"rendered":"<p>If you encounter an error like<br \/>\n<code>ERROR 1: Error returned by server : <ows:ExceptionReport xmlns:xs=\"http:\/\/www.w3.org\/2001\/XMLSchema\" xmlns:ows=\"http:\/\/www.opengis.net\/ows\/1.1\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" version=\"2.0.0\" xsi:schemaLocation=\"http:\/\/www.opengis.net\/ows\/1.1 http:\/\/5.9.123.72:8080\/geoserver\/schemas\/ows\/1.1.0\/owsAll.xsd\"><br \/>\n  <ows:Exception exceptionCode=\"NoApplicableCode\"><br \/>\n    <ows:ExceptionText>java.lang.IllegalArgumentException: argument type mismatch<br \/>\nargument type mismatch<\/ows:ExceptionText><br \/>\n  <\/ows:Exception><br \/>\n<\/ows:ExceptionReport><\/code><\/p>\n<p>you probably have a mismatch between WFS versions. Try changing your WFS url to a specific version. Using http:\/\/www.example.com\/geoserver\/sf\/ows?strict=true&#038;version=1.0.0 worked for me after I spent hours with that stupid error&#8230;<\/p>\n<p>If you add features to your store but nothing new appears on the map, check if the features actually end up with geometries on your server&#8230; Eg if you try to add LineStrings to a MultiLineString layer via Geoserver WFS-T you will get objects without geometries. This happens silently, at least when using the osgeo ogr module in Python.<\/p>\n<p>If every request takes 10 seconds your server might time out trying to parse your schema. Check your geoserver logs for things like<br \/>\n<code>2016-03-10 15:48:00,486 WARN [geotools.xml] - Error parsing: http:\/\/123.123.123.123.:8080\/geoserver\/ows?strict=true&VERSION=1.0.0&SERVICE=WFS&REQUEST=DescribeFeatureType&TYPENAME=my:layer<\/code><\/p>\n<p>If you know how to find out how to debug this please tell me:<br \/>\n<code>2016-03-10 15:48:00,501 ERROR [geoserver.wfs] - Transaction failed<br \/>\norg.geoserver.wfs.WFSTransactionException: Error performing insert: null<br \/>\n    at org.geoserver.wfs.InsertElementHandler.execute(InsertElementHandler.java:215)<br \/>\n    at org.geoserver.wfs.Transaction.execute(Transaction.java:322)<br \/>\n(... a million more steps truncated...)<br \/>\n<\/code> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you encounter an error like ERROR 1: Error returned by server : java.lang.IllegalArgumentException: argument type mismatch argument type mismatch you probably have a mismatch between WFS versions. Try changing your WFS url to a specific version. Using http:\/\/www.example.com\/geoserver\/sf\/ows?strict=true&#038;version=1.0.0 worked for me after I spent hours with that stupid error&#8230; If you add features to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-661","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/comments?post=661"}],"version-history":[{"count":4,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/661\/revisions"}],"predecessor-version":[{"id":663,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/661\/revisions\/663"}],"wp:attachment":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/media?parent=661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/categories?post=661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/tags?post=661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}