java - PrintWriter getting set with error flag on redirection -
i developing web application uses dwr push mechanism. observed printwriter
class in httpservletresponse
getting set error. logic: dwr's custom flush method:
printwriter out = reponse.getwriter(); public boolean flush() { out.flush(); if (out.checkerror()) { /* error occurred while sending response, resend response in next push */ return false; } /* response sent */ return true; }
the strange thing though printwriter error sends response client side, since in above code out.checkerror() return true, response resent client.
on further observation found following statement getting logged everytime when kind of misbehavior there: warn:oejh.httpgenerator:ignoring content
this dependent on browser type , happening in chrome, firefox , not in opera, ie.
- is (httpgenerator: ignoring content) going update printwriter ?
- when printwriter sets error flag ?
- how browsers response kind of response (httpgenerator: ignoring content) ?
server: jetty-7.6.3 dwr: dwr-3.0.0-rc3-dev-425
Comments
Post a Comment