javax.el.PropertyNotFoundException:目标无法访问,“ManagedBean”返回空值

发布于 2024-10-28 03:49:45 字数 854 浏览 7 评论 0原文

我是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

亢潮 2024-11-04 03:49:45

我也遇到过同样的问题并且已经解决了。我的堆栈跟踪是类似的,我的问题是我从任务流调用托管 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文