From users-return-58785-apmail-myfaces-users-archive=myfaces.apache.org@myfaces.apache.org Mon Sep 5 20:14:58 2011 Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C70A184AB for ; Mon, 5 Sep 2011 20:14:58 +0000 (UTC) Received: (qmail 73110 invoked by uid 500); 5 Sep 2011 20:14:57 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 72973 invoked by uid 500); 5 Sep 2011 20:14:56 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 72965 invoked by uid 99); 5 Sep 2011 20:14:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2011 20:14:56 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of junkmailtoday@gmail.com designates 209.85.161.53 as permitted sender) Received: from [209.85.161.53] (HELO mail-fx0-f53.google.com) (209.85.161.53) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2011 20:14:48 +0000 Received: by fxd23 with SMTP id 23so4342092fxd.12 for ; Mon, 05 Sep 2011 13:14:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=DnJBDnzCOjQ/fAkWh5ojW89qJ0e296QqPcz0M7y+Gyc=; b=twb5Mf2K3j+5YNJ1CSEztzwXuhh/uogIaAIrSzrL8rblnkp98W7nYuQasW9K0NEinm v81rjfTmr8qVt7UzgaPM4vxJcWDLgN06lYgc06V4DDlkbdWbUM9mj32UWJgSpVymEVAI AGVAoZv89VNLK/p8L+oKoqYb6abHMANEmleFU= MIME-Version: 1.0 Received: by 10.223.28.89 with SMTP id l25mr411222fac.34.1315253667761; Mon, 05 Sep 2011 13:14:27 -0700 (PDT) Received: by 10.223.74.130 with HTTP; Mon, 5 Sep 2011 13:14:27 -0700 (PDT) Date: Mon, 5 Sep 2011 22:14:27 +0200 Message-ID: Subject: IllegalStateException: setStateManager may not be executed after a lifecycle request has been completed From: junk mail To: users@myfaces.apache.org Content-Type: multipart/alternative; boundary=0015174028e0a8100004ac375b61 X-Virus-Checked: Checked by ClamAV on apache.org --0015174028e0a8100004ac375b61 Content-Type: text/plain; charset=ISO-8859-1 Hi guys, We have been struggling for weeks with an IllegalStateException send by * org.apache.myfaces.application.ApplicationImpl* class It works pretty well in a local environment, but when we deployed the application in a Solaris server with Tomcat 6 or 7 and with any of myfaces versions from 2.0.5 to 2.1.1 the exception is thrown when we *reload* the home page* or we go no another view *of the application. The application it's a simple page that display static text an a h:commandButton, only a *ManagedBean/SessionScoped* with a method that redirects to another page when button is pressed. Could you guys help me with this issue, it's becoming desperated. Many thanks, Alf. *Error stackTrace:* * * 2011-09-05 17:09:03,145 [TP-Processor3] ERROR alhost].[/omt].[Faces Servlet]#invoke():281 - Servlet.service() for servlet Faces Servlet threw exception**** java.lang.IllegalStateException: setStateManager may not be executed after a lifecycle request has been completed**** at org.apache.myfaces.application.ApplicationImpl.setStateManager(ApplicationImpl.java:1755) **** at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:516) **** at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:401) **** at org.apache.myfaces.config.FacesConfigurator.update(FacesConfigurator.java:349) **** at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:112)** ** at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189)*** * at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) **** at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) **** at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:294) **** at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) **** at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) **** at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:357) **** at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) **** at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) **** at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) **** at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) **** at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470) **** at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) **** at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) **** at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554)*** * at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) **** at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)* *** at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)**** at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)**** at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776) **** at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705) **** at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898) **** at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) **** at java.lang.Thread.run(Unknown Source)**** ** ** ** ** *web.xml config:* ** ** **** **** **** javax.faces.DEFAULT_SUFFIX**** .xhtml**** **** **** javax.faces.STATE_SAVING_METHOD**** server**** **** **** javax.faces.PROJECT_STAGE**** Development**** **** **** facelets.REFRESH_PERIOD**** -1**** **** **** extensionsFilter**** org.apache.myfaces.webapp.filter.ExtensionsFilter **** **** **** extensionsFilter**** *.faces**** **** **** extensionsFilter**** /faces/***** **** **** extensionsFilter**** Faces Servlet**** **** **** Faces Servlet**** javax.faces.webapp.FacesServlet**** 1**** **** **** Faces Servlet**** *.faces**** **** **** Faces Servlet**** /index.faces**** **** **** Restrict raw XHTML Documents**** **** XHTML**** *.xhtml**** **** **** **** **** index.faces**** **** **** ** ** --0015174028e0a8100004ac375b61--