Response was of unexpected text/html ContentType问题 谢谢解答!

518 views
Skip to first unread message

toy...@gmail.com

unread,
Mar 31, 2009, 1:55:54 AM3/31/09
to cxf-zh
环境jdk1.5 websphere6
2009-3-31 10:37:46 org.apache.cxf.phase.PhaseInterceptorChain
doIntercept
信息: Interceptor has thrown exception, unwinding now Response was of
unexpected text/html ContentType. Incoming portion of HTML stream:
Error 500: javax.activation.DataSource

Exception in thread "main" javax.xml.ws.soap.SOAPFaultException:
Response was of unexpected text/html ContentType. Incoming portion of
HTML stream: Error 500: javax.activation.DataSource

at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:
145)
at $Proxy46.sayHello(Unknown Source)
at com.tokens.cxf.client.ClientTest.main(ClientTest.java:21)
Caused by: org.apache.cxf.interceptor.Fault: Response was of
unexpected text/html ContentType. Incoming portion of HTML stream:
Error 500: javax.activation.DataSource

at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage
(StaxInInterceptor.java:73)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept
(PhaseInterceptorChain.java:226)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:641)
at org.apache.cxf.transport.http.HTTPConduit
$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2102)
at org.apache.cxf.transport.http.HTTPConduit
$WrappedOutputStream.handleResponse(HTTPConduit.java:1980)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close
(HTTPConduit.java:1905)
at org.apache.cxf.transport.AbstractConduit.close
(AbstractConduit.java:66)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:
600)
at org.apache.cxf.interceptor.MessageSenderInterceptor
$MessageSenderEndingInterceptor.handleMessage
(MessageSenderInterceptor.java:62)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept
(PhaseInterceptorChain.java:226)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:469)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:299)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:251)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:
73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:
124)
... 2 more

姜宁

unread,
Apr 1, 2009, 12:24:56 AM4/1/09
to cxf-zh
可否检查一下你调用WebService的请求信息和返回信息?
从stack trace 来看应该是CXF client 在解析返回信息的时候出现错误了。

姜宁 (Willem)
------------------
Apache CXF, Apache Camel committer
http://willemjiang.blogspot.com/
Reply all
Reply to author
Forward
0 new messages