Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 54409 invoked from network); 4 Apr 2011 15:55:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Apr 2011 15:55:30 -0000 Received: (qmail 9527 invoked by uid 500); 4 Apr 2011 15:55:30 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 9493 invoked by uid 500); 4 Apr 2011 15:55:29 -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 9473 invoked by uid 99); 4 Apr 2011 15:55:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Apr 2011 15:55:29 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of darkarena@gmail.com designates 209.85.212.53 as permitted sender) Received: from [209.85.212.53] (HELO mail-vw0-f53.google.com) (209.85.212.53) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Apr 2011 15:55:24 +0000 Received: by vws13 with SMTP id 13so4994434vws.12 for ; Mon, 04 Apr 2011 08:55:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:references:from:in-reply-to:mime-version:date :message-id:subject:to:content-type; bh=YaXHe0/Chgw5izmN1aqxpRcthjmgO5Vo8a4l0H8h53c=; b=ufILIaYPShZQVo1OcXYusXpJa5rsk8leLb+KYbiLCDXhw+gSDtabUOo/z/7jSRQ/U5 OQLO8AJRDj9Ql1+jBGdMz6VFROaW6SQtmE//sD5poltRKQIrhe3uVHGXVxLt8+mzTaok iDo61q/tq9KSbX3l3UntctALAvw2psWrMeul4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:from:in-reply-to:mime-version:date:message-id:subject:to :content-type; b=G2FGLdd9LJDzzjJl9rNk/w6u5KUnZ3f+n1jyCIWu/N/Stpd4FN2560TPHtLBoHfKGN n0bW3IJ+hOaNpuuopsoAuSbzkgzbDFnKXMNdPnYKUBmloWnQgue+eNRq6IwFspfElelI 59nOruorLVvIn12PeHl8PBCpiwtJ3CgzG3MUI= Received: by 10.52.0.165 with SMTP id 5mr2558360vdf.7.1301932503893; Mon, 04 Apr 2011 08:55:03 -0700 (PDT) References: <31311811.post@talk.nabble.com> From: "Scott O'Bryan" In-Reply-To: <31311811.post@talk.nabble.com> Mime-Version: 1.0 (iPhone Mail 8C148) Date: Mon, 4 Apr 2011 09:55:00 -0600 Message-ID: <-4828457968363524312@unknownmsgid> Subject: Re: [Trinidad] NullPointerException when calling returnFromDialog To: MyFaces Discussion Content-Type: text/plain; charset=ISO-8859-1 This would likely be a trinidad issue. Have you tried the latest Trinidad 1.2 release? Sent from my iPhone On Apr 4, 2011, at 12:57 AM, Jhoanna wrote: > > Hi, > > I have a window that opens another window which then opens another window > (Window 3). When I'm trying to call returnFromDialog from Window 3, it > sometimes throws a NullPointerException on this line: > > java.lang.NullPointerException > at > org.apache.myfaces.trinidadinternal.context.PageFlowScopeMap.discard(PageFlowScopeMap.java:341) > at > org.apache.myfaces.trinidadinternal.context.PageFlowScopeProviderImpl.popPageFlowScope(PageFlowScopeProviderImpl.java:106) > at > org.apache.myfaces.trinidadinternal.context.RequestContextImpl.returnFromDialog(RequestContextImpl.java:125) > > The NullPointerException is being thrown from this line: > _sharedData._parent._sharedData._children.removeOldEntry(childToken, > storeMap); > because the children attribute is null. > > I tried to debug the code and whenever I have my breakpoint on this line, I > am able to replicate this exception. > > What I have found so far is that the returnFromDialog creates a new request > to close the window. This new request is setting the children attribute to > null in the getToken() method. Whenever the children attribute is nulled > before the removeOldEntry is called from the discard() method, I get the > NullPointerException. > > Is this a JSF bug or is there something I'm doing wrong with the dialogs? > > I am currently using Trinidad 1.2.7. > > Regards, > Jhoanna > > -- > View this message in context: http://old.nabble.com/-Trinidad--NullPointerException-when-calling-returnFromDialog-tp31311811p31311811.html > Sent from the MyFaces - Users mailing list archive at Nabble.com. >