-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] ConcurrentModificationException when using JS Writer #6123
Comments
What is the code that your JS Writer is executing in the filters, transformer, response and the JS Writer itself? What logs do you get from Show your queue and threading settings please. #243 is similar in that it is a concurrent modification exception but that goes back to 2006 and is DB related. Mirth today is radically different than it was in '06. I suggest moving this to a Discussion to determine the problem, then recreate an issue if the root cause is a Mirth bug and not a channel code issue. |
Describe the bug
While using JS writer with 75 Threads getting the following error:
java.util.ConcurrentModificationException
at java.base/java.util.HashMap$HashIterator.nextNode(Unknown Source)
at java.base/java.util.HashMap$EntryIterator.next(Unknown Source)
at java.base/java.util.HashMap$EntryIterator.next(Unknown Source)
at java.base/java.util.HashMap.putMapEntries(Unknown Source)
at java.base/java.util.HashMap.putAll(Unknown Source)
at com.mirth.connect.donkey.model.message.Message.getMergedConnectorMessage(Message.java:156)
at com.mirth.connect.donkey.server.channel.Channel.finishMessage(Channel.java:1995)
at com.mirth.connect.donkey.server.channel.Channel.process(Channel.java:1871)
at com.mirth.connect.donkey.server.channel.Channel.processSourceQueue(Channel.java:1952)
at com.mirth.connect.donkey.server.channel.Channel.run(Channel.java:1938)
at java.base/java.lang.Thread.run(Unknown Source)
Steps to reproduce the behavior:
Error was constantly happening, but not on every message. This was done by processing a large amount of messages over a few days time.
Expected behavior
This has not hindered performance or messages in any way, but wanted to report the issue so it could be corrected. Only seeing the error in the server log while messages are processing.
Environment (please complete the following information):
Workaround(s)
N/A
Additional context
Seems to be happening in donkey/src/main/java/com/mirth/connect/donkey/model/message/Message.java getMergedConnectorMessage()
Similar Issue to:
#243
The text was updated successfully, but these errors were encountered: