Exception in thread "main" org.springframework.orm.hibernate3.HibernateSystemException: IllegalArgumentException occurred calling getter of stake.out.entry.FileData.id; nested exception is org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of stake.out.entry.FileData.id
Caused by: org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of stake.out.entry.FileData.idCaused by: java.lang.IllegalArgumentException: object is not an instance of declaring class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:169)
... 35 more
Caused by: org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of stake.out.entry.FileData.idCaused by: java.lang.IllegalArgumentException: object is not an instance of declaring class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:169)
... 35 more
解决方案 »
- javaweb开发问题
- 用Spring整合hibernate不能自动建表
- 我用了jpa注解,MappingNotFoundException怎么解决!
- 企业里面是struts1.x主流还是struts2.x主流
- 从class中反编译出来的jad,修改后怎么编译成class?
- 关于struts框架下,对页面不能取值的问题:
- java编程的一些错误,很奇怪
- 关于WebLogic启动时的一点问题,请高手帮一下忙
- 请高手相助,jsp页面显示折线图的问题
- 学习Jsp Struts的MSN联系
- class path resource [log4j.xml] cannot be resolved to URL because it does not ex
- ssh问题
你检查一下
java.lang.IllegalArgumentException:
<set name="fileData"
table="sys_file"
inverse="true"
cascade="save-update">
<key column="sys_id"/>
<many-to-many class="stake.out.entry.JSystem"
column="f_id"/>
</set>
<set name="systems"
table="sys_file"
cascade="save-update">
<key column="f_id"/>
<many-to-many class="stake.out.entry.FileData"
column="sys_id"/>
</set>