users@jersey.java.net

[Jersey] ContainerResponseFilter filter function called twice when there is a 404 request

From: 鲍鱼 <452537773_at_qq.com>
Date: Fri, 25 Jul 2014 11:38:28 +0800

Hi,all


    Say my url is http://a.b.c?uid=123 , so if I visit http://a.b.c there will be a 404 error. But I found that ‍ContainerResponseFilter filter function is called twice , and between them function toResponse in ‍ExceptionMapper is called. Can someone explain it to me?‍‍


    Thanks very much.