Updates:
Status: Accepted
Comment #1 on issue 2068 by jean.deruelle: [MSS HA] Concurrent modification
exception seen periodically
http://code.google.com/p/mobicents/issues/detail?id=2068
what happens is that the message is self routed back to the container in
application chaining case so it is passed to another TCP thread but
SIPMessage is not copied by value so the other thread has the same ref to
it so it is routed back to sipappdispatcher which remove the top route
header in subsequentrequestdispathcer and it is at the same time being
serialized as an application attribute of the sipapplicationsession which
fails with concurrentmodificationexception since the headerlist uses a
LinkedList which is not synchronized.
Cloning the message before selfrouting it so that it is passed by value
instead of passed by reference will fix this issue