Gientxk 2017-12-08 02:31 采纳率: 50%
浏览 9963

webservice异常:Fault occurred while processing.

异常部分信息:
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,可是这个方法不需要传参。不知道问题出哪里了,各位兄弟姐妹帮忙诊断诊断,谢谢。

  • 写回答

2条回答 默认 最新

  • Gientxk 2017-12-08 09:13
    关注

    终于解决了!
    服务端中cxf.xml中没有注入JdbcTemplate对象
    图片说明

    评论

报告相同问题?

悬赏问题

  • ¥15 nginx中的CORS策略应该如何配置
  • ¥30 信号与系统实验:采样定理分析
  • ¥100 我想找人帮我写Python 的股票分析代码,有意请加mathtao
  • ¥20 Vite 打包的 Vue3 组件库,图标无法显示
  • ¥15 php 同步电商平台多个店铺增量订单和订单状态
  • ¥15 关于logstash转发日志时发生的部分内容丢失问题
  • ¥17 pro*C预编译“闪回查询”报错SCN不能识别
  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题