异常部分信息:
javax.xml.ws.soap.SOAPFaultException: Fault occurred while processing.
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:159)
at com.sun.proxy.$Proxy102.findListNotAssociation(Unknown Source)
at com.gient.bos.web.action.DecidedzoneAction.findListNotAssociation(DecidedzoneAction.java:65)
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 ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:870)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1293)
at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
at com.opensymphony.xwork2.ognl.accessor.XWorkMet
odAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117
......
Caused by: org.apache.cxf.binding.soap.SoapFault: Fault occurred while processing.
服务端CRM源码
@Override
public List<Customer> findListNotAssociation() {
String sql = "select * from t_customer where decidedzone_id is null";
List<Customer> list = jdbcTemplate.query(sql, new RowMapper<Customer>(){
@Override
public Customer mapRow(ResultSet rs, int arg1) throws SQLException {
//根据字段名称从结果集中获取对应的id
int id = rs.getInt("id");
String name = rs.getString("name");
String station = rs.getString("station");
String telephone = rs.getString("telephone");
String address = rs.getString("address");
String decidedzone_id = rs.getString("decidedzone_id");
return new Customer(id, name, station, telephone, address, decidedzone_id);
}
});
return list;
}
客户端源码
//注入crm代理对象
@Autowired
private ICustomerService proxy;
public String findListNotAssociation() throws Exception{
List<Customer> list = proxy.findListNotAssociation();
//java对象转json的工具
this.java4Json(list, new String[]{});
return NONE;
}
网上找了说参数为null,可是这个方法不需要传参。不知道问题出哪里了,各位兄弟姐妹帮忙诊断诊断,谢谢。