You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Phil Gibbs <ra...@bellsouth.net> on 2008/02/05 20:04:27 UTC
Exception running sample pojo service
I'm getting this exception when i run the pojo sample right after the Invoke
sayHi()....
Feb 5, 2008 1:56:55 PM org.apache.cxf.phase.PhaseInterceptorChain
doIntercept
INFO: Interceptor 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:207)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.frontend.ClientProxy.invoke(ClientProxy.java:68)
at $Proxy15.sayHi(Unknown Source)
at demo.hw.client.Client.main(Client.java:52)
Caused by: java.io.IOException: /Hello
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1888)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1791)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:575)
at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
... 7 more
I've deployed to Tomcat 6.
Anybody else seen this behaviour - is it me, or is it a bug, or both?
--
View this message in context: http://www.nabble.com/Exception-running-sample-pojo-service-tp15297052p15297052.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: Exception running sample pojo service
Posted by Daniel Kulp <dk...@apache.org>.
Are there any exceptions in the catalina.out or other logs on the tomcat
side? It looks like it's having problems talking to tomcat.
Actually, how are you running the client? It looks like you are
using "ant client" instead of "ant client-servlet". When run outside
of a servlet engine, the URL is different (http://localhost:9000/Hello
compared to http://localhost:8080/helloworld/services/hello_world) so
you have to use client-servlet target to get it to set the appropriate
URL to use.
Dan
On Tuesday 05 February 2008, Phil Gibbs wrote:
> I'm getting this exception when i run the pojo sample right after the
> Invoke sayHi()....
>
> Feb 5, 2008 1:56:55 PM org.apache.cxf.phase.PhaseInterceptorChain
> doIntercept
> INFO: Interceptor has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: Could not send Message.
> at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndin
>gInterceptor.handleMessage(MessageSenderInterceptor.java:64) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercepto
>rChain.java:207) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222) at
> org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at
> org.apache.cxf.frontend.ClientProxy.invoke(ClientProxy.java:68) at
> $Proxy15.sayHi(Unknown Source)
> at demo.hw.client.Client.main(Client.java:52)
> Caused by: java.io.IOException: /Hello
> at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleRe
>sponse(HTTPConduit.java:1888) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HT
>TPConduit.java:1791) at
> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66
>) at
> org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:575)
> at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndin
>gInterceptor.handleMessage(MessageSenderInterceptor.java:62) ... 7 more
>
> I've deployed to Tomcat 6.
> Anybody else seen this behaviour - is it me, or is it a bug, or both?
--
J. Daniel Kulp
Principal Engineer, IONA
dkulp@apache.org
http://www.dankulp.com/blog