2 yj734653690 yj734653690 于 2017.09.11 12:46 提问

调用接口报错(接口正常,代码正确)

Connected to the target VM, address: '127.0.0.1:62957', transport: 'socket'
javax.xml.ws.soap.SOAPFaultException: 认证错误
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:158)
at com.sun.proxy.$Proxy40.callBusiness(Unknown Source)
at com.yinhai.rsgl.common.basedb.uti.SendMsgUtil.sendMsg(SendMsgUtil.java:36)
at com.yinhai.rsgl.common.basedb.uti.SendMsgUtil.main(SendMsgUtil.java:15)
Caused by: org.apache.cxf.binding.soap.SoapFault: 认证错误
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:84)
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:51)
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:40)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113)
at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:845)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1624)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1513)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1318)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:632)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:570)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:479)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:136)
... 3 more
Disconnected from the target VM, address: '127.0.0.1:62957', transport: 'socket'

Process finished with exit code 0

3个回答

KwaiSZ
KwaiSZ   2017.09.11 14:25
已采纳

webservice啊,很少用,不过看样子可能是jar包冲突啊!

yj734653690
yj734653690 这边初步判断也是JAR包冲突 但是不知道怎么解决这个冲突的问题
2 个月之前 回复
ly99991111
ly99991111   2017.09.11 14:27

先ping一下,先看网络是否好用,如果好用再试一下另一端是否启动了。

yj734653690
yj734653690 是好的,接口正常启用,后台代码也是正确的,jar包冲突很有可能,但是不知道怎么解决这个问题
2 个月之前 回复
yj734653690
yj734653690   2017.10.09 11:51

接口名称不一致导致认证错误

Csdn user default icon
上传中...
上传图片
插入图片