0 Replies Latest reply on Jul 20, 2008 11:54 PM by kks_krishna

    Problem in a4j:include ( java.io.IOException: Stream closed)

    kks_krishna Newbie

      HI,

      I am getting exception while using

      <a4j:include id="myinclude8" viewId="Page.jsp" > </a4j:include>


      the following is exception trace :

      java.io.IOException: Stream closed
       at org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:204)
       at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:312)
       at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:342)
       at org.apache.myfaces.shared_impl.renderkit.html.HtmlResponseWriterImpl.writeEndTag(HtmlResponseWriterImpl.java:301)
       at org.apache.myfaces.shared_impl.renderkit.html.HtmlResponseWriterImpl.endElement(HtmlResponseWriterImpl.java:270)
       at org.ajax4jsf.renderkit.html.AjaxIncludeRenderer.doEncodeEnd(AjaxIncludeRenderer.java:92)
       at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:135)
       at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
       at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:498)
       at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:366)
       at org.ajax4jsf.taglib.html.jsp.IncludeTag.doEndTag(IncludeTag.java:17



      This exception not coming all the time. When I am launching a page and while clicking on the cancel button it should return to the previous page. The buttions are displayed using the a4j:include page. It works when the flow comes from same web application. There is a scnarion when the entry is from another web apps and while clicking on the cancel button it should return to the same page in another webapps. That time its throwing this error.

      Please help me.