Hello everyone,
I'm using hibernate3.0.5 and struts 1.1. I have a problem (possibly related to reflection). Here's the thing:
In an Action I load a User, this user has many rolls, and each roll has many privileges. I go through all the privileges for that user, and store it in a Vector. Each Privilege has a forward field, in a jsp I iterate the Vector, and according to the forward field in each Privilege I print out a menu. The problem is that I get the following exception:
javax.servlet.jsp.JspException: Exception thrown by getter for property forward of bean privilege
This is because the forward field is null. In reality this field is not null, in fact, if I put somewhere in the action class a System.out.println(privilege.getForward()); the forward field gets printed correctly, and the system works fine, I get no exception!!!.
How can this be???. Another weird thing, if I debug the app, inside the action class, all the fields of the privilege object is null (but they are not!!!).
Help needed. I can send the hibernate mappings if necessary (although I they don't have anything unusual).
|