[Geoserver-devel] [jira] Created: (GEOS-1873) Problem adding new features using WFS-T

Problem adding new features using WFS-T
---------------------------------------

                 Key: GEOS-1873
                 URL: http://jira.codehaus.org/browse/GEOS-1873
             Project: GeoServer
          Issue Type: Bug
          Components: WFS
    Affects Versions: 1.6.3
            Reporter: Jesse Eichar
            Assignee: Andrea Aime
            Priority: Critical

To reproduce:

1. Install and run basic Geoserver 1.6.3
2. Run uDig 1.1-RC14
3. Create layer with the "Streams" layer
4. Create a new feature
5. Press commit

The commit will apear to work but press the refresh map button and the new feature will disappear.

I have tested both shapefiles and postgis layers and editing an existing feature works but creating new features fails.

I have found the xml request it is as follows:

<Transaction xmlns:sf="http://www.openplans.org/spearfish&quot;
    xmlns="http://www.opengis.net/wfs&quot;
    xmlns:gml="http://www.opengis.net/gml&quot;
    xmlns:ogc="http://www.opengis.net/ogc&quot;
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
    xsi:schemaLocation="http://www.openplans.org/spearfish http://localhost:8080/geoserver/wfs?request=DescribeFeatureType&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;TYPENAME=sf:streams&quot;
    version="1.0.0" service="WFS" lockAction="ALL">
    <Insert>
        <sf:streams fid="newsf:streams.9223372036854775807">
            <sf:the_geom>
                <gml:MultiLineString srsName="EPSG:26713">
                    <gml:lineStringMember>
                        <gml:LineString>
                            <gml:coordinates decimal="." cs=","
                                ts=" ">
                                608364.9454970448,4923977.149388677
                                607848.5573049984,4923262.150353537
                                609119.6667008048,4922586.873487014
                                611026.3307945146,4923540.20553387
                            </gml:coordinates>
                        </gml:LineString>
                    </gml:lineStringMember>
                </gml:MultiLineString>
            </sf:the_geom>
            <sf:cat></sf:cat>
        </sf:streams>
    </Insert>
</Transaction>

15 Apr 07:59:55 TRACE [org.geotools.xml] - startElement(http://www.opengis.net/wfs,Insert,Insert
15 Apr 07:59:55 TRACE [org.geotools.xml] - startElement(http://www.openplans.org/spearfish,streams,sf:streams
15 Apr 07:59:55 TRACE [org.geotools.xml] - startElement(http://www.openplans.org/spearfish,the_geom,sf:the_geom
15 Apr 07:59:55 TRACE [org.geotools.xml] - startElement(http://www.opengis.net/gml,MultiLineString,gml:MultiLineString
15 Apr 07:59:55 TRACE [org.geotools.xml] - startElement(http://www.opengis.net/gml,lineStringMember,gml:lineStringMember
15 Apr 07:59:55 TRACE [org.geotools.xml] - startElement(http://www.opengis.net/gml,LineString,gml:LineString
15 Apr 07:59:55 TRACE [org.geotools.xml] - startElement(http://www.opengis.net/gml,coordinates,gml:coordinates
15 Apr 07:59:55 TRACE [org.geotools.xml] - startElement(http://www.openplans.org/spearfish,cat,sf:cat
15 Apr 07:59:55 WARN [org.geoserver.ows] -
java.lang.RuntimeException: Parsing failed for cat: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:142)
  at org.geotools.xml.impl.BindingWalker$BindingExecutionChain.execute(BindingWalker.java:197)
  at org.geotools.xml.impl.BindingWalker.walk(BindingWalker.java:163)
  at org.geotools.xml.impl.ElementHandlerImpl.endElement(ElementHandlerImpl.java:222)
  at org.geotools.xml.impl.ParserHandler.endElement(ParserHandler.java:499)
  at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
  at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
  at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
  at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
  at org.geotools.xml.Parser.parse(Parser.java:185)
  at org.geotools.xml.Parser.parse(Parser.java:164)
  at org.geoserver.wfs.xml.v1_0_0.WfsXmlReader.read(WfsXmlReader.java:60)
  at org.geoserver.ows.Dispatcher.parseRequestXML(Dispatcher.java:1072)
  at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:389)
  at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:185)
  at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139)
  at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
  at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684)
  at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
  at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
  at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:357)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:459)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1054)
  at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045)
  at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:69)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045)
  at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
  at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
  at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:178)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
  at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045)
  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:358)
  at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231)
  at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:629)
  at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:453)
  at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)
  at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
  at org.mortbay.jetty.Server.handle(Server.java:303)
  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:452)
  at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:735)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:636)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349)
  at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:320)
  at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  at java.lang.String.charAt(String.java:558)
  at org.geotools.xs.bindings.XSLongBinding.parse(XSLongBinding.java:90)
  at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:128)
  ... 64 more

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira