获取错误"对象不是声明类的实例"

时间:2018-05-17 06:06:30

标签: java spring-boot soap

我在下面的问题上得到了这个问题:

java.lang.Object _resp = _call.invoke(new java.lang.Object[] {XMLRequest});

XMLRequest以

开头
"XMLRequest": com.webservices.MaintenanceRequest@1b834def"

当我尝试从我的soap客户端调用服务并在执行上述行时遇到错误并找到如下错误:

2018-05-17 11:18:59.703 ERROR 7104 --- [nio-8080-exec-1] o.a.a.e.s.BeanSerializer                 : Exception:

java.lang.IllegalArgumentException: object is not an instance of declaring class
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_144]
    at org.apache.axis.utils.BeanPropertyDescriptor.get(BeanPropertyDescriptor.java:127) ~[axis-1.4.jar:?]
    at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:192) [axis-1.4.jar:?]
    at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) [axis-1.4.jar:?]

任何人都可以就此提出建议。

0 个答案:

没有答案