javax.el.PropertyNotFoundException:目标无法访问,“ManagedBean”返回空值
我是 ADF JSF 的新手,请帮忙, 我正在尝试映射我的托管 bean 范围,例如 request 、 pageFlow 和 backingBean 。 但出现以下错误,
ManagedBean -- Scope = request Error -- javax.el.PropertyNotFoundException: Target Unreachable, 'ManagedBean' returned null ManagedBean --- scope = backingBean or pageFlow Error --- An invalid object operation was invoked on type View Object with name EmployeeViewImpl_0
这是例外:
javax.el.ELException: oracle.jbo.InvalidObjAccessException: JBO-25036: An invalid object operation was invoked on type View Object with name EmployeeViewImpl_0 at javax.el.BeanELResolver.getValue(BeanELResolver.java:266) at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143) at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72) at com.sun.el.parser.AstValue.getValue(AstValue.java:118)
I am new in ADF JSF please assist,
I am trying to map my Managed bean scope like request ,pageFlow and backingBean .
but getting following errors,
ManagedBean -- Scope = request Error -- javax.el.PropertyNotFoundException: Target Unreachable, 'ManagedBean' returned null ManagedBean --- scope = backingBean or pageFlow Error --- An invalid object operation was invoked on type View Object with name EmployeeViewImpl_0
This is the exception:
javax.el.ELException: oracle.jbo.InvalidObjAccessException: JBO-25036: An invalid object operation was invoked on type View Object with name EmployeeViewImpl_0 at javax.el.BeanELResolver.getValue(BeanELResolver.java:266) at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143) at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72) at com.sun.el.parser.AstValue.getValue(AstValue.java:118)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也遇到过同样的问题并且已经解决了。我的堆栈跟踪是类似的,我的问题是我从任务流调用托管 Bean 的操作方法,但在托管 Bean 中,该方法的 return: void 。这是我的错误。
我将返回类型更改为 String 并且一切正常。
我希望这对你有帮助。
马科斯.
I have had the same issue and I have solved. My stack trace was similar and my problem was that I was invoking an action method of a Managed Bean from a task flow, but in the managed bean, this method had as return: void. And this was my mistake.
I change the type of return to String and all works fine.
I hope this help you.
Marcos.