geozet/geozet — Issue #2: pdok bekendmaking wfs has null namespace causing NPE
Author: mprins
Created: 2011-11-10 11:36:29+00:00
State: open

Some of the pdok wfs's have null namespaces for the default WFS 1.1.0, this is annoying because it makes some of the core parts fail with a null pointer eventhough our code is correct.
A workaround could be to use WFS v1.0.0, which does not exhibit this problem, ie is valid.

This workaround requires some re-coding in nl.geozet.wfs.WFSClientServlet#init bacause right now we just feed it pdok's (default) capabilties url which is 1.1.0.

_The other (proper) option would be to fix the problem at the source, either by updating geoserver at pdok (planned for december 8) or have geoserver return v1.0.0 as the default capabilities._

```java
2011-11-10 11:10:13.997:WARN::/geozetviewer/bekendmaking
java.lang.NullPointerException
at nl.geozet.wfs.WFSDetailsServlet.renderHTMLResults(WFSDetailsServlet.java:137)
at nl.geozet.wfs.WFSDetailsServlet.service(WFSDetailsServlet.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
```