Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty 9.0.4 issue (also in 9.0.5-SNAPSHOT) with Spring MVC Async (test provided)

Hi,

Following the advice from Rossen from Spring, I've applied a Filter and overrid the getOutputStream to throw an exception. When I ran the project, no exception was thrown but the error was still produced. I've updated the JIRA ticket in Spring and also the bugzilla report with the latest findings.

-=david=-


On 29 July 2013 18:19, David Harrigan <dharrigan@xxxxxxxxx> wrote:
Notice that in the instances that Spring MVC can't find the view, the leading "/" is stripped.

I've updated bugzilla and jira


-=david=-


On 29 July 2013 18:13, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:
Sure.


It means that an attempt at Response.getWriter() was prevented, because something had previously used Response.getOutputStream().
Per servlet spec, you can use a OutputStream or a Writer, but not both in the same exchange.


--
Joakim Erdfelt <joakim@xxxxxxxxxxx>
Developer advice, services and support
from the Jetty & CometD experts


On Mon, Jul 29, 2013 at 10:01 AM, Rossen Stoyanchev <rstoyanchev@xxxxxxxxxxxxx> wrote:
Hi Joakim, yes, that's the JIRA ticket. There is an actual stack trace there now. Could you share something on the meaning of the "java.lang.IllegalStateException: STREAM" in Response.getWriter line 715? That could lead to some further guesses on what might be going on.

Rossen


On Mon, Jul 29, 2013 at 11:03 AM, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:

--
Joakim Erdfelt <joakim@xxxxxxxxxxx>
Developer advice, services and support
from the Jetty & CometD experts


On Mon, Jul 29, 2013 at 8:01 AM, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:
Mind sharing the specific JIRA url that you two are talking about?

--
Joakim Erdfelt <joakim@xxxxxxxxxxx>
Developer advice, services and support
from the Jetty & CometD experts


On Mon, Jul 29, 2013 at 7:44 AM, David Harrigan <dharrigan@xxxxxxxxx> wrote:
Hi Rossen,

The Spring JIRA has been updated with some more information. Hopefully this will help :-)

-=david=-


On 29 July 2013 14:48, Rossen Stoyanchev <rstoyanchev@xxxxxxxxxxxxx> wrote:
Since this is only reproducible under load, I wouldn't conclude just yet this is a Jetty 9 vs Jetty 8 issue. I've added some suggestions under the Spring JIRA ticket on debugging this further and helping to narrow down the issue.

Rossen


On Sat, Jul 27, 2013 at 6:35 PM, David Harrigan <dharrigan@xxxxxxxxx> wrote:
Hi,

I've come across a problem with Jetty 9 that does not happen on Jetty 8.1.11. It appears that after a while (reproduced by using Siege), Spring MVC (with an Async Callable Controller) fails to find a View. 

The View can be loaded via a web browser, so it's not that it doesn't exist - it just appears that under a bit of stress, Spring with Jetty can't find it.

As always, it's difficult to determine if this a problem with Spring or a problem with Jetty 9. My only evidence so far is that under Jetty 8.1.11 I am unable to reproduce the problem.

I've uploaded my test project here:


Please feel free to clone and try out and see if I'm not going crazy :-)

Thank you.

-=david=-

--
I prefer encrypted and signed messages. KeyID: B20A22F9
Fingerprint: 110A F423 3647 54E2 880F ADAD 1C52 85BF B20A 22F9

"It is not usually until you've built and used a version of the program that you understand the issues well enough to get the design right." - Rob Pike, Brian Kernighan.

No trees were harmed in the sending of this message, however, a number of electrons were inconvenienced.

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users




--
I prefer encrypted and signed messages. KeyID: B20A22F9
Fingerprint: 110A F423 3647 54E2 880F ADAD 1C52 85BF B20A 22F9

"It is not usually until you've built and used a version of the program that you understand the issues well enough to get the design right." - Rob Pike, Brian Kernighan.

No trees were harmed in the sending of this message, however, a number of electrons were inconvenienced.

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users




_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users




--
I prefer encrypted and signed messages. KeyID: B20A22F9
Fingerprint: 110A F423 3647 54E2 880F ADAD 1C52 85BF B20A 22F9

"It is not usually until you've built and used a version of the program that you understand the issues well enough to get the design right." - Rob Pike, Brian Kernighan.

No trees were harmed in the sending of this message, however, a number of electrons were inconvenienced.



--
I prefer encrypted and signed messages. KeyID: B20A22F9
Fingerprint: 110A F423 3647 54E2 880F ADAD 1C52 85BF B20A 22F9

"It is not usually until you've built and used a version of the program that you understand the issues well enough to get the design right." - Rob Pike, Brian Kernighan.

No trees were harmed in the sending of this message, however, a number of electrons were inconvenienced.

Back to the top