Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F32C6200CD7 for ; Tue, 1 Aug 2017 13:34:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EF8F2166DC0; Tue, 1 Aug 2017 11:34:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 41F6A166DBC for ; Tue, 1 Aug 2017 13:34:10 +0200 (CEST) Received: (qmail 11716 invoked by uid 500); 1 Aug 2017 11:34:04 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 11707 invoked by uid 99); 1 Aug 2017 11:34:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2017 11:34:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0BAFEC0352 for ; Tue, 1 Aug 2017 11:34:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 3wuN4W_nqlz2 for ; Tue, 1 Aug 2017 11:34:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 4107C5FE02 for ; Tue, 1 Aug 2017 11:34:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2DFAEE0D45 for ; Tue, 1 Aug 2017 11:34:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6987B24652 for ; Tue, 1 Aug 2017 11:34:00 +0000 (UTC) Date: Tue, 1 Aug 2017 11:34:00 +0000 (UTC) From: "Andrea Cosentino (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (CAMEL-11609) camel-univocity-parsers: marshaller not thread safe MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 01 Aug 2017 11:34:11 -0000 [ https://issues.apache.org/jira/browse/CAMEL-11609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrea Cosentino reassigned CAMEL-11609: ---------------------------------------- Assignee: Andrea Cosentino > camel-univocity-parsers: marshaller not thread safe > --------------------------------------------------- > > Key: CAMEL-11609 > URL: https://issues.apache.org/jira/browse/CAMEL-11609 > Project: Camel > Issue Type: Bug > Components: camel-csv > Affects Versions: 2.19.1 > Reporter: Daniel Baldes > Assignee: Andrea Cosentino > Fix For: 2.20.0 > > > org.apache.camel.dataformat.univocity.Marshaller.java is not thread safe. > When this.adaptheaders is true, this.headers is modified in the wirteRow() method. This can lead to ConcurrentModificationExceptions (see below) and jumbled headers, occasionally. > I use a {{UnivocityCsvDataFormat}} for marshalling CSV in a route which is called in parallel. The DataFormat creates a Marshaller with adaptheaders == true when headers are not specified in the format. > {code}java.util.ConcurrentModificationException: null > at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:719) > at java.util.LinkedHashMap$LinkedKeyIterator.next(LinkedHashMap.java:742) > at org.apache.camel.dataformat.univocity.Marshaller.writeRow(Marshaller.java:95) > at org.apache.camel.dataformat.univocity.Marshaller.marshal(Marshaller.java:67) > at org.apache.camel.dataformat.univocity.AbstractUniVocityDataFormat.marshal(AbstractUniVocityDataFormat.java:94) > at org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:69) > at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) > at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:541) > at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:198) > at org.apache.camel.processor.Pipeline.process(Pipeline.java:120) > at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) > at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:198) > at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) > at org.apache.camel.processor.SendDynamicProcessor$1.doInAsyncProducer(SendDynamicProcessor.java:124) > at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:436) > at org.apache.camel.processor.SendDynamicProcessor.process(SendDynamicProcessor.java:119) > at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:541) > at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:198) > at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97) > at org.apache.camel.processor.WireTapProcessor$1.call(WireTapProcessor.java:137) > at org.apache.camel.processor.WireTapProcessor$1.call(WireTapProcessor.java:133) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:748) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)