进行出站呼叫时出现ule子序列化异常 [英] mule- serialization exception while making outbound call
问题描述
我有一个简单的流程,其中包含一个HTTP入站端点.我正在尝试使用http出站并收到以下异常.
I have a simple flow which has an http inbound endpoint. I am trying to consume a http outbound and received the following exception.
我能够直接从SOAP UI使用相同的出站.但是,无法通过M子流调用.
I am able to consume the same outbound directly from SOAP UI. But, unable to call through Mule flow.
java.io.OptionalDataException(org.apache.commons.lang.SerializationException)
java.io.OptionalDataException (org.apache.commons.lang.SerializationException)
来自端点的响应...内部服务器错误,代码:500
Response from the Endpoint ...Internal Server Error, code: 500
INFO 2014-02-17 07:16:41,234 [[updatecustomer].connector.http.mule.default.receiver.02]
org.mule.api.processor.LoggerMessageProcessor: Logger ...in main thread
java.io.OptionalDataException (org.apache.commons.lang.SerializationException)
希望此原始xml有助于识别问题.
Hope this raw xml would be of help to identify issue.
来自SOAP UI输入的原始XML:
POST http://localhost:8080/foo3 HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""
Content-Length: 2044
Host: localhost:8080
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
来自SOAP UI输出的原始XML(同时直接到达端点):
HTTP/1.1 200 OK
Date: Tue, 18 Feb 2014 06:10:56 -0600
Server: Mule Core/3.4.0
Content-Type: text/xml; charset=UTF-8
X-MULE_SESSION: sjkfsdhbbzzzxxxxxxx ....
http.method: POST
X-MULE_ENCODING: UTF-8
Transfer-Encoding: chunked
Connection: close
通过Mule流程访问SOAP UI中的原始XML:
HTTP/1.1 500 Internal Server Error
Content-Type: text/plain
Date: Tue, 18 Feb 2014 06:09:49 -0600
Server: Mule EE Core Extensions/3.4.1
http.status: 500
X-MULE_SESSION: sdkfasdfgsdkgfbsdfkxxxxxxxhshduiaodudyy.....
X-MULE_ENCODING: UTF-8
Content-Length: 78
Connection: close
推荐答案
尝试为HTTP连接器设置NullSessionHandler:
Try setting a NullSessionHandler for the HTTP connector:
<http:connector name="NoSessionConnector">
<service-overrides sessionHandler="org.mule.session.NullSessionHandler" />
</http:connector>
这篇关于进行出站呼叫时出现ule子序列化异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!