Quantcast

PrintWriter sets with error flag on redirection

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

PrintWriter sets with error flag on redirection

Srinivasa Yellapu
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: 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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: PrintWriter sets with error flag on redirection

Srinivasa Yellapu
Hi,
We are extremely distressed to find no response from you for a seemingly serious problem reported by us with a small sample application which consistently reproduces the problem. This problem is seriously hampering our work in a project that is in a very advanced stage of development. Also, we had spent considerable time to get the problem reproduced in a simple scenario.

We would like to give an additional feedback that this problem is observed only with jetty (7.6.3) and not with Tomcat server (Version 7).

We will appreciate an acknowledgement from you.

Thanks.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [jetty-users] PrintWriter sets with error flag on redirection

Jesse McConnell-5
Sorry this has caused as much of a problem as it apparently has...but
your initial message really doesn't give any indication that is a
jetty problem at all which is probably why it wasn't picked up by a
dev.

Now, your second one mentions this happening on jetty but not tomcat
which indicates there is either a container specific issue or a jsp
issue, and when jsp is involved its generally the culprit on this sort
of thing.  We have been using the jsp version that glassfish (or
someone over there at least) produces so its possible that this has
been identified and resolved by now.

this is a link to their bug tracker: http://java.net/jira/browse/JSP

looking through the maven repo at their artifacts it seems they might
have changes groupId's again as I see new jsp jars here:
http://central.maven.org/maven2/org/glassfish/web/javax.servlet.jsp/2.2.5/

assuming they are just updated versions of the ones we use you can
likely just drop those into the distribution or update your pom.xml if
your using them that way to see if that addresses your issue.

otherwise let us know, the jsp wiz has been away on vacation but is
due back next week I believe.

cheers,
jesse

--
Jesse McConnell <[hidden email]>
www.webtide.com – Developer advice, services and support from the
Jetty & CometD experts.


On Thu, Jun 28, 2012 at 2:55 AM, Srinivasa Yellapu
<[hidden email]> wrote:

> Hi,
> We are extremely distressed to find no response from you for a seemingly
> serious problem reported by us with a small sample application which
> consistently reproduces the problem. This problem is seriously hampering our
> work in a project that is in a very advanced stage of development. Also, we
> had spent considerable time to get the problem reproduced in a simple
> scenario.
>
> *We would like to give an additional feedback that this problem is observed
> only with jetty (7.6.3) and not with Tomcat server (Version 7).*
>
> We will appreciate an acknowledgement from you.
>
> Thanks.
>
>
>
> --
> View this message in context: http://jetty.4.n6.nabble.com/PrintWriter-sets-with-error-flag-on-redirection-tp4958627p4958704.html
> Sent from the Jetty User mailing list archive at Nabble.com.
> _______________________________________________
> jetty-users mailing list
> [hidden email]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
[hidden email]
https://dev.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [jetty-users] PrintWriter sets with error flag on redirection

Srinivasa Yellapu
Hi,

Thank you for your reply.

Our post was regarding a problem (strongly suspected to be in Jetty) which we could clearly reproduce in the test application we included in the first post. The text that we included in the Subject of the post was related to some observation we made deep inside the code while trying to trace the problem and that subject text could have been misleading. We apologize for not stating the problem clearly.

As suggested by you in your last reply, we tried using the latest jsp jars(2.2.5); it is not making any difference and the test application shows the same behavior as indicated below:

    Chrome and  Firefox browsers : Consistently incorrect result
    IE and Safari: Inconsistent; sometimes behaves correctly
    Opera: Consistently works correctly

We again checked the test application as well as our application with Tomcat 7 and both work consistently correctly with all the five browsers.

Our stakes in the project with Jetty is quite high and we will appreciate if you could find a fix or a work around till the time a fix is found.

Thanks.
Srinivasa.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [jetty-users] PrintWriter sets with error flag on redirection

Srinivasa Yellapu
Hi,
Thanks for making fix for the problem "PrintWriter sets with error flag on redirection".
The link to the jetty bug is here

Thanks for your support
Loading...