You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Kasim Sert (Ibtech-Software Infrastructure)" <ka...@ibtech.com.tr> on 2016/05/13 06:38:16 UTC

ConcurrentModificationException during route listing

Hi,

I am using camel version 2.15.1. Sometimes I see ConcurrentModificationException in logs with following trace. With test case of adding and listing routes  concurrently I could not regenerate exception. Any idea about reason ?

Trace :

java.util.ConcurrentModificationException
        at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:406)
        at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:417)
        at java.util.AbstractCollection.toArray(AbstractCollection.java:153)
        at java.util.ArrayList.<init>(ArrayList.java:176)
        at org.apache.camel.impl.DefaultCamelContext.getRoutes(DefaultCamelContext.java:695)
        at org.apache.camel.impl.DefaultCamelContext.getRoute(DefaultCamelContext.java:701)
        at com.mft.MftTransferDynamicPipelineRouteBuilder.calculateTransfersOfSingleSourceRefCompleteRoute(MftTransferDynamicPipelineRouteBuilder.java:218)
        at sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
        at java.lang.reflect.Method.invoke(Method.java:620)
        at org.apache.camel.component.bean.MethodInfo.invoke(MethodInfo.java:408)
        at org.apache.camel.component.bean.MethodInfo$1.doProceed(MethodInfo.java:279)
        at org.apache.camel.component.bean.MethodInfo$1.proceed(MethodInfo.java:252)
        at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:171)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)
        at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java





        Message History
        ---------------------------------------------------------------------------------------------------------------------------------------
        RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
        [route24           ] [route24           ] [direct://FT_EXPORT_FILE                                                       ] [     34933]
        [route32           ] [to112             ] [direct:transferSourceSet_split_paralel_sub                                    ] [       823]
        [route33           ] [bean207           ] [bean[com.mft.helper.CommonHelper]                                  ] [         0]
        [route33           ] [doTry5            ] [doTry                                                                         ] [       823]
        [route33           ] [setHeader54       ] [setHeader[xfr]                                                                ] [         0]
        [route33           ] [bean208           ] [bean[com.mft.helper.CommonHelper]                                  ] [         1]
        [route33           ] [to113             ] [direct:transferSourceReference                                                ] [       823]
        [route35           ] [doTry7            ] [doTry                                                                         ] [       620]
        [route35           ] [to117             ] [direct:receiveFile                                                            ] [       620]
        [route37           ] [dynamicRouter2    ] [dynamicRouter[bean{com.mft.MftTransferDynamicPipelineRouteBuilder, ] [       620]
        [direct:dstrouter_r] [bean2295          ] [bean[com.mft.helper.CommonHelper]                                  ] [         0]
        [direct:dstrouter_r] [bean2296          ] [bean[bean{com.mft.MftLog, method=setLogStatus(${body},0, s)}]      ] [        25]
        [direct:dstrouter_r] [to1527            ] [direct:checkActivity                                                          ] [         0]
        [route47           ] [bean218           ] [bean[bean{com.mft.helper.CommonHelper, method=checkActivity(${body}] [         0]
        [direct:dstrouter_r] [bean2297          ] [bean[bean{com.mft.MftLog, method=setLogStatus(${body},1, s)}]      ] [        16]
        [direct:dstrouter_r] [to1528            ] [direct:preReceiveCheck                                                        ] [         1]
        [route43           ] [bean214           ] [bean[bean{com.mft.helper.CommonHelper, method=preReceiveCheck(${bod] [         1]
        [direct:dstrouter_r] [to1529            ] [direct:cr_download                                                            ] [       508]
        [route77           ] [bean248           ] [bean[com.mft.ep.cr.CREndpointController@500a7290]                  ] [       508]
        [direct:dstrouter_r] [to1530            ] [direct:postReceiveCheck                                                       ] [         0]
        [route44           ] [bean215           ] [bean[bean{com.mft.helper.CommonHelper, method=postReceiveCheck(${bo] [         0]
        [direct:dstrouter_r] [bean2298          ] [bean[bean{com.mft.MftLog, method=setLogStatus(${body},2, s)}]      ] [        41]
        [direct:dstrouter_r] [bean2299          ] [bean[com.mft.helper.CommonHelper]                                  ] [         0]
        [direct:dstrouter_r] [bean2300          ] [bean[bean{com.mft.MftLog, method=setLogStatus(${body},13, s)}]     ] [        29]
        [route35           ] [choice4           ] [when[simple{Simple: ${body.getLog.getSourceLog.isParked}}]choice[]            ] [       207]
        [route35           ] [bean213           ] [bean[com.mft.MftTransferItemBuilder]                               ] [        30]
        [route35           ] [to119             ] [direct:runTransfers                                                           ] [       164]
        [route36           ] [split8            ] [split[{body}]                                                                 ] [       163]
        [route35           ] [setBody49         ] [setBody[simple{Simple: ${header[xfr]}}]                                       ] [         0]
        [route35           ] [dynamicRouter1    ] [dynamicRouter[bean{com.mft.MftTransferDynamicPipelineRouteBuilder,            ] [         7]




[Facebook]<http://www.facebook.com/Finansbank>  [Twitter] <http://twitter.com/finansbank>

[https://www.finansbank.com.tr/Disclaimer/BannerImages.aspx?date=13.05.201609:3800]<https://www.finansbank.com.tr/Disclaimer/Bannerlink.aspx?date=13.05.201609:3800>


Bu e-posta'n?n i?erdi?i bilgiler (ekleri dahil olmak ?zere) gizlidir. Onay?m?z olmaks?z?n ???nc? ki?ilere a?iklanamaz. Bu mesaj?n g?nderilmek istendi?i ki?i de?ilseniz, l?tfen mesaj? sisteminizden derhal siliniz. IBTech A.?. bu mesaj?n i?erdi?i bilgilerin do?rulu?u veya eksiksiz oldu?u konusunda bir garanti vermemektedir. Bu nedenle bilgilerin ne ?ekilde olursa olsun i?eri?inden, iletilmesinden, al?nmas?ndan, saklanmas?ndan sorumlu de?ildir. Bu mesaj?n i?eri?i yazar?na ait olup, IBTech A.?.'nin g?r??lerini i?ermeyebilir.

The information contained in this e-mail (including any attachments)is confidential. It must not be disclosed to any person without our authority. If you are not the intended recipient, please delete it from your system immediately. IBTech A.S. makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained therein or for the information transmission, reception, storage or use of such in any way whatsoever. Any opinions expressed in this message are those of the author and may not necessarily reflect the opinions of IBTech A.S.

Re: ConcurrentModificationException during route listing

Posted by onders <on...@gmail.com>.
ConcurrentModificationException happens to be due the fact that you are
trying to modify the collection whereas you are traversing it.
It's hard to help you unless we know some details of design of your route.
If you can provide details, we can give it a shot..



--
View this message in context: http://camel.465427.n5.nabble.com/ConcurrentModificationException-during-route-listing-tp5782525p5782737.html
Sent from the Camel - Users mailing list archive at Nabble.com.