You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by David Tashima <da...@gmail.com> on 2005/06/02 19:43:32 UTC
PropertyNotFoundException when managed bean implements an interface?
Hey everyone,
I get a very weird PropertyNotFoundException when trying to initialize
a managed bean whose class implements an interface. It can't find the
setter for a property, even though the setter exists on both the class
and the interface.
When I strip the "implements IInterface", it works great.
This doesn't make any sense to me, as I didn't change any of the
face-config.xml (it still points to the original class).
Has anyone seen this? I'm on 1.0.9.
-Dave
Re: PropertyNotFoundException when managed bean implements an interface?
Posted by David Tashima <da...@gmail.com>.
Here is the trace:
109687 [http-8080-Processor24] ERROR
org.apache.myfaces.el.PropertyResolverImpl -
com.winerhino.ui.ArticleUIBean
javax.faces.el.PropertyNotFoundException: Bean:
com.winerhino.ui.ArticleUIBean, property: secretsBean
at org.apache.myfaces.el.PropertyResolverImpl.setProperty(PropertyResolverImpl.java:372)
at org.apache.myfaces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:180)
at org.apache.myfaces.config.ManagedBeanBuilder.initializeProperties(ManagedBeanBuilder.java:151)
at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:63)
at org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:328)
at org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVariable(ValueBindingImpl.java:637)
at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)
at org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBindingImpl.java:518)
at org.apache.myfaces.el.MethodBindingImpl.resolveToBaseAndProperty(MethodBindingImpl.java:195)
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:123)
at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:62)
at javax.faces.component.UICommand.broadcast(UICommand.java:106)
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:110)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:184)
at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:102)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.component.html.util.MultipartFilter.doFilter(MultipartFilter.java:105)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.winerhino.servlet.HibernateFilter.doFilter(HibernateFilter.java:41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
On 6/2/05, Martin Marinschek <ma...@gmail.com> wrote:
> can you post the stacktrace?
>
> regards,
>
> Martin
>
> On 6/2/05, David Tashima <da...@gmail.com> wrote:
> > Hey everyone,
> >
> > I get a very weird PropertyNotFoundException when trying to initialize
> > a managed bean whose class implements an interface. It can't find the
> > setter for a property, even though the setter exists on both the class
> > and the interface.
> >
> > When I strip the "implements IInterface", it works great.
> >
> > This doesn't make any sense to me, as I didn't change any of the
> > face-config.xml (it still points to the original class).
> >
> > Has anyone seen this? I'm on 1.0.9.
> >
> > -Dave
> >
>
Re: PropertyNotFoundException when managed bean implements an interface?
Posted by Martin Marinschek <ma...@gmail.com>.
can you post the stacktrace?
regards,
Martin
On 6/2/05, David Tashima <da...@gmail.com> wrote:
> Hey everyone,
>
> I get a very weird PropertyNotFoundException when trying to initialize
> a managed bean whose class implements an interface. It can't find the
> setter for a property, even though the setter exists on both the class
> and the interface.
>
> When I strip the "implements IInterface", it works great.
>
> This doesn't make any sense to me, as I didn't change any of the
> face-config.xml (it still points to the original class).
>
> Has anyone seen this? I'm on 1.0.9.
>
> -Dave
>