ShapeFile datastore - attributes

Description

description transfer failed (HTTP 400). See export XML for details.

Environment

None

Activity

Show:
codehaus
April 10, 2015, 3:02 PM

CodeHaus Comment From: cholmes - Time: Tue, 10 Feb 2004 16:37:16 -0600
---------------------
Uh, could you upload the shapefile that is giving you these results? None of these examples necessarily seem to indicate an error with shapefile itself, as you've got another three layers going on to turn the output into gml. An example with a shapefile attached, and where it is going wrong would make this much easier to evaluate (and I highly doubt that the problem is actually with shapefile, as its one of the best tested modules of geotools).

codehaus
April 10, 2015, 3:02 PM

CodeHaus Comment From: cholmes - Time: Tue, 10 Feb 2004 16:38:37 -0600
---------------------
Also note that the examples can be attached as files, instead of pasting them in so other comments appear at the very bottom of the page, forcing people to scroll all the way down through a bunch of useless information.

codehaus
April 10, 2015, 3:02 PM

CodeHaus Comment From: dzwiers - Time: Tue, 10 Feb 2004 19:47:23 -0600
---------------------
Another related set of bugs.

java.lang.NullPointerException

at org.geotools.filter.CompareFilterImpl.contains(CompareFilterImpl.java:170)

at org.geotools.data.FilteringFeatureReader.hasNext(FilteringFeatureReader.java:119)

at org.geotools.data.DefaultFeatureResults.getCount(DefaultFeatureResults.java:208)

at org.vfny.geoserver.responses.wfs.FeatureResponse.execute(FeatureResponse.java:303)

at org.vfny.geoserver.responses.wfs.FeatureResponse.execute(FeatureResponse.java:191)

at org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java:312)

at org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java:223)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)

at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:113)

at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:211)

at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177)

at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)

at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:253)

at com.caucho.server.port.TcpConnection.run(TcpConnection.java:305)

at com.caucho.util.ThreadPool.run(ThreadPool.java:273)

at java.lang.Thread.run(Thread.java:534)

java.lang.NullPointerException

at org.geotools.filter.MathExpressionImpl.getValue(MathExpressionImpl.java:151)

at org.geotools.filter.CompareFilterImpl.contains(CompareFilterImpl.java:170)

at org.geotools.data.FilteringFeatureReader.hasNext(FilteringFeatureReader.java:119)

at org.geotools.data.DefaultFeatureResults.getCount(DefaultFeatureResults.java:208)

at org.vfny.geoserver.responses.wfs.FeatureResponse.execute(FeatureResponse.java:303)

at org.vfny.geoserver.responses.wfs.FeatureResponse.execute(FeatureResponse.java:191)

at org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java:312)

at org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java:223)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)

at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:113)

at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:211)

at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177)

at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)

at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:253)

at com.caucho.server.port.TcpConnection.run(TcpConnection.java:305)

at com.caucho.util.ThreadPool.run(ThreadPool.java:273)

at java.lang.Thread.run(Thread.java:534)

java.lang.NullPointerException

at org.geotools.filter.MathExpressionImpl.getValue(MathExpressionImpl.java:151)

at org.geotools.filter.CompareFilterImpl.contains(CompareFilterImpl.java:170)

at org.geotools.data.FilteringFeatureReader.hasNext(FilteringFeatureReader.java:119)

at org.geotools.data.DefaultFeatureResults.getCount(DefaultFeatureResults.java:208)

at org.vfny.geoserver.responses.wfs.FeatureResponse.execute(FeatureResponse.java:303)

at org.vfny.geoserver.responses.wfs.FeatureResponse.execute(FeatureResponse.java:191)

at org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java:312)

at org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java:223)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)

at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:113)

at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:211)

at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177)

at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)

at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:253)

at com.caucho.server.port.TcpConnection.run(TcpConnection.java:305)

at com.caucho.util.ThreadPool.run(ThreadPool.java:273)

at java.lang.Thread.run(Thread.java:534)

This works fine on the same data set (translates using pgsql2shp) in postGis.

I will attach this shape file too.

codehaus
April 10, 2015, 3:02 PM

CodeHaus Comment From: aaime - Time: Tue, 10 Feb 2004 23:22:22 -0600
---------------------
The attached files are of no use I guess. A shapefile is really

composed of at least three files, .shp, .shx, .dbf. You should

upload all of them.

codehaus
April 10, 2015, 3:02 PM

CodeHaus Comment From: ianschneider - Time: Fri, 13 Feb 2004 12:03:11 -0600
---------------------
Cannot reproduce reporters problems.

Assignee

Unassigned

Reporter

codehaus

Triage

None

Components

Priority

High
Configure