CXF javax.xml.ws.soap.SOAPFaultException: Fault occurred while processing

1. Problem Description

After I deployed my CXF web service to testing environment server, when I call one of web service interfaces from client, got this error:

javax.xml.ws.soap.SOAPFaultException: Fault occurred while processing.
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:157)
	at $Proxy57.getBalance(Unknown Source)

However, when I deployed the same war on my local host, everything goes well.

2. Analysis

I googled a lot and tried different means, checklist items includes:

(1) CXF version. Both 2.7.10, negative.

(2) Consistency between client stub and server interface. I regenerated client stub with latest WSDL still negative.

(3) Removed WS-Security dependencies and configurations, still negative.

(4) Removed aspects(For catching IllegalArgumentException.), still negative.

(5) Removed array type in response object, still negative.

3. Solution

In my case, the root cause is testing environment Tomcat's data source didn't be set properly, hence during the web service processing, there were some unexpected exceptions occurred. Correct the data source configuration is the cure.



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值