Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] PrintWriter sets with error flag on redirection

Hi,
We use dwr reverse ajax as server push. We observe that some of the pushed
messages are sent more than once (sometimes infinitely). This is happening
because of PrintWriter object set with error flag and all flushing succeeds
without any error. We are sending a sample web application to reproduce the
issue.
Our observations:
   -> When redirecting from one jsp page to another the PrintWriter error
flag is getting set. Note that this is happening only when the tag elements
in the page are beyond certain number. (Probably related to the page load
being not very light.)
   -> There is a browser dependency observed for this problem. This behavior
is seen in Chrome and Firefox but not in Opera; In IE and Safari the
behavior is inconsistent. (Current versions used for all browsers).

To run the test, visit the testapp home page and click on Test Behavior.
Link to war file:  http://jetty.4.n6.nabble.com/file/n4958627/testapp.war
testapp.war 

We are using jetty-7.6.3.v20120416 and dwr-3.0.0-RC3-dev-425. 
Server Platform is Linux Fedora 14, Kernel Version:  2.6.35.6-45.fc14.i686 

Refer dwr link about the issue: 
http://dwr.2114559.n2.nabble.com/DWR-Response-is-received-more-than-once-sometimes-infinitely-td7579723.html
http://dwr.2114559.n2.nabble.com/DWR-Response-is-received-more-than-once-sometimes-infinitely-td7579723.html 

--
View this message in context: http://jetty.4.n6.nabble.com/PrintWriter-sets-with-error-flag-on-redirection-tp4958627.html
Sent from the Jetty User mailing list archive at Nabble.com.


Back to the top