cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-2381) Attachments gone when in Multi-Threaded client
Date Wed, 05 Aug 2009 19:48:14 GMT

     [ https://issues.apache.org/jira/browse/CXF-2381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Kulp resolved CXF-2381.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.4
                   2.1.7
         Assignee: Daniel Kulp

> Attachments gone when in Multi-Threaded client
> ----------------------------------------------
>
>                 Key: CXF-2381
>                 URL: https://issues.apache.org/jira/browse/CXF-2381
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>            Reporter: Jens Riemschneider
>            Assignee: Daniel Kulp
>             Fix For: 2.1.7, 2.2.4
>
>
> Multi-Threaded client using a web-services that returns one or multiple attachments (MTOM).
Client stubs are not shared between threads. HTTP-Binding and WS-Addressing is used.
> From time to time attachments are missing is the response. After playing around with
this for some time I found that data that is read from the PushbackInputStream often gets
unread shortly afterwards. When the problem occurred this did not happen, causing the AttachmentDeserializer
to "think" that there are fewer attachments. After more digging, I found this member in HTTPConduit:
>     private static final byte BUFFER[] = new byte[1024];
> This is only used in the HTTPConduit.close(). However, it is shared between all instances
of HTTPConduit and it seems to be possible that close() gets called by multiple threads. Ensuring
that the buffer is created within close() seems to solve the problem, however, there are most
likely better solutions to this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message