You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tiles.apache.org by "De Bakker, Bjorn" <Bj...@ordina.be> on 2009/01/08 11:11:57 UTC
Connection reset by peer (Tiles and Spring MVC)
Hi all
We're using Tiles 2 with Spring MVC 2.5 and Weblogic 9. The problem is that when we click on a link when the page is still loading, we always get the following stacktrace:
[DEBUG] - [org.springframework.web.servlet.DispatcherServlet] - Could not complete request
org.apache.tiles.impl.CannotRenderException: Connection reset by peer: socket write error
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:679)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:631)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:307)
at org.springframework.web.servlet.view.tiles2.TilesView.renderMergedOutputModel(TilesView.java:75)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:258)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1174)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:901)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3231)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2002)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1908)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1362)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: java.net.SocketException: Connection reset by peer: socket write error
When I look on google I couldn't find much information about this. Most threads were very old and it seems that this has something to do with Weblogic. Normally this should 've been fixed by now, but it seems that there are still some issues. Does anyone know what I can do about this?
Thanks in advance.
RE: Connection reset by peer (Tiles and Spring MVC)
Posted by Pawel Kozlowski <pk...@amadeus.com>.
"De Bakker, Bjorn" <Bj...@ordina.be> wrote on 08/01/2009
11:57:17:
> Yes, I also think this is a WL issue, but I'm asking this here
> because there are more Tiles users on this list :-). What do you
> exactly mean by by special procedure rendering JSP pages?
Oh, just a kind of template class I use everywhere a SocketExceptionCan be
thrown. Sth like:
public abstract class IoExceptionSafeOperation {
private static Logger s_logger = LoggerFactory.getLogger
(IoExceptionSafeOperation.class);
public final Object executeWithIOExceptionHandling() {
try {
return doWithIOException();
} catch (SocketException e) {
s_logger.warn("A SocketException has been thrown,
likely a user pressing the STOP button in a browser: "+e.getMessage());
} catch (IOException e) {
s_logger.error("Error while writing to a servlet
response.", e);
}
return null;
}
protected abstract Object doWithIOException() throws IOException;
}
It is helpful anyway, as I don't have to wonder how to handle the
IOException...
HTH,
Pawel
RE: Connection reset by peer (Tiles and Spring MVC)
Posted by "De Bakker, Bjorn" <Bj...@ordina.be>.
Yes, I also think this is a WL issue, but I'm asking this here because there are more Tiles users on this list :-). What do you exactly mean by by special procedure rendering JSP pages?
________________________________________
Van: Pawel Kozlowski [pkozlowski@amadeus.com]
Verzonden: donderdag 8 januari 2009 11:27
Aan: users@tiles.apache.org
Onderwerp: Re: Connection reset by peer (Tiles and Spring MVC)
Dear All,
Antonio <an...@gmail.com> wrote on 08/01/2009 11:18:16:
> 2009/1/8 De Bakker, Bjorn <Bj...@ordina.be>:
> > We're using Tiles 2 with Spring MVC 2.5 and Weblogic 9.
>
> What version of Tiles are you using? Today we released 2.0.7, first of
> all try to upgrade.
I don't think it is linked to Tiles (or any other framework...). For me it
is pure weblogic issue.
I've been seeing this exception since WL7 and it forced me to have a
special procedure rendering JSP pages, where I do systematically catch
this exception.
Don't know if WL10 is any better at handling this...
Cheers,
Pawel
Re: Connection reset by peer (Tiles and Spring MVC)
Posted by Pawel Kozlowski <pk...@amadeus.com>.
Dear All,
Antonio <an...@gmail.com> wrote on 08/01/2009 11:18:16:
> 2009/1/8 De Bakker, Bjorn <Bj...@ordina.be>:
> > We're using Tiles 2 with Spring MVC 2.5 and Weblogic 9.
>
> What version of Tiles are you using? Today we released 2.0.7, first of
> all try to upgrade.
I don't think it is linked to Tiles (or any other framework...). For me it
is pure weblogic issue.
I've been seeing this exception since WL7 and it forced me to have a
special procedure rendering JSP pages, where I do systematically catch
this exception.
Don't know if WL10 is any better at handling this...
Cheers,
Pawel
Re: Connection reset by peer (Tiles and Spring MVC)
Posted by Antonio <an...@gmail.com>.
2009/1/8 De Bakker, Bjorn <Bj...@ordina.be>:
> We're using Tiles 2 with Spring MVC 2.5 and Weblogic 9.
What version of Tiles are you using? Today we released 2.0.7, first of
all try to upgrade.
> Caused by: java.net.SocketException: Connection reset by peer: socket write error
Can you post the rest of the stacktrace?
Antonio
Re: Connection reset by peer (Tiles and Spring MVC)
Posted by Nicolas LE BAS <ma...@nlebas.net>.
Hi Bjorn,
That sounds to me like a normal and sane behaviour. When you click on
the link, the browser closes the previous TCP connection, so the server
cannot complete the job of rendering the page.
If you don't want the stack trace in your logs, perhaps you should
disable the "DEBUG" level on the log4j category
"org.springframework.web.servlet.DispatcherServlet". Do you really want
to debug this servlet, anyway ?
Hope this helps,
Nick
De Bakker, Bjorn a écrit :
> Hi all
>
> We're using Tiles 2 with Spring MVC 2.5 and Weblogic 9. The problem is that when we click on a link when the page is still loading, we always get the following stacktrace:
>
> [DEBUG] - [org.springframework.web.servlet.DispatcherServlet] - Could not complete request
> org.apache.tiles.impl.CannotRenderException: Connection reset by peer: socket write error
>
>