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 3555110ABF for ; Wed, 13 Nov 2013 14:25:40 +0000 (UTC) Received: (qmail 37665 invoked by uid 500); 13 Nov 2013 14:25:35 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 37426 invoked by uid 500); 13 Nov 2013 14:25:30 -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 37314 invoked by uid 99); 13 Nov 2013 14:25:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Nov 2013 14:25:25 +0000 Date: Wed, 13 Nov 2013 14:25:25 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-5373) Issue resolving AsynchResponse 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-5373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13821372#comment-13821372 ] Sergey Beryozkin commented on CXF-5373: --------------------------------------- The fix is on the trunk, committing to CXF 2.7.x a bit later, http://svn.apache.org/r1541532 Dan, does it look OK to you ? Thanks, Sergey > Issue resolving AsynchResponse > ------------------------------ > > Key: CXF-5373 > URL: https://issues.apache.org/jira/browse/CXF-5373 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 2.7.7 > Reporter: Sridhar Jonnalagadda > Attachments: sampleCXF.zip > > > Spring config > > JAX-RS server config > > > > > > > > > Java End-Point > @POST > @Path("/createToken/{fileName}") > @Produces(MediaType.APPLICATION_FORM_URLENCODED) > //http://localhost:8000/contentGateway/integrationServices/tokenService/createToken/{fileName} > public void createToken(@PathParam("fileName")final String fileName, final AsyncResponse asyncResponse){ > validateInput(fileName); > final String randomUUID = UUID.randomUUID().toString(); > this.tokenRepository.storeToken(randomUUID.toString(),fileName); > asyncResponse.resume(randomUUID); > > } > JAXRSUtils.java : 766- 767 > if (parameterClass == AsyncResponse.class) { > return new AsyncResponseImpl(message); > } > AsyncResponseImpl 53 - 59 > public AsyncResponseImpl(Message inMessage) { > inMessage.put(AsyncResponse.class, this); > inMessage.getExchange().put(ContinuationCallback.class, this); > this.inMessage = inMessage; > > initContinuation(); > } > Line: 55 > inMessage.getExchange().put(ContinuationCallback.class, this); > JAXRSInvoker.java : Line 86 > AsyncResponse asyncResp = exchange.get(AsyncResponse.class); > Will always yield null, Since when setting the key will be for ContinuationCallback and when retrieving it will be for AsyncResponse -- This message was sent by Atlassian JIRA (v6.1#6144)