Hi
I’m suddenly getting an intermittent WFS error from Geoserver. WFS requests will work fine for a while and then seemingly without reason start returning a NullPointerException. If I log in to Geoserver and make a GetFeature request from the demo console that request works and that seems to fix the problem and all WFS will work until it breaks again. The demo request always fixes the problem.
I am using Geoserver 2.5.2 deployed through Tomcat. I have tried deploying a separate instance of Geoserver (2.4.7) and if I point it at the same data dir it has the same error but using a separate data dir the WFS request will work.
So I’m guessing it’s an issue with the data but I can’t imagine what. It affects any WFS requests and it doesn’t seem to be a request to a particular layer that triggers the problem.
Any ideas on what might be happening would be greatly appreciated. Below is a sample request and the exception that is returned.
Thanks
Tom
Sample request:
<wfs:GetFeature xmlns:wfs=“http://www.opengis.net/wfs” service=“WFS” version=“1.0.0” xsi:schemaLocation=“http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
<wfs:Query typeName=“feature:web_walks2” xmlns:feature=“http://www.npt.gov.uk”></wfs:Query>
</wfs:GetFeature>
Error response:
java.lang.NullPointerException null