Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 9528 invoked from network); 28 Oct 2009 00:30:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Oct 2009 00:30:23 -0000 Received: (qmail 4589 invoked by uid 500); 28 Oct 2009 00:30:23 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 4533 invoked by uid 500); 28 Oct 2009 00:30:23 -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 4233 invoked by uid 99); 28 Oct 2009 00:30:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Oct 2009 00:30:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Oct 2009 00:30:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 71931234C052 for ; Tue, 27 Oct 2009 17:29:59 -0700 (PDT) Message-ID: <1619306476.1256689799464.JavaMail.jira@brutus> Date: Wed, 28 Oct 2009 00:29:59 +0000 (UTC) From: "William Tam (JIRA)" To: issues@cxf.apache.org Subject: [jira] Updated: (CXF-2503) ConcurrentModificationException thrown by AttachmentDeserializer In-Reply-To: <1196403672.1256683739523.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-2503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] William Tam updated CXF-2503: ----------------------------- Attachment: (was: CXF-2503.patch) > 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 > > 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.