控制台报的错:java.lang.IllegalArgumentException;
网页上报的错
org.springframework.orm.hibernate3.HibernateSystemException: IllegalArgumentException occurred while calling setter of com.guomai.lx.vo.LX.xwid; nested exception is org.hibernate.PropertyAccessException: IllegalArgumentException occurred while calling setter of com.guomai.lx.vo.LX.xwid

解决方案 »

  1.   

    setter of com.guomai.lx.vo.LX.xwid
    setter方法有问题吧?
      

  2.   

    xwid 这个是主键int自增
    我每回添加的时候就报这个错误
      

  3.   

    <hibernate-mapping>
    <class name="com.guomai.lx.vo.LX" table="LX">
         <id name="xwid" column="xwid">
                <!-- native Assigned  increment  identity uuid.hex  uuid.string foreign -->
                <generator class="uuid.hex"/>
    </id>
    <property name="biaoti" column="biaoti" />
    <property name="yedizhi" column="yedizhi"/>
    <property name="qlj" column="qlj"/>
    <property name="time" column="time"/>
    <property name="neirong" column="neirong"/>
        </class>
    </hibernate-mapping>这个是实体的配置文件
      

  4.   

    我把主键改成vachar不自增就不报错误,但是一用int自增的就出错