Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 84776 invoked from network); 25 Sep 2006 12:43:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Sep 2006 12:43:12 -0000 Received: (qmail 5404 invoked by uid 500); 25 Sep 2006 12:43:11 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 5342 invoked by uid 500); 25 Sep 2006 12:43:11 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 5331 invoked by uid 99); 25 Sep 2006 12:43:11 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Sep 2006 05:43:11 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=bierbrauen@gmail.com; spf=pass Authentication-Results: idunn.apache.osuosl.org header.from=bierbrauen@gmail.com; domainkeys=good X-ASF-Spam-Status: No, hits=0.5 required=5.0 tests=DNS_FROM_RFC_ABUSE Received-SPF: pass (idunn.apache.osuosl.org: domain gmail.com designates 64.233.166.181 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [64.233.166.181] ([64.233.166.181:47660] helo=py-out-1112.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 8F/26-13750-9DEC7154 for ; Mon, 25 Sep 2006 05:43:05 -0700 Received: by py-out-1112.google.com with SMTP id i75so2288348pye for ; Mon, 25 Sep 2006 05:43:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PAnnqQ2DD1Y2V0fynazperLVIJLkUxNn4hCGW1gu5avJimMoSpll/SOhx7/unwKDBCX8zn2M4kjWICFtGBo7/GGTHKdRidwZ/cwTEZOwAr2MyPFO/QAbS5cVTTlQQ9RHHs7Mg0DBEVA8JwWxRogj1jOfbKA0aZKmjqedj2Mm+68= Received: by 10.35.66.12 with SMTP id t12mr8256671pyk; Mon, 25 Sep 2006 05:43:02 -0700 (PDT) Received: by 10.35.39.4 with HTTP; Mon, 25 Sep 2006 05:43:02 -0700 (PDT) Message-ID: <311295120609250543p6185076fwc56310701ae84f58@mail.gmail.com> Date: Mon, 25 Sep 2006 14:43:02 +0200 From: "=?ISO-8859-1?Q?Gerald_M=FCllan?=" To: "MyFaces Development" Subject: Re: Silent Fail in Restore View In-Reply-To: <37.95.13750.BEAC7154@idunn.apache.osuosl.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <14623809.1159185351245.JavaMail.jira@brutus> <37.95.13750.BEAC7154@idunn.apache.osuosl.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, do you use preserveDataModel="true" in your dataTables? If not, the problem might origin from this case. In which scope do you have defined this bean? I prefer setting it to request scope wherever possible, and if needed extending the life of the bean via serializing it with t:saveState (value is the name of the bean). cheers, Gerald On 9/25/06, Vivek Pandey wrote: > Hi > > I was earlier using MyFaces 1.1.1 and am trying to move to 1.1.3 right now. > I am getting numerous serialization issues which I am fixing one by one. > However I am stuck at a point from where I am not able to go forward. My > page renders the first time but whenever I request it again (by clicking on > the sort button for example in the datatable) my viewroot becomes NULL. In > the logs, I see this... > DEBUG - jsp.JspStateManagerImpl - Processing deserializeView - deserializing > serialized state. Bytes : 21335 > DEBUG - jsp.JspStateManagerImpl - Tree structure restored from server > session > DEBUG - jsp.JspStateManagerImpl - Exiting restoreTreeStructure > DEBUG - jsp.JspStateManagerImpl - Entering restoreComponentState > ERROR - lifecycle.PhaseListenerManager - Exception in PhaseListener > RESTORE_VIEW(1) afterPhase > java.lang.NullPointerException > at > org.apache.myfaces.renderkit.html.util.AutoScrollPhaseListener.afterPhase(Lj > avax.faces.event.PhaseEvent;)V(AutoScrollPhaseListener.java:52) > at > org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter( > Ljavax.faces.event.PhaseId;)V(PhaseListenerManager.java:89) > at > org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(Ljavax.faces.context. > FacesContext;Lorg.apache.myfaces.lifecycle.PhaseListenerManager;)Z(Lifecycle > Impl.java:181) > at > org.apache.myfaces.lifecycle.LifecycleImpl.execute(Ljavax.faces.context.Face > sContext;)V(LifecycleImpl.java:66) > > Oddly enough there is no "Exiting restoreComponentState" log message which > leads me to assume the method restoreComponentState failed somewhere in > between. But I cannot make out the reason why. > > It maybe that deserialization is not happening properly (and that too most > probably for the datatable component in my page). My guess is it is because > I am using an aliased bean for my datatable and the value field for the > datatable is set to a ListDataModel field variable in the actual bean that I > am setting to the aliasbean. But how do I begin to find out the problem ? > The log messages as well as going through code in JspStateManagerImpl is not > of much help. > > Pleas help. > > > > > -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces