<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
ViewExpiredException with fileupload
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/aurelios">Aurélio Gimenes</a> in <i>JBoss Tools</i> - <a href="https://community.jboss.org/message/730272#730272">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi, i´m using </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>JSF 1.2</p><p>RichFaces 3.3.0</p><p>JBoss Seam 2.2.0</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span id="result_box" lang="en"><span class="hps">after sending</span> <span class="hps">a</span> <span class="hps">large file that</span> <span class="hps">takes</span> <span class="hps">on average</span> <span class="hps">five minutes,</span> <span class="hps">when I run</span> <span class="hps">a</span> <span class="hps">submit</span> <span class="hps">I get</span> <span class="hps">this exception</span> <span class="hps">and I lose</span> <span class="hps">the reference</span> <span class="hps">file</span>. <span class="hps">how</span> <span class="hps">can I solve this</span> <span class="hps">problem?</span></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>WEB.XML</strong></p><p><context-param></p><p>    <param-name>org.richfaces.SKIN</param-name></p><p>    <param-value>blueSky</param-value></p><p></context-param></p><p><filter></p><p>    <display-name>RichFaces Filter</display-name></p><p>    <filter-name>richfaces</filter-name></p><p>    <filter-class>org.ajax4jsf.Filter</filter-class></p><p></filter></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><filter-mapping></p><p>    <filter-name>richfaces</filter-name></p><p>    <servlet-name>FacesServlet</servlet-name></p><p>    <dispatcher>REQUEST</dispatcher></p><p>    <dispatcher>FORWARD</dispatcher></p><p>    <dispatcher>INCLUDE</dispatcher></p><p></filter-mapping></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><security-constraint></p><p>    <web-resource-collection></p><p>        <url-pattern>/f/a4j/*</url-pattern></p><p>    </web-resource-collection></p><p></security-constraint></p><p><context-param></p><p>   <param-name>javax.faces.STATE_SAVING_METHOD</param-name></p><p>   <param-value>server</param-value> <!-- <span class="short_text" id="result_box" lang="en"><span class="hps">I tried</span> <span class="hps">both</span> <span class="hps">client</span> <span class="hps">and server--></span></span></p><p></context-param></p><p><filter></p><p>    <display-name>RichFaces Filter</display-name></p><p>    <filter-name>richfaces</filter-name></p><p>    <filter-class>org.ajax4jsf.Filter</filter-class></p><p>    <init-param></p><p>        <param-name>createTempFiles</param-name></p><p>        <param-value>true</param-value></p><p></init-param></p><p><init-param></p><p>        <param-name>maxRequestSize</param-name></p><p>        <param-value>1000000000</param-value></p><p></init-param></p><p></filter></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>JSP</strong></p><p><rich:fileUpload</p><p>    fileUploadListener="#{inscricaoAction.adicionarArquivo}"                            </p><p>    onclear="document.getElementById('corpo:formulario:btClearUploadedData').click();"                            </p><p>    id="upload" cleanButtonClassDisabled="display:none;"</p><p>    maxFilesQuantity="#{inscricaoAction.uploadsAvailableA}"</p><p>    immediateUpload="true" </p><p>    </p><p>    acceptedTypes="" style="width: 350px;"</p><p>    allowFlash="true" noDuplicate="true" listHeight="100px"</p><p>    uploadControlLabel="Importar" clearControlLabel="Limpar" </p><p>    addControlLabel="Selecionar Arquivos" clearAllControlLabel="Limpar Todos"</p><p>    cancelEntryControlLabel="Cancelar" stopControlLabel="Parar"                            </p><p>    doneLabel="Arquivo importado com sucesso"</p><p>    transferErrorLabel="Erro ao importar o arquivo"</p><p>    stopEntryControlLabel="parar" </p><p>    progressLabel="Importando o Arquivo..."></p><p>    <f:facet name="label"></p><p>        <ht:outputText value="{_KB}KB from {KB}KB uploaded --- {mm}:{ss}" />    </p><p>    </f:facet></p><p>    <a4j:support event="onuploadcomplete"  reRender="info,upload" /></p><p></rich:fileUpload></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>ERROR:</strong></p><p>2012-04-11 16:10:51,435 [http-80-3] ERROR org.ajax4jsf.webapp.BaseXMLFilter - Exception in the filter chain</p><p>javax.servlet.ServletException: viewId:/t/inscricaoman - null MessageFactory</p><p>    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:270)</p><p>    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)</p><p>    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>    at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)</p><p>    at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)</p><p>    at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:367)</p><p>    at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)</p><p>    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)</p><p>    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)</p><p>    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)</p><p>    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)</p><p>    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)</p><p>    at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)</p><p>    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)</p><p>    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)</p><p>    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)</p><p>    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)</p><p>    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)</p><p>    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)</p><p>    at java.lang.Thread.run(Thread.java:619)</p><p>Caused by: javax.faces.application.ViewExpiredException: viewId:/t/inscricaoman - null MessageFactory</p><p>    at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:186)</p><p>    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)</p><p>    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:104)</p><p>    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)</p><p>    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)</p><p>    ... 20 more</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/730272#730272">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Tools at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>