Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 10856 invoked from network); 8 Feb 2009 20:33:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2009 20:33:21 -0000 Received: (qmail 58238 invoked by uid 500); 8 Feb 2009 20:33:20 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 58183 invoked by uid 500); 8 Feb 2009 20:33:20 -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 58174 invoked by uid 99); 8 Feb 2009 20:33:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Feb 2009 12:33:20 -0800 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Feb 2009 20:33:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 92BD0234C4AB for ; Sun, 8 Feb 2009 12:32:59 -0800 (PST) Message-ID: <476256658.1234125179600.JavaMail.jira@brutus> Date: Sun, 8 Feb 2009 12:32:59 -0800 (PST) From: "Jan-Kees van Andel (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Updated: (MYFACES-2147) NoSuchMethodException when instantiating SystemEvent objects In-Reply-To: <954282874.1234124819574.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MYFACES-2147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan-Kees van Andel updated MYFACES-2147: ---------------------------------------- Status: Patch Available (was: Open) > NoSuchMethodException when instantiating SystemEvent objects > ------------------------------------------------------------ > > Key: MYFACES-2147 > URL: https://issues.apache.org/jira/browse/MYFACES-2147 > Project: MyFaces Core > Issue Type: Bug > Components: JSR-314 > Affects Versions: 2.0.0-alpha > Reporter: Jan-Kees van Andel > > This error occurs when rendering an arbitrary page. > It is caused by the Class.getConstructor(Class) not being aware of subclasses. > SystemEvent has a constructor with one parameter of type Object, but different subclasses have different constructors. > Caused by: java.lang.NoSuchMethodException: javax.faces.event.AfterAddToParentEvent.(java.lang.Object) > at java.lang.Class.getConstructor0(Class.java:2706) > at java.lang.Class.getConstructor(Class.java:1657) > at org.apache.myfaces.application.ApplicationImpl._createEvent(ApplicationImpl.java:1292) > at org.apache.myfaces.application.ApplicationImpl._traverseListenerList(ApplicationImpl.java:1484) > at org.apache.myfaces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:437) > at org.apache.myfaces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:459) > at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:118) > at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:121) > at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:80) > at javax.faces.webapp.FacesServlet._handleStandardRequest(FacesServlet.java:423) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.