The filter is part of a WAB. It is registered with the @WebFilter annotation.
I found the the reason for the problem. It was an invalid configuration of the Apache Httpd server that is a reverse proxy in front of Karaf.
In Karaf runs a Vaddin application. It uses websockets. The Apache Httpd service had the following proxy configuration:
<Location /appl>
RewriteEngine on
ProxyPass "https://appl4/"
ProxyPassReverse "https://appl4/"
RewriteCond %{HTTP:UPGRADE} ^websocket$ [NC]
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
RewriteRule /ui/PUSH?(.*) "ws://appl4/ui/push$1" [P]
</Location>
The websocket communiation used the ws (and not wss) protocol on the Karaf https port.
The Vaadin javascript produced in 10 seconds thousands of http requests. Each request produced the above error.
Thank you
Richard