cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Tam (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-2503) ConcurrentModificationException thrown by AttachmentDeserializer
Date Wed, 28 Oct 2009 14:40:59 GMT

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

William Tam updated CXF-2503:
-----------------------------

    Fix Version/s: 2.3
                   2.2.5
                   2.1.8

> ConcurrentModificationException thrown by AttachmentDeserializer
> ----------------------------------------------------------------
>
>                 Key: CXF-2503
>                 URL: https://issues.apache.org/jira/browse/CXF-2503
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>            Reporter: William Tam
>             Fix For: 2.1.8, 2.2.5, 2.3
>
>
> The follow stack (based on 2.2.x source) shows AttachmentDeserializer.cacheStreamedAttachments
(1) is looping on the LazyAttachmentCollection.attachments List.
> for (Attachment a : attachments.getLoadedAttachments()) {
>  ...
> }
> And, DelegatingInputStream.close() (2) triggers LazyAttachmentCollection.hasNext() (3)
to insert new item to LazyAttachmentCollection.attachments List which causes ConcurrentModificationException
> Thread [main] (Suspended)	
> (3)	LazyAttachmentCollection.hasNext() line: 64	
> 	AttachmentDeserializer.markClosed(DelegatingInputStream) line: 319	
> (2)	DelegatingInputStream.close() line: 47	
> 	AttachmentDataSource.cache() line: 51	
> (1)	AttachmentDeserializer.cacheStreamedAttachments() line: 227	
> 	AttachmentDeserializer.readNext() line: 192	
> 	LazyAttachmentCollection.loadAll() line: 52	
> 	LazyAttachmentCollection.size() line: 108	

-- 
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