javax.el.PropertyNotFoundException: Target Unreachable, 'ManagedBean' returned null

Kunwar Tomar picture Kunwar Tomar · Apr 1, 2011 · Viewed 12.3k times · Source

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)

Answer

markosca picture markosca · Oct 15, 2012

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.