cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sridhar Jonnalagadda (JIRA)" <>
Subject [jira] [Created] (CXF-5373) Issue resolving AsynchResponse
Date Fri, 01 Nov 2013 19:24:17 GMT
Sridhar Jonnalagadda created CXF-5373:

             Summary: Issue resolving AsynchResponse
                 Key: CXF-5373
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 2.7.7
            Reporter: Sridhar Jonnalagadda

Spring config

 <task:executor id="servicePool" pool-size="1" queue-capacity="${}"/>

JAX-RS server config

   <jaxrs:server id="restContainer"  address="/" >
             <ref bean="servicePool"/>
            <ref bean="tokenService" />

Java End-Point

    public void createToken(@PathParam("fileName")final String fileName, final AsyncResponse
       final String randomUUID = UUID.randomUUID().toString();
    } : 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;

Line: 55

inMessage.getExchange().put(ContinuationCallback.class, this); : 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

View raw message