DataStore or configuration problems

Description

java.lang.NullPointerException
at org.geotools.filter.FilterCapabilities.fullySupports(FilterCapabilities.java:86)
at org.geotools.filter.FilterCapabilities.fullySupports(FilterCapabilities.java:96)
at org.geotools.filter.SQLUnpacker.doUnPack(SQLUnpacker.java:180)
at org.geotools.filter.SQLUnpacker.unPackAND(SQLUnpacker.java:91)
at org.geotools.data.jdbc.DefaultSQLBuilder.getPostQueryFilter(DefaultSQLBuilder.java:73)
at org.geotools.data.jdbc.JDBCFeatureSource.count(JDBCFeatureSource.java:370)
at org.geotools.data.jdbc.JDBCFeatureSource$1.getCount(JDBCFeatureSource.java:218)
at org.vfny.geoserver.responses.wfs.FeatureResponse.execute(FeatureResponse.java:261)
at org.vfny.geoserver.responses.wfs.FeatureResponse.execute(FeatureResponse.java:166)
at org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java:307)
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)

Environment

None

Activity

Show:
codehaus
April 10, 2015, 4:04 PM

CodeHaus Comment From: cholmes - Time: Sat, 17 Jan 2004 15:15:50 -0600
---------------------
<p>What is the request to get this error? I've had one successful return of GetFeatures, but of all my errors this one never came up. I'm digging through the unpacker code right now to make it handle nulls better, but it's weird that it was never a problem before.</p>

codehaus
April 10, 2015, 4:04 PM

CodeHaus Comment From: cholmes - Time: Sat, 17 Jan 2004 21:22:04 -0600
---------------------
<p>Ok, I think I got this little guy. What a nasty little one. It turned out to be in the GeoServerFeatureSource, the definition query was null, and then was getting ANDed in with the request, allowing it to slip past the DefaultSQLEncoder's watchful null eyes, causing all sorts of havoc. So I put a more intelligent error message in the geotools unpacker, and then turned the definition filter default to Filter.NONE. We need to make sure to always use those - if you see anything in geoserver or geotools that lets the nulls slide you should probably replace it with an error message telling the caller to use Filter.NONE instead of null. David, could you check this and close it when you test it on your machine?</p>

codehaus
April 10, 2015, 4:04 PM

CodeHaus Comment From: dzwiers - Time: Mon, 19 Jan 2004 13:13:42 -0600
---------------------
<p>Worked for me too <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/smile.gif" height="16" width="16" align="absmiddle" alt="" border="0"/></p>

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

Affects versions

Priority

Medium
Configure