Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 536CF1136D for ; Mon, 16 Jun 2014 18:42:03 +0000 (UTC) Received: (qmail 96147 invoked by uid 500); 16 Jun 2014 18:42:03 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 96121 invoked by uid 500); 16 Jun 2014 18:42:03 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 95838 invoked by uid 99); 16 Jun 2014 18:42:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2014 18:42:02 +0000 Date: Mon, 16 Jun 2014 18:42:02 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CXF-5763) ClassCast Exception in AsyncHTTPConduit$AsyncWrappedOutputStream.close() method when using async and HttpAsyncClient MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-5763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp resolved CXF-5763. ------------------------------ Resolution: Fixed Fix Version/s: 3.0.1 Possibly fixed. I couldn't reproduce based on the information here (a test case is really needed), but I did add a check to make sure the stream is only closed once which should prevent this. > ClassCast Exception in AsyncHTTPConduit$AsyncWrappedOutputStream.close() method when using async and HttpAsyncClient > --------------------------------------------------------------------------------------------------------------------- > > Key: CXF-5763 > URL: https://issues.apache.org/jira/browse/CXF-5763 > Project: CXF > Issue Type: Bug > Components: Transports > Affects Versions: 3.0.0 > Environment: Linux > Java 7 > Reporter: Anthony Communier > Assignee: Daniel Kulp > Fix For: 3.0.1 > > Attachments: TestUnsubscribeSM-output.txt, com.capgemini.opentv.mediation.provisioning.customer.test.batchs.actions.statemachines.TestUnsubscribeSM-output.txt > > > Sometimes there is an error on connection close when using async client > 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 common frames omitted -- This message was sent by Atlassian JIRA (v6.2#6252)