IO Stream closed unexpectedly when using <s:action> tag from within Tiles
-------------------------------------------------------------------------

                 Key: WW-2538
                 URL: https://issues.apache.org/struts/browse/WW-2538
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - Tags, Plugin - Tiles
    Affects Versions: 2.0.11.1
         Environment: OSX, JBoss 4.2.2-GA 
            Reporter: Michael Griffith


Combining result types by using the <s:action> tag inside of a tile. IO Stream 
is closed by <s:action>, resulting in remaining tiles not being rendered. 

I've specified on both the struts tag, and the tiles include
flush="false"

.. tiles template ...
<tiles:insertAttribute name="body" flush="false"/>

... body tile ...
<s:action name="form" executeResult="true" flush="false"
ignoreContextParams="true"/>

results in Error:
2008-03-06 13:14:11,470 ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/index].[jsp]] 
Servlet.service() for servlet jsp threw exception
java.io.IOException: Stream closed at 
org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:20 4) at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:1 15) at 
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:1 86) at
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspF 
actoryImpl.java:117) at
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryIm 
pl.java:76) at org.apache.jsp.fragments.root_jsp._jspService(root_jsp.java:106) 
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja 
va:373) at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336) at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica 
tionFilterChain.java:290) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt 
erChain.java:206) at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc 
her.java:654) at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:445) at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp 
atcher.java:379) at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat 
cher.java:292) at 
org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(Serv
letTilesRequestContext.java:198) at 
org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(Ser 
vletTilesRequestContext.java:185) at
org.apache.tiles.context.TilesRequestContextWrapper.dispatch(TilesReques 
tContextWrapper.java:72) at
org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesR 
equestContext.java:86) at
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.jav a:419) 
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.jav 
a:370) at 
org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:10 4) at 
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178)
 at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultAct 
ionInvocation.java:348)



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to