异常处理方法:The input stream for an incoming message is null.
2009-11-08 19:14
309 查看
做Web services技术作业的时候,遇到了这个异常。通过查找相关资料,终于解决了,详情见[1]。
异常描述:
org.apache.axis2.AxisFault: The input stream for an incoming message is null.
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:92)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
ADB Client的解决方法:
// stub 是利用Axis2 wsdl2java命令生成的*Stub.java类的实例
stub._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED,"false");
这句话的作用是,设置ADB Client不使用Chunked Encoding。原因是.NET Development Server很可能不支持HTTP 1.1的Chunked Encoding。因此,将这个开关置为FALSE。
[1] 中还提到了如何解决JAXWS Client的上述异常问题,研究中... ...
[1] http://old.nabble.com/The-input-stream-for-an-incoming-message-is-null-td24067861.html
异常描述:
org.apache.axis2.AxisFault: The input stream for an incoming message is null.
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:92)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
ADB Client的解决方法:
// stub 是利用Axis2 wsdl2java命令生成的*Stub.java类的实例
stub._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED,"false");
这句话的作用是,设置ADB Client不使用Chunked Encoding。原因是.NET Development Server很可能不支持HTTP 1.1的Chunked Encoding。因此,将这个开关置为FALSE。
[1] 中还提到了如何解决JAXWS Client的上述异常问题,研究中... ...
[1] http://old.nabble.com/The-input-stream-for-an-incoming-message-is-null-td24067861.html
相关文章推荐
- org.apache.axis2.AxisFault: The input stream for an incoming message is null.
- org.apache.axis2.AxisFault: The input stream for an incoming message is null.
- org.apache.axis2.AxisFault: The input stream for an incoming message is null
- org.apache.axis2.AxisFault: The input stream for an incoming message is null
- Dialog Unable to add window -- token null is not for an application错误的解决方法
- Unable to add window -- token null is not for an application错误的解决方法 android开发
- Tasker to stop Poweramp control for the headset while there is an incoming SMS - frozen
- 处理编译错误"0" is an invalid value for the "DebugInformation" parameter of the "DCC"
- 处理编译错误"0" is an invalid value for the "DebugInformation" parameter of the "DCC" task.
- Android开发之关于“Unable to add window - token null is not for an application ”的异常
- The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. 异常的处理方法
- Unable to add window -- token null is not for an application错误的解决方法
- Unable to add window -- token null is not for an application错误的解决方法
- Unable to add window -- token null is not for an application错误的解决方法 android开发
- Unable to add window -- token null is not for an application错误的解决方法
- 对于Name属性没有get/set方法引起的:target is null for setProperty(null, "x", [Ljava.lang.String;@1a48515)异常
- 关于 Unable to add window -- token null is not for an application 错误的解决方法
- Error 47 "xxxxxxx"is an invalid value for the "InputManifest" parameter of the "GenerateApplicationM
- WindowManager$BadTokenException——token null is not for an application解决方法
- 异常:target is null for setProperty(null, "x", [Ljava.lang.String;@1a48515)解决方法之一