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.<init>(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.