Sometimes same WFS request over a PostGIS DB layer with same BBOX filter fails (1 of 50 requests) due to NullPointerException in filter encoder. Below is am error log message with failed request and also an info log message with successful request. Both requests are the same for same BBOX.
Ubuntu 16.04 64bit. Geoserver is run as standalone application (not deployed to any AS).