IllegalArgumentException occurred while calling setter of com.ibeifeng.po.Vip.vipid

18:11:00,281 ERROR org.hibernate.property.BasicPropertyAccessor:118 - IllegalArgumentException in class: com.ibeifeng.po.Vip, setter method of property: vipid
18:11:00,281 ERROR org.hibernate.property.BasicPropertyAccessor:122 - expected type: java.lang.String, actual value: java.lang.Integer
org.springframework.orm.hibernate3.HibernateSystemException: IllegalArgumentException occurred while calling setter of com.ibeifeng.po.Vip.vipid; nested exception is org.hibernate.PropertyAccessException: IllegalArgumentException occurred while calling setter of com.ibeifeng.po.Vip.vipid
Caused by: org.hibernate.PropertyAccessException: IllegalArgumentException occurred while calling setter of com.ibeifeng.po.Vip.vipid

检查发现原来是实体类中的id写成String类型了,而我的struts配置文件是int

你可能感兴趣的:(expected,property,occurred,calling,actual)