citrus icon indicating copy to clipboard operation
citrus copied to clipboard

Random concurrent modification exception when receiving message from http channel

Open ZuikovAV opened this issue 5 years ago • 8 comments

2.7.4

Message always received from http channel

Concurrent Modification Exception is randomly reproduced

Caused by: java.util.ConcurrentModificationException at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:719) at java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:752) at java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:750) at java.util.AbstractMap.toString(AbstractMap.java:554) at java.util.Collections$UnmodifiableMap.toString(Collections.java:1495) at java.lang.String.valueOf(String.java:2994) at java.lang.StringBuilder.append(StringBuilder.java:131) at com.consol.citrus.message.DefaultMessage.toString(DefaultMessage.java:104) at java.lang.String.valueOf(String.java:2994) at java.lang.StringBuilder.append(StringBuilder.java:131) at org.springframework.messaging.support.GenericMessage.toString(GenericMessage.java:111) at java.lang.String.valueOf(String.java:2994) at java.lang.StringBuilder.append(StringBuilder.java:131) at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:432)

ZuikovAV avatar Oct 05 '20 16:10 ZuikovAV

are you having the same issue with 2.8.0? or 3.0.0.M1?

christophd avatar Oct 29 '20 12:10 christophd

Yes, got the same exception today at 2.8.0. At 3.0.0.M1 can't say - have'nt worked with this version yet.

ZuikovAV avatar Oct 30 '20 06:10 ZuikovAV

Hi! Tell me please is the problem solved? I'm using 2.8.0 now.

ZuikovAV avatar Apr 08 '21 18:04 ZuikovAV

Is there a specific test setup that reproduces the error? Even if it occurs randomly it might be good to know which setup is used to receive the Http message.

Also please consider to move forward to 3.0.0-M3 as the 2.x release train is not likely to get much attention anymore

christophd avatar Apr 08 '21 18:04 christophd

Is 3.0 ready? I found no info at official site.

I'll try to reproduce and return with the results.

ZuikovAV avatar Apr 09 '21 05:04 ZuikovAV

I suppose i found the problem. If .messageType is absent in the response from http-server (JSON type in this case expected), citrus peridocially recognizes message type as XML -> mismatch of types leads to failure.

But i need more iterations to prove my theory.

ZuikovAV avatar Apr 09 '21 07:04 ZuikovAV

The problem is not with message type...

ZuikovAV avatar Apr 09 '21 10:04 ZuikovAV

Is there a specific test setup that reproduces the error? Even if it occurs randomly it might be good to know which setup is used to receive the Http message.

Also please consider to move forward to 3.0.0-M3 as the 2.x release train is not likely to get much attention anymore

Hi. If client or server is meant by setup - i got this problem only when get messages from http-server.

ZuikovAV avatar Jul 03 '21 04:07 ZuikovAV