简体   繁体   English

org.apache.cxf.interceptor.Fault:无法发送消息。 引起:java.io.IOException: IOException invoking Service: Authentication failure

[英]org.apache.cxf.interceptor.Fault: Could not send Message. Caused by: java.io.IOException: IOException invoking Service: Authentication failure

I am getting the following error when I try to call my service当我尝试调用我的服务时出现以下错误

WARNING: Interceptor for {http://schemas.microsoft.com/dynamics/2008/01/services}CustomerService#{http://schemas.microsoft.com/dynamics/2008/01/services}read has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
    at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
    at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:535)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:465)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:368)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:321)
    at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:88)
    at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)
    at $Proxy32.read(Unknown Source)
    at com.attunix.axclientcxf.AXTestCustomerService.ReadCustomer(AXTestCustomerService.java:210)
    at com.attunix.axclientcxf.AXTestCustomerService.Read(AXTestCustomerService.java:105)
    at com.attunix.axclientcxf.AXTestCustomerService.Read(AXTestCustomerService.java:116)
    at com.attunix.axclientcxf.TestAXClientCXF.Read(TestAXClientCXF.java:94)
    at com.attunix.axclientcxf.TestAXClientCXF.main(TestAXClientCXF.java:74)
Caused by: java.io.IOException: IOException invoking http://daxuataif1.int.fusionio.com/MicrosoftDynamicsAXAif50/customerservice.svc: Authentication failure
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1431)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1416)
    at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
    at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:649)
    at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
    ... 13 more
Caused by: java.io.IOException: Authentication failure
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1296)

I verified the username and password and they seem to be correct.我验证了用户名和密码,它们似乎是正确的。 I am clueless about why it returns an authentication failure.我对它为什么返回身份验证失败一无所知。 Any leads would be helpful.Thanks.任何线索都会有所帮助。谢谢。

Check if the time out is enough for the connection.检查超时是否足以连接。 Set it to 0.将其设置为 0。

HTTPClientPolicy policy = new HTTPClientPolicy();
policy.setReceiveTimeout(0);
//and or 
policy.setConnectionTimeout(0);

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 CXF:org.apache.cxf.interceptor.Fault:调用时arguments的编号错误 - CXF : org.apache.cxf.interceptor.Fault: wrong number of arguments while invoking CXF 2.7.7 org.apache.cxf.interceptor.Fault:意外元素 - CXF 2.7.7 org.apache.cxf.interceptor.Fault: Unexpected element org.apache.cxf.interceptor.Fault:[警告] org.eclipse.jetty.io.EofException:超时 - org.apache.cxf.interceptor.Fault: [warning] org.eclipse.jetty.io.EofException: timeout 错误原因:java.io.IOException:{“错误”:{“代码”:403,“消息”:“权限被拒绝。无法执行此操作”}} - error Caused by: java.io.IOException: { "error": { "code": 403, "message": "Permission denied. Could not perform this operation" }} org.apache.cxf.interceptor.Fault:编组错误:null - org.apache.cxf.interceptor.Fault: Marshalling Error: null org.apache.cxf.interceptor.Fault:无法初始化类net.sf.cglib.proxy.Enhancer - org.apache.cxf.interceptor.Fault: Could not initialize class net.sf.cglib.proxy.Enhancer java.io.IOException:org.apache.camel.NoTypeConversionAvailableException - java.io.IOException: org.apache.camel.NoTypeConversionAvailableException Apache Parquet 无法读取页脚:java.io.IOException: - Apache Parquet Could not read footer: java.io.IOException: Jboss Web服务:错误:java.io.IOException:无法传输消息 - Jboss Web Service:Error :java.io.IOException: Could not transmit message java.io.IOException:未找到身份验证质询 - java.io.IOException : No authentication challenges found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM