我正在使用axis客户端来调用SOAP服务。
_call.invoke(new java.lang.Object[] {orderInfo_MT});
我在执行上述代码时遇到异常。
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
这段代码以前工作得很好,不知道为什么它现在坏了。 我们有一个过期的证书,因此将过期的证书替换为有效证书。但我不确定新证书与此问题之间是否存在任何关联。
有人可以就此问题提供一些意见吗?
从catalina日志更新附加日志..
DECRYPTION后的填充明文:len = 32 0000:01 00 B2 B9 73 FE 93 14 A5 3F DD 37 99 C6 40 74 .... s ....?。7 .. @ t 0010:DE E9 77 AB F2 E5 09 09 09 09 09 09 09 09 09 .. w ............. http:9080-1,RECV TLSv1 ALERT:警告,close_notify http-9080-1,调用 closeInternal(false)http-9080-1,SEND TLSv1警告:警告, description = close_notify ENCRYPTION之前的填充明文:len = 32 0000:01 00 DA F5 38 5F 4D A5 ED 1B FF 8A 59 8C 6B F3 .... 8_M ..... Y.k。 0010:68 14 8B D4 09 61 09 09 09 09 09 09 09 09 09 09 h .... a .......... http-9080-1,WRITE:TLSv1 Alert,length = 32 [Raw 写]:长度= 37 0000:15 03 01 00 20 8C B0 D8 D3 B9 56 50 76 8E C0 FB ...... ..... VPv ... 0010:4E D7 37 86 69 BB 8C 72 11 AF 3E A7 1F CE 71 58 N.7.i..r ..> ... qX 0020:AE 14 8A 9C 9B
..... http-9080-1,名为closeSocket(selfInitiated)http-9080-1, 叫close()http-9080-1,名为closeInternal(true)AxisFault faultCode:{http://xml.apache.org/axis/} HTTP faultSubcode: faultString:(401)未经授权的faultActor:faultNode:
faultDetail:{}:返回代码:401{http://xml.apache.org/axis/} HttpErrorCode:401
(401)未经授权 在org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744) 在org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144) 在org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) 在org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) 在org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) 在org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) 在org.apache.axis.client.Call.invokeEngine(Call.java:2784) 在org.apache.axis.client.Call.invoke(Call.java:2767) 在org.apache.axis.client.Call.invoke(Call.java:2443) 在org.apache.axis.client.Call.invoke(Call.java:2366) 在org.apache.axis.client.Call.invoke(Call.java:1812) 在org.worldbank.eservices.internal_order_processing.OrderInformation_MIBindingStub.orderInformation_MI(OrderInformation_MIBindingStub.java:182) 在org.worldbank.ecommerce.service.backend.PIIntegration.invokePIWebservice(PIIntegration.java:75) 在org.worldbank.ecommerce.service.backend.PIIntegration.invokePIWebservice(PIIntegration.java:97) at org.worldbank.eservicesadaptors.webservices.services.OrderXiPostingService.OrderXiPostingServiceSoapBindingImpl.eServicesOrderXiPosting(OrderXiPostingServiceSoapBindingImpl.java:45) 在org.worldbank.eservicesadaptors.webservices.services.OrderXiPostingService.OrderXiPostingServiceSoapBindingSkeleton.eServicesOrderXiPosting(OrderXiPostingServiceSoapBindingSkeleton.java:56) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) 在org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397) 在org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186) 在org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) 在org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) 在org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) 在org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) 在org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454) 在org.apache.axis.server.AxisServer.invoke(AxisServer.java:281) 在org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:637) 在org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) 在org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) 在org.apache.coyote.http11.Http11Protocol $ Http11ConnectionHandler.process(Http11Protocol.java:602) 在org.apache.tomcat.util.net.JIoEndpoint $ Worker.run(JIoEndpoint.java:489) 在java.lang.Thread.run(Thread.java:745)