javax.ws.rs.ProcessingException

java.lang.ClassCastException: org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduit$AsyncWrappedOutputStream$1 cannot be cast to org.apache.cxf.io.CachedOutputStream

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via Unknown by Anthony Communier,
  • Stack trace

    • javax.ws.rs.ProcessingException: java.lang.ClassCastException: org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduit$AsyncWrappedOutputStream$1 cannot be cast to org.apache.cxf.io.CachedOutputStream at org.apache.cxf.jaxrs.client.WebClient.handleAsyncResponse(WebClient.java:1010)[cxf-rt-rs-client-3.0.0.jar:3.0.0] at org.apache.cxf.jaxrs.client.WebClient.access$100(WebClient.java:81)[cxf-rt-rs-client-3.0.0.jar:3.0.0] at org.apache.cxf.jaxrs.client.WebClient$ClientAsyncResponseInterceptor.handleMessage(WebClient.java:1298)[cxf-rt-rs-client-3.0.0.jar:3.0.0] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)[cxf-core-3.0.0.jar:3.0.0] at org.apache.cxf.jaxrs.client.ClientMessageObserver.onMessage(ClientMessageObserver.java:56)[cxf-rt-rs-client-3.0.0.jar:3.0.0] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream$1.run(HTTPConduit.java:1154)[cxf-rt-transports-http-3.0.0.jar:3.0.0] at org.apache.cxf.workqueue.AutomaticWorkQueueImpl$3.run(AutomaticWorkQueueImpl.java:428)[cxf-core-3.0.0.jar:3.0.0] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_25] at org.apache.cxf.workqueue.AutomaticWorkQueueImpl$AWQThreadFactory$1.run(AutomaticWorkQueueImpl.java:353)[cxf-core-3.0.0.jar:3.0.0] at java.lang.Thread.run(Thread.java:724)[na:1.7.0_25] Caused by: java.lang.ClassCastException: org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduit$AsyncWrappedOutputStream$1 cannot be cast to org.apache.cxf.io.CachedOutputStream at org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduit$AsyncWrappedOutputStream.close(AsyncHTTPConduit.java:397)[cxf-rt-transports-http-hc-3.0.0.jar:3.0.0] at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)[cxf-core-3.0.0.jar:3.0.0] at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:638)[cxf-rt-transports-http-3.0.0.jar:3.0.0] at org.apache.cxf.endpoint.AbstractConduitSelector.complete(AbstractConduitSelector.java:209)[cxf-core-3.0.0.jar:3.0.0] at org.apache.cxf.jaxrs.client.AbstractClient.preProcessResult(AbstractClient.java:534)[cxf-rt-rs-client-3.0.0.jar:3.0.0] at org.apache.cxf.jaxrs.client.WebClient.handleAsyncResponse(WebClient.java:1005)[cxf-rt-rs-client-3.0.0.jar:3.0.0] ... 10 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.