my dog learned polymorphism
The moose likes JSF and the fly likes EvaluationException: Cannot get value for expression Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "EvaluationException: Cannot get value for expression" Watch "EvaluationException: Cannot get value for expression" New topic

EvaluationException: Cannot get value for expression

Charles McGuire
Ranch Hand

Joined: Jan 18, 2005
Posts: 99
The full meesage is actually:

The bean properties and code portions are down at the end of the message. Now, I know the server has the backing bean. I put a System.out.println statement in the constructor to prove it. When I point my browser to the .jsf page, I can see my output from the constructor of the backing bean on my Tomcat console spew. That tells me it has the bean.

The getAllAgents method is the first method on the .jsp. And yes, I've deleted the application directory and .war file from Tomcat each time I deployed this bugger, which is numbering close to a million.

Other, simpler pages display okay. This one is a little more challenging in that it deals with Lists.

Why can't it load?

From the config file:

From the jsp:

And, most importantly, the offending method in the backing bean. In it's current state you can see where I've hacked at it to try to solve the problem. The System.out.println statements below DO NOT appear in the console. It blows up before it gets to that part.:

Thank you in advance!
[ April 18, 2006: Message edited by: Charles McGuire ]

There's no place like
Jim Egerton

Joined: Jul 23, 2006
Posts: 1
Charles - I've run into what seems to be a similar problem. I can see that backing bean is instantiated, but I get an error accessing it with an expression. Did you ever get anywhere with resolving this?

I agree. Here's the link:
subject: EvaluationException: Cannot get value for expression
It's not a secret anymore!