Error execution of a client web service with CXF using java configuration

View: New views
2 Messages — Rating Filter:   Alert me  

Error execution of a client web service with CXF using java configuration

by wonderbox :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have found an error when i run a client web service with CXF using a java configuration and this client web service was run on a Mule Server  :
Error is :

"http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html"   part Using java code

the error is :

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.cxf.message.Exchange.isSynchronous()Z
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1939)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1867)
        at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:595)
        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242)
        at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:178)
        at $Proxy42.otaHotelAvailRQ(Unknown Source)
        at e_commerce.wonderbox.ota.HotelServiceWsClient.main(HotelServiceWsClient.java:72)

Where is the problem ?

Re: Error execution of a client web service with CXF using java configuration

by Andrew Perepelytsya :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

An error in the classpath, some different version of cxf is used than the one which comes with Mule.

HTH,
Andrew