67,514
社区成员
发帖
与我相关
我的任务
分享
public class Student implements java.io.Serializable {
private Integer stuNo;
private String stuName;
private Integer stuAge;
private String stuSex;
private Set scores = new HashSet(0);
//省略 getters setters
}
<root:example xmlns:root="root"><Student type="com.wgy.persistence.entity.Student"><scores type="java.util.HashSet"><empty>true</empty></scores><stuAge xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" /><stuName xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" /><stuNo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" /><stuSex xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" /></Student></root:example>
java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:457)
at org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:722)
at com.wgy.util.TypeConverter.toBeObject(TypeConverter.java:152)
at com.wgy.client.ClientTestCase.main(ClientTestCase.java:27)
BeanUtil.processObject(ele, cls, null, true,new DefaultObjectSupplier());