Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 55146 invoked from network); 28 Jun 2010 08:50:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Jun 2010 08:50:18 -0000 Received: (qmail 60112 invoked by uid 500); 28 Jun 2010 08:50:18 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 59785 invoked by uid 500); 28 Jun 2010 08:50:16 -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 59775 invoked by uid 99); 28 Jun 2010 08:50:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jun 2010 08:50:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jun 2010 08:50:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5S8npV6015125 for ; Mon, 28 Jun 2010 08:49:51 GMT Message-ID: <11350859.85711277714991092.JavaMail.jira@thor> Date: Mon, 28 Jun 2010 04:49:51 -0400 (EDT) From: =?utf-8?Q?Martin_Ko=C4=8D=C3=AD_=28JIRA=29?= To: dev@myfaces.apache.org Subject: [jira] Updated: (MYFACES-2775) StackOverflowError when adding componentResource with id=null In-Reply-To: <12710960.85571277713910769.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MYFACES-2775?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Ko=C4=8D=C3=AD updated MYFACES-2775: --------------------------------- Status: Patch Available (was: Open) > StackOverflowError when adding componentResource with id=3Dnull > ------------------------------------------------------------- > > Key: MYFACES-2775 > URL: https://issues.apache.org/jira/browse/MYFACES-2775 > Project: MyFaces Core > Issue Type: Bug > Components: JSR-314 > Affects Versions: 2.0.1-SNAPSHOT > Environment: myfaces trunk, tomcat 6.0.26 > Reporter: Martin Ko=C4=8D=C3=AD > > If second parameter - the componentResource: > UIViewRoot.addComponentResource(FacesContext context, UIComponent compone= ntResource) > has null id then StackOverflowError occurs: > Caused by: java.lang.StackOverflowError > =09at java.lang.ThreadLocal.get(ThreadLocal.java:124) > =09at javax.faces.context.FacesContext.getCurrentInstance(FacesContext.ja= va:71) > =09at javax.faces.component.UIComponentBase.getFacesContext(UIComponentBa= se.java:1057) > =09at javax.faces.component.UIComponentBase.setParent(UIComponentBase.jav= a:174) > =09at javax.faces.component._ComponentChildrenList.childRemoved(_Componen= tChildrenList.java:123) > =09at javax.faces.component._ComponentChildrenList.remove(_ComponentChild= renList.java:147) > =09at javax.faces.component._ComponentChildrenList.removeChildrenFromPare= nt(_ComponentChildrenList.java:136) > =09at javax.faces.component._ComponentChildrenList.add(_ComponentChildren= List.java:76) > =09at javax.faces.component._ComponentChildrenList.add(_ComponentChildren= List.java:30) > =09at javax.faces.component.UIViewRoot.addComponentResource(UIViewRoot.ja= va:188) > =09at org.apache.myfaces.renderkit.html.HtmlStylesheetRenderer.processEve= nt(HtmlStylesheetRenderer.java:86) > =09at javax.faces.component.UIComponent$EventListenerWrapper.processEvent= (UIComponent.java:1098) > =09at javax.faces.event.SystemEvent.processListener(SystemEvent.java:43) > =09at org.apache.myfaces.application.ApplicationImpl._traverseListenerLis= t(ApplicationImpl.java:1955) > =09at org.apache.myfaces.application.ApplicationImpl.publishEvent(Applica= tionImpl.java:504) > =09at javax.faces.component.UIComponentBase._publishPostAddToViewEvent(UI= ComponentBase.java:201) > =09at javax.faces.component.UIComponentBase.setParent(UIComponentBase.jav= a:186) > =09at javax.faces.component._ComponentChildrenList.updateParent(_Componen= tChildrenList.java:128) > =09at javax.faces.component._ComponentChildrenList.add(_ComponentChildren= List.java:79) > =09at javax.faces.component._ComponentChildrenList.add(_ComponentChildren= List.java:30) > =09at javax.faces.component.UIViewRoot.addComponentResource(UIViewRoot.ja= va:188) > =09at org.apache.myfaces.renderkit.html.HtmlStylesheetRenderer.processEve= nt(HtmlStylesheetRenderer.java:86) > =09at javax.faces.component.UIComponent$EventListenerWrapper.processEvent= (UIComponent.java:1098) > .... > This probably does not happen if componentResource is created from a fac= elet but only if it created from java code (a listener in my case) --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.