i have a Soap-Reference-Binding called from a camel-split processor (parallelProcessing=true), but sometimes it faults with:
Caused by: javax.xml.soap.SOAPException: SWITCHYARD035408: Failed to map context properties to SOAP message |
at org.switchyard.component.soap.composer.SOAPMessageComposer.decompose(SOAPMessageComposer.java:278) [switchyard-component-soap-2.1.0.redhat-630187.jar:2.1.0.redhat-630187] |
at org.switchyard.component.soap.composer.SOAPMessageComposer.decompose(SOAPMessageComposer.java:56) [switchyard-component-soap-2.1.0.redhat-630187.jar:2.1.0.redhat-630187] |
at org.switchyard.component.soap.OutboundHandler.handleMessage(OutboundHandler.java:249) [switchyard-component-soap-2.1.0.redhat-630187.jar:2.1.0.redhat-630187] |
... 69 more |
Caused by: java.util.ConcurrentModificationException |
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901) [rt.jar:1.8.0_101] |
at java.util.ArrayList$Itr.next(ArrayList.java:851) [rt.jar:1.8.0_101] |
at org.switchyard.component.common.composer.BaseRegexContextMapper.matches(BaseRegexContextMapper.java:131) [switchyard-component-common-2.1.0.redhat-630187.jar:2.1.0.redhat-630187] |
at org.switchyard.component.soap.composer.SOAPContextMapper.copyToSOAPHeader(SOAPContextMapper.java:233) [switchyard-component-soap-2.1.0.redhat-630187.jar:2.1.0.redhat-630187] |
at org.switchyard.component.soap.composer.SOAPContextMapper.mapTo(SOAPContextMapper.java:212) [switchyard-component-soap-2.1.0.redhat-630187.jar:2.1.0.redhat-630187] |
at org.switchyard.component.soap.composer.SOAPContextMapper.mapTo(SOAPContextMapper.java:51) [switchyard-component-soap-2.1.0.redhat-630187.jar:2.1.0.redhat-630187] |
at org.switchyard.component.soap.composer.SOAPMessageComposer.decompose(SOAPMessageComposer.java:276) [switchyard-component-soap-2.1.0.redhat-630187.jar:2.1.0.redhat-630187] |
... 71 more
|
because the base class of the SOAPContextMapper (BaseRegexContextMapper) would clear an internal list (_includeRegexes) on each call to mapTo/mapFrom. |