ConcurrentModificationException

1
I see this in my application log. Does this happen because of too many webservice calls on the same object? java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(Unknown Source) at java.util.HashMap$KeyIterator.next(Unknown Source) at com.mendix.core.MxRuntime.a(SourceFile:1004) at iR.c(SourceFile:235) at iR.a(SourceFile:209) at nY.a(SourceFile:72) at oa.b(SourceFile:97) at oa.a(SourceFile:60) at com.mendix.modules.webservices.WebserviceModule.handleWebserviceCall(SourceFile:357) at jl.processRequest(SourceFile:27) at ji.a(SourceFile:74) at com.mendix.core.MxRuntime.processRequest(SourceFile:908) at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:45) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) at org.eclipse.jetty.server.Server.handle(Server.java:351) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:900) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:954) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:857) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534) at java.lang.Thread.run(Unknown Source)
asked
2 answers
1

Samet, have you created custom java code? If not, this can be an issue in our runtime. At least we could improve the error message. Could you please give more information to us so we can dive deeper into this?

answered
1

 

Dear Samet and Pieter,

I have similar case with V 4.7.2

when the client call my WS which has a custom authentication,he sometimes got the following xml response caoncatenated with the main proper xml response:

<?xml version="1.0" encoding="utf-8"?><soap:Envelope
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>Server</faultcode><faultstring>null</faultstring></soap:Fault></soap:Body></soap:Envelope>

and when I trace the Mendix Log, I got the following error with the response:

 Webservices: Exception occurred while processing webservice request
 Webservices: java.util.ConcurrentModificationException

So, upgrading to the latest version of 4 (4.8.11) will solve this issue or not.
And if not, Is there any workaround to handle the mendix soap fault myself.
Thank you.

answered