I have the java 1.5 (jrockit) and created a very simple class:
All the Roo tests pass but when I'm trying to access http://localhost:8080/dtcc/singlename/form to create a new entry I get the following error;Code:@Entity @RooJavaBean @RooToString @RooEntity(finders = { "findSingleNamesByRefEntIDEquals" }) public class SingleName { private Integer RefEntID; private String RefEntName; }
It's a bit strange to me that all the Roo generated test (9) pass but you can still get such an elementary error in the webapp.Code:Added model object 'singlename' of type [au.gov.rba.dtcc.domain.SingleName] to request in view with name 'singlename/create' Added model object 'org.springframework.validation.BindingResult.singlename' of type [org.springframework.validation.BeanPropertyBindingResult] to request in view with name 'singlename/create' Invalid property 'RefEntID' of bean class [au.gov.rba.dtcc.domain.SingleName]: Bean property 'RefEntID' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter? org.springframework.beans.NotReadablePropertyException: Invalid property 'RefEntID' of bean class [au.gov.rba.dtcc.domain.SingleName]: Bean property 'RefEntID' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
Any suggestions would be appreciated. Thanks.
This is the SingleName.aj:
Code:privileged aspect SingleName_Roo_JavaBean { public Integer SingleName.getRefEntID() { return this.RefEntID; } public void SingleName.setRefEntID(Integer RefEntID) { this.RefEntID = RefEntID; } public String SingleName.getRefEntName() { return this.RefEntName; } public void SingleName.setRefEntName(String RefEntName) { this.RefEntName = RefEntName; } }


Reply With Quote