Hi.
 
I'm using CXF 3.0.4 in client proxy mode, using my server REST interfaces.
In addition I'm using the httpclient cxf module to workaround earlier problems 
with concurrency
under load (as suggested by Sergey in a post some months ago here on the 
mailing list).
 
For Multipart handling I'm using the jersey MultiPart JAX-RS MessageBodyWriter 
on the server
as well as on the client.
 
Under normal circumstances all goes well. But sometimes, especially on the 
startup-phase of the load test,
the CXF client proxy dies with the exception below during a Multipart POST. Any 
clue what might cause this?
 
0f5ba696ffe4 fns-service.log Caused by: org.apache.cxf.interceptor.Fault: No 
message body writer has been found for class 
org.glassfish.jersey.media.multipart.MultiPart, ContentType: multipart/mixed
0f5ba696ffe4 fns-service.log     at 
org.apache.cxf.jaxrs.client.ClientProxyImpl$BodyWriter.doWriteBody(ClientProxyImpl.java:814)
0f5ba696ffe4 fns-service.log     at 
org.apache.cxf.jaxrs.client.AbstractClient$AbstractBodyWriter.handleMessage(AbstractClient.java:1042)
0f5ba696ffe4 fns-service.log     at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
0f5ba696ffe4 fns-service.log     at 
org.apache.cxf.jaxrs.client.AbstractClient.doRunInterceptorChain(AbstractClient.java:624)
0f5ba696ffe4 fns-service.log     at 
org.apache.cxf.jaxrs.client.ClientProxyImpl.doChainedInvocation(ClientProxyImpl.java:674)
0f5ba696ffe4 fns-service.log     at 
org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(ClientProxyImpl.java:224)
0f5ba696ffe4 fns-service.log     at com.sun.proxy.$Proxy484.create(Unknown 
Source)
0f5ba696ffe4 fns-service.log     at my.class.doSomething(MyClass.java:383)
0f5ba696ffe4 fns-service.log     ... 54 more
0f5ba696ffe4 fns-service.log Caused by: javax.ws.rs.ProcessingException: No 
message body writer has been found for class 
org.glassfish.jersey.media.multipart.MultiPart, ContentType: multipart/mixed
0f5ba696ffe4 fns-service.log     at 
org.apache.cxf.jaxrs.client.AbstractClient.reportMessageHandlerProblem(AbstractClient.java:741)
0f5ba696ffe4 fns-service.log     at 
org.apache.cxf.jaxrs.client.AbstractClient.writeBody(AbstractClient.java:470)
0f5ba696ffe4 fns-service.log     at 
org.apache.cxf.jaxrs.client.ClientProxyImpl$BodyWriter.doWriteBody(ClientProxyImpl.java:804)
0f5ba696ffe4 fns-service.log     ... 62 more
0f5ba696ffe4 fns-service.log Caused by: java.lang.NullPointerException
0f5ba696ffe4 fns-service.log     at 
org.apache.cxf.jaxrs.impl.tl.ThreadLocalProviders.getMessageBodyWriter(ThreadLocalProviders.java:46)
0f5ba696ffe4 fns-service.log     at 
org.glassfish.jersey.media.multipart.internal.MultiPartWriter.writeTo(MultiPartWriter.java:222)
0f5ba696ffe4 fns-service.log     at 
org.glassfish.jersey.media.multipart.internal.MultiPartWriter.writeTo(MultiPartWriter.java:79)
0f5ba696ffe4 fns-service.log     at 
org.apache.cxf.jaxrs.utils.JAXRSUtils.writeMessageBody(JAXRSUtils.java:1379)
0f5ba696ffe4 fns-service.log     at 
org.apache.cxf.jaxrs.client.AbstractClient.writeBody(AbstractClient.java:456)
0f5ba696ffe4 fns-service.log     ... 63 more

Reply via email to